:root {
    --bg: #F4F7F9;
    --surface: #ffffff;
    --sunken: #EDF1F4;
    --border: #E1E7EC;
    --text: #16293C;
    --muted: #5C6B78;
    --accent: #17788F;
    --accent-soft: #E4F1F4;
    --accent-ink: #0E5A6C;
    --success: #067647;
    --success-bg: #ecfdf3;
    --warning: #9A5B06;
    --warning-bg: #FBF0DA;
    --danger: #7F160F;
    --danger-bg: #FBE9E7;
    --info: #026aa2;
    --info-bg: #f0f9ff;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(22, 41, 60, 0.05);
    --pop: 0 8px 24px rgba(22, 41, 60, 0.14);
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --header-h: 56px;
    --sidebar-w: 248px;
    --sidebar-rail: 64px;
    --ease: 180ms ease;
    --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

button, a.props-act, .dash-actions a, .qa-card, .admin-logout, .admin-menu-btn, .admin-iconbtn, .admin-user, .props-filter-go, .login-submit, .pw-toggle {
    transition: background-color var(--ease), border-color var(--ease), color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.admin-sidebar a,
.kpi,
.dash-panel,
.pv-hero,
.pv-fact,
.props-table-wrap,
.props-filters,
.props-empty,
.login-panel,
.settings-tabs a {
    transition: background-color var(--ease), border-color var(--ease), color var(--ease), box-shadow var(--ease);
}

.tp-thumb { width: 72px; height: 48px; object-fit: cover; border-radius: 4px; }
.tp-table {
    min-width: 1320px;
}
.tp-table .svc-acts-cell {
    white-space: nowrap;
    width: 1%;
    vertical-align: middle;
}
.tp-table .svc-acts {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    white-space: nowrap;
    margin: 0;
    gap: 6px;
}
.tp-table .svc-acts form { display: inline; margin: 0; }
.tp-table .svc-acts .props-act { white-space: nowrap; flex-shrink: 0; }
.tp-with-icon { display: inline-flex; align-items: center; gap: 8px; line-height: 1.2; vertical-align: middle; }
.tp-with-icon .admin-icon { display: block; }
.props-table.lookup-table { min-width: 0; }
.props-table.lookup-table th,
.props-table.lookup-table td { vertical-align: middle; }
.tp-choice-field,
.tp-icon-field { border: 0; margin: 4px 0 16px; padding: 0; }
.tp-choice-field legend,
.tp-icon-field legend {
    font-size: 0.8rem;
    font-weight: 650;
    color: var(--muted);
    padding: 0;
    margin-bottom: 8px;
}
.prop-form .agency-icon-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.prop-form .agency-icon-option {
    position: relative;
    display: inline-block;
    width: auto;
    margin: 0;
    color: var(--text);
    font-weight: 600;
}
.prop-form .agency-icon-option input,
.prop-form .fact-chip input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    pointer-events: none;
}
.badge.tp-with-icon .admin-icon { width: 14px; height: 14px; }
.tp-map { height: 280px; margin-bottom: 12px; background: #eef2f4; }
.tp-logo { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); }
.tp-progress { height: 8px; margin-top: 8px; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.tp-progress span { display: block; height: 100%; background: var(--accent); }
.tp-desc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tp-desc-grid h3 { margin: 0 0 8px; font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.tp-developer { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tp-developer p { margin: 0; }
.pv-page .dash-panel h3 { margin: 16px 0 8px; font-size: 0.82rem; font-weight: 650; }
.tp-show.fu-page { max-width: 1180px; }
.tp-show.fu-page .dash-panel + .fu-grid,
.tp-show.fu-page .fu-grid + .dash-panel,
.tp-show.fu-page .dash-panel + .dash-panel { margin-top: var(--space-4); }
.tp-show-cover {
    flex: 0 0 148px;
    width: 148px;
    height: 148px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 16px;
    background: #0b1220;
    border: 1px solid var(--border);
    color: rgba(255, 255, 255, 0.35);
}
.tp-show-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tp-show h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 10px;
    font-size: 0.82rem;
    font-weight: 650;
}
.tp-show h3:first-of-type { margin-top: 4px; }
.tp-show .sc-show-acts { margin-top: 14px; }
.tp-show .sc-show-acts .props-act {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.tp-show .sc-kv .badge {
    display: inline-flex;
    margin-bottom: 0;
    letter-spacing: 0;
    text-transform: none;
}
@media (max-width: 800px) {
    .tp-desc-grid { grid-template-columns: 1fr; }
}

.tp-form.fu-page { max-width: 1180px; }
.tp-form.fu-page .fu-form { margin-top: 4px; }
.tp-form h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0 10px;
    font-size: 0.82rem;
    font-weight: 650;
}
.tp-form h3:first-of-type { margin-top: 4px; }
.tp-form .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}
.tp-form .tp-map {
    height: 320px;
    margin: 0 0 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}
.tp-form .tp-gallery {
    margin-bottom: 16px;
}
.tp-form .tp-gallery .img-pick {
    width: 168px;
}
.tp-form .tp-gallery img { height: 110px; }
.tp-form .tp-media-fields { margin-bottom: 12px; }
.tp-form .sc-media-card { margin-bottom: 0; }
.tp-form input[type="file"] {
    padding: 8px;
    border-style: dashed;
}
.tp-form .tp-brochure-link { margin: 8px 0; }
.tp-form .tp-progress { margin: 4px 0 0; height: 10px; }
.tp-form .tp-nearby-list {
    display: grid;
    gap: 12px;
    margin: 0 0 12px;
}
.tp-form .tp-nearby-card {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg);
}
.tp-form .tp-nearby-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.tp-form .tp-nearby-card header strong {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
}
.tp-form .tp-nearby-card .fu-grid { margin: 0; }
.tp-form .tp-nearby-card label { margin-bottom: 0; }
.tp-form .tp-nearby-add { margin: 0; }
.tp-form .tp-developer-hint {
    grid-column: 1 / -1;
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--bg);
    border: 1px dashed var(--border);
}
.tp-form .fu-save {
    position: sticky;
    bottom: 12px;
    z-index: 4;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.tp-form .props-head .props-act {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
@media (max-width: 900px) {
    .tp-form .form-grid,
    .tp-form .fu-grid,
    .tp-form .tp-desc-grid { grid-template-columns: 1fr; }
}

input, select, textarea {
    transition: border-color var(--ease), box-shadow var(--ease), background-color var(--ease);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.admin-icon {
    display: block;
    flex-shrink: 0;
}

.admin {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
    background: var(--bg);
}

.admin-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    height: var(--header-h);
    padding: 0 16px 0 12px;
    background: var(--surface);
    color: var(--text);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 40;
}

.admin-header-left {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding-right: 6px;
    text-decoration: none;
    color: inherit;
}

.admin-brand:hover .admin-brand-text strong {
    color: var(--accent-ink);
}

.admin-brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--accent);
    color: #fff;
    flex-shrink: 0;
    display: grid;
    place-items: center;
}

.admin-brand-mark .admin-icon {
    display: block;
}

.admin-brand-text {
    display: flex;
    align-items: baseline;
    gap: 2px;
    min-width: 0;
    line-height: 1.15;
}

.admin-brand-text strong {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
}

.admin-brand-text small,
.admin-brand-sub {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--muted);
}

.admin-header .admin-crumb {
    display: none;
}

.admin-crumb-root { color: var(--muted); font-weight: 500; }
.admin-crumb-sep { color: #c5cbd3; font-weight: 500; }
.admin-crumb-page { color: var(--text); font-weight: 600; }

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
}

.admin-iconbtn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 0;
    background: none;
    color: var(--muted);
    cursor: pointer;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    position: relative;
    padding: 0;
    font: inherit;
}

.admin-iconbtn:hover {
    background: var(--sunken);
    color: var(--text);
}

.admin-menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.admin-dd { position: relative; }

.admin-dot-count {
    position: absolute;
    top: 3px;
    right: 3px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    display: grid;
    place-items: center;
    border: 2px solid var(--surface);
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 40px;
    padding: 0 8px 0 4px;
    border: 0;
    border-radius: 999px;
    background: none;
    cursor: pointer;
    min-width: 0;
    font: inherit;
    color: inherit;
}

.admin-user:hover { background: var(--sunken); }

.admin-user > .admin-icon {
    width: 14px;
    height: 14px;
    color: var(--muted);
}

.admin-user-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    line-height: 1.2;
    text-align: left;
}

.admin-name {
    font-size: 13px;
    color: var(--text);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.admin-role {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0;
}

.admin-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-ink);
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}

.admin-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-pop {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 300px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--pop);
    padding: 6px;
    z-index: 60;
}

.admin-pop[hidden] { display: none !important; }

.admin-pop-user { width: 240px; }

.admin-pop h4 {
    margin: 0;
    padding: 8px 10px 6px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}

.admin-pop a,
.admin-pop .admin-mi {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border-radius: 8px;
    border: 0;
    background: none;
    text-align: left;
    font: inherit;
    font-size: 13.5px;
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
}

.admin-pop a:hover,
.admin-pop .admin-mi:hover { background: var(--sunken); }

.admin-pop a .admin-icon,
.admin-pop .admin-mi .admin-icon {
    width: 16px;
    height: 16px;
    color: var(--muted);
}

.admin-pop hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 6px 0;
}

.admin-mi.is-danger,
.admin-pop .is-danger { color: var(--danger); }

.admin-mi.is-danger .admin-icon { color: var(--danger); }

.admin-pop-meta {
    padding: 8px 10px;
    font-size: 12px;
    color: var(--muted);
    word-break: break-word;
}

.admin-pop-meta b {
    display: block;
    color: var(--text);
    font-size: 13.5px;
}

.admin-pop-empty {
    margin: 0;
    padding: 10px;
    font-size: 13px;
    color: var(--muted);
}

.admin-note {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    align-items: flex-start;
}

.admin-note:hover { background: var(--sunken); }

.admin-note-ic {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.admin-note-ic .admin-icon { width: 15px; height: 15px; }
.admin-note-ic.is-warn { background: var(--warning-bg); color: var(--warning); }
.admin-note-ic.is-bad { background: var(--danger-bg); color: var(--danger); }

.admin-note b {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
}

.admin-note span span {
    display: block;
    font-size: 12px;
    color: var(--muted);
}

.admin-logout-form { margin: 0; }

.admin-logout,
.admin-menu-btn {
    cursor: pointer;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    padding: 7px 12px;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-logout .admin-icon,
.admin-menu-btn .admin-icon {
    color: var(--muted);
}

.admin-logout:hover,
.admin-menu-btn:hover {
    background: var(--surface);
    border-color: #d0d5dd;
}

.admin-logout:hover .admin-icon,
.admin-menu-btn:hover .admin-icon {
    color: var(--text);
}

.admin-body {
    display: flex;
    flex: 1;
    min-height: 0;
}

.admin-sidebar {
    flex-shrink: 0;
    width: var(--sidebar-w);
    background: var(--surface);
    color: var(--text);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width var(--ease);
}

.admin-sidebar nav {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 10px 10px 12px;
    gap: 0;
}

.admin-nav-grp { margin-top: 14px; }
.admin-nav-grp:first-child { margin-top: 2px; }

.admin-nav-grp-title {
    margin: 0;
    padding: 0 10px 6px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
    white-space: nowrap;
}

.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: 11px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: var(--muted);
    white-space: nowrap;
    position: relative;
}

.admin-nav-lbl {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-sidebar a .admin-icon { color: inherit; }

.admin-sidebar a:hover {
    background: var(--sunken);
    color: var(--text);
}

.admin-sidebar a.is-current {
    background: var(--accent-soft);
    color: var(--accent-ink);
    font-weight: 600;
    box-shadow: none;
}

.admin-sidebar a.is-current .admin-icon { color: var(--accent-ink); }
.admin-sidebar a.is-open {
    color: var(--accent-ink);
    font-weight: 600;
}
.admin-sidebar a.is-open .admin-icon { color: var(--accent-ink); }
.admin-nav-group { display: flex; flex-direction: column; gap: 2px; }
.admin-nav-sublist {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0 4px 6px 18px;
    padding: 4px;
    border-left: 1px solid var(--border);
}
.admin-sidebar a.admin-nav-sub {
    height: 32px;
    padding: 0 10px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--muted);
}
.admin-sidebar a.admin-nav-sub.is-current {
    box-shadow: none;
    color: var(--accent-ink);
}
.admin-nav-sublabel {
    display: block;
    padding: 8px 10px 4px;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6a7a8c;
}
.admin-nav-sublabel.is-open { color: var(--accent-ink); }
.admin-nav-sublist-nested {
    margin: 0 4px 4px 12px;
    padding: 0 0 2px 6px;
    border-left-color: #c5dce6;
}
.admin-nav-count,
.nav-count {
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--warning-bg);
    color: var(--warning);
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    display: grid;
    place-items: center;
}
.admin-nav-count.is-warn { background: var(--warning-bg); color: var(--warning); }
.admin-nav-count.is-bad { background: var(--danger-bg); color: var(--danger); }
.admin-sidebar a.is-current .admin-nav-count,
.settings-tabs a.is-current .nav-count {
    background: #fff;
    color: var(--warning);
}

.admin-side-foot {
    border-top: 1px solid var(--border);
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.admin-side-ver {
    font-size: 11.5px;
    color: var(--muted);
    white-space: nowrap;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 4px;
}

.admin-collapse-btn .admin-icon { transition: transform var(--ease); }

@media (min-width: 961px) {
    .admin.is-collapsed .admin-sidebar { width: var(--sidebar-rail); }
    .admin.is-collapsed .admin-nav-grp-title,
    .admin.is-collapsed .admin-nav-lbl,
    .admin.is-collapsed .admin-side-ver,
    .admin.is-collapsed .admin-nav-sublist { display: none; }
    .admin.is-collapsed .admin-nav-grp {
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid var(--border);
    }
    .admin.is-collapsed .admin-nav-grp:first-child {
        border-top: 0;
        padding-top: 0;
    }
    .admin.is-collapsed .admin-sidebar a {
        justify-content: center;
        padding: 0;
        gap: 0;
    }
    .admin.is-collapsed .admin-sidebar a .admin-nav-count {
        position: absolute;
        top: 3px;
        right: 6px;
        min-width: 9px;
        width: 9px;
        height: 9px;
        padding: 0;
        font-size: 0;
        border: 2px solid var(--surface);
        line-height: 0;
    }
    .admin.is-collapsed .admin-sidebar a .admin-nav-count.is-warn { background: var(--warning); }
    .admin.is-collapsed .admin-sidebar a .admin-nav-count.is-bad { background: var(--danger); }
    .admin.is-collapsed .admin-side-foot { justify-content: center; }
    .admin.is-collapsed .admin-collapse-btn .admin-icon { transform: rotate(180deg); }
}

.admin-main {
    flex: 1;
    min-width: 0;
    min-height: 0;
    overflow: auto;
    background: var(--bg);
    color: var(--text);
}

.map-stage {
    position: relative;
    flex: 1;
    min-width: 0;
    min-height: 0;
    background: #0e1418;
}

.admin-main.is-map {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.scan-krookie {
    display: flex;
    flex: 1;
    min-height: 0;
    background: var(--surface);
}
.scan-side {
    width: min(400px, 34%);
    flex-shrink: 0;
    padding: 22px 20px;
    overflow: auto;
    border-right: 1px solid var(--border);
    background: #fff;
}
.scan-title {
    margin: 0 0 4px;
    font-size: 1.25rem;
    font-weight: 750;
}
.scan-sub {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 0.9rem;
}
.scan-map-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
    min-height: 0;
}
#scanMap {
    width: 100%;
    height: 100%;
    background: #dce3e8;
}
.scan-map-fallback {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    margin: 0;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 0.85rem;
}
.scan-krookie-thumb {
    display: block;
    width: 88px;
    height: 88px;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: 6px;
    margin: 10px 0 0;
}
.scan-result {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.scan-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.scan-result-head h2 {
    margin: 0;
    font-size: 1rem;
}
.scan-result-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.scan-result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.scan-result-table th,
.scan-result-table td {
    border-bottom: 1px solid var(--border);
    padding: 6px 4px;
    text-align: left;
}
.scan-result-table th { color: var(--muted); font-weight: 650; }

@media (max-width: 800px) {
    .scan-krookie { flex-direction: column; }
    .scan-side {
        width: 100%;
        max-height: 46%;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }
}

.dash {
    padding: var(--space-5) var(--space-6);
    width: 100%;
    max-width: none;
}

.dash-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-4);
    margin: 0 0 var(--space-5);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border);
}

.dash-head-copy {
    min-width: 0;
}

