:root {
    --workspace-bg: #f5f7fa;
    --workspace-panel: #fff;
    --workspace-border: #dfe4eb;
    --workspace-text: #18202b;
    --workspace-muted: #687384;
    --workspace-accent: #0068d9;
    --workspace-accent-soft: #eaf3ff;
}

* { box-sizing: border-box; }

body.workspace-page-body {
    margin: 0;
    background: var(--workspace-bg);
    color: var(--workspace-text);
    font-family: var(--ff-font-sans);
}

.workspace-page [hidden] { display: none !important; }

.workspace-page {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 28px clamp(18px, 3vw, 42px) 48px;
}

.workspace-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.workspace-page-kicker {
    margin: 0 0 7px;
    color: var(--workspace-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    line-height: 1.2;
    text-transform: uppercase;
}

.workspace-page-header h1 {
    margin: 0;
    color: var(--workspace-text);
    font-size: clamp(27px, 3.5vw, 40px);
    font-weight: 740;
    letter-spacing: -.035em;
    line-height: 1.05;
}

.workspace-page-header p:not(.workspace-page-kicker) {
    max-width: 720px;
    margin: 8px 0 0;
    color: var(--workspace-muted);
    font-size: 14px;
    line-height: 1.5;
}

.workspace-page-summary {
    flex: 0 0 auto;
    color: var(--workspace-muted);
    font-size: 12px;
    font-weight: 700;
    text-align: right;
}

.workspace-page-panel {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--workspace-border);
    border-radius: 12px;
    background: var(--workspace-panel);
    box-shadow: 0 3px 12px rgba(15, 23, 42, .045);
}

.workspace-page-panel--flush { min-height: 420px; }

.workspace-panel-header {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--workspace-border);
}

.workspace-panel-header h2,
.workspace-feedback-panel h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 750;
    letter-spacing: -.015em;
}

.workspace-panel-header > span {
    color: var(--workspace-muted);
    font-size: 12px;
    font-weight: 700;
}

.workspace-primary-button,
.workspace-secondary-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border: 1px solid #cfd6e0;
    border-radius: 8px;
    background: #fff;
    color: #283343;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.workspace-primary-button {
    border-color: var(--workspace-accent);
    background: var(--workspace-accent);
    color: #fff;
}

