@layer workspace {
/* Akeno Location Atlas: a client-facing restaurant location fieldbook.
 * Local OFL Manrope/Cormorant, actual approved source documents and geography.
 * Client scope only; no data, approval, authentication or storage changes.
 */
body[data-mode="client"] {color:var(--ink);background:var(--paper);}
body[data-mode="client"] button,
body[data-mode="client"] input,
body[data-mode="client"] select,
body[data-mode="client"] textarea {border-radius:8px;}
/* Foreground and background states change together to preserve contrast. */
body[data-mode="client"] button {transition:box-shadow .15s ease;}
body[data-mode="client"] :focus-visible {outline:3px solid var(--atlas-accent);outline-offset:3px;}
body[data-mode="client"] button:active {background:var(--atlas-highlight);color:var(--ink);}
body[data-mode="client"] .primary {background:var(--atlas-accent);border-color:var(--atlas-accent);color:var(--white);}
body[data-mode="client"] .primary:hover {background:var(--atlas-accent-strong);border-color:var(--atlas-accent-strong);color:var(--white);}

/* A compact, real brand lockup leaves room for the photographic opening. */
body[data-mode="client"] .masthead {height:80px;padding:8px 24px;gap:26px;background:var(--header-bg);color:var(--header-text);border-bottom:1px solid var(--header-line);}
body[data-mode="client"] .brand {gap:12px;color:var(--header-text);}
body[data-mode="client"] .brand img {width:48px;height:48px;border:0;border-radius:6px;background:var(--white);}
body[data-mode="client"] .brand strong {font:600 29px/1 var(--ui);letter-spacing:.08em;}
body[data-mode="client"] .brand small {color:var(--header-muted);font-size:12px;letter-spacing:.12em;margin-top:7px;}
body[data-mode="client"] .header-context {border-color:var(--header-line);color:var(--header-muted);padding-left:24px;font-size:12px;letter-spacing:.09em;font-weight:600;}
body[data-mode="client"] .header-context span {color:var(--header-muted);font-size:12px;letter-spacing:0;font-weight:500;}
body[data-mode="client"] .masthead nav {gap:6px;}
body[data-mode="client"] .masthead nav button {color:var(--header-text);background:transparent;border-radius:8px;padding-inline:14px;font-size:12px;min-height:44px;}
body[data-mode="client"] .masthead nav button:hover {background:var(--header-hover);color:var(--header-text);}
body[data-mode="client"] .masthead nav button.nav-current {color:var(--atlas-accent);background:var(--white);border:1px solid var(--white);}
body[data-mode="client"] .masthead nav span {background:var(--surface-soft);color:var(--ink);font-size:12px;min-width:21px;height:21px;}
body[data-mode="client"] .masthead nav .nav-current span {background:var(--surface-soft);color:var(--atlas-accent);}
body[data-mode="client"] .masthead :focus-visible {outline-color:var(--header-focus);}
body[data-mode="client"] .private-badge {color:var(--header-muted);border-color:var(--header-line);font-size:12px;}
body[data-mode="client"] .private-badge:before {background:var(--header-focus);}
body[data-mode="client"] .demo-banner {background:var(--surface-soft);color:var(--muted);border-color:var(--line);font-size:12px;min-height:26px;}

/* A dining photograph introduces the location fieldbook without making a claim
 * about a candidate property or the operator's actual menu. Text stays on paper.
 */
body[data-mode="client"] .workspace {grid-template-columns:380px minmax(0,1fr);height:calc(100dvh - 80px);}
body[data-mode="client"]:has(.demo-banner:not([hidden])) .workspace {height:calc(100dvh - 108px);}
body[data-mode="client"] .rail {border-right:1px solid var(--line);background:var(--paper);}
body[data-mode="client"] .intro {display:flex;align-items:center;gap:12px;height:auto;min-height:0;padding:14px 20px;background:transparent;color:var(--ink);border:0;}
body[data-mode="client"] .hero-media {order:2;flex:0 0 88px;position:relative;height:70px;border-radius:8px;overflow:hidden;background:linear-gradient(120deg,#d9dfd3,#f0efe7 55%,#d9e0d7);}
body[data-mode="client"] .hero-photo {display:block;position:relative;inset:auto;width:100%;height:100%;object-fit:cover;object-position:50% 50%;z-index:auto;border-radius:0;}
body[data-mode="client"] .hero-media.hero-unavailable .hero-photo,
body[data-mode="client"] .hero-unavailable .hero-media .hero-photo {display:none;}
body[data-mode="client"] .hero-media.hero-unavailable:before,
body[data-mode="client"] .hero-unavailable .hero-media:before {content:"Akeno";position:absolute;left:20px;bottom:32px;color:var(--atlas-accent);font:600 52px/1 var(--display);letter-spacing:-.035em;}
body[data-mode="client"] .hero-media.hero-unavailable:after,
body[data-mode="client"] .hero-unavailable .hero-media:after {content:"LOCATION ATLAS";position:absolute;left:22px;bottom:17px;color:var(--muted);font:600 10px/1 var(--ui);letter-spacing:.16em;}
body[data-mode="client"] .hero-scrim {display:none;}
body[data-mode="client"] .hero-copy {flex:1;max-width:100%;display:grid;gap:3px;padding:0;}
body[data-mode="client"] .intro .eyebrow {display:none;color:var(--muted);font-size:12px;letter-spacing:.08em;margin:0;}
body[data-mode="client"] .intro h1 {font:600 36px/1 var(--display);letter-spacing:-.035em;margin:0;}
body[data-mode="client"] .intro-copy {color:var(--muted);font-size:12px;line-height:1.5;max-width:100%;margin:0;}
body[data-mode="client"].site-selected .intro {padding:12px 22px;}
body[data-mode="client"].site-selected .hero-media,
body[data-mode="client"].site-selected .intro .eyebrow,
body[data-mode="client"].site-selected .intro-copy {display:none;}
body[data-mode="client"].site-selected .hero-copy {padding-top:14px;}
body[data-mode="client"].site-selected .intro h1 {font-size:29px;}
body[data-mode="client"] #filters {padding:0 20px;}
body[data-mode="client"] .search-label input {border-color:var(--line);border-radius:9px;font-size:12px;height:44px;}
body[data-mode="client"] .search-label svg {stroke:var(--muted);}
body[data-mode="client"] summary {color:var(--ink);font-size:12px;}
body[data-mode="client"] #criteria {margin-top:2px;border-bottom:1px solid var(--line);}
body[data-mode="client"] #criteriaSummary {color:var(--muted);font-size:12px;}
body[data-mode="client"] .list-heading {padding:0 20px;margin:0;}
body[data-mode="client"] .list-heading p {font-size:12px;font-weight:600;letter-spacing:.02em;}
body[data-mode="client"] #siteList {padding:0 20px 6px;}

/* One property-card definition. Evidence remains a finding, never a score. */
body[data-mode="client"] .site-card {border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;margin:0;padding:4px 0;background:transparent;}
body[data-mode="client"] .site-card.selected {background:var(--surface-soft);border-radius:8px;}
body[data-mode="client"] .site-select {display:block;width:100%;text-align:left;padding:4px 2px;background:transparent;}
body[data-mode="client"] .site-select:hover {background:transparent;}
body[data-mode="client"] .card-top {gap:8px;margin-bottom:5px;}
body[data-mode="client"] .site-number {width:22px;height:22px;background:transparent;color:var(--muted);font-size:12px;}
body[data-mode="client"] .card-no {font-size:12px;letter-spacing:0;font-weight:600;}
body[data-mode="client"] .card-top .area {margin-left:auto;font-size:12px;font-weight:600;}
body[data-mode="client"] .site-card h3 {font:600 28px/1.05 var(--display);margin:0 0 4px;overflow-wrap:anywhere;}
body[data-mode="client"] .address {font-size:12px;color:var(--muted);line-height:1.5;overflow-wrap:anywhere;}
body[data-mode="client"] .card-availability {font-size:12px;line-height:1.4;background:none;margin:6px 0 0;font-weight:600;}
body[data-mode="client"] .card-kitchen {font-size:12px;line-height:1.4;margin:2px 0 0;color:var(--muted);}
body[data-mode="client"] .card-actions {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:0;background:transparent;border:0;}
body[data-mode="client"] .card-actions button {min-height:44px;padding:4px;font-size:12px;border:0;background:transparent;color:var(--atlas-accent);}
body[data-mode="client"] .card-actions button:hover,body[data-mode="client"] .card-actions button[aria-pressed="true"] {background:var(--surface-soft);}
body[data-mode="client"] .rail-foot {padding:16px 20px;font-size:12px;color:var(--muted);}
/* The shortlist stays close to the directory, with honest selection and order. */
body[data-mode="client"] #selectionTray {margin:0 20px 9px;padding:9px 10px;background:var(--surface-soft);border:1px solid var(--line);border-radius:9px;}
body[data-mode="client"] .selection-tray-heading {display:flex;align-items:center;gap:6px;flex-wrap:wrap;}
body[data-mode="client"] .selection-tray-heading strong,
body[data-mode="client"] .selection-tray-heading p {font-size:12px;margin:0;line-height:1.4;}
body[data-mode="client"] .selection-tray-heading button {min-height:44px;padding:5px 7px;font-size:12px;border-color:transparent;background:var(--white);}
body[data-mode="client"] .selection-tray-items {display:grid;gap:3px;margin-top:5px;max-height:186px;overflow:auto;scrollbar-width:thin;}
body[data-mode="client"] .selection-tray-items .tray-group-title {font-size:12px;line-height:1.4;font-weight:600;color:var(--ink);margin:5px 0 1px;}
body[data-mode="client"] .selection-tray-items>div,
body[data-mode="client"] .selection-tray-items>li {display:flex;align-items:center;gap:4px;min-width:0;margin:0;padding:0;}
body[data-mode="client"] .selection-tray-items button {font-size:12px;min-height:44px;min-width:44px;padding:4px 6px;border:0;background:transparent;flex-shrink:0;}
body[data-mode="client"] .selection-tray-items button:first-child {flex:1;min-width:0;text-align:left;line-height:1.4;overflow-wrap:anywhere;}
body[data-mode="client"] .selection-tray-items .tray-item>span {flex:1;min-width:0;font-size:12px;line-height:1.4;overflow-wrap:anywhere;}
body[data-mode="client"] #selectionTray details {margin:0;border:0;}
body[data-mode="client"] #selectionTray summary {min-height:44px;font-size:12px;font-weight:500;}
body[data-mode="client"] .selection-tray-items .tray-remove {flex:0 0 44px;text-align:center;color:var(--muted);}

/* A quiet geographic canvas, with softly framed functional map furniture. */
body[data-mode="client"] .map-stage {background:var(--map-paper);}
body[data-mode="client"] .map-heading {top:22px;left:22px;right:22px;padding:0;border:0;border-radius:0;background:transparent;gap:16px;}
body[data-mode="client"] .map-title {display:block;padding:15px 18px!important;border:1px solid var(--line)!important;background:var(--white)!important;border-radius:10px;box-shadow:0 4px 20px var(--shadow)!important;}
body[data-mode="client"] .map-title h2 {font:600 22px/1.1 var(--ui)!important;letter-spacing:-.035em;}
body[data-mode="client"] .map-title p:last-child {font-size:12px;margin-top:7px;letter-spacing:.01em;}
body[data-mode="client"] .map-heading button {background:var(--white);border:1px solid var(--line);border-radius:8px;padding:8px 12px;box-shadow:0 4px 14px var(--shadow);color:var(--ink);font-size:12px;}
body[data-mode="client"] .map-key {top:124px;left:22px;padding:8px 11px;border:1px solid var(--line);border-radius:7px;background:var(--white);font-size:12px;gap:6px 12px;flex-wrap:wrap;max-width:calc(100% - 44px);}
body[data-mode="client"] .map-key-item {display:inline-flex;align-items:center;gap:6px;white-space:nowrap;}
body[data-mode="client"] .map-key-item .key-line {margin-left:0;}
body[data-mode="client"] .key-dot {background:var(--atlas-accent);}
body[data-mode="client"] .key-conflict {background:var(--conflict);}
body[data-mode="client"] .maplibregl-ctrl-top-right {top:118px;right:22px;}
body[data-mode="client"] .maplibregl-ctrl-group {border-radius:9px;box-shadow:0 4px 18px var(--shadow);border:1px solid var(--line);overflow:hidden;}
body[data-mode="client"] .maplibregl-ctrl-group button {width:44px;height:44px;}
/* Preserve the SDK attribution control's own 24px info button. */
body[data-mode="client"] .maplibregl-ctrl-attrib-button {min-width:24px;min-height:24px;width:24px;height:24px;padding:0;}
body[data-mode="client"] .maplibregl-ctrl-attrib-button:after {content:none;}
body[data-mode="client"] .pin {border-radius:50%;border:2px solid var(--white);background:var(--ink);color:var(--white);box-shadow:0 3px 12px var(--shadow-strong);font-size:13px;font-weight:700;}
body[data-mode="client"] .pin[data-evidence="conflict"] {background:var(--conflict);}
body[data-mode="client"] .pin.active {background:var(--atlas-accent);color:var(--white);border-color:var(--white);outline:2px solid var(--atlas-accent);outline-offset:3px;box-shadow:0 3px 12px var(--shadow-strong);}
body[data-mode="client"] .pin-label {border-radius:8px;background:var(--white);color:var(--ink);border:1px solid var(--line);box-shadow:0 5px 20px var(--shadow);}
body[data-mode="client"] .pin.active .pin-label {display:block;top:52px;bottom:auto;background:var(--white);color:var(--ink);border-color:var(--line);white-space:normal;min-width:130px;max-width:210px;line-height:1.35;}
body[data-mode="client"] .pin.active[data-label-position="top"] .pin-label,
body[data-mode="client"] .pin.active .pin-label[data-label-position="top"] {top:auto;bottom:52px;}
body[data-mode="client"] .pin.active[data-label-position="bottom"] .pin-label,
body[data-mode="client"] .pin.active .pin-label[data-label-position="bottom"] {top:52px;bottom:auto;}
body[data-mode="client"] .pin-stop {background:var(--red);color:var(--white);}
body[data-mode="client"] .map-brief {left:22px;bottom:65px;border:1px solid var(--line);border-radius:10px;background:var(--white);color:var(--ink);box-shadow:0 8px 28px var(--shadow);padding:8px 10px 8px 15px;max-width:calc(100% - 44px);}
body[data-mode="client"] .map-brief strong {font-size:12px;font-weight:600;}
body[data-mode="client"] .map-brief button {background:var(--atlas-accent);color:var(--white);border:0;font-size:12px;}
body[data-mode="client"] .map-status {left:22px;bottom:25px;border-radius:6px;background:rgba(255,255,255,.96);color:var(--muted);font-size:12px;}

/* The site feature is led by its name, evidence and approved source document. */
body[data-mode="client"] .detail {top:22px;bottom:auto;right:22px;width:min(var(--client-detail-width,320px),calc(100% - 44px));max-height:calc(100% - 44px);padding:14px;border:1px solid var(--line);border-radius:12px;box-shadow:0 18px 60px var(--shadow-strong);scroll-padding-top:calc(var(--detail-header-height,70px) + 65px);scroll-padding-bottom:20px;}
body[data-mode="client"] .detail[data-expanded="true"] {top:22px;bottom:24px;width:min(var(--client-detail-width,360px),calc(100% - 44px));padding:16px;max-height:none;}
body[data-mode="client"] .detail-header {top:-14px;padding:0 0 8px;background:var(--white);border-bottom:1px solid var(--line);}
body[data-mode="client"] .detail-header .eyebrow {color:var(--muted);font-size:12px;margin-bottom:4px;}
body[data-mode="client"] .detail[data-expanded="false"] .detail-header .eyebrow {display:none;}
body[data-mode="client"] .detail-header h3 {font:600 29px/1.03 var(--display);letter-spacing:-.025em;margin:0;}
body[data-mode="client"] .detail[data-expanded="true"] .detail-header {top:-16px;padding:8px 0;}
body[data-mode="client"] .detail[data-expanded="true"] .detail-header h3 {font-size:32px;}
body[data-mode="client"] .detail-header button {border-color:var(--line);border-radius:8px;min-width:44px;background:var(--surface-soft);}
body[data-mode="client"] .detail>.address {font-size:13px;margin-top:14px;}
body[data-mode="client"] .detail-stats {border-color:var(--line);margin-top:0;padding:18px 0;}
body[data-mode="client"] .detail-stats .area {font-size:28px;color:var(--ink);font-weight:600;}
body[data-mode="client"] .detail-stats p {font-size:12px;color:var(--muted);}
body[data-mode="client"] .detail-summary .detail-stats {display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 0;border:0;}
body[data-mode="client"] .detail-summary .detail-stats .area {font-size:23px;white-space:nowrap;}
body[data-mode="client"] .detail-summary .detail-stats p {font-size:12px!important;line-height:1.4;margin:2px 0 0;}
body[data-mode="client"] .detail-summary .detail-stats .chip {font-size:12px!important;padding:3px 6px;}
body[data-mode="client"] .detail-key-issue {font-size:12px;line-height:1.4;color:var(--muted);margin:3px 0 7px;}
body[data-mode="client"] .detail-summary-actions {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;}
body[data-mode="client"] .detail-summary-actions button {min-height:44px;padding:5px 4px;font-size:12px;line-height:1.3;font-weight:600;}
body[data-mode="client"] .detail-summary-actions button[aria-pressed="true"] {background:var(--atlas-highlight);color:var(--atlas-accent-strong);}
body[data-mode="client"] #expandDetail {width:100%;min-height:44px;padding:7px 9px;margin-top:5px;background:var(--surface-soft);border-color:transparent;font-size:12px;font-weight:600;color:var(--atlas-accent-strong);}
body[data-mode="client"] #expandDetail:hover {background:var(--surface-hover);}
body[data-mode="client"] .detail-expanded-content {padding-top:10px;}
body[data-mode="client"] .detail-expanded-content>.address {font-size:12px;margin:2px 0 8px;}
body[data-mode="client"] .detail .record-flyer {margin-top:14px;border:0;border-radius:9px;background:var(--surface-soft);padding:11px;}
body[data-mode="client"] .detail .record-flyer-thumbnail {width:58px;border:1px solid var(--line);border-radius:3px;box-shadow:none;}
body[data-mode="client"] .detail .record-flyer-thumbnail img {height:72px;}
body[data-mode="client"] .detail-tabs {top:calc(var(--detail-header-height,70px) - 16px);background:var(--white);border-bottom:1px solid var(--line);gap:2px;padding:8px 0;}
body[data-mode="client"] .detail-tabs button {min-height:44px;border-radius:7px;font-size:12px;background:var(--white);color:var(--muted);font-weight:600;}
body[data-mode="client"] .detail-tabs button[aria-selected="true"] {background:var(--atlas-highlight);color:var(--ink);}
body[data-mode="client"] .detail-tabs button[aria-selected="true"]:hover,
body[data-mode="client"] .detail-tabs button[aria-selected="false"]:hover {background:var(--surface-soft);color:var(--ink);}
body[data-mode="client"] .evidence-card {border-color:var(--line);padding:17px 0;}
body[data-mode="client"] .evidence-title {font-size:13px;font-weight:600;}
body[data-mode="client"] .evidence-card p {font-size:13px;line-height:1.7;}
body[data-mode="client"] .evidence-card .citation {font-size:12px!important;line-height:1.6;}
body[data-mode="client"] .detail>h3 {font:600 30px/1.05 var(--display);margin-top:24px;}
body[data-mode="client"] .questions {font-size:13px;padding-left:19px;line-height:1.75;}
body[data-mode="client"] .detail .actions {background:var(--white);border-top:1px solid var(--line);bottom:-16px;}
body[data-mode="client"] .detail-foot {font-size:12px;}
body[data-mode="client"] .band-control button {border-radius:7px;}
body[data-mode="client"] .band-control button[aria-pressed="true"] {background:var(--atlas-accent);color:var(--white);border-color:var(--atlas-accent);}
body[data-mode="client"] .model-source,
body[data-mode="client"] .geographic-map,
body[data-mode="client"] .geographic-label {border-radius:9px;}

/* The comparison and visit book use the same calm hierarchy and source fidelity. */
body[data-mode="client"] dialog {border:1px solid var(--line);border-radius:12px;background:var(--paper);}
body[data-mode="client"] dialog::backdrop {background:rgba(47,52,49,.65);backdrop-filter:blur(3px);}
body[data-mode="client"] .dialog-heading {border-bottom:1px solid var(--line);padding-bottom:22px;}
body[data-mode="client"] .dialog-heading h2 {font:600 36px/1.04 var(--display);letter-spacing:-.04em;}
body[data-mode="client"] .dialog-heading .eyebrow {color:var(--muted);font-size:12px;}
body[data-mode="client"] .dialog-heading>button {background:var(--white);border-color:var(--line);}
body[data-mode="client"] .comparison article,
body[data-mode="client"] .comparison-scroll,
body[data-mode="client"] .overlap-section {border-radius:10px;}
body[data-mode="client"] .comparison h3 {font:600 32px/1.04 var(--display);}
body[data-mode="client"] .comparison th,
body[data-mode="client"] .comparison td {border-color:var(--line);}
body[data-mode="client"] .comparison thead th {background:var(--surface-soft);color:var(--ink);}
body[data-mode="client"] .comparison tbody th {background:var(--paper);color:var(--ink);}
body[data-mode="client"] .comparison-scroll-hint {display:none;}
body[data-mode="client"] #tourOrder li {border-bottom:1px solid var(--line);}
body[data-mode="client"] #tourOrder li:before {display:grid;place-items:center;min-width:35px;height:35px;background:var(--surface-soft);color:var(--muted);border-radius:8px;font:600 13px var(--ui);margin-right:8px;}
body[data-mode="client"] #tourOrder strong {font-size:14px;font-weight:600;}
body[data-mode="client"] #tourOrder .address {font-size:12px;}
body[data-mode="client"] .packet-sheet {border-radius:10px;border-color:var(--line);}
body[data-mode="client"] .packet-hero {border-radius:9px;background:var(--surface-soft);color:var(--ink);}
body[data-mode="client"] .packet-hero img,
body[data-mode="client"] .packet-hero:before {display:none;}
body[data-mode="client"] .packet-hero h2 {color:var(--ink);}
body[data-mode="client"] .packet-hero .eyebrow,
body[data-mode="client"] .packet-hero p:last-child {color:var(--muted);}
body[data-mode="client"] .packet-map {border-radius:8px;}
body[data-mode="client"] .notice {border-radius:9px;background:var(--ink);color:var(--white);}
body[data-mode="client"] .flyer-peek {border-radius:12px;border-color:var(--line);}
body[data-mode="client"] .flyer-peek-heading h2 {font:600 29px/1.05 var(--display);letter-spacing:-.02em;}
body[data-mode="client"] .flyer-library-heading {border-bottom:1px solid var(--line);padding-bottom:9px;margin-bottom:20px;}
body[data-mode="client"] .flyer-library-heading .eyebrow {color:var(--muted);}
body[data-mode="client"] .flyer-library-heading h1 {font:600 clamp(35px,4vw,48px)/1.05 var(--display);letter-spacing:-.045em;margin-top:13px;}
body[data-mode="client"] .flyer-stage {border:1px solid var(--line);border-radius:12px;background:radial-gradient(ellipse at 50% 34%,var(--white),var(--surface-soft));box-shadow:0 12px 35px var(--shadow);}
body[data-mode="client"] .flyer-card {border-radius:8px;}
body[data-mode="client"] .flyer-controls button {border-color:var(--line);background:var(--white);}
body[data-mode="client"] .flyer-detail h2 {font:600 clamp(34px,3vw,47px)/1 var(--display);}
body[data-mode="client"] .flyer-reader {border-radius:12px;}
body[data-mode="client"] .flyer-reader-heading {border-color:var(--line);}
body[data-mode="client"] .flyer-reader-heading h2 {font:600 31px/1.05 var(--display);letter-spacing:-.02em;}

/* Selected desktop evidence docks beside the map's own controls. */
@media(min-width:761px) {
  body[data-mode="client"] .map-stage {--client-detail-width:320px;}
  body[data-mode="client"] .map-stage:has(.detail[data-expanded="true"]:not([hidden])) {--client-detail-width:360px;}
  body[data-mode="client"] .map-stage:has(.detail:not([hidden])) .map-heading {right:calc(var(--client-detail-width) + 44px);gap:8px;}
  body[data-mode="client"] .map-stage:has(.detail:not([hidden])) .maplibregl-ctrl-top-right {right:calc(var(--client-detail-width) + 44px);}
  body[data-mode="client"] .map-stage:has(.detail:not([hidden])) .map-key {max-width:calc(100% - var(--client-detail-width) - 132px);}
  body[data-mode="client"] .map-stage:has(.detail:not([hidden])) .map-title {padding:10px 12px!important;}
  body[data-mode="client"] .map-stage:has(.detail:not([hidden])) .map-title h2 {font-size:15px!important;white-space:nowrap;letter-spacing:-.02em;}
  body[data-mode="client"] .map-stage:has(.detail:not([hidden])) .map-title p:last-child {display:none;}
  body[data-mode="client"] .map-stage:has(.detail:not([hidden])) .map-heading>button {flex-shrink:0;}
}
@media(min-width:1700px) {
  body[data-mode="client"] .workspace {grid-template-columns:380px minmax(0,1fr);}
}
@media(max-width:1250px) and (min-width:761px) {
  body[data-mode="client"] .masthead {gap:18px;padding-inline:20px;}
  body[data-mode="client"] .header-context {display:none;}
  body[data-mode="client"] .workspace {grid-template-columns:380px minmax(0,1fr);}
  body[data-mode="client"] .map-stage:has(.detail[data-expanded="true"]:not([hidden])) {--client-detail-width:340px;}
  body[data-mode="client"] .detail {right:16px;left:auto;width:min(var(--client-detail-width),calc(100% - 32px));}
  body[data-mode="client"] .detail[data-expanded="true"] {width:min(var(--client-detail-width),calc(100% - 32px));}
}
@media(max-width:760px) {
  body[data-mode="client"] .masthead {height:84px;min-height:84px;padding:4px 12px;gap:0;display:grid;grid-template-columns:auto 1fr;grid-template-rows:32px 44px;align-items:center;}
  body[data-mode="client"] .brand {grid-column:1;grid-row:1;gap:8px;}
  body[data-mode="client"] .brand img {width:32px;height:32px;}
  body[data-mode="client"] .brand strong {font-size:25px;letter-spacing:.05em;}
  body[data-mode="client"] .brand small {display:none;}
  body[data-mode="client"] .header-context {display:block;grid-row:1;grid-column:2;justify-self:end;padding-left:8px;margin:0;font-size:12px;letter-spacing:.04em;line-height:1.45;}
  body[data-mode="client"] .header-context span {font-size:12px;}
  body[data-mode="client"] .masthead nav {grid-column:1/-1;grid-row:2;width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;}
  body[data-mode="client"] .masthead nav #exploreOpen {display:block;margin-right:0;}
  body[data-mode="client"] .masthead nav button {min-height:44px;font-size:12px;padding:4px 2px;}
  body[data-mode="client"] .masthead nav .primary {margin-left:0;padding-inline:3px;}
  body[data-mode="client"] .masthead nav span {width:18px;min-width:18px;height:18px;font-size:12px;margin-left:5px;}
  body[data-mode="client"] .private-badge {display:none;}
  body[data-mode="client"] .demo-banner {min-height:25px;padding:5px 10px;font-size:12px;}
  body[data-mode="client"] .workspace,
  body[data-mode="client"]:has(.demo-banner:not([hidden])) .workspace {display:block;height:auto;min-height:calc(100dvh - 84px);}
  body[data-mode="client"] .rail {border:0;}
  body[data-mode="client"] .intro {min-height:0;padding:6px 20px;}
  body[data-mode="client"] .hero-media {height:46px;flex-basis:70px;}
  body[data-mode="client"] .hero-copy {gap:0;padding:0;}
  body[data-mode="client"] .intro .eyebrow {display:none;}
  body[data-mode="client"] .intro h1 {font-size:36px;}
  body[data-mode="client"] .intro-copy {display:none;}
  body[data-mode="client"] .mobile-switch {position:sticky;top:84px;z-index:5;margin:0 15px 0;padding:0;gap:4px;border-radius:9px;background:var(--surface-soft);}
  body[data-mode="client"] .mobile-switch button {border-radius:7px;min-height:44px;font-size:12px;border:0;background:transparent;}
  body[data-mode="client"] .mobile-switch button[aria-pressed="true"] {background:var(--white);color:var(--ink);box-shadow:0 1px 4px var(--shadow);}
  body[data-mode="client"] #filters {padding:8px 20px 0;}
  body[data-mode="client"] .list-heading {padding-inline:20px;}
  body[data-mode="client"] #siteList {padding-inline:20px;}
  body[data-mode="client"] .site-card {padding-block:4px;}
  body[data-mode="client"] .site-card h3 {font-size:27px;}
  body[data-mode="client"] .card-facts .area {font-size:16px;}
  body[data-mode="client"] .card-actions button {font-size:12px;}
  body[data-mode="client"] .map-stage {height:calc(100dvh - 84px);min-height:545px;--client-sheet-height:clamp(350px,45dvh,410px);}
  body[data-mode="client"]:has(.demo-banner:not([hidden])) .map-stage {height:calc(100dvh - 112px);}
  body[data-mode="client"] .map-stage .mobile-switch {position:absolute;top:12px;left:0;right:0;z-index:5;margin-inline:15px;}
  body[data-mode="client"] .map-stage #selectionTray {position:absolute;z-index:5;top:74px;left:15px;right:106px;margin:0;padding:4px;display:grid;grid-template-columns:auto minmax(44px,1fr);gap:4px;box-shadow:0 4px 14px var(--shadow);}
  body[data-mode="client"] .map-stage .selection-tray-heading {gap:3px;flex-wrap:nowrap;}
  body[data-mode="client"] .map-stage .selection-tray-heading button {padding-inline:6px;font-size:12px;}
  body[data-mode="client"] .map-stage #selectionTray summary {font-size:12px;justify-content:center;gap:4px;padding:0 4px;}
  body[data-mode="client"] .map-stage #selectionTray summary:before {content:"Sites";font-size:12px;}
  body[data-mode="client"] .map-stage #selectionTray summary:after {font-size:14px;margin-left:0;}
  body[data-mode="client"] .map-stage #selectionTray:has(details[open]) {right:15px;}
  body[data-mode="client"] .map-stage #selectionTray details[open] {grid-column:1/-1;max-height:270px;overflow:auto;padding:0 6px;}
  body[data-mode="client"] .map-stage #selectionTray details[open] summary {font-size:12px;justify-content:flex-start;}
  body[data-mode="client"] .map-stage #selectionTray details[open] summary:before {display:none;}
  body[data-mode="client"] .map-stage #selectionTray details[open] summary:after {margin-left:auto;}
  body[data-mode="client"] .map-stage:has(#selectionTray:not([hidden])) .map-title {display:none;}
  body[data-mode="client"] .map-stage:has(#selectionTray:not([hidden])) .map-heading {justify-content:flex-end;}
  body[data-mode="client"] .map-stage:has(.detail[data-expanded="true"]:not([hidden])) #selectionTray {display:none;}
  body[data-mode="client"] .map-heading {top:74px;left:15px;right:15px;padding:0;gap:9px;}
  body[data-mode="client"] .map-title {max-width:calc(100% - 93px);padding:9px 11px!important;}
  body[data-mode="client"] .map-title h2 {font-size:16px!important;}
  body[data-mode="client"] .map-title p:last-child {font-size:12px;margin-top:4px;}
  body[data-mode="client"] .map-heading button {font-size:12px;min-height:44px;padding:8px;}
  body[data-mode="client"] .map-key {top:142px;left:15px;right:auto;font-size:12px;padding:6px 8px;gap:4px 9px;max-width:calc(100% - 86px);}
  body[data-mode="client"] .maplibregl-ctrl-top-right {top:142px;right:15px;}
  body[data-mode="client"] .map-status {left:15px;right:15px;bottom:25px;max-width:calc(100% - 30px);font-size:12px;}
  body[data-mode="client"] .map-brief {left:15px;bottom:64px;padding:6px 8px 6px 10px;max-width:calc(100% - 30px);gap:8px;}
  body[data-mode="client"] .map-brief strong {font-size:12px;}
  body[data-mode="client"] .map-brief button {font-size:12px;min-height:44px;}
  body[data-mode="client"] .detail,
  body[data-mode="client"] .detail[data-expanded="true"] {position:absolute;top:auto;bottom:0;left:0;right:0;width:100%;height:var(--client-sheet-height);max-height:calc(100% - 190px);padding:12px 15px;border-left:0;border-right:0;border-bottom:0;border-radius:12px 12px 0 0;z-index:6;box-shadow:0 -5px 25px var(--shadow);scroll-padding-bottom:18px;}
  body[data-mode="client"] .map-stage:has(.detail[data-expanded="true"]:not([hidden])) {--client-sheet-height:min(70dvh,calc(100% - 190px));}
  /* Full evidence leaves a focused map opening: its own Close/summary controls
   * provide the return path, while the selected pin and name remain in view.
   */
  body[data-mode="client"] .map-stage:has(.detail[data-expanded="true"]:not([hidden]))>.mobile-switch,
  body[data-mode="client"] .map-stage:has(.detail[data-expanded="true"]:not([hidden])) .map-key,
  body[data-mode="client"] .map-stage:has(.detail[data-expanded="true"]:not([hidden])) .map-title,
  body[data-mode="client"] .map-stage:has(.detail[data-expanded="true"]:not([hidden])) .maplibregl-ctrl-top-right {display:none;}
  body[data-mode="client"] .map-stage:has(.detail[data-expanded="true"]:not([hidden])) .map-heading {top:10px;left:auto;right:15px;width:auto;}
  /* Keep the factual map/source attribution above the sheet while it is open. */
  body[data-mode="client"] .map-stage:has(.detail:not([hidden])) .map-status {bottom:calc(var(--client-sheet-height) + 8px);max-width:calc(100% - 70px);font-size:12px;padding:4px 6px;}
  body[data-mode="client"] .map-stage:has(#map[data-provider="street"]):has(.detail:not([hidden])) .map-status {bottom:calc(var(--client-sheet-height) + 44px);}
  body[data-mode="client"] .map-stage:has(.detail:not([hidden])) .maplibregl-ctrl-bottom-right {bottom:var(--client-sheet-height);}
  body[data-mode="client"].site-selected .map-title {padding:8px 10px!important;box-shadow:none!important;}
  body[data-mode="client"].site-selected .map-title h2 {font-size:13px!important;}
  body[data-mode="client"].site-selected .map-title p:last-child {display:none;}
  body[data-mode="client"].site-selected .map-key {top:134px;font-size:12px;padding:4px 6px;}
  body[data-mode="client"].site-selected .maplibregl-ctrl-top-right {top:125px;}
  body[data-mode="client"] .detail-header,
  body[data-mode="client"] .detail[data-expanded="true"] .detail-header {top:-12px;padding:0 0 6px;}
  body[data-mode="client"] .detail-header h3 {font-size:28px;}
  body[data-mode="client"] .detail[data-expanded="true"] .detail-header h3 {font-size:30px;}
  body[data-mode="client"] .detail-summary .detail-stats {padding:6px 0;}
  body[data-mode="client"] .detail-key-issue {margin:2px 0 5px;}
  body[data-mode="client"] #expandDetail {margin-top:4px;}
  body[data-mode="client"] .detail-tabs {top:calc(var(--detail-header-height,70px) - 12px);}
  body[data-mode="client"] .detail-tabs button {font-size:12px;padding-inline:3px;}
  body[data-mode="client"] .detail .actions {bottom:-12px;}
  body[data-mode="client"] dialog {width:calc(100% - 16px);max-height:calc(100dvh - 20px);padding:20px 16px;}
  body[data-mode="client"] .dialog-heading {gap:12px;padding-bottom:18px;}
  body[data-mode="client"] .dialog-heading h2 {font-size:29px;}
  body[data-mode="client"] .dialog-heading .eyebrow {font-size:12px;}
  body[data-mode="client"] .dialog-heading>button {padding-inline:9px;min-height:44px;}
  body[data-mode="client"] .comparison-scroll-hint {display:block;font-size:12px;line-height:1.5;color:var(--muted);margin:12px 0 8px;}
  body[data-mode="client"] .flyer-library-heading h1 {font-size:37px;}
  body[data-mode="client"] .flyer-reader-heading h2 {font-size:28px;}
  body[data-mode="client"] #tourOrder li {flex-wrap:wrap;gap:9px;}
  body[data-mode="client"] #tourOrder .stop-text {flex-basis:calc(100% - 59px);}
  body[data-mode="client"] #tourOrder li:before {margin-right:4px;}
  body[data-mode="client"] .packet-sheet {padding:18px;}
}
@media(max-width:360px) {
  body[data-mode="client"] #filters,
  body[data-mode="client"] .list-heading,
  body[data-mode="client"] #siteList {padding-inline:16px;}
  body[data-mode="client"] #selectionTray {margin-inline:16px;}
}
@media(hover:hover) and (pointer:fine) {
  body[data-mode="client"] .pin:hover {background:var(--atlas-accent);color:var(--white);border-color:var(--white);}
  body[data-mode="client"] .pin[data-evidence="conflict"]:hover {background:var(--conflict);}
}
@media(prefers-reduced-motion:reduce) {
  body[data-mode="client"] *,body[data-mode="client"] *:before,body[data-mode="client"] *:after {animation:none!important;transition:none!important;scroll-behavior:auto!important;}
}
@media print {
  body[data-mode="client"] {--ink:#2f3431;--muted:#626b64;--line:#d4d9d2;--white:#ffffff;--paper:#ffffff;}
  body[data-mode="client"] .packet-sheet {border-radius:0;box-shadow:none;}
  body[data-mode="client"] .packet-heading {border-bottom:1px solid var(--atlas-accent);}
  /* Restore the print scale; preserve all evidence/provenance/model limitations.
   * Long evidence may continue naturally: no fixed page height or clipping.
   */
  body[data-mode="client"] .packet-sheet .evidence-card {padding:9px 0;}
  body[data-mode="client"] .packet-sheet .evidence-card p {font-size:10px;line-height:1.5;margin:6px 0;}
  body[data-mode="client"] .packet-sheet .evidence-card .citation {font-size:9px!important;line-height:1.5;}
  body[data-mode="client"] .packet-sheet .evidence-title {font-size:11px;}
  body[data-mode="client"] .packet-sheet .chip {font-size:9px!important;padding:3px 6px;}
  body[data-mode="client"] .packet-sheet .questions {font-size:10px;line-height:1.6;}
  body[data-mode="client"] .packet-sheet>.address {font-size:10px;}
  body[data-mode="client"] .packet-sheet>.muted {font-size:9px!important;}
  body[data-mode="client"] .packet-sheet .visit-note-lines {break-inside:avoid;}
}

}