.dash-head h1 {
    margin: 0 0 4px;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.dash-lede {
    color: var(--muted);
    margin: 0;
    font-size: 0.92rem;
}

.dash-head-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.dash-flag {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.dash-flag-warn {
    background: var(--warning-bg);
    color: var(--warning);
}

.dash-flag-warn:hover { filter: brightness(0.97); }

.dash-flag-alert {
    background: var(--danger-bg);
    color: var(--danger);
}

.dash-flag-alert:hover { filter: brightness(0.97); }

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.kpi {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 16px 14px;
    box-shadow: var(--shadow);
}

.kpi-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.kpi-ico {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent);
    display: grid;
    place-items: center;
}

.kpi h2 {
    margin: 0;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    font-weight: 650;
}

.kpi .kpi-num,
.kpi p.kpi-num {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.kpi small { color: var(--muted); font-size: 0.78rem; font-weight: 400; display: block; margin-top: 6px; }

a.kpi {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}
a.kpi:hover {
    border-color: #c5dce6;
    box-shadow: var(--shadow);
}
a.kpi.kpi-warn { border-color: #f2d6a2; }
a.kpi.kpi-alert { border-color: #f0b8b4; }

.dash-status-line {
    margin: 8px 0 0;
    font-size: 0.86rem;
    color: var(--muted);
}
.dash-status-line strong { color: var(--text); font-weight: 650; }

.dash-ops {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-4);
    min-width: 0;
}
.dash-ops > .dash-panel { margin-bottom: 0; min-width: 0; }

.dash-sub {
    margin: 16px 0 8px;
    font-size: 0.82rem;
    font-weight: 650;
}
.dash-sub:first-of-type { margin-top: 0; }

.dash-queue {
    list-style: none;
    margin: 0;
    padding: 0;
}
.dash-queue li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--border);
    min-width: 0;
}
.dash-queue li:first-child { border-top: 0; padding-top: 0; }
.dash-queue li > div { min-width: 0; flex: 1 1 auto; }
.dash-queue a { color: var(--accent); font-weight: 600; text-decoration: none; }
.dash-queue a:hover { text-decoration: underline; }
.dash-queue .props-act { flex-shrink: 0; text-decoration: none; white-space: nowrap; }
.dash-queue .props-act:hover { text-decoration: none; }
.dash-more { margin: 10px 0 0; font-size: 0.85rem; }
.dash-more a { color: var(--accent); font-weight: 600; text-decoration: none; }
.dash-more a:hover { text-decoration: underline; }

.dash-growth {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-3);
}
.dash-growth article h3 {
    margin: 0 0 6px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}
.dash-growth .kpi-num { font-size: 1.4rem; }
.dash-growth small { display: block; margin-top: 4px; color: var(--muted); font-size: 0.78rem; }

.dash-bars { list-style: none; margin: 0; padding: 0; }
.dash-bars li {
    display: grid;
    grid-template-columns: minmax(90px, 160px) minmax(0, 1fr) 40px;
    gap: 10px;
    align-items: center;
    margin: 0 0 8px;
    font-size: 0.85rem;
}
.dash-bar-label { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-bar-track {
    height: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
}
.dash-bar-track span {
    display: block;
    height: 100%;
    background: var(--accent);
}
.dash-bar-count { text-align: right; color: var(--muted); font-weight: 650; }
.dash-project-badges a { text-decoration: none; }

@media (max-width: 800px) {
    .dash-ops { grid-template-columns: 1fr; }
}

.dash-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-4) var(--space-5);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow);
}

.dash-panel h2 { margin: 0 0 14px; font-size: 0.95rem; font-weight: 650; }
.muted { color: var(--muted); margin: 0; }

.activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.activity-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--border);
}

.activity-row:first-child { border-top: 0; padding-top: 0; }
.activity-row:last-child { padding-bottom: 2px; }

.activity-ico {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg);
    color: var(--muted);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.activity-body { min-width: 0; flex: 1; }
.activity-desc {
    margin: 0 0 3px;
    font-size: 0.88rem;
    font-weight: 550;
    color: var(--text);
}
.activity-meta {
    margin: 0;
    font-size: 0.78rem;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.qa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    gap: 10px;
}

.qa-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.86rem;
}

.qa-card .admin-icon { color: var(--accent); }
.qa-card:hover {
    border-color: #c5dce6;
    background: var(--accent-soft);
    box-shadow: var(--shadow);
}

.dash-actions a {
    display: inline-block;
    margin-top: 4px;
    margin-right: 8px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.props-page { max-width: none; }

.props-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-2);
}

.btn-add {
    cursor: not-allowed;
    border: 0;
    border-radius: var(--radius-sm);
    background: #e5e7eb;
    color: #98a2b3;
    padding: 9px 12px;
    font: inherit;
    font-weight: 600;
    font-size: 0.9rem;
}

a.btn-add {
    cursor: pointer;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    display: inline-block;
}

.props-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    align-items: end;
    margin: 0 0 var(--space-4);
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.props-filters label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.72rem;
    color: var(--muted);
    font-weight: 650;
    letter-spacing: 0.02em;
}

.props-filters input,
.props-filters select {
    min-width: 140px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 400;
}

.props-filters input:focus,
.props-filters select:focus,
.prop-form input:focus,
.prop-form select:focus,
.prop-form textarea:focus,
.login-panel input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
    outline: none;
}

.props-filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.props-filter-actions .props-act,
.props-filter-actions .props-filter-go {
    margin: 0;
    text-decoration: none;
    white-space: nowrap;
}

.props-filter-go {
    cursor: pointer;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff;
    padding: 8px 14px;
    font: inherit;
    font-weight: 600;
    font-size: 0.9rem;
}

.props-filter-go:hover,
.props-act:hover,
.dash-actions a:hover,
.login-submit:hover {
    filter: brightness(0.96);
}

.props-empty {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 20px;
    text-align: center;
    box-shadow: var(--shadow);
}
.props-empty p {
    margin: 0 0 6px;
    font-weight: 600;
}
.props-empty .muted {
    margin: 0;
}

.dash-empty {
    box-shadow: none;
    padding: 20px;
}

.props-table-wrap {
    overflow-x: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.props-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    min-width: 960px;
}

.props-table th,
.props-table td {
    text-align: left;
    padding: 11px 14px;
    border-bottom: 1px solid #eef1f4;
    vertical-align: top;
    white-space: nowrap;
}

.props-table th {
    color: var(--muted);
    font-weight: 650;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #fafbfc;
}