.workspace-primary-button:hover { background: #005cbe; }
.workspace-secondary-button:hover { border-color: #aeb8c7; background: #f7f9fb; }
.workspace-danger-button { color: #b42318; }

.workspace-primary-button:focus-visible,
.workspace-secondary-button:focus-visible,
.workspace-dealer-link:focus-visible,
.workspace-bookmark-card-link:focus-visible {
    outline: 3px solid rgba(0, 104, 217, .22);
    outline-offset: 2px;
}

.workspace-primary-button:disabled,
.workspace-secondary-button:disabled { opacity: .58; cursor: wait; }

.workspace-page-status {
    min-height: 22px;
    margin: 0 0 12px;
    color: var(--workspace-muted);
    font-size: 13px;
    line-height: 1.4;
}

.workspace-page-status.is-success { color: #166534; }
.workspace-page-status.is-error { color: #b42318; }

/* Analytics and Score keep their existing rendering logic but mount inside a page panel. */
#sold-analytics-page .sold-analytics-body {
    min-height: 420px;
    padding: 18px;
    overflow: visible;
}

#score-page.status-list-overlay,
#sold-analytics-page#sold-analytics-overlay {
    position: static !important;
    inset: auto !important;
    display: block !important;
    padding: 0 !important;
    background: transparent !important;
}

#score-page .score-modal {
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

#score-page .score-modal-toolbar { border-top: 0; }
#score-page .score-modal-body { min-height: 360px; overflow: visible; }

.score-modal-toolbar {
    display: grid;
    grid-template-columns: minmax(190px, max-content) minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--workspace-border);
    background: #fff;
}

.score-modal-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }

.score-month-selector {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    padding: 2px;
    gap: 2px;
    overflow-x: auto;
    border: 1px solid var(--workspace-border);
    border-radius: 7px;
    background: #f5f7fa;
    scrollbar-width: none;
}

.score-month-selector::-webkit-scrollbar { display: none; }
.score-month-selector[hidden] { display: none; }

.score-month-option,
.score-action-btn,
.score-signin-btn {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border: 1px solid var(--workspace-border);
    border-radius: 6px;
    background: #fff;
    color: var(--workspace-accent);
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.score-month-option { border: 0; background: transparent; color: var(--workspace-muted); }
.score-month-option.is-active { background: #fff; color: var(--workspace-text); box-shadow: 0 1px 3px rgba(15, 23, 42, .1); }
.score-action-btn[hidden] { display: none; }
.score-signin-btn { border-color: var(--workspace-accent); background: var(--workspace-accent); color: #fff; }

.score-month-option:focus-visible,
.score-action-btn:focus-visible,
.score-signin-btn:focus-visible { outline: 3px solid rgba(0, 104, 217, .2); outline-offset: 1px; }

.score-modal-meta {
    min-width: 0;
    color: var(--workspace-muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    line-height: 1.35;
    text-align: center;
}

.score-modal-body { padding: 14px 16px 16px; }

.score-table-wrap {
    width: 100%;
    max-width: 100%;
    min-height: 330px;
    overflow: auto;
    border: 1px solid var(--workspace-border);
    border-radius: 7px;
    background: #fff;
}

.score-table {
    --score-group-header-height: 38px;
    width: 100%;
    min-width: 1400px;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--workspace-text);
    font-size: 12px;
    line-height: 1.25;
}

.score-table th,
.score-table td {
    box-sizing: border-box;
    padding: 9px 11px;
    border-right: 1px solid var(--workspace-border);
    border-bottom: 1px solid var(--workspace-border);
    background: #fff;
    vertical-align: middle;
    white-space: nowrap;
}

.score-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f4f7fb;
    color: var(--workspace-muted);
    font-size: 11px;
    font-weight: 750;
    text-align: right;
}

.score-table thead tr:first-child th { top: 0; height: var(--score-group-header-height); color: var(--workspace-text); }
.score-table thead tr:nth-child(2) th { top: var(--score-group-header-height); }

.score-sort-btn {
    display: inline-flex;
    width: 100%;
    min-height: 26px;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    text-align: right;
    white-space: nowrap;
    cursor: pointer;
}

.score-table th:first-child .score-sort-btn { justify-content: flex-start; text-align: left; }
.score-sort-btn:hover { color: var(--workspace-accent); }
.score-sort-btn:focus-visible { outline: 2px solid rgba(0, 104, 217, .28); outline-offset: 2px; border-radius: 4px; }
.score-sort-indicator { min-width: 10px; color: #16803c; font-size: 11px; }
.score-header-rate { flex: 0 0 100%; color: #16803c; font-size: 10px; font-weight: 800; }

.score-table th:first-child {
    position: sticky;
    left: 0;
    z-index: 3;
    min-width: 170px;
    background: #fff;
    box-shadow: 1px 0 0 var(--workspace-border);
    color: var(--workspace-text);
    font-weight: 750;
    text-align: left;
}

.score-table thead th:first-child { z-index: 4; background: #f4f7fb; }
.score-table tbody tr:nth-child(even) td,
.score-table tbody tr:nth-child(even) th { background: #fafbfc; }
.score-table tbody tr:hover td,
.score-table tbody tr:hover th { background: #f6f9ff; }
.score-num,
.score-money { text-align: right; font-variant-numeric: tabular-nums; }
.score-live-bump { margin-left: 4px; color: #16803c; font-size: 10px; font-weight: 800; }
.score-loading,
.score-empty { display: grid; min-height: 300px; place-items: center; gap: 12px; color: var(--workspace-muted); text-align: center; }

/* Inventory map page. */
body.workspace-map-body {
    display: flex;
    height: 100dvh;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
}

body.workspace-map-body .ff-site-header { flex: 0 0 auto; }

body.workspace-map-body .ff-site-shell-body {
    min-height: 0;
    flex: 1 1 auto;
}

.workspace-map-page {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.workspace-map-layout {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: #e9eef5;
}

.ff-site-sidebar.workspace-map-legend-sidebar {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
}

.workspace-map-back {
    display: flex;
    min-height: 48px;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    padding: 10px 16px;
    border-bottom: 1px solid #e5e9ef;
    color: #263244;
    font-size: 13px;
    font-weight: 720;
    text-decoration: none;
}

.workspace-map-back:hover { background: #f4f6f9; }
.workspace-map-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.workspace-map-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    background: #e9eef5;
}

.workspace-map-canvas.is-error {
    display: grid;
    place-items: center;
    padding: 30px;
    color: var(--workspace-muted);
    text-align: center;
}

.workspace-dealer-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 8px;
}

.workspace-dealer-region {
    overflow: hidden;
    border-bottom: 1px solid #edf0f4;
}

.workspace-dealer-region:last-child { border-bottom: 0; }

.workspace-dealer-region summary {
    display: grid;
    min-height: 48px;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 7px;
    list-style: none;
    cursor: pointer;
}

.workspace-dealer-region summary::-webkit-details-marker { display: none; }
.workspace-dealer-region summary:hover { background: #f7f9fb; }
.workspace-dealer-region summary:focus-visible { outline: 3px solid rgba(0, 104, 217, .16); outline-offset: -3px; }
.workspace-dealer-region.is-active { box-shadow: inset 3px 0 0 var(--workspace-accent); }

.workspace-region-swatch {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--region-color);
}

.workspace-region-swatch.is-region-heading {
    border: 2px solid #94a3b8;
    background: #fff;
    box-shadow: inset 0 0 0 2px #fff;
}

.workspace-region-name { font-size: 13px; font-weight: 760; }
.workspace-region-meta { color: var(--workspace-muted); font-size: 11px; }
.workspace-region-count { color: var(--workspace-muted); font-size: 12px; font-weight: 750; }

.workspace-dealer-region-list { display: grid; gap: 3px; padding: 0 4px 9px 24px; }

.workspace-dealer-link {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 7px 9px;
    border-radius: 7px;
    color: #263244;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}

.workspace-dealer-link:hover { background: #f0f4f8; }
.workspace-dealer-link-identity { display: grid; min-width: 0; grid-template-columns: 10px minmax(0, 1fr); align-items: center; gap: 9px; }
.workspace-dealer-type-dot { width: 8px; height: 8px; border: 2px solid #fff; border-radius: 50%; background: var(--dealer-dot-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dealer-dot-color) 16%, transparent); }
.workspace-dealer-link-copy { display: grid; min-width: 0; gap: 2px; }
.workspace-dealer-link-name { overflow: hidden; color: #263244; text-overflow: ellipsis; white-space: nowrap; }
.workspace-dealer-link-location { color: var(--workspace-muted); font-size: 10px; font-weight: 600; }

.leaflet-div-icon.dealer-map-marker-icon { border: 0; background: transparent; }

.dealer-map-marker {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 14px;
    height: 14px;
    transform: translate(-50%, -50%);
    --dealer-region-color: var(--workspace-accent);
    --label-x: 18px;
    --label-y: -34px;
    --leader-x: 10px;
    --leader-y: -18px;
    --leader-rotate: -34deg;
    --leader-width: 22px;
    pointer-events: auto;
    cursor: pointer;
    transition: opacity 130ms ease;
}

.dealer-map-marker-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 10px;
    height: 10px;
    transform: translate(-50%, -50%);
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--dealer-region-color);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--dealer-region-color) 16%, transparent), 0 2px 7px rgba(17, 24, 39, .24);
    transition: transform 130ms ease, box-shadow 130ms ease;
}

.dealer-map-marker-label {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    min-width: max-content;
    max-width: 168px;
    padding: 5px 8px;
    transform: translate(var(--label-x), var(--label-y));
    border: 1px solid rgba(209, 213, 219, .92);
    border-radius: 7px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 6px 18px rgba(17, 24, 39, .11);
    color: var(--workspace-text);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.15;
    white-space: normal;
    text-align: left;
    opacity: 0;
    pointer-events: none;
    transition: opacity 130ms ease, border-color 130ms ease, background 130ms ease, box-shadow 130ms ease;
}

.dealer-map-marker-location {
    display: block;
    margin-top: 3px;
    color: var(--workspace-muted);
    font-size: 10px;
    font-weight: 600;
}

.dealer-map-marker-leader {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: var(--leader-width);
    height: 1px;
    transform: translate(var(--leader-x), var(--leader-y)) rotate(var(--leader-rotate));
    transform-origin: left center;
    background: rgba(107, 114, 128, .48);
    opacity: 0;
    pointer-events: none;
}

.dealer-map-marker[data-label-placement="e"] { --label-x: 18px; --label-y: -13px; --leader-x: 7px; --leader-y: -2px; --leader-rotate: 0deg; --leader-width: 15px; }
.dealer-map-marker[data-label-placement="w"] { --label-x: calc(-100% - 20px); --label-y: -13px; --leader-x: -7px; --leader-y: -2px; --leader-rotate: 180deg; --leader-width: 17px; }
.dealer-map-marker[data-label-placement="ne"] { --label-x: 15px; --label-y: -44px; --leader-x: 7px; --leader-y: -8px; --leader-rotate: -38deg; --leader-width: 25px; }
.dealer-map-marker[data-label-placement="nw"] { --label-x: calc(-100% - 17px); --label-y: -44px; --leader-x: -6px; --leader-y: -8px; --leader-rotate: 218deg; --leader-width: 25px; }
.dealer-map-marker[data-label-placement="se"] { --label-x: 16px; --label-y: 14px; --leader-x: 7px; --leader-y: 6px; --leader-rotate: 34deg; --leader-width: 23px; }
.dealer-map-marker[data-label-placement="sw"] { --label-x: calc(-100% - 17px); --label-y: 14px; --leader-x: -6px; --leader-y: 6px; --leader-rotate: 146deg; --leader-width: 23px; }
.dealer-map-marker[data-label-placement="s"] { --label-x: -50%; --label-y: 17px; --leader-x: 0; --leader-y: 7px; --leader-rotate: 90deg; --leader-width: 12px; }
.dealer-map-marker-fairfield { --label-y: -17px; }
.dealer-map-marker-dupratt_dixon { --label-y: -16px; }
.dealer-map-marker-concord_ford { --label-y: -31px; }
.dealer-map-marker-walnut_creek_ford { --label-y: 9px; }
.dealer-map-marker-downtown_ford { --label-y: -33px; }
.dealer-map-marker-elk_grove_ford { --label-y: 17px; }
.dealer-map-marker-big_valley_ford { --label-y: 21px; }
.dealer-map-marker-livermore_ford { --label-x: -42%; --label-y: 18px; }
.dealer-map-marker-morgan_hill_ford { --label-x: -46%; --label-y: 18px; }

.dealer-map-marker:hover,
.dealer-map-marker:focus-within,
.dealer-map-marker.is-list-highlighted { z-index: 10; }

.dealer-map-marker:hover .dealer-map-marker-dot,
.dealer-map-marker:focus-within .dealer-map-marker-dot,
.dealer-map-marker.is-list-highlighted .dealer-map-marker-dot {
    transform: translate(-50%, -50%) scale(1.16);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--dealer-region-color) 24%, transparent), 0 4px 12px rgba(17, 24, 39, .28);
}

.dealer-map-marker:hover .dealer-map-marker-label,
.dealer-map-marker:focus-within .dealer-map-marker-label,
.dealer-map-marker.is-list-highlighted .dealer-map-marker-label,
.dealer-map-marker:hover .dealer-map-marker-leader,
.dealer-map-marker:focus-within .dealer-map-marker-leader,
.dealer-map-marker.is-list-highlighted .dealer-map-marker-leader { opacity: 1; }

.dealer-map-marker:hover .dealer-map-marker-label,
.dealer-map-marker:focus-within .dealer-map-marker-label,
.dealer-map-marker.is-list-highlighted .dealer-map-marker-label {
    border-color: color-mix(in srgb, var(--dealer-region-color) 52%, #fff);
    background: #fff;
    box-shadow: 0 10px 26px rgba(17, 24, 39, .16);
}

.workspace-map-canvas.has-active-region .dealer-map-marker:not(.is-active-region) { opacity: .28; }
.workspace-map-canvas.has-active-region .dealer-map-marker.is-active-region .dealer-map-marker-dot {
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--dealer-region-color) 24%, transparent), 0 4px 12px rgba(17, 24, 39, .26);
}

@media (max-width: 700px) {
    .dealer-map-marker-label {
        max-width: 150px;
        transform: translate(-50%, -42px);
        text-align: center;
    }
}

/* Bookmark page cards. */
.workspace-bookmark-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.workspace-bookmark-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--workspace-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .045);
    color: inherit;
    text-decoration: none;
    transition: transform 130ms ease, box-shadow 130ms ease;
}

.workspace-bookmark-card:hover { transform: translateY(-2px); box-shadow: 0 7px 18px rgba(15, 23, 42, .09); }

.workspace-bookmark-card-link {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.workspace-bookmark-photo {
    display: grid;
    height: 170px;
    place-items: center;
    padding: 10px;
    border-bottom: 1px solid #e8edf3;
    background: #f8fafc;
}

.workspace-bookmark-photo img { width: 100%; height: 100%; object-fit: contain; }
.workspace-bookmark-photo span { color: #8a95a5; font-size: 12px; }

.workspace-bookmark-content { display: grid; gap: 7px; padding: 14px; }
.workspace-bookmark-title { font-size: 15px; font-weight: 780; line-height: 1.3; }
.workspace-bookmark-meta { color: var(--workspace-muted); font-size: 11px; font-weight: 650; }
.workspace-bookmark-price { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.workspace-bookmark-dealer { color: var(--workspace-muted); font-size: 11px; }

.workspace-bookmark-remove {
    position: absolute;
    top: 9px;
    right: 9px;
    z-index: 2;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(15, 23, 42, .14);
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: #c02d36;
    font-size: 20px;
    cursor: pointer;
}

.workspace-bookmark-empty {
    grid-column: 1 / -1;
    display: grid;
    min-height: 340px;
    place-items: center;
    padding: 36px;
    border: 1px dashed #cbd4df;
    border-radius: 12px;
    color: var(--workspace-muted);
    text-align: center;
}

.workspace-bookmark-empty h2 { margin: 0 0 7px; color: var(--workspace-text); font-size: 20px; }
.workspace-bookmark-empty p { margin: 0 0 18px; }

/* Feedback page. */
.workspace-feedback-page { max-width: 1040px; }
.workspace-feedback-panel { padding: clamp(18px, 3vw, 28px); }
.workspace-feedback-panel h2 { margin-bottom: 18px; font-size: 19px; }
.workspace-feedback-panel form { display: grid; gap: 10px; }
.workspace-feedback-panel label { color: var(--workspace-muted); font-size: 12px; font-weight: 750; }
.workspace-feedback-panel textarea {
    width: 100%;
    min-height: 220px;
    padding: 14px;
    resize: vertical;
    border: 1px solid #bdc7d4;
    border-radius: 9px;
    background: #fff;
    color: var(--workspace-text);
    font: inherit;
    font-size: 16px;
    line-height: 1.5;
}

.workspace-feedback-panel textarea:focus { outline: 3px solid rgba(0, 104, 217, .16); border-color: var(--workspace-accent); }
.workspace-feedback-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }

@media (max-width: 900px) {
    .ff-site-sidebar.workspace-map-legend-sidebar {
        position: fixed;
        right: 12px;
        bottom: 12px;
        left: 12px;
        z-index: 1000;
        display: flex;
        width: auto;
        height: auto;
        max-height: min(48vh, 430px);
        border: 1px solid rgba(15, 23, 42, .12);
        border-radius: 12px;
        box-shadow: 0 16px 44px rgba(15, 23, 42, .22);
    }
    .workspace-page { padding: 22px 14px calc(92px + env(safe-area-inset-bottom, 0px)); }
    .workspace-page-header { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 18px; }
    .workspace-page-summary { text-align: left; }
    .workspace-dealer-list { max-height: none; }
    #sold-analytics-page .sold-analytics-body { padding: 12px; }
}

@media (max-width: 600px) {
    .ff-site-sidebar.workspace-map-legend-sidebar { max-height: min(52vh, 430px); }
    .workspace-page-header h1 { font-size: 28px; }
    .workspace-page-panel { border-radius: 10px; }
    .workspace-bookmark-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .workspace-bookmark-photo { height: 118px; padding: 7px; }
    .workspace-bookmark-content { gap: 5px; padding: 10px; }
    .workspace-bookmark-title { font-size: 12px; }
    .workspace-bookmark-meta,
    .workspace-bookmark-dealer { font-size: 9px; }
    .workspace-bookmark-price { font-size: 14px; }
    .workspace-bookmark-remove { top: 6px; right: 6px; width: 38px; height: 38px; }
    .workspace-feedback-actions { align-items: stretch; flex-direction: column-reverse; }
    .workspace-feedback-actions > * { width: 100%; }
    .score-modal-toolbar { grid-template-columns: 1fr; gap: 9px; padding: 10px 12px; }
    .score-modal-actions { justify-content: flex-start; }
    .score-month-selector { width: 100%; }
    .score-month-option { min-height: 34px; flex: 1 0 auto; padding: 0 10px; font-size: 11px; }
    .score-modal-meta { font-size: 11px; text-align: left; }
    .score-modal-body { padding: 10px; }
    .score-table-wrap { min-height: 340px; }
    .score-table { --score-group-header-height: 42px; min-width: 1080px; font-size: 11px; }
    .score-table th,
    .score-table td { padding: 7px 8px; }
    .score-table th:first-child { min-width: 126px; max-width: 126px; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
    .workspace-bookmark-card { transition: none; }
}
