/*
 * Signed-in aerial workspace (visual reference: SitePuff_Visual_Reference_Workspace.png).
 * Only the chrome around the map is styled here; nothing inside #map is touched, so the
 * live map and the exports look exactly as before.
 */
body.shell.ws {
    --ws-bg: #f3f5f9;
    --ws-panel: #ffffff;
    --ws-line: #e3e8ef;
    --ws-line-strong: #d3dae5;
    --ws-ink: #0f172a;
    --ws-ink-soft: #334155;
    --ws-muted: #64748b;
    --ws-blue: #2563eb;
    --ws-blue-dark: #1d4ed8;
    --ws-blue-soft: #eaf1ff;
    --ws-radius: 12px;
    --ws-font: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    display: block;
    height: auto;
    min-height: 100dvh;
    overflow: auto;
    background: var(--ws-bg);
    color: var(--ws-ink);
    font-family: var(--ws-font);
}
body.shell.ws .ws-app {
    display: grid;
    grid-template-columns: clamp(150px, 9.8vw, 200px) minmax(0, 1fr);
    min-height: 100dvh;
}

/* Left application navigation */
body.shell.ws .ws-nav {
    position: sticky;
    top: 0;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 12px;
    background: var(--ws-panel);
    border-right: 1px solid var(--ws-line);
    z-index: 40;
}
body.shell.ws .ws-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 2px 6px 16px;
    color: var(--ws-ink);
    text-decoration: none;
}
body.shell.ws .ws-brand .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--ws-blue);
    box-shadow: none;
}
body.shell.ws .ws-brand .wordmark { font: 700 19px/1 var(--ws-font); color: var(--ws-ink); letter-spacing: -0.01em; }
body.shell.ws .ws-brand .wordmark span { color: var(--ws-blue); }
body.shell.ws .ws-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--ws-ink-soft);
    font: 500 14px/1.2 var(--ws-font);
    text-decoration: none;
}
body.shell.ws .ws-nav-link svg { flex: 0 0 auto; color: var(--ws-muted); }
body.shell.ws .ws-nav-link:hover { background: #f1f5f9; color: var(--ws-ink); }
body.shell.ws .ws-nav-link.is-active { background: var(--ws-blue); color: #fff; }
body.shell.ws .ws-nav-link.is-active svg { color: #fff; }
body.shell.ws .ws-user {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    height: auto;
    max-width: none;
    padding: 12px 8px 4px;
    border: 0;
    border-top: 1px solid var(--ws-line);
    border-radius: 0;
    background: transparent;
    color: var(--ws-ink);
    text-decoration: none;
}
body.shell.ws .ws-user:hover { background: #f8fafc; border-color: var(--ws-line); }
body.shell.ws .ws-user .avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #1e293b;
    color: #fff;
    font: 600 12px var(--ws-font);
}
body.shell.ws .ws-user-text { display: grid; min-width: 0; }
body.shell.ws .ws-user-text strong { font: 600 13px/1.2 var(--ws-font); color: var(--ws-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.shell.ws .ws-user-text em { font: 400 12px/1.3 var(--ws-font); color: var(--ws-muted); font-style: normal; }

/* Top project bar */
body.shell.ws .ws-main { min-width: 0; display: flex; flex-direction: column; }
body.shell.ws .ws-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 58px;
    padding: 0 16px;
    background: var(--ws-panel);
    border-bottom: 1px solid var(--ws-line);
}
body.shell.ws .ws-project-name {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 0 1 240px;
    color: var(--ws-muted);
}
body.shell.ws .ws-project-name input {
    min-width: 0;
    width: 100%;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    padding: 4px 6px;
    font: 700 18px/1.2 var(--ws-font);
    color: var(--ws-ink);
}
body.shell.ws .ws-project-name input::placeholder { color: var(--ws-ink); opacity: 1; }
body.shell.ws .ws-project-name input:hover,
body.shell.ws .ws-project-name input:focus { border-color: var(--ws-line-strong); outline: none; background: #fff; }
body.shell.ws .ws-steps {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}
body.shell.ws .ws-steps li { display: flex; align-items: center; gap: 6px; }
body.shell.ws .ws-steps li + li::before {
    content: "";
    width: 36px;
    height: 1px;
    background: var(--ws-line-strong);
}
body.shell.ws .ws-steps button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ws-muted);
    font: 500 13px/1 var(--ws-font);
    cursor: pointer;
    white-space: nowrap;
}
body.shell.ws .ws-steps button span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid var(--ws-line-strong);
    background: #fff;
    color: var(--ws-muted);
    font: 600 12px/1 var(--ws-font);
}
body.shell.ws .ws-steps button:hover { background: #f1f5f9; }
body.shell.ws .ws-steps li.is-active button { color: var(--ws-blue); font-weight: 600; }
body.shell.ws .ws-steps li.is-active button span { background: var(--ws-blue); border-color: var(--ws-blue); color: #fff; }
body.shell.ws .ws-steps li.is-done button { color: var(--ws-ink-soft); }
body.shell.ws .ws-steps li.is-done button span { border-color: var(--ws-blue); color: var(--ws-blue); }
body.shell.ws .ws-topbar .header-actions { display: flex; align-items: center; gap: 8px; margin-left: 0; }
body.shell.ws .ws-save-state { font-size: 13px; font-weight: 600; color: #334155; white-space: nowrap; }
body.shell.ws .ws-save-state:empty { display: none; }
body.shell.ws .ws-btn,
body.shell.ws .ws-export > summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 16px;
    border-radius: 8px;
    font: 600 14px/1 var(--ws-font);
    cursor: pointer;
}
body.shell.ws .ws-btn { border: 1px solid var(--ws-line-strong); background: #fff; color: var(--ws-ink); }
body.shell.ws .ws-btn:hover { background: #f8fafc; }
body.shell.ws .ws-btn:disabled { opacity: 0.5; cursor: default; }
body.shell.ws .ws-export { position: relative; }
body.shell.ws .ws-export:has(> #export-actions.hidden) { display: none; }
body.shell.ws .ws-export > summary {
    list-style: none;
    border: 1px solid var(--ws-blue);
    background: var(--ws-blue);
    color: #fff;
}
body.shell.ws .ws-export > summary::-webkit-details-marker { display: none; }
body.shell.ws .ws-export > summary:hover { background: var(--ws-blue-dark); }
body.shell.ws .ws-export > .export-actions {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    display: grid;
    gap: 4px;
    min-width: 210px;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--ws-line);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}
body.shell.ws .ws-export > .export-actions .btn,
body.shell.ws .export-actions #btn-png,
body.shell.ws .export-actions #btn-pdf {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 38px;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--ws-ink);
    font: 500 14px/1 var(--ws-font);
    justify-content: flex-start;
    box-shadow: none;
}
body.shell.ws .export-actions #btn-png:hover,
body.shell.ws .export-actions #btn-pdf:hover { background: var(--ws-blue-soft); color: var(--ws-blue-dark); }
body.shell.ws .export-actions #btn-png span,
body.shell.ws .export-actions #btn-pdf span { display: inline; }

/* Three-column frame: inspector, map, locations */
body.shell.ws .app-frame.ws-frame {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 268px minmax(0, 1fr) 272px;
    gap: 12px;
    width: auto;
    height: max(560px, calc(100dvh - 58px - 150px));
    padding: 12px 12px 0;
    min-height: 0;
}
body.shell.ws .ws-frame:has(#workspace.hidden) { grid-template-columns: 340px minmax(0, 1fr); }
body.shell.ws .ws-frame:has(#workspace.hidden) > .ws-locations { display: none; }
body.shell.ws .ws-inspector,
body.shell.ws .ws-locations {
    min-width: 0;
    min-height: 0;
    overflow: auto;
    padding: 14px;
    background: var(--ws-panel);
    color: var(--ws-ink);
    border: 1px solid var(--ws-line);
    border-radius: var(--ws-radius);
    box-shadow: none;
}
body.shell.ws .ws-locations { display: flex; flex-direction: column; gap: 10px; }

/* Panel typography and form controls */
body.shell.ws :is(.ws-inspector, .ws-locations, .ws-rail, .ws-strip) :is(h2, h3) {
    margin: 0 0 10px;
    font: 600 14px/1.3 var(--ws-font);
    letter-spacing: 0;
    text-transform: none;
    color: var(--ws-ink);
    border: 0;
    padding: 0;
}
body.shell.ws :is(.ws-inspector, .ws-locations, .ws-rail, .ws-strip) .hint {
    color: var(--ws-muted);
    font: 400 12px/1.45 var(--ws-font);
}
body.shell.ws :is(.ws-inspector, .ws-locations, .ws-rail, .ws-strip) :is(label, .prop-label, .layer-style, .field-kicker) {
    color: var(--ws-ink-soft);
    font-family: var(--ws-font);
}
body.shell.ws :is(.ws-inspector, .ws-locations) :is(input[type="text"], input[type="search"], input:not([type]), select, textarea):not(.sr-only),
body.shell.ws .ws-locations :is(#nearby-q, #nearby-category) {
    width: 100%;
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid var(--ws-line-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--ws-ink);
    font: 400 13px/1.3 var(--ws-font);
    box-shadow: none;
}
body.shell.ws .ws-inspector input[type="file"] {
    width: 100%;
    padding: 6px;
    border: 1px dashed var(--ws-line-strong);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--ws-muted);
    font: 400 12px var(--ws-font);
}
body.shell.ws .ws-inspector input[type="file"]::file-selector-button {
    margin-right: 8px;
    padding: 5px 10px;
    border: 1px solid var(--ws-line-strong);
    border-radius: 6px;
    background: #fff;
    color: var(--ws-ink);
    font: 600 12px var(--ws-font);
    cursor: pointer;
}
body.shell.ws :is(.ws-inspector, .ws-locations) :is(input, select, textarea):focus {
    outline: 2px solid rgba(37, 99, 235, 0.25);
    border-color: var(--ws-blue);
}
body.shell.ws :is(.ws-inspector, .ws-locations, .ws-rail, .ws-strip) .btn {
    min-height: 34px;
    border: 1px solid var(--ws-line-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--ws-ink);
    font: 600 13px/1.2 var(--ws-font);
    box-shadow: none;
}
body.shell.ws :is(.ws-inspector, .ws-locations, .ws-rail, .ws-strip) .btn:hover { background: #f8fafc; }
body.shell.ws :is(.ws-inspector, .ws-locations, .ws-rail, .ws-strip) .btn.primary {
    background: var(--ws-blue);
    border-color: var(--ws-blue);
    color: #fff;
}
body.shell.ws :is(.ws-inspector, .ws-locations, .ws-rail, .ws-strip) .btn.primary:hover { background: var(--ws-blue-dark); }
body.shell.ws :is(.ws-inspector, .ws-locations, .ws-rail, .ws-strip) .btn:disabled { opacity: 0.5; }
body.shell.ws :is(.ws-inspector, .ws-locations) a { color: var(--ws-blue); }

/* Inspector */
body.shell.ws .ws-inspector .config-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin: 0 0 14px;
    padding: 3px;
    background: #f1f5f9;
    border-radius: 9px;
}
body.shell.ws .ws-inspector .config-tabs .rail-btn {
    display: block;
    padding: 7px 8px;
    border-radius: 7px;
    background: transparent;
    color: var(--ws-ink-soft);
    font: 600 12px/1 var(--ws-font);
}
body.shell.ws .ws-inspector .config-tabs .rail-btn.is-active { background: #fff; color: var(--ws-ink); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12); }
body.shell.ws .ws-location { margin: 0 0 16px; }
body.shell.ws .ws-location .header-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: none;
    height: 38px;
    margin: 0 0 10px;
    padding: 0 8px 0 32px;
    border: 1px solid var(--ws-line-strong);
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
}
body.shell.ws .ws-location .header-search .search-icon { position: absolute; left: 10px; color: var(--ws-muted); }
body.shell.ws .ws-location .header-search input[type="text"] {
    min-height: 0;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ws-ink);
    font: 400 13px var(--ws-font);
}
body.shell.ws .ws-location .header-search input:focus { outline: 0; }
body.shell.ws .ws-location .search-clear { background: transparent; color: var(--ws-muted); border: 0; font-size: 18px; }
body.shell.ws .ws-subject {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    margin: 0;
    border: 1px solid var(--ws-line);
    border-radius: 10px;
    background: #f8fafc;
    box-shadow: none;
}
body.shell.ws .ws-subject #property-card-photo { width: 64px; height: 52px; object-fit: cover; border-radius: 6px; }
body.shell.ws .ws-subject #property-card-photo[hidden] { display: none; }
body.shell.ws .ws-subject:not(:has(#property-card-photo:not([hidden]))) { grid-template-columns: minmax(0, 1fr); }
body.shell.ws .ws-subject-text p { margin: 0; }
body.shell.ws .ws-subject .detail-address { font: 600 13px/1.35 var(--ws-font); color: var(--ws-ink); }
body.shell.ws .ws-subject .hint:empty { display: none; }
body.shell.ws .ws-subject .detail-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px 10px;
    margin: 0;
}
body.shell.ws .ws-subject .detail-grid dt { color: var(--ws-muted); font: 500 11px var(--ws-font); }
body.shell.ws .ws-subject .detail-grid dd { margin: 0; color: var(--ws-ink); font: 600 12px var(--ws-font); }
body.shell.ws .ws-subject .detail-link { grid-column: 1 / -1; min-height: 32px; }
body.shell.ws #flow-property { display: none !important; }
body.shell.ws .edit-group-title { display: none !important; }
body.shell.ws .config-title { margin: 0 0 12px; }
body.shell.ws .config-title h2 { margin: 0; font: 600 12px var(--ws-font); color: var(--ws-muted); text-transform: uppercase; letter-spacing: 0.06em; }
body.shell.ws .config-title .text-reset { color: var(--ws-blue); font: 600 12px var(--ws-font); background: transparent; border: 0; }
body.shell.ws .ws-inspector .config-block { margin: 0 0 16px; }
body.shell.ws #generate-form:is([data-flow="edit"], [data-flow="export"]) #flow-roads > h2 {
    padding-top: 0;
    border-top: 0;
    font: 600 14px var(--ws-font);
    text-transform: none;
    color: var(--ws-ink);
}
body.shell.ws .ws-inspector .map-products { display: none; }
body.shell.ws .ws-type-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}
body.shell.ws .ws-type-tile {
    display: grid;
    justify-items: center;
    gap: 5px;
    padding: 9px 2px 7px;
    border: 1px solid var(--ws-line-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--ws-ink-soft);
    font: 500 11px/1.1 var(--ws-font);
    cursor: pointer;
}
body.shell.ws .ws-type-tile svg { color: var(--ws-muted); }
body.shell.ws .ws-type-tile:hover { border-color: var(--ws-blue); }
body.shell.ws .ws-type-tile.is-active { border-color: var(--ws-blue); background: var(--ws-blue-soft); color: var(--ws-blue-dark); box-shadow: inset 0 0 0 1px var(--ws-blue); }
body.shell.ws .ws-type-tile.is-active svg { color: var(--ws-blue); }
body.shell.ws .ws-type-current {
    margin: 0 0 4px;
    padding: 8px 10px;
    border: 1px solid var(--ws-blue);
    border-radius: 8px;
    background: var(--ws-blue-soft);
    color: var(--ws-blue-dark);
    font: 600 13px var(--ws-font);
}
body.shell.ws .radius-chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 0; border: 0; background: transparent; box-shadow: none; }
body.shell.ws .radius-chip {
    height: 34px;
    padding: 0;
    border: 1px solid var(--ws-line-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--ws-ink-soft);
    font: 500 12px var(--ws-font);
    cursor: pointer;
}
body.shell.ws .radius-chip.is-active { border-color: var(--ws-blue); background: var(--ws-blue-soft); color: var(--ws-blue-dark); font-weight: 600; box-shadow: inset 0 0 0 1px var(--ws-blue); }
body.shell.ws .view-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
body.shell.ws .view-pill {
    height: 34px;
    border: 1px solid var(--ws-line-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--ws-ink-soft);
    font: 500 12px var(--ws-font);
}
body.shell.ws .view-pill.is-active { border-color: var(--ws-blue); background: var(--ws-blue-soft); color: var(--ws-blue-dark); }
body.shell.ws .ws-style-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
body.shell.ws .ws-style-tile {
    display: grid;
    gap: 6px;
    height: auto;
    padding: 4px 4px 7px;
    text-align: center;
}
body.shell.ws .ws-style-thumb {
    display: block;
    height: 46px;
    border-radius: 6px;
    background-size: cover;
}
body.shell.ws .ws-style-thumb.is-aerial { background: linear-gradient(135deg, #5b6b4a 0 22%, #8a8f78 22% 30%, #3f4c3a 30% 55%, #a3a58f 55% 62%, #4b5a44 62%); }
body.shell.ws .ws-style-thumb.is-earth { background: linear-gradient(160deg, #9fb8d6 0 35%, #6b7d5c 35% 60%, #8c8a72 60%); }
body.shell.ws .ws-style-thumb.is-light { background: linear-gradient(180deg, #f8fafc 0 42%, #dbe4ee 42% 48%, #eef2f6 48%); }
body.shell.ws .ws-style-thumb.is-dark { background: linear-gradient(180deg, #1e293b 0 42%, #334155 42% 48%, #0f172a 48%); }
body.shell.ws .ws-style-thumb.is-grey { background: linear-gradient(180deg, #d4d4d8 0 42%, #a1a1aa 42% 48%, #e4e4e7 48%); }
body.shell.ws .ws-advanced {
    margin: 0 0 14px;
    border-top: 1px solid var(--ws-line);
    padding-top: 10px;
}
body.shell.ws .ws-advanced > summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0 10px;
    color: var(--ws-ink);
    font: 600 13px var(--ws-font);
    cursor: pointer;
    list-style: none;
}
body.shell.ws .ws-advanced > summary::-webkit-details-marker { display: none; }
body.shell.ws .ws-advanced > summary::before { content: "▸"; color: var(--ws-muted); transition: transform 0.15s; }
body.shell.ws .ws-advanced[open] > summary::before { transform: rotate(90deg); }
body.shell.ws .ws-advanced.is-flat { border-top: 0; padding-top: 0; }
body.shell.ws .ws-advanced.is-flat > summary { display: none; }
body.shell.ws .ws-flash { outline: 2px solid var(--ws-blue); outline-offset: 4px; border-radius: 8px; transition: outline-color 0.6s; }
body.shell.ws .layer-list { border: 0; padding: 0; margin: 0 0 8px; display: grid; gap: 2px; }
body.shell.ws .layer-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 4px;
    border-radius: 6px;
    background: transparent;
    color: var(--ws-ink-soft);
    font: 500 13px var(--ws-font);
}
body.shell.ws .layer-row:hover { background: #f8fafc; }
body.shell.ws .layer-ico { width: 16px; height: 16px; color: var(--ws-muted); }
body.shell.ws .ws-inspector input[type="checkbox"],
body.shell.ws .ws-locations input[type="checkbox"],
body.shell.ws .ws-rail input[type="checkbox"] { accent-color: var(--ws-blue); width: 16px; height: 16px; min-height: 0; }
body.shell.ws .layer-styles { display: grid; gap: 10px; }
body.shell.ws .layer-style { display: grid; gap: 4px; font: 500 12px var(--ws-font); }
body.shell.ws .editor-actions { display: grid; gap: 8px; }
body.shell.ws #flow-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
body.shell.ws #flow-nav .btn.hidden + .btn { grid-column: 1 / -1; }
body.shell.ws #flow-nav .btn { height: 38px; }
body.shell.ws .status {
    margin-top: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font: 500 12px/1.4 var(--ws-font);
}
body.shell.ws .saved-maps h2 { margin-top: 0; }

/* Map column: toolbar plus map */
body.shell.ws .stage.ws-stage {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    min-height: 0;
    padding: 0;
    background: transparent;
}
body.shell.ws .ws-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 2px;
    padding: 5px 6px;
    background: var(--ws-panel);
    border: 1px solid var(--ws-line);
    border-radius: 10px;
}
body.shell.ws .ws-stage:has(#workspace.hidden) .ws-toolbar { display: none; }
body.shell.ws .ws-tool {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 8px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--ws-ink-soft);
    font: 500 12.5px/1 var(--ws-font);
    cursor: pointer;
    white-space: nowrap;
}
body.shell.ws .ws-toolbar > * { flex: 0 0 auto; margin: 0; }
body.shell.ws .ws-toolbar > .ws-tool-grow { flex: 1 1 0; }
body.shell.ws .ws-toolbar :is(#btn-reset, #btn-add, #btn-draw, #btn-undo, #btn-redo).ws-tool {
    width: auto;
    height: 32px;
    margin: 0;
    border: 0;
    background: transparent;
    color: var(--ws-ink-soft);
    box-shadow: none;
}
body.shell.ws .ws-toolbar :is(#btn-undo, #btn-redo).ws-tool span { display: none; }
body.shell.ws .ws-tool svg { color: var(--ws-muted); }
body.shell.ws .ws-tool:hover:not(:disabled) { background: #f1f5f9; color: var(--ws-ink); }
body.shell.ws .ws-tool:disabled { opacity: 0.42; cursor: default; }
body.shell.ws .ws-toolbar #btn-draw.ws-tool.active { background: #e8efff; color: #1d4ed8; }
body.shell.ws .ws-toolbar #btn-draw.ws-tool.active svg { color: #1d4ed8; }
body.shell.ws .ws-tool-sep { width: 1px; height: 20px; margin: 0 4px; background: var(--ws-line-strong); }
body.shell.ws .ws-tool-grow { flex: 1; }
body.shell.ws .ws-toolbar .view-switch { display: inline-flex; gap: 2px; padding: 2px; background: #f1f5f9; border-radius: 8px; }
body.shell.ws .ws-toolbar .view-switch.hidden { display: none; }
body.shell.ws .ws-toolbar .view-switch:has(#orbit-controls.hidden) { display: none; }
body.shell.ws .ws-toolbar :is(#btn-view-aerial, #btn-view-earth) { display: none; }
body.shell.ws:has(#view-switch.hidden) .ws-style-tile[data-sync-click="btn-view-earth"] { display: none; }
body.shell.ws .ws-toolbar .view-switch .btn {
    height: 28px;
    padding: 0 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--ws-ink-soft);
    font: 600 12px var(--ws-font);
    box-shadow: none;
}
body.shell.ws .ws-toolbar .view-switch .btn.active,
body.shell.ws .ws-toolbar .view-switch .btn.ghost.active { background: #fff; color: var(--ws-ink); border: 0; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.14); }
body.shell.ws .map-stage {
    flex: 1 1 0;
    height: auto;
    min-height: 0;
    border: 1px solid var(--ws-line);
    border-radius: var(--ws-radius);
    box-shadow: none;
    overflow: hidden;
}
body.shell.ws .ws-main:has(#workspace.hidden) .app-frame.ws-frame {
    height: calc(100dvh - 58px);
    align-items: stretch;
}
body.shell.ws .ws-frame:has(#workspace.hidden) .map-stage {
    border: 0;
    background: transparent;
    border-radius: 0;
}
body.shell.ws .setup {
    display: flex;
    background: transparent;
    padding: 4px 8px 12px 4px;
    overflow: auto;
}
body.shell.ws .hero-card {
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: #fff;
    color: var(--ws-ink);
    border: 1px solid var(--ws-line);
    border-radius: var(--ws-radius);
    box-shadow: none;
    overflow: auto;
}
body.shell.ws .hero-card h1 { margin: 0; color: var(--ws-ink); font: 700 32px/1.15 var(--ws-font); letter-spacing: -0.02em; }
body.shell.ws .hero-card .lede,
body.shell.ws .hero-card p { margin: 0; max-width: 62ch; color: var(--ws-muted); font: 400 15px/1.5 var(--ws-font); }
body.shell.ws .hero-card .eyebrow { margin: 0; color: var(--ws-blue); font: 700 11px/1 var(--ws-font); letter-spacing: 0.12em; text-transform: uppercase; }
body.shell.ws .hero-steps { gap: 12px; }
body.shell.ws .hero-steps article,
body.shell.ws .build-sheet {
    background: #f8fafc;
    border: 1px solid var(--ws-line);
    color: var(--ws-ink);
    box-shadow: none;
}
body.shell.ws .hero-steps article { padding: 16px 16px 18px; border-top: 0; border-radius: 10px; }
body.shell.ws .hero-steps article h2 { margin: 10px 0 4px; color: var(--ws-ink); font: 600 15px/1.3 var(--ws-font); }
body.shell.ws .hero-steps article p { font-size: 13px; line-height: 1.45; }
body.shell.ws .hero-steps article strong {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--ws-blue-soft);
    color: var(--ws-blue);
    font: 700 12px/1 var(--ws-font);
    letter-spacing: 0;
}
body.shell.ws .build-sheet { gap: 12px; padding: 16px; border-radius: 10px; }
body.shell.ws .build-facts { gap: 10px; }
body.shell.ws .build-facts > div {
    background: #fff;
    border: 1px solid var(--ws-line);
    border-radius: 8px;
    padding: 10px 12px;
    min-width: 0;
}
body.shell.ws .build-facts span { color: var(--ws-muted); font: 600 10px/1 var(--ws-font); letter-spacing: 0.08em; }
body.shell.ws .build-facts strong {
    display: block;
    margin-top: 6px;
    color: var(--ws-ink);
    font: 600 14px/1.3 var(--ws-font);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.shell.ws .hero-card .export-note { display: none; }
body.shell.ws .hero-plate {
    flex: 0 0 auto;
    min-height: 0;
    margin-top: auto;
    padding: 14px 16px;
    border: 1px solid #d6e4ff;
    border-radius: 10px;
    background: var(--ws-blue-soft);
    text-align: left;
    justify-content: flex-start;
}
body.shell.ws .hero-plate-copy { max-width: none; align-items: flex-start; text-align: left; }
body.shell.ws .hero-plate-copy strong { color: var(--ws-ink); font: 600 15px/1.3 var(--ws-font); }
body.shell.ws .hero-plate-copy span { color: var(--ws-ink-soft); font: 400 13px/1.45 var(--ws-font); }

/* Right location inspector */
body.shell.ws .ws-locations #flow-editor { margin: 0; }
body.shell.ws .ws-locations-head h2 { font-size: 15px; }
body.shell.ws .ws-locations-head span { color: var(--ws-muted); font-weight: 500; }
body.shell.ws .ws-locations .nearby-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; margin: 0 0 8px; }
body.shell.ws .ws-locations .nearby-tools .select-ico { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; color: var(--ws-muted); }
body.shell.ws .ws-locations #btn-nearby-search { white-space: nowrap; padding: 0 10px; }
body.shell.ws .ws-locations .element-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 0 8px;
    padding: 0;
    border: 0;
}
body.shell.ws .ws-locations .element-tab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border: 1px solid var(--ws-line-strong);
    border-radius: 999px;
    background: #fff;
    color: var(--ws-ink-soft);
    font: 500 12px var(--ws-font);
}
body.shell.ws .ws-locations .element-tab.is-on { background: var(--ws-blue-soft); border-color: var(--ws-blue); color: var(--ws-blue-dark); }
body.shell.ws .ws-locations .element-tab .tab-count { font-style: normal; color: inherit; opacity: 0.75; background: transparent; }
body.shell.ws .ws-locations .element-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: none;
    margin: 0 0 8px;
    overflow: visible;
    border-top: 1px solid var(--ws-line);
}
body.shell.ws .ws-locations .element-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    padding: 8px 6px;
    margin: 0;
    background: transparent;
    outline: 0;
    border: 0;
    border-bottom: 1px solid var(--ws-line);
    border-radius: 0;
    color: var(--ws-ink);
    box-shadow: none;
    cursor: pointer;
}
body.shell.ws .ws-locations .element-item:hover { background: #f8fafc; }
body.shell.ws .ws-locations .element-item.is-selected { background: var(--ws-blue-soft); outline: 0; box-shadow: inset 3px 0 0 var(--ws-blue); }
body.shell.ws .ws-locations .element-item > input[type="checkbox"] { flex: 0 0 auto; margin: 0; }
body.shell.ws .ws-locations .element-item > .label-with-logo { flex: 1 1 calc(100% - 32px); }
body.shell.ws .ws-locations .element-item > span:not(.label-with-logo):not(.row-order) {
    flex: 1 1 100%;
    margin-top: -8px;
    padding-left: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 1;
    text-transform: none;
    letter-spacing: 0;
    color: var(--ws-muted);
    font: 400 11px var(--ws-font);
}
body.shell.ws .ws-locations .element-item:not(.is-selected):not(.group) > :is(.row-order, .group-pick, .pin-btn:not(.is-on), .logo-replace, .why-line, .override-box, .override-history, .unpin-label) { display: none; }
body.shell.ws .ws-locations .element-item > :is(.state-line, .why-line, .override-box, .override-form, .override-history) { flex: 1 1 100%; }
body.shell.ws .ws-locations .element-item:not(.is-selected) > .state-line { padding-left: 64px; margin-top: -6px; }
body.shell.ws .ws-locations .logo-replace { cursor: pointer; }
body.shell.ws .ws-locations .logo-replace input[type="file"] { display: none; }
body.shell.ws .ws-locations .element-item.group {
    display: block;
    margin: 0;
    padding: 10px 4px 6px;
    background: transparent;
    border-bottom: 0;
    color: var(--ws-muted);
    font: 600 11px/1.4 var(--ws-font);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: default;
}
body.shell.ws .ws-locations .element-item.group.tenant-bar { display: flex; justify-content: space-between; padding-top: 4px; }
body.shell.ws .ws-locations [data-group-make] {
    padding: 3px 8px;
    border: 1px solid var(--ws-line-strong);
    border-radius: 6px;
    background: #fff;
    color: var(--ws-ink-soft);
    font: 500 11px var(--ws-font);
    text-transform: none;
    letter-spacing: 0;
}
body.shell.ws .ws-locations .label-with-logo { display: flex; align-items: center; gap: 8px; min-width: 0; opacity: 1; text-transform: none; letter-spacing: 0; }
body.shell.ws .ws-locations .row-logo { width: 26px; height: 26px; object-fit: contain; border-radius: 4px; background: #fff; flex: 0 0 auto; }
body.shell.ws .ws-locations .label-edit {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 28px;
    padding: 3px 6px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    box-shadow: none;
    color: var(--ws-ink);
    font: 600 13px var(--ws-font);
    text-overflow: ellipsis;
}
body.shell.ws .ws-locations .element-item:not(.is-selected) .label-edit { border-color: transparent; background: transparent; }
body.shell.ws .ws-locations .label-edit:hover,
body.shell.ws .ws-locations .label-edit:focus { border-color: var(--ws-line-strong); background: #fff; }
body.shell.ws .ws-locations .element-item:not(.is-selected) .label-edit { pointer-events: none; }
body.shell.ws .ws-locations .state-line.is-suggested { color: #b45309; }
body.shell.ws .ws-locations .state-line.is-hidden { color: #b91c1c; }
body.shell.ws .ws-locations .override-box > button,
body.shell.ws .ws-locations .unpin-label,
body.shell.ws .ws-locations .override-form :is(input, select) {
    border: 1px solid var(--ws-line-strong);
    background: #fff;
    color: var(--ws-ink);
}
body.shell.ws .ws-locations .override-form button { background: var(--ws-blue); color: #fff; }
body.shell.ws .ws-locations .override-form .override-estimate,
body.shell.ws .ws-locations .override-history { color: var(--ws-muted); }
body.shell.ws .ws-locations .select-ico > svg { color: var(--ws-muted); }
body.shell.ws .ws-locations #nearby-category { padding-left: 32px; }
body.shell.ws .saved-map-item { background: #f8fafc; border: 1px solid var(--ws-line); color: var(--ws-ink); }
body.shell.ws .saved-map-item span { color: var(--ws-muted); }
body.shell.ws .ws-locations :is(.state-line, .why-line) { margin: 0; color: var(--ws-muted); font: 400 11px/1.4 var(--ws-font); }
body.shell.ws .ws-locations :is(.pin-btn, .logo-replace, .row-order button, .group-pick, [data-add-pin]) {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: auto;
    min-height: 24px;
    padding: 2px 8px;
    border: 1px solid var(--ws-line-strong);
    border-radius: 6px;
    background: #fff;
    color: var(--ws-ink-soft);
    font: 500 11px var(--ws-font);
}
body.shell.ws .ws-locations .pin-btn.is-on { border-color: var(--ws-blue); color: var(--ws-blue-dark); background: var(--ws-blue-soft); }
body.shell.ws .ws-locations .row-order { display: inline-flex; gap: 2px; }
body.shell.ws .ws-locations .scene-warnings { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 8px; }
body.shell.ws .ws-more {
    margin: 0;
    padding: 0;
    border: 1px solid var(--ws-line);
    border-radius: 10px;
    background: #fff;
    color: var(--ws-ink);
    box-shadow: none;
}
body.shell.ws .ws-more > summary { padding: 10px 12px; font: 600 13px var(--ws-font); cursor: pointer; }
body.shell.ws .ws-more > :not(summary) { padding: 0 12px 12px; }
body.shell.ws .ws-more .stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
body.shell.ws .ws-more .stat { display: grid; gap: 2px; padding: 8px; border-radius: 8px; background: #f8fafc; }
body.shell.ws .ws-more .stat::before { display: none; }
body.shell.ws .ws-more .stat strong { font: 700 16px var(--ws-font); color: var(--ws-ink); }
body.shell.ws .ws-more .stat span { font: 400 11px var(--ws-font); color: var(--ws-muted); }
body.shell.ws .ws-more .quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

/* Range comparison strip and the style/export rail appear once a map is open */
body.shell.ws .ws-main:has(#workspace.hidden) :is(.ws-strip, .ws-rail) { display: none; }
body.shell.ws .ws-strip { padding: 12px 12px 0; }
body.shell.ws .ws-strip .range-previews[hidden] { display: none; }
body.shell.ws .ws-strip .range-previews {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 12px;
    background: var(--ws-panel);
    border: 1px solid var(--ws-line);
    border-radius: var(--ws-radius);
}
body.shell.ws .ws-strip-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
body.shell.ws .ws-strip-head h2 { margin: 0; }
body.shell.ws .ws-strip-head .hint { flex: 1; margin: 0; min-width: 220px; }
body.shell.ws .ws-strip #btn-range-previews {
    width: auto;
    padding: 0 14px;
    border: 1px solid var(--ws-blue);
    border-radius: 8px;
    background: var(--ws-blue-soft);
    color: var(--ws-blue-dark);
    font: 600 13px var(--ws-font);
    min-height: 34px;
}
body.shell.ws .ws-strip .range-preview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
body.shell.ws .ws-strip .range-preview-grid:empty { display: none; }
body.shell.ws .range-preview { margin: 0; border: 1px solid var(--ws-line); border-radius: 8px; overflow: hidden; background: #102033; }
body.shell.ws .range-preview.is-current { border-color: var(--ws-blue); box-shadow: 0 0 0 1px var(--ws-blue); }
body.shell.ws .range-preview[data-range-use] { cursor: pointer; }
body.shell.ws .range-preview-frame { position: relative; aspect-ratio: 16 / 9; background: #1d2733; }
body.shell.ws .range-preview-frame img,
body.shell.ws .range-preview-frame svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
body.shell.ws .range-preview-frame.no-imagery { background: #1d2733; }
body.shell.ws .range-preview .range-preview-frame img { filter: brightness(1.32) saturate(1.15) contrast(1.02); }
body.shell.ws .range-preview .rp-banner { position: absolute; z-index: 2; top: 0; left: 0; right: 0; padding: 4px 8px; background: rgba(15, 31, 61, 0.94); color: #fff; font: 700 11px/1.2 Barlow, "Segoe UI", sans-serif; letter-spacing: 0.04em; }
body.shell.ws .range-preview svg .rp-road { fill: none; stroke: #ffff00; stroke-linecap: round; stroke-linejoin: round; }
body.shell.ws .range-preview svg .rp-parcel { fill: rgba(225, 6, 0, 0.26); stroke: #e10600; stroke-width: 1.6; }
body.shell.ws .range-preview svg .rp-road-name rect { fill: #ffffff; stroke: rgba(15, 23, 42, 0.55); stroke-width: 0.6; }
body.shell.ws .range-preview svg .rp-road-name text { fill: #0f172a; font: 700 7.4px Barlow, "Segoe UI", sans-serif; }
body.shell.ws .range-preview svg .rp-vpd rect { fill: #ffe000; stroke: #111; stroke-width: 0.7; }
body.shell.ws .range-preview svg .rp-vpd text { fill: #111; font: 800 7.4px Barlow, "Segoe UI", sans-serif; }
body.shell.ws .range-preview svg .rp-shield rect { fill: #1d4e89; stroke: #fff; stroke-width: 1; }
body.shell.ws .range-preview svg .rp-shield text { fill: #fff; font: 800 7px Barlow, "Segoe UI", sans-serif; }
body.shell.ws .range-preview svg .rp-logo-plate { fill: #fff; stroke: rgba(15, 23, 42, 0.3); stroke-width: 0.6; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.45)); }
body.shell.ws .range-preview svg .rp-place-name rect { fill: #fff; stroke: rgba(15, 23, 42, 0.3); stroke-width: 0.6; }
body.shell.ws .range-preview svg .rp-place-name text { fill: #0f172a; font: 700 7px Barlow, "Segoe UI", sans-serif; }
body.shell.ws .range-preview svg .rp-leader { stroke: #fff; stroke-width: 1; }
body.shell.ws .range-preview svg .rp-anchor { fill: #fff; stroke: #0f172a; stroke-width: 0.8; }
body.shell.ws .range-preview svg .rp-site { fill: #e10600; }
body.shell.ws .range-preview svg .rp-site-label { fill: #fff; font: 800 8px Barlow, "Segoe UI", sans-serif; letter-spacing: 0.04em; }
body.shell.ws .range-preview svg .rp-chip { fill: rgba(15, 23, 42, 0.78); }
body.shell.ws .range-preview svg .rp-scale { fill: none; stroke: #fff; stroke-width: 1.2; }
body.shell.ws .range-preview svg .rp-scale-text { fill: #fff; font: 600 6px Barlow, "Segoe UI", sans-serif; }
body.shell.ws .range-preview svg .rp-north { fill: #fff; }
body.shell.ws .ws-rail {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    padding: 12px;
}
body.shell.ws .ws-rail-card {
    min-width: 0;
    padding: 12px;
    background: var(--ws-panel);
    border: 1px solid var(--ws-line);
    border-radius: var(--ws-radius);
}
body.shell.ws .ws-rail-card h3 { font-size: 13px; }
body.shell.ws .ws-rail-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
body.shell.ws .ws-poi-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.shell.ws .ws-poi-sample {
    display: grid;
    place-items: center;
    width: 100%;
    height: 42px;
    border-radius: 6px;
    background: #e8efe4;
    color: #14532d;
    font: 800 11px/1 var(--ws-font);
}
body.shell.ws .ws-poi-sample.is-box { background: #fff; border: 2px solid #16325c; color: #16325c; }
body.shell.ws .ws-poi-sample.is-icon { background: radial-gradient(circle at 50% 55%, #16a34a 0 10px, transparent 11px), #e8efe4; }
body.shell.ws .ws-poi-sample.is-text { background: #fff; border: 1px solid #cbd5e1; color: #0f172a; font-size: 10px; }
body.shell.ws .ws-rail-tile {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 6px 4px 8px;
    border: 1px solid var(--ws-line-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--ws-ink-soft);
    font: 500 12px/1.2 var(--ws-font);
    cursor: pointer;
}
body.shell.ws .ws-rail-tile:hover { border-color: var(--ws-blue); }
body.shell.ws .ws-rail-tile.is-active { border-color: var(--ws-blue); box-shadow: inset 0 0 0 1px var(--ws-blue); background: var(--ws-blue-soft); color: var(--ws-blue-dark); }
body.shell.ws .ws-swatch {
    position: relative;
    display: block;
    width: 100%;
    height: 50px;
    border-radius: 6px;
    background: linear-gradient(135deg, #6c7560, #9aa08b 45%, #5d6852);
}
body.shell.ws .ws-swatch::after {
    content: "";
    position: absolute;
    left: 24%;
    top: 22%;
    width: 52%;
    height: 56%;
    border: 2px solid #e10600;
    border-radius: 2px;
}
body.shell.ws .ws-swatch.is-fill::after { background: rgba(225, 6, 0, 0.4); }
body.shell.ws .ws-swatch.is-pin::after {
    left: calc(50% - 8px);
    top: 14px;
    width: 16px;
    height: 16px;
    border: 0;
    border-radius: 50% 50% 50% 0;
    background: #e10600;
    transform: rotate(-45deg);
}
body.shell.ws .ws-label-sample {
    display: grid;
    gap: 4px;
    justify-items: center;
    width: 100%;
    padding: 7px 4px;
    border-radius: 6px;
    background: #f1f5f9;
}
body.shell.ws .ws-label-sample b,
body.shell.ws .ws-label-sample i {
    padding: 2px 6px;
    border-radius: 2px;
    font: 700 10px/1.2 "Barlow Condensed", Arial, sans-serif;
    font-style: normal;
    letter-spacing: 0.02em;
}
body.shell.ws .ws-label-sample.is-standard b { background: #111827; color: #fff; }
body.shell.ws .ws-label-sample.is-standard i { background: #ffe000; color: #111827; }
body.shell.ws .ws-label-sample.is-dark b { background: #16325c; color: #fff; }
body.shell.ws .ws-label-sample.is-dark i { background: #111827; color: #ffe000; }
body.shell.ws .ws-label-sample.is-light b,
body.shell.ws .ws-label-sample.is-light i { background: #fff; color: #111827; border: 1px solid #cbd5e1; }
body.shell.ws .ws-brand-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 10px;
    padding: 10px;
    border: 1px dashed var(--ws-line-strong);
    border-radius: 8px;
}
body.shell.ws .ws-brand-preview strong { font: 700 14px var(--ws-font); color: var(--ws-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.shell.ws .ws-brand-preview a { color: var(--ws-blue); font: 600 12px var(--ws-font); white-space: nowrap; }
body.shell.ws .ws-check { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; color: var(--ws-ink-soft); font: 500 13px var(--ws-font); }
body.shell.ws .ws-export-btn { display: flex; width: 100%; justify-content: center; align-items: center; height: 38px; margin: 0 0 8px; }

body.shell.ws .ws-inspector:has([data-nav="map"].is-active) #saved-maps { display: none; }
body.shell.ws .ws-inspector:has([data-nav="saved"].is-active) :is(.ws-location, #generate-form) { display: none; }
body.shell.ws :is(.ws-inspector, .ws-locations) { scrollbar-width: none; }
body.shell.ws :is(.ws-inspector, .ws-locations)::-webkit-scrollbar { display: none; }

/*
 * One-screen workspace: once a map is open the whole editor (inspector, map, locations, range strip,
 * and style/export rail) fits the window like the reference, with no page scroll.
 */
@media (min-width: 961px) and (min-height: 600px) {
    body.shell.ws:has(#workspace:not(.hidden)) { height: 100dvh; overflow: hidden; }
    body.shell.ws:has(#workspace:not(.hidden)) .ws-app { height: 100dvh; min-height: 0; }
    body.shell.ws:has(#workspace:not(.hidden)) .ws-main { height: 100dvh; min-height: 0; overflow: hidden; }
    body.shell.ws:has(#workspace:not(.hidden)) .ws-topbar { min-height: 48px; }
    body.shell.ws:has(#workspace:not(.hidden)) .app-frame.ws-frame {
        flex: 1 1 0;
        height: auto;
        min-height: 0;
        grid-template-columns: minmax(250px, 20vw) minmax(0, 1fr) minmax(270px, 22vw);
        gap: 8px;
        padding: 8px 8px 0;
    }
    body.shell.ws:has(#workspace:not(.hidden)) .ws-stage { gap: 6px; }
    body.shell.ws:has(#workspace:not(.hidden)) .ws-toolbar { padding: 3px 6px; }
    body.shell.ws:has(#workspace:not(.hidden)) .ws-tool { height: 28px; }
    body.shell.ws:has(#workspace:not(.hidden)) :is(.ws-inspector, .ws-locations) { padding: 10px 12px; }

    body.shell.ws .ws-inspector .config-tabs { margin: 0 0 10px; }
    body.shell.ws .ws-inspector .config-tabs .rail-btn { padding: 5px 8px; }
    body.shell.ws .ws-location { margin: 0 0 10px; }
    body.shell.ws .ws-location h2 { margin-bottom: 6px; }
    body.shell.ws .ws-location .header-search { height: 34px; margin-bottom: 8px; }
    body.shell.ws .ws-subject { gap: 4px 10px; padding: 8px; }
    body.shell.ws .ws-subject :is(.detail-link, #property-card-facts, #property-card-meta, #map-focus) { display: none; }
    body.shell.ws .ws-subject .detail-address { font-size: 12.5px; }
    body.shell.ws .ws-inspector .config-block { margin: 0 0 10px; }
    body.shell.ws .ws-inspector .config-block > h2 { margin-bottom: 6px; }
    body.shell.ws #flow-type .hint { display: none; }
    body.shell.ws .ws-type-current { padding: 6px 10px; }
    body.shell.ws .radius-chip { height: 30px; }
    body.shell.ws .ws-style-tiles { grid-template-columns: repeat(auto-fit, minmax(42px, 1fr)); gap: 5px; }
    body.shell.ws .ws-style-tile { gap: 3px; padding: 3px 3px 4px; font-size: 10.5px; }
    body.shell.ws .ws-style-thumb { height: 30px; }
    body.shell.ws .ws-advanced { margin: 0 0 6px; padding-top: 4px; }
    body.shell.ws .ws-advanced > summary { padding: 4px 0 6px; }
    body.shell.ws #generate-form:is([data-flow="edit"], [data-flow="export"]) #flow-nav { display: none; }

    body.shell.ws .ws-locations { gap: 6px; }
    body.shell.ws .ws-locations .nearby-tools { grid-template-columns: minmax(0, 1fr) minmax(0, 92px) 32px; gap: 5px; margin-bottom: 4px; }
    body.shell.ws .ws-locations .nearby-tools .select-ico { grid-column: auto; order: 1; gap: 0; }
    body.shell.ws .ws-locations .nearby-tools .select-ico > svg { display: none; }
    body.shell.ws .ws-locations .nearby-tools #nearby-category { padding-left: 6px; }
    body.shell.ws .ws-locations #btn-nearby-search { order: 2; justify-content: center; padding: 0; }
    body.shell.ws .ws-locations #btn-nearby-search span { display: none; }
    body.shell.ws .ws-locations .element-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    body.shell.ws .ws-locations .element-tabs::-webkit-scrollbar { display: none; }
    body.shell.ws .ws-locations .element-tab { flex: 0 0 auto; }
    body.shell.ws .ws-locations .element-item.group:not(.tenant-bar) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    body.shell.ws .ws-locations :is(#nearby-q, #nearby-category, #btn-nearby-search) { min-height: 30px; height: 30px; padding-top: 4px; padding-bottom: 4px; font-size: 12px; }
    body.shell.ws .ws-locations .select-ico { height: 30px; }
    body.shell.ws .ws-locations .element-tabs { gap: 3px; margin-bottom: 4px; }
    body.shell.ws .ws-locations .element-tab { padding: 3px 7px; font-size: 11px; }
    body.shell.ws .ws-locations .element-item { gap: 2px 8px; padding: 5px 4px; }
    body.shell.ws .ws-locations .element-item:not(.is-selected) > .state-line { display: none; }
    body.shell.ws .ws-locations .element-item > span:not(.label-with-logo):not(.row-order) { margin-top: -4px; padding-left: 58px; }
    body.shell.ws .ws-locations .label-edit { min-height: 22px; padding: 1px 6px; font-size: 12.5px; }
    body.shell.ws .ws-locations .row-logo { width: 24px; height: 24px; }
    body.shell.ws .ws-locations .element-item.group { padding: 6px 4px 3px; font-size: 10px; }

    body.shell.ws:has(#workspace:not(.hidden)) .ws-strip {
        flex: 0 0 clamp(160px, 26dvh, 270px);
        min-height: 0;
        padding: 8px 8px 6px;
        overflow: hidden;
        box-sizing: border-box;
    }
    body.shell.ws .ws-strip .range-previews { position: relative; height: 100%; min-height: 0; padding: 0; gap: 0; background: transparent; border: 0; }
    body.shell.ws .ws-strip .range-previews:has(.range-preview) .ws-strip-head { display: none; }
    body.shell.ws .ws-strip .range-previews:not(:has(.range-preview)) {
        place-items: center;
        background: var(--ws-panel);
        border: 1px solid var(--ws-line);
    }
    body.shell.ws .ws-strip .range-preview-grid { position: absolute; inset: 0; height: auto; min-height: 0; gap: 8px; grid-template-rows: minmax(0, 1fr); align-items: stretch; }
    body.shell.ws .ws-strip .range-preview { position: relative; height: 100%; min-height: 0; max-height: 100%; overflow: hidden; border-radius: 10px; }
    body.shell.ws .ws-strip .range-preview-frame { position: relative; height: 100%; width: 100%; max-height: 100%; min-height: 0; aspect-ratio: auto; overflow: hidden; }
    body.shell.ws .ws-strip .range-preview-frame img { object-fit: cover; }

    body.shell.ws:has(#workspace:not(.hidden)) .ws-rail {
        position: relative;
        z-index: 2;
        flex: 0 0 auto;
        gap: 6px;
        padding: 6px;
        background: var(--ws-bg);
        overflow: hidden;
    }
    body.shell.ws .ws-rail { grid-template-columns: 1.62fr 1.54fr 1.71fr 1.67fr 1fr; }
    body.shell.ws:has(#workspace:not(.hidden)) .ws-rail { height: clamp(124px, 15.6dvh, 172px); }
    body.shell.ws:has(#workspace:not(.hidden)) .ws-rail-card { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
    body.shell.ws:has(#workspace:not(.hidden)) .ws-rail-tiles { flex: 1 1 0; min-height: 0; grid-template-rows: minmax(0, 1fr); }
    body.shell.ws:has(#workspace:not(.hidden)) .ws-rail-tile {
        grid-template-rows: minmax(0, 1fr) auto;
        min-height: 0;
        min-width: 0;
        overflow: hidden;
    }
    body.shell.ws:has(#workspace:not(.hidden)) :is(.ws-swatch, .ws-poi-sample) { height: 100%; min-height: 22px; }
    body.shell.ws:has(#workspace:not(.hidden)) .ws-label-sample { height: 100%; min-height: 0; align-content: center; }
    body.shell.ws:has(#workspace:not(.hidden)) .ws-brand-body { flex: 1 1 0; min-height: 0; }
    body.shell.ws:has(#workspace:not(.hidden)) .ws-export-btn { flex: 1 1 0; height: auto; min-height: 22px; max-height: 34px; }
    body.shell.ws:has(#workspace:not(.hidden)) .ws-rail-note { flex: 0 0 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    body.shell.ws .ws-rail-card { padding: 7px 10px 8px; }
    body.shell.ws .ws-rail-card h3 { margin: 0 0 5px; font-size: 12px; }
    body.shell.ws .ws-rail-tiles { gap: 6px; }
    body.shell.ws .ws-rail-tile { gap: 3px; padding: 3px 3px 4px; font-size: 10.5px; }
    body.shell.ws .ws-swatch { height: 34px; }
    body.shell.ws .ws-swatch.is-pin::after { top: 8px; }
    body.shell.ws .ws-label-sample { gap: 2px; padding: 3px; }
    body.shell.ws .ws-label-sample :is(b, i) { font-size: 9px; padding: 1px 5px; }
    body.shell.ws .ws-poi-sample { height: 34px; }
    body.shell.ws .ws-brand-preview { margin: 0 0 5px; padding: 6px 8px; }
    body.shell.ws .ws-check { margin: 0 0 2px; font-size: 12px; }
    body.shell.ws .ws-export-btn { height: 32px; margin: 0 0 5px; }
    body.shell.ws .ws-rail-card .hint { display: none; }
}

@media (max-width: 1360px) {
    body.shell.ws .ws-app { grid-template-columns: 64px minmax(0, 1fr); }
    body.shell.ws .ws-nav { padding: 12px 8px; align-items: center; }
    body.shell.ws .ws-brand .wordmark,
    body.shell.ws .ws-nav-link span,
    body.shell.ws .ws-user-text { display: none; }
    body.shell.ws .ws-brand { padding: 2px 0 14px; }
    body.shell.ws .ws-nav-link { justify-content: center; width: 42px; padding: 10px 0; }
    body.shell.ws .ws-user { justify-content: center; padding: 10px 0 2px; }
    body.shell.ws .app-frame.ws-frame { grid-template-columns: 280px minmax(0, 1fr) 270px; }
    body.shell.ws .ws-tool span { display: none; }
    body.shell.ws .ws-tool { padding: 0 9px; }
    body.shell.ws .ws-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
    body.shell.ws .ws-steps button { font-size: 0; gap: 0; }
    body.shell.ws .ws-steps button span { font-size: 12px; }
    body.shell.ws .ws-steps li + li::before { width: 16px; }
    body.shell.ws .ws-strip .range-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    body.shell.ws .ws-app { grid-template-columns: minmax(0, 1fr); }
    body.shell.ws .ws-nav {
        position: static;
        height: auto;
        flex-direction: row;
        align-items: center;
        gap: 4px;
        padding: 8px 10px;
        overflow-x: auto;
        border-right: 0;
        border-bottom: 1px solid var(--ws-line);
    }
    body.shell.ws .ws-brand { padding: 0 6px 0 0; }
    body.shell.ws .ws-user { margin: 0 0 0 auto; border-top: 0; padding: 0; }
    body.shell.ws .ws-topbar { position: static; flex-wrap: wrap; gap: 8px; padding: 8px 12px; }
    body.shell.ws .ws-project-name { flex: 1 1 100%; }
    body.shell.ws .ws-steps { margin: 0; }
    body.shell.ws .ws-topbar .header-actions { margin-left: auto; }
    body.shell.ws .app-frame.ws-frame,
    body.shell.ws .ws-frame:has(#workspace.hidden) {
        grid-template-columns: minmax(0, 1fr);
        height: auto;
        padding: 10px 10px 0;
    }
    body.shell.ws .ws-stage { order: -1; height: 72vh; min-height: 420px; }
    body.shell.ws .ws-frame:has(#workspace.hidden) .ws-stage { order: 0; height: auto; min-height: 0; }
    body.shell.ws .ws-frame:has(#workspace.hidden) .map-stage { min-height: 520px; }
    body.shell.ws .ws-inspector,
    body.shell.ws .ws-locations { overflow: visible; }
    body.shell.ws .ws-rail { grid-template-columns: minmax(0, 1fr); padding: 10px; }
    body.shell.ws .ws-strip { padding: 10px 10px 0; }
    body.shell.ws .ws-strip .range-preview-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Export crop guide: the imagery fills the stage and the framed area is what the file contains. */
.map-wrap > .crop-guide {
    position: absolute;
    z-index: 4;
    pointer-events: none;
    box-shadow: 0 0 0 100vmax rgba(15, 23, 42, 0.12);
}
.map-wrap:has(> .crop-guide) {
    overflow: hidden;
}

/*
 * One-screen workspace, reference layout: the navigation ends above the range previews, and the
 * previews and the style/export rail run the full window width beneath it.
 */
@media (min-width: 961px) and (min-height: 600px) {
    body.shell.ws:has(#workspace:not(.hidden)) .ws-app { grid-template-rows: auto minmax(0, 1fr) auto auto; }
    body.shell.ws:has(#workspace:not(.hidden)) .ws-main { display: contents; }
    body.shell.ws:has(#workspace:not(.hidden)) .ws-nav { grid-column: 1; grid-row: 1 / 3; position: static; height: auto; min-height: 0; overflow: hidden; }
    body.shell.ws:has(#workspace:not(.hidden)) .ws-topbar { grid-column: 2; grid-row: 1; }
    body.shell.ws:has(#workspace:not(.hidden)) .app-frame.ws-frame { grid-column: 2; grid-row: 2; }
    body.shell.ws:has(#workspace:not(.hidden)) .ws-strip {
        grid-column: 1 / -1;
        grid-row: 3;
        height: clamp(150px, 27dvh, 290px);
        min-height: 0;
        overflow: hidden;
    }
    body.shell.ws:has(#workspace:not(.hidden)) .ws-rail { grid-column: 1 / -1; grid-row: 4; align-self: stretch; }

    body.shell.ws .ws-subject .detail-grid { display: flex; gap: 10px; grid-column: 2; }
    body.shell.ws .ws-subject:not(:has(#property-card-photo:not([hidden]))) .detail-grid { grid-column: 1; }
    body.shell.ws .ws-subject .detail-grid > div { display: flex; gap: 3px; }
    body.shell.ws .ws-subject .detail-grid > div:nth-child(n + 3) { display: none; }
    body.shell.ws .ws-subject .detail-grid :is(dt, dd) { font: 400 11px var(--ws-font); color: var(--ws-muted); }
    body.shell.ws .ws-subject .detail-grid dt::after { content: ':'; }
    body.shell.ws .ws-subject #property-card-photo { grid-row: 1 / 3; width: 60px; height: 46px; }

    body.shell.ws:has(#workspace:not(.hidden)) .ws-inspector .config-tabs { margin-bottom: 6px; }
    body.shell.ws:has(#workspace:not(.hidden)) .ws-inspector .config-tabs .rail-btn { padding: 3px 8px; min-height: 0; height: 28px; }
    body.shell.ws:has(#workspace:not(.hidden)) .ws-location { margin-bottom: 6px; }
    body.shell.ws:has(#workspace:not(.hidden)) .ws-location .header-search { margin-bottom: 6px; }
    body.shell.ws:has(#workspace:not(.hidden)) #generate-form .config-title { margin-bottom: 4px; }
    body.shell.ws:has(#workspace:not(.hidden)) .ws-inspector .config-block { margin-bottom: 6px; }
    body.shell.ws:has(#workspace:not(.hidden)) .ws-location h2 { margin-bottom: 4px; }
    body.shell.ws:has(#workspace:not(.hidden)) .radius-chip { height: 27px; }
    body.shell.ws:has(#workspace:not(.hidden)) .ws-inspector .config-block > h2 { margin-bottom: 4px; }
    body.shell.ws:has(#workspace:not(.hidden)) .ws-style-thumb { height: 26px; }
    body.shell.ws .ws-type-tiles { gap: 4px; }
    body.shell.ws .ws-type-tile { gap: 1px; padding: 3px 1px 2px; font-size: 10.5px; }
    body.shell.ws .ws-type-tile svg { width: 16px; height: 16px; }
    body.shell.ws .ws-style-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Locations rows: a trailing action button opens the row's actions; the subject leads the Included list. */
body.shell.ws .ws-locations .element-item > .label-with-logo { flex-basis: calc(100% - 64px); }
body.shell.ws .ws-locations .row-menu {
    flex: 0 0 auto;
    width: 24px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--ws-muted);
    font: 700 15px/1 var(--ws-font);
    cursor: pointer;
}
body.shell.ws .ws-locations .row-menu:hover,
body.shell.ws .ws-locations .element-item.is-selected > .row-menu { background: #e2e8f0; color: var(--ws-ink); }
body.shell.ws .ws-locations .subject-row { cursor: default; }
body.shell.ws .ws-locations .subject-row b { font: 600 12.5px var(--ws-font); }
body.shell.ws .ws-locations .subject-pin { padding: 2px; color: #dc2626; background: transparent; }
body.shell.ws .ws-locations .subject-row > input[type="checkbox"]:disabled { opacity: 1; }

/* Branding card: the client logo box beside the export toggles, as in the reference. */
body.shell.ws .ws-brand-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; }
body.shell.ws .ws-brand-body .ws-brand-preview {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    border: 0;
}
body.shell.ws .ws-brand-logo {
    display: grid;
    place-items: center;
    min-height: 58px;
    padding: 6px;
    border: 1px dashed var(--ws-line-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--ws-ink);
    font: 700 13px/1.2 var(--ws-font);
    text-align: center;
    overflow: hidden;
    cursor: pointer;
}
body.shell.ws .ws-brand-logo:hover { border-color: var(--ws-blue); }
body.shell.ws .ws-brand-logo img { max-width: 100%; max-height: 48px; object-fit: contain; }
body.shell.ws .ws-brand-logo [hidden] { display: none; }
body.shell.ws .ws-brand-body .ws-brand-preview a { text-align: center; font-size: 11px; }
body.shell.ws .ws-brand-checks .ws-check { white-space: nowrap; }
body.shell.ws .ws-brand-checks .ws-check:has(input:disabled) { color: var(--ws-ink-soft); }
@media (min-width: 961px) and (min-height: 600px) {
    body.shell.ws .ws-brand-checks .ws-check { margin: 0; font-size: 11.5px; line-height: 18px; }
    body.shell.ws .ws-brand-checks .ws-check input { width: 13px; height: 13px; }
    body.shell.ws .ws-brand-logo { min-height: 64px; }
}

/* Live map furniture in the reference corners, kept inside the export crop. */
.map-wrap > .north-arrow {
    top: auto;
    left: auto;
    right: calc(var(--crop-r, 0px) + 60px);
    bottom: calc(var(--crop-b, 0px) + 14px);
    width: 34px;
    height: 34px;
    place-items: start center;
    padding-top: 4px;
    box-sizing: border-box;
    background: rgba(10, 15, 25, 0.88);
    color: #fff;
    font: 700 10px/1 Inter, system-ui, sans-serif;
    z-index: 5;
}
.map-wrap > .north-arrow::after {
    content: "";
    position: absolute;
    left: calc(50% - 6px);
    bottom: 5px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 15px solid #fff;
}
.map-wrap > .live-scale {
    position: absolute;
    left: calc(var(--crop-l, 0px) + 12px);
    bottom: calc(var(--crop-b, 0px) + 30px);
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(2, calc(var(--scale-px, 100px) / 2)) auto;
    align-items: end;
    padding: 4px 10px 5px 8px;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    font: 600 10px/1 Inter, system-ui, sans-serif;
    pointer-events: none;
}
.map-wrap > .live-scale[hidden] { display: none; }
.map-wrap > .live-scale > i {
    grid-column: 1 / 3;
    grid-row: 2;
    height: 4px;
    margin-top: 3px;
    border: 1px solid #fff;
    background: linear-gradient(90deg, #fff 50%, transparent 50%);
}
.map-wrap > .live-scale > span { grid-row: 1; transform: translateX(-3px); white-space: nowrap; }
.map-wrap > .live-scale > [data-scale-end] { grid-column: 3; transform: translateX(-6px); }
@media (min-width: 961px) and (min-height: 600px) and (max-height: 820px) {
    body.shell.ws .ws-type-tile { padding: 5px 1px; }
    body.shell.ws .ws-type-tile svg { display: none; }
    body.shell.ws:has(#workspace:not(.hidden)) .ws-style-thumb { height: 18px; }
    body.shell.ws:has(#workspace:not(.hidden)) .ws-subject #property-card-photo { display: none; }
    body.shell.ws:has(#workspace:not(.hidden)) .ws-inspector .config-tabs .rail-btn { height: 24px; }
}

/* Outline and fill wait for a lot boundary; the tile says so instead of silently showing the pin. */
body.shell.ws .ws-rail-tile.needs-boundary { position: relative; }
body.shell.ws .ws-rail-tile.needs-boundary::after {
    content: '!';
    position: absolute;
    top: 3px;
    right: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #f59e0b;
    color: #fff;
    font: 700 10px/14px var(--ws-font);
    text-align: center;
}
body.shell.ws .ws-rail-note { margin: 4px 0 0; color: #b45309; font: 500 10.5px/1.3 var(--ws-font); }
body.shell.ws .ws-rail-note[hidden] { display: none; }

/* Reference workspace pass: pill map tools, a quiet inspector while editing, and rail samples drawn from this map. */
body.shell.ws .ws-toolbar { gap: 6px; padding: 6px 8px; }
body.shell.ws .ws-toolbar .ws-tool,
body.shell.ws .ws-toolbar :is(#btn-reset, #btn-add, #btn-draw, #ws-hide, #ws-edit-label, #ws-style, #ws-layers).ws-tool {
    height: 30px;
    padding: 0 9px;
    gap: 5px;
    border: 1px solid var(--ws-line-strong);
    border-radius: 7px;
    background: #fff;
    font-size: 12px;
    box-shadow: 0 1px 1px rgba(15, 23, 42, 0.04);
}
body.shell.ws .ws-toolbar :is(#btn-undo, #btn-redo).ws-tool { height: 30px; padding: 0 6px; gap: 4px; font-size: 12px; }
@media (min-width: 1680px) {
    body.shell.ws .ws-toolbar :is(#btn-undo, #btn-redo).ws-tool span { display: inline; }
}
@media (max-width: 1679px) {
    body.shell.ws .ws-toolbar { gap: 4px; padding: 6px; }
    body.shell.ws .ws-toolbar .ws-tool,
    body.shell.ws .ws-toolbar :is(#btn-reset, #btn-add, #btn-draw, #ws-hide, #ws-edit-label, #ws-style, #ws-layers).ws-tool { padding: 0 6px; gap: 4px; font-size: 11.5px; }
}
@media (min-width: 1361px) and (max-width: 1439px) {
    body.shell.ws .ws-toolbar :is(#btn-reset, #btn-add, #btn-draw, #ws-hide, #ws-edit-label, #ws-style, #ws-layers).ws-tool svg { display: none; }
}
body.shell.ws .ws-toolbar .ws-tool-sep { display: none; }
body.shell.ws .ws-style-menu {
    position: fixed;
    z-index: 80;
    display: grid;
    gap: 2px;
    min-width: 148px;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--ws-line-strong);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
}
body.shell.ws .ws-style-menu[hidden] { display: none; }
body.shell.ws .ws-style-menu p {
    margin: 4px 6px 2px;
    color: var(--ws-muted);
    font: 600 10px/1.2 var(--ws-font);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
body.shell.ws .ws-style-menu button {
    height: 30px;
    padding: 0 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--ws-ink);
    font: 500 12.5px/1 var(--ws-font);
    text-align: left;
    cursor: pointer;
}
body.shell.ws .ws-style-menu button:hover,
body.shell.ws .ws-style-menu button.is-active { background: var(--ws-blue-soft); color: var(--ws-blue-dark); }
body.shell.ws .ws-toolbar #ws-style[aria-expanded="true"] { background: var(--ws-blue-soft); color: var(--ws-blue-dark); }
body.shell.ws .ws-toolbar .ws-tool svg { width: 14px; height: 14px; color: var(--ws-ink-soft); }

body.shell.ws:has(#workspace:not(.hidden)) .ws-inspector .config-tabs,
body.shell.ws:has(#workspace:not(.hidden)) #generate-form .config-title { display: none; }

body.shell.ws .ws-locations-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
body.shell.ws .ws-icon-btn {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--ws-line-strong);
    border-radius: 7px;
    background: #fff;
    color: var(--ws-ink-soft);
    cursor: pointer;
}
body.shell.ws .ws-icon-btn[aria-expanded="true"] { border-color: var(--ws-blue); color: var(--ws-blue); background: var(--ws-blue-soft); }
body.shell.ws .ws-locations:not(.is-searching) #ws-nearby-tools { display: none; }

body.shell.ws .ws-swatch { background-color: #5d6852; background-size: cover; background-position: center; }
body.shell.ws .ws-rail[style*="--ws-subject-thumb"] .ws-swatch { background-image: var(--ws-subject-thumb); }
body.shell.ws .ws-rail[style*="--ws-subject-thumb"] .ws-swatch.is-pin::after { top: calc(50% - 12px); }

body.shell.ws .ws-poi-sample.is-logo,
body.shell.ws .ws-poi-sample.is-box { position: relative; background-color: #fff; background-repeat: no-repeat; background-position: center; background-size: 60% 60%; }
body.shell.ws .ws-poi-sample.is-logo { border: 1px solid #cbd5e1; }
body.shell.ws .ws-rail.has-poi-logo .ws-poi-sample:is(.is-logo, .is-box) { background-image: var(--ws-poi-logo); }
body.shell.ws .ws-rail.has-poi-logo .ws-poi-sample:is(.is-logo, .is-box) b { display: none; }
body.shell.ws .ws-poi-sample.is-logo::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -7px;
    width: 1px;
    height: 7px;
    background: #64748b;
}
body.shell.ws .ws-poi-sample.is-icon { background: #fff; border: 1px solid #cbd5e1; color: #fff; }
body.shell.ws .ws-poi-sample.is-icon svg { box-sizing: content-box; padding: 6px; border-radius: 50%; background: #475569; }

body.shell.ws #ws-brand-logo-text.is-placeholder { display: inline-flex; align-items: center; gap: 8px; color: #334155; font: 600 15px/1.05 var(--ws-font); text-align: left; }
body.shell.ws #ws-brand-logo-text.is-placeholder[hidden] { display: none; }
body.shell.ws #ws-brand-logo-text.is-placeholder::after {
    content: "";
    width: 26px;
    height: 26px;
    background: #1e3a5f;
    clip-path: polygon(0 45%, 50% 0, 100% 45%, 100% 100%, 64% 100%, 64% 62%, 36% 62%, 36% 100%, 0 100%);
}

/* Home workspace: same light chrome as the map, for the whole account page. */
body.shell.ws .ws-user.is-active { background: var(--ws-blue-soft); }
body.shell.ws .ws-logout { margin: 0; padding: 0 8px 6px; }
body.shell.ws .ws-logout button {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 6px 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
    color: var(--ws-muted);
    font: 500 12px/1 var(--ws-font);
    justify-content: flex-start;
    cursor: pointer;
}
body.shell.ws .ws-logout button:hover { background: #f1f5f9; color: var(--ws-ink); }
body.shell.ws .ws-page { padding: 22px 24px 28px; min-height: 100dvh; background: var(--ws-bg); }
body.shell.ws .ws-page main { width: 100%; max-width: none; margin: 0; padding: 0; background: transparent; }
body.shell.ws .ws-page-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 28px;
    padding-top: 14px;
    border-top: 1px solid var(--ws-line);
    color: var(--ws-muted);
    font: 500 12px/1 var(--ws-font);
}
body.shell.ws .ws-page-foot a { color: var(--ws-muted); text-decoration: none; }
body.shell.ws .ws-page-foot a:hover { color: var(--ws-blue); }
body.shell.ws.ws-home { margin: 0; }
body.shell.ws.ws-home * { box-sizing: border-box; }
body.shell.ws.ws-home .ws-home-body { padding: 20px 22px 32px; }
body.shell.ws.ws-home .page { display: grid; gap: 16px; }
body.shell.ws.ws-home .page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    background: var(--ws-panel);
    border: 1px solid var(--ws-line);
    border-radius: var(--ws-radius);
}
body.shell.ws.ws-home .page-head h1 { margin: 0; font: 700 26px/1.15 var(--ws-font); color: var(--ws-ink); letter-spacing: -0.02em; }
body.shell.ws.ws-home .eyebrow { margin: 0; font: 600 11px/1 var(--ws-font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ws-blue); }
body.shell.ws.ws-home .hint { margin: 0; color: var(--ws-muted); font: 400 13px/1.45 var(--ws-font); }
body.shell.ws.ws-home .hint a { color: var(--ws-blue); font-weight: 600; }
body.shell.ws.ws-home a.go,
body.shell.ws.ws-home button.go {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    background: var(--ws-blue);
    color: #fff;
    font: 600 14px/1 var(--ws-font);
    text-decoration: none;
    cursor: pointer;
}
body.shell.ws.ws-home a.go:hover,
body.shell.ws.ws-home button.go:hover { background: var(--ws-blue-dark); }
body.shell.ws.ws-home .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
body.shell.ws.ws-home .stat,
body.shell.ws.ws-home .panel {
    background: var(--ws-panel);
    border: 1px solid var(--ws-line);
    border-radius: var(--ws-radius);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
body.shell.ws.ws-home .stat {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 2px 12px;
    align-items: center;
    padding: 14px 16px;
}
body.shell.ws.ws-home .stat .ico { grid-row: span 2; }
body.shell.ws.ws-home .stat strong { font: 700 18px/1.2 var(--ws-font); color: var(--ws-ink); }
body.shell.ws.ws-home .stat span { color: var(--ws-muted); font: 400 12px/1.3 var(--ws-font); }
body.shell.ws.ws-home .stat .meter { grid-column: 2; }
body.shell.ws.ws-home .panel { display: grid; gap: 12px; align-content: start; padding: 16px 18px; }
body.shell.ws.ws-home .panel h2 { margin: 0; font: 700 16px/1.2 var(--ws-font); color: var(--ws-ink); }
body.shell.ws.ws-home .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
body.shell.ws.ws-home .split { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
body.shell.ws.ws-home .split > div { display: grid; gap: 16px; }
body.shell.ws.ws-home .ico {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--ws-blue-soft);
    color: var(--ws-blue);
}
body.shell.ws.ws-home .ico svg { width: 18px; height: 18px; }
body.shell.ws.ws-home .ico.gold { background: #f6ead0; color: #8c6a1f; }
body.shell.ws.ws-home .ico.green { background: #e8f6ee; color: #15803d; }
body.shell.ws.ws-home .ico.violet { background: #f0ebff; color: #6d4aff; }
body.shell.ws.ws-home .meter { height: 6px; margin-top: 6px; border-radius: 999px; background: #e7ecf4; overflow: hidden; }
body.shell.ws.ws-home .meter i { display: block; height: 100%; border-radius: inherit; background: var(--ws-blue); }
body.shell.ws.ws-home .actions-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
body.shell.ws.ws-home .action {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 2px 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--ws-line);
    border-radius: 10px;
    background: #f8fafc;
    color: var(--ws-ink);
    text-decoration: none;
}
body.shell.ws.ws-home .action:hover { border-color: #bfd0f5; background: #fff; }
body.shell.ws.ws-home .action .ico { grid-row: span 2; }
body.shell.ws.ws-home .action strong { font: 600 14px/1.2 var(--ws-font); }
body.shell.ws.ws-home .action span { color: var(--ws-muted); font: 400 12px/1.3 var(--ws-font); }
body.shell.ws.ws-home .recent-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
body.shell.ws.ws-home .recent {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 0 0 10px;
    border: 1px solid var(--ws-line);
    border-radius: 10px;
    background: #fff;
    color: var(--ws-ink);
    text-decoration: none;
    overflow: hidden;
}
body.shell.ws.ws-home .recent:hover { border-color: #bfd0f5; }
body.shell.ws.ws-home .recent strong,
body.shell.ws.ws-home .recent small { padding: 0 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.shell.ws.ws-home .recent strong { font: 600 13px/1.3 var(--ws-font); }
body.shell.ws.ws-home .recent small { color: var(--ws-muted); font: 400 12px/1.3 var(--ws-font); }
body.shell.ws.ws-home .proj-cover {
    position: relative;
    display: block;
    height: 112px;
    overflow: hidden;
    color: var(--ws-blue);
    background:
        radial-gradient(circle at 50% 58%, transparent 0 18px, rgba(37, 99, 235, 0.35) 19px 20px, transparent 21px),
        repeating-linear-gradient(0deg, rgba(37, 99, 235, 0.08) 0 1px, transparent 1px 18px),
        repeating-linear-gradient(90deg, rgba(37, 99, 235, 0.08) 0 1px, transparent 1px 18px),
        #eaf1ff;
}
body.shell.ws.ws-home .proj-cover .pin { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -100%); color: #e11d48; }
body.shell.ws.ws-home .proj-cover .proj-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
body.shell.ws.ws-home .proj-cover:has(.proj-thumb) .pin { display: none; }
body.shell.ws.ws-home .badge {
    position: absolute;
    top: 8px;
    left: 8px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: #fff;
    color: var(--ws-ink-soft);
    font: 700 11px/22px var(--ws-font);
}
body.shell.ws.ws-home .badge.solid { position: static; background: var(--ws-blue); color: #fff; }
body.shell.ws.ws-home .ghost,
body.shell.ws.ws-home button.ghost {
    border: 0;
    background: transparent;
    color: var(--ws-blue);
    font: 600 13px/1 var(--ws-font);
    cursor: pointer;
    text-decoration: none;
}
body.shell.ws.ws-home .inline { display: inline-flex; align-items: center; gap: 8px; }
body.shell.ws.ws-home .list { display: grid; min-height: 0; overflow: auto; }
body.shell.ws.ws-home .notice-item { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 2px 10px; padding: 10px 0; border-top: 1px solid var(--ws-line); }
body.shell.ws.ws-home .notice-item:first-child { border-top: 0; padding-top: 0; }
body.shell.ws.ws-home .notice-item .dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--ws-blue); }
body.shell.ws.ws-home .notice-item.is-read .dot { background: #cbd5e1; }
body.shell.ws.ws-home .notice-item p { margin: 0; grid-column: 2; color: var(--ws-ink); font: 500 14px/1.4 var(--ws-font); }
body.shell.ws.ws-home .notice-item strong { font-weight: 600; }
body.shell.ws.ws-home .dash-notices { min-height: 100%; }
body.shell.ws.ws-home .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
@media (max-width: 1100px) {
    body.shell.ws.ws-home .stats,
    body.shell.ws.ws-home .actions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.shell.ws.ws-home .split { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    body.shell.ws.ws-home .ws-app { grid-template-columns: 1fr; }
    body.shell.ws.ws-home .ws-nav { position: relative; height: auto; flex-direction: row; flex-wrap: wrap; }
    body.shell.ws.ws-home .ws-user { margin-top: 0; width: 100%; }
}

/* Export crop guide and broker positions for the live north arrow and scale. These sit beside #map, never inside it. */
body.shell.ws .map-wrap .crop-frame {
    position: absolute;
    z-index: 4;
    pointer-events: none;
    box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.38);
    outline: 2px dashed rgba(255, 255, 255, 0.85);
}
body.shell.ws .map-wrap:has(.crop-frame) { overflow: hidden; }
body.shell .map-wrap:has(#map-status.is-hint:not(.hidden))::before { display: none; }
body.shell #map-status.map-status.is-hint {
    top: 14px;
    transform: translateX(-50%);
    min-width: 0;
    padding: 8px 16px;
    border-radius: 999px;
    font: 600 13px/1.3 Barlow, sans-serif;
    background: rgba(14, 27, 58, 0.92);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}
body.shell #map-status.map-status.is-hint::before { display: none; }
#map.is-sketching :is(.poi-logo-host, .poi-earth-stack, .poi-marker, .poi-cluster, .property-callout, .vpd-badge, .road-banner, .subject-pin-mark, .leader-dot) {
    pointer-events: none !important;
    opacity: 0.55;
}
body.shell.ws .map-wrap[data-north="top_left"] .north-arrow { left: 12px; right: auto; top: 12px; bottom: auto; }
body.shell.ws .map-wrap[data-scale="bottom_right"] .live-scale { right: 60px; left: auto; }
body.shell.ws .ws-locations .row-num {
    flex: 0 0 auto;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: #e2e8f0;
    color: #334155;
    font: 700 10.5px/18px var(--ws-font);
    text-align: center;
}
body.shell.ws .ws-locations .element-item.is-broker-pick .row-num { background: var(--ws-blue); color: #fff; }
body.shell.ws .ws-locations .element-tab .tab-count:not(:empty) {
    margin-left: 4px;
    padding: 0 5px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.08);
    font-style: normal;
    font-size: 10.5px;
}
body.shell.ws .ws-locations .element-item:has(.row-num) > span:not(.label-with-logo):not(.row-order) { padding-left: 84px; }