.props-table tbody tr:hover td { background: #fafbfc; }

.props-table td strong {
    display: block;
    white-space: normal;
    max-width: 220px;
}

.props-cell-trim {
    max-width: 200px;
}

.props-cell-trim span {
    display: block;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: default;
}

.props-sub {
    color: var(--muted);
    font-size: 0.78rem;
    margin-top: 2px;
    white-space: normal;
}
.props-list-table td.props-name {
    max-width: 280px;
}
.props-list-table td.props-name .props-name-line {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.props-list-table td.props-name strong {
    display: inline;
    max-width: none;
    white-space: nowrap;
}
.props-list-table td.props-name .props-sub {
    display: inline;
    margin: 0;
    white-space: nowrap;
}
.props-list-table td.props-list-photo {
    width: 56px;
    padding-top: 8px;
    padding-bottom: 8px;
    vertical-align: middle;
}
.props-list-table td.props-list-photo .user-avatar {
    width: 40px;
    height: 40px;
    font-size: 0.78rem;
}
.props-list-table .svc-acts-cell {
    white-space: nowrap;
    width: 1%;
    vertical-align: middle;
}
.props-list-table .svc-acts {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.props-list-table .svc-acts .props-act {
    white-space: nowrap;
    flex-shrink: 0;
}

.props-table a { color: var(--accent); font-weight: 600; text-decoration: none; }
.props-table a:hover { text-decoration: underline; }
.props-table a.props-act,
.props-table a.props-act:hover {
    color: #fff;
    text-decoration: none;
}
.props-table tr:last-child td { border-bottom: 0; }

.badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 650;
}

.badge-draft { background: #f2f4f7; color: #475467; }
.badge-pending { background: var(--warning-bg); color: var(--warning); }
.badge-approved { background: var(--info-bg); color: var(--info); }
.badge-published { background: var(--success-bg); color: var(--success); }
.badge-rejected { background: var(--danger-bg); color: var(--danger); }
.badge-sold, .badge-rented { background: #ecfeff; color: #0e7490; }
.badge-archived { background: #f2f4f7; color: #667085; }
.badge-open { background: var(--warning-bg); color: var(--warning); }
.badge-under_review { background: var(--info-bg); color: var(--info); }
.badge-escalated { background: var(--danger-bg); color: var(--danger); }
.badge-resolved { background: var(--success-bg); color: var(--success); }
.badge-dismissed { background: #f2f4f7; color: #475467; }
.badge-pri-low { background: #f2f4f7; color: #475467; }
.badge-pri-normal { background: var(--info-bg); color: var(--info); }
.badge-pri-high { background: var(--warning-bg); color: var(--warning); }
.badge-pri-critical { background: var(--danger-bg); color: var(--danger); }
.badge-active { background: var(--success-bg); color: var(--success); }
.badge-inactive { background: #f2f4f7; color: #475467; }
.badge-suspended { background: var(--danger-bg); color: var(--danger); }
.badge-deleted { background: #f2f4f7; color: #475467; }
.badge-verified { background: var(--success-bg); color: var(--success); }
.badge-unverified { background: #f2f4f7; color: #475467; }
.badge-individual { background: var(--info-bg); color: var(--info); }
.badge-agency { background: #eef2ff; color: #3730a3; }
.badge-not_submitted { background: #f2f4f7; color: #475467; }
.badge-more_info { background: var(--warning-bg); color: var(--warning); }

.user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    overflow: hidden;
    vertical-align: middle;
}
.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.user-avatar-btn {
    padding: 0;
    border: 0;
    cursor: zoom-in;
}
.user-avatar-lg { width: 48px; height: 48px; font-size: 0.95rem; }
.user-avatar-xl { width: 96px; height: 96px; font-size: 1.4rem; }
.user-show-title { display: flex; align-items: center; gap: 12px; }
.user-show.fu-page .dash-panel + .dash-panel,
.user-show.fu-page .pv-facts + .dash-panel,
.user-show.fu-page .dash-panel + .fu-grid,
.user-show.fu-page .fu-grid + .dash-panel { margin-top: var(--space-4); }
.user-show .user-show-grid { align-items: start; }
.user-show .user-show-grid .dash-panel { margin-bottom: 0; }
.user-show .user-show-head {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
    gap: 24px 32px;
    align-items: start;
}
.user-show .user-show-hero {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    min-width: 0;
}
.user-show .user-show-copy { min-width: 0; }
.user-show .user-show-copy h1 {
    margin: 0 0 4px;
    font-size: 1.45rem;
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.user-show .user-show-copy .dash-lede { margin: 0 0 10px; }
.user-show .user-show-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.user-show .user-show-meta { margin: 0; }
.user-show .user-avatar-xl {
    width: 108px;
    height: 108px;
    font-size: 1.5rem;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px var(--border);
    flex: 0 0 108px;
}
.user-show .user-show-toolbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 0 16px;
}
.user-show .user-show-toolbar form { display: inline; margin: 0; }
.user-show .user-show-acts {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 16px;
}
.user-show .user-suspend {
    display: grid;
    gap: 10px;
    max-width: 560px;
    margin: 0;
}
.user-show .user-suspend label { margin: 0; }
.user-show .user-agency-form {
    display: grid;
    gap: 12px;
    margin: 16px 0 0;
}
.user-show .user-agency-form .fu-grid { margin: 0; }
.user-show .user-listings .props-table-wrap { margin-top: 4px; }
@media (max-width: 900px) {
    .user-show .user-show-head,
    .user-show .user-show-grid { grid-template-columns: 1fr; }
}
.user-photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    place-items: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.88);
}
.user-photo-lightbox.is-open {
    display: grid;
}
.user-photo-lightbox img {
    max-width: min(96vw, 1200px);
    max-height: 92vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.user-photo-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    border: 0;
    border-radius: 10px;
    padding: 8px 12px;
    background: #fff;
    color: #111827;
    font-weight: 700;
    cursor: pointer;
}

.co-logo {
    max-width: 160px;
    max-height: 80px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--bg);
    padding: 6px;
}

.props-pager {
    display: flex;
    justify-content: flex-start;
    margin-top: 12px;
}

.props-pager-bar {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: var(--shadow);
}

.props-pager-pages {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.props-pager-nav {
    color: var(--accent);
    font-weight: 600;
    font-size: 12px;
    line-height: 1;
    text-decoration: none;
    padding: 5px 6px;
    white-space: nowrap;
    transition: color var(--ease);
}

.props-pager-nav:hover {
    color: var(--accent-ink);
}

.props-pager-nav.is-disabled {
    color: #9BB8C0;
    pointer-events: none;
}

.props-pager-page {
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    color: var(--accent);
    background: var(--accent-soft);
    text-decoration: none;
    transition: background-color var(--ease), color var(--ease), box-shadow var(--ease);
}

.props-pager-page:hover {
    background: #d4e8ed;
    color: var(--accent-ink);
}

.props-pager-page.is-current {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 6px rgba(23, 120, 143, 0.28);
}

.props-pager-page.is-current:hover {
    background: var(--accent-ink);
    color: #fff;
}

.props-pager-ellipsis {
    color: #8AA8B0;
    font-weight: 700;
    padding: 0 2px;
    font-size: 12px;
    letter-spacing: 0.08em;
}

@media (max-width: 640px) {
    .props-pager-bar {
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 16px;
        gap: 4px;
    }
}

.props-back { margin: 0 0 12px; }
.props-back a { color: var(--accent); text-decoration: none; font-size: 0.9rem; font-weight: 550; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.record-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 12px;
}

.record-nav-row .props-back { margin: 0; }

.record-nav {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 6px 3px 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: var(--shadow);
    margin-inline-start: auto;
}

.record-nav-count {
    font-weight: 600;
    font-size: 12px;
    color: var(--accent-ink);
    padding: 0 6px 0 2px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.record-nav-btn {
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
    color: #fff;
    background: var(--accent);
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(23, 120, 143, 0.28);
}

.record-nav-btn:hover {
    background: var(--accent-ink);
    color: #fff;
}

.record-nav-btn.is-disabled {
    background: var(--accent-soft);
    color: #9BB8C0;
    box-shadow: none;
    pointer-events: none;
}

[dir="rtl"] .record-nav-btn {
    transform: scaleX(-1);
}

@media (max-width: 640px) {
    .record-nav-row {
        align-items: flex-start;
    }
}

.props-dl {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 8px 16px;
    margin: 0;
}

.props-dl dt { color: var(--muted); font-size: 0.82rem; }
.props-dl dd { margin: 0; }

.props-pre { white-space: pre-wrap; word-break: break-word; }

.props-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.props-act {
    cursor: pointer;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff;
    padding: 8px 12px;
    font: inherit;
    font-weight: 600;
    font-size: 0.85rem;
}

.props-act-reject, .props-act-archive { background: #667085; }
.props-act-sold, .props-act-rented { background: #0e7490; }

a.props-act { text-decoration: none; display: inline-block; }

.prop-form label {
    display: block;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 650;
}

.prop-form input,
.prop-form select,
.prop-form textarea {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-weight: 400;
    font-size: 0.95rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.contact-phone-box { margin-top: 12px; }
.contact-phone-label {
    margin: 10px 0 6px;
    font-size: 0.82rem;
    font-weight: 650;
    color: var(--muted);
}
.phone-prefix-wrap {
    display: flex;
    align-items: stretch;
}
.phone-prefix {
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-inline-end: 0;
    background: var(--bg);
    color: var(--text);
    font-weight: 700;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.phone-prefix-wrap input {
    border-start-start-radius: 0;
    border-end-start-radius: 0;
}

.field-err { color: var(--danger); font-weight: 500; font-size: 0.8rem; display: block; margin-top: 4px; }
.form-notice { background: var(--success-bg); color: var(--success); border-radius: var(--radius-sm); padding: 10px 12px; }
.form-warn { color: var(--warning); font-size: 0.88rem; }
.form-warn a { color: var(--accent); }

.locate-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 16px 0 12px;
}
@media (max-width: 900px) {
    .locate-grid { grid-template-columns: 1fr; }
}
.locate-title {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 650;
}
.locate-tabs {
    display: flex;
    gap: 22px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 14px;
}
.locate-tab {
    background: none;
    border: 0;
    padding: 8px 0;
    margin-bottom: -1px;
    font: inherit;
    font-weight: 650;
    color: var(--muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
}
.locate-tab.is-on {
    color: #d32f2f;
    border-bottom-color: #d32f2f;
}
.krookie-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    border: 2px dashed #c5c9d0;
    border-radius: 8px;
    background: #f7f8fa;
    color: var(--muted);
    cursor: pointer;
    text-align: center;
    padding: 24px;
    gap: 8px;
}
.krookie-drop.is-over {
    border-color: #d32f2f;
    background: #fff5f5;
}
.krookie-arrow { font-size: 1.7rem; line-height: 1; }
.krookie-preview {
    width: 100%;
    max-height: 140px;
    object-fit: contain;
    border-radius: 6px;
}
.locate-map-wrap { position: relative; }
#locateMap {
    width: 100%;
    height: 360px;
    border-radius: 8px;
    background: #dce3e8;
}
.locate-map-fallback { margin: 8px 0 0; }
.coord-help {
    margin: 0 0 12px;
    font-size: 0.85rem;
    color: var(--muted);
}
.coord-rows { display: flex; flex-direction: column; gap: 8px; }
.coord-row {
    display: grid;
    grid-template-columns: 28px 1fr 1fr 28px;
    gap: 8px;
    align-items: end;
}
.coord-num {
    color: var(--muted);
    font-weight: 700;
    padding-bottom: 10px;
    text-align: center;
}
.coord-remove {
    background: none;
    border: 0;
    color: var(--muted);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0 8px;
}
.coord-remove:hover { color: var(--danger); }
.coord-add-wrap { margin: 10px 0 0; }
.coord-proj { display: block; margin-top: 12px; }
.locate-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}
.locate-btn {
    background: #d32f2f;
    color: #fff;
    border: 0;
    border-radius: var(--radius-sm);
    padding: 9px 22px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.locate-btn:hover { background: #b71c1c; }

.plot-sel {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin: 10px 0;
}
.plot-sel h3 { margin: 0 0 8px; font-size: 0.95rem; }
.plot-sel p { margin: 0 0 4px; color: var(--text); font-size: 0.9rem; }

.img-list {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.img-list li {
    width: 140px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px;
}
.img-list img { width: 100%; height: 90px; object-fit: cover; border-radius: 6px; display: block; }
.img-list-show li { width: 220px; }
.img-list-show img { height: 160px; }
.img-list-show a { display: block; }
.img-btns { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.img-btns .props-act { padding: 4px 6px; font-size: 0.72rem; }
.img-add-label { display: block; margin: 0 0 8px; }
.img-pick {
    position: relative;
}
.img-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: rgba(21, 32, 51, 0.78);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}
.img-remove:hover,
.img-remove:focus {
    background: #b42318;
    color: #fff;
}
.img-pick.is-cover {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(13, 110, 126, 0.28);
}
.img-cover-pick {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 0;
    font-size: 0.78rem;
    font-weight: 650;
    color: var(--text);
    cursor: pointer;
}
.img-cover-pick input { margin: 0; }

.audit-list { margin: 0; padding-left: 18px; color: var(--muted); font-size: 0.85rem; }

.admin-drawer-backdrop {
    display: none;
}

.login-body {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100%;
    min-height: 100dvh;
    padding: 32px 20px;
    background: #0b1c24;
    overflow: hidden;
}

.login-bg {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(8, 22, 30, 0.72) 0%, rgba(8, 22, 30, 0.38) 42%, rgba(11, 28, 36, 0.55) 100%),
        url("../images/login-bg.jpg") center / cover no-repeat;
    transform: scale(1.04);
}

.login-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 22% 40%, rgba(45, 143, 176, 0.18), transparent 46%);
    pointer-events: none;
}

.login-shell {
    position: relative;
    z-index: 1;
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 48px;
    align-items: center;
}

.login-hero {
    color: #f6f8fa;
    max-width: 460px;
    padding: 8px 8px 8px 4px;
}

.login-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    box-shadow: 0 10px 28px rgba(8, 22, 30, 0.22);
}

.login-kicker {
    margin: 0 0 8px;
    color: #b7d7e4;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.login-hero-title {
    margin: 0 0 12px;
    font-size: clamp(1.8rem, 3.4vw, 2.55rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.15;
    text-wrap: balance;
}

.login-hero-copy {
    margin: 0;
    max-width: 38ch;
    color: rgba(246, 248, 250, 0.82);
    font-size: 1.02rem;
    line-height: 1.55;
}

.login-panel {
    width: min(420px, 100%);
    justify-self: end;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    border-radius: 20px;
    padding: 34px 30px 30px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 24px 60px rgba(8, 22, 30, 0.32);
    backdrop-filter: blur(16px);
}

.login-brand {
    margin: 0 0 6px;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-panel h1 { margin: 0 0 6px; font-size: 1.55rem; letter-spacing: -0.03em; }
.login-lede { margin: 0 0 22px; color: var(--muted); font-size: 0.92rem; }

.login-panel label {
    display: block;
    margin-bottom: 14px;
    font-size: 0.82rem;
    color: var(--text);
    font-weight: 650;
}

.login-panel input {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fbfcfd;
    color: var(--text);
    font: inherit;
    font-size: 16px;
}

.login-panel input::placeholder { color: #98a2b3; }

.pw-row { display: flex; gap: 8px; align-items: stretch; }
.pw-row input { flex: 1; }

.pw-toggle {
    cursor: pointer;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--muted);
    padding: 8px 12px;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 650;
    align-self: end;
    margin-bottom: 0;
}

.pw-toggle:hover {
    color: var(--text);
    background: var(--surface);
}

.login-submit {
    width: 100%;
    cursor: pointer;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff;
    padding: 13px;
    font: inherit;
    font-weight: 650;
    margin-top: 6px;
    box-shadow: 0 8px 18px rgba(45, 143, 176, 0.28);
}

.login-submit:hover {
    filter: brightness(0.97);
    transform: translateY(-1px);
}

.login-error {
    background: var(--danger-bg);
    color: var(--danger);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 0.9rem;
    margin: 0 0 16px;
}

.mfa-code-input {
    letter-spacing: 0.35em;
    font-variant-numeric: tabular-nums;
    text-align: center;
    font-size: 1.2rem !important;
}

.mfa-recovery-input,
.mfa-manual-key,
.mfa-uri {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.mfa-manual-key,
.mfa-uri {
    margin: 0 0 14px;
    padding: 10px 12px;
    background: #f4f6f8;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    word-break: break-all;
    font-size: 0.85rem;
}

.mfa-copy-btn {
    margin: 0 0 16px;
    max-width: 220px;
}

.mfa-key-label,
.mfa-uri-label {
    margin: 0 0 6px;
    font-size: 0.78rem;
    font-weight: 650;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.mfa-steps {
    margin: 0 0 18px;
    padding-left: 18px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.login-secondary,
.login-secondary-link {
    display: block;
    width: 100%;
    margin-top: 10px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    padding: 11px;
    font: inherit;
    font-weight: 650;
}

.login-secondary:hover,
.login-secondary-link:hover {
    background: var(--surface);
}

.login-text-btn {
    display: block;
    width: 100%;
    margin-top: 8px;
    cursor: pointer;
    border: 0;
    background: transparent;
    color: var(--muted);
    padding: 10px;
    font: inherit;
    font-weight: 650;
}

.login-text-btn:hover { color: var(--text); }

.mfa-recovery-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 12px;
    background: #f4f6f8;
    border-radius: var(--radius-sm);
    display: grid;
    gap: 6px;
}

.mfa-recovery-list code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92rem;
}

.mfa-recovery-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

@media (max-width: 800px) {
    .mfa-recovery-actions { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
    .login-body { padding: 20px 16px 28px; align-items: end; }
    .login-shell {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .login-hero {
        max-width: none;
        text-align: center;
        padding: 8px 4px 0;
        order: 1;
    }
    .login-mark { margin-left: auto; margin-right: auto; }
    .login-hero-copy { margin-left: auto; margin-right: auto; }
    .login-panel {
        justify-self: stretch;
        width: 100%;
        padding: 26px 22px 22px;
        order: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-bg { transform: none; }
    .login-submit:hover { transform: none; }
}

.settings-nav {
    margin: 0 0 16px;
    padding: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
}
.settings-main-tabs { margin-bottom: 0; }
.settings-main-tabs a { font-weight: 650; }
.settings-nav .settings-main-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border-color: transparent;
    color: var(--muted);
    border-radius: 999px;
}
.settings-nav .settings-tabs a {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
}
.settings-nav .settings-tabs a .admin-icon {
    display: inline-block;
    flex-shrink: 0;
    vertical-align: middle;
}
.settings-nav .settings-tabs a span {
    display: inline;
    white-space: nowrap;
}
.settings-nav .nav-count { margin-left: 0; }
.settings-nav .settings-main-tabs a:hover {
    background: var(--bg);
    color: var(--text);
    border-color: transparent;
}
.settings-nav .settings-main-tabs a.is-current {
    background: var(--accent);
    color: #fff;
}
.settings-nav .settings-tabs + .settings-tabs {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid var(--border);
}
.settings-nav .settings-tabs:not(.settings-main-tabs) a {
    background: var(--bg);
    color: var(--muted);
}
.settings-nav .settings-tabs:not(.settings-main-tabs) a:hover {
    color: var(--text);
    border-color: var(--border);
}
.settings-nav .settings-tabs:not(.settings-main-tabs) a.is-current {
    background: var(--accent);
    color: #fff;
}

.settings-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin: 4px 0 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.settings-nav .settings-tabs { margin: 0; }

.settings-tabs a {
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--bg);
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    white-space: nowrap;
    border: 1px solid transparent;
}

.settings-tabs a:hover { border-color: var(--border); }

.settings-tabs a.is-current {
    background: var(--accent);
    color: #fff;
}

.prop-form .settings-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    display: inline-block;
    margin: 8px 0 0;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface);
    accent-color: var(--accent);
}

.settings-table {
    min-width: 0;
}

.inline-acts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.inline-acts .props-act {
    padding: 4px 8px;
    font-size: 0.75rem;
}

.props-act-danger {
    background: var(--danger);
}

.props-act-ghost {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}
.props-act-ghost:hover {
    border-color: #c5dce6;
    background: var(--accent-soft);
    color: var(--accent);
    filter: none;
}

.pv-page { max-width: 1180px; }

.pv-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow);
}
.pv-hero h1 { margin: 0 0 8px; font-size: 1.4rem; }
.pv-hero-kicker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.pv-code {
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: 0.02em;
}
.pv-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
}
.pv-chips > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
}
.pv-hero-acts { margin-top: 0; flex-shrink: 0; }
.pv-inline-form { display: inline; margin: 0; }

.pv-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}
.pv-fact {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    box-shadow: var(--shadow);
}
.pv-fact h2 {
    margin: 0 0 6px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    font-weight: 650;
}
.pv-fact p {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.pv-gallery-panel { padding-bottom: 16px; }
.pv-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: 10px;
}
.pv-gallery-solo {
    grid-template-columns: 1fr;
}
.pv-cover {
    margin: 0;
    position: relative;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    min-height: 220px;
}
.pv-cover img {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
}
.pv-cover .badge {
    position: absolute;
    top: 10px;
    left: 10px;
}
.pv-thumbs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 280px;
    overflow: auto;
}
.pv-thumbs li {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg);
    flex-shrink: 0;
}
.pv-thumbs img {
    display: block;
    width: 100%;
    height: 86px;
    object-fit: cover;
}
.pv-thumbs .badge {
    position: absolute;
    top: 6px;
    left: 6px;
}

.pv-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: var(--space-4);
    align-items: start;
}
.pv-side { min-width: 0; }
.pv-desc {
    margin: 0 0 16px;
    line-height: 1.55;
    color: var(--text);
}
.pv-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    margin: 0;
}
.pv-fields > div {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
}
.pv-fields dt {
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 650;
    margin: 0 0 4px;
}
.pv-fields dd { margin: 0; font-size: 0.92rem; font-weight: 550; }
.pv-fields-stack { grid-template-columns: 1fr; }
.pv-warn {
    margin: 12px 0 0;
    padding: 10px 12px;
    background: var(--warning-bg);
    border-radius: var(--radius-sm);
}
.pv-suspend { margin-top: 16px; }

@media (max-width: 1024px) {
    .dash { padding: var(--space-4); }
    .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pv-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pv-layout { grid-template-columns: 1fr; }
    .pv-gallery { grid-template-columns: 1fr; }
    .pv-thumbs {
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
    }
    .pv-thumbs li { width: 140px; }
}

.admin-drawer-backdrop { display: none; }

@media (max-width: 960px) {
    .admin-body { position: relative; }
    .admin-sidebar {
        position: fixed;
        z-index: 50;
        top: var(--header-h);
        bottom: 0;
        left: 0;
        width: 280px;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
        border-right: 1px solid var(--border);
        box-shadow: var(--pop);
    }
    .admin.is-drawer-open .admin-sidebar {
        transform: translateX(0);
        width: 280px;
        overflow: hidden;
    }
    .admin.is-collapsed .admin-sidebar {
        width: 280px;
    }
    .admin-drawer-backdrop {
        display: none;
        position: fixed;
        inset: var(--header-h) 0 0 0;
        background: rgba(6, 10, 12, 0.4);
        z-index: 45;
    }
    .admin.is-drawer-open .admin-drawer-backdrop { display: block; }
    .admin-collapse-btn { display: none; }
}

@media (max-width: 800px) {
    .props-dl { grid-template-columns: 1fr; }
    .props-head { flex-direction: column; }
    .pv-hero { flex-direction: column; }
    .pv-fields { grid-template-columns: 1fr; }
    .pv-cover img { height: 200px; }
    .kpi-grid { grid-template-columns: 1fr; }
    .admin-crumb { display: none; }
    .dash-head { flex-direction: column; align-items: flex-start; }
    .settings-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .settings-table {
        min-width: 520px;
    }
}

@media (max-width: 720px) {
    .admin-user-meta,
    .admin-user > .admin-icon { display: none; }
    .admin-user { padding: 0; width: 40px; justify-content: center; }
    .admin-brand-text small { display: none; }
    .admin-brand-text strong { max-width: 140px; }
}

.tax-ico {
    width: 40px;
    color: var(--accent);
    vertical-align: middle;
}
.tax-ico .admin-icon { display: block; }
input[dir="rtl"] { text-align: right; }

.fact-link-box {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin: 0 0 16px;
}
.fact-link-box legend {
    font-weight: 650;
    padding: 0 6px;
}
.prop-form .fact-link-box label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 6px;
    font-size: 0.88rem;
    color: var(--text);
    font-weight: 500;
}
.prop-form .fact-link-box input[type="checkbox"] {
    display: inline-block;
    width: auto;
    margin: 0;
}
.fact-link-sub { padding-inline-start: 22px; }

.fact-group { margin: 16px 0 8px; }
.fact-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px;
    font-size: 0.95rem;
}
.fact-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 0;
}
.prop-form .fact-chip,
.fact-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    width: auto;
}
.prop-form .fact-chip input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.fact-chip:has(input:checked),
.fact-chip.is-on {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.fact-chip .admin-icon { flex-shrink: 0; }
.fact-show-row { margin-bottom: 14px; }
.fact-chips-readonly .fact-chip { cursor: default; }

.detail-field-wide { grid-column: 1 / -1; }
.detail-field-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.detail-input-wrap {
    display: flex;
    align-items: stretch;
    gap: 0;
}
.detail-input-wrap input { flex: 1; }
.detail-suffix {
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-inline-start: 0;
    background: var(--bg);
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 650;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.detail-input-wrap input {
    border-end-end-radius: 0;
    border-start-end-radius: 0;
}

.newpost-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
}
.newpost-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}
.newpost-label {
    margin: 14px 0 8px;
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 650;
}
.newpost-level {
    margin: 14px 0 8px;
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 650;
}
.newpost-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 8px;
}
.newpost-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid var(--accent);
    border-radius: 8px;
    background: #fff;
    color: var(--accent);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    width: auto;
}
.newpost-chip .admin-icon { flex-shrink: 0; }
.newpost-chip[aria-pressed="true"] {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.newpost-chip[hidden] { display: none !important; }
.newpost-review {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin: 0 0 14px;
}
.newpost-review p { margin: 0 0 6px; font-size: 0.9rem; }
.newpost-review p:last-child { margin-bottom: 0; }
.newpost-terms {
    display: flex !important;
    align-items: flex-start;
    gap: 8px;
    color: var(--text) !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
}
.newpost-terms input[type="checkbox"] {
    display: inline-block;
    width: auto;
    margin: 3px 0 0;
}
.props-head .props-actions { margin-top: 0; }

.form-warn-box {
    background: var(--warning-bg);
    color: var(--warning);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin: 0 0 16px;
}
.form-warn-box strong { display: block; margin-bottom: 4px; }
.ntf-status-banners {
    display: grid;
    gap: 8px;
    margin: 0 0 16px;
}
.ntf-status-banner {
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin: 0;
}
.ntf-status-banner strong {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.ntf-status-banner .ntf-status-detail { display: block; margin-top: 4px; }
.ntf-status-banner.is-success { background: var(--success-bg); color: var(--success); }
.ntf-status-banner.is-warning { background: var(--warning-bg); color: var(--warning); }
.ntf-status-banner.is-danger { background: var(--danger-bg); color: var(--danger); }
.ntf-status-note { margin: -8px 0 16px; }
.ntf-form .ntf-status-banner { margin-top: 12px; }
.force-update-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.force-update-toggle input { margin: 0; }
.force-update-state {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--muted);
}
.force-update-state.is-on { color: #0f7a4a; }
.force-update-state.is-off { color: var(--muted); }
.fu-page { max-width: 1180px; }
.fu-page .dash-panel { overflow-x: auto; }
.fu-page .rpt-filters-bar {
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
}
.fu-page .rpt-actions {
    display: grid;
    gap: 14px;
    margin-top: 0;
}
.fu-page .rpt-actions form { margin: 0; }
.fu-page .rpt-actions .prop-form { display: grid; gap: 8px; }
.fu-page .rpt-actions .prop-form label { margin-bottom: 0; }
.fu-page .rpt-kv {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    margin: 4px 0 0;
}
.fu-page .rpt-kv p { margin: 0; line-height: 1.45; }
.fu-page .rpt-kv span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.fu-page .rpt-priority-line { margin: 12px 0 0; }
.fu-page .rpt-desc {
    margin: 14px 0 0;
    padding: 12px 14px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    white-space: pre-wrap;
    word-break: break-word;
}
.fu-page .form-notice strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 6px;
}
@media (max-width: 900px) {
    .fu-page .rpt-kv { grid-template-columns: 1fr; }
}
.fu-page h2 {
    display: flex;
    align-items: center;
    gap: 8px;
}
.fu-page h2 .admin-icon,
.fu-page .badge .admin-icon,
.fu-page .form-warn-box strong .admin-icon,
.fu-page .ntf-status-banner strong .admin-icon,
.fu-page .props-act .admin-icon,
.fu-platform a .admin-icon,
.fu-phone-badge .admin-icon,
.fu-phone-btn .admin-icon,
.admin-modal h2 .admin-icon {
    flex-shrink: 0;
}
.fu-page .pv-fact h2 { gap: 6px; }
.fu-page .form-warn-box strong {
    display: flex;
    align-items: center;
    gap: 8px;
}
.fu-platform a { gap: 8px; }
.fu-platform-label {
    display: inline-flex;
    align-items: center;
    margin-right: 4px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 650;
}
.fu-phone-badge,
.fu-phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.admin-modal h2 {
    display: flex;
    align-items: center;
    gap: 8px;
}
.fu-platform {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}
.fu-platform a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--bg);
    color: var(--muted);
    font-weight: 650;
    text-decoration: none;
}
.fu-platform a:hover {
    color: var(--text);
    border-color: var(--border);
}
.fu-platform a.is-current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.fu-fact-sub {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 650;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fu-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
    gap: var(--space-4);
    align-items: start;
}
.fu-form,
.fu-side {
    display: grid;
    gap: var(--space-4);
    align-content: start;
}
.fu-form .dash-panel,
.fu-side .dash-panel { margin-bottom: 0; }
.fu-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.fu-status-row h2 { margin: 0 0 4px; }
.fu-status-row .muted { margin: 0; }
.fu-status-stack { display: grid; }
.fu-status-stack .fu-status-row {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}
.fu-status-stack .fu-status-row:first-child { padding-top: 0; }
.fu-status-stack .fu-status-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}
.fu-grid-one { grid-template-columns: minmax(0, 1fr); }
.fu-page .fu-grid .muted,
.fu-page .fu-status-stack .muted {
    display: block;
    margin-top: 6px;
    line-height: 1.45;
}
.fu-switch {
    margin: 0;
    display: grid;
    justify-items: end;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted);
}
.fu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}
.fu-save { margin: 16px 0 0; }
.fu-phone {
    position: relative;
    max-width: 280px;
    margin: 16px auto 0;
    padding: 14px 12px 12px;
    border: 3px solid #1c2433;
    border-radius: 38px;
    background: #0b1220;
    box-shadow:
        0 0 0 1px #070b12,
        0 14px 30px rgba(15, 23, 42, 0.28),
        inset 0 0 0 1px #2a3648;
}
.fu-phone-notch {
    display: block;
    width: 78px;
    height: 8px;
    margin: 0 auto 10px;
    border-radius: 999px;
    background: #05080e;
    box-shadow: inset 0 0 0 1px #1a2230;
}
.fu-phone-home {
    display: block;
    width: 52px;
    height: 4px;
    margin: 10px auto 2px;
    border-radius: 999px;
    background: #3a4658;
}
.fu-phone-screen {
    min-height: 260px;
    padding: 22px 18px 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, #163944 0%, #0f5a72 58%, #11708c 100%);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.fu-phone-badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.fu-phone-screen h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}
.fu-phone-screen p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.45;
    font-size: 0.9rem;
}
.fu-phone-btn {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    color: #0f5a72;
    font-size: 0.82rem;
    font-weight: 750;
}
.fu-phone-min {
    display: block;
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.72rem;
    font-weight: 650;
}
@media (max-width: 900px) {
    .fu-layout,
    .fu-grid { grid-template-columns: 1fr; }
    .fu-page .pv-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fu-status-row { flex-direction: column; align-items: flex-start; }
    .fu-switch { justify-items: start; }
}
.admin-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.45);
}
.admin-modal-backdrop.is-open {
    display: grid;
}
.admin-modal {
    width: 100%;
    max-width: 440px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}
