.sp-dashboard__section-heading,
.sp-dashboard__listing-list article,
.sp-dashboard__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.sp-dashboard__listing-list {
    display: grid;
    gap: .7rem;
    margin-top: 1.2rem;
}

.sp-dashboard__listing-list article {
    border-top: 1px solid #d9e3dd;
    padding-top: .8rem;
}

.sp-dashboard__listing-list small {
    display: block;
    color: var(--sp-muted);
    margin-top: .2rem;
}

.sp-dashboard__form {
    display: grid;
    gap: 1rem;
}

.sp-dashboard__form label {
    display: grid;
    gap: .35rem;
    font-weight: 700;
}

.sp-dashboard__form input,
.sp-dashboard__form select,
.sp-dashboard__form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #b9c9c2;
    border-radius: 8px;
    padding: .75rem;
    background: #fff;
    color: var(--sp-ink);
    font: inherit;
}

.sp-dashboard__form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.sp-dashboard__form select {
    height: 48px;
    min-height: 48px;
}

.sp-dashboard__form select { line-height: 1.25; }
.sp-dashboard__form textarea { min-height: 150px; resize: vertical; }
.sp-dashboard__form input[type="file"] { min-height: 48px; }
.sp-dashboard__form small,.sp-required-note { color: var(--sp-muted); font-weight: 500; }

.sp-dashboard__form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.sp-profile-editor__form .sp-dashboard__form-grid {
    grid-template-rows: auto 48px;
    gap: .4rem 1.5rem;
}

.sp-profile-editor__form .sp-dashboard__form-grid > label {
    min-width: 0;
    margin: 0;
    grid-row: span 2;
    grid-template-rows: subgrid;
    gap: 0;
}

.sp-dashboard__legal-areas {
    min-width: 0;
    margin: 0;
    padding: 1rem;
    border: 1px solid #d9e3dd;
    border-radius: 10px;
}

.sp-dashboard__legal-areas legend {
    padding: 0 .35rem;
    font-weight: 800;
}

.sp-dashboard__legal-areas > p {
    margin: 0 0 1rem;
    color: var(--sp-muted);
}

.sp-dashboard__legal-areas-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: .85rem;
}

.sp-dashboard__legal-area {
    display: grid;
    grid-template-columns: 20px minmax(0,1fr);
    align-items: start;
    gap: .55rem;
    min-width: 0;
    padding: .85rem;
    border: 1px solid #d9e3dd;
    border-radius: 8px;
    background: #f8faf8;
}

.sp-dashboard__legal-area span { line-height: 1.3; font-weight: 650; }

.sp-dashboard__legal-area-group {
    min-width: 0;
    border: 1px solid #d9e3dd;
    border-radius: 10px;
    background: #f8faf8;
    overflow: hidden;
}

.sp-dashboard__legal-area-group.is-selected { grid-column: 1 / -1; }

.sp-dashboard__legal-area-group .sp-dashboard__legal-area--macro {
    border: 0;
    border-radius: 0;
    background: transparent;
}

.sp-dashboard__specializations {
    margin: 0 .85rem .85rem;
    border-top: 1px solid #d9e3dd;
    padding-top: .65rem;
}

.sp-dashboard__specializations[hidden] { display: none; }

.sp-dashboard__specializations summary {
    cursor: pointer;
    color: var(--sp-petrol, #164d59);
    font-weight: 750;
}

.sp-dashboard__specializations summary span {
    display: inline-grid;
    place-items: center;
    min-width: 1.55rem;
    min-height: 1.55rem;
    margin-left: .35rem;
    border-radius: 50%;
    background: #e5eee8;
    font-size: .78rem;
}

.sp-dashboard__specializations-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem .8rem;
    margin-top: .75rem;
}

.sp-dashboard__specializations-grid label {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    min-width: 0;
    font-weight: 500;
}

.sp-dashboard__legal-area small,
.sp-dashboard__specializations-grid small { color: var(--sp-muted); font-weight: 500; }

.sp-dashboard__legal-area > label,
.sp-dashboard__legal-area > div > label {
    display: flex;
    grid-template-columns: none;
    align-items: flex-start;
    gap: .5rem;
    font-weight: 500;
}

.sp-dashboard__legal-area > label {
    font-weight: 800;
}

.sp-dashboard__legal-area > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem .8rem;
    margin-top: .7rem;
    padding-top: .7rem;
    border-top: 1px solid #d9e3dd;
}