.admin-modal h2 {
    margin: 0 0 10px;
    font-size: 1.05rem;
}
.admin-modal p {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.45;
}
.admin-modal-acts {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}
.force-update-note {
    margin: 8px 0 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.55;
}
.force-update-note code {
    font-size: 0.86rem;
}
.force-update-note-block {
    display: block;
    margin-top: 8px;
}
.maintenance-preview {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}
.maintenance-preview strong {
    display: block;
    margin-bottom: 8px;
}
.maintenance-preview p { margin: 0 0 8px; }
.maintenance-preview p:last-child { margin-bottom: 0; }
.fu-page .fu-phone-screen.maintenance-preview {
    background: linear-gradient(180deg, #163944 0%, #0f5a72 58%, #11708c 100%);
    border: 0;
    color: #fff;
}
.fu-page .fu-phone-screen.maintenance-preview strong {
    margin: 0 0 8px;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}
.fu-page .fu-phone-screen.maintenance-preview p {
    color: rgba(255, 255, 255, 0.86);
}
.fu-page .fu-phone-screen.maintenance-preview .fu-phone-min {
    color: rgba(255, 255, 255, 0.62);
}

.agency-badge-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.2;
    white-space: nowrap;
}
.agency-badge-chip .agency-badge-icon { flex: 0 0 auto; }
.agency-color-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1px solid var(--border);
    vertical-align: middle;
    margin-right: 6px;
}
.agency-icon-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.agency-icon-option { margin: 0; }
.agency-icon-option input { position: absolute; opacity: 0; pointer-events: none; }
.agency-icon-option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 76px;
    padding: 10px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    cursor: pointer;
    font-size: 0.78rem;
}
.agency-icon-option input:checked + .agency-icon-option-card {
    border-color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--accent);
    background: var(--accent-soft);
}
.agency-color-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.agency-color-inputs {
    display: flex;
    gap: 8px;
    align-items: center;
}
.agency-color-inputs input[type="color"] {
    width: 48px;
    height: 36px;
    padding: 2px;
    border: 1px solid var(--border);
    background: #fff;
}
.agency-preview-switch { display: flex; gap: 8px; margin-bottom: 12px; }
.agency-preview-switch .is-preview-on {
    background: var(--accent);
    color: #fff;
}
.agency-badge-preview-wrap {
    min-height: 48px;
    display: flex;
    align-items: center;
}
tr.is-inactive td { color: #667085; }
.agency-list-logo {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: #fff;
}
.agency-list-actions {
    white-space: nowrap;
    width: 1%;
}
.agency-list-actions .svc-acts {
    flex-wrap: nowrap;
    white-space: nowrap;
    margin: 0;
}
.agency-list-actions .svc-acts form { display: inline; margin: 0; }
.agency-list-actions .svc-acts .props-act {
    white-space: nowrap;
    flex-shrink: 0;
}
.agency-media {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.agency-logo-full {
    max-width: 160px;
    max-height: 160px;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}
.agency-cover-full {
    width: 100%;
    max-width: 420px;
    max-height: 180px;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}
.agency-about {
    white-space: pre-wrap;
    margin: 0;
    overflow-wrap: anywhere;
    line-height: 1.6;
    color: #3f4c63;
}
.agency-check {
    display: flex;
    align-items: center;
    gap: 8px;
}
.agency-form.fu-page .fu-form { margin-top: 4px; }
.agency-form #locationCascade.form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 16px;
}
.agency-form .agency-field-stack {
    display: grid;
    gap: 8px;
    min-width: 0;
}
.agency-form .agency-field-stack > label { margin-bottom: 0; }
.agency-form .agency-field-stack .agency-check {
    margin: 0;
    font-size: 0.86rem;
    color: var(--muted);
}
.agency-form .agency-badge-picks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
}
.agency-form .agency-badge-picks .agency-check {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
}
.agency-form .sc-media-preview .agency-cover-preview { object-fit: cover; }
.agency-form .fu-save { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; }
@media (max-width: 900px) {
    .agency-form #locationCascade.form-grid { grid-template-columns: 1fr; }
}

.dash.agency-profile {
    max-width: min(1220px, 100%);
    width: 100%;
    min-width: 0;
    container-type: inline-size;
    container-name: agency;
}
.agency-profile .settings-nav .settings-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
}
.agency-hero {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: var(--space-4);
    min-width: 0;
}
.agency-hero-cover {
    position: relative;
    z-index: 0;
    height: 168px;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.16), transparent 42%),
        linear-gradient(135deg, #163944 0%, #2d8fb0 52%, #8fd0de 100%);
}
.agency-hero-cover img,
.agency-hero-cover-empty,
.agency-hero-cover-btn {
    display: block;
    width: 100%;
    height: 168px;
    object-fit: cover;
}
.agency-hero-cover-btn {
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
}
.agency-hero-cover-shade {
    position: absolute;
    z-index: 0;
    inset: auto 0 0;
    height: 72px;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.28));
    pointer-events: none;
}
.agency-hero-body {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px 18px;
    align-items: start;
    padding: 0 22px 18px;
    min-width: 0;
}
.agency-hero-logo {
    position: relative;
    z-index: 3;
    margin-top: -36px;
    min-width: 0;
}
.agency-logo-btn {
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
    border-radius: 20px;
}
.agency-hero-logo .agency-logo-full,
.agency-logo-fallback {
    width: 96px;
    height: 96px;
    max-width: 96px;
    border-radius: 18px;
    border: 4px solid #fff;
    box-shadow: 0 8px 20px rgba(16, 24, 40, 0.12);
    background: #fff;
    object-fit: contain;
}
.agency-logo-fallback {
    display: grid;
    place-items: center;
    font-size: 1.55rem;
    font-weight: 750;
    line-height: 1;
    color: var(--accent);
    background: var(--accent-soft);
}
.agency-hero-copy { min-width: 0; padding-top: 16px; overflow-wrap: anywhere; }
.agency-hero-copy h1 {
    margin: 0;
    font-size: clamp(1.2rem, 2.1vw, 1.55rem);
    letter-spacing: -0.03em;
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.agency-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.agency-hero-ar {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 1rem;
    overflow-wrap: anywhere;
}
.agency-hero-tagline {
    margin: 8px 0 0;
    color: #3f4c63;
    font-size: 0.98rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.agency-hero-assigned .agency-badge-chip {
    white-space: normal;
    max-width: 100%;
}
.agency-meta-chips,
.agency-hero-assigned {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    min-width: 0;
}
.agency-chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f3f6f8;
    border: 1px solid var(--border);
    color: #3f4c63;
    font-size: 0.78rem;
    font-weight: 600;
    overflow-wrap: anywhere;
    white-space: normal;
}
.agency-hero-side {
    display: flex;
    justify-content: flex-end;
    padding-top: 16px;
}
.agency-complete {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px 8px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #f8fafb;
}
.agency-complete-copy {
    display: grid;
    min-width: 0;
    padding-right: 6px;
}
.agency-complete-copy span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}
.agency-complete-copy small { color: #3f4c63; font-size: 0.78rem; font-weight: 650; }
.agency-hero-chrome {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    padding: 10px 16px;
    border-top: 1px solid var(--border);
    background: #f8fafb;
}
.agency-hero-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
}
.agency-hero-toolbar .inline-acts { margin: 0; }
.agency-hero-toolbar .props-act,
.agency-hero-toolbar .inline-acts .props-act {
    white-space: nowrap;
    flex: 0 0 auto;
}
.agency-ring {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: 0 0 52px;
    background: conic-gradient(var(--accent) calc(var(--p) * 1%), #e8eef2 0);
    box-shadow: inset 0 0 0 6px #fff;
}
.agency-ring strong {
    font-size: 0.78rem;
    line-height: 1;
}
.agency-jump {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.agency-jump a {
    flex: 0 0 auto;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 650;
    white-space: nowrap;
}
.agency-jump a:hover { background: var(--accent-soft); }
.agency-profile .kpi-grid.agency-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: var(--space-4);
}
.agency-profile .kpi-grid.agency-kpi-grid .kpi {
    padding: 12px 14px 12px;
}
.agency-profile .kpi-grid.agency-kpi-grid .kpi-num { font-size: 1.45rem; }
.agency-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: var(--space-4);
    align-items: start;
}
.agency-main-col,
.agency-side-col { min-width: 0; }
.agency-profile .dash-panel {
    min-width: 0;
    overflow-wrap: anywhere;
    scroll-margin-top: 76px;
}
.agency-profile .dash-panel > h2,
.agency-section-head h2 {
    display: flex;
    align-items: center;
    gap: 8px;
}
.agency-h2-ico {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: var(--accent-soft);
    color: var(--accent);
    flex: 0 0 26px;
}
.agency-profile .props-dl {
    display: grid;
    grid-template-columns: minmax(140px, 34%) minmax(0, 1fr);
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #fff;
}
.agency-profile .props-dl dt,
.agency-profile .props-dl dd {
    min-width: 0;
    margin: 0;
    padding: 9px 12px;
    overflow-wrap: anywhere;
    word-break: break-word;
    border-bottom: 1px solid var(--border);
}
.agency-profile .props-dl dt {
    background: #f8fafb;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 650;
}
.agency-profile .props-dl dd { font-size: 0.92rem; }
.agency-profile .props-dl dt:nth-last-child(2),
.agency-profile .props-dl dd:last-child { border-bottom: 0; }
.agency-reg-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.agency-reg-tiles article {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #f8fafb;
}
.agency-reg-tiles span {
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 650;
    margin-bottom: 6px;
}
.agency-reg-tiles strong { display: block; font-size: 0.98rem; overflow-wrap: anywhere; word-break: break-word; }
.agency-reg-tiles .agency-vis { margin: 8px 0 0; }
.agency-vis {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    font-style: normal;
    vertical-align: middle;
}
.agency-vis.is-shown { background: var(--success-bg); color: var(--success); }
.agency-vis.is-hidden { background: #f2f4f7; color: #667085; }
.agency-loc-path {
    list-style: none;
    margin: 0;
    padding: 0;
}
.agency-loc-path li {
    position: relative;
    padding: 0 0 14px 18px;
    border-left: 2px solid #d9e6ec;
}
.agency-loc-path li:last-child { padding-bottom: 0; border-left-color: transparent; }
.agency-loc-path li::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.agency-loc-path span {
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 650;
}
.agency-loc-path strong { font-size: 0.95rem; overflow-wrap: anywhere; }
.agency-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.agency-contact-list li {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}
.agency-contact-list li > span {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent);
    display: grid;
    place-items: center;
}
.agency-contact-list small {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 650;
}
.agency-contact-list strong,
.agency-contact-list a {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.agency-owner-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #f8fafb;
    min-width: 0;
}
.agency-owner-copy { flex: 1; min-width: 0; }
.agency-owner-card strong { display: block; }
.agency-panel-act { margin: 14px 0 0; }
.agency-badge-list { display: grid; gap: 10px; }
.agency-badge-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}
.agency-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.agency-section-head h2 { margin: 0; }
.agency-nested-stats {
    padding: 12px 14px;
    margin-bottom: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #f8fafb;
}
.agency-nested-stats h2 { margin-bottom: 10px; }
.agency-nested-stats .props-dl {
    grid-template-columns: minmax(90px, 1fr) minmax(40px, 0.7fr) minmax(90px, 1fr) minmax(40px, 0.7fr);
    background: transparent;
}
.agency-nested-stats .props-dl dt { background: transparent; }
.agency-status-panel { border-top: 3px solid var(--accent); }
.agency-complete-meter {
    height: 8px;
    margin: 0 0 14px;
    border-radius: 999px;
    background: #e8eef2;
    overflow: hidden;
}
.agency-complete-meter span {
    display: block;
    height: 100%;
    width: calc(var(--p) * 1%);
    background: var(--accent);
    border-radius: inherit;
}
.agency-status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.agency-status-tile {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: #f3f6f8;
    border: 1px solid var(--border);
}
.agency-status-tile span {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 650;
    margin-bottom: 4px;
}
.agency-status-tile strong { font-size: 1.05rem; }
.agency-status-tile.is-active,
.agency-status-tile.is-verified { background: var(--success-bg); border-color: #abefc6; }
.agency-status-tile.is-pending { background: var(--warning-bg); border-color: #fedf89; }
.agency-status-tile.is-rejected,
.agency-status-tile.is-suspended,
.agency-status-tile.is-archived { background: var(--danger-bg); border-color: #fecdca; }
.agency-verify-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--border);
}
.agency-verify-history { margin-top: 16px; }
.agency-verify-history h3 { margin: 0 0 8px; font-size: 0.95rem; }
.agency-verify-history ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.agency-verify-event {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #f8fafb;
}
.agency-verify-event strong { display: block; }
.agency-verify-event p { margin: 4px 0; }
.agency-verify-event .muted { font-size: 0.8rem; }
.agency-verify-event.is-rejected { background: var(--danger-bg); border-color: #fecdca; }
.agency-verify-event.is-resubmitted { background: var(--warning-bg); border-color: #fedf89; }
.agency-verify-grid {
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: 12px;
}
.agency-verify-grid label,
.agency-verify-grid select,
.agency-verify-grid textarea { min-width: 0; width: 100%; }
.agency-empty {
    padding: 18px 8px;
    text-align: center;
}

@container agency (max-width: 900px) {
    .agency-layout { grid-template-columns: 1fr; }
    .agency-profile .kpi-grid.agency-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .agency-reg-tiles,
    .agency-verify-grid { grid-template-columns: 1fr; }
}

@container agency (max-width: 720px) {
    .agency-hero-body { grid-template-columns: auto minmax(0, 1fr); }
    .agency-hero-side { grid-column: 1 / -1; justify-content: flex-start; padding-top: 0; }
    .agency-complete { width: 100%; }
    .agency-status-grid { grid-template-columns: 1fr; }
    .agency-profile .props-dl,
    .agency-nested-stats .props-dl { grid-template-columns: minmax(120px, 38%) minmax(0, 1fr); }
    .agency-owner-card { grid-template-columns: auto minmax(0, 1fr); }
    .agency-hero-toolbar { width: 100%; justify-content: flex-start; margin-left: 0; }
}

@container agency (max-width: 520px) {
    .agency-hero-body { grid-template-columns: minmax(0, 1fr); padding-top: 12px; }
    .agency-hero-logo { margin-top: -44px; }
    .agency-profile .kpi-grid.agency-kpi-grid { grid-template-columns: 1fr; }
    .agency-profile .props-dl { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
    .agency-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .agency-profile .kpi-grid.agency-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .agency-reg-tiles,
    .agency-verify-grid { grid-template-columns: 1fr; }
    .agency-hero-body { grid-template-columns: auto minmax(0, 1fr); }
    .agency-hero-side { grid-column: 1 / -1; justify-content: flex-start; padding-top: 0; }
}

@media (max-width: 800px) {
    .agency-hero-cover,
    .agency-hero-cover img,
    .agency-hero-cover-empty,
    .agency-hero-cover-btn { height: 128px; }
    .agency-status-grid { grid-template-columns: 1fr; }
    .agency-profile .props-dl,
    .agency-nested-stats .props-dl { grid-template-columns: minmax(120px, 38%) minmax(0, 1fr); }
}

@media (max-width: 520px) {
    .agency-hero-body { grid-template-columns: minmax(0, 1fr); padding-top: 12px; }
    .agency-hero-logo { margin-top: -44px; }
    .agency-profile .kpi-grid.agency-kpi-grid { grid-template-columns: 1fr; }
    .agency-profile .props-dl { grid-template-columns: 1fr; }
    .agency-owner-card { grid-template-columns: auto minmax(0, 1fr); }
}

.ocr-test-page .locate-tabs { margin-top: 4px; }
.ocr-preview-img,
.ocr-result-preview {
    display: block;
    width: 100%;
    max-width: 640px;
    max-height: 420px;
    object-fit: contain;
    margin: 12px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #f7f8fa;
}
.ocr-preview-img[hidden],
.ocr-result-preview[hidden],
.ocr-thumb[hidden] {
    display: none !important;
}
.ocr-result-top {
    display: grid;
    grid-template-columns: minmax(280px, 1.1fr) minmax(280px, 0.9fr);
    gap: 20px;
    align-items: start;
    margin-top: 8px;
}
.ocr-scan-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 16px 0 4px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #f7f8fa;
}
.ocr-scan-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text, #1f2933);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid transparent;
}
.ocr-scan-nav-btn:hover {
    background: #fff;
    border-color: var(--border);
}
.ocr-scan-nav-btn.is-disabled {
    opacity: 0.4;
    pointer-events: none;
    font-weight: 500;
}
.ocr-scan-nav-current {
    font-weight: 700;
    font-size: 0.95rem;
}
.ocr-result-image-col .ocr-result-preview {
    display: block;
    width: auto;
    max-width: none !important;
    max-height: none !important;
    height: auto;
    margin: 0;
    border: 0;
    object-fit: unset;
    transform-origin: top left;
}
.ocr-result-image-col .ocr-result-preview[hidden] {
    display: none !important;
}
.ocr-result-preview-scaler {
    display: inline-block;
    line-height: 0;
    transform-origin: top left;
}
.ocr-result-image-col .ocr-subhead,
.ocr-result-land-col .ocr-subhead {
    margin-top: 0;
}
.ocr-image-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.ocr-image-head .ocr-subhead {
    margin: 0;
}
.ocr-image-zoom-controls {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ocr-zoom-btn {
    min-width: 36px;
    padding: 4px 10px;
    line-height: 1.2;
    cursor: pointer;
}
.ocr-zoom-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.ocr-zoom-label {
    min-width: 3.2em;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted, #5f6c7b);
}
.ocr-result-preview-wrap {
    margin: 0;
    overflow: auto;
    max-height: 560px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #f7f8fa;
    padding: 8px;
    cursor: grab;
    user-select: none;
}
.ocr-result-preview-wrap.is-dragging {
    cursor: grabbing;
}
.ocr-result-preview-wrap img {
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}
.ocr-result-bottom {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
    gap: 20px;
    align-items: start;
    margin-top: 8px;
}
.ocr-map-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.ocr-map-head .ocr-subhead {
    margin: 0;
}
@media (max-width: 960px) {
    .ocr-result-top,
    .ocr-result-bottom {
        grid-template-columns: 1fr;
    }
}
.ocr-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}
.ocr-subhead { margin-top: 22px; }
.ocr-text-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.ocr-text-head .ocr-subhead { margin-top: 22px; margin-bottom: 0; }
.ocr-raw-text,
.ocr-raw-json {
    margin: 10px 0 0;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #f8fafb;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.82rem;
    line-height: 1.45;
    max-height: 420px;
    overflow: auto;
}
.ocr-json-details {
    margin-top: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    padding: 8px 12px;
}
.ocr-json-details summary {
    cursor: pointer;
    font-weight: 650;
    color: var(--accent);
}
.ocr-json-details .ocr-raw-json {
    border: 0;
    background: #f8fafb;
    max-height: 520px;
}
.ocr-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: #fff;
}
.ocr-history-acts {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    align-items: center;
    white-space: nowrap;
}
.ocr-filename {
    max-width: 11rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.86rem;
}
.ocr-map-head-acts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.props-table tr.is-current-row td {
    background: var(--accent-soft);
}
.ocr-coord-map-wrap {
    margin-top: 16px;
    min-height: 320px;
}
.ocr-coord-map-wrap #scanMap {
    width: 100%;
    height: 360px;
    border-radius: var(--radius-sm);
    background: #dce3e8;
}
.ocr-result-map-wrap {
    position: relative;
    margin-top: 8px;
    min-height: 360px;
}
.ocr-result-map-wrap #ocrResultMap {
    width: 100%;
    height: 420px;
    border-radius: var(--radius-sm);
    background: #dce3e8;
}
.form-warn-box code {
    font-size: 0.85em;
}
.ocr-land-dl select,
.ocr-land-dl input {
    width: 100%;
    max-width: 420px;
}
.ocr-area-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ocr-area-fields input:first-child { max-width: 140px; }
.ocr-area-fields input:last-child { max-width: 100px; }
.ocr-field-status {
    display: block;
    margin-top: 4px;
    font-size: 0.82rem;
}
.ocr-parser-debug {
    margin-top: 16px;
}
.ocr-coord-edit-table input {
    width: 100%;
    min-width: 70px;
    font: inherit;
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
}
.ocr-coord-readonly { margin-top: 0; }

.prop-show-location-grid {
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1.1fr);
    gap: 20px;
    align-items: start;
}
.prop-show-krookie-img {
    display: block;
    width: 100%;
    max-height: 480px;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #f4f7f9;
}
.prop-show-krookie-link {
    display: block;
}
.prop-show-map-wrap {
    margin-top: 8px;
    min-height: 360px;
}
.prop-show-map-wrap.scan-map-wrap {
    flex: none;
    height: 420px;
    min-height: 420px;
    overflow: hidden;
    border-radius: var(--radius-sm);
}
.prop-show-map-wrap #propShowMap {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #dce3e8;
}
@media (max-width: 900px) {
    .prop-show-location-grid {
        grid-template-columns: 1fr;
    }
}

.prop-show.fu-page {
    max-width: 1180px;
    padding-bottom: 48px;
}
.prop-show.fu-page .dash-panel {
    overflow: visible;
}
.prop-show.fu-page .dash-panel + .dash-panel,
.prop-show.fu-page .pv-facts + .dash-panel,
.prop-show.fu-page .dash-panel + .fu-grid,
.prop-show.fu-page .fu-grid + .dash-panel,
.prop-show.fu-page .fu-grid + .fu-grid { margin-top: var(--space-4); }
.prop-show-grid { align-items: start; }
.prop-show-grid .dash-panel { margin-bottom: 0; }
.prop-show-head {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(200px, 0.5fr);
    gap: 20px 40px;
    align-items: start;
}
.prop-show-hero {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    min-width: 0;
}
.prop-show-cover {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    margin: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 18px;
    background: #eef3f6;
    border: 1px solid var(--border);
    color: var(--muted);
}
.prop-show-cover.is-avatar {
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px var(--border);
    color: #fff;
}
.prop-show-cover img,
.prop-show-cover .user-avatar {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    box-shadow: none;
    border: 0;
    font-size: 1.35rem;
    background: transparent;
}
.prop-show-cover-empty { display: grid; place-items: center; color: var(--muted); }
.prop-show-copy { min-width: 0; }
.prop-show-copy h1 {
    margin: 0 0 4px;
    font-size: 1.28rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.prop-show-copy .dash-lede { margin: 0 0 8px; }
.prop-show-copy .svc-show-badges { margin: 0; }
.prop-show-poster { margin-top: 12px; }
.prop-show-poster-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 650;
}
.prop-show-poster-label .admin-icon { color: var(--accent); }
.prop-show-poster-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.prop-show-poster-copy { min-width: 0; }
.prop-show-poster-copy .muted { margin: 2px 0 0; }
.prop-show-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 0;
}
.prop-show-poster-copy .prop-show-chips { margin-top: 8px; }
a.sc-chip {
    text-decoration: none;
    color: inherit;
}
.prop-show-meta {
    display: grid;
    gap: 12px;
    margin: 0;
    min-width: 0;
}
.prop-show-meta > div { display: grid; gap: 2px; }
.prop-show-meta dt {
    margin: 0;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 650;
}
.prop-show-meta dd {
    margin: 0;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
}
.prop-show-acts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    overflow: visible;
}
.prop-show-acts .props-act { white-space: nowrap; }
.prop-show .props-actions {
    flex-wrap: nowrap;
    align-items: center;
    overflow-x: auto;
    margin-top: 0;
}
.prop-show .props-actions form { margin: 0; }
.prop-show .props-actions .props-act { white-space: nowrap; flex-shrink: 0; }
.prop-show-suspend {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    max-width: 480px;
}
.prop-show-suspend label { display: grid; gap: 6px; }
.prop-show-desc .props-rich { margin: 0; }
.prop-show .sc-kv > div {
    grid-template-columns: 158px minmax(0, 1fr);
}
.prop-show .sc-kv dt {
    display: flex;
    align-items: center;
    gap: 6px;
}
.prop-show .sc-kv dd.is-empty { color: var(--muted); font-weight: 500; }
.prop-show-map-empty { margin: 8px 0 0; }
.prop-show-photos {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
}
.prop-show-photos li {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #f4f7f9;
    aspect-ratio: 4 / 3;
}
.prop-show-photos a,
.prop-show-photos img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.prop-show-photos .badge {
    position: absolute;
    left: 8px;
    bottom: 8px;
    margin: 0;
}
.prop-show-subhead {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0 8px;
    font-size: 0.82rem;
    font-weight: 650;
}
.prop-show-user-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.prop-show-user-name { margin: 0; font-weight: 700; }
.prop-show-user-name a { font-weight: 700; }
.prop-show-user-head .muted { margin: 4px 0 0; }
.prop-show-vh {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}
.prop-show .fact-show-row { margin-bottom: 12px; }
.prop-show .fact-show-row:last-of-type { margin-bottom: 0; }
@media (max-width: 900px) {
    .prop-show-head,
    .prop-show-grid { grid-template-columns: 1fr; }
}

.prop-location {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border);
}
.prop-location-title {
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-weight: 650;
}
.prop-location-lede {
    margin: 0 0 12px;
    font-size: 0.86rem;
}
.prop-location-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #eef2f5;
}
.prop-location-tab {
    flex: 1;
    margin: 0;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}
.prop-location-tab.is-on {
    background: #fff;
    color: #0f5a72;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}
.prop-location-pane {
    margin-top: 4px;
}
.prop-location-drop {
    min-height: 160px;
}
.prop-location-map-wrap {
    margin-top: 10px;
    min-height: 320px;
}
.prop-location-map-wrap #propOcrMap,
.prop-location-map-wrap #propSelectMap {
    width: 100%;
    height: 360px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #dce3e8;
}
.prop-location-map-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.prop-location-coords {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
}
.prop-ocr-review {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}
.prop-ocr-review .ocr-subhead {
    margin-top: 16px;
}

/* â€”â€” Scan krookie page polish â€”â€” */
.ocr-test-page {
    max-width: none;
}

.ocr-page-head {
    align-items: flex-start;
    gap: var(--space-5);
    margin-bottom: var(--space-4);
    padding: var(--space-5);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(45, 143, 176, 0.08) 0%, rgba(255, 255, 255, 0) 42%),
        linear-gradient(180deg, #ffffff 0%, #f8fafb 100%);
    box-shadow: var(--shadow);
}