.sp-dashboard__legal-area input[type="checkbox"],
.sp-dashboard__specializations-grid input[type="checkbox"],
.sp-dashboard__check input[type="checkbox"] {
    width: auto;
    flex: 0 0 auto;
    margin: .18rem 0 0;
    padding: 0;
}
.sp-area-limit-message { min-height: 1.4em; color: #983b32 !important; font-weight: 750; }
.sp-address-field { position: relative; }
.sp-address-results { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% - 2.2rem); padding: .35rem; background: #fff; border: 1px solid #c8d0d8; border-radius: 10px; box-shadow: 0 12px 30px rgba(18,32,48,.14); }
.sp-address-results button { display: block; width: 100%; padding: .7rem .8rem; border: 0; background: #fff; text-align: left; border-radius: 7px; cursor: pointer; }
.sp-address-results button:hover,.sp-address-results button:focus { background: #eef5f4; }
.sp-address-results p { margin: .5rem; color: #8a2d2d; }

.sp-dashboard__photo-field {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
}

.sp-photo-editor {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid #d9e3dd;
    border-radius: 10px;
    background: #f8faf8;
}
.sp-photo-editor [hidden] { display: none !important; }

.sp-photo-editor__viewport {
    position: relative;
    display: grid;
    width: min(100%, 280px);
    aspect-ratio: 1;
    place-items: center;
    overflow: hidden;
    border: 1px solid #b9c9c2;
    border-radius: 8px;
    color: var(--sp-muted);
    background:
        linear-gradient(45deg, #eef2ef 25%, transparent 25%),
        linear-gradient(-45deg, #eef2ef 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #eef2ef 75%),
        linear-gradient(-45deg, transparent 75%, #eef2ef 75%),
        #fff;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-size: 16px 16px;
}

.sp-photo-editor__viewport img,
.sp-photo-editor__viewport canvas {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-photo-editor__viewport canvas { cursor: grab; touch-action: none; }
.sp-photo-editor__viewport canvas:active { cursor: grabbing; }
.sp-photo-editor__viewport > span { padding: 1rem; font-size: .8rem; font-weight: 750; text-align: center; }
.sp-photo-editor__fields { display: grid; gap: 1rem; }
.sp-photo-editor__zoom { display: grid; gap: .55rem; }
.sp-photo-editor__zoom > span { color: var(--sp-ink); font-size: .85rem; font-weight: 800; }
.sp-photo-editor__zoom > div { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; gap: .65rem; align-items: center; }
.sp-photo-editor__zoom button { min-height: 42px; border: 1px solid #b9c9c2; border-radius: 7px; color: var(--sp-petrol); background: #fff; font-size: 1.25rem; cursor: pointer; }
.sp-photo-editor__zoom input[type="range"] { height: auto; min-height: 42px; padding: 0; accent-color: var(--sp-green); }

@media (max-width: 680px) {
    .sp-photo-editor { grid-template-columns: 1fr; }
    .sp-photo-editor__viewport { margin-inline: auto; }
}

.sp-dashboard__photo-preview img {
    display: block;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
}

.sp-dashboard__actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    border-top: 1px solid #d9e3dd;
    margin-top: 1.5rem;
    padding-top: 1rem;
}

.sp-dashboard__inline-form { margin: 0; }

.sp-dashboard__listing-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .55rem;
}

.sp-dashboard__listing-actions .sp-button--compact {
    min-height: 36px;
    padding: .45rem .75rem;
    color: var(--sp-petrol);
    border-color: var(--sp-petrol);
    font-size: 11px;
    line-height: 1.2;
    cursor: pointer;
    background: #fff;
}

.sp-dashboard__listing-actions .sp-button--danger {
    color: #9b2c2c;
    border-color: #c46b6b;
    background: #fff8f8;
}

.sp-dashboard__listing-actions .sp-button--danger:hover,
.sp-dashboard__listing-actions .sp-button--danger:focus-visible {
    color: #fff;
    border-color: #9b2c2c;
    background: #9b2c2c;
}

@media (max-width: 680px) {
    .sp-dashboard__listing-list article {
        align-items: flex-start;
        flex-direction: column;
    }

    .sp-dashboard__listing-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

.sp-dashboard__notice {
    border-left: 4px solid var(--sp-green);
    background: #edf5e9;
    padding: .8rem 1rem;
    margin-bottom: 1rem;
}

.sp-dashboard__notice.is-error {
    border-color: #a53d3d;
    background: #fff0f0;
}

.sp-dashboard-toast {
    position: fixed;
    z-index: 100000;
    top: clamp(18px, 3vw, 34px);
    right: clamp(18px, 3vw, 34px);
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 30px;
    gap: .85rem;
    align-items: center;
    width: min(520px, calc(100vw - 36px));
    padding: 1rem;
    border: 1px solid #b9d4c4;
    border-radius: 14px;
    color: var(--sp-ink);
    background: rgba(248, 252, 249, .98);
    box-shadow: 0 20px 55px rgba(15, 55, 63, .22);
    animation: sp-dashboard-toast-in .24s ease-out both;
}
.sp-dashboard-toast__icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #fff; background: var(--sp-green); font-size: 1rem; font-weight: 900; }
.sp-dashboard-toast p { margin: 0; font-size: .9rem; font-weight: 700; line-height: 1.5; }
.sp-dashboard-toast button { display: grid; width: 30px; height: 30px; padding: 0; place-items: center; border: 0; border-radius: 50%; color: var(--sp-muted); background: transparent; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.sp-dashboard-toast button:hover,.sp-dashboard-toast button:focus-visible { color: var(--sp-petrol); background: #e7f0eb; }
.sp-dashboard-toast.is-error { border-color: #dfb1ad; background: rgba(255, 246, 245, .98); }
.sp-dashboard-toast.is-error .sp-dashboard-toast__icon { background: #a53d3d; }
@keyframes sp-dashboard-toast-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .sp-dashboard-toast { animation: none; } }
@media (max-width: 600px) { .sp-dashboard-toast { top: 12px; right: 12px; width: calc(100vw - 24px); } }

.sp-dashboard__check {
    display: grid !important;
    grid-template-columns: 20px minmax(0,1fr);
    align-items: start;
    gap: .6rem !important;
}

.sp-dashboard__check span { line-height: 1.45; font-weight: 550; }
.sp-dashboard__check input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; }
.sp-dashboard__subheading { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid #d9e3dd; }

/* Editor scheda professionale: sezioni editoriali e selettori compatti. */
.sp-profile-editor{padding:clamp(22px,4vw,42px)}
.sp-profile-editor__form{gap:24px!important;margin-top:26px}
.sp-profile-editor__section{overflow:hidden;border:1px solid #d8e2dc;border-radius:10px;background:#fbfcfa;box-shadow:0 12px 32px rgba(22,77,89,.045)}
.sp-profile-editor__section>header{display:flex;align-items:center;gap:16px;padding:19px 22px;border-bottom:1px solid #e0e7e2;background:linear-gradient(110deg,#f0f5ef,#fbfcfa)}
.sp-profile-editor__section>header>span{display:grid;width:34px;height:34px;place-items:center;border-radius:50%;color:#fff;background:#477f35;font-size:10px;font-weight:850;letter-spacing:.08em}
.sp-profile-editor__section>header p{margin:0!important;color:#477f35!important;font-size:9px!important;font-weight:850!important;letter-spacing:.14em;text-transform:uppercase}
.sp-profile-editor__section>header h2{margin:3px 0 0;font-size:24px!important}
.sp-profile-editor__section-body{display:grid;gap:18px;padding:24px}
.sp-dashboard__legal-areas--compact{padding:0;border:0}
.sp-dashboard__area-chips{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}
.sp-dashboard__area-break{flex-basis:100%;height:3px}
.sp-dashboard__area-chip{position:relative;margin:0!important;cursor:pointer}
.sp-dashboard__area-chip input{position:absolute;opacity:0;pointer-events:none}
.sp-dashboard__area-chip span{display:block;padding:7px 10px;border:1px solid #cbd9d1;border-radius:999px;color:#35525a;background:#fff;font-size:11px;font-weight:720;line-height:1.25;transition:.15s ease}
.sp-dashboard__area-chip input:checked+span{border-color:#477f35;color:#fff;background:#477f35;box-shadow:0 3px 10px rgba(71,127,53,.18)}
.sp-dashboard__area-chip input:focus-visible+span{outline:3px solid rgba(71,127,53,.2);outline-offset:2px}
.sp-dashboard__area-chip input:disabled+span{opacity:.42;cursor:not-allowed}
.sp-profile-editor__actions{display:flex;align-items:center;gap:10px;margin-top:22px;padding-top:22px;border-top:1px solid #d8e2dc}
.sp-profile-editor__actions .sp-dashboard__inline-form{margin-left:auto}
.sp-button--profile-delete{border-color:#a4403d!important;color:#fff!important;background:linear-gradient(135deg,#b95550,#8f312f)!important;box-shadow:0 7px 18px rgba(143,49,47,.18)}
.sp-button--profile-delete:hover{background:linear-gradient(135deg,#a74541,#772825)!important}
@media(max-width:720px){.sp-profile-editor{padding:20px 16px}.sp-profile-editor__section>header,.sp-profile-editor__section-body{padding:17px}.sp-profile-editor__section>header h2{font-size:21px!important}.sp-profile-editor__actions{align-items:stretch;flex-direction:column}.sp-profile-editor__actions .sp-button,.sp-profile-editor__actions .sp-dashboard__inline-form,.sp-profile-editor__actions .sp-dashboard__inline-form .sp-button{width:100%;margin-left:0}.sp-dashboard__area-chip span{font-size:10px}}
.sp-dashboard__profile-offer { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .25rem 1rem; align-items: center; margin: 0 0 1rem; padding: 1rem; border: 1px solid #c8dfd4; border-radius: 8px; background: #eef7f2; }
.sp-dashboard__profile-offer span { color: var(--sp-muted); }
.sp-dashboard__profile-offer .sp-button { grid-column: 2; grid-row: 1 / span 2; }
.sp-listing-editor__header { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin: 1.5rem 0; }
.sp-listing-editor__header span { color: var(--sp-green); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sp-listing-editor__status { padding: .45rem .7rem; border-radius: 999px; background: #edf5e9; color: var(--sp-green); font-size: .75rem; }
.sp-listing-editor__form > section { display: grid; gap: 1.15rem; padding: 1.35rem; border: 1px solid #d9e3dd; border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(22,77,89,.045); }
.sp-listing-editor__form > section.sp-listing-editor__choices { border-color: #b9d1c4; background: linear-gradient(145deg,#f7faf7 0%,#eef5f1 100%); }
.sp-listing-editor__form h3 { margin: 0; font-family: Georgia,serif; font-size: 1.2rem; font-weight: 500; }
.sp-listing-editor__section-heading { display: flex; align-items: flex-start; gap: .8rem; }
.sp-listing-editor__section-heading > span { flex: 0 0 29px; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--sp-petrol); font-size: .75rem; font-weight: 850; }
.sp-listing-editor__section-heading h3 { margin-top: .12rem; }
.sp-listing-editor__section-heading p { margin: .25rem 0 0; color: var(--sp-muted); font-size: .86rem; line-height: 1.45; }
.sp-choice-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.sp-choice-fieldset legend { margin-bottom: .6rem; padding: 0; color: var(--sp-ink); font-size: .82rem; font-weight: 800; }
.sp-choice-grid { display: grid; gap: .65rem; }
.sp-choice-grid--families { grid-template-columns: repeat(2,minmax(0,1fr)); }
.sp-choice-grid--direction { grid-template-columns: repeat(2,minmax(0,1fr)); }
.sp-choice-grid--compact { grid-template-columns: repeat(3,minmax(0,1fr)); }
.sp-choice-card,.sp-choice-chip { position: relative; display: block !important; min-width: 0; margin: 0 !important; cursor: pointer; }
.sp-choice-card input,.sp-choice-chip input { position: absolute; opacity: 0; pointer-events: none; }
.sp-choice-card > span { display: grid; gap: .25rem; min-height: 78px; align-content: center; padding: .9rem 1rem; border: 1px solid #cbd9d2; border-radius: 10px; background: rgba(255,255,255,.88); transition: border-color .16s ease,box-shadow .16s ease,transform .16s ease,background .16s ease; }
.sp-choice-card > span::before { content: ""; position: absolute; top: .8rem; right: .8rem; width: 17px; height: 17px; border: 1.5px solid #9eb2aa; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 4px #fff; }
.sp-choice-card strong { padding-right: 1.35rem; color: var(--sp-ink); line-height: 1.25; }
.sp-choice-card small { color: var(--sp-muted); font-size: .75rem; line-height: 1.35; }
.sp-choice-card:hover > span { border-color: var(--sp-green); transform: translateY(-1px); }
.sp-choice-card:has(input:checked) > span { border-color: var(--sp-petrol); background: #fff; box-shadow: 0 0 0 2px rgba(22,77,89,.12),0 8px 18px rgba(22,77,89,.08); }
.sp-choice-card:has(input:checked) > span::before { border-color: var(--sp-petrol); background: var(--sp-petrol); }
.sp-choice-card:has(input:focus-visible) > span,.sp-choice-chip:has(input:focus-visible) > span { outline: 3px solid rgba(71,127,53,.28); outline-offset: 2px; }
.sp-choice-chip > span { position: relative; display: flex; min-height: 48px; align-items: center; justify-content: flex-start; padding: .7rem .85rem .7rem 2.55rem; border: 1px solid #cbd9d2; border-radius: 10px; background: #fff; color: var(--sp-ink); text-align: left; font-size: .8rem; font-weight: 750; line-height: 1.25; box-shadow: 0 2px 8px rgba(22,77,89,.035); transition: border-color .16s ease,background .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease; }
.sp-choice-chip > span::before { content: ""; position: absolute; left: .85rem; width: 16px; height: 16px; border: 1.5px solid #9eb2aa; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 4px #fff; transition: border-color .16s ease,background .16s ease; }
.sp-choice-chip:has(input[type="checkbox"]) > span::before { border-radius: 4px; }
.sp-choice-chip:hover > span { border-color: var(--sp-green); background: #fbfdfb; transform: translateY(-1px); box-shadow: 0 6px 14px rgba(22,77,89,.07); }
.sp-choice-chip:has(input:checked) > span { border-color: var(--sp-petrol); background: #eef6f3; color: var(--sp-petrol); box-shadow: 0 0 0 2px rgba(22,77,89,.1),0 7px 16px rgba(22,77,89,.07); }
.sp-choice-chip:has(input:checked) > span::before { border-color: var(--sp-petrol); background: var(--sp-petrol); }
.sp-choice-chip:has(input:checked) > span::after { content: "✓"; position: absolute; left: .995rem; color: #fff; font-size: 10px; font-weight: 900; line-height: 1; }
.sp-listing-preferences { background: #f8faf8 !important; }
.sp-listing-editor__form .sp-dashboard__form-grid { align-items: stretch; }
.sp-listing-editor__form .sp-dashboard__form-grid > label { align-content: end; min-width: 0; margin: 0; }
.sp-listing-editor__form [hidden] { display: none !important; }
.sp-listing-location small { min-height: 1.35em; line-height: 1.45; }
.sp-listing-editor__actions { display: flex; justify-content: flex-end; gap: .75rem; padding-top: .25rem; }
.sp-profile-editor__form .sp-listing-editor__actions { justify-content: flex-start; flex-wrap: wrap; }
.sp-listing-editor__hint { padding: .8rem 1rem; border-left: 3px solid var(--sp-green); background: #edf5e9; }
.sp-listing-editor__header p { max-width: 680px; margin: .45rem 0 0; color: var(--sp-muted); }
.sp-listing-editor__published-note { display: grid; gap: .2rem; margin: 0 0 1rem; padding: .9rem 1rem; border: 1px solid #c8dfd4; border-radius: 10px; background: #eef7f2; }
.sp-listing-editor__published-note span { color: var(--sp-muted); font-size: .82rem; }
.sp-listing-editor__privacy { padding: .9rem 1rem; border-left: 4px solid #b58b4a; border-radius: 5px; color: #4d3e27; background: #fff9ed; font-size: .84rem; line-height: 1.5; }
.sp-listing-image-editor { display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); gap: 1.2rem; align-items: center; padding: 1rem; border: 1px solid #d9e3dd; border-radius: 12px; background: #f8faf8; }
.sp-listing-image-editor__preview { display: grid; width: 100%; aspect-ratio: 4 / 3; place-items: center; overflow: hidden; border: 1px solid #b9c9c2; border-radius: 9px; color: var(--sp-muted); background: #eef3ef; }
.sp-listing-image-editor__preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sp-listing-image-editor__preview span { padding: 1rem; font-size: .78rem; font-weight: 700; text-align: center; }
.sp-listing-image-editor__fields { display: grid; gap: 1rem; }
.sp-category-fields { display: grid; gap: 1.25rem; padding: 1.15rem; border: 1px solid #dbe4df; border-radius: 12px; background: linear-gradient(145deg,#fbfdfb 0%,#f4f8f5 100%); }
.sp-category-fields .sp-choice-fieldset + .sp-choice-fieldset,
.sp-category-fields .sp-choice-fieldset + .sp-used-condition,
.sp-category-fields .sp-used-condition + .sp-choice-fieldset { padding-top: 1.1rem; border-top: 1px solid #dde7e1; }
.sp-category-fields > label { margin: 0; }
.sp-category-fields [data-sp-offer-only] { display: grid; gap: 1.15rem; padding-top: .3rem; }
.sp-listing-preview { background: linear-gradient(145deg,#f8faf8,#eef5f1) !important; }
.sp-listing-preview__card { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 1.15rem; max-width: 720px; padding: 1.25rem; border: 1px solid #cbd9d2; border-radius: 12px; background: #fff; box-shadow: 0 12px 30px rgba(22,77,89,.08); }
.sp-listing-preview__card > div > p:first-child { margin: 0 0 .55rem; color: var(--sp-green); font-size: .68rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.sp-listing-preview__image { overflow: hidden; border-radius: 8px; background: #eef3ef; }
.sp-listing-preview__image img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sp-listing-preview__card h4 { margin: 0; color: var(--sp-ink); font: 500 1.5rem/1.18 Georgia,serif; }
.sp-listing-preview__card [data-sp-preview-location] { margin: .5rem 0; color: var(--sp-muted); font-size: .8rem; font-weight: 700; }
.sp-listing-preview__card [data-sp-preview-description] { margin: .8rem 0 0; color: var(--sp-muted); line-height: 1.55; }
.sp-listing-preview__card [data-sp-preview-chips] { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .8rem; }
.sp-listing-preview__card [data-sp-preview-chips] span { padding: .35rem .6rem; border: 1px solid #bdd0c5; border-radius: 999px; color: var(--sp-petrol); background: #f3f8f5; font-size: .7rem; font-weight: 750; }
.sp-listing-autosave { align-self: center; margin-right: auto; color: var(--sp-muted); font-size: .76rem; font-weight: 700; }

@media (max-width: 720px) {
    .sp-dashboard__form-grid,
    .sp-dashboard__legal-areas-grid,
    .sp-dashboard__legal-area > div,
    .sp-dashboard__specializations-grid,
    .sp-dashboard__photo-field {
        grid-template-columns: 1fr;
    }

    .sp-dashboard__legal-area-group.is-selected { grid-column: auto; }

    .sp-dashboard__section-heading {
        display: grid;
    }
    .sp-profile-editor__form .sp-dashboard__form-grid { grid-template-rows: none; gap: 1rem; }
    .sp-profile-editor__form .sp-dashboard__form-grid > label { grid-row: auto; grid-template-rows: none; gap: .35rem; }
    .sp-listing-editor__header { display: grid; }
    .sp-listing-editor__actions { display: flex; flex-wrap: wrap; }
    .sp-listing-image-editor,.sp-listing-preview__card { grid-template-columns: 1fr; }
    .sp-choice-grid--families,.sp-choice-grid--compact { grid-template-columns: 1fr; }
    .sp-choice-grid--direction { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .sp-choice-card--direction > span { min-height: 92px; padding: .75rem; }
    .sp-listing-editor__form > section { padding: 1rem; border-radius: 11px; }
    .sp-listing-editor__actions .sp-button { width: auto; }
    .sp-listing-autosave { margin: 0; text-align: center; }
    .sp-dashboard__profile-offer { grid-template-columns: 1fr; }
    .sp-dashboard__profile-offer .sp-button { grid-column: 1; grid-row: auto; }
}

.sp-contact-inbox { display: grid; gap: 1rem; margin-top: 1.2rem; }
.sp-contact-inbox article { padding: 1rem; border: 1px solid #d9e3dd; border-radius: 8px; }
.sp-contact-inbox header,
.sp-contact-inbox footer { display: flex; justify-content: space-between; gap: 1rem; }
.sp-contact-inbox header small { display: block; margin-top: .2rem; color: var(--sp-muted); }
.sp-contact-inbox header > span { color: var(--sp-green); font-size: .75rem; font-weight: 750; }
.sp-contact-inbox footer { justify-content: flex-start; }

.sp-auth { max-width: 1040px; margin: 58px auto 90px; padding: 0 20px; color: var(--sp-color-text); }
.sp-auth > header { max-width: 720px; margin-bottom: 28px; }
.sp-auth > header > span { color: var(--sp-color-accent); font-size: .7rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.sp-auth > header h1,
.sp-auth > header h2 { margin: .55rem 0; font: 500 clamp(2.25rem, 5vw, 3.5rem)/1.05 Georgia, serif; }
.sp-auth > header p { color: var(--sp-color-muted); }
.sp-auth__google { min-height: 52px; display: flex; align-items: center; justify-content: center; gap: .8rem; border: 1px solid #b9c9c2; border-radius: 6px; color: var(--sp-color-text); background: #fff; font-weight: 750; text-decoration: none; }
.sp-auth__google span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--sp-color-primary); font: 600 1rem Georgia, serif; }
.sp-auth__separator { display: flex; align-items: center; gap: 1rem; margin: 22px 0; color: var(--sp-color-muted); font-size: .72rem; text-transform: uppercase; }
.sp-auth__separator::before,.sp-auth__separator::after { content: ""; flex: 1; height: 1px; background: #d9e3dd; }
.sp-auth__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.sp-auth__panel { align-content: start; padding: 28px; border: 1px solid #d9e3dd; border-radius: 6px; background: #fff; }
.sp-auth__panel h2 { margin: 0 0 .3rem; font: 500 1.65rem Georgia, serif; }
.sp-auth__panel a { color: var(--sp-color-primary); font-size: .8rem; font-weight: 700; }
.sp-auth__consent { max-width: 620px; margin: 0 auto; }
.sp-auth__login-panel { display: grid; align-content: start; }
.sp-auth__support-links { display: flex; flex-wrap: wrap; gap: .55rem 1rem; align-items: center; }
.sp-auth__support-links a,.sp-auth__support-links button { margin: 0; padding: 0; border: 0; color: var(--sp-color-primary); background: transparent; font-family: inherit; font-size: .8rem; font-weight: 700; line-height: 1.4; text-decoration: underline; cursor: pointer; }
.sp-auth .sp-dashboard__check span,.sp-auth .sp-dashboard__check a { font: inherit; line-height: inherit; }
.sp-auth .sp-dashboard__check a { color: var(--sp-color-primary); text-decoration: underline; }
.sp-auth-resend-dialog { width: min(520px, calc(100vw - 32px)); max-width: none; padding: 0; border: 0; border-radius: 14px; color: var(--sp-color-text); background: transparent; box-shadow: 0 24px 70px rgba(15,55,63,.28); }
.sp-auth-resend-dialog::backdrop { background: rgba(10,35,41,.58); backdrop-filter: blur(2px); }
.sp-auth-resend-dialog__inner { position: relative; padding: clamp(24px,4vw,36px); border: 1px solid #d9e3dd; border-radius: 14px; background: #fff; }
.sp-auth-resend-dialog__inner h2 { margin: 0; font: 500 1.7rem/1.2 Georgia,serif; }
.sp-auth-resend-dialog__inner p { margin: .45rem 0 .35rem; color: var(--sp-color-muted); }
.sp-auth-resend-dialog__close { position: absolute; top: 12px; right: 12px; display: grid; width: 34px; height: 34px; padding: 0; place-items: center; border: 0; border-radius: 50%; color: var(--sp-color-muted); background: #f2f6f3; font-size: 1.45rem; cursor: pointer; }
.sp-auth-resend-dialog__close:hover,.sp-auth-resend-dialog__close:focus-visible { color: var(--sp-color-primary); background: #e5efea; }
.sp-form-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.sp-account-security { display: grid; gap: 1rem; }
.sp-account-method { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding-top: 1rem; border-top: 1px solid #d9e3dd; }
.sp-account-method strong,.sp-account-method small { display: block; }
.sp-account-method small,.sp-account-lock { margin-top: .2rem; color: var(--sp-color-muted); font-size: .75rem; }
.sp-account-method form { margin: 0; }
@media(max-width:720px){.sp-auth__grid{grid-template-columns:1fr}.sp-account-method{align-items:flex-start;display:grid}.sp-account-method .sp-button{width:100%}}
.sp-auth__claim-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:stretch;margin-top:24px}.sp-auth__claim-actions form{display:flex;margin:0}.sp-auth__claim-actions .sp-button{min-height:48px;margin:0;padding:11px 18px;font:inherit;cursor:pointer}.sp-auth__claim-actions a.sp-button{color:#fff;font-size:inherit}@media(max-width:720px){.sp-auth__claim-actions,.sp-auth__claim-actions form{display:grid;width:100%}.sp-auth__claim-actions .sp-button{width:100%;text-align:center}}