.ocr-page-head h1 {
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.ocr-kicker {
    margin: 0 0 6px;
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
}

.ocr-page-head .dash-lede {
    margin: 0;
    max-width: 46rem;
}

.ocr-flow {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-self: center;
}

.ocr-flow li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.ocr-flow-step {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: #0f5a72;
    font-size: 0.72rem;
    font-weight: 700;
}

.ocr-test-page .ocr-tabs {
    gap: 0;
    margin-bottom: var(--space-4);
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #eef2f5;
    border-bottom: 1px solid var(--border);
}

.ocr-test-page .ocr-tabs .locate-tab {
    flex: 1;
    margin: 0;
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    border-bottom: 0;
    color: var(--muted);
    text-align: center;
}

.ocr-test-page .ocr-tabs .locate-tab.is-on {
    color: #0f5a72;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
    border-bottom-color: transparent;
}

.ocr-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.ocr-panel-head h2 {
    margin: 0;
}

.ocr-panel-head .muted {
    margin: 0;
    font-size: 0.86rem;
}

.ocr-actions-inline {
    margin-top: 0;
}

.ocr-reparse-hint {
    margin: 0 0 12px;
    font-size: 0.86rem;
}

.ocr-upload-form.prop-form {
    margin: 0;
}
.ocr-upload-form.prop-form .krookie-drop {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}
.ocr-test-page .krookie-drop {
    min-height: 220px;
    padding: 28px 20px;
    border: 1.5px dashed #b7c4cc;
    border-radius: 14px;
    background:
        radial-gradient(circle at 50% 0%, rgba(23, 120, 143, 0.08), transparent 58%),
        #f8fafb;
    gap: 12px;
    transition: border-color var(--ease), background-color var(--ease), box-shadow var(--ease);
}
.ocr-test-page .krookie-drop:hover,
.ocr-test-page .krookie-drop:focus-within {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 0 0 4px rgba(23, 120, 143, 0.12);
}
.ocr-test-page .krookie-drop.is-over {
    border-color: var(--accent);
    background: #dff1f7;
}
.ocr-test-page .krookie-drop.has-file {
    min-height: 0;
    padding: 16px;
    border-style: solid;
    background: #fff;
}
.ocr-test-page .krookie-drop.has-file .krookie-drop-empty { display: none; }
.ocr-test-page .krookie-drop.has-file .krookie-drop-change { display: inline-block; }
.krookie-drop-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.krookie-drop-ico {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #fff;
    color: var(--accent);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.krookie-drop-title {
    font-size: 1.05rem;
    font-weight: 650;
    color: var(--text);
}
.krookie-drop-hint {
    font-size: 0.86rem;
    color: var(--muted);
}
.krookie-drop-types {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
}
.krookie-drop-types span {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.02em;
}
.krookie-drop-file {
    display: block;
    font-size: 13px;
    font-weight: 650;
    color: var(--text);
}
.krookie-drop-change {
    display: none;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--accent);
}
.ocr-upload-panel .ocr-preview-img {
    width: auto;
    max-width: min(100%, 480px);
    max-height: 280px;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid var(--border);
    background:
        linear-gradient(45deg, #eef2f5 25%, transparent 25%),
        linear-gradient(-45deg, #eef2f5 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #eef2f5 75%),
        linear-gradient(-45deg, transparent 75%, #eef2f5 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-color: #f4f7f9;
    box-shadow: var(--shadow);
}
.ocr-upload-panel .ocr-actions {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.ocr-upload-panel .ocr-actions .props-act {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
}
.ocr-upload-panel .ocr-actions .props-act:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ocr-status-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 14px;
}

.ocr-status-chip {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 108px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, #fff 0%, #f8fafb 100%);
}

.ocr-status-label {
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.ocr-status-chip strong {
    font-size: 0.92rem;
    font-weight: 650;
}

.ocr-test-page .ocr-scan-nav {
    margin: 4px 0 16px;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.ocr-test-page .ocr-scan-nav-btn {
    border-radius: 8px;
    padding: 8px 12px;
}

.ocr-test-page .ocr-scan-nav-btn:hover {
    background: var(--accent-soft);
    border-color: transparent;
    color: #0f5a72;
}

.ocr-test-page .ocr-scan-nav-current {
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: #0f5a72;
}

.ocr-workspace-card {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.ocr-workspace-card .ocr-subhead {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 0.92rem;
}

.ocr-result-image-col .ocr-result-preview-wrap {
    max-height: 520px;
    border-radius: 10px;
    background:
        linear-gradient(45deg, #eef2f5 25%, transparent 25%),
        linear-gradient(-45deg, #eef2f5 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #eef2f5 75%),
        linear-gradient(-45deg, transparent 75%, #eef2f5 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-color: #f4f7f9;
}
.ocr-preview-missing,
.ocr-result-preview-wrap.is-missing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 240px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 24px;
}
.ocr-result-preview-wrap.is-missing .ocr-result-preview-scaler { display: none; }
.ocr-result-preview-wrap.is-missing::after {
    content: "No document image available";
}
.ocr-thumb-wrap {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 8px;
    overflow: hidden;
    background: #edf1f4;
    border: 1px solid var(--border);
}
.ocr-thumb-wrap .ocr-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.ocr-thumb-wrap.is-missing {
    background: #e8eef2;
}

.ocr-result-land-col .ocr-land-dl {
    margin: 0;
}

.ocr-result-land-col .ocr-land-dl dt {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--muted);
}

.ocr-result-map-wrap #ocrResultMap,
.ocr-coord-map-wrap #scanMap {
    border: 1px solid var(--border);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.ocr-history-table-wrap {
    border-radius: var(--radius-sm);
}

.ocr-history-table tbody tr:hover td {
    background: #f8fafb;
}

.ocr-history-table tr.is-current-row td {
    background: var(--accent-soft);
    box-shadow: inset 3px 0 0 var(--accent);
}

.ocr-history-table .ocr-thumb {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    transition: transform var(--ease), box-shadow var(--ease);
}

.ocr-history-table a:hover .ocr-thumb {
    transform: scale(1.04);
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.12);
}

.ocr-test-page .ocr-raw-text,
.ocr-test-page .ocr-raw-json {
    background: #f3f6f8;
    color: #1b2a36;
    border-color: #d7e0e6;
    font-feature-settings: "tnum" 1;
}

.ocr-test-page .ocr-json-details {
    background: #fbfcfd;
}

@media (max-width: 900px) {
    .ocr-page-head {
        flex-direction: column;
    }

    .ocr-flow {
        width: 100%;
    }

    .ocr-flow li {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .ocr-status-chip {
        min-width: calc(50% - 5px);
        flex: 1 1 calc(50% - 5px);
    }

    .ocr-flow li {
        flex: 1 1 100%;
    }
}

.ocr-test-page.fu-page { max-width: 1180px; padding-bottom: 48px; }
.ocr-test-page.fu-page .dash-panel { overflow: visible; }
.ocr-test-page.fu-page .ps-crumb + .dash-panel,
.ocr-test-page.fu-page .form-notice + .dash-panel,
.ocr-test-page.fu-page .login-error + .dash-panel,
.ocr-test-page.fu-page .form-warn-box + .dash-panel,
.ocr-test-page.fu-page .dash-panel + .dash-panel { margin-top: 16px; }
.ocr-test-page .ocr-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ocr-test-page .ocr-subhead {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ocr-test-page .ocr-scan-nav-btn .admin-icon { transform: rotate(180deg); }
.ocr-test-page .ocr-scan-nav-next .admin-icon { transform: none; }
.ocr-status-facts { margin: 0 0 14px; }
.ocr-status-facts .pv-fact p {
    font-size: 1rem;
    font-weight: 700;
}
.ocr-fact-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}
.ocr-fact-link:hover { text-decoration: underline; }
.ocr-result-land-col .ocr-land-dl {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.ocr-result-land-col .ocr-land-dl dt,
.ocr-result-land-col .ocr-land-dl dd {
    padding: 0;
    border: 0;
    background: none;
    max-width: none;
}
.ocr-result-land-col .ocr-land-dl dd { margin: 4px 0 0; }
.ocr-result-land-col .ocr-land-dl select,
.ocr-result-land-col .ocr-land-dl input { max-width: none; width: 100%; }
.ocr-history-filter {
    margin: 0 0 14px;
    align-items: end;
}
.ocr-history-table td { vertical-align: middle; }
.ocr-history-table .svc-acts-cell { white-space: nowrap; width: 1%; }
.ocr-history-acts {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    white-space: nowrap;
}
.ocr-history-acts form { display: inline; margin: 0; }
.ocr-history-acts .props-act {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 6px 10px;
    font-size: 0.78rem;
}
.ocr-history-table .ocr-thumb-wrap {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 8px;
}
.ocr-thumb-btn {
    display: inline-flex;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
    border-radius: 8px;
}
.ocr-thumb-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.ocr-doc-pop {
    position: fixed;
    z-index: 80;
    padding: 8px;
    background: #111827;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.35);
    line-height: 0;
}
.ocr-doc-pop[hidden] { display: none; }
.ocr-doc-pop img {
    display: block;
    max-width: min(92vw, 1100px);
    max-height: 86vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    background: #edf1f4;
}
.ocr-history-table .ocr-source-cell {
    max-width: 22rem;
}
.ocr-history-table .ocr-source-user {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ocr-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 28px 16px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}
.ocr-empty b { color: var(--text); font-size: 14px; }

.props-rich {
    color: inherit;
    font: inherit;
    line-height: 1.5;
}

.props-rich p {
    margin: 0 0 8px;
}

.props-rich p:last-child {
    margin-bottom: 0;
}

.props-rich ul,
.props-rich ol {
    margin: 0 0 8px;
    padding-inline-start: 1.2em;
}

.props-rich li {
    margin: 0 0 4px;
}

.material-symbols-outlined.svc-gicon {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    line-height: 1;
    color: var(--accent);
    vertical-align: middle;
}
.svc-icon-search { max-width: 280px; }
.svc-thumb {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
}
.svc-thumb-lg {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg);
}
.svc-indent { padding-inline-start: 18px; }
.svc-branch { color: var(--muted); margin-inline-end: 6px; }
.svc-table td p.muted { margin: 2px 0 0; font-size: 0.78rem; }
.svc-desc-cell { max-width: 280px; }
.svc-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.4;
    max-width: 280px;
}
.svc-acts-cell { white-space: nowrap; width: 1%; }
.svc-table .svc-acts {
    flex-wrap: nowrap;
    white-space: nowrap;
    margin: 0;
}
.svc-table .svc-acts form { display: inline; margin: 0; }
.svc-table .svc-acts .props-act { white-space: nowrap; }
.translations-keys-table .svc-acts-cell {
    white-space: nowrap;
    width: 1%;
    vertical-align: middle;
}
.translations-keys-table .svc-acts {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    white-space: nowrap;
    margin: 0;
    gap: 6px;
}
.translations-keys-table .svc-acts .props-act {
    white-space: nowrap;
    flex-shrink: 0;
}

.tr-page .props-back a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-weight: 650;
    font-size: 0.85rem;
    text-decoration: none;
    box-shadow: var(--shadow);
}
.tr-page .props-back a:hover {
    border-color: #c5dce6;
    background: var(--accent-soft);
    color: var(--accent);
}
.tr-page .props-head {
    align-items: center;
    margin-bottom: var(--space-4);
}
.tr-page .props-head .props-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 0;
}
.tr-preview-lang { margin-bottom: var(--space-4); }
.tr-preview-lang-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.tr-preview-lang-head h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tr-preview-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.tr-preview-card {
    min-width: 0;
    padding: 12px 14px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
}
.tr-preview-card h3 {
    margin: 0 0 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}
.tr-preview-card.is-changed {
    border-color: #c5dce6;
    background: var(--accent-soft);
    box-shadow: inset 3px 0 0 var(--accent);
}
.tr-preview-value {
    min-height: 88px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.55;
    font-size: 0.95rem;
}
.tr-preview-card.is-changed .tr-preview-value {
    border-color: #c5dce6;
}
.tr-preview-value.is-empty { color: var(--muted); }
.tr-preview-value[dir="rtl"] { text-align: right; }
.tr-preview-acts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 4px 0 12px;
    gap: 8px;
}
.tr-preview-acts .props-act {
    padding: 8px 14px;
    font-size: 0.85rem;
}
.tr-edit-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 20px;
}
.tr-edit-facts p { margin: 0; }
.tr-edit-facts span {
    display: block;
    margin-bottom: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}
.tr-edit-facts code {
    display: inline-block;
    word-break: break-all;
}
.tr-edit-draft label {
    display: block;
    margin: 0 0 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}
.tr-edit-draft textarea {
    display: block;
    width: 100%;
    min-height: 120px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
    line-height: 1.55;
    resize: vertical;
}
.tr-edit-draft textarea[dir="rtl"] { text-align: right; }
.tr-edit-draft .muted,
.tr-edit-draft .field-err { display: block; margin-top: 8px; }
.tr-edit .fu-save.tr-preview-acts { margin-top: 8px; }
@media (max-width: 800px) {
    .tr-preview-pair { grid-template-columns: 1fr; }
    .tr-page .props-head { align-items: flex-start; }
    .tr-edit-facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .tr-edit-facts { grid-template-columns: 1fr; }
}
.svc-remove { display: flex; align-items: center; gap: 8px; }
.svc-children { list-style: none; margin: 0; padding: 0; }
.svc-children li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid var(--border);
}
.svc-children li:first-child { border-top: 0; }
@media (max-width: 800px) {
    .svc-table { min-width: 720px; }
}
.sc-table { min-width: 1100px; }
.sc-thumb {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
}
.sc-image-thumb {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #0b1220;
    display: block;
}
.sc-thumb-lg {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg);
    display: block;
    margin-bottom: 8px;
}
.sc-fallback,
.sc-fallback-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #e8eef6;
    color: #1d4f91;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
}
.sc-fallback-lg {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    font-size: 1.1rem;
}
.svc-show-hero {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
}
.svc-show-icon {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--accent-soft);
    border: 1px solid var(--border);
}
.svc-show-icon .svc-thumb-lg {
    width: 72px;
    height: 72px;
    margin: 0;
    border: 0;
}
.svc-show-hero-copy { min-width: 0; }
.svc-show-hero-copy h1,
.svc-show-hero-copy h2 { margin: 0 0 4px; }
.svc-show.fu-page { max-width: 1180px; }
.svc-show-identity { align-items: flex-start; }
.svc-show-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 8px 0 0;
}
.svc-show-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.8fr);
    gap: var(--space-4);
    align-items: start;
    margin-bottom: var(--space-4);
}
.svc-show-grid .dash-panel { margin-bottom: 0; }
.svc-show-copy {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
}
.svc-show-copy h3 {
    margin: 0 0 6px;
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 650;
}
.svc-show-copy p { margin: 0; line-height: 1.55; }
.svc-show-dl {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 10px 12px;
}
.svc-show-dl dt { padding-top: 2px; }
.svc-show-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.svc-show-section-head h2 { margin: 0; }
.svc-show-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.svc-show-card {
    display: flex;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #f8fafb;
}
.svc-show-card-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--border);
}
.svc-show-card-body { min-width: 0; }
.svc-show-card-kicker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 6px;
}
.svc-show-card h3 { margin: 0 0 2px; font-size: 1rem; }
.svc-show-card-desc { margin: 8px 0 0; font-size: 0.85rem; color: var(--muted); line-height: 1.45; }
.svc-show-companies { list-style: none; margin: 0; padding: 0; }
.svc-show-companies li {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid var(--border);
}
.svc-show-companies li:first-child { border-top: 0; padding-top: 0; }
.svc-show-co-copy p { margin: 2px 0 0; }
.svc-show-co-meta { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 900px) {
    .svc-show-grid,
    .svc-show-cards { grid-template-columns: 1fr; }
    .svc-show .pv-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .svc-show-identity { flex-direction: column; }
}
@media (max-width: 800px) {
    .svc-show-companies li { grid-template-columns: 36px minmax(0, 1fr); }
    .svc-show-co-meta { grid-column: 2; justify-content: flex-start; }
}
.sc-show { max-width: 1180px; }
.sc-show.fu-page .dash-panel + .fu-grid,
.sc-show.fu-page .fu-grid + .fu-grid,
.sc-show.fu-page .fu-grid + .dash-panel { margin-top: var(--space-4); }
.sc-show-grid { align-items: start; }
.sc-show-grid .dash-panel { margin-bottom: 0; }
.sc-kv {
    display: grid;
    gap: 0;
    margin: 4px 0 0;
}
.sc-kv > div {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 12px 16px;
    align-items: start;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.sc-kv > div:first-child { padding-top: 0; }
.sc-kv > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}
.sc-kv dt {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.45;
}
.sc-kv dd {
    margin: 0;
    font-weight: 650;
    line-height: 1.45;
    overflow-wrap: break-word;
    word-break: break-word;
}
.sc-kv dd a { font-weight: 650; }
.sc-kv-ar {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 500;
    text-align: left;
}
.sc-maps-link { margin: 12px 0 0; }
.sc-maps-link .props-act { margin: 0; }
@media (max-width: 640px) {
    .sc-kv > div { grid-template-columns: 1fr; gap: 4px; }
}
.sc-show-identity { align-items: flex-start; }
.sc-show-hero {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    min-width: 0;
    flex: 1;
}
.sc-profile-copy { min-width: 0; }
.sc-profile-copy h2 {
    margin: 0 0 4px;
    font-size: 1.45rem;
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.sc-profile-chips { margin-top: 12px; }
.sc-profile-media {
    position: relative;
    width: 148px;
    flex: 0 0 148px;
}
.sc-show-cover {
    width: 148px;
    height: 148px;
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    background: #0b1220;
    border: 1px solid var(--border);
}
.sc-show-cover img,
.sc-show-cover-empty {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    object-fit: contain;
    color: rgba(255, 255, 255, 0.35);
}
.sc-show-logo {
    position: absolute;
    left: 10px;
    bottom: 10px;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    border: 3px solid #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
}
.sc-show-logo .sc-thumb-lg,
.sc-show-logo .sc-fallback-lg {
    width: 46px;
    height: 46px;
    margin: 0;
    border: 0;
    border-radius: 13px;
}
.sc-profile-main { min-width: 0; }
.sc-profile-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.sc-profile-copy h1 {
    margin: 0 0 4px;
    font-size: 1.7rem;
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.sc-profile-ar {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 1.05rem;
}
.sc-profile-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.sc-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: #3f4c63;
    font-size: 0.8rem;
    font-weight: 650;
}
.sc-chip .admin-icon { color: var(--accent); }
.sc-show-acts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}
.sc-show .pv-fact p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sc-fact-sub {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 650;
}
.sc-profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.75fr);
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}
.sc-profile-col {
    display: grid;
    gap: var(--space-4);
    align-content: start;
}
.sc-profile-col .dash-panel { margin-bottom: 0; }
.sc-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}
.sc-info-list li {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}
.sc-info-ico {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--accent-soft, #e8f4f8);
    color: var(--accent);
}
.sc-info-list strong {
    display: block;
    margin-bottom: 2px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}
.sc-info-list a,
.sc-info-list span {
    overflow-wrap: anywhere;
}
.sc-info-list p { margin: 4px 0 0; }
.sc-side-dl {
    display: grid;
    gap: 14px;
    margin: 0;
}
.sc-side-dl div { min-width: 0; }
.sc-side-dl dt {
    margin: 0 0 4px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    font-weight: 700;
}
.sc-side-dl dd { margin: 0; font-weight: 650; }
.sc-feedback-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}
.sc-feedback-head h2 { margin: 0 0 4px; }
.sc-feedback-head .muted { margin: 0; }
.sc-feedback-count {
    flex-shrink: 0;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid var(--border);
    font-size: 0.78rem;
    font-weight: 700;
    color: #3f4c63;
}
@media (max-width: 900px) {
    .sc-show .pv-facts,
    .sc-show-grid { grid-template-columns: 1fr; }
    .sc-show-identity { flex-direction: column; }
    .sc-show-hero { flex-direction: column; }
    .sc-profile-media,
    .sc-show-cover {
        width: min(148px, 100%);
    }
    .sc-show-cover { height: auto; aspect-ratio: 1; }
}
.sc-reports-page .pv-hero { margin-bottom: 16px; }
.sc-reports-page.fu-page .settings-nav { margin-bottom: var(--space-4); }
.sc-reports-page .fu-grid + .fu-grid { margin-top: 12px; }
.sc-reports-page .dash-panel .muted { margin: 0 0 12px; }
.sc-report-table .props-act { white-space: nowrap; }
.sc-reason-table .svc-acts-cell { white-space: nowrap; width: 1%; }
.sc-reason-table .svc-acts {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    white-space: nowrap;
}
.sc-reason-table .svc-acts .props-act { white-space: nowrap; flex-shrink: 0; }
.sc-rr-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}
.sc-rr-tabs a {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface, #fff);
    color: #3f4c63;
    font-weight: 650;
    text-decoration: none;
}
.sc-rr-tabs a.is-current {
    background: #0f5a72;
    border-color: #0f5a72;
    color: #fff;
}
.sc-reason-table { min-width: 980px; }
.sc-reason-table th:last-child,
.sc-reason-table td:last-child {
    position: sticky;
    right: 0;
    background: var(--surface, #fff);
    box-shadow: -8px 0 12px rgba(15, 23, 42, 0.04);
}
.sc-report-table { min-width: 1080px; }
.sc-report-table td.sc-report-who {
    white-space: nowrap;
    line-height: 1.35;
}
.sc-report-table td.sc-report-who strong {
    display: block;
    font-weight: 650;
}
.sc-report-table td.sc-report-note,
.sc-report-table td.sc-report-company,
.sc-report-table td.sc-report-reason {
    white-space: normal;
    max-width: 260px;
    overflow-wrap: anywhere;
    line-height: 1.4;
}
.sc-report-table .sc-note-2,
.sc-report-table .sc-note-short,
.sc-report-table .sc-note-clip summary,
.sc-report-table .sc-action-box summary,
.sc-report-table td.sc-report-reason {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.4;
    max-height: calc(1.4em * 2);
}
.sc-report-table td.sc-report-company {
    max-width: 200px;
}
.sc-report-table td.sc-report-company a {
    display: block;
    font-weight: 650;
}
.sc-note-short {
    display: block;
    overflow-wrap: anywhere;
}
.sc-rep-list {
    display: grid;
    gap: 12px;
}
.sc-rep-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg);
    padding: 14px 16px 12px;
}
.sc-rep-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.sc-rep-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
}
.sc-rep-reason {
    font-weight: 700;
    color: var(--ink, #122033);
}
.sc-rep-company {
    margin: 8px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
}
.sc-rep-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    margin-top: 12px;
}
.sc-rep-block {
    min-width: 0;
    background: var(--surface, #fff);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
}
.sc-rep-block h3 {
    margin: 0 0 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}
.sc-rep-block p { margin: 0; line-height: 1.45; }
.sc-note-clip summary {
    cursor: pointer;
    color: var(--ink, #122033);
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.sc-note-clip[open] summary {
    margin-bottom: 8px;
    color: var(--muted);
    -webkit-line-clamp: unset;
    line-clamp: unset;
    max-height: none;
    display: block;
}
.sc-note-clip p {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.sc-action-box summary {
    cursor: pointer;
    font-weight: 650;
    color: var(--accent);
}
.sc-action-note {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}
.sc-action-note textarea {
    width: 100%;
    min-height: 72px;
    resize: vertical;
}
.sc-rep-who { margin-top: 8px !important; }
@media (max-width: 800px) {
    .sc-rep-body { grid-template-columns: 1fr; }
    .sc-rep-card-top { flex-direction: column; }
}
.sc-image-preview {
    display: block;
    width: 240px;
    height: 240px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin: 8px 0;
    background: #0b1220;
}
.sc-form.fu-page .fu-form { margin-top: 4px; }
.sc-form .fu-grid + label,
.sc-form label + .fu-grid,
.sc-form .fu-status-row + .fu-grid { margin-top: 12px; }
.sc-media-grid { align-items: stretch; }
.sc-media-card {
    margin-bottom: 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg);
}
.sc-media-preview {
    display: grid;
    place-items: center;
    width: 100%;
    height: 148px;
    margin: 10px 0 12px;
    overflow: hidden;
    border-radius: 12px;
    background: #0b1220;
    border: 1px solid var(--border);
}
.sc-form .sc-media-preview .sc-thumb-lg,
.sc-form .sc-media-preview .sc-image-preview {
    width: 100%;
    height: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    object-fit: contain;
    background: transparent;
}
.sc-media-empty { color: rgba(255, 255, 255, 0.35); }
.sc-media-preview .sc-fallback-lg { margin: 0; }
.sc-form input[type="file"] { padding: 8px; border-style: dashed; }
.sc-featured-select {
    margin-bottom: 0;
    min-width: 180px;
}
.sc-form .sc-maps-link { display: inline-block; margin-top: 8px; }
.sc-form .fu-save { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
@media (max-width: 900px) {
    .sc-form .fu-grid,
    .sc-form .fu-status-row { grid-template-columns: 1fr; }
    .sc-form .fu-status-row { flex-direction: column; align-items: stretch; }
}

.prop-sheet { max-width: 1180px; padding-bottom: 48px; }
.prop-sheet .ps-card + .ps-card,
.prop-sheet .ps-card + .ps-grid2,
.prop-sheet .ps-grid2 + .ps-card { margin-top: 16px; }
.ps-crumb {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.ps-crumb-path {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.ps-crumb a { color: inherit; text-decoration: none; }
.ps-crumb a:hover { color: var(--text); }
.ps-crumb b { color: var(--text); font-weight: 600; }
.ps-crumb .admin-icon { width: 12px; height: 12px; opacity: 0.6; }
.ps-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.ps-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 20px;
    padding: 20px 22px;
    align-items: start;
}
.ps-thumb {
    position: relative;
    width: 148px;
    height: 108px;
    border-radius: 10px;
    overflow: hidden;
    border: 0;
    padding: 0;
    cursor: zoom-in;
    background: #edf1f4;
}
.ps-thumb:disabled { cursor: default; }
.ps-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-thumb-empty { display: grid; place-items: center; height: 100%; color: var(--muted); }
.ps-thumb-cnt {
    position: absolute;
    right: 6px;
    bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: rgba(10, 16, 19, 0.72);
    padding: 2px 7px;
    border-radius: 6px;
}
.ps-thumb-cnt .admin-icon { width: 12px; height: 12px; }
.ps-copy { min-width: 0; }
.ps-title {
    margin: 0;
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
}
.ps-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin-top: 4px;
    font-size: 13px;
    color: var(--muted);
}
.ps-meta span { display: inline-flex; align-items: center; gap: 5px; }
.ps-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; overflow-wrap: anywhere; }
.ps-copy-btn {
    border: 0;
    background: none;
    color: var(--muted);
    cursor: pointer;
    padding: 3px;
    border-radius: 4px;
    display: inline-flex;
    vertical-align: middle;
}
.ps-copy-btn:hover { color: var(--text); background: #edf1f4; }
.ps-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ps-bdg {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 22px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.ps-bdg.ok { background: #e3f4eb; color: #0a5b3a; }
.ps-bdg.info { background: #e4f1f4; color: #0e5a6c; }
.ps-bdg.neu { background: #edf1f4; color: var(--muted); }
.ps-bdg.warn { background: #fbf0da; color: #7a4705; }
.ps-price { text-align: right; }
.ps-price small {
    display: block;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--muted);
}
.ps-price b {
    display: block;
    font-size: 24px;
    line-height: 30px;
    font-weight: 700;
    color: var(--text);
    margin-top: 2px;
}
.ps-price span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.ps-mid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    border-top: 1px solid var(--border);
}
.ps-blk { padding: 16px 22px; min-width: 0; }
.ps-blk + .ps-blk { border-left: 1px solid var(--border); }
.ps-blk h3 {
    margin: 0 0 12px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--muted);
}
.ps-blk h3 em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 400; }
.ps-who { display: flex; gap: 12px; align-items: flex-start; }
.ps-av {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e4f1f4;
    color: #0e5a6c;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 14px;
    flex: 0 0 auto;
}
.ps-nm { margin: 0; font-size: 15px; font-weight: 600; color: var(--text); }
.ps-nm a { color: inherit; font-weight: 600; }
.ps-nm a:hover { color: var(--accent); }
.ps-sub { margin: 1px 0 0; font-size: 12.5px; color: var(--muted); }
.ps-contact { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ps-ct {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 32px;
    padding: 0 11px;
    border-radius: 8px;
    border: 1px solid #c4d0d8;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
}
.ps-ct:hover { background: #edf1f4; }
.ps-pref { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.ps-eng { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ps-eng div { background: #edf1f4; border-radius: 10px; padding: 10px 12px; }
.ps-eng b { display: block; font-size: 22px; line-height: 26px; font-weight: 600; color: var(--text); }
.ps-eng span { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); margin-top: 2px; }
.ps-eng-note { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.ps-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.ps-bar form { margin: 0; }
.ps-bar-end { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.ps-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    background: none;
    color: inherit;
    text-decoration: none;
}
.ps-btn.p { background: var(--accent); color: #fff; }
.ps-btn.p:hover { filter: brightness(0.95); }
.ps-btn.s { background: #fff; border-color: #c4d0d8; color: var(--text); }
.ps-btn.s:hover { background: #edf1f4; }
.ps-btn.g { color: var(--muted); }
.ps-btn.g:hover { background: #edf1f4; color: var(--text); }
.ps-btn.sm { height: 32px; padding: 0 10px; font-size: 13px; }
.ps-ch {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px 12px 20px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.ps-ch h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.ps-ch-meta { margin-left: auto; font-size: 12px; color: var(--muted); }
.ps-ch-act { display: flex; gap: 4px; }
.ps-ch-act:first-of-type { margin-left: auto; }
.ps-dl + .ps-ch { border-top: 1px solid var(--border); }
.ps-gal {
    display: grid;
    gap: 6px;
    padding: 12px;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 170px 170px;
}
.ps-gal button {
    position: relative;
    border: 0;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    cursor: zoom-in;
    background: #edf1f4;
    min-width: 0;
}
.ps-gal button:first-child { grid-row: 1 / 3; }
.ps-gal[data-count="1"] { grid-template-columns: 1fr; grid-template-rows: 300px; }
.ps-gal[data-count="1"] button:first-child { grid-row: auto; }
.ps-gal[data-count="2"] { grid-template-columns: 2fr 1fr; grid-template-rows: 300px; }
.ps-gal[data-count="2"] button:first-child { grid-row: auto; }
.ps-gal[data-count="3"] { grid-template-columns: 2fr 1fr; }
.ps-gal img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-gal-tag, .ps-gal-more {
    position: absolute;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}
.ps-gal-tag { left: 8px; top: 8px; padding: 3px 8px; border-radius: 6px; background: rgba(10, 16, 19, 0.72); }
.ps-gal-more { inset: 0; background: rgba(10, 16, 19, 0.55); display: grid; place-items: center; font-size: 16px; }
.ps-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 32px 16px; text-align: center; font-size: 13px; color: var(--muted); }
.ps-empty b { color: var(--text); font-size: 14px; }
.ps-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ps-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ps-col > .ps-card { margin-top: 0; }
.ps-map { position: relative; height: 320px; background: #edf1f4; border-bottom: 1px solid var(--border); }
.ps-map #propShowMap { width: 100%; height: 100%; }
.ps-map-msg { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; font-size: 13px; color: var(--muted); }
.ps-krookie { padding: 12px 20px; border-bottom: 1px solid var(--border); }
.ps-krookie img { display: block; width: 100%; max-height: 220px; object-fit: contain; border-radius: 8px; }
.ps-dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 -1px -1px 0;
}
.ps-dl > div {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    min-width: 0;
}
.ps-dl .full { grid-column: 1 / -1; border-right: 0; }
.ps-dl .wide { grid-column: span 2; }
.ps-dl dt { font-size: 12px; color: var(--muted); margin: 0; }
.ps-dl dd {
    margin: 3px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: flex-start;
    gap: 6px 8px;
    flex-wrap: wrap;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.ps-dl dd.is-empty { color: var(--muted); font-weight: 400; }
.ps-dl dd.ps-desc {
    display: block;
    font-weight: 400;
    color: var(--text);
    line-height: 1.65;
}
.ps-hint { font-size: 12px; font-weight: 400; color: var(--muted); }
.ps-lnk { font-size: 12.5px; font-weight: 600; color: var(--accent); text-decoration: none; }
.ps-lnk:hover { text-decoration: underline; }
.ps-pin-links { margin-top: 6px !important; gap: 14px; font-weight: 400; }
.ps-warn {
    display: flex;
    gap: 10px;
    padding: 11px 20px;
    background: #fbf0da;
    color: #7a4705;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}
.ps-facts {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ps-facts > div {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 12px;
    padding: 11px 20px;
    border-bottom: 1px solid var(--border);
    align-items: center;
    min-width: 0;
}
.ps-facts > div:nth-child(odd) { border-right: 1px solid var(--border); }
.ps-facts > div:nth-last-child(-n+2) { border-bottom: 0; }
.ps-facts dt { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: 0; }
.ps-facts dd { margin: 0; min-width: 0; }
.ps-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ps-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 10px;
    border-radius: 8px;
    background: #edf1f4;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
}
.ps-none { font-size: 13px; color: var(--muted); }
.ps-add { border: 0; background: none; padding: 0 0 0 6px; font-size: 12.5px; font-weight: 600; color: var(--accent); text-decoration: none; }
.ps-add:hover { text-decoration: underline; }
.ps-form { display: grid; gap: 12px; padding: 16px 20px 20px; max-width: 520px; }
.ps-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.ps-form input, .ps-form select, .ps-form textarea {
    font: inherit;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
}
.ps-lb {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(6, 10, 12, 0.92);
    display: flex;
    flex-direction: column;
    padding: 14px;
}
.ps-lb[hidden] { display: none; }
.ps-lb-h { display: flex; align-items: center; gap: 12px; color: #e8eef1; font-size: 13.5px; }
.ps-lb-h b { font-weight: 600; }
.ps-lb-ic {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 0;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    font-size: 22px;
}
.ps-lb-h #psLbClose { margin-left: auto; }
.ps-lb-stage { flex: 1; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 0; padding: 12px 0; }
.ps-lb-stage img { max-width: min(100%, 1200px); max-height: 80vh; object-fit: contain; border-radius: 8px; }
@media (max-width: 900px) {
    .ps-top { grid-template-columns: auto minmax(0, 1fr); }
    .ps-price { grid-column: 1 / -1; text-align: left; }
    .ps-mid, .ps-grid2, .ps-facts { grid-template-columns: 1fr; }
    .ps-blk + .ps-blk { border-left: 0; border-top: 1px solid var(--border); }
    .ps-bar-end { margin-left: 0; }
    .ps-facts > div:nth-child(odd) { border-right: 0; }
    .ps-facts > div:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
    .ps-facts > div:last-child { border-bottom: 0; }
    .ps-dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ps-dl .wide { grid-column: 1 / -1; border-right: 0; }
}
@media (max-width: 560px) {
    .ps-top { grid-template-columns: 1fr; }
    .ps-thumb { width: 100%; height: 180px; }
    .ps-gal { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 110px; }
    .ps-gal button:first-child { grid-column: 1 / -1; grid-row: auto; }
    .ps-dl { grid-template-columns: 1fr; margin-right: 0; }
    .ps-dl > div,
    .ps-dl .wide { border-right: 0; grid-column: auto; }
    .ps-dl .full { grid-column: 1 / -1; }
    .ps-facts > div { grid-template-columns: 1fr; gap: 6px; }
}

/* ===== Overview dashboard ===== */
.dash.ov {
    --ov-bar: var(--accent);
    --ov-bar-2: #8FC4D2;
    --ov-bar-3: #C4D0D8;
    --ov-hover: #125E70;
    --ov-strong: #C4D0D8;
    --ov-ok: #2E9F67;
    --ov-ok-soft: #E3F4EB;
    --ov-ok-ink: #0A5B3A;
    --ov-warn: var(--warning);
    --ov-warn-soft: var(--warning-bg);
    --ov-warn-ink: var(--warning);
    --ov-bad: var(--danger);
    --ov-bad-soft: var(--danger-bg);
    --ov-bad-ink: var(--danger);
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 28px 72px;
}
.ov .num { font-variant-numeric: tabular-nums; }
.ov .ov-code { font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; font-size: 12px; }
.ov .muted { color: var(--muted); }
.ov-cmd {
    position: sticky;
    top: 0;
    z-index: 8;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 0 -28px 4px;
    padding: 18px 28px 16px;
    background: var(--bg);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(1.15) blur(12px);
    border-bottom: 1px solid var(--border);
}
.ov-cmd-copy { flex: 1; min-width: 220px; }
.ov-cmd h1 { margin: 0; font-size: 26px; line-height: 32px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.ov-flags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ov-flag {
    display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px;
    border-radius: 8px; font-size: 12.5px; font-weight: 500; background: var(--surface);
    border: 1px solid var(--border); color: var(--muted); text-decoration: none;
}
.ov-flag b { font-weight: 700; color: var(--text); }
.ov-flag a { font-weight: 600; color: inherit; text-underline-offset: 2px; }
.ov-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: 0 0 auto; }
.ov-flag-ok { background: var(--surface); }
.ov-flag-ok .ov-dot { background: var(--ov-ok); }
.ov-flag-warn { background: var(--ov-warn-soft); border-color: transparent; color: var(--ov-warn-ink); }
.ov-flag-warn b { color: var(--ov-warn-ink); }
.ov-flag-warn .ov-dot { background: var(--ov-warn); }
.ov-cmd-end { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ov-ar-pill {
    display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px;
    border-radius: 999px; background: var(--ov-bad-soft); color: var(--ov-bad-ink);
    font-weight: 700; font-size: 13.5px; text-decoration: none; transition: background-color var(--ease), color var(--ease);
}
.ov-ar-pill:hover { filter: brightness(0.97); }
.ov-ar-pill .ov-ar-n {
    min-width: 24px; height: 24px; border-radius: 999px; background: var(--ov-bad); color: #fff;
    display: grid; place-items: center; font-size: 12px; padding: 0 6px;
}
.ov-ar-pill.is-calm { background: var(--ov-ok-soft); color: var(--ov-ok-ink); }
.ov-btn {
    display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px;
    border-radius: 8px; border: 1px solid transparent; font-size: 13.5px; font-weight: 600;
    cursor: pointer; white-space: nowrap; background: none; text-decoration: none; color: inherit;
    transition: background-color var(--ease), border-color var(--ease), color var(--ease), box-shadow var(--ease);
}
.ov-btn:focus-visible, .ov-ar-pill:focus-visible, a.ov-kpi:focus-visible, .ov-chip:focus-visible, .ov-hb:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.ov-btn-p { background: var(--accent); color: #fff; }
.ov-btn-p:hover { background: var(--ov-hover); color: #fff; }
.ov-btn-s { background: var(--surface); border-color: var(--ov-strong); color: var(--text); }
.ov-btn-s:hover { background: var(--sunken); }
.ov-btn-xs { height: 28px; padding: 0 9px; font-size: 12px; border-radius: 7px; }
.ov-btn-ok { background: var(--ov-ok-ink); color: #fff; }
.ov-btn-ok:hover { background: #08472d; color: #fff; }
.ov-btn-danger { background: var(--surface); border-color: var(--ov-strong); color: var(--ov-bad-ink); }
.ov-btn-danger:hover { background: var(--ov-bad-soft); }
.ov-sec { margin-top: 32px; }
.ov-sec-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.ov-sec-h h2 { margin: 0; font-size: 17px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.ov-sec-h p { margin: 0; font-size: 12.5px; color: var(--muted); }
.ov-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    min-width: 0;
    transition: border-color var(--ease), box-shadow var(--ease);
}
a.ov-card:hover, a.ov-kpi:hover, a.ov-op:hover {
    border-color: var(--ov-strong);
    box-shadow: 0 6px 18px rgba(22, 41, 60, 0.07);
}
.ov-card-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px 0; }
.ov-card-h h3 { margin: 0; font-size: 14px; font-weight: 600; color: var(--text); }
.ov-card-h .ov-r, .ov-r { margin-left: auto; font-size: 12px; color: var(--muted); }
.ov-card-b { padding: 12px 16px 16px; }
.ov-lnk { color: var(--accent); font-weight: 600; font-size: 12.5px; text-decoration: none; }
.ov-lnk:hover { text-decoration: underline; text-underline-offset: 2px; color: var(--ov-hover); }
.ov-sec-ar {
    scroll-margin-top: 88px;
    margin-top: 40px;
    padding: 22px 20px 20px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow);
}
.ov-sec-ar.is-hot {
    background: linear-gradient(180deg, var(--ov-bad-soft) 0%, var(--surface) 72px);
    border-color: color-mix(in srgb, var(--ov-bad) 22%, var(--border));
}
.ov-sec-ar.is-calm {
    background: linear-gradient(180deg, var(--ov-ok-soft) 0%, var(--surface) 64px);
}
.ov-sec-ar .ov-sec-h { margin-bottom: 16px; }
.ov-queues { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ov-q { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.ov-q.is-sla-bad { box-shadow: var(--shadow), inset 3px 0 0 var(--ov-bad); }
.ov-q.is-sla-warn { box-shadow: var(--shadow), inset 3px 0 0 var(--ov-warn); }
.ov-q.is-follow .ov-q-n { color: var(--muted); }
.ov-q-top { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px 12px; }
.ov-q-t { flex: 1; min-width: 0; }
.ov-q-t h3 { margin: 0; font-size: 14px; font-weight: 600; color: var(--text); line-height: 20px; }
.ov-sub { font-size: 12px; color: var(--muted); margin: 2px 0 0; }
.ov-q-n { font-size: 30px; line-height: 32px; font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
.ov-age {
    display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px;
    border-radius: 6px; font-size: 11.5px; font-weight: 600; white-space: nowrap; margin-top: 8px;
}
.ov-age.is-fresh { background: var(--sunken); color: var(--muted); }
.ov-age.is-warn { background: var(--ov-warn-soft); color: var(--ov-warn-ink); }
.ov-age.is-bad { background: var(--ov-bad-soft); color: var(--ov-bad-ink); }
.ov-items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); flex: 1; }
.ov-items li {
    padding: 10px 16px; border-bottom: 1px solid var(--border);
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center;
}
.ov-items li:last-child { border-bottom: 0; }
.ov-items li:hover { background: var(--sunken); }
.ov-it { min-width: 0; }
.ov-it a { display: block; font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.ov-it a:hover { color: var(--accent); }
.ov-it span { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
.ov-w { font-size: 11.5px; font-weight: 600; white-space: nowrap; text-align: right; }
.ov-w.is-warn { color: var(--ov-warn-ink); }
.ov-w.is-bad { color: var(--ov-bad-ink); }
.ov-acts { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.ov-acts form { margin: 0; }
.ov-pill { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 5px; font-size: 10.5px; font-weight: 700; font-style: normal; letter-spacing: 0.02em; }
.ov-pill.is-bad { background: var(--ov-bad-soft); color: var(--ov-bad-ink); }
.ov-pill.is-warn { background: var(--ov-warn-soft); color: var(--ov-warn-ink); }
.ov-pill.is-info { background: var(--accent-soft); color: var(--accent-ink); }
.ov-pill.is-neu { background: var(--sunken); color: var(--muted); }
.ov-q-foot { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--sunken) 55%, var(--surface)); }
.ov-q-foot .ov-lnk { margin-left: auto; }
.ov-ops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.ov-ops-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin: 18px 0 8px; }
.ov-op { display: flex; align-items: center; gap: 12px; padding: 12px 16px; text-decoration: none; color: inherit; }
.ov-op-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 auto; background: var(--sunken); color: var(--muted); }
.ov-op-ic.is-warn { background: var(--ov-warn-soft); color: var(--ov-warn-ink); }
.ov-op-copy { flex: 1; min-width: 0; }
.ov-op-copy b { display: block; font-size: 13.5px; color: var(--text); font-weight: 600; }
.ov-op-copy span { display: block; font-size: 12px; color: var(--muted); }
.ov-op .ov-lnk { margin-left: auto; white-space: nowrap; }
.ov-caught { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--ov-ok-soft); color: var(--ov-ok-ink); border-radius: 12px; font-size: 14px; }
.ov-caught b { font-weight: 700; }
.ov-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
a.ov-kpi {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    grid-template-areas: "ico label" "ico num";
    align-items: center;
    column-gap: 10px;
    row-gap: 0;
    padding: 12px 14px;
    min-height: 0;
    text-decoration: none;
    color: inherit;
    background: var(--surface);
}
.ov-kpi-ic {
    grid-area: ico;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--sunken);
    color: var(--muted);
    display: grid;
    place-items: center;
    align-self: center;
}
.ov-kpi small {
    grid-area: label;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ov-kpi b {
    grid-area: num;
    font-size: 20px;
    line-height: 22px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.02em;
}
.ov-m { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
.ov-delta { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; font-size: 12px; }
.ov-delta.is-up { color: var(--ov-ok-ink); }
.ov-delta.is-down { color: var(--ov-bad-ink); }
.ov-delta.is-flat { color: var(--muted); }
.ov-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.ov-row3 > .ov-card { display: flex; flex-direction: column; height: 100%; }
.ov-row3 > .ov-card .ov-card-b { flex: 1; }
.ov-split { display: flex; height: 10px; border-radius: 5px; overflow: hidden; margin: 10px 0 8px; background: var(--sunken); }
.ov-split i { display: block; }
.ov-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.ov-legend a { color: var(--muted); text-decoration: none; }
.ov-legend a:hover { color: var(--text); }
.ov-legend b { color: var(--text); font-weight: 600; }
.ov-sw { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: 0; }
.ov-hbars { display: flex; flex-direction: column; gap: 8px; }
.ov-hb { display: grid; grid-template-columns: 110px minmax(0, 1fr) 34px; align-items: center; gap: 10px; font-size: 12.5px; text-decoration: none; color: inherit; border-radius: 6px; }
a.ov-hb { padding: 2px 0; }
.ov-hb-l { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-track { display: block; height: 8px; border-radius: 4px; background: var(--sunken); overflow: hidden; }
.ov-fill { display: block; height: 100%; border-radius: 4px; background: var(--ov-bar); transition: width var(--ease), background-color var(--ease); }
.ov-fill.is-muted { background: var(--ov-bar-3); }
.ov-hb-v { text-align: right; font-weight: 600; color: var(--text); }
.ov-hb:hover .ov-fill { background: var(--ov-hover); }
.ov-checks { list-style: none; margin: 0; padding: 0; }
.ov-checks li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.ov-checks li:last-child { border-bottom: 0; }
.ov-check-ic {
    width: 28px; height: 28px; border-radius: 8px; background: var(--sunken); color: var(--muted);
    display: grid; place-items: center; flex: 0 0 auto;
}
.ov-checks a { color: var(--text); text-decoration: none; }
.ov-checks a:hover { color: var(--accent); }
.ov-n { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.ov-n.is-warn { color: var(--ov-warn-ink); }
.ov-n.is-zero { color: var(--ov-ok-ink); }
.ov-demand { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; }
.ov-demand > .ov-card { display: flex; flex-direction: column; }
.ov-demand > .ov-card .ov-card-b { flex: 1; }
.ov-chart { width: 100%; height: 170px; display: block; margin-top: 8px; }
.ov-chart .b { fill: var(--ov-bar); transition: fill var(--ease); }
.ov-chart .b.prev { fill: var(--ov-bar-2); }
.ov-chart .b:hover { fill: var(--ov-hover); }
.ov-chart .gl { stroke: var(--border); stroke-width: 1; }
.ov-chart text { fill: var(--muted); font-size: 10.5px; font-family: inherit; }
.ov-bigline { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ov-bigline b { font-size: 26px; font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
.ov-toplist { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.ov-toplist li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; counter-increment: t; }
.ov-toplist li:last-child { border-bottom: 0; }
.ov-toplist li::before { content: counter(t); font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; }
.ov-toplist a { color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; text-decoration: none; }
.ov-toplist a:hover { color: var(--accent); }
.ov-toplist small { display: block; font-size: 11.5px; color: var(--muted); }
.ov-v { font-weight: 600; color: var(--text); }
.ov-contacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ov-contacts div { background: var(--sunken); border-radius: 10px; padding: 12px; }
.ov-contacts b { display: block; font-size: 20px; font-weight: 600; color: var(--text); }
.ov-contacts span { font-size: 12px; color: var(--muted); }
.ov-caption { font-size: 11.5px; color: var(--muted); margin: 12px 0 0; line-height: 1.5; display: flex; gap: 6px; }
.ov-caption .admin-icon { flex: 0 0 auto; margin-top: 2px; }
.ov-nt { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.ov-nt li { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 9px; border: 1px dashed var(--ov-strong); background: var(--sunken); font-size: 12.5px; color: var(--muted); }
.ov-nt li b { color: var(--text); font-weight: 500; }
.ov-nt li em { margin-left: auto; font-style: normal; font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; padding-left: 8px; }
.ov-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.ov-stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ov-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ov-stat { background: var(--sunken); border-radius: 10px; padding: 12px; min-width: 0; }
.ov-stat small { display: block; font-size: 11.5px; color: var(--muted); }
.ov-stat b { display: block; font-size: 20px; line-height: 26px; font-weight: 600; color: var(--text); }
.ov-stat .ov-m { font-size: 11.5px; }
.ov-subhead { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin: 16px 0 8px; }
.ov-chiprow { display: flex; flex-wrap: wrap; gap: 6px; }
.ov-chip {
    display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px;
    border-radius: 8px; border: 1px solid var(--border); background: var(--surface);
    font-size: 12.5px; color: var(--muted); text-decoration: none;
    transition: border-color var(--ease), background-color var(--ease);
}
.ov-chip b { color: var(--text); font-weight: 700; }
.ov-chip:hover { border-color: var(--ov-strong); background: var(--sunken); }
.ov-chip.is-warn { background: var(--ov-warn-soft); border-color: transparent; color: var(--ov-warn-ink); }
.ov-chip.is-warn b { color: var(--ov-warn-ink); }
.ov-chip.is-ok { background: var(--ov-ok-soft); border-color: transparent; color: var(--ov-ok-ink); }
.ov-chip.is-ok b { color: var(--ov-ok-ink); }
.ov-chip.is-bad { background: var(--ov-bad-soft); border-color: transparent; color: var(--ov-bad-ink); }
.ov-chip.is-bad b { color: var(--ov-bad-ink); }
.ov-feed { list-style: none; margin: 0; padding: 0; }
.ov-feed li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.ov-feed li:last-child { border-bottom: 0; }
.ov-feed-ic { width: 30px; height: 30px; border-radius: 8px; background: var(--sunken); color: var(--muted); display: grid; place-items: center; flex: 0 0 auto; }
.ov-feed b { display: block; font-size: 13px; font-weight: 500; color: var(--text); }
.ov-feed b a { color: inherit; text-decoration: none; }
.ov-feed b a:hover { color: var(--accent); }
.ov-feed span { display: block; font-size: 11.5px; color: var(--muted); }
@media (max-width: 1180px) {
    .ov-queues, .ov-ops { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ov-row3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    .dash.ov { padding: 0 16px 56px; }
    .ov-cmd { margin: 0 -16px 4px; padding: 14px 16px 12px; }
    .ov-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ov-demand, .ov-two { grid-template-columns: 1fr; }
    .ov-sec-ar { padding: 16px 14px; }
}
@media (max-width: 640px) {
    .ov-queues, .ov-ops, .ov-row3 { grid-template-columns: 1fr; }
    .ov-cmd-end { margin-left: 0; }
    .ov-stats, .ov-contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ov-hb { grid-template-columns: 90px minmax(0, 1fr) 30px; }
    a.ov-kpi { min-height: 0; }
}

/* Stage N3D — Notification Campaigns */
.ntf-page .ntf-panel-head { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:12px; }
.ntf-page .ntf-panel-head h2 { margin:0; }
.ntf-subnav { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 16px; }
.ntf-subnav a { display:inline-flex; align-items:center; gap:6px; padding:8px 12px; border-radius:8px; border:1px solid var(--border); background:var(--surface); color:var(--text); text-decoration:none; font-size:13px; font-weight:500; }
.ntf-subnav a.is-current { border-color:var(--accent); color:var(--accent); background:var(--accent-soft, #eef6ff); }
.ntf-form-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(280px,340px); gap:16px; align-items:start; }
.ntf-form .form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.ntf-form .form-grid .span-2 { grid-column:1 / -1; }
.ntf-form label, .ntf-page label { display:flex; flex-direction:column; gap:6px; font-size:12.5px; font-weight:600; color:var(--muted); }
.ntf-form input, .ntf-form select, .ntf-form textarea { font:inherit; color:var(--text); border:1px solid var(--border); border-radius:8px; padding:9px 11px; background:#fff; }
.ntf-lang-tabs, .ntf-preview-tabs { display:flex; gap:8px; margin:0 0 12px; }
.ntf-lang-tab, .ntf-preview-tab { border:1px solid var(--border); background:var(--sunken); border-radius:999px; padding:6px 12px; cursor:pointer; font:inherit; font-size:12.5px; }
.ntf-lang-tab.is-active, .ntf-preview-tab.is-active { background:var(--accent); color:#fff; border-color:var(--accent); }
.ntf-lang-panel { display:grid; gap:12px; }
.ntf-delivery-options { display:grid; gap:10px; margin-bottom:12px; }
.ntf-radio-card { display:flex; gap:10px; align-items:flex-start; padding:12px; border:1px solid var(--border); border-radius:10px; background:var(--surface); }
.ntf-radio-card strong { display:block; color:var(--text); font-size:13.5px; }
.ntf-radio-card small { display:block; margin-top:4px; color:var(--muted); font-weight:400; }
.ntf-estimate { margin-top:12px; padding:12px; border-radius:10px; background:var(--sunken); }
.ntf-estimate ul { margin:8px 0 0; padding-left:18px; }
.ntf-preview .ntf-phone { border:1px solid var(--border); border-radius:18px; padding:14px; background:linear-gradient(180deg,#f8fafc,#eef2f7); }
.ntf-phone-os { font-size:11px; color:var(--muted); margin-bottom:8px; text-transform:uppercase; letter-spacing:.04em; }
.ntf-phone-card { background:#fff; border-radius:12px; padding:12px; box-shadow:0 8px 24px rgba(15,23,42,.08); }
.ntf-phone-card strong { display:block; font-size:14px; margin-bottom:4px; }
.ntf-phone-card p { margin:0 0 8px; font-size:13px; color:var(--text); }
.ntf-phone-card img { max-width:100%; border-radius:8px; margin-bottom:8px; }
.ntf-detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.ntf-gates .pv-fact h2 { display:flex; align-items:center; gap:6px; }
.ntf-gates .pv-fact { border-top: 3px solid #d0d5dd; }
.ntf-gates .pv-fact.is-on { border-top-color: #0f7a4a; }
.ntf-gates .pv-fact.is-on p { color: #0f7a4a; }
.ntf-gates .pv-fact.is-off p { color: #667085; }
.ntf-send-row { align-items: center; }
.ntf-send-row h2 { display:flex; align-items:center; gap:6px; }
.ntf-send-form { display:flex; align-items:center; gap:12px; margin:0; flex-shrink:0; }
.ntf-send-choice { display:inline-flex; padding:4px; border:1px solid var(--border); border-radius:999px; background:var(--sunken, #f4f6f8); }
.ntf-send-choice label { position:relative; margin:0; cursor:pointer; }
.ntf-send-choice input { position:absolute; opacity:0; width:1px; height:1px; }
.ntf-send-choice span { display:block; min-width:64px; padding:7px 14px; border-radius:999px; text-align:center; font-size:0.78rem; font-weight:700; color:var(--muted); }
.ntf-send-choice label:has(input:checked) span { background:#fff; box-shadow:var(--shadow); }
.ntf-send-choice label:has(input[value="0"]:checked) span { color:#8a5a00; }
.ntf-send-choice label:has(input[value="1"]:checked) span { color:#0f7a4a; }
.ntf-send-choice label:has(input:focus-visible) span { outline:2px solid var(--accent); outline-offset:2px; }
.ntf-send-locked { margin:0; font-weight:700; color:var(--muted); white-space:nowrap; }
@media (max-width: 800px) {
  .ntf-send-row { align-items:flex-start; }
  .ntf-send-form { width:100%; justify-content:space-between; }
}
.ntf-dl { display:grid; gap:10px; margin:0; }
.ntf-dl > div { display:grid; grid-template-columns:140px minmax(0,1fr); gap:8px; }
.ntf-dl dt { margin:0; color:var(--muted); font-size:12px; font-weight:600; }
.ntf-dl dd { margin:0; color:var(--text); font-size:13px; }
.ntf-action-forms { display:flex; flex-wrap:wrap; gap:10px; align-items:flex-end; }
.ntf-inline-form { display:flex; flex-wrap:wrap; gap:8px; align-items:flex-end; }
.ntf-title { margin:0 0 8px; font-size:1.25rem; }
.ntf-empty { text-align:center; padding:28px 16px !important; }
.ntf-stats { margin:0; padding-left:18px; }
.form-error-list { color:var(--danger); margin:0 0 12px; padding-left:18px; }
@media (max-width: 1100px) {
  .ntf-form-layout, .ntf-detail-grid { grid-template-columns:1fr; }
}

.mfa-policy-card h2 { margin-bottom: 4px; }
.mfa-policy-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}
.mfa-policy-head p { margin: 0; color: var(--muted); max-width: 62ch; }
.mfa-policy-status {
    margin: 0;
    min-width: 64px;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 999px;
    padding: 4px 12px;
}
.mfa-policy-status.is-on { color: var(--success); background: var(--success-bg); }
.mfa-policy-status.is-off { color: var(--warning); background: var(--warning-bg); }
.mfa-policy-options {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin: 0 0 14px;
    padding: 8px 12px 12px;
}
.mfa-policy-options legend { font-weight: 650; padding: 0 4px; }
.mfa-policy-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 8px;
}
.mfa-policy-option input { margin-top: 3px; }
.mfa-policy-disable {
    border: 1px solid #e7c98a;
    background: var(--warning-bg);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 14px;
}
.mfa-policy-warning { margin: 0 0 12px; color: var(--warning); }
.mfa-policy-confirm { display: flex; gap: 8px; align-items: flex-start; }
.mfa-policy-save { max-width: 220px; }

