/* SFT-417: Estate Voice AI design system.
   One shared place for the tokens and the common components, so the SFT-410 stories don't all edit the
   <style> block in index.html. Loaded before that block: section rules there can still refine a component.
   Values come from the buyer-first prototype (https://estate-voice-buyer-first.s-ejarchlou.chatgpt.site).
   The prototype's teal (#0da58f) and muted grey (#667789) are below 4.5:1 on some backgrounds, so text uses
   the darker --teal-ink / --teal-text / --muted-text; the prototype values stay for decoration and icons. */

:root{
  /* Colour: brand */
  --navy:#0b1d31;--navy2:#16354c;--ink:#12253a;--muted:#667789;--line:#dce6eb;--bg:#f4f7f8;--surface:#fff;
  --teal:#0da58f;--teal2:#22c3ad;--soft:#e5f7f3;--soft-line:#67c9ba;
  --teal-ink:#0b7f6e;   /* behind white text: 4.9:1 */
  --teal-text:#087a6c;  /* teal text: 4.5:1+ on every page background */
  --muted-text:#5b6b7d; /* secondary text: 4.5:1+ on every page background */
  --hover:#edf3f5;
  /* Colour: status (always paired with a text label or icon) */
  --success:#067647;--success-soft:#ecfdf3;
  --warning:#8a5a00;--warning-soft:#fdf4dc;
  --danger:#b42318;--danger-soft:#fff1f0;--danger-line:#f2b8b5;--danger-hover:#fde3e1;
  --info:#2a4a9a;--info-soft:#eef3ff;
  /* Shape and depth */
  --r:20px;--r-md:14px;--r-sm:12px;--r-xs:10px;--r-pill:999px;
  --shadow:0 18px 50px rgba(9,35,55,.12);--shadow-sm:0 8px 20px rgba(15,43,64,.09);--shadow-card:0 8px 28px rgba(9,35,55,.045);
  --shadow-modal:0 30px 90px rgba(0,0,0,.25);--backdrop:rgba(7,25,42,.55);
  --focus:rgba(13,165,143,.45);
  /* Typography */
  --font:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --fs-xs:12px;--fs-sm:13px;--fs-md:14px;--fs-base:16px;--fs-lg:18px;--fs-xl:21px;
  --fw-medium:650;--fw-semibold:720;--fw-bold:800;--lh:1.45;
  /* Spacing */
  --sp-1:4px;--sp-2:8px;--sp-3:12px;--sp-4:16px;--sp-5:24px;--sp-6:32px;
  font-family:var(--font);color:var(--ink);background:var(--bg)
}

/* Base */
body{margin:0;background:var(--bg);color:var(--ink);line-height:var(--lh)}
html{scroll-padding-top:84px}
:where(a){color:var(--teal-text);text-underline-offset:2px}
:where(a:hover){text-decoration-thickness:2px}
:where(button,input,select,textarea,a,summary,[tabindex]):focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.muted{color:var(--muted-text)}

/* Header: replaced by the SFT-602 New Layout header, see "SFT-602: New Layout foundation" at the end of this file. */

/* SFT-416: workspace sidebar, the prototype's dark sidebar used by every professional workspace.
   The active item has a bar, bold text and aria-current, so it is never shown by colour alone.
   Below 768px it becomes a ☰ drawer. */
.ws-side{position:fixed;top:var(--nl-hdr-h);left:0;bottom:0;width:238px;background:var(--navy);color:#fff;padding:22px 14px;overflow:auto;z-index:20}
.ws-side-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 8px 12px}
.ws-side-label{font-size:var(--fs-xs);font-weight:var(--fw-bold);letter-spacing:.1em;text-transform:uppercase;color:#8098aa}
.ws-side-close{display:none;border:0;background:rgba(255,255,255,.1);color:#fff;width:44px;height:44px;border-radius:var(--r-xs);font-size:20px;cursor:pointer}
.ws-nav{display:flex;flex-direction:column;gap:4px}
.ws-nav a{position:relative;display:flex;align-items:center;gap:10px;min-height:44px;padding:11px 12px 11px 16px;border-radius:11px;color:#a8bac6;font-weight:var(--fw-medium);text-decoration:none}
.ws-nav a:hover{background:rgba(255,255,255,.07);color:#fff}
.ws-nav a[aria-current="page"]{background:rgba(33,195,173,.15);color:#fff;font-weight:var(--fw-bold)}
.ws-nav a[aria-current="page"]::before{content:"";position:absolute;left:4px;top:10px;bottom:10px;width:4px;border-radius:4px;background:var(--teal2)}
.ws-nav a:focus-visible{outline-color:var(--teal2)}
.ws-nav .ws-ico{width:20px;text-align:center}
.ws-nav a.has-new-report::after{content:attr(data-new-label);margin-left:auto;padding:2px 8px;border-radius:var(--r-pill);background:#c1401f;color:#fff;font-size:11px;font-weight:var(--fw-bold);line-height:1.5;white-space:nowrap}
.ws-menu{margin-bottom:var(--sp-4)}
.ws-scrim{position:fixed;inset:0;background:var(--backdrop);z-index:899}
html[data-view="workspace"] .wrap{max-width:none;margin:28px 0 28px 238px;padding:0 max(24px,calc((100vw - 238px - 1100px) / 2))}
@media(max-width:767px){
 .ws-side{top:0;width:min(280px,85vw);z-index:900;padding:16px;box-shadow:0 20px 60px rgba(16,32,40,.3);transform:translateX(-105%);visibility:hidden;transition:transform .2s,visibility .2s}
 .ws-side.ws-open{transform:none;visibility:visible}
 .ws-side-close{display:inline-grid;place-items:center}
 html[data-view="workspace"] .wrap{margin:14px auto;padding:0 16px}}
@media(min-width:768px){.ws-menu,.ws-scrim{display:none!important}}

/* Buttons. Primary = solid teal, secondary = outlined, destructive = red; a destructive action is never primary. */
.btn{border:1px solid transparent;border-radius:var(--r-sm);min-height:44px;padding:9px 15px;font:inherit;font-weight:var(--fw-semibold);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:transform .18s,box-shadow .18s,background-color .18s,border-color .18s}
.btn:not(:disabled):hover{transform:translateY(-1px);box-shadow:var(--shadow-sm)}
.btn:not(:disabled):active{transform:none;box-shadow:none}
.primary{background:var(--teal-ink);border-color:var(--teal-ink);color:#fff}
.btn.primary:not(:disabled):hover{background:#096b5d;border-color:#096b5d}
.secondary{background:var(--surface);border-color:var(--line);color:var(--ink)}
.btn.secondary:not(:disabled):hover{background:#f6fafb;border-color:#b9cbd3}
.btn.dark{background:var(--navy);border-color:var(--navy);color:#fff}
.btn.ghost{background:transparent;border-color:var(--line);color:var(--ink)}
.btn.ghost:not(:disabled):hover{background:var(--hover)}
.btn.small{min-height:44px;padding:6px 10px;font-size:var(--fs-sm)}
.success{background:var(--success);color:#fff}
.danger{background:var(--danger-soft);border-color:var(--danger-line);color:var(--danger)}
.btn.danger:not(:disabled):hover{background:var(--danger-hover);border-color:var(--danger)}
.btn[aria-pressed="true"],.btn.selected{background:var(--soft);border-color:var(--soft-line);color:var(--teal-text)}
.btn:disabled,.btn[aria-disabled="true"]{opacity:.45;cursor:not-allowed;box-shadow:none;transform:none}
/* Small "remove" icon buttons turn red on hover so they read as destructive. */
.photoRemove:hover,[data-remove-coowner]:hover,[data-tag-remove]:hover,.by-tag-x:hover{background:var(--danger);color:#fff}

/* Forms. :where() keeps these at zero specificity: a section's own field rules still win. */
:where(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]),select,textarea){font:inherit;color:var(--ink);background-color:var(--surface);border:1px solid var(--line);border-radius:var(--r-xs);transition:border-color .15s}
:where(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]),select,textarea):hover{border-color:#b9cbd3}
:where(input,select,textarea):focus{border-color:var(--teal)}
:where(input,select,textarea)::placeholder{color:var(--muted)}
:where(input,select,textarea):disabled{background-color:#f1f4f6;color:var(--muted-text);cursor:not-allowed}
:where(input,select,textarea)[aria-invalid="true"]{border-color:var(--danger)}
:where(input[type=checkbox],input[type=radio],input[type=range],progress){accent-color:var(--teal-ink)}
:where(label){color:inherit}
.field-error{color:var(--danger);font-size:var(--fs-sm);margin-top:var(--sp-1)}
.field-error:not(:empty)::before{content:'⚠ '}

/* Cards */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:22px;margin-bottom:16px;box-shadow:var(--shadow-card)}

/* Status indicators: colour is never the only signal; every badge carries text, the ::before icon repeats it. */
.pill{display:inline-block;padding:6px 9px;border-radius:var(--r-pill);background:var(--hover);margin:3px;font-size:var(--fs-sm)}
.tag{display:inline-block;background:var(--soft);color:var(--teal-text);border-radius:var(--r-pill);padding:4px 8px;font-size:var(--fs-xs);font-weight:700}
.badge{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border-radius:var(--r-pill);font-size:var(--fs-xs);font-weight:var(--fw-semibold);background:var(--hover);color:var(--ink)}
.badge.success{background:var(--success-soft);color:var(--success)}.badge.success::before{content:'✓'}
.badge.warning{background:var(--warning-soft);color:var(--warning)}.badge.warning::before{content:'!'}
.badge.danger{background:var(--danger-soft);color:var(--danger);border:0}.badge.danger::before{content:'✕'}
.badge.info{background:var(--info-soft);color:var(--info)}.badge.info::before{content:'i'}
.status{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border-radius:var(--r-pill);background:var(--hover);font-size:var(--fs-sm)}
.error{padding:12px;border-radius:var(--r-sm);background:var(--danger-soft);color:var(--danger);margin-top:12px}
.error:not(:empty)::before{content:'⚠ '}

/* Modals */
:where(dialog){border:0;border-radius:var(--r);box-shadow:var(--shadow-modal);color:var(--ink);background:var(--surface);padding:0}
:where(dialog)::backdrop{background:var(--backdrop);backdrop-filter:blur(5px)}
.modal-backdrop{position:fixed;inset:0;background:var(--backdrop);backdrop-filter:blur(5px);z-index:1000;display:grid;place-items:center;padding:20px}
.modal-backdrop[hidden]{display:none}
.modal{width:min(620px,100%);background:var(--surface);border-radius:var(--r);box-shadow:var(--shadow-modal);overflow:hidden}
.modal-head{padding:21px 23px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:start;gap:14px}
.modal-body{padding:23px}
.modal-close{border:0;background:var(--hover);color:var(--ink);width:44px;height:44px;border-radius:var(--r-xs);font-size:18px;cursor:pointer}
.modal-close:hover{background:var(--line)}
/* Role choice cards ("Choose your access", SFT-415) */
.role-options{display:grid;grid-template-columns:repeat(2,1fr);gap:11px}
.role-option{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:15px;padding:16px;text-align:left;font:inherit;cursor:pointer;transition:background-color .18s,border-color .18s}
.role-option:hover{border-color:var(--soft-line);background:#f4fbf9}
.role-option-icon{display:block;font-size:23px;line-height:1;color:var(--teal-text)}
.role-option strong{display:block;margin:8px 0 4px}
.role-option-sub{color:var(--muted-text);font-size:var(--fs-sm)}

/* Tables */
:where(table){border-collapse:collapse;width:100%}
:where(th){text-align:left;font-size:var(--fs-xs);font-weight:var(--fw-semibold);color:var(--muted-text);border-bottom:1px solid var(--line);padding:8px 10px}
:where(td){border-bottom:1px solid var(--line);padding:8px 10px;vertical-align:top}
:where(tbody tr:hover){background:#f8fbfb}

/* Empty, loading and toast */
.empty-state{text-align:center;color:var(--muted-text);border:1px dashed var(--line);border-radius:var(--r-md);padding:var(--sp-5) var(--sp-4);background:var(--surface)}
.empty-state strong{display:block;color:var(--ink);margin-bottom:var(--sp-1)}
.empty-state p{margin:var(--sp-1) 0 0}
.empty-state .btn{margin-top:var(--sp-3)}
.empty-state.good{border-style:solid;border-color:var(--success);background:var(--success-soft)}
.empty-state.good strong{color:var(--success)}
.empty-state.load-error{border-style:solid;border-color:var(--danger-line);background:var(--danger-soft)}
.empty-state.load-error strong{color:var(--danger)}
/* the read-only media storage card in Admin (SFT-113) */
.media-list{margin:12px 0 0}
.media-row{display:grid;grid-template-columns:minmax(120px,200px) 1fr;gap:var(--sp-2) var(--sp-4);padding:8px 0;border-top:1px solid var(--line)}
.media-row dt{color:var(--muted-text);font-size:var(--fs-sm)}
.media-row dd{margin:0;overflow-wrap:anywhere}
@media(max-width:600px){.media-row{grid-template-columns:1fr}}
/* first-visit hint of a workspace (SFT-420): short, dismissible, remembered in the browser */
.first-hint{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-3);flex-wrap:wrap;margin:0 0 var(--sp-3);padding:var(--sp-3) var(--sp-4);border:1px solid var(--line);border-left:4px solid var(--teal);border-radius:var(--r-md);background:var(--surface)}
.first-hint p{margin:0;flex:1;min-width:200px;color:var(--ink)}
.loading{display:flex;align-items:center;gap:var(--sp-2);color:var(--muted-text)}
.loading::before{content:'';flex:none;width:16px;height:16px;border-radius:50%;border:2px solid var(--line);border-top-color:var(--teal);animation:ds-spin .8s linear infinite}
@keyframes ds-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.loading::before{animation:none;border-top-color:var(--line)}}
.toast{position:fixed;top:90px;right:22px;z-index:1100;max-width:min(380px,calc(100vw - 32px));background:var(--navy);color:#fff;border-radius:var(--r-sm);padding:12px 15px;box-shadow:var(--shadow);transform:translateX(120%);opacity:0;transition:.25s}
.toast.show{transform:none;opacity:1}
.toast.error{background:var(--danger);color:#fff;margin:0}

/* SFT-418: touch targets. Everything people tap (buttons, links, chips, icons, fields) is at least 44x44px at every width. */
:root{--tap:44px}
.btn,button,select,summary,[role="button"],textarea,
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="file"]):not([type="color"]){min-height:var(--tap)}
button,[role="button"]{min-width:var(--tap)}
a.nl-logo,.byws-link,.by-page-back,.by-page-link,.top-user,.nl-nav a,.top-menu-nav a{min-height:var(--tap);display:inline-flex;align-items:center}
label:has(> input[type="checkbox"]),label:has(> input[type="radio"]){min-height:var(--tap);display:inline-flex;align-items:center;gap:var(--sp-2)}
/* a bare checkbox in a list row gets a 44px tap area around it */
.tap-box{display:inline-grid;place-items:center;min-width:var(--tap);min-height:var(--tap);cursor:pointer}
.tap-box input{width:22px;height:22px;margin:0}

/* SFT-418: below 768px every dialog fills the screen. Each keeps its own visible close button. */
@media(max-width:767px){
 dialog[open].pro-dialog,dialog[open].by-detail,#proAccessDialog[open],#proSignInDialog[open],#byDetail[open],#byHistoryDialog[open],#byRequestDialog[open],#byBrowseDialog[open],#buyers #byHistoryDialog[open]{width:100vw;max-width:100vw;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;margin:0;inset:0;border-radius:0;box-shadow:none;overflow:auto}
}

/* SFT-607: the viewing request is a bottom sheet on phones (story requirement), not a full screen like the other dialogs */
@media(max-width:767px){
 #byRequestDialog[open].by-request-dialog{inset:auto 0 0 0;height:auto;max-height:92vh;max-height:92dvh;border-radius:22px 22px 0 0;box-shadow:0 -12px 40px rgba(11,31,53,.3)}
 #byRequestDialog .by-request-form{padding-bottom:calc(24px + env(safe-area-inset-bottom))}
}
#buyers .byws-nav .byws-close{display:none}  /* only shown inside the open drawer on a phone */
/* SFT-418: on a phone the buyer's text and voice search stay on screen, pinned to the bottom, so they are on the first screen at 375px */
@media(max-width:767px){
 #buyers #byComposer{position:fixed;left:0;right:0;bottom:0;z-index:25;margin:0;padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line);box-shadow:0 -6px 18px rgba(16,32,40,.08)}
 #buyers .byws-on.byws-drawer-open::after{content:"";position:fixed;inset:0;background:var(--backdrop);z-index:899}  /* the same dimmed backdrop as the other workspaces' drawer */
 #buyers .byws-on.byws-drawer-open .byws-nav .byws-close{display:inline-grid;place-items:center;align-self:flex-end;width:var(--tap);height:var(--tap);margin:0 0 8px auto;border:0;border-radius:var(--r-xs);background:var(--hover);color:var(--ink);font-size:20px;cursor:pointer}
 #buyers #byComposer{flex-wrap:wrap}
 #buyers #byComposer #clientReq{flex:1 1 100%;order:-1;min-width:0}
 #buyers #byComposer button[type="submit"]{flex:1 1 auto}
 #buyers:has(#byComposer){padding-bottom:150px}
}

/* ==========================================================================================================
   SFT-602: New Layout foundation (epic SFT-601). Prototype: https://claude.ai/artifact/2GPvd85sf1LLmvkPvq7VLv
   Colours are the prototype's, unchanged. Every name has the nl- prefix: the old tokens above share names with
   the prototype's (--navy, --teal, --muted, --soft) but not their values, and old pages keep using them until
   their own New Layout story replaces them. The header, footer and phone tab bar below are the New Layout on
   every page; the page content keeps its old styles for now.
   ========================================================================================================== */
/* Inter, self-hosted from frontend/fonts/ (SIL Open Font License, OFL.txt there; @fontsource-variable/inter 5.1.0).
   One variable file per script covers weights 100-900. Turkish ı is in "latin"; ş ğ İ and ₺ are in "latin-ext", which
   the browser fetches only when a page uses those letters. A new font version gets new file names (the route caches
   them for a year). */
@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:100 900;src:url(/fonts/inter-v510-latin-ext.woff2) format("woff2");
  unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:100 900;src:url(/fonts/inter-v510-latin.woff2) format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{
  /* Colour: the prototype's palette */
  --nl-navy:#0B1F35;--nl-navy2:#12304F;--nl-navy3:#1A3A5C;--nl-navy-deep:#06121F;
  --nl-teal:#2EC4B6;--nl-teal-d:#0E7E74;--nl-teal-l:#A6F0E8;--nl-mint:#DDF5F2;
  --nl-ink:#0B1F35;--nl-muted:#4A5E73;--nl-soft:#B9C9D8;--nl-line:#E3E9EC;
  --nl-warn:#D9822B;--nl-blue:#2F7FD0;--nl-red:#D6455D;
  /* Colour: the prototype's fixed shades */
  --nl-link:#5EE0D2;--nl-nav-text:#C9D7E4;--nl-dim:#8FA3B7;--nl-label:#8A9BAC;--nl-field-line:#D5DEE3;
  --nl-teal-hover:#45D3C6;--nl-navy-hover:#163252;--nl-option-hover:#F2F6F8;
  --nl-hairline:rgba(255,255,255,.07);--nl-glass:rgba(255,255,255,.08);--nl-glass-hover:rgba(255,255,255,.14);--nl-ghost-line:rgba(255,255,255,.22);
  /* Type */
  --nl-font:Inter,ui-sans-serif,system-ui,sans-serif;
  --nl-h1:clamp(40px,5.4vw,66px);--nl-h2:clamp(28px,3.4vw,42px);--nl-h3:21px;--nl-lead:19px;--nl-eyebrow:12px;
  /* Shape */
  --nl-r-xs:10px;--nl-r-sm:13px;--nl-r-md:16px;--nl-r-lg:22px;--nl-r-xl:30px;--nl-r-pill:999px;
  --nl-shadow-pop:0 24px 50px -18px rgba(0,0,0,.6);--nl-shadow-float:0 30px 60px -24px rgba(0,0,0,.6);
  /* Spacing and layout */
  --nl-wrap:1240px;--nl-gutter:24px;--nl-hdr-h:69px;--nl-tabbar-h:64px;
  /* Motion */
  --nl-ease-out:cubic-bezier(.23,1,.32,1);--nl-ease-io:cubic-bezier(.77,0,.175,1);--nl-ease-drawer:cubic-bezier(.32,.72,0,1)
}
@media(max-width:760px){:root{--nl-gutter:18px}}
html:has(#appHeader){background:var(--nl-navy)}
body{font-family:var(--nl-font);-webkit-font-smoothing:antialiased}
.nl-wrap{max-width:var(--nl-wrap);margin:0 auto;padding:0 var(--nl-gutter)}

/* Buttons on the dark chrome */
.nl-btn{height:46px;padding:0 18px;border-radius:var(--nl-r-sm);border:0;font:inherit;font-weight:700;font-size:15px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;white-space:nowrap;transition:transform 160ms var(--nl-ease-out),background-color .2s ease,box-shadow .2s ease,color .2s ease}
.nl-btn:active{transform:scale(.97)}
.nl-btn.teal{background:var(--nl-teal);color:var(--nl-navy)}
.nl-btn.ghost{background:transparent;color:#fff;border:1px solid var(--nl-ghost-line)}
.nl-ib{width:44px;height:44px;border-radius:var(--nl-r-sm);border:0;background:var(--nl-glass);color:#fff;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:transform 160ms var(--nl-ease-out),background-color .2s}
.nl-ib:active{transform:scale(.94)}
@media(hover:hover) and (pointer:fine){.nl-btn.teal:hover{background:var(--nl-teal-hover)}.nl-btn.ghost:hover{background:rgba(255,255,255,.06)}.nl-ib:hover{background:var(--nl-glass-hover)}}
.nl-hdr :focus-visible,.nl-footer :focus-visible,.nl-tabbar :focus-visible{outline:2px solid var(--nl-teal);outline-offset:2px}

/* Header: logo, buyer links, language menu, professional access, sign in, the menu button */
.nl-hdr{position:sticky;top:0;z-index:30;background:rgba(11,31,53,.86);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--nl-hairline);color:#fff;font-family:var(--nl-font)}
.nl-hdr-in{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:68px;position:relative}
.nl-logo{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;font-weight:800;font-size:19px;letter-spacing:-.01em;white-space:nowrap;flex:none}
.nl-logo i{width:44px;height:44px;display:flex;align-items:center;justify-content:center;flex:none}
.nl-logo i svg{width:100%;height:100%;display:block}
.nl-nav{display:flex;align-items:center;gap:4px;margin-right:auto}
.nl-nav a{padding:10px 14px;border-radius:var(--nl-r-xs);color:var(--nl-nav-text);text-decoration:none;font-weight:600;font-size:14px;white-space:nowrap;transition:color .2s ease,background-color .2s ease}
.nl-nav a:hover{color:#fff;background:rgba(255,255,255,.06)}
.nl-nav a[aria-current="page"]{background:var(--nl-teal);color:var(--nl-navy)}
.nl-hdr-actions{display:flex;gap:8px;align-items:center;white-space:nowrap}
.nl-hdr .btn.ghost,.nl-hdr a.btn.ghost{background:transparent;color:#fff;border:1px solid var(--nl-ghost-line);border-radius:var(--nl-r-sm);font-weight:700}
.nl-hdr .btn.ghost:not(:disabled):hover{background:rgba(255,255,255,.06);box-shadow:none}
.nl-hdr #headerSignInBtn{height:44px}
.nl-hdr .top-user{color:#fff;font-weight:600;text-decoration:none;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nl-hdr .top-user:hover{text-decoration:underline}
.nl-burger{display:none}
html[data-view="workspace"] .nl-nav,html[data-view="workspace"] .top-menu-nav{display:none}

/* Language menu: a flag button and a listbox. The hidden #uiLang select stays the one source of the language. */
.nl-lang{position:relative}
.nl-langbtn{height:44px;padding:0 10px 0 8px;gap:7px}
.nl-flag{width:24px;height:16px;border-radius:3px;overflow:hidden;display:inline-flex;flex:none;box-shadow:0 0 0 1px rgba(255,255,255,.18)}
.nl-flag svg{width:100%;height:100%;display:block}
.nl-langbtn .nl-chev{transition:transform .2s var(--nl-ease-out);opacity:.7}
.nl-langbtn[aria-expanded="true"] .nl-chev{transform:rotate(180deg)}
.nl-langmenu{position:absolute;right:0;top:calc(100% + 8px);min-width:210px;background:#fff;color:var(--nl-ink);border-radius:var(--nl-r-md);padding:6px;box-shadow:var(--nl-shadow-pop);transform-origin:top right;z-index:50}
.nl-langmenu[hidden]{display:none}
.nl-langopt{width:100%;display:flex;align-items:center;gap:12px;padding:10px 12px;border:0;border-radius:11px;background:transparent;color:var(--nl-ink);cursor:pointer;text-align:left;font:inherit;font-weight:600;font-size:15px;transition:background-color .15s ease}
.nl-langopt .nl-flag{width:30px;height:20px;box-shadow:0 0 0 1px rgba(11,31,53,.12)}
.nl-langopt small{display:block;font-size:12px;color:var(--nl-label);font-weight:500}
.nl-langopt .nl-ck{margin-left:auto;color:var(--nl-teal-d);opacity:0}
.nl-langopt[aria-selected="true"]{background:var(--nl-mint)}
.nl-langopt[aria-selected="true"] .nl-ck{opacity:1}
.nl-langopt:focus-visible{outline:2px solid var(--nl-teal-d);outline-offset:-2px}
@media(hover:hover){.nl-langopt:hover{background:var(--nl-option-hover)}.nl-langopt[aria-selected="true"]:hover{background:var(--nl-mint)}}

/* The menu: the buyer links when they don't fit, and on a phone also professional access and the account */
.top-menu{position:absolute;top:calc(100% + 6px);right:12px;width:min(300px,calc(100vw - 32px));background:var(--nl-navy2);border:1px solid var(--nl-hairline);border-radius:var(--nl-r-md);box-shadow:var(--nl-shadow-pop);padding:10px;display:flex;flex-direction:column;gap:6px;z-index:40}
.top-menu>.btn{width:100%;min-height:44px;justify-content:flex-start}
.top-menu-nav{display:flex;flex-direction:column;gap:2px}
.top-menu-nav a{padding:12px 14px;border-radius:12px;color:#fff;text-decoration:none;font-weight:600;font-size:16px}
.top-menu-nav a:hover{background:rgba(255,255,255,.06)}
.top-menu-nav a[aria-current="page"]{background:rgba(46,196,182,.14);color:var(--nl-teal)}
.top-menu-user{display:flex;flex-direction:column;gap:6px;padding-top:8px;border-top:1px solid var(--nl-hairline)}
.top-menu-user .top-user{padding:6px 14px;max-width:none}
.top-menu-user .btn{width:100%;min-height:44px;justify-content:flex-start}

@media(max-width:1199px){.nl-nav{display:none}.nl-burger{display:inline-flex}}
@media(min-width:768px) and (max-width:1199px){.top-menu>#topMenuProBtn,.top-menu>.top-menu-user{display:none}}
@media(min-width:1200px){.top-menu{display:none!important}}
@media(min-width:768px){html[data-view="workspace"] .nl-burger{display:none}}
@media(max-width:900px){.nl-langbtn .nl-code{display:none}.nl-langbtn{padding:0 8px}}
@media(max-width:767px){.nl-hdr-actions{gap:6px}.nl-hdr-actions>#proAccessBtn,.nl-hdr-actions>#headerHomeLink,.nl-hdr-actions>#headerUser{display:none}}
@media(max-width:400px){.nl-logo{font-size:15px;gap:8px}.nl-logo i{width:38px;height:38px}.nl-hdr #headerSignInBtn{padding:0 12px}}

/* Footer */
.nl-footer{border-top:1px solid var(--nl-hairline);background:var(--nl-navy);color:var(--nl-dim);font-family:var(--nl-font);font-size:14px}
.nl-footer-in{padding-top:28px;padding-bottom:28px;display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;align-items:center}
.nl-footer-links{display:flex;flex-wrap:wrap;gap:4px 18px}
.nl-footer a{color:var(--nl-dim);text-decoration:none;display:inline-flex;align-items:center;min-height:var(--tap)}
.nl-footer a:hover{color:#fff;text-decoration:underline}
@media(min-width:768px){html[data-view="workspace"] .nl-footer{margin-left:238px}}

/* Phone tab bar */
.nl-tabbar{display:none}
@media(max-width:767px){
 .nl-footer{display:none}
 .nl-tabbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:40;justify-content:space-around;padding:6px 6px calc(6px + env(safe-area-inset-bottom));background:rgba(11,31,53,.94);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-top:1px solid rgba(255,255,255,.08);font-family:var(--nl-font)}
 .nl-tabbar a{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;padding:7px 0;min-height:var(--tap);color:var(--nl-dim);text-decoration:none;font-size:10.5px;font-weight:600;transition:color .2s ease}
 .nl-tabbar a[aria-current="page"]{color:var(--nl-teal)}
 .nl-tabbar a.mid{color:var(--nl-navy)}
 .nl-tabbar a.mid .c{width:50px;height:50px;margin-top:-22px;border-radius:50%;background:var(--nl-teal);display:flex;align-items:center;justify-content:center;box-shadow:0 10px 24px -8px rgba(46,196,182,.7);border:4px solid var(--nl-navy)}
 .nl-tabbar a.mid em{font-style:normal;color:var(--nl-dim)}
 /* old pages: nothing ends up under the tab bar */
 body{padding-bottom:calc(var(--nl-tabbar-h) + env(safe-area-inset-bottom))}
 #buyers #byComposer{bottom:calc(var(--nl-tabbar-h) + env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:reduce){.nl-btn,.nl-ib,.nl-nav a,.nl-langopt,.nl-langbtn .nl-chev,.nl-tabbar a{transition:none}}

/* ==========================================================================================================
   SFT-602: the prototype's dark theme on every page. The pages that are not redesigned yet keep their layout but
   take the prototype's look: navy page, white cards (the prototype's .card: radius 22, no border), teal buttons
   with navy text, its fields, and white or light grey-blue text where it sits on the navy page. Each page's own
   SFT-601 story then replaces its layout.
   How: almost all old page text sits inside white surfaces, so the old text tokens (--ink, --muted-text,
   --teal-text) stay the prototype's dark ink by default. The few blocks that sit straight on the navy page are
   listed in .nl-on-dark below: there the same tokens are the prototype's light text, so their page rules (which
   use the tokens) follow by themselves. Hard-coded colours are fixed one by one after it.
   ========================================================================================================== */
:root{
  --surface:#fff;--ink:var(--nl-ink);--line:var(--nl-line);--hover:#EEF3F5;
  --muted:var(--nl-muted);--muted-text:var(--nl-muted);--teal-text:var(--nl-teal-d);
  --teal:var(--nl-teal);--teal2:var(--nl-teal);--teal-ink:var(--nl-teal-d);--soft:var(--nl-mint);--soft-line:var(--nl-teal);
  --navy:var(--nl-navy);--navy2:var(--nl-navy2);--focus:rgba(46,196,182,.55);
  --r:22px;--r-md:16px;--r-sm:13px;--shadow-card:none
}
/* the app's pages (the ones with the New Layout header); the legal pages keep their own look until SFT-683 */
html body:has(#appHeader){background:var(--nl-navy)!important}
/* blocks that sit straight on the navy page: the prototype's light text */
.ws-head{--ink:#fff;--muted-text:var(--nl-soft);--teal-text:var(--nl-teal);color:#fff}
/* ...except the white controls in them (buttons, fields, status pills), which keep the dark ink */
.ws-head :is(button:not(.ghost),a.btn:not(.ghost),select,input,textarea,.status,.pill,.badge,.ag-pill,.tag){--ink:var(--nl-ink);--muted-text:var(--nl-muted);--teal-text:var(--nl-teal-d)}
.ws-head :is(.status,.pill){color:var(--nl-ink)}
/* the pages' main action buttons: the prototype's teal with navy text (their own rules set dark teal + white) */
body :is(#agents,#buyers) .ws-actions .btn.primary,body :is(#agents,#buyers) .by-send,body #agents .ap-cta,body #agents .btn.primary,
body #agents .btn.success,body #agents .btn.record,body #owners .ow-send,body #owners .ow-voice-report,body .persona-cta.cta-agents{background:var(--nl-teal);border-color:var(--nl-teal);color:var(--nl-navy)}
/* the voice button: the prototype's light .mic; red while recording, as before */
body :is(#agents,#buyers) .by-mic:not(.recording){background:#EEF4F6}
body :is(#agents,#buyers) .by-mic:not(.recording)::after{background:var(--nl-ink)}
/* a link styled as a button is never underlined (this lived in the old header block until SFT-602 removed it) */
a.btn{text-decoration:none}
/* the workspace sidebar is the page's navy now: the prototype's hairline keeps it apart */
.ws-side{border-right:1px solid var(--nl-hairline)}
/* hard-coded colours on the navy page */
#ownersActingFor{color:var(--nl-teal-l)!important}  /* its dark blue is set inline in index.html */
.card{border:0;border-radius:var(--nl-r-lg)}
/* buttons: the prototype's teal with navy text; secondary is its white "line" button */
.btn.primary,.primary{background:var(--nl-teal);border-color:var(--nl-teal);color:var(--nl-navy)}
.btn.primary:not(:disabled):hover{background:var(--nl-teal-hover);border-color:var(--nl-teal-hover)}
.btn{border-radius:var(--nl-r-sm);font-weight:700}
.btn.secondary,.secondary{background:#fff;border-color:var(--nl-field-line);color:var(--nl-ink)}
/* fields: the prototype's .input */
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),select,textarea){border-color:var(--nl-field-line);border-radius:14px;color:var(--nl-ink);background-color:#fff}
:where(input,select,textarea):focus{border-color:var(--nl-teal);box-shadow:0 0 0 4px rgba(46,196,182,.18);outline:none}

/* SFT-624: the buyer assistant chat panel, as in the prototype's matches page.
   Layout only: the thread, chips, composer and recording bar keep their ids and handlers. */
body #buyers .by-chat-head{gap:10px 12px}
body #buyers .by-msg.ai{background:#F1F5F7;border-color:transparent;color:var(--nl-ink);border-radius:14px 14px 14px 4px}
body #buyers .by-msg.user{background:var(--nl-navy);color:#fff;border-radius:14px 14px 4px 14px}
body #buyers .by-msg.error{background:#FFF1F0;border:1px solid #F4C7C3;color:#B42318}
/* profile chips: plain facts grey, must-haves teal, nice-to-haves keep their blue */
body #buyers .by-understood{background:#FBFCFD;border-bottom-color:var(--nl-line)}
body #buyers .by-understood .by-tag{background:#EEF2F5;border:0;color:var(--nl-ink);font-weight:700}
body #buyers .by-understood .by-tag.must{background:#DDF4EF;color:#0B6B57}
body #buyers .by-understood .by-tag.soft{background:#EEF3FB;color:#2C4A7A}
/* typing indicator: three bouncing dots before the text */
body #buyers .by-msg.typing{display:flex;align-items:center;gap:10px;font-style:normal;color:var(--nl-muted)}
body #buyers .by-typing-dots{display:inline-flex;gap:4px}
body #buyers .by-typing-dots i{width:7px;height:7px;border-radius:50%;background:var(--nl-teal);animation:by-typing 1.2s infinite ease-in-out}
body #buyers .by-typing-dots i:nth-child(2){animation-delay:.15s}
body #buyers .by-typing-dots i:nth-child(3){animation-delay:.3s}
@keyframes by-typing{0%,80%,100%{transform:translateY(0);opacity:.45}40%{transform:translateY(-4px);opacity:1}}
@media(prefers-reduced-motion:reduce){body #buyers .by-typing-dots i{animation:none;opacity:.7}}
/* composer: language select, input, a mic icon on the light tile and a teal send tile with the paper-plane icon */
body #buyers .by-composer{gap:8px}
body #buyers .by-composer .lang{min-height:46px;border-radius:12px}
body #buyers .by-composer input{border-radius:12px}
body #buyers #clientRecord{display:inline-grid;place-items:center;border-radius:12px;color:var(--nl-ink)}
body #buyers #clientRecord.recording{color:#fff}
body #buyers #clientRecord:not([data-state="processing"]):not([data-state="error"])::after{display:none}
body #buyers #clientRecord:is([data-state="processing"],[data-state="error"]) .by-mic-icon{display:none}
body #buyers #findBtn{display:inline-grid;place-items:center;width:46px;min-width:46px;padding:0;border-radius:12px}
body #buyers #findBtn .by-send-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media(max-width:767px){body #buyers #byComposer #findBtn{flex:none}}

/* ==========================================================================================================
   SFT-633: loading, empty, error, offline, 404 / no-access, confirm dialog, first-visit hint, draft notice and toast,
   in the prototype's look. The prototype's own states set the pattern: shimmering placeholder blocks (.sk), an empty
   panel with the next action, white toasts at the bottom, and its .modal on a blurred .scrim (a bottom sheet on phones).
   ========================================================================================================== */
/* loading: a small teal spinner for a line of text... */
.loading{color:var(--muted-text);font-family:var(--nl-font);font-size:14px}
.loading::before{width:18px;height:18px;border:2.5px solid rgba(46,196,182,.25);border-top-color:var(--nl-teal);animation-duration:.6s}
/* ...and shimmering placeholder rows where a list or a section is coming (loadingHtml()) */
.loading[data-sk]{display:grid;gap:12px}
.loading[data-sk]::before{display:none}
.loading-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.sk-row{display:grid;grid-template-columns:56px 1fr;grid-template-rows:auto auto;gap:8px 14px;align-items:center;padding:14px;border-radius:var(--nl-r-md);background:#F7FAFB}
.sk-row .sk:first-child{grid-row:span 2;width:56px;height:56px;border-radius:14px}
.sk-row .sk:nth-child(2){height:14px;width:62%;border-radius:6px}
.sk-row .sk:nth-child(3){height:11px;width:40%;border-radius:6px}
.sk{display:block;background:linear-gradient(90deg,#E8EEF2 0%,#F4F7F9 40%,#E8EEF2 80%);background-size:300% 100%;animation:nl-sh 1.2s linear infinite}
/* the same placeholders straight on the navy page: the prototype's navy shimmer */
:is(section,.ws-head)>.loading[data-sk] .sk-row{background:var(--nl-navy2)}
:is(section,.ws-head)>.loading[data-sk] .sk{background-image:linear-gradient(90deg,var(--nl-navy3) 0%,#24496F 40%,var(--nl-navy3) 80%)}
@keyframes nl-sh{from{background-position:100% 0}to{background-position:-200% 0}}
@media(prefers-reduced-motion:reduce){.sk{animation:none}.loading::before{animation:none}}

/* empty: the prototype's panel with a short line and the next action. On the navy page it is the navy panel; inside a
   white card it is a light grey-blue panel, so it never shows as a dashed box */
.empty-state{border:1px solid rgba(255,255,255,.06);border-radius:var(--nl-r-lg);background:var(--nl-navy2);color:var(--nl-soft);padding:36px 24px;font-family:var(--nl-font)}
.empty-state strong{color:#fff;font-size:16px}
.empty-state p{max-width:46ch;margin:6px auto 0;line-height:1.5}
.empty-state .btn{margin-top:16px}
:is(.card,.modal,dialog,table,.ow-priority,#byWorkspace,#matches) .empty-state{background:#F5F8FA;border-color:transparent;color:var(--nl-muted)}
:is(.card,.modal,dialog,table,.ow-priority,#byWorkspace,#matches) .empty-state strong{color:var(--nl-ink)}
.empty-state.compact{padding:18px 16px;border-radius:var(--nl-r-md)}
.empty-state.compact strong{font-size:14px}
.empty-state.good,:is(.card,.ow-priority) .empty-state.good{background:var(--nl-mint);border-color:transparent}
.empty-state.good strong{color:var(--nl-teal-d)}
/* error with retry: the prototype's red tag colours, readable on either background */
.empty-state.load-error,:is(.card,.modal,dialog,table,.ow-priority,#byWorkspace,#matches) .empty-state.load-error{background:#FDE7EB;border-color:transparent;color:#7A1E30}
.empty-state.load-error strong{color:#A32640}
.empty-state.load-error strong::before{content:'!';display:inline-grid;place-items:center;width:22px;height:22px;margin-right:8px;border-radius:50%;background:#A32640;color:#fff;font-size:13px;vertical-align:-4px}
.error{border-radius:var(--nl-r-sm);background:#FDE7EB;color:#A32640;font-weight:600}

/* 404 and no access */
#statusPage{padding:clamp(24px,7vw,72px) 0}
.status-page{max-width:560px;margin:0 auto;padding:clamp(28px,5vw,44px);text-align:center;border:1px solid rgba(255,255,255,.06);border-radius:var(--nl-r-xl);background:var(--nl-navy2);color:var(--nl-soft);font-family:var(--nl-font)}
.status-ico{display:inline-grid;place-items:center;min-width:72px;height:72px;padding:0 14px;border-radius:999px;background:rgba(46,196,182,.14);color:var(--nl-teal);font-size:26px;font-weight:800;letter-spacing:-.02em}
.status-page h1{margin:18px 0 8px;color:#fff;font-size:clamp(26px,3.4vw,34px);letter-spacing:-.02em}
.status-page p{margin:0 auto;max-width:42ch;line-height:1.55}
.status-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:24px}
.status-page .btn.ghost{background:transparent;color:#fff;border:1px solid var(--nl-ghost-line)}
.status-page .btn.ghost:hover{background:var(--nl-glass)}

/* offline: a white bar at the bottom like the prototype's toast, with the warning colour; above the phone tab bar */
.offline-bar{position:fixed;z-index:1090;left:50%;bottom:24px;transform:translateX(-50%);display:flex;align-items:center;gap:10px;width:max-content;max-width:calc(100vw - 32px);padding:12px 16px;border-radius:14px;background:#fff;color:var(--nl-ink);box-shadow:0 18px 40px -18px rgba(0,0,0,.6);font:600 14px/1.4 var(--nl-font)}
.offline-bar[hidden]{display:none}
.offline-bar i{flex:none;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#FFF1E3;color:#8A520F;font-style:normal;font-weight:800}
@media(max-width:767px){.offline-bar{bottom:calc(var(--nl-tabbar-h) + 16px + env(safe-area-inset-bottom))}}

/* toast: the prototype's white toast at the bottom centre with the mint tick */
.toast{top:auto;right:auto;left:50%;bottom:24px;transform:translate(-50%,100%);display:flex;align-items:center;gap:10px;background:#fff;color:var(--nl-ink);border-radius:14px;padding:12px 16px;box-shadow:0 18px 40px -18px rgba(0,0,0,.6);font:600 14px/1.4 var(--nl-font);transition:opacity .4s ease,transform .4s cubic-bezier(.32,.72,0,1)}
.toast::before{content:'\2713';flex:none;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--nl-mint);color:var(--nl-teal-d);font-weight:800}
.toast.show{transform:translate(-50%,0)}
.toast.error{background:#fff;color:var(--nl-ink)}
.toast.error::before{content:'!';background:#FDE7EB;color:#A32640}
.toast:empty{visibility:hidden}
@media(max-width:767px){.toast{bottom:calc(var(--nl-tabbar-h) + 16px + env(safe-area-inset-bottom))}}
/* while the offline notice shows, a toast stacks above it instead of covering it */
body:has(#offlineBar:not([hidden])) .toast{bottom:84px}
@media(max-width:767px){body:has(#offlineBar:not([hidden])) .toast{bottom:calc(var(--nl-tabbar-h) + 76px + env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.toast{transition:opacity .2s}}

/* confirm dialog: the prototype's .modal on its .scrim; a bottom sheet below 768px */
body .ask-dialog{width:min(520px,calc(100vw - 32px));border:0;border-radius:26px;padding:0;background:#fff;color:var(--nl-ink);box-shadow:var(--nl-shadow-pop);font-family:var(--nl-font)}
body .ask-dialog::backdrop{background:rgba(3,10,18,.6);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
body .ask-dialog .modal-body{padding:26px}
.ask-dialog #askTitle{margin:0 0 8px;font-size:21px;letter-spacing:-.01em;color:var(--nl-ink)}
body .ask-dialog #askText{margin:0 0 22px;color:var(--nl-muted);white-space:pre-line}
body .ask-dialog .ask-actions{gap:10px}
.ask-dialog .ask-actions .btn{min-height:46px;padding:0 18px}
.ask-dialog .btn.primary.danger{background:var(--nl-red);border-color:var(--nl-red);color:#fff}
.ask-dialog .btn.primary.danger:not(:disabled):hover{background:#C23A51;border-color:#C23A51}
@media(max-width:767px){
 body .ask-dialog[open]{width:100vw;max-width:100vw;margin:auto 0 0;border-radius:26px 26px 0 0}
 body .ask-dialog .modal-body{padding:24px 20px calc(20px + env(safe-area-inset-bottom))}
 body .ask-dialog .ask-actions{flex-direction:column-reverse}
 .ask-dialog .ask-actions .btn{width:100%}
}

/* first-visit hint: it sits straight on the navy page, so it is the prototype's navy panel with a teal edge */
.first-hint{border:1px solid rgba(255,255,255,.06);border-left:4px solid var(--nl-teal);border-radius:var(--nl-r-md);background:var(--nl-navy2);font-family:var(--nl-font)}
.first-hint p{color:#fff;line-height:1.5}
.first-hint .btn.secondary{background:var(--nl-glass);border-color:transparent;color:#fff}
.first-hint .btn.secondary:hover{background:var(--nl-glass-hover)}

/* "Restore unsaved draft" on the agent's capture card: the prototype's mint notice */
body #agents #draftNotice{border:0;border-radius:var(--nl-r-md);background:var(--nl-mint);color:var(--nl-teal-d);font-weight:600;padding:12px 14px}
body #agents #draftNotice #draftRestoreBtn{background:var(--nl-teal);border-color:var(--nl-teal);color:var(--nl-navy)}

/* ==========================================================================================================
   SFT-603: the home page (epic SFT-601). Prototype: https://claude.ai/artifact/2GPvd85sf1LLmvkPvq7VLv
   Layout only: the search form, the example chips, the wizard button and professional access keep their ids and
   handlers. Colours are the prototype's (--nl-*). The photos are the prototype's, served from /img/.
   ========================================================================================================== */
/* the public home uses the whole page width (its bands run edge to edge); the other pages keep the 1240px column */
html:not([data-view="workspace"]) body:has(#overview:not(.hidden)) .wrap{max-width:none;margin:0;padding:0}
body #overview.nl-home{color:#fff;font-family:var(--nl-font);--ink:#fff;--muted-text:var(--nl-soft);--teal-text:var(--nl-teal)}
body #overview .muted{color:var(--nl-soft)}
body #overview :focus-visible{outline:2px solid var(--nl-teal);outline-offset:2px}

/* hero */
body #overview .nl-hero{display:flex;flex-wrap:wrap;gap:56px;align-items:center;padding-top:64px;padding-bottom:84px}
body #overview .nl-hero-txt{flex:999 1 520px;min-width:0;display:flex;flex-direction:column;gap:22px}
body #overview .nl-hero-vis{flex:1 1 440px;min-width:0;position:relative;height:580px}
body #overview .nl-pill{display:inline-flex;align-self:flex-start;align-items:center;gap:8px;padding:6px 12px 6px 8px;border-radius:var(--nl-r-pill);background:rgba(46,196,182,.16);color:var(--nl-link);font-weight:600;font-size:13px}
body #overview .nl-pill i{width:8px;height:8px;border-radius:50%;background:var(--nl-teal);flex:none}
body #overview .nl-pill .ov-eyebrow{display:inline;margin:0;color:var(--nl-link);font-size:12px;font-weight:700;letter-spacing:.08em}
body #overview h1{margin:0;font-size:var(--nl-h1);line-height:1.02;font-weight:800;letter-spacing:-.03em;color:#fff}
body #overview .nl-lead{margin:0;font-size:var(--nl-lead);line-height:1.55;color:var(--nl-soft)}

/* search: the sale/rent toggle, the field, the mic tile and the submit button on one white bar */
body #overview .nl-search{display:flex;flex-wrap:wrap;gap:8px;margin:0;background:#fff;padding:8px;border-radius:20px;box-shadow:0 30px 60px -30px rgba(0,0,0,.7);max-width:660px}
body #overview .nl-search input{flex:1 1 200px;width:auto;min-width:0;min-height:52px;height:52px;border:0;outline:none;box-shadow:none;border-radius:0;padding:0 10px;font-size:16px;color:var(--nl-ink);background:transparent}
body #overview .nl-search input:focus{box-shadow:none}
body #overview .nl-seg{display:flex;background:#EEF4F6;border-radius:var(--nl-r-sm);padding:4px;gap:0}
body #overview .nl-seg-btn{height:44px;min-height:44px;padding:0 15px;border-radius:var(--nl-r-xs);border:0;background:transparent;color:var(--nl-ink);font:inherit;font-weight:700;font-size:14px;cursor:pointer;transition:background-color .2s ease,color .2s ease}
body #overview .nl-seg-btn[aria-pressed="true"]{background:var(--nl-navy);color:#fff}
body #overview .nl-mic{flex:none;width:52px;height:52px;border-radius:15px;border:0;background:#EEF4F6;color:var(--nl-ink);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform 160ms var(--nl-ease-out),background-color .2s}
body #overview .nl-mic:active{transform:scale(.94)}
body #overview .nl-go{flex:none;height:52px;min-height:52px;padding:0 20px;border-radius:15px;font-size:16px;background:var(--nl-navy);border-color:var(--nl-navy);color:#fff;white-space:nowrap}
body #overview .nl-go:not(:disabled):hover{background:var(--nl-navy-hover);border-color:var(--nl-navy-hover);box-shadow:none}

/* example chips and the ticks */
body #overview .nl-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0}
body #overview .nl-chips .ov-chip{height:42px;min-height:42px;padding:0 15px;border-radius:var(--nl-r-pill);border:1px solid rgba(255,255,255,.26);background:transparent;color:#fff;font:inherit;font-weight:600;font-size:14px;cursor:pointer;white-space:nowrap;transition:background-color .2s ease,color .2s ease,border-color .2s ease,transform 160ms var(--nl-ease-out)}
body #overview .nl-chips .ov-chip:active{transform:scale(.96)}
body #overview .nl-chips .ov-chip[aria-pressed="true"]{background:var(--nl-teal);border-color:var(--nl-teal);color:var(--nl-navy)}
body #overview .ov-search-hint{margin:0;font-size:14px;font-weight:700;color:#FFB4B4}
body #overview .nl-ticks{list-style:none;display:flex;gap:8px 18px;flex-wrap:wrap;margin:0;padding:0;color:var(--nl-soft);font-size:14px}

/* the hero picture: the photo, a sample "listening" card on it and a sample match card beside it */
body #overview .nl-photo{position:absolute;inset:0 40px 44px 0;border-radius:var(--nl-r-xl);overflow:hidden;background:var(--nl-navy2)}
body #overview .nl-photo>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
body #overview .nl-voicebox{position:absolute;left:16px;right:16px;bottom:16px;background:rgba(11,31,53,.8);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-radius:20px;padding:16px 18px;display:flex;flex-direction:column;gap:10px}
body #overview .nl-vb-row{display:flex;justify-content:space-between;align-items:center;gap:8px}
body #overview .nl-vb-state{display:inline-flex;align-items:center;gap:8px;color:var(--nl-link);font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
body #overview .nl-vb-state i{width:8px;height:8px;border-radius:50%;background:var(--nl-teal)}
body #overview .nl-vb-eg,body #overview .nl-eg{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--nl-dim)}
body #overview .nl-wave{display:flex;align-items:center;gap:3px;height:44px}
body #overview .nl-wave span{flex:1;height:100%;border-radius:3px;background:var(--nl-teal);transform-origin:center;transform:scaleY(.25);animation:nl-wave 1.3s ease-in-out infinite}
body #overview .nl-wave span:nth-child(3n){background:var(--nl-teal-l);animation-delay:-.4s}
body #overview .nl-wave span:nth-child(3n+1){animation-delay:-.8s}
body #overview .nl-wave span:nth-child(4n){animation-duration:1.7s}
@keyframes nl-wave{0%,100%{transform:scaleY(.2)}50%{transform:scaleY(.95)}}
body #overview .nl-vb-said{margin:0;font-size:17px;line-height:1.45;font-weight:500;color:#fff}
body #overview .nl-float{position:absolute;box-shadow:var(--nl-shadow-float)}
body #overview .nl-match{right:0;top:40px;width:250px;background:#fff;color:var(--nl-ink);border-radius:var(--nl-r-lg);overflow:hidden}
body #overview .nl-match>img{width:100%;height:120px;object-fit:cover;display:block}
body #overview .nl-match-row{display:flex;align-items:center;gap:12px;padding:14px}
body #overview .nl-match-txt{display:flex;flex-direction:column;gap:2px;min-width:0}
body #overview .nl-match-txt strong{font-size:14px}
body #overview .nl-match-txt .muted{font-size:12px;color:var(--nl-muted)}
body #overview .nl-match-txt .nl-eg{color:var(--nl-teal-d)}

/* how it works: the prototype's teal band with three cards */
body #overview .nl-band{background:var(--nl-teal-d)}
body #overview .nl-band-in{padding-top:84px;padding-bottom:84px}
body #overview .nl-band-eyebrow{color:#C8F5EF;margin:0 0 10px}
body #overview h2{margin:0;font-size:var(--nl-h2);line-height:1.08;font-weight:800;letter-spacing:-.03em;color:#fff}
body #overview .nl-band h2{margin-bottom:34px}
body #overview .nl-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
body #overview .nl-step{background:#fff;color:var(--nl-ink);border-radius:var(--nl-r-lg);padding:28px;display:flex;flex-direction:column;gap:14px}
body #overview .nl-step>i{width:50px;height:50px;border-radius:15px;background:var(--nl-navy);color:var(--nl-teal);display:flex;align-items:center;justify-content:center}
body #overview .nl-step-num{color:var(--nl-teal-d);font-weight:800;font-size:13px}
body #overview .nl-step h3{margin:0;font-size:var(--nl-h3);font-weight:700;letter-spacing:-.015em;color:var(--nl-ink)}
body #overview .nl-step p{margin:0;color:var(--nl-muted);line-height:1.55}

/* professional access */
body #overview .nl-pro-wrap{padding-top:64px}
body #overview .nl-pro{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:18px 28px;background:var(--nl-navy2);border:1px solid rgba(255,255,255,.06);border-radius:var(--nl-r-lg);padding:30px}
body #overview .nl-pro-txt{flex:1 1 360px;min-width:0;display:flex;flex-direction:column;gap:8px}
body #overview .nl-pro-eyebrow{margin:0;color:var(--nl-teal)}
body #overview .nl-pro-txt p{margin:0;color:var(--nl-soft);line-height:1.55}
body #overview .nl-pro-btn{flex:none;height:46px;padding:0 20px;background:var(--nl-teal);border-color:var(--nl-teal);color:var(--nl-navy)}
body #overview .nl-pro-btn:not(:disabled):hover{background:var(--nl-teal-hover);border-color:var(--nl-teal-hover)}

/* the closing call to action */
body #overview .nl-cta-wrap{padding-top:64px;padding-bottom:88px}
body #overview .nl-cta{position:relative;overflow:hidden;isolation:isolate;display:flex;flex-wrap:wrap;gap:28px;align-items:center;background:var(--nl-teal);color:var(--nl-navy);border-radius:var(--nl-r-xl);padding:64px 48px;min-height:360px}
body #overview .nl-cta::before{content:"";position:absolute;inset:0;z-index:0;background:radial-gradient(60% 90% at 12% 110%,rgba(11,31,53,.12),transparent 70%),radial-gradient(50% 80% at 100% 0,rgba(255,255,255,.28),transparent 65%)}
body #overview .nl-cta-txt{position:relative;z-index:3;flex:1 1 380px;max-width:540px;display:flex;flex-direction:column;gap:14px;align-items:flex-start}
body #overview .nl-cta-pill{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border-radius:var(--nl-r-pill);background:rgba(11,31,53,.12);color:var(--nl-navy);font-weight:700;font-size:12px;letter-spacing:.1em;text-transform:uppercase}
body #overview .nl-cta-pill i{width:8px;height:8px;border-radius:50%;background:var(--nl-navy)}
body #overview .nl-cta h2{color:var(--nl-navy)}
body #overview .nl-cta p{margin:0;color:var(--nl-navy2);font-size:17px}
body #overview .nl-cta-btn{height:56px;min-height:56px;padding:0 26px;border-radius:var(--nl-r-md);font-size:16px;background:var(--nl-navy);border-color:var(--nl-navy);color:#fff;margin-top:8px}
body #overview .nl-cta-btn:not(:disabled):hover{background:var(--nl-navy-hover);border-color:var(--nl-navy-hover)}
body #overview .nl-cta-stack{position:relative;z-index:2;flex:1 1 340px;height:290px;min-width:300px}
body #overview .nl-mini{position:absolute;width:176px;background:#fff;color:var(--nl-ink);border-radius:18px;overflow:hidden;box-shadow:0 26px 50px -22px rgba(11,31,53,.55)}
body #overview .nl-mini img{width:100%;height:104px;object-fit:cover;display:block}
body #overview .nl-mini-b{padding:10px 12px;display:flex;flex-direction:column;gap:2px}
body #overview .nl-mini-b strong{font-size:13px}
body #overview .nl-mini-b span{font-size:11px;color:var(--nl-muted)}
body #overview .nl-mini-1{left:0;top:40px;transform:rotate(-7deg)}
body #overview .nl-mini-2{right:0;top:0;transform:rotate(6deg)}
body #overview .nl-mini-3{left:96px;bottom:0;z-index:2}
body #overview .nl-cta-eg{position:absolute;right:0;bottom:0;color:var(--nl-navy2)}

/* tablet and phone */
@media(max-width:900px){
 body #overview .nl-steps{grid-template-columns:1fr}
 body #overview .nl-cta{padding:40px 22px 24px}
 body #overview .nl-cta-stack{flex:1 1 100%;width:100%;height:230px;min-width:0}
 body #overview .nl-mini{width:150px}
 body #overview .nl-mini img{height:86px}
}
@media(max-width:760px){
 body #overview .nl-hero{padding-top:18px;padding-bottom:40px;gap:28px}
 body #overview .nl-hero-vis{height:240px;order:-1;flex:1 1 100%}
 body #overview .nl-photo{inset:0}
 body #overview .nl-match{display:none}
 body #overview .nl-lead{font-size:16px}
 body #overview .nl-search{flex-direction:column;align-items:stretch}
 body #overview .nl-seg{align-self:stretch}
 body #overview .nl-seg-btn{flex:1}
 body #overview .nl-search input{flex:none;width:100%;padding:0 12px}
 body #overview .nl-mic,body #overview .nl-go{width:100%}
 body #overview .nl-band-in{padding-top:56px;padding-bottom:56px}
 body #overview .nl-pro-wrap{padding-top:40px}
 body #overview .nl-pro{padding:24px 20px}
 body #overview .nl-pro-btn,body #overview .nl-cta-btn{width:100%}
 body #overview .nl-cta-wrap{padding-top:40px;padding-bottom:56px}
 body #overview .nl-vb-said{font-size:15px}
}
@media(max-width:520px){
 body #overview .nl-mini-3{display:none}
 body #overview .nl-cta-stack{height:210px}
 body #overview .nl-mini{width:46%}
 body #overview .nl-cta-eg{left:0;right:auto}
}
@media(prefers-reduced-motion:reduce){body #overview .nl-wave span{animation:none;transform:scaleY(.6)}body #overview .nl-seg-btn,body #overview .nl-mic,body #overview .nl-chips .ov-chip{transition:none}}

/* ==========================================================================================================
   SFT-608: the owner dashboard's page title, period switch, KPI tiles and portfolio chart (epic SFT-601).
   Prototype: https://claude.ai/artifact/2GPvd85sf1LLmvkPvq7VLv. Layout only: the numbers, the period handling and the chart data are
   the live ones; the table, the voice report and the report plan keep their own stories (SFT-625, SFT-626, SFT-627).
   ========================================================================================================== */
body #owners .ws-head{align-items:flex-end;gap:16px 24px}
body #owners .ws-head .ag-eyebrow{color:var(--nl-teal);font-size:12px;font-weight:700;letter-spacing:.12em}
body #owners .ws-head h2{font-size:var(--nl-h2);line-height:1.08;font-weight:800;letter-spacing:-.03em;margin:6px 0 10px;color:#fff}
body #owners .ws-head p{color:var(--nl-soft)}
/* the period switch: three buttons on a glass pill (the select stays, hidden, as the one source of the period) */
body #owners .ow-range{display:inline-flex;background:var(--nl-glass);border-radius:var(--nl-r-sm);padding:4px;gap:0}
body #owners .ow-range button{height:44px;min-height:44px;padding:0 15px;border-radius:var(--nl-r-xs);border:0;background:transparent;color:#fff;font:inherit;font-weight:700;font-size:14px;cursor:pointer;white-space:nowrap;transition:background-color .2s ease,color .2s ease}
body #owners .ow-range button[aria-pressed="true"]{background:#fff;color:var(--nl-navy)}
@media(hover:hover){body #owners .ow-range button[aria-pressed="false"]:hover{background:var(--nl-glass-hover)}}
/* KPI tiles: the prototype's cards, as many per row as fit */
body #owners .ow-stats{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px}
body #owners .ow-stat{border:0;border-radius:var(--nl-r-lg);padding:20px;display:flex;flex-direction:column;gap:6px}
body #owners .ow-stat small{margin:0;font-size:13px;font-weight:600;color:var(--nl-muted)}
body #owners .ow-stat b{font-size:30px;font-weight:800;letter-spacing:-.03em;color:var(--nl-ink)}
body #owners .ow-stat span{margin:0;font-size:12.5px;line-height:1.45;color:var(--nl-muted)}
/* the portfolio chart: the legend beside the title, narrow rounded bars, the prototype's navy and teal */
body #owners .ow-card-head h2{font-size:17px;font-weight:700;letter-spacing:-.01em}
body #owners .ow-head-right{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:8px 14px}
body #owners .ow-head-right .ow-legend{margin:0;gap:14px}
body #owners .ow-legend span{font-size:12px;font-weight:600;color:var(--nl-muted)}
body #owners .ow-chart{height:200px;gap:10px;min-width:0;border-bottom:1px solid var(--nl-line)}
body #owners .ow-col{min-width:0}
body #owners .ow-bar{max-width:44px;height:196px}
body #owners .ow-bar i:first-of-type{border-radius:6px 6px 3px 3px}
body #owners .ow-bar-value{font-size:12px;font-weight:700;color:var(--nl-ink)}
body #owners .ow-col-label{font-size:11px;font-weight:600;color:var(--nl-label)}
@media(max-width:600px){body #owners .ow-chart{gap:3px}body #owners .ow-col-label{font-size:9.5px;letter-spacing:-.02em}body #owners .ow-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}body #owners .ow-stat{padding:16px}body #owners .ow-stat b{font-size:26px}body #owners .ow-range{display:flex;width:100%}body #owners .ow-range button{flex:1;padding:0 6px}body #owners .ow-head-right{justify-content:flex-start}}

/* SFT-628: the buyer's messages with their agent, as a conversation screen in the prototype's style. The same box shows
   above the assistant chat and inside the workspace's Mesajlar panel (and later the profile's Messages tab, SFT-630). */
body #buyers .by-agent-msgs{margin:12px 16px;border:1px solid var(--nl-line);border-radius:16px;background:#fff;padding:0;gap:0;overflow:hidden}
body #buyers .byws-msgs .by-agent-msgs{margin:0;border:0;border-radius:0}
body #buyers .by-agent-msgs-head{display:flex;flex-wrap:nowrap;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid var(--nl-line)}
body #buyers .by-agent-avatar{flex:none;display:inline-grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--nl-teal);color:var(--nl-navy);font-weight:850;font-size:14px}
body #buyers .by-agent-msgs-title{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
body #buyers .by-agent-msgs-title b{font-size:16px;color:var(--nl-ink)}
body #buyers .by-agent-msgs-title .muted{font-size:12.5px;flex-basis:auto}
body #buyers .by-agent-unread{flex:none}
body #buyers .by-agent-msg-list{gap:10px;padding:16px;max-height:340px;background:#F7F9FA}
body #buyers .byws-msgs .by-agent-msg-list{max-height:min(60vh,520px)}
body #buyers .by-agent-msg{max-width:80%;padding:10px 13px;border:0}
body #buyers .by-agent-msg.from-agent{background:#fff;border:1px solid var(--nl-line);color:var(--nl-ink);border-radius:14px 14px 14px 4px}
body #buyers .by-agent-msg.from-me{background:var(--nl-navy);color:#fff;border-radius:14px 14px 4px 14px}
body #buyers .by-agent-msg-who{font-size:11.5px;font-weight:700;color:var(--nl-muted)}
body #buyers .by-agent-msg.from-me .by-agent-msg-who{color:#C9D6E0}
body #buyers .by-agent-msg.unread{border-color:var(--nl-teal);box-shadow:inset 3px 0 0 var(--nl-teal)}
body #buyers .by-agent-reply{display:flex;gap:8px;align-items:flex-end;padding:12px 16px;border-top:1px solid var(--nl-line)}
body #buyers .by-agent-reply textarea{flex:1;min-width:0;min-height:46px;height:46px;border-radius:12px;padding:12px 14px;resize:none}
body #buyers .by-agent-send{flex:none;display:inline-grid;place-items:center;width:46px;height:46px;padding:0;border-radius:12px}
body #buyers .by-agent-send .by-send-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
body #buyers [data-agent-reply-error]:not(.hidden){margin:0 16px 12px}
@media(max-width:767px){body #buyers .by-agent-msg{max-width:90%}}

/* SFT-610: the buyer profile page - a header with who is signed in and tabs for Saved, Viewings, Messages and Search
   profile; the Saved tab is a grid of the homes the buyer kept, full width, without the assistant chat beside it. */
body #buyers .byws-shell{display:flex;flex-direction:column;gap:14px;background:#fff;border:1px solid var(--nl-line);border-radius:18px;padding:18px 20px 0;margin-bottom:16px}
body #buyers .byws-shell[hidden]{display:none}
body #buyers .byws-shell-head{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
body #buyers .byws-shell-head>div{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
body #buyers .byws-shell-head h3{margin:0;font-size:20px;color:var(--nl-ink);overflow-wrap:anywhere}
body #buyers .byws-shell-head .muted{font-size:13px}
body #buyers .byws-avatar{flex:none;display:inline-grid;place-items:center;width:48px;height:48px;border-radius:14px;background:var(--nl-navy);color:var(--nl-teal);font-weight:850;font-size:17px}
body #buyers .byws-avatar.anon{background:#EEF2F5;color:var(--nl-muted)}
body #buyers .byws-tabs{display:flex;gap:4px;overflow-x:auto;margin:0 -4px;padding:0 4px}
body #buyers .byws-tabs [role=tab]{flex:none;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 14px;border:0;border-bottom:3px solid transparent;background:none;font:inherit;font-weight:750;font-size:14px;color:var(--nl-muted);cursor:pointer}
body #buyers .byws-tabs [role=tab][aria-selected="true"]{color:var(--nl-ink);border-bottom-color:var(--nl-teal)}
body #buyers .byws-tabs [role=tab]:focus-visible{outline:2px solid var(--nl-teal);outline-offset:-2px;border-radius:8px}
body #buyers .byws-saved .by-layout{grid-template-columns:minmax(0,1fr)}
body #buyers .byws-saved .by-chat{display:none}
body #buyers .byws-saved #matches{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px;max-height:none;overflow:visible}
body #buyers .byws-saved #matches>.empty-state,body #buyers .byws-saved #matches>:not(article){grid-column:1/-1}
body #buyers .byws-saved #byFiltersBtn{display:none}
body #buyers .by-saved-title{display:none;font-size:18px;color:var(--ink)}
body #buyers .byws-saved #byMatchesTitle{display:none}
body #buyers .byws-saved .by-saved-title{display:block}
/* ==========================================================================================================
   SFT-605: the shared listing card (epic SFT-601). Prototype: https://claude.ai/artifact/2GPvd85sf1LLmvkPvq7VLv
   Used by the matches list and the saved homes (both drawn by renderBuyerMatches). White card on the dark theme:
   photo with the sale/rent tag and the save heart, the match ring next to the title, the price, the reasons as
   tick / warning rows, then "Request a viewing" and "Not for me". Layout only: the score and reasons are shown as
   the matching returns them, and every button keeps its data-* hook and handler.
   ========================================================================================================== */
body #buyers .by-match{position:relative;display:flex;flex-direction:column;background:#fff;color:var(--nl-ink);border:1px solid var(--nl-line);border-radius:var(--nl-r-lg);overflow:hidden;
  transition:transform .35s var(--nl-ease-out),box-shadow .35s var(--nl-ease-out)}
body #buyers .by-match:not(.off-market):hover{border-color:var(--nl-line);transform:translateY(-3px);box-shadow:0 24px 44px -26px rgba(11,31,53,.55)}
body #buyers .by-match:focus-within{border-color:var(--nl-teal)}
body #buyers .by-match :focus-visible{outline:2px solid var(--nl-teal-d);outline-offset:2px}
body #buyers .by-match > .byws-new{position:absolute;z-index:2;left:12px;top:12px;margin:0}
body #buyers .by-match-photo{height:200px;flex:none;background:#E9EFF2;color:var(--nl-muted)}
body #buyers .by-match-photo img{transition:transform .5s var(--nl-ease-out)}
body #buyers .by-match:not(.off-market):hover .by-match-photo img{transform:scale(1.05)}
body #buyers .by-match .by-flag{position:absolute;left:12px;top:12px;bottom:auto;z-index:1}
body #buyers .by-match .byws-new ~ .by-match-photo .by-flag{top:44px}
body #buyers .by-deal{position:absolute;left:12px;bottom:12px;display:inline-flex;align-items:center;padding:5px 10px;border-radius:var(--nl-r-pill);background:rgba(11,31,53,.82);color:#fff;font-size:11.5px;font-weight:600}
body #buyers .by-match .by-save{top:12px;right:12px;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;justify-content:center;border-radius:50%;background:#fff;color:var(--nl-ink);box-shadow:0 6px 16px -8px rgba(0,0,0,.5);transition:transform .16s var(--nl-ease-out)}
body #buyers .by-match .by-save:active{transform:scale(.92)}
body #buyers .by-match .by-save.saved{background:#fff;color:var(--nl-red)}
body #buyers .by-save svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round}
body #buyers .by-save.saved svg path{fill:var(--nl-red)}
body #buyers .by-match-body{display:flex;flex-direction:column;gap:12px;padding:16px}
body #buyers .by-match-head{display:flex;align-items:center;gap:12px;min-width:0}
body #buyers .by-match-head .by-score,body #buyers .by-match-head .by-score[data-weak]{position:static;flex:none;display:block;padding:0;background:none;line-height:0}
body #buyers .by-ring{display:block}
body #buyers .by-ring circle{fill:none;stroke-width:6}
body #buyers .by-ring-track{stroke:#EEF3F5}
body #buyers .by-ring-bar{stroke-linecap:round}
body #buyers .by-ring-high .by-ring-bar{stroke:#14A396}
body #buyers .by-ring-mid .by-ring-bar{stroke:var(--nl-blue)}
body #buyers .by-ring-low .by-ring-bar{stroke:var(--nl-warn)}
body #buyers .by-ring text{font-family:var(--nl-font);font-size:14px;font-weight:800;fill:var(--nl-ink)}
body #buyers .by-match-name{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
body #buyers .by-match-name > b{font-size:16px;color:var(--nl-ink)}
body #buyers .by-match .by-open{margin:0;padding:0;min-height:44px;min-width:44px;border:0;border-radius:6px;background:none;color:var(--nl-ink);font-size:16px;text-align:left;justify-content:flex-start}
body #buyers .by-match .by-open b{font-weight:800;line-height:1.3}
body #buyers .by-match .by-open:hover{background:none;text-decoration:underline}
body #buyers .by-match .by-facts{margin:0;font-size:13px;color:var(--nl-muted)}
body #buyers .by-weak{padding:2px 8px;border-radius:var(--nl-r-pill);background:#FFF1E3;color:#7A4A0F;font-size:11.5px;font-weight:700}
body #buyers .by-match-title{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 10px}
body #buyers .by-match .by-price{font-size:20px;font-weight:800;color:var(--nl-teal-d);white-space:nowrap}
body #buyers .by-match .by-price[data-none]{font-size:15px;font-weight:700;color:var(--nl-muted)}
body #buyers .by-per{font-size:12px;font-weight:600;color:#6B7F92}
/* the link keeps its 44px tap area but overlaps the gaps above and below, so the price row is not taller than the price */
body #buyers .by-match .by-page-link{margin:-8px 0;display:inline-flex;align-items:center;font-size:12.5px;color:var(--nl-teal-d)}
body #buyers .by-match .by-tags{margin:0}
body #buyers .by-match .by-explain{margin:0;font-size:13px;line-height:1.5;color:var(--nl-muted)}
body #buyers .by-match .by-why{display:flex;flex-direction:column;gap:6px;margin:0;padding-top:10px;border-top:1px solid #EEF2F4;color:var(--nl-ink)}
body #buyers .by-match .by-reason{gap:8px;margin:0;font-size:13px;line-height:1.4}
body #buyers .by-match .by-reason-icon{flex:none;display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;margin-top:1px;border-radius:50%;font-size:11px;font-weight:800}
body #buyers .by-match .by-reason-ok{color:var(--nl-ink)}
body #buyers .by-match .by-reason-ok .by-reason-icon{background:var(--nl-mint);color:var(--nl-teal-d)}
body #buyers .by-match .by-reason-caution{color:#7A4A0F}
body #buyers .by-match .by-reason-caution .by-reason-icon{background:#FFF1E3}
body #buyers .by-match .by-breakdown{margin:0}
body #buyers .by-match .by-breakdown summary{cursor:pointer;font-weight:700;color:var(--nl-teal-d)}
/* actions: Request a viewing and Not for me side by side; Interested and the note stay as small links below */
body #buyers .by-card-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
body #buyers .by-card-actions::after{content:"";order:2;flex-basis:100%;height:0}
body #buyers .by-card-actions .by-react{display:contents}
body #buyers .by-card-actions .by-request-btn,body #buyers .by-card-actions .by-request-status{order:0;flex:1 1 160px;margin:0}
body #buyers .by-card-actions .by-request-btn{height:46px;white-space:nowrap;justify-content:center;padding:0 16px;border:0;border-radius:var(--nl-r-sm);background:var(--nl-navy);color:#fff;font-size:14px;font-weight:700}
body #buyers .by-card-actions .by-request-btn:hover{background:var(--nl-navy-hover)}
body #buyers .by-card-actions [data-react="not_interested"]{order:1;flex:1 0 auto;height:46px;white-space:nowrap;min-width:44px;padding:0 16px;border:1px solid var(--nl-field-line);border-radius:var(--nl-r-sm);background:#fff;color:var(--nl-ink);font-size:14px;font-weight:700}
body #buyers .by-card-actions [data-react="not_interested"]:hover{border-color:var(--nl-ink)}
body #buyers .by-card-actions [data-react="not_interested"].on.no{background:#FDE7EB;border-color:#F1B5C0;color:#7A1E30}
body #buyers .by-card-actions [data-react="interested"],body #buyers .by-card-actions [data-react-note]{order:3;min-height:32px;padding:0 4px;border:0;border-radius:6px;background:none;color:var(--nl-muted);font-size:12.5px;font-weight:700}
body #buyers .by-card-actions [data-react="interested"]:hover,body #buyers .by-card-actions [data-react-note]:hover{color:var(--nl-ink);text-decoration:underline}
body #buyers .by-card-actions [data-react="interested"].on{background:none;color:var(--nl-teal-d)}
body #buyers .by-card-actions .by-react-said,body #buyers .by-card-actions .by-react-note{order:4;flex-basis:100%;margin:0}
body #buyers .by-match.off-market .by-match-photo img{filter:grayscale(.6);opacity:.75}
body #buyers .by-match.off-market .by-match-body > p{margin:0}
/* text only for screen readers (the visible card shows the ring, the icons and the heart instead) */
body #buyers .by-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
@media(max-width:480px){body #buyers .by-match-photo{height:180px}}
@media(prefers-reduced-motion:reduce){body #buyers .by-match,body #buyers .by-match-photo img,body #buyers .by-match .by-save{transition:none}
  body #buyers .by-match:not(.off-market):hover{transform:none}body #buyers .by-match:not(.off-market):hover .by-match-photo img{transform:none}}

/* ==========================================================================================================
   SFT-613: [12a] the agent workspace page shell and four-step stepper (epic SFT-601).
   Prototype: https://claude.ai/artifact/2GPvd85sf1LLmvkPvq7VLv. Same header treatment as the owner dashboard
   (SFT-608): a teal eyebrow, the new type scale for the title, a soft subtitle. The stepper becomes the
   prototype's progress bars - a teal bar for the current/already-reached steps, a glass track for the ones
   still locked. Layout only: goToStep/maxReachedStep, the autosave, the leave-warning and the draft
   resume/discard notice are unchanged (see test_agent_workspace_layout_contract.py). Each step's own content
   gets its new-layout pass in its own story (SFT-612b-612f); sign-in/role gating is SFT-636.
   ========================================================================================================== */
body #agents .ws-head{align-items:flex-end;gap:16px 24px}
body #agents .ws-head .ag-eyebrow{color:var(--nl-teal);font-size:12px;font-weight:700;letter-spacing:.12em}
body #agents .ws-head h2{font-size:var(--nl-h2);line-height:1.08;font-weight:800;letter-spacing:-.03em;margin:6px 0 10px;color:#fff}
body #agents .ws-head p{color:var(--nl-soft)}
body #agents .steps .step{display:block;position:relative;background:transparent;border:0;border-radius:0;padding:14px 2px 0;text-align:left;color:var(--nl-soft);font-size:13px;font-weight:700;letter-spacing:.01em}
body #agents .steps .step::before{content:'';position:absolute;top:0;left:0;right:0;height:6px;border-radius:var(--nl-r-pill);background:var(--nl-glass)}
body #agents .steps .step.active{background:transparent;border:0;color:#fff}
body #agents .steps .step:not(:disabled)::before{background:var(--nl-teal)}
body #agents .steps .step:not(:disabled){color:#fff}
body #agents .steps .step:disabled{color:var(--nl-muted)}
@media(hover:hover){body #agents .steps .step:not(:disabled):not(.active):hover::before{background:var(--nl-teal-d)}}

/* ==========================================================================================================
   SFT-619: [12b] the agent workspace Capture step - record and live transcript (epic SFT-601).
   Prototype: https://claude.ai/artifact/2GPvd85sf1LLmvkPvq7VLv. Layout only: start/pause/finish/restart,
   discard recording (SFT-688), the Auto-detect language default (SFT-691), live transcript, draft restore
   and the dictation pipeline are unchanged (see test_discard_recording_ui_contract.py and
   test_agent_capture_language_contract.py). The capture card becomes the prototype's dark glass panel, the
   same way #agents .ws-head already turns its own nested controls back to dark ink (SFT-613) - reused here
   for the recording box and the photo upload box.
   ========================================================================================================== */
body #agents #stepPanel1 .recbox,body #agents #stepPanel1 .upload{background:var(--nl-navy2);border-color:var(--nl-hairline);--ink:#fff;--muted-text:var(--nl-soft);--teal-text:var(--nl-teal);color:#fff}
body #agents #stepPanel1 .recbox :is(button:not(.ghost),a.btn:not(.ghost),select,input,textarea),body #agents #stepPanel1 .upload :is(button:not(.ghost),a.btn:not(.ghost),select,input,textarea){--ink:var(--nl-ink);--muted-text:var(--nl-muted);--teal-text:var(--nl-teal-d)}
/* the record button and the recording-in-progress bar take the prototype's own colours */
body #agents #stepPanel1 .btn.record{background:var(--nl-red);border-color:var(--nl-red);color:#fff}
body #agents #stepPanel1 .wave span{background:var(--nl-teal)}
/* the live-fill / live-transcript toggle becomes the prototype's chip */
body #agents #stepPanel1 .livefill-tabs button{border-color:var(--nl-ghost-line);background:transparent;color:#fff}
body #agents #stepPanel1 .livefill-tabs button.active{background:transparent;border-color:var(--nl-teal);color:var(--nl-teal)}
@media(hover:hover){body #agents #stepPanel1 .livefill-tabs button:not(.active):hover{background:var(--nl-glass)}}

/* ==========================================================================================================
   SFT-620: [12c] the agent workspace Complete, Review and Publish steps, plus the AI assistant / missing-field
   sidebar (epic SFT-601). Prototype: https://claude.ai/artifact/2GPvd85sf1LLmvkPvq7VLv. Layout only: the
   fields, the completion/missing-field check, the property-type template and "AI decides" option, the
   location-mismatch note and save block (SFT-699/SFT-693), and save/redo are all the live ones - see
   test_agent_workspace_layout_contract.py and test_agent_workspace_phone_contract.py for those.
   Like the prototype itself (its own .card is white, .panel is navy2), the Complete and Publish steps and the
   sidebar become dark glass panels the same way #stepPanel1 .recbox/.upload already do (SFT-619); the Review
   step keeps its light card look (the prototype's review pane uses .card, not .panel) and only swaps its
   stale hard-coded teal for the prototype's tokens. */
body #agents #stepPanel2{background:var(--nl-navy2);border:1px solid var(--nl-hairline);border-radius:var(--nl-r-lg);padding:36px 22px;display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;--ink:#fff;--muted-text:var(--nl-soft);--teal-text:var(--nl-teal);color:#fff}
body #agents #stepPanel2 .wave span{background:var(--nl-teal)}
body #agents #stepPanel4{background:var(--nl-navy2);border:1px solid var(--nl-hairline);border-radius:var(--nl-r-lg);padding:30px 22px;--ink:#fff;--muted-text:var(--nl-soft);--teal-text:var(--nl-teal);color:#fff}
/* the AI completion assistant and the missing-field Q&A panel become the prototype's dark sidebar panels */
body #agents .ag-assist{background:var(--nl-navy2);border-color:var(--nl-hairline);--ink:#fff;--muted-text:var(--nl-soft);--teal-text:var(--nl-teal);color:#fff}
/* the pale alert cards (ap-missing/ap-invalid/ap-missing-optional/ag-pill/ov-state) and the boxed text input
   keep their own light backgrounds and hard-coded ink either way, so only the hairline dividers that sit
   straight on the dark panel need their colour brought back */
body #agents .ag-assist .ap-list li,body #agents .ag-assist .by-recbar{border-top-color:var(--nl-hairline)}
/* the review step stays the prototype's light card; only its stale hard-coded completion-bar colours move to the new tokens */
body #agents .rv-bar span{background:linear-gradient(90deg,var(--nl-teal-d),var(--nl-teal))}

/* ==========================================================================================================
   SFT-621: [12d] the agent workspace Capture step's photo grid (epic SFT-601). Prototype:
   https://claude.ai/artifact/2GPvd85sf1LLmvkPvq7VLv. Layout only: camera/gallery import, auto-enhance and
   upload, remove, reorder (move earlier/later, SFT-694) and the room-label states (AI suggestion, loading,
   no suggestion, your choice) are all the live ones - see test_property_photo_capture_contract.py and
   test_property_photo_management_contract.py for those.
   SFT-619 already turned the capture step's upload drop-zone and recording box into dark glass panels; the
   prototype's own simplified thumbnail grid sits inside that same dark panel (its richer cover/move/room-label
   controls only exist in the live app, added after the prototype). Each thumbnail becomes its own small dark
   glass tile - the #stepPanel1 .recbox/.upload mechanism, reused per card - so an empty grid (no photos yet)
   still shows nothing, same as before. */
body #agents #stepPanel1 .photoCard{background:var(--nl-navy2);border-color:var(--nl-hairline);--ink:#fff;--muted-text:var(--nl-soft);--teal-text:var(--nl-teal);color:#fff}
body #agents #stepPanel1 .photoCard :is(button:not(.ghost),a.btn:not(.ghost),select,input,textarea){--ink:var(--nl-ink);--muted-text:var(--nl-muted);--teal-text:var(--nl-teal-d)}

/* ==========================================================================================================
   SFT-622: [12e] the agent workspace session card - map location and owner role (epic SFT-601). Prototype:
   https://claude.ai/artifact/2GPvd85sf1LLmvkPvq7VLv (its draft session card: owner list, new-owner/portfolio-
   manager forms, address search, map pin with satellite toggle and "Use this location" - a drawn placeholder,
   not a real map). These live-site tools were not in the approved design when this story was split from
   SFT-613; built ahead of a dedicated design-review sign-off, at the product owner's explicit instruction, by
   extending the exact same dark-glass-panel treatment already approved and shipped for every other part of
   this page (SFT-613/SFT-619/SFT-620/SFT-621).
   Layout only: the property-type/owner selects, new-owner and portfolio-manager forms and their validation,
   address search and "Use my current location" (SFT-698), the Leaflet map/satellite toggle and pin lookup
   (SFT-699), and the draft-resume notice are all the live ones - see test_agent_workspace_layout_contract.py.
   #sessionCard is a .card (white, border:0 - SFT-602), so it needs its own hairline border reinstated; its
   inputs/selects already carry their own white background and dark ink inline or from the global form-control
   rule (design-system.css's own :where(...) block), so - unlike #stepPanel1's recbox/upload - no nested-control
   ink revert is needed here. */
body #agents #sessionCard{background:var(--nl-navy2);border:1px solid var(--nl-hairline);--ink:#fff;--muted-text:var(--nl-soft);--teal-text:var(--nl-teal);color:#fff}

/* ==========================================================================================================
   SFT-677: [12j] the portfolio property details panel - edit details, price editor and overview text editor
   (epic SFT-601). Prototype: https://claude.ai/artifact/2GPvd85sf1LLmvkPvq7VLv (no details panel yet, so there
   is no light/dark choice to follow from it here - unlike the Review step's .card, SFT-677's own acceptance
   criteria call for the dark theme directly). Built ahead of a dedicated design-review sign-off (same
   situation as SFT-622), at the product owner's explicit instruction, by extending the exact dark-glass-panel
   treatment already approved and shipped for every other editing surface on this page.
   Layout only: "Edit details" (every field, its validation and "Save details"/"Discard changes"), the price
   editor (amount, currency, validation, price history) and the overview editor (both languages, save, restore
   the AI draft) are all the live ones - see test_agent_workspace_layout_contract.py.
   .prPrice and .prOverview had no box of their own (just loose content in the portfolio row); they get the
   same dark card treatment as .pm (the existing "Edit details" disclosure, already boxed - #fbfcfe below).
   .pm's own .field boxes (shared with the capture Review step's grid) keep their pale background, so their
   ink is reverted back to dark the same way SFT-619's recbox/upload already revert it for their own nested
   controls - .prPrice/.prOverview's inputs, selects and textareas already carry their own white background
   and dark ink (inline styles or design-system.css's global form-control rule), so they need no revert. */
body #agents .prPrice,body #agents .prOverview{background:var(--nl-navy2);border:1px solid var(--nl-hairline);border-radius:var(--nl-r-md);padding:14px 16px;--ink:#fff;--muted-text:var(--nl-soft);--teal-text:var(--nl-teal);color:#fff}
body #agents .pm{background:var(--nl-navy2);border-color:var(--nl-hairline);--ink:#fff;--muted-text:var(--nl-soft);--teal-text:var(--nl-teal);color:#fff}
body #agents .pm .field{--ink:var(--nl-ink);--muted-text:var(--nl-muted);--teal-text:var(--nl-teal-d)}

/* ==========================================================================================================
   SFT-675: [12h] the portfolio property details panel - listing status, reassigning the agent, the owner (and
   co-owners), playing the original recording and delete (epic SFT-601). Built ahead of a dedicated
   design-review sign-off, at the product owner's explicit instruction, by extending the exact same
   dark-glass-panel treatment SFT-677 already shipped for the price/overview editors and "Edit details" in the
   same panel - .prStatus, .prAssign and .prOwner had no box of their own (just loose rows in the portfolio
   row, view-only or editable alike), so they get it too.
   Layout only: listing status for one property, bulk status for several (already live in .prBulk, outside
   this panel - see test_agent_inbox_buyers_portfolio_new_layout_contract.py), reassigning the agent (admin),
   changing the owner and co-owners, playing the recording and deleting a property (with the same confirm) are
   all the live ones, with the same role rules as before - see test_agent_workspace_layout_contract.py.
   Their inputs and selects already carry their own white background and dark ink (design-system.css's global
   form-control rule), exactly like SFT-677's own price/overview inputs - confirmed the same way, so they need
   no revert. .pill (a co-owner chip) keeps its pale background with no colour of its own, so - unlike those
   inputs - it needs its ink reverted back to dark explicitly, the same way SFT-623 already does it for its own
   pale chips (.br-chip and friends): a bare colour revert on the custom property is not enough for an element
   with no "color" declaration of its own to begin with, since nothing on it re-reads the property. The
   recording-playback button and the delete button are plain .btn secondary/.btn danger, already read from
   fixed tokens everywhere on the page, so they need no change here. */
body #agents .prAssign,body #agents .prOwner,body #agents .prStatus{background:var(--nl-navy2);border:1px solid var(--nl-hairline);border-radius:var(--nl-r-md);padding:14px 16px;--ink:#fff;--muted-text:var(--nl-soft);--teal-text:var(--nl-teal);color:#fff}
body #agents .prOwner .pill{color:var(--nl-ink)}

/* ==========================================================================================================
   SFT-676: [12i] the portfolio property details panel - change history (who changed which field, when, old
   and new value, photo changes, "Restore previous value") and the activity log (viewings, offers) (epic
   SFT-601). Built ahead of a dedicated design-review sign-off, at the product owner's explicit instruction,
   by extending the exact same dark-glass-panel treatment SFT-675/677 already shipped for every other editing
   surface in the same panel.
   Layout only: change history's entries and wording (including "Edit details" changes and address changes),
   restoring a field's previous value (with the same confirm), and the activity log (add/edit a viewing, add
   an offer, update its status) are all the live ones, with the same role rules as before - see
   test_agent_workspace_layout_contract.py. "Status history" (.prHist alone, price/assignment/lifecycle
   transitions) is a different, older feature that neither this story nor SFT-675 names, so it is left as it
   was: unboxed, straight on .prDetail's white surface.
   .prChanges (the "Change history" disclosure) had its own margin and font-size (.prHist) but no box, so it
   gets one here, the same as .prAssign/.prOwner/.prStatus. .prActivity (the viewings/offers panel) already
   had a border, radius and padding of its own (inline, pre-dark); those move into this rule so the dark
   background and border-colour can replace them without an inline style of higher specificity fighting back.
   .pcFrom (a reverted field's old value, shown struck through) had its own hard-coded grey for both themes;
   kept as a muted token instead so it stays legible on the new dark background. Their own inputs, selects and
   buttons need no revert, the same way SFT-675/677's already don't. */
body #agents .prChanges{background:var(--nl-navy2);border:1px solid var(--nl-hairline);border-radius:var(--nl-r-md);padding:14px 16px;--ink:#fff;--muted-text:var(--nl-soft);--teal-text:var(--nl-teal);color:#fff}
body #agents .prActivity{background:var(--nl-navy2);border:1px solid var(--nl-hairline);border-radius:var(--nl-r-md);padding:12px;--ink:#fff;--muted-text:var(--nl-soft);--teal-text:var(--nl-teal);color:#fff}
body #agents .prChanges .pcFrom{color:var(--nl-soft)}

/* ==========================================================================================================
   SFT-678: [12k] the portfolio property details panel - photo management on a saved property (epic SFT-601).
   Built ahead of a dedicated design-review sign-off, at the product owner's explicit instruction, by extending
   the exact same dark-glass-panel treatment every other editing surface in this panel already has.
   Layout only: adding photos (with the same auto-enhance and AI room label as capture), moving a photo earlier
   or later, sorting by room, changing a photo's room label, replacing the high-resolution original and
   removing a photo (with the same confirm) are all the live ones, with the same role rules as before - see
   test_agent_workspace_layout_contract.py. .pm (the "Manage photos" disclosure) already shares its box and
   dark treatment with the "Edit details" disclosure (SFT-677 above), so no new box is needed here.
   .pmTile (one photo's own card) keeps its pale background, the same as .pm's own .field boxes, so its ink is
   reverted back to dark the same way; its room <select> already carries its own white background and dark ink
   (design-system.css's global form-control rule), so it needs no revert, confirmed the same way SFT-675/677's
   already don't. .pmOrig ("Replace high-res"/"Add high-res") has no colour of its own to begin with (just a
   plain label on its own white button), so - the same as SFT-675's .pill - a bare custom-property revert on
   .pmTile is not enough for it: nothing on it re-reads the property, so it needs its own colour set directly. */
body #agents .pm .pmTile{--ink:var(--nl-ink);--muted-text:var(--nl-muted);--teal-text:var(--nl-teal-d)}
body #agents .pm .pmOrig{color:var(--nl-ink)}

/* ==========================================================================================================
   SFT-680: [12m] the portfolio property details panel - the publishing panel: pick channels, approve and
   publish, see each channel's status, retry a failed one, update after a change, take an advert down and
   mark one removed by hand (epic SFT-601). Built ahead of a dedicated design-review sign-off, at the product
   owner's explicit instruction, by extending the exact same dark-glass-panel treatment every other editing
   surface in this panel already has.
   Layout only: every function named above is the live one, with the same role rules as before - see
   test_agent_workspace_layout_contract.py and test_publishing_contract.py. The failure/attention badges on
   the portfolio list ("Publishing failed (n)", "Remove by hand (n)") already read correctly in the dark
   #portfolioCard (.pb-fail/.pb-manual already carry their own explicit colours, #properties-scoped, same as
   every status pill elsewhere), so nothing changes there. The advert generation/preview/editor above this
   panel (.ad-panel's own "Generate adverts"/"Preview all adverts"/.ad-grid cards) is a different story's scope
   and is left exactly as it was, still on .prDetail's white surface.
   .pb-panel ("Channels to publish") had no box of its own (just loose content straight on .prDetail's white
   surface); it gets the same dark card treatment as .prPrice/.prAssign. Its checkboxes, channel names, status
   text (.pb-state, already a fixed colour per status, e.g. red for "failed" - unchanged on purpose, the same
   way SFT-676 kept .prChanges's own status colours) and the publish/retry buttons all already read their own
   ink from fixed tokens or the global control rule, so they need no revert - confirmed the same way
   SFT-675/677's own inputs already don't. The plain "Published directly"/"Goes to the queue" pill has no
   colour of its own (unlike .ad-warn/.ad-ok beside it, already fixed colours), so - the same as
   .pmOrig/.prOwner's .pill - it needs one set directly; :not() keeps the fix off the pills that already have
   their own. .pb-row.bad (an advert that is not ready to publish) keeps its own pale-pink background, the
   same as .pm's .field boxes, so it needs the same ink revert, and its channel name the same explicit colour
   fix for the same reason. .pb-alert (the "listing changed"/"remove by hand" banners) already carries its own
   fixed warning/danger colours on its own pale background (index.html), deliberately unlike the rest of this
   panel's content boxes, so changing it to the dark treatment would be the one thing the acceptance criteria
   rules out ("colours unchanged") - it is left exactly as it was. */
body #agents .pb-panel{background:var(--nl-navy2);border:1px solid var(--nl-hairline);border-radius:var(--nl-r-md);padding:14px 16px;--ink:#fff;--muted-text:var(--nl-soft);--teal-text:var(--nl-teal);color:#fff}
body #agents .pb-panel .pb-row{border-color:var(--nl-hairline)}
body #agents .pb-panel .pill:not(.ad-warn):not(.ad-ok){color:var(--nl-ink)}
body #agents .pb-panel .pb-row.bad{--ink:var(--nl-ink);--muted-text:var(--nl-muted);--teal-text:var(--nl-teal-d);color:var(--nl-ink)}

/* ==========================================================================================================
   SFT-623: [12f] agent section: owner messages, buyer requests (including the buyer record: notes, tags,
   status, assignment and messages) and the portfolio list, with its filters and "Details" toggle (epic
   SFT-601). Prototype: https://claude.ai/artifact/2GPvd85sf1LLmvkPvq7VLv (draft screens added; see the
   story's comment). These live-site sections were not in the approved design when this story was split from
   SFT-613; built ahead of a dedicated design-review sign-off, at the product owner's explicit instruction, by
   extending the exact same dark-glass-panel treatment already approved and shipped for every other part of
   this page (SFT-613/SFT-619/SFT-620/SFT-621/SFT-677).
   Layout only: owner messages (grouped by property, read and reply), buyer requests (the request list, the
   demand view, "All buyers" and a buyer's full record) and the portfolio list (search, status/agent/type/
   price/date filters, sort, bulk status, paging and "Details") are all the live ones, unchanged.
   #agentInbox, #buyerRequestsCard and #portfolioCard are each a .card (white, border:0 - SFT-602), so each
   needs its own hairline border reinstated. Several nested boxes keep a light background of their own
   (.msg-thread, .msg-b, .br-item, .br-notes/.br-brief/.br-reacts, .br-chip, .br-filter, .br-buyer,
   .br-demand-row, .br-msg, .prBulk): their ink is reverted back to dark the same way SFT-619's recbox/upload
   already revert it for their own nested controls. Plain form controls (inputs, selects, the reply/tag/note
   textareas) already carry their own white background and dark ink from design-system.css's global
   form-control rule, so they need no revert - the same choice SFT-677 made for .prPrice/.prOverview. .prRow's
   divider was the page's pale hairline (invisible on navy); it becomes the dark chrome's own hairline instead.
   The property Details panel (.prDetail) is a separate story's content (SFT-675/676/678/679/680 - only
   SFT-677's "Edit details"/price/overview editors, already dark, are built): it keeps its original white
   surface and dark ink exactly as before, so opening it is unaffected by this story. */
body #agents #agentInbox,body #agents #buyerRequestsCard,body #agents #portfolioCard{background:var(--nl-navy2);border:1px solid var(--nl-hairline);border-radius:var(--nl-r-lg);--ink:#fff;--muted-text:var(--nl-soft);--teal-text:var(--nl-teal);color:#fff}
body #agents #agentInbox :is(.msg-thread,.msg-b),
body #agents #buyerRequestsCard :is(.br-item,.br-notes,.br-brief,.br-reacts,.br-chip:not(.mine),.br-filter:not(.on),.br-buyer,.br-demand-row,.br-msg),
body #agents #portfolioCard .prBulk{--ink:var(--nl-ink);--muted-text:var(--nl-muted);--teal-text:var(--nl-teal-d);color:var(--nl-ink)}
body #agents #portfolioCard .prRow{border-top-color:var(--nl-hairline)}
body #agents #portfolioCard .prDetail{background:#fff;border-radius:var(--nl-r-md);padding:12px 14px 14px 36px;--ink:var(--nl-ink);--muted-text:var(--nl-muted);--teal-text:var(--nl-teal-d);color:var(--nl-ink)}
@media(max-width:640px){body #agents #portfolioCard .prDetail{padding-left:12px}}

/* ==========================================================================================================
   SFT-611: [10a] the buyer assistant's matches page - results grid and filters (epic SFT-601).
   Prototype: https://claude.ai/artifact/2GPvd85sf1LLmvkPvq7VLv (Eşleşmeler). Two columns: the assistant chat
   (SFT-624) as a narrower column on the left that stays in view, the results on the right straight on the dark
   page - a large white title, the "N homes searched" line (or "Scanning N homes…" while a search runs), the
   Filters and Search again buttons, then the listing cards (SFT-605) in a grid. Layout only: the ranking, the
   match data, the filters dialog and the Not-for-me feedback are unchanged; Search again calls the same
   byRefreshMatches as before. The Saved tab (SFT-610, #byWs.byws-saved) keeps its own full-width look.
   ========================================================================================================== */
@media(min-width:901px){
  body #buyers #byWs:not(.byws-saved) .by-layout{grid-template-columns:minmax(320px,380px) minmax(0,1fr);gap:24px}
  body #buyers #byWs:not(.byws-saved) .by-chat{position:sticky;top:84px;height:calc(100vh - 110px);min-height:520px;max-height:760px}
}
body #buyers #byWs:not(.byws-saved) .by-matches{background:transparent;border:0;box-shadow:none;padding:0}
body #buyers #byWs:not(.byws-saved) .by-matches-head{flex-wrap:wrap;align-items:flex-end;gap:12px 16px;margin-bottom:18px}
body #buyers #byWs:not(.byws-saved) #byMatchesTitle{display:block;font-size:clamp(26px,3vw,34px);line-height:1.1;font-weight:800;letter-spacing:-.02em;color:#fff}
body #buyers #byWs:not(.byws-saved) .by-matches-head .muted{margin-top:6px;font-size:14px;color:var(--nl-soft)}
body #buyers .by-matches-tools{display:flex;flex-wrap:wrap;gap:8px}
body #buyers #byWs:not(.byws-saved) .by-matches-tools .btn{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border-radius:var(--nl-r-pill);border:1px solid var(--nl-ghost-line);background:var(--nl-glass);color:#fff;font-size:14px;font-weight:700}
body #buyers #byWs:not(.byws-saved) .by-matches-tools .btn:hover{background:rgba(255,255,255,.14)}
body #buyers #byWs:not(.byws-saved) .by-matches-tools .btn:focus-visible{outline:2px solid var(--nl-teal);outline-offset:2px}
body #buyers #byWs:not(.byws-saved) .by-matches-tools .btn:disabled{opacity:.55;cursor:default}
body #buyers #byRerunBtn[hidden]{display:none}
body #buyers .byws-saved #byRerunBtn{display:none}
/* the icons come from CSS: the buttons' text is set by the language switch, which would replace an inline icon */
body #buyers .by-matches-tools .btn::before{content:"";width:16px;height:16px;flex:none;background:currentColor;-webkit-mask:var(--by-tool-icon) center/contain no-repeat;mask:var(--by-tool-icon) center/contain no-repeat}
body #buyers #byFiltersBtn{--by-tool-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M4 6h10M18 6h2M4 12h4M12 12h8M4 18h12M20 18h0'/%3E%3Ccircle cx='16' cy='6' r='2'/%3E%3Ccircle cx='10' cy='12' r='2'/%3E%3Ccircle cx='18' cy='18' r='2'/%3E%3C/svg%3E")}
body #buyers #byRerunBtn{--by-tool-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11a8 8 0 1 0-2.3 5.7'/%3E%3Cpath d='M20 4v7h-7'/%3E%3C/svg%3E")}
body #buyers .byws-saved .by-matches-tools .btn::before{display:none}
/* the results grid: cards side by side, everything that is not a card (no-match note, alerts, web results,
   "not shown" list, loading and empty states) takes the full row */
body #buyers #byWs:not(.byws-saved) #matches{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px;max-height:none;overflow:visible;align-items:start}
body #buyers #byWs:not(.byws-saved) #matches>:not(article){grid-column:1/-1}
body #buyers #byWs:not(.byws-saved) #matches>.by-alert-row,body #buyers #byWs:not(.byws-saved) #matches>.by-excluded{background:#fff;border-radius:14px;padding:12px 14px}
body #buyers #byWs:not(.byws-saved) #matches>.loading,body #buyers #byWs:not(.byws-saved) #matches>.empty-state{background:#fff;border-radius:var(--nl-r-lg);padding:20px}
@media(max-width:900px){
  body #buyers #byWs:not(.byws-saved) .by-matches{margin-top:8px}
}
@media(max-width:480px){
  body #buyers #byWs:not(.byws-saved) #matches{grid-template-columns:1fr}
  body #buyers .by-matches-tools{width:100%}
  body #buyers #byWs:not(.byws-saved) .by-matches-tools .btn{flex:1;justify-content:center}
}

/* ==========================================================================================================
   SFT-603 (featured homes): the home page's featured homes (epic SFT-601). Prototype: https://claude.ai/artifact/2GPvd85sf1LLmvkPvq7VLv
   The same listing card as the matches list (SFT-605): white card, photo with the sale/rent tag, title, facts and price.
   The whole card opens the home's page through the title link. The rules repeat the card's look under #overview.
   ========================================================================================================== */
body #overview .nl-feat-wrap{padding-top:72px}
body #overview .nl-feat-eyebrow{display:block;margin:0 0 10px;color:var(--nl-teal)}
body #overview .nl-feat-wrap h2{margin-bottom:30px}
body #overview .nl-feat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:20px}
body #overview .by-match{position:relative;display:flex;flex-direction:column;background:#fff;color:var(--nl-ink);border:1px solid var(--nl-line);border-radius:var(--nl-r-lg);overflow:hidden;transition:transform .35s var(--nl-ease-out),box-shadow .35s var(--nl-ease-out)}
body #overview .by-match:hover{transform:translateY(-3px);box-shadow:0 24px 44px -26px rgba(11,31,53,.55)}
body #overview .by-match:focus-within{border-color:var(--nl-teal)}
body #overview .by-match :focus-visible{outline:2px solid var(--nl-teal-d);outline-offset:2px}
body #overview .by-match-photo{position:relative;height:200px;flex:none;overflow:hidden;background:#E9EFF2;color:var(--nl-muted)}
body #overview .by-match-photo img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .5s var(--nl-ease-out)}
body #overview .by-match:hover .by-match-photo img{transform:scale(1.05)}
body #overview .by-deal{position:absolute;left:12px;bottom:12px;display:inline-flex;align-items:center;padding:5px 10px;border-radius:var(--nl-r-pill);background:rgba(11,31,53,.82);color:#fff;font-size:11.5px;font-weight:600}
body #overview .by-match-body{display:flex;flex-direction:column;gap:12px;padding:16px}
body #overview .by-match-name{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
body #overview .by-match .by-open{position:static;display:inline-flex;margin:0;padding:0;min-height:44px;min-width:44px;border:0;border-radius:6px;background:none;color:var(--nl-ink);font-size:16px;text-align:left;text-decoration:none}
body #overview .by-match .by-open b{font-weight:800;line-height:1.3}
body #overview .by-match .by-open:hover{text-decoration:underline}
body #overview .by-match .by-open::after{content:"";position:absolute;inset:0}
body #overview .by-match .by-facts{margin:0;font-size:13px;color:var(--nl-muted)}
body #overview .by-match-title{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 10px}
body #overview .by-match .by-price{font-size:20px;font-weight:800;color:var(--nl-teal-d);white-space:nowrap}
body #overview .by-match .by-price[data-none]{font-size:15px;font-weight:700;color:var(--nl-muted)}
body #overview .by-per{font-size:12px;font-weight:600;color:#6B7F92}
body #overview .by-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
@media(max-width:760px){body #overview .nl-feat-wrap{padding-top:44px}body #overview .by-match-photo{height:180px}}
@media(prefers-reduced-motion:reduce){body #overview .by-match,body #overview .by-match-photo img{transition:none}body #overview .by-match:hover{transform:none}body #overview .by-match:hover .by-match-photo img{transform:none}}

/* ==========================================================================================================
   SFT-603 (property page on a phone): the one-column grid is "1fr", which cannot be narrower than its content, so the photo
   thumbnail strip (8 photos in a row) made the column, and with it the whole page, wider than the screen: the header stayed
   phone-wide while the page was twice as wide. A column that may shrink (minmax(0,1fr)) keeps the strip scrolling inside it.
   ========================================================================================================== */
@media(max-width:900px){
  body .by-page-grid{grid-template-columns:minmax(0,1fr)}
  body .by-page-main,body .by-page-side{min-width:0}
}

/* ==========================================================================================================
   SFT-625: [07b] the owner dashboard's property status table (epic SFT-601). Prototype: https://claude.ai/artifact/2GPvd85sf1LLmvkPvq7VLv
   Layout only: the columns, their data, "View all", the Report button and the activity rows are the live ones. The property
   cell gets the first photo as a thumbnail, the status and the risk become tags in the prototype's colours, the price is bold
   and the rows light up on hover. Between 601px and the width where all columns fit the table still scrolls sideways inside its
   own box; at 600px and below it is still one card per row (SFT-418).
   ========================================================================================================== */
body #owners .ow-table th{font-size:11px;letter-spacing:.06em;color:#8A9BAC;padding:0 12px 10px 0}
body #owners .ow-table td{vertical-align:middle;border-top:1px solid #EEF2F4;transition:background-color .2s ease}
body #owners .ow-prop{display:flex;align-items:center;gap:12px;min-width:200px}
body #owners .ow-thumb{flex:none;width:44px;height:44px;border-radius:10px;overflow:hidden;background:#E9EFF2}
body #owners .ow-thumb img{display:block;width:100%;height:100%;object-fit:cover}
body #owners .ow-prop-txt{min-width:0}
body #owners .ow-table td.ow-price{font-weight:800;white-space:nowrap;color:var(--nl-ink)}
body #owners .ow-tag{display:inline-flex;align-items:center;padding:5px 10px;border-radius:var(--nl-r-pill);font-size:11px;font-weight:800;letter-spacing:.02em;white-space:nowrap;background:#EEF3F5;color:var(--nl-muted)}
body #owners .ow-tag.s-active{background:var(--nl-mint);color:var(--nl-teal-d)}
body #owners .ow-tag.s-under_offer{background:#E6F0FB;color:#1F5FA3}
body #owners .ow-tag.s-sold{background:var(--nl-navy);color:#fff}
body #owners .ow-tag.s-withdrawn{background:#EEF3F5;color:var(--nl-muted)}
body #owners .ow-risk{padding:5px 10px;border-radius:var(--nl-r-pill);font-size:12px;font-weight:700}
body #owners .ow-risk.good{background:var(--nl-mint);color:var(--nl-teal-d)}
body #owners .ow-risk.warning{background:#FFF1E3;color:#8A520F}
body #owners .ow-risk.serious{background:#FDE7EB;color:#A32640}
body #owners .ow-viewall{height:40px;padding:0 16px;border:1px solid #D5DEE3;border-radius:var(--nl-r-sm);background:#fff;color:var(--nl-ink);font-size:14px;font-weight:700}
body #owners .ow-viewall:hover{border-color:var(--nl-ink)}
@media(hover:hover){body #owners .ow-table tbody tr:not(.ow-activity-row):hover td{background:#F6F9FA}}
@media(max-width:600px){body #owners .ow-prop{min-width:0}body #owners .ow-table td.ow-price{white-space:normal}}

/* ==========================================================================================================
   SFT-626: [07c] the owner dashboard's "ask about your portfolio" panel: voice report, voice switch, suggestion chips,
   chat, recording bar and the question box (epic SFT-601). Prototype: https://claude.ai/artifact/2GPvd85sf1LLmvkPvq7VLv
   Layout only: listening to the report (same text, same voices, the speech comes from the server as before), the female/male
   switch, the suggestion chips, clear chat, stop recording and the typed or spoken question keep their ids and handlers. The
   listen button becomes the prototype's round play button with a small wave that moves while the report is being read.
   ========================================================================================================== */
body #owners .ow-companion{display:flex;flex-direction:column;gap:14px;background:var(--nl-navy2);border:1px solid rgba(255,255,255,.06);border-radius:var(--nl-r-lg);padding:22px}
body #owners .ow-companion-icon{display:none}
body #owners .ow-companion .ag-eyebrow{margin:0;color:var(--nl-teal);font-size:11px;font-weight:800;letter-spacing:.08em}
body #owners .ow-companion h3{margin:0;font-size:22px;font-weight:800;letter-spacing:-.03em;color:#fff}
body #owners .ow-companion .muted{margin:0;font-size:14px;line-height:1.55;color:var(--nl-soft)}
body #owners .ow-voice-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin:0}
body #owners .ow-voice-label{font-size:15px;font-weight:700;color:#fff}
body #owners .ow-voice-pick{padding:3px;border:0;border-radius:var(--nl-r-sm);background:rgba(255,255,255,.08)}
body #owners .ow-voice-pick button{padding:0 14px;border-radius:var(--nl-r-xs);color:#fff;font-size:13px}
body #owners .ow-voice-pick button[aria-pressed="true"]{background:#fff;color:var(--nl-navy)}
body #owners .ow-player{display:flex;align-items:center;gap:14px}
body #owners .ow-voice-report{flex:none;width:58px;height:58px;min-width:58px;padding:0;justify-content:center;border-radius:50%;background:var(--nl-teal);color:var(--nl-navy);box-shadow:none;transition:transform 160ms var(--nl-ease-out)}
body #owners .ow-voice-report:not(:disabled):active{transform:scale(.94)}
body #owners .ow-voice-report svg{width:22px;height:22px}
body #owners .ow-wave{flex:1;display:flex;align-items:center;gap:3px;height:40px;min-width:0;opacity:.35;transition:opacity .3s ease}
body #owners .ow-wave span{flex:1;height:100%;border-radius:3px;background:var(--nl-teal);transform-origin:center;transform:scaleY(.25)}
body #owners .ow-wave span:nth-child(3n){background:var(--nl-teal-l)}
body #owners .ow-wave.on{opacity:1}
body #owners .ow-wave.on span{animation:nl-wave 1.3s ease-in-out infinite}
body #owners .ow-wave.on span:nth-child(3n+1){animation-delay:-.8s}
body #owners .ow-wave.on span:nth-child(3n){animation-delay:-.4s}
body #owners .ow-wave.on span:nth-child(4n){animation-duration:1.7s}
body #owners .ow-suggestions{flex-direction:row;flex-wrap:wrap;gap:8px}
body #owners .ow-suggestions button{width:auto;min-height:44px;padding:0 15px;border:1px solid rgba(255,255,255,.26);border-radius:var(--nl-r-pill);background:transparent;font-size:13px;font-weight:600}
body #owners .ow-suggestions button:hover{background:var(--nl-glass)}
body #owners .ow-thread-tools{justify-content:flex-start}
body #owners .ow-thread-tools:has(.ow-clear.hidden){display:none}
body #owners .ow-clear{margin:0;min-height:44px;padding:0 15px;border:1px solid rgba(255,255,255,.26);border-radius:var(--nl-r-pill);color:#fff;font-size:13px;font-weight:600;text-decoration:none}
body #owners .ow-clear:hover{background:var(--nl-glass);color:#fff}
body #owners .ow-thread{margin:0;padding:12px;border-radius:var(--nl-r-md);background:#F6F9FA;color:var(--nl-ink)}
body #owners .ow-bubble{max-width:86%;padding:11px 14px;font-size:14px;line-height:1.5}
body #owners .ow-bubble.assistant{background:#fff;color:var(--nl-ink);border:1px solid var(--nl-line);border-radius:16px 16px 16px 4px}
body #owners .ow-bubble.user{background:var(--nl-navy);color:#fff;border-radius:16px 16px 4px 16px}
body #owners .ow-bubble.pending{color:var(--nl-muted)}
body #owners .ow-day,body #owners .ow-report-tag{color:#8A9BAC}
body #owners .ow-speak{border-color:#C3D0D8;color:var(--nl-teal-d)}
body #owners .ow-speak.on{background:var(--nl-teal);border-color:var(--nl-teal);color:var(--nl-navy)}
body #owners .ow-replies button{border-color:var(--nl-teal-d);color:var(--nl-teal-d)}
body #owners .ow-replies button:hover{background:var(--nl-mint)}
body #owners .ow-replies button.stock{border-color:#C3D0D8;color:var(--nl-ink)}
body #owners .ow-replies button.stock:hover{background:#EEF3F5}
body #owners .ow-recbar{margin:0;color:var(--nl-soft)}
body #owners .ow-rec-stop{height:34px;border-radius:var(--nl-r-xs);background:rgba(255,255,255,.08);color:#fff}
body #owners .ow-composer{margin:0;gap:8px}
body #owners .ow-composer input{min-height:48px;height:48px;padding:0 14px;border:1.5px solid #D5DEE3;border-radius:14px;background:#fff;color:var(--nl-ink);font-size:16px}
body #owners .ow-composer input::placeholder{color:#6B7F92}
body #owners .ow-composer input:focus{border-color:var(--nl-teal);outline:0;box-shadow:0 0 0 4px rgba(46,196,182,.18)}
body #owners .ow-mic{width:48px;height:48px;border-radius:15px;background:#EEF4F6;color:var(--nl-ink)}
body #owners .ow-mic.recording{background:var(--nl-red);color:#fff}
body #owners .ow-send{height:48px;padding:0 16px;border-radius:13px;color:var(--nl-navy);font-weight:700}
@media(prefers-reduced-motion:reduce){body #owners .ow-wave.on span{animation:none;transform:scaleY(.6)}body #owners .ow-voice-report{transition:none}}

/* ==========================================================================================================
   SFT-625 (risk tag shape): a long risk note ("140 days on the market (urgent from 90 days)") wraps onto several lines in the table's
   narrow risk column; a fully round pill then becomes a tall stretched capsule. A tag with softly rounded corners reads
   the same when the text is short and stays tidy when it wraps.
   ========================================================================================================== */
body #owners .ow-risk{min-width:170px;border-radius:12px;line-height:1.35;align-items:flex-start;text-align:left}
body #owners .ow-risk i{flex:none;margin-top:.45em}
@media(max-width:600px){body #owners .ow-risk{min-width:0}}

/* ==========================================================================================================
   SFT-606: [05] the property detail page (/property/{id}) and its quick-view dialog (epic SFT-601).
   Prototype: https://claude.ai/artifact/2GPvd85sf1LLmvkPvq7VLv. Page: a glass "back" button on the dark page, the
   gallery and thumbnails, four key-fact tiles, overview, features, the full details grid and a location map in the
   main column; a sticky side panel with the sale/rent tag, title, price, the buyer's fit, the actions (Request a viewing
   first) and the listing-agent note. Layout only: the same data and access rules (buyer_view, location rounded to
   about 1 km), and save / ask / copy link / reactions keep their handlers. Request a viewing opens the SFT-607 dialog.
   ========================================================================================================== */
body #byPropertyPage .by-page-back{background:var(--nl-glass);border:1px solid var(--nl-ghost-line);color:#fff;border-radius:var(--nl-r-pill);padding:0 18px}
body #byPropertyPage .by-page-back:hover{background:var(--nl-glass-hover)}
body #byPropertyPage .by-page-back:focus-visible{outline:2px solid var(--nl-teal);outline-offset:2px}
body #byPropertyPage .by-page-grid{gap:24px}
body #byPropertyPage .by-page-main,body #byPropertyPage .by-page-side{border:0;border-radius:var(--nl-r-lg);padding:20px;box-shadow:0 24px 48px -32px rgba(0,0,0,.6)}
body #byPropertyPage .by-page-side{top:84px}
body #byPropertyPage .by-page-gallery{border-radius:var(--nl-r-md);height:460px}
body #byPropertyPage .by-gal-prev,body #byPropertyPage .by-gal-next{width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.92);color:var(--nl-ink);border:0;box-shadow:0 6px 16px -8px rgba(0,0,0,.5)}
body #byPropertyPage .by-gal-count,body #byPropertyPage .by-page-room{background:rgba(11,31,53,.82);border-radius:var(--nl-r-pill)}
body #byPropertyPage .by-page-thumbs button{border-radius:10px;min-height:44px}
body #byPropertyPage .by-page-thumbs button.active{border-color:var(--nl-teal)}
body #byPropertyPage .by-page-thumbs button:focus-visible{outline:2px solid var(--nl-teal-d);outline-offset:2px}
body #byPropertyPage .by-page-keyfacts{list-style:none;margin:16px 0 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
body #byPropertyPage .by-page-keyfacts li{display:flex;flex-direction:column;gap:2px;padding:12px 14px;border-radius:var(--nl-r-sm);background:var(--nl-mint)}
body #byPropertyPage .by-page-keyfacts b{font-size:18px;color:var(--nl-ink);overflow-wrap:anywhere}
body #byPropertyPage .by-page-keyfacts span{font-size:12.5px;color:var(--nl-teal-d);font-weight:700}
body #byPropertyPage .by-page-section{margin-top:22px;padding-top:18px;border-top:1px solid var(--nl-line)}
body #byPropertyPage .by-page-section h3{font-size:18px;color:var(--nl-ink)}
body #byPropertyPage .by-page-features .pill{background:#F2F6F8;border:1px solid var(--nl-line);color:var(--nl-ink)}
body #byPropertyPage .by-page-facts{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:8px;margin:0}
body #byPropertyPage .by-page-facts div{background:#F6F9FA;border:1px solid var(--nl-line);border-radius:10px;padding:9px 12px}
body #byPropertyPage .by-page-facts dt{font-size:11.5px;color:var(--nl-muted)}
body #byPropertyPage .by-page-facts dd{margin:2px 0 0;font-weight:750;font-size:14px;color:var(--nl-ink)}
body #byPropertyPage .by-page-map{height:260px;border-radius:var(--nl-r-md);overflow:hidden;margin-bottom:8px;background:#E9EFF2;z-index:0}
body #byPropertyPage .by-page-deal{display:inline-flex;align-items:center;padding:4px 10px;border-radius:var(--nl-r-pill);background:var(--nl-navy);color:#fff;font-size:12px;font-weight:700;margin-bottom:8px}
body #byPropertyPage .by-page-side h2{font-size:26px;line-height:1.15;color:var(--nl-ink)}
body #byPropertyPage .by-page-price{font-size:28px;font-weight:800;color:var(--nl-teal-d)}
body #byPropertyPage .by-page-price .by-per{font-size:14px;font-weight:600;color:var(--nl-muted)}
body #byPropertyPage .by-page-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
body #byPropertyPage .by-page-actions .btn{min-height:46px;border-radius:var(--nl-r-sm);font-weight:700}
body #byPropertyPage .by-page-actions .by-page-request{flex:1 1 100%;justify-content:center;background:var(--nl-navy);border-color:var(--nl-navy);color:#fff}
body #byPropertyPage .by-page-actions .by-page-request:hover{background:var(--nl-navy-hover)}
body #byPropertyPage .by-page-actions [data-agent-ask]{flex:1 1 100%;justify-content:center}
body #byPropertyPage .by-page-actions [data-save-id],body #byPropertyPage .by-page-actions [data-page-ask],body #byPropertyPage .by-page-actions [data-page-share]{flex:1 1 auto;justify-content:center}
body #byPropertyPage .by-page-agent{display:flex;gap:12px;align-items:flex-start;margin-top:16px;padding-top:14px;border-top:1px solid var(--nl-line)}
body #byPropertyPage .by-page-agent-mark{flex:none;width:40px;height:40px;border-radius:12px;background:var(--nl-navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232EC4B6' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M4 10v4M8 6v12M12 9v6M16 4v16M20 10v4'/%3E%3C/svg%3E") center/20px no-repeat}
body #byPropertyPage .by-page-agent b{display:block;font-size:14px;color:var(--nl-ink)}
body #byPropertyPage .by-page-agent small{display:block;font-size:12.5px;line-height:1.45;color:var(--nl-muted);margin-top:2px}
/* quick view from a card: same gallery, thumbnails and facts treatment */
body #byDetail .by-gallery{border-radius:var(--nl-r-md)}
body #byDetail .by-thumbs button.active{border-color:var(--nl-teal)}
body #byDetail .by-detail-stats div{background:#F6F9FA;border-color:var(--nl-line)}
body #byDetail .by-detail-price b{font-size:22px;color:var(--nl-teal-d)}
body #byDetail .by-detail-actions [data-request-viewing]{background:var(--nl-navy);border-color:var(--nl-navy);color:#fff}
@media(max-width:900px){
  body #byPropertyPage .by-page-side{position:static}
  /* one column: the title, price and Request a viewing come first instead of after the whole photo and details column */
  body #byPropertyPage .by-page-side{order:-1}
  body #byPropertyPage .by-page-gallery{height:320px}
}
@media(max-width:560px){
  body #byPropertyPage .by-page-keyfacts{grid-template-columns:repeat(2,minmax(0,1fr))}
  body #byPropertyPage .by-page-main,body #byPropertyPage .by-page-side{padding:14px}
  body #byPropertyPage .by-page-gallery{height:240px}
  body #byPropertyPage .by-page-actions .btn{flex:1 1 calc(50% - 4px);justify-content:center}
  body #byPropertyPage .by-page-actions .by-page-request,body #byPropertyPage .by-page-actions [data-agent-ask]{flex:1 1 100%}
  body #byPropertyPage .by-page-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ==========================================================================================================
   SFT-614: the Account page's sign-in / create-account card in the prototype's split layout: a photo with the side
   text on the left, the white card on the right. Create account adds the role cards, the full name, the password
   meter and the admin request message. The photo hides when the card is in the professional sign-in dialog, after
   signing in, and while two-step setup is due. SFT-615 finishes the sign-in side of the same card.
   ========================================================================================================== */
/* edge to edge like the home page while the card is on it (signed out); the signed-in Account page keeps the column */
html:not([data-view="workspace"]) body:has(#admin:not(.hidden) #authShell #adminLoginCard:not(.hidden)) .wrap{max-width:none;margin:0;padding:0}
.nl-auth{display:flex;min-height:calc(100vh - 64px);font-family:var(--nl-font)}
.nl-auth:not(:has(#adminLoginCard)),.nl-auth:has(#adminLoginCard.hidden),#admin.mfa-due .nl-auth{display:none}
.nl-auth-art{flex:1 1 50%;position:relative;overflow:hidden;min-height:600px}
.nl-auth-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.nl-auth-ov{position:absolute;inset:0;background:linear-gradient(180deg,rgba(11,31,53,.1) 0%,rgba(11,31,53,.88) 100%)}
.nl-auth-quote{position:absolute;left:32px;right:32px;bottom:36px;display:flex;flex-direction:column;gap:10px;color:#fff}
.nl-auth-tag{align-self:flex-start;display:inline-flex;align-items:center;height:28px;padding:0 12px;border-radius:var(--nl-r-pill);background:var(--nl-mint);color:var(--nl-teal-d);font-size:13px;font-weight:700}
.nl-auth-quote h2{margin:0;max-width:460px;font-size:var(--nl-h2);line-height:1.1;letter-spacing:-.02em;color:#fff}
.nl-auth-quote p{margin:0;max-width:420px;color:var(--nl-soft);font-size:16px;line-height:1.5}
.nl-auth-frm{flex:1 1 50%;display:flex;align-items:center;justify-content:center;padding:48px 24px}
.nl-auth #adminLoginCard{width:100%;max-width:440px;margin:0;padding:32px}
.nl-auth #authTitle,.pro-signin #authTitle{font-size:28px;margin:0;letter-spacing:-.02em}
.nl-auth #authSub,.pro-signin #authSub{margin:6px 0 16px}
.nl-auth #authSubmitBtn,.pro-signin #authSubmitBtn{width:100%;min-height:56px;font-size:16px}
/* fields: the prototype's label above a bordered 52px input (the old card drew a box around label and input) */
.nl-auth #adminLoginCard .field,.pro-signin #adminLoginCard .field{border:0;background:transparent;padding:0;box-shadow:none;display:flex;flex-direction:column;gap:6px;margin-bottom:14px!important}
.nl-auth #adminLoginCard .field:focus-within,.pro-signin #adminLoginCard .field:focus-within{box-shadow:none}
.nl-auth #adminLoginCard .field>small,.pro-signin #adminLoginCard .field>small{font-size:13px;font-weight:600;color:var(--nl-muted)}
.nl-auth #adminLoginCard .field :is(input,textarea),.pro-signin #adminLoginCard .field :is(input,textarea){height:52px;padding:0 14px!important;border:1.5px solid var(--nl-field-line)!important;border-radius:14px;background:#fff!important;font-size:16px;color:var(--nl-ink)}
.nl-auth #adminLoginCard .field textarea,.pro-signin #adminLoginCard .field textarea{height:auto;min-height:88px;padding:12px 14px!important}
.nl-auth #adminLoginCard .field :is(input,textarea):focus,.pro-signin #adminLoginCard .field :is(input,textarea):focus{border-color:var(--nl-teal)!important;box-shadow:0 0 0 4px rgba(46,196,182,.18)}
.nl-auth #adminLoginCard .field :is(input,textarea)::placeholder,.pro-signin #adminLoginCard .field :is(input,textarea)::placeholder{color:var(--nl-label)}
/* role cards: the prototype's .roleopt */
.nl-roles{display:flex;gap:8px;margin:0 0 14px}
.nl-roleopt{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:14px 6px;border-radius:14px;border:1.5px solid var(--nl-field-line);background:#fff;color:var(--nl-ink);cursor:pointer;font:inherit;font-weight:600;font-size:13px;line-height:1.2;text-align:center;transition:border-color .2s,background-color .2s,transform .16s ease-out}
.nl-roleopt:hover{border-color:var(--nl-teal)}
.nl-roleopt:active{transform:scale(.97)}
.nl-roleopt[aria-checked="true"]{border-color:var(--nl-teal);background:var(--nl-mint);color:var(--nl-teal-d)}
.nl-roleopt:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.nl-roleopt small{font-weight:500;font-size:11px;color:#6B7F92}
.nl-roleopt[aria-checked="true"] small{color:var(--nl-teal-d)}
.nl-auth-note{margin:0 0 14px;padding:14px 16px;border-radius:14px;background:var(--nl-mint);color:var(--nl-teal-d);font-size:14px;line-height:1.5}
/* password strength: the prototype's .meter with the label on the right */
.nl-pwmeter{display:flex;align-items:center;gap:10px;margin:-6px 0 14px}
.nl-meter{flex:1;height:6px;border-radius:5px;background:#EEF3F5;overflow:hidden}
.nl-meter i{display:block;height:100%;width:100%;background:var(--nl-red);transform:scaleX(0);transform-origin:left;border-radius:5px;transition:transform .35s ease-out,background-color .35s}
#signupMeterLabel{font-size:12px;font-weight:700;color:var(--nl-label);min-width:52px;text-align:right}
@media(prefers-reduced-motion:reduce){.nl-meter i,.nl-roleopt{transition:none}}
@media(max-width:900px){
  .nl-auth{flex-direction:column;min-height:0}
  .nl-auth-art{min-height:330px;flex:none}
  .nl-auth-frm{padding:0 14px 28px;margin-top:-28px;position:relative;z-index:2}
  .nl-auth #adminLoginCard{padding:24px}
}
@media(max-width:420px){.nl-roles{flex-wrap:wrap}.nl-roleopt{flex:1 1 calc(50% - 4px)}}

/* ==========================================================================================================
   SFT-615: the sign-in side of the same card: show-password button inside the field, a "Remember me" + "Forgot
   password" row above the button, and the "or" divider drawn with lines. No role picker on sign-in.
   ========================================================================================================== */
.nl-pw{position:relative}
.nl-auth #adminLoginCard .field .nl-pw input,.pro-signin #adminLoginCard .field .nl-pw input{padding-right:52px!important}
.nl-pw-eye{position:absolute;top:50%;right:6px;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border:0;border-radius:10px;background:transparent;color:var(--nl-muted);cursor:pointer}
.nl-pw-eye:hover{color:var(--nl-teal-d);background:var(--nl-mint)}
.nl-pw-eye:focus-visible{outline:3px solid var(--focus);outline-offset:1px}
.nl-signin-opts{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:-4px 0 18px;font-size:14px}
.nl-check{display:inline-flex;align-items:center;gap:8px;cursor:pointer;color:var(--nl-ink);font-weight:500;min-height:32px}
.nl-check input{width:18px;height:18px;margin:0;accent-color:var(--nl-teal);cursor:pointer}
.nl-check input:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.nl-signin-opts #authForgotToggle{color:var(--nl-teal-d);font-weight:600;text-decoration:none;border-radius:6px}
.nl-signin-opts #authForgotToggle:hover{text-decoration:underline}
.nl-signin-opts #authForgotToggle:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.nl-auth #authModeHint,.pro-signin #authModeHint{text-align:center;margin-top:16px!important}
.nl-auth #authModeHint a,.pro-signin #authModeHint a{color:var(--nl-teal-d);font-weight:700}
.nl-or{display:flex;align-items:center;gap:12px}
.nl-or::before,.nl-or::after{content:"";flex:1;height:1px;background:var(--nl-field-line)}
.nl-auth #googleSignInBtn,.pro-signin #googleSignInBtn{display:flex;justify-content:center}

/* ==========================================================================
   SFT-629: [09b] buyer profile, the search profile editor (epic SFT-601). Layout only.
   Grouped preference cards (area, budget, home, must-haves, nice to have), a remove button on area, must-have and
   nice-to-have tags, an "Undo" line after a removal, and an add-preference field. Changes go through the existing
   brief endpoint (buyer-workspace.js), exactly as the old editor.
   ========================================================================== */
body #buyers .bws-pf-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body #buyers .bws-pf-group{display:flex;flex-direction:column;gap:10px;min-width:0;border:1px solid var(--nl-line);border-radius:14px;padding:14px 16px;background:#fff}
body #buyers .bws-pf-group[data-pf-group="must"],body #buyers .bws-pf-group[data-pf-group="nice"]{grid-column:span 1}
body #buyers .bws-pf-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:32px}
body #buyers .bws-pf-head h4{margin:0;font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--nl-muted)}
body #buyers .bws-pf-edit{border:0;background:none;padding:6px 8px;margin:-6px -8px -6px 0;border-radius:8px;font:inherit;font-size:13px;font-weight:700;color:var(--nl-teal-d);cursor:pointer}
body #buyers .bws-pf-edit:hover{background:var(--nl-option-hover)}
body #buyers .bws-pf-tags{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
body #buyers .bws-pf-tags .by-tag{min-height:32px;padding:0 12px;border:0;background:#EEF2F5;color:var(--nl-ink);font-size:13px;font-weight:700}
body #buyers .bws-pf-tags .by-tag.must{background:#DDF4EF;color:#0B6B57}
body #buyers .bws-pf-tags .by-tag.soft{background:#EEF3FB;color:#2C4A7A}
body #buyers .bws-pf-tags .by-tag.inferred{outline:1px dashed #9DB3D6;outline-offset:-1px}
body #buyers .bws-pf-tags .by-tag-x{display:inline-grid;place-items:center;width:24px;height:24px;margin-right:-6px;border-radius:50%;font-size:16px;color:inherit;opacity:.7}
body #buyers .bws-pf-tags .by-tag-x:hover{opacity:1;background:rgba(11,31,53,.08);color:#B42318}
body #buyers .bws-pf-tags .by-tag-x:disabled{opacity:.3;cursor:default}
body #buyers .bws-pf-sub{flex-basis:100%;font-size:12px;color:var(--nl-muted);margin-top:2px}
body #buyers .bws-pf-sub:first-child{margin-top:0}
body #buyers .bws-pf-undo{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border-radius:12px;background:var(--nl-navy);color:#fff;font-size:14px}
body #buyers .bws-pf-undo-btn{border:0;background:none;padding:6px 8px;margin:-6px -8px;border-radius:8px;font:inherit;font-weight:800;color:var(--nl-teal);cursor:pointer}
body #buyers .bws-pf-add{display:flex;flex-direction:column;gap:8px}
body #buyers .bws-pf-add-label{font-size:14px;font-weight:700;color:var(--nl-ink)}
body #buyers .bws-pf-add-row{display:flex;gap:8px}
body #buyers .bws-pf-add-row input{flex:1;min-width:0;min-height:46px;border:1px solid var(--nl-line);border-radius:12px;padding:0 14px;font:inherit;font-size:16px;color:var(--nl-ink)}
body #buyers .bws-pf-add-row select{flex:none;min-height:46px;border:1px solid var(--nl-line);border-radius:12px;padding:0 10px;font:inherit;font-size:14px;color:var(--nl-ink);background:#fff}
body #buyers .bws-pf-add-row input:focus,body #buyers .bws-pf-add-row select:focus{outline:none;border-color:var(--nl-teal);box-shadow:0 0 0 3px rgba(46,196,182,.25)}
body #buyers .bws-pf-add-row .btn{flex:none;min-height:46px;padding:0 18px;border-radius:12px;background:var(--nl-teal);color:var(--nl-navy);border:0;font-weight:800}
body #buyers .bws-pf-add .error{margin:0}
body #buyers .bws-pf-hint{margin:0;font-size:13px}
@media (max-width:767px){
 body #buyers .bws-pf-grid{grid-template-columns:minmax(0,1fr)}
 body #buyers .bws-pf-add-row{flex-wrap:wrap}
 body #buyers .bws-pf-add-row input{flex-basis:100%}
 body #buyers .bws-pf-add-row select{flex:1}
}

/* ==========================================================================
   SFT-630: [09c] buyer profile, viewings and notification switches (epic SFT-601). Layout only.
   Viewings tab = a timeline with status tags; the Search profile tab ends with Notifications: the match-alert switch,
   the existing notification settings and the latest notifications. The bell's panel gets the same look.
   ========================================================================== */
body #buyers .bws-timeline{list-style:none;margin:0;padding:0 0 0 6px;position:relative;display:flex;flex-direction:column;gap:14px}
body #buyers .bws-timeline::before{content:"";position:absolute;left:12px;top:10px;bottom:10px;width:2px;background:var(--nl-line)}
body #buyers .bws-tl-item{position:relative;display:flex;gap:14px;align-items:flex-start}
body #buyers .bws-tl-dot{position:relative;z-index:1;flex:none;width:14px;height:14px;margin-top:16px;border-radius:50%;background:#fff;border:3px solid #B8C6CF}
body #buyers .bws-tl-item.s-scheduled .bws-tl-dot{border-color:var(--nl-teal);background:var(--nl-teal)}
body #buyers .bws-tl-item.s-pending .bws-tl-dot{border-color:#E0A526}
body #buyers .bws-tl-card{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px;border:1px solid var(--nl-line);border-radius:14px;padding:12px 14px;background:#fff}
body #buyers .bws-tl-item.s-scheduled .bws-tl-card{border-color:var(--nl-teal);box-shadow:0 0 0 1px var(--nl-teal) inset}
body #buyers .bws-tl-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
body #buyers .bws-tl-top b{color:var(--nl-ink);overflow-wrap:anywhere}
body #buyers .bws-tl-tag{flex:none;padding:3px 10px;border-radius:99px;font-size:12px;font-weight:800;background:#EEF2F5;color:var(--nl-muted)}
body #buyers .bws-tl-tag.s-scheduled{background:var(--nl-mint);color:var(--nl-teal-d)}
body #buyers .bws-tl-tag.s-pending{background:#FDF3DC;color:#8A5A00}
body #buyers .bws-tl-tag.s-responded{background:#EEF3FB;color:#2C4A7A}
body #buyers .bws-tl-when{font-weight:700;color:var(--nl-ink);font-size:14px}
body #buyers .bws-tl-card .muted{font-size:13px}
body #buyers .bws-tl-note{margin:4px 0 0;color:var(--nl-ink);font-size:14px}
body #buyers .bws-notify{display:flex;flex-direction:column;gap:12px;border-top:1px solid var(--nl-line);padding-top:16px}
body #buyers .bws-notify h4{margin:0;font-size:16px;color:var(--nl-ink)}
body #buyers .bws-alert-row{display:flex;justify-content:space-between;align-items:center;gap:14px;border:1px solid var(--nl-line);border-radius:14px;padding:12px 14px}
body #buyers .bws-alert-row>div{display:flex;flex-direction:column;gap:2px;min-width:0}
body #buyers .bws-alert-row b{color:var(--nl-ink)}
body #buyers .bws-alert-row .muted{font-size:13px}
body #buyers .bws-alert-row button.bws-switch{flex:none;position:relative;width:48px;min-width:48px;height:28px;min-height:0;max-height:28px;padding:0;margin:0;border:0;border-radius:99px;box-shadow:none;background:#C9D4DB;cursor:pointer;transition:background .2s}
body #buyers .bws-switch span{position:absolute;left:3px;top:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .2s}
body #buyers .bws-alert-row button.bws-switch.on{background:var(--nl-teal)}
body #buyers .bws-switch.on span{transform:translateX(20px)}
body #buyers .bws-switch:focus-visible{outline:2px solid var(--nl-teal-d);outline-offset:2px}
body #buyers .bws-switch:disabled{opacity:.6}
body #buyers .bws-notify-settings{display:flex;flex-direction:column;gap:8px;border:1px solid var(--nl-line);border-radius:14px;padding:12px 14px}
body #buyers .bws-notify-settings>.by-profile-hint:first-child{display:none}
body #buyers .bws-notify-settings .by-notify-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px}
body #buyers .bws-notify-settings select{min-height:42px;border:1px solid var(--nl-line);border-radius:10px;padding:0 10px;font:inherit;font-size:16px;background:#fff;color:var(--nl-ink)}
body #buyers .bws-notify-settings .by-notify-email{display:inline-flex;align-items:center;gap:6px;min-height:42px;font-size:14px;color:var(--nl-ink)}
body #buyers .bws-notify-settings .by-notify-email input{width:18px;height:18px;accent-color:var(--nl-teal)}
body #buyers .bws-notify-settings [data-notify-save]{min-height:42px;border-radius:12px}
body #buyers .bws-notify-settings .muted{margin:0;font-size:13px}
body #buyers .bws-notify-settings .msg:empty{display:none}
body #buyers .bws-notify-list-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
body #buyers .bws-notify-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
body #buyers .bws-notify-list button{width:100%;display:flex;align-items:flex-start;gap:10px;text-align:left;border:1px solid var(--nl-line);border-radius:12px;padding:10px 12px;background:#fff;font:inherit;color:var(--nl-ink);cursor:pointer}
body #buyers .bws-notify-list button:hover{background:var(--nl-option-hover)}
body #buyers .bws-notify-list button>span:nth-child(2){display:flex;flex-direction:column;gap:2px;min-width:0}
body #buyers .bws-notify-list .muted{font-size:13px}
body #buyers .bws-unread-dot{flex:none;width:8px;height:8px;margin-top:7px;border-radius:50%;background:transparent}
body #buyers .bws-notify-list li.unread .bws-unread-dot{background:var(--nl-teal)}
body #buyers .bws-notify-list li.unread b{font-weight:800}
body #buyers #byNotifyPanel{border-radius:16px;border:1px solid var(--nl-line);box-shadow:0 24px 44px -26px rgba(11,31,53,.55)}
body #buyers #byNotifyPanel .by-notify-list li.unread{border-left:3px solid var(--nl-teal)}
@media (max-width:767px){
 body #buyers .bws-notify-settings .by-notify-row>*{flex:1 1 100%}
 body #buyers .bws-tl-top{flex-direction:column;gap:6px}
}

/* ==========================================================================
   SFT-612: [11] voice search overlay (epic SFT-601). Layout only.
   The buyer's recording bar (#byRecBar) becomes the prototype's full-screen listening overlay while the mic is not
   "ready": state, timer, waveform, reminder chips, speaking language, pause, cancel and finish. Same recorder and
   transcription (main.js); the old rule in index.html still decides when it shows.
   ========================================================================== */
body #buyers .by-recbar{position:fixed;inset:0;z-index:9000;align-items:center;justify-content:center;padding:20px;border:0;background:rgba(6,18,31,.86);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);font-size:15px}
/* the chat column is sticky (SFT-611), and a sticky box is its own stacking context: lift it over the page header while the overlay shows */
body #buyers .by-chat:has(#clientRecord:not([data-state="ready"])){z-index:9000}
body #buyers .by-voice-card{width:min(440px,100%);display:flex;flex-direction:column;align-items:center;gap:14px;padding:22px 24px 24px;border-radius:24px;background:var(--nl-navy);border:1px solid rgba(255,255,255,.08);color:#fff;text-align:center;box-shadow:0 30px 70px rgba(0,0,0,.45)}
body #buyers .by-voice-top{align-self:stretch;display:flex;align-items:center;gap:10px}
body #buyers .by-voice-top .by-rec-state{flex:1;text-align:left;font-size:13px;font-weight:800;color:var(--nl-soft)}
body #buyers .by-voice-x{flex:none;min-height:44px;padding:0 16px;border:1px solid rgba(255,255,255,.22);border-radius:12px;background:rgba(255,255,255,.08);color:#fff;font:inherit;font-size:15px;font-weight:800;line-height:1;cursor:pointer}
body #buyers .by-voice-x:hover{background:rgba(255,255,255,.16)}
body #buyers .by-voice-title{margin:4px 0 0;font-size:28px;font-weight:800;letter-spacing:-.01em;color:#fff}
body #buyers .by-voice-hint{margin:0;max-width:32ch;color:var(--nl-soft);line-height:1.5}
body #buyers .by-wave{display:flex;align-items:center;justify-content:center;gap:5px;height:64px}
body #buyers .by-wave i{display:block;width:5px;height:14px;border-radius:99px;background:var(--nl-teal);animation:byWave 1s ease-in-out infinite}
body #buyers .by-wave i:nth-child(2n){animation-delay:-.2s}body #buyers .by-wave i:nth-child(3n){animation-delay:-.45s}body #buyers .by-wave i:nth-child(4n){animation-delay:-.7s}body #buyers .by-wave i:nth-child(5n){animation-delay:-.1s}
@keyframes byWave{0%,100%{height:12px;opacity:.55}50%{height:56px;opacity:1}}
body #buyers .by-chat:has(#clientRecord:not([data-state="recording"])) .by-wave i{animation-play-state:paused;height:12px;opacity:.4}
body #buyers .by-voice-card .timer{font-size:22px;font-weight:800;font-variant-numeric:tabular-nums;color:#fff}
body #buyers .by-voice-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
body #buyers .by-voice-chip{padding:6px 12px;border-radius:99px;background:rgba(255,255,255,.08);color:#DCE7EE;font-size:13px;font-weight:700}
body #buyers .by-voice-lang{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--nl-soft)}
body #buyers .by-voice-lang select{min-height:44px;border-radius:10px;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.06);color:#fff;padding:0 10px;font:inherit;font-size:16px}
body #buyers .by-voice-lang select option{color:#0B1F35}
body #buyers .by-voice-actions{align-self:stretch;display:flex;gap:10px;margin-top:4px}
body #buyers .by-voice-actions .btn{flex:1;min-height:50px;border-radius:14px;font-size:15px;font-weight:800;padding:0 14px}
body #buyers .by-voice-pause{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.28)}
body #buyers .by-voice-actions .by-stop{background:var(--nl-teal);color:var(--nl-navy);border:0}
body #buyers .by-voice-actions .btn:disabled{opacity:.45}
body #buyers .by-recbar :is(button,select):focus-visible{outline:2px solid var(--nl-teal);outline-offset:2px}
/* processing: the recording is being transcribed, so nothing to cancel or pause; the waveform rests */
body #buyers .by-chat:has(#clientRecord[data-state="processing"]) :is(.by-voice-x,.by-voice-actions,.by-voice-lang,.by-voice-chips){display:none}
body #buyers .by-chat:has(#clientRecord[data-state="processing"]) .by-voice-title{font-size:20px}
body #buyers .by-chat:has(#clientRecord[data-state="processing"]) .by-voice-top .by-rec-dot{background:var(--nl-teal);animation:none}
@media (max-width:767px){
 body #buyers .by-recbar{padding:0;align-items:stretch}
 body #buyers .by-voice-card{width:100%;border-radius:0;border:0;justify-content:center;padding:calc(18px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom))}
 body #buyers .by-voice-top{position:absolute;top:calc(14px + env(safe-area-inset-top));left:20px;right:20px}
 body #buyers .by-voice-actions{position:absolute;left:20px;right:20px;bottom:calc(20px + env(safe-area-inset-bottom))}
}
@media (prefers-reduced-motion:reduce){body #buyers .by-wave i{animation:none;height:24px}}

/* ==========================================================================
   SFT-641: [10d] "Talk to an agent" buyer handoff form (epic SFT-601). Layout only, design approved 24 Nov 2026.
   Same entry points, texts, fields, sending and routing (buyer.js byOpenHandoff / byHandoffSend).
   Desktop: a white card in the chat column with a teal border. Each field gets a small label above it, errors
   show in a red box above the buttons, one action row. Phone: the same form as a bottom sheet over the chat.
   ========================================================================== */
body #buyers .by-handoff{margin:12px 14px;padding:16px 16px 18px;border:1.5px solid var(--nl-teal);border-radius:16px;background:#fff;box-shadow:0 18px 40px -28px rgba(11,31,53,.55)}
body #buyers .by-handoff-grab{display:none}
body #buyers .by-handoff .by-handoff-title{margin:0 0 6px;font-size:16px;font-weight:800;color:var(--nl-ink)}
body #buyers .by-handoff .by-profile-hint{margin:0 0 12px;font-size:13px;line-height:1.5;color:var(--nl-muted)}
body #buyers .by-handoff-fields{display:flex;flex-direction:column;gap:10px;margin-bottom:12px}
body #buyers .by-handoff-field{display:flex;flex-direction:column;gap:5px;margin:0}
body #buyers .by-handoff-field>span{font-size:12px;font-weight:700;color:var(--nl-ink)}
body #buyers .by-handoff-field :is(input,textarea){width:100%;min-width:0;margin:0;padding:11px 12px;border:1px solid var(--nl-line);border-radius:10px;background:#fff;font:inherit;font-size:16px;color:var(--nl-ink)}
body #buyers .by-handoff-field textarea{min-height:72px;resize:vertical}
body #buyers .by-handoff-field :is(input,textarea):focus-visible{outline:2px solid var(--nl-teal);outline-offset:1px;border-color:var(--nl-teal)}
body #buyers #byHandoffMsg:empty{display:none}
body #buyers #byHandoffMsg .error{margin:0 0 12px;padding:10px 12px;border:1px solid #f3c4c4;border-radius:10px;background:#fdecec;color:#a61b1b;font-size:13px}
body #buyers #byHandoffMsg .notice{margin:0 0 12px}
body #buyers .by-handoff-actions{display:flex;gap:8px;flex-wrap:nowrap}
body #buyers .by-handoff-actions .btn{min-height:46px;border-radius:12px;font-weight:800}
body #buyers .by-handoff-actions .by-send{flex:1;height:auto;background:var(--nl-teal);color:var(--nl-navy);border:0}
body #buyers .by-handoff-actions .by-send:hover{background:var(--nl-teal-hover,var(--nl-teal))}
body #buyers .by-handoff-actions .btn.secondary{flex:none;padding:0 18px;background:#fff;border:1px solid var(--nl-line);color:var(--nl-ink)}
@media (max-width:767px){
 /* the chat column is sticky and so its own stacking context: lift it over the page header while the sheet shows */
 body #buyers .by-chat:has(#byHandoffPanel:not(.hidden)){z-index:9000}
 body #buyers .by-handoff{position:fixed;left:0;right:0;bottom:0;z-index:9000;margin:0;max-height:88vh;overflow:auto;border:0;border-radius:20px 20px 0 0;padding:10px 18px calc(18px + env(safe-area-inset-bottom));box-shadow:0 0 0 100vmax rgba(6,18,31,.55),0 -12px 30px rgba(0,0,0,.25)}
 body #buyers .by-handoff-grab{display:block;width:42px;height:4px;margin:0 auto 12px;border-radius:99px;background:var(--nl-line)}
 body #buyers .by-handoff-actions .btn{min-height:50px}
}

/* ==========================================================================
   SFT-681: [09e] buyer extras (epic SFT-601). Layout only, design approved 24 Nov 2026.
   No-match card in the new theme with the assistant's suggestions first; the match alert as a switch (same setting
   as SFT-630); homes not shown as a fold-out card with the reason under each home and Undo on the right; web results
   as small cards; brief history as a timeline. Same data, texts and actions (buyer.js).
   ========================================================================== */
body #buyers .by-nomatch{gap:10px;padding:18px 20px;border:1px solid var(--nl-line);border-radius:16px;background:#fff;color:var(--nl-ink);box-shadow:0 18px 40px -30px rgba(11,31,53,.5)}
body #buyers .by-nomatch>b{font-size:17px;font-weight:800;letter-spacing:-.01em}
body #buyers .by-nomatch>p{font-size:13.5px;color:var(--nl-muted)}
body #buyers .by-nomatch .by-nomatch-try{margin-top:2px;font-size:13px;font-weight:800;color:var(--nl-ink)}
body #buyers .by-nomatch .by-suggest{min-height:36px;border:1px solid var(--nl-teal);background:#E8FAF7;color:var(--nl-teal-d,#0b6f63);border-radius:99px;padding:6px 14px;font-size:13px;font-weight:800}
body #buyers .by-nomatch .by-suggest:hover{background:#D3F5EF}
body #buyers .by-nomatch>.btn.secondary{align-self:flex-start;min-height:44px;padding:0 16px;border:1px solid var(--nl-line);border-radius:12px;background:#fff;color:var(--nl-ink);font-weight:800}
body #buyers .by-alert.by-alert-switch{display:flex;align-items:center;justify-content:space-between;gap:12px;align-self:stretch;width:100%;min-height:48px;padding:8px 12px 8px 14px;border:1px solid var(--nl-line);border-radius:12px;background:#fff;color:var(--nl-ink);font-size:13.5px;font-weight:700;text-align:left}
body #buyers .by-alert.by-alert-switch.on{background:#fff;border-color:var(--nl-line);color:var(--nl-ink)}
body #buyers .by-alert-knob{position:relative;flex:none;width:42px;height:24px;border-radius:99px;background:#C9D6DC;transition:background .15s}
body #buyers .by-alert-knob::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .15s}
body #buyers .by-alert-switch.on .by-alert-knob{background:var(--nl-teal)}
body #buyers .by-alert-switch.on .by-alert-knob::after{transform:translateX(18px)}
body #buyers .by-alert-switch:focus-visible{outline:2px solid var(--nl-teal);outline-offset:2px}
body #buyers .by-alert-row{align-items:stretch}
body #buyers .by-alert-row .by-alert-switch{width:auto;flex:1 1 280px}
body #buyers #matches>.by-excluded,body #buyers #byWs:not(.byws-saved) #matches>.by-excluded{padding:0 18px;border:1px solid var(--nl-line);border-radius:16px;background:#fff;color:var(--nl-ink)}
body #buyers .by-excluded summary{min-height:0;padding:15px 0;font-size:14px;font-weight:800;color:var(--nl-ink)}
body #buyers .by-excluded ul{gap:0;margin:0 0 6px}
body #buyers .by-excluded li{flex-direction:row;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid var(--nl-line)}
body #buyers .by-excluded-text{display:flex;flex-direction:column;gap:2px;min-width:0}
body #buyers .by-excluded-text b{font-size:13.5px}
body #buyers .by-excluded-text span{font-size:12.5px;color:var(--nl-muted)}
body #buyers .by-excluded .by-react-undo{flex:none;min-height:36px;padding:0 12px;border:0;border-radius:10px;background:transparent;color:var(--nl-ink);font-weight:800;cursor:pointer}
body #buyers .by-excluded .by-react-undo:hover{background:var(--nl-option-hover)}
body #buyers .by-web{padding:16px 18px;border:1px solid var(--nl-line);border-radius:16px;background:#fff;color:var(--nl-ink)}
body #buyers .by-web-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px}
body #buyers .by-web-list a{height:100%;border:1px solid var(--nl-line);border-radius:12px;padding:10px 12px;background:#fff}
body #buyers .by-web-list a:hover{border-color:var(--nl-teal)}
body #buyers .by-web-list a b{font-size:13.5px}
body #buyers .by-web-site{font-size:12px;color:var(--nl-muted)}
body #buyers .by-web .by-suggest{align-self:flex-start;min-height:38px;border:1px solid var(--nl-line);background:#fff;color:var(--nl-ink);border-radius:12px;padding:0 14px;font-weight:800}
/* brief history: a timeline with a teal dot per change and the values as small chips */
body #buyers #byHistoryDialog .by-history ol{list-style:none;margin:10px 0 0;padding:0 0 0 22px;gap:14px;position:relative}
body #buyers #byHistoryDialog .by-history ol::before{content:"";position:absolute;left:5px;top:6px;bottom:6px;width:2px;background:var(--nl-line)}
body #buyers #byHistoryDialog .by-history ol>li{position:relative}
body #buyers #byHistoryDialog .by-history ol>li::before{content:"";position:absolute;left:-22px;top:4px;width:12px;height:12px;border-radius:50%;background:var(--nl-teal);box-shadow:0 0 0 3px #fff}
body #buyers #byHistoryDialog .by-history ol>li>.muted{font-size:12px;color:var(--nl-muted)}
body #buyers #byHistoryDialog .by-history ul{list-style:none;margin:4px 0 0;padding:0;display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--nl-ink)}
body #buyers .by-hist-chip{display:inline-block;padding:1px 8px;border-radius:6px;background:var(--nl-option-hover);font-weight:700}
body #buyers #byHistoryDialog .by-history-dialog-head h3{font-size:18px;font-weight:800}
@media (max-width:767px){
 body #buyers .by-nomatch{padding:16px}
 body #buyers .by-web-list{grid-template-columns:1fr}
 body #buyers .by-alert-row .by-alert-switch{flex-basis:100%}
}

/* ==========================================================================================================
   SFT-616: the two-step (verification code) screen. Same card as sign-in, in the New Layout look: a shield badge,
   centred title, one large code box (6-digit app codes and longer recovery codes both fit), a full-width Verify
   button and a "Back to sign in" text button. Scoped to the card so it also works inside the pro sign-in dialog.
   ========================================================================================================== */
#adminLoginCard.mfa-on{display:flex;flex-direction:column;font-family:var(--nl-font)}
#adminLoginCard.mfa-on #mfaStep{display:contents}
#adminLoginCard.mfa-on .nl-mfa-badge{order:1;align-self:center;display:inline-flex;align-items:center;justify-content:center;width:60px;height:60px;margin:0 0 14px;border-radius:50%;background:var(--nl-mint);color:var(--nl-teal-d)}
#adminLoginCard.mfa-on #authTitle{order:2;text-align:center;font-size:26px;margin:0;letter-spacing:-.02em}
#adminLoginCard.mfa-on #authSub{order:3;text-align:center;margin:6px 0 20px}
#adminLoginCard.mfa-on #mfaStep .field{order:4;border:0;background:transparent;padding:0;box-shadow:none;display:flex;flex-direction:column;gap:6px;margin:0 0 8px}
#adminLoginCard.mfa-on #mfaStep .field:focus-within{box-shadow:none}
#mfaStepLabel{font-size:13px;font-weight:600;color:var(--nl-muted)}
#adminLoginCard #mfaStepCode{width:100%;height:60px;padding:0 14px;border:1.5px solid var(--nl-field-line);border-radius:14px;background:#fff;color:var(--nl-ink);font:600 24px/1 ui-monospace,Menlo,Consolas,monospace;letter-spacing:.3em;text-align:center}
#adminLoginCard #mfaStepCode::placeholder{color:var(--nl-label);opacity:.6}
#adminLoginCard #mfaStepCode:focus{outline:none;border-color:var(--nl-teal);box-shadow:0 0 0 4px rgba(46,196,182,.18)}
#adminLoginCard #mfaStepCode:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
#adminLoginCard.mfa-on #mfaStepHint{order:5;margin:0 0 16px;font-size:14px;line-height:1.5;text-align:center}
#adminLoginCard.mfa-on #loginMessage{order:6}
#adminLoginCard.mfa-on #mfaStepSubmit{order:7;width:100%;min-height:56px;font-size:16px}
.nl-mfa-back{order:8;align-self:center;display:inline-flex;align-items:center;gap:6px;margin-top:14px;padding:8px 12px;border:0;border-radius:10px;background:transparent;color:var(--nl-teal-d);font:inherit;font-size:15px;font-weight:600;cursor:pointer}
.nl-mfa-back:hover{background:var(--nl-mint)}
.nl-mfa-back:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
@media(max-width:420px){#adminLoginCard #mfaStepCode{font-size:20px;letter-spacing:.2em}}

/* ==========================================================================================================
   SFT-632: forgot-password and reset screens. Same card as sign-in and the two-step screen (SFT-616): a round badge
   (key, envelope, lock, tick, clock), centred title and text, full-width button and a "Back to sign in" text button.
   ========================================================================================================== */
#adminLoginCard:not(.reset-on) .nl-reset-badge{display:none}
#adminLoginCard.reset-on{display:flex;flex-direction:column;font-family:var(--nl-font)}
#adminLoginCard.reset-on .nl-reset-badge{align-self:center;display:inline-flex;align-items:center;justify-content:center;width:60px;height:60px;margin:0 0 14px;border-radius:50%;background:var(--nl-mint);color:var(--nl-teal-d)}
#adminLoginCard.reset-on .nl-reset-badge[data-tone="expired"]{background:#FFF4E5;color:#B45309}
#adminLoginCard.reset-on #authTitle{text-align:center;font-size:26px;margin:0;letter-spacing:-.02em}
#adminLoginCard.reset-on #authSub{text-align:center;margin:6px 0 20px;line-height:1.5}
#adminLoginCard.reset-on #authSub b{color:var(--nl-ink);word-break:break-all}
#adminLoginCard.reset-on .row{display:block}
#adminLoginCard.reset-on #authSubmitBtn{width:100%;min-height:56px;font-size:16px}
.nl-reset-hint{margin:0 0 16px;font-size:14px;line-height:1.5;text-align:center}
#adminLoginCard.reset-on[data-reset="confirm"] .nl-reset-hint{text-align:left;margin-top:-4px}
/* the message sits just above the button, as on the two-step screen */
#adminLoginCard.reset-on .nl-reset-badge{order:1}#adminLoginCard.reset-on #authTitle{order:2}#adminLoginCard.reset-on #authSub{order:3}
#adminLoginCard.reset-on #loginEmailField{order:4}#adminLoginCard.reset-on #loginPasswordField{order:5}#adminLoginCard.reset-on #signupMeterRow{order:6}
#adminLoginCard.reset-on #resetConfirmField{order:7}#adminLoginCard.reset-on .nl-reset-hint{order:8}#adminLoginCard.reset-on #loginMessage{order:9}
#adminLoginCard.reset-on .row{order:10}#adminLoginCard.reset-on .nl-reset-back{order:11;margin-top:10px}
#adminLoginCard.reset-on #loginMessage:not(:empty){margin-bottom:12px}

/* ==========================================================================
   SFT-772: Share menu of a listing in the New Layout (agent property card and publish panel). Layout only: same targets, rules,
   texts and links as SFT-654 (social.js renderShareMenu). A teal Share pill opens a card under it (a bottom sheet on phones):
   TR / EN switch, link preview (display only), targets as icon tiles, the link in a field with Copy link, Copy text, hint.
   ========================================================================== */
.share-menu{position:relative;margin-top:10px}
.share-menu .sh-pill{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:0 14px;border:1px solid var(--nl-teal,#2EC4B6);border-radius:12px;background:#E3F7F4;color:var(--nl-teal-d,#0F7C72);font:inherit;font-size:13.5px;font-weight:800;cursor:pointer;list-style:none;user-select:none}
.share-menu summary.sh-pill::-webkit-details-marker{display:none}
.share-menu .sh-pill:focus-visible{outline:2px solid var(--nl-teal,#2EC4B6);outline-offset:2px}
.share-menu[open]>.sh-pill{background:var(--nl-teal,#2EC4B6);color:var(--nl-navy,#0B1F35)}
.share-menu .sh-ic{width:16px;height:16px;flex:none}
.share-menu.sh-off{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.share-menu.sh-off .sh-pill{border-color:#E1E6EA;background:#F6F8F9;color:#9AA8B3;cursor:not-allowed}
.share-menu .sh-reason{font-size:12.5px;color:#6B7B88}
.share-menu .sh-card{position:absolute;left:0;top:calc(100% + 10px);z-index:60;width:min(400px,calc(100vw - 32px));padding:18px;border-radius:18px;background:#fff;color:var(--nl-ink,#0B1F35);text-align:left;box-shadow:0 30px 60px -20px rgba(6,18,31,.55),0 0 0 1px rgba(11,31,53,.06)}
.share-menu .sh-card::before{content:"";position:absolute;top:-7px;left:24px;width:14px;height:14px;background:#fff;transform:rotate(45deg);border-radius:3px}
.share-menu .sh-grab{display:none}
.share-menu .sh-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}
.share-menu .sh-head b{font-size:16px;font-weight:800}
.share-menu .sh-seg{display:inline-flex;padding:3px;border-radius:10px;background:#EEF2F5}
.share-menu .sh-seg button{min-width:38px;min-height:28px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:#4A5E73;font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.share-menu .sh-seg button.on{background:#fff;color:var(--nl-ink,#0B1F35);box-shadow:0 1px 3px rgba(0,0,0,.14)}
.share-menu .sh-preview{display:grid;grid-template-columns:86px 1fr;margin-bottom:14px;border:1px solid #E1E8EC;border-radius:12px;overflow:hidden}
.share-menu .sh-preview img,.share-menu .sh-noimg{width:86px;height:100%;min-height:66px;object-fit:cover;background:#EEF2F5;display:block}
.share-menu .sh-preview>div{display:flex;flex-direction:column;gap:2px;min-width:0;padding:9px 11px}
.share-menu .sh-preview small{font-size:10.5px;letter-spacing:.04em;text-transform:uppercase;color:#7A8A97;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.share-menu .sh-preview b{font-size:13.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.share-menu .sh-preview span{font-size:11.5px;color:#6B7B88}
.share-menu .sh-native{width:100%;min-height:46px;margin-bottom:12px;border:0;border-radius:12px;background:var(--nl-navy,#0B1F35);color:#fff;font:inherit;font-size:14px;font-weight:800;cursor:pointer}
.share-menu .sh-label{margin:0 0 8px;font-size:11.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#4A5E73}
.share-menu .sh-targets{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin-bottom:14px}
.share-menu .sh-target{display:flex;flex-direction:column;align-items:center;gap:6px;padding:4px 0;border:0;background:none;color:var(--nl-ink,#0B1F35);font:inherit;font-size:11.5px;font-weight:700;cursor:pointer}
.share-menu .sh-target i{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid #E1E8EC;border-radius:14px;background:#F1F5F8;font-style:normal;font-size:15px;font-weight:900}
.share-menu .sh-target:hover i{border-color:var(--nl-teal,#2EC4B6);background:#E3F7F4}
.share-menu .sh-target:focus-visible{outline:2px solid var(--nl-teal,#2EC4B6);outline-offset:2px;border-radius:12px}
.share-menu .sh-link{display:flex;gap:8px;margin-bottom:10px}
.share-menu .sh-url{flex:1;min-width:0;min-height:44px;display:flex;align-items:center;padding:0 11px;border:1px solid #D5DEE3;border-radius:11px;font-size:12px;color:#4A5E73;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;user-select:all}
.share-menu .sh-copy{flex:none;min-height:44px;padding:0 13px;border:0;border-radius:11px;background:var(--nl-teal,#2EC4B6);color:var(--nl-navy,#0B1F35);font:inherit;font-size:13px;font-weight:800;cursor:pointer}
.share-menu .sh-text{width:100%;min-height:44px;margin-bottom:8px;border:1px solid #D5DEE3;border-radius:11px;background:#fff;color:var(--nl-ink,#0B1F35);font:inherit;font-size:13px;font-weight:800;cursor:pointer}
.share-menu .sh-text:disabled{color:#9AA8B3;cursor:not-allowed}
.share-menu .sh-hint{margin:0;font-size:11.5px;line-height:1.45;color:#6B7B88}
@media (max-width:767px){
 .share-menu[open] .sh-card{position:fixed;left:0;right:0;bottom:0;top:auto;width:auto;max-height:88vh;overflow:auto;z-index:9000;padding:10px 16px calc(20px + env(safe-area-inset-bottom));border-radius:22px 22px 0 0;box-shadow:0 0 0 100vmax rgba(6,18,31,.55),0 -12px 30px rgba(0,0,0,.25)}
 .share-menu .sh-card::before{display:none}
 .share-menu .sh-grab{display:block;width:42px;height:4px;margin:0 auto 12px;border-radius:99px;background:#D5DEE3}
 .share-menu .sh-copy,.share-menu .sh-text{min-height:46px}
}

/* ==========================================================================================================
   SFT-637: [14d] the Professional access dialog ("Choose your access", four cards) and the professional sign-in
   dialog in the New Layout: the white modal of the confirm dialog, line icons in mint tiles, a note that the account
   decides. The sign-in card inside the dialog uses the same fields as the Account page (the .pro-signin copies of the
   SFT-614/615 rules above). Behaviour unchanged: proOpenChooser / proOpenSignIn / proGo in shared.js.
   ========================================================================================================== */
body #proAccessDialog,body #proSignInDialog{width:min(580px,calc(100vw - 32px));border:0;border-radius:26px;padding:0;background:#fff;color:var(--nl-ink);box-shadow:var(--nl-shadow-pop);font-family:var(--nl-font)}
body #proSignInDialog{width:min(480px,calc(100vw - 32px))}
body #proAccessDialog::backdrop,body #proSignInDialog::backdrop{background:rgba(3,10,18,.6);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
body :is(#proAccessDialog,#proSignInDialog) .modal-head{padding:24px 24px 0;border:0;align-items:flex-start}
body :is(#proAccessDialog,#proSignInDialog) .modal-close{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--nl-option-hover);color:var(--nl-ink);font-size:20px;line-height:1}
body :is(#proAccessDialog,#proSignInDialog) .modal-close:hover{background:var(--nl-line)}
body :is(#proAccessDialog,#proSignInDialog) .modal-close:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
#proAccessDialog .pro-eyebrow,body #proSignInDialog #proSignInEyebrow{display:block;margin:0;font-size:var(--nl-eyebrow);font-weight:800;letter-spacing:.08em;color:var(--nl-teal-d);align-self:center}
#proAccessDialog #proAccessTitle{margin:6px 0 4px;font-size:24px;line-height:1.2;letter-spacing:-.02em;color:var(--nl-ink)}
#proAccessDialog #proAccessSub{margin:0;color:var(--nl-muted);font-size:15px}
#proAccessDialog .modal-body{padding:20px 24px 24px}
#proAccessDialog #proRoleOptions{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#proRoleOptions .role-option{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-height:156px;padding:18px;border:1.5px solid var(--nl-field-line);border-radius:18px;background:#fff;color:var(--nl-ink);font-family:var(--nl-font);transition:border-color .2s,background-color .2s,transform .16s var(--nl-ease-out)}
#proRoleOptions .role-option:hover{border-color:var(--nl-teal);background:#F7FDFC}
#proRoleOptions .role-option:active{transform:scale(.98)}
#proRoleOptions .role-option:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
#proRoleOptions .role-option-icon{display:grid;place-items:center;width:44px;height:44px;margin-bottom:8px;border-radius:12px;background:var(--nl-mint);color:var(--nl-teal-d)}
#proRoleOptions .role-option strong{margin:0;padding-right:20px;font-size:16px;font-weight:700;line-height:1.3}
#proRoleOptions .role-option-sub{color:var(--nl-muted);font-size:13px;line-height:1.45}
#proRoleOptions .pro-go{position:absolute;top:20px;right:16px;color:var(--nl-label);transition:transform .2s var(--nl-ease-out),color .2s}
#proRoleOptions .role-option:is(:hover,:focus-visible) .pro-go{color:var(--nl-teal-d);transform:translateX(3px)}
#proAccessDialog .pro-note{display:flex;align-items:flex-start;gap:8px;margin:16px 0 0;color:var(--nl-muted);font-size:13px;line-height:1.45}
#proAccessDialog .pro-note svg{flex:none;margin-top:1px;color:var(--nl-teal-d)}
/* the sign-in card sits in the dialog without its own frame */
body #proSignInDialog .modal-body{padding:8px 24px 24px}
body #proSignInDialog #adminLoginCard{width:100%;max-width:none;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
@media(prefers-reduced-motion:reduce){#proRoleOptions .role-option,#proRoleOptions .pro-go{transition:none}}
@media(max-width:767px){
  body :is(#proAccessDialog,#proSignInDialog) .modal-head{padding:20px 20px 0}
  #proAccessDialog .modal-body,body #proSignInDialog .modal-body{padding:16px 20px calc(24px + env(safe-area-inset-bottom))}
  #proAccessDialog #proRoleOptions{grid-template-columns:1fr;gap:10px}
  #proRoleOptions .role-option{min-height:0;display:grid;grid-template-columns:44px 1fr;column-gap:14px;row-gap:2px;align-items:center;padding:14px 40px 14px 14px}
  #proRoleOptions .role-option-icon{grid-row:span 2;margin:0}
  #proRoleOptions .role-option strong{padding:0;align-self:end}
  #proRoleOptions .role-option-sub{align-self:start}
  #proRoleOptions .pro-go{top:50%;margin-top:-9px}
}

/* ==========================================================================================================
   SFT-643: [14e] My account in the New Layout: a profile card (initials, name, email, role, Sign out), the
   two-step sign-in card with a shield tile and an On / Off / Required status, and the Your data card with a
   download tile. Layout only: renderAuthCore (admin.js), acctRender / mfaRender / renderPrivacyCards
   (buyer-workspace.js) keep doing what they did.
   ========================================================================================================== */
#admin .acct-card{padding:24px}
#adminPanelCard.acct-card:not(.hidden){display:flex;align-items:center;justify-content:space-between;gap:16px 20px;flex-wrap:wrap}
#adminPanelCard .acct-who{display:flex;align-items:center;gap:16px;min-width:0;flex:1 1 280px}
#adminPanelCard .acct-avatar{flex:none;display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:var(--nl-navy);color:var(--nl-teal);font-size:22px;font-weight:800;letter-spacing:.02em}
#adminPanelCard .acct-id{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
#adminPanelCard .acct-eyebrow{margin:0 0 2px;font-size:var(--nl-eyebrow);font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--nl-teal-d)}
#adminPanelCard .acct-name{font-size:22px;line-height:1.2;font-weight:800;letter-spacing:-.01em;color:var(--nl-ink);overflow-wrap:anywhere}
#adminPanelCard #adminWho{font-size:14px;color:var(--nl-muted);overflow-wrap:anywhere}
#adminPanelCard .acct-role{margin-top:8px;padding:3px 10px;border-radius:var(--nl-r-pill);background:var(--nl-mint);color:var(--nl-teal-d);font-size:12px;font-weight:700}
#admin .acct-signout{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 18px;border-radius:var(--nl-r-sm);font-weight:700}
#admin .acct-head{display:flex;align-items:flex-start;gap:14px}
#admin .acct-icon{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--nl-mint);color:var(--nl-teal-d)}
#admin .acct-head-text{flex:1;min-width:0;align-self:center}
#admin .acct-head h2{margin:0;font-size:19px;line-height:1.3;color:var(--nl-ink)}
#admin .acct-head p{margin:4px 0 0;font-size:14px;line-height:1.5}
#admin .acct-pill{flex:none;align-self:center;padding:4px 11px;border-radius:var(--nl-r-pill);background:var(--nl-option-hover);color:var(--nl-muted);font-size:12.5px;font-weight:700}
#admin .acct-pill[data-state="on"]{background:var(--nl-mint);color:var(--nl-teal-d)}
#admin .acct-pill[data-state="due"]{background:#FCEBDB;color:#8A4A0C}
#admin .acct-action{flex:none;align-self:center;min-height:44px;padding:0 18px;border-radius:var(--nl-r-sm);font-weight:700}
/* the card's content lines up with the title, not the icon */
#admin .acct-body{margin-left:58px}
#admin .acct-body:empty{display:none}
#mfaBody>p:first-child{margin-top:10px!important}
#mfaBody .field{max-width:360px;border-radius:var(--nl-r-sm)}
#mfaBody .btn{min-height:44px;border-radius:var(--nl-r-sm);font-weight:700}
#mfaBody ol{color:var(--nl-ink)}
#mfaBody .mfa-qr{border-color:var(--nl-line);border-radius:var(--nl-r-md)}
#mfaBody .mfa-codes{max-width:420px;border-color:var(--nl-line);background:#F6F9FA}
#admin #mfaMessage>*,#admin #privacyMessage>*{margin-top:12px}
@media(max-width:767px){
  #admin .acct-card{padding:18px}
  #adminPanelCard .acct-avatar{width:52px;height:52px;font-size:19px}
  #adminPanelCard .acct-name{font-size:19px}
  #admin .acct-signout{width:100%;justify-content:center}
  #admin .acct-body{margin-left:0}
  #admin .acct-head-action{flex-wrap:wrap}
  #admin .acct-head-action .acct-head-text{flex:1 1 calc(100% - 58px)}
  #admin .acct-head-action .acct-action{width:100%}
  #mfaBody .field{max-width:none}
}

/* ==========================================================================================================
   SFT-712: [14f] the Connected accounts card in the New Layout, in the same style as the SFT-643 account
   cards: a link tile, the title, a status pill for the Facebook Page (Connected / Needs reconnecting / Not
   connected), and each account (the Page, the linked Instagram account) as a row with a logo tile, the name,
   its details and its buttons. Layout only: social.js keeps the states, texts and calls of SFT-651 / SFT-655.
   ========================================================================================================== */
#socialBody>.soc-note{margin:12px 0 10px;font-size:14px}
#socialBody .soc-btn{min-height:44px;padding:0 18px;border-radius:var(--nl-r-sm);font-weight:700;white-space:nowrap}
#socialBody .soc-connect{display:inline-flex;align-items:center;gap:10px;margin-top:14px;padding-left:10px}
#socialBody .soc-hint{margin:8px 0 0;font-size:13px;line-height:1.5}
#socialBody .soc-logo{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;font-weight:800;font-size:15px;letter-spacing:.02em}
#socialBody .soc-fb{background:var(--nl-blue);color:#fff;font-size:20px;font-family:Georgia,serif}
#socialBody .soc-ig{background:var(--nl-navy);color:var(--nl-teal)}
#socialBody .soc-off{background:var(--nl-option-hover);color:var(--nl-dim)}
#socialBody .soc-connect .soc-logo{width:28px;height:28px;border-radius:8px;font-size:16px}
#socialBody .soc-acct{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:12px;padding:14px 16px;border:1px solid var(--nl-line);border-radius:var(--nl-r-md);background:#fff}
#socialBody .soc-acct+.soc-acct{margin-top:10px}
#socialBody .soc-info{flex:1 1 220px;min-width:0;display:flex;flex-direction:column;gap:3px}
#socialBody .soc-info b{font-size:16px;color:var(--nl-ink);overflow-wrap:anywhere}
#socialBody .soc-meta{font-size:13px;line-height:1.5;color:var(--nl-muted)}
#socialBody .soc-status{font-weight:700;color:#8A4A0C}
#socialBody .soc-status.ok{color:var(--nl-teal-d)}
#socialBody .soc-reason{margin-top:4px;padding:8px 10px;border-radius:var(--nl-r-xs);background:#FCEBDB;color:#8A4A0C;font-size:13px;line-height:1.5}
#socialBody .soc-row-btns{display:flex;gap:8px;flex-wrap:wrap}
#socialBody .soc-pick{margin:12px 0 0;padding:0;border:0;display:flex;flex-direction:column;gap:8px;max-width:520px}
#socialBody .soc-pick legend{padding:0;margin-bottom:8px;font-weight:700;color:var(--nl-ink)}
#socialBody .soc-opt{display:flex;align-items:center;gap:12px;min-height:56px;padding:8px 14px;border:1px solid var(--nl-line);border-radius:var(--nl-r-md);background:#fff;cursor:pointer;color:var(--nl-ink);font-weight:600}
#socialBody .soc-opt:hover{background:var(--nl-option-hover)}
#socialBody .soc-opt:has(input:checked){border-color:var(--nl-teal);box-shadow:0 0 0 1px var(--nl-teal);background:#F4FCFB}
#socialBody .soc-opt input{width:18px;height:18px;margin:0;accent-color:var(--nl-teal-d)}
#socialBody .soc-opt .soc-logo{width:32px;height:32px;border-radius:9px;font-size:17px}
#socialBody .soc-pick+.soc-row-btns{margin-top:14px}
#admin #socialMessage>*{margin-top:12px}
@media(max-width:767px){
  /* the pill goes under the title, so the long "Needs reconnecting" does not squeeze the text */
  #socialCard .acct-head{flex-wrap:wrap}
  #socialCard .acct-head-text{flex:1 1 calc(100% - 58px)}
  #socialCard .acct-pill{margin-left:58px}
  #socialBody .soc-acct{padding:12px}
  #socialBody .soc-row-btns{width:100%}
  #socialBody .soc-row-btns .soc-btn,#socialBody .soc-connect{flex:1 1 auto;justify-content:center;width:100%}
}

/* ==========================================================================================================
   SFT-644: [13b] Request agent access and the admin's Agent access requests in the New Layout, in the same
   style as the SFT-643 / SFT-712 account cards: a person tile, the title, a status pill (Under review /
   Approved / Rejected / Removed on the buyer's card, the pending count on the admin's), the message as a
   quote, and each request as a row with initials, name, email, date and Approve / Reject. Layout only:
   renderAgentAccess (agent.js) and renderAdminAgentRequests (admin.js) keep the live texts, rules and calls.
   ========================================================================================================== */
#admin .acct-pill[data-state="no"]{background:#FBE4E8;color:#A3293E}
#agentAccessStatus>.notice,#agentAccessStatus>.error{margin-top:12px}
#admin .aa-quote{margin:10px 0 0;padding:10px 14px;border-left:3px solid var(--nl-teal);border-radius:0 var(--nl-r-xs) var(--nl-r-xs) 0;background:#F6F9FA;color:var(--nl-ink);font-size:14px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
#agentAccessStatus .aa-again{margin:10px 0 0;font-size:14px}
#agentAccessForm{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:14px}
#agentAccessForm .aa-label{font-size:14px;font-weight:700;color:var(--nl-ink)}
#agentAccessForm .aa-input{width:100%;max-width:560px;min-height:96px;padding:12px 14px;border:1px solid var(--nl-field-line);border-radius:var(--nl-r-sm);background:#fff;color:var(--nl-ink);font:inherit;font-size:15px;line-height:1.5;resize:vertical}
#agentAccessForm .aa-input:focus{outline:none;border-color:var(--nl-teal);box-shadow:0 0 0 3px rgba(46,196,182,.25)}
#admin .aa-btn{min-height:44px;padding:0 18px;border-radius:var(--nl-r-sm);font-weight:700;white-space:nowrap}
#agentAccessForm .aa-btn{margin-top:4px}
#admin #agentAccessNotice>*{margin-top:12px}
#adminAgentRequestsList{margin-top:4px}
#adminAgentRequestsList .aa-req{display:flex;align-items:flex-start;gap:14px;flex-wrap:wrap;margin-top:12px;padding:14px 16px;border:1px solid var(--nl-line);border-radius:var(--nl-r-md);background:#fff}
#adminAgentRequestsList .aa-avatar{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--nl-navy);color:var(--nl-teal);font-size:14px;font-weight:800;letter-spacing:.02em}
#adminAgentRequestsList .aa-info{flex:1 1 260px;min-width:0;display:flex;flex-direction:column;gap:2px}
#adminAgentRequestsList .aa-info b{font-size:16px;color:var(--nl-ink);overflow-wrap:anywhere}
#adminAgentRequestsList .aa-meta{font-size:13px;line-height:1.5;color:var(--nl-muted);overflow-wrap:anywhere}
#adminAgentRequestsList .aa-quote{margin-top:8px}
#adminAgentRequestsList .aa-btns{display:flex;gap:8px;flex-wrap:wrap;align-self:center}
#adminAgentRequestsList .empty-state{margin-top:12px}
@media(max-width:767px){
  #agentAccessCard .acct-head,#adminAgentRequestsCard .acct-head{flex-wrap:wrap}
  #agentAccessCard .acct-head-text,#adminAgentRequestsCard .acct-head-text{flex:1 1 calc(100% - 58px)}
  #agentAccessCard .acct-pill,#adminAgentRequestsCard .acct-pill{margin-left:58px}
  #agentAccessForm{align-items:stretch}
  #agentAccessForm .aa-input{max-width:none}
  #adminAgentRequestsList .aa-req{padding:12px}
  #adminAgentRequestsList .aa-btns{width:100%}
  #adminAgentRequestsList .aa-btns .aa-btn{flex:1 1 0}
}

/* ==========================================================================================================
   SFT-617: [16] the management (admin) area in the New Layout, in the same style as the SFT-643 / SFT-644
   account cards: every section gets an icon tile, a title with a short line under it and (where it has one) a
   status pill or its action button. Admin access requests, Users, Activity log, Scheduled owner reports, Media
   storage, Journey analytics, Backup period, What owners can see, Owner risk rules and Property type templates.
   Users and templates are rows with initials / tags; settings end in a Save row. Layout only: the render
   functions (admin.js, owner.js) keep their live texts, rules, confirmations and API calls. House style,
   adverts, publishing failures, data retention cleanup and moving recordings follow in SFT-646.
   ========================================================================================================== */
#admin .adm-input{min-height:44px;padding:0 14px;border:1px solid var(--nl-field-line);border-radius:var(--nl-r-sm);background:#fff;color:var(--nl-ink);font:inherit;font-size:15px;min-width:0}
#admin .adm-input:focus{outline:none;border-color:var(--nl-teal);box-shadow:0 0 0 3px rgba(46,196,182,.25)}
#admin .adm-msg>*{margin-top:12px}
#admin .adm-msg:empty{display:none}
#admin .adm-updated{font-size:13px;color:var(--nl-muted)}
#admin .adm-updated:empty{display:none}
#admin .adm-foot{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:16px}
#admin .adm-foot .btn{min-height:44px;padding:0 18px;border-radius:var(--nl-r-sm);font-weight:700}
#admin .adm-note{margin:12px 0 0;font-size:14px}
#admin .adm-status{margin:12px 0 0;padding:10px 14px;border-radius:var(--nl-r-xs);background:#F6F9FA;color:var(--nl-ink);font-size:14px;line-height:1.55}
#admin .adm-status:empty{display:none}
#adminBackupCard #backupUpdated{display:block;margin-top:8px}
#adminBackupCard #backupValue{width:120px}
#admin .adm-tags{display:flex;flex-wrap:wrap;gap:6px}
#admin .adm-tag{display:inline-flex;align-items:center;padding:3px 10px;border-radius:var(--nl-r-pill);background:var(--nl-option-hover);color:var(--nl-muted);font-size:12px;font-weight:700;line-height:1.4;overflow-wrap:anywhere}
#admin .adm-tag[data-user-status="active"],#admin .adm-tag[data-mfa-on],#admin .adm-tag.req{background:var(--nl-mint);color:var(--nl-teal-d)}
#admin .adm-tag[data-user-status="disabled"],#admin .adm-tag[data-user-status="locked"]{background:#FBE4E8;color:#A3293E}
#admin .adm-tag[data-super-admin]{background:#EEE8FB;color:#5B3FB0}
#admin .adm-tag[data-you]{background:var(--nl-navy);color:var(--nl-teal)}
#admin .adm-btns{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#admin .adm-btns .btn,#admin .adm-btns select{min-height:44px;padding:0 14px;border-radius:var(--nl-r-sm);font-size:14px;font-weight:700;white-space:nowrap}
#admin .adm-btns select{border:1px solid var(--nl-field-line)!important;border-radius:var(--nl-r-sm)!important;background:#fff!important;color:var(--nl-ink);padding:0 10px!important}
#admin .adm-pager{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px}
#admin .adm-pager:empty{display:none}
#admin .adm-pager .btn{min-height:44px;padding:0 14px;border-radius:var(--nl-r-sm);font-size:14px;font-weight:700}
#admin .acct-body>.empty-state,#admin #auditList>.empty-state{margin-top:12px}
/* the request rows of SFT-644 are reused for the admin access requests */
#adminAccessRequestsList{margin-top:4px}
#adminAccessRequestsList .aa-req{display:flex;align-items:flex-start;gap:14px;flex-wrap:wrap;margin-top:12px;padding:14px 16px;border:1px solid var(--nl-line);border-radius:var(--nl-r-md);background:#fff}
#admin .aa-avatar{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--nl-navy);color:var(--nl-teal);font-size:14px;font-weight:800;letter-spacing:.02em}
#adminAccessRequestsList .aa-info{flex:1 1 260px;min-width:0;display:flex;flex-direction:column;gap:2px}
#adminAccessRequestsList .aa-info b{font-size:16px;color:var(--nl-ink);overflow-wrap:anywhere}
#adminAccessRequestsList .aa-meta{font-size:13px;line-height:1.5;color:var(--nl-muted);overflow-wrap:anywhere}
#adminAccessRequestsList .aa-quote{margin-top:8px}
#adminAccessRequestsList .aa-btns{display:flex;gap:8px;flex-wrap:wrap;align-self:center}
/* Users */
#admin .adm-tools{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
#admin .adm-search{position:relative;flex:1 1 260px;display:flex}
#admin .adm-search svg{position:absolute;left:14px;top:50%;margin-top:-9px;color:var(--nl-dim);pointer-events:none}
#admin .adm-search .adm-input{width:100%;padding-left:42px}
#admin .adm-tools select.adm-input{flex:0 1 180px;padding-right:10px}
#admin .adm-user{margin-top:12px;padding:14px 16px;border:1px solid var(--nl-line);border-radius:var(--nl-r-md);background:#fff}
#admin .adm-user.off{background:#F6F9FA}
#admin .adm-user.off .aa-avatar{background:var(--nl-option-hover);color:var(--nl-dim)}
#admin .adm-user-main{display:flex;align-items:flex-start;gap:14px}
#admin .adm-user-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
#admin .adm-user-info b{font-size:16px;line-height:1.35;color:var(--nl-ink);overflow-wrap:anywhere}
#admin .adm-user-info .adm-tags{margin:4px 0 2px}
#admin .adm-meta{font-size:13px;line-height:1.5;color:var(--nl-muted);overflow-wrap:anywhere}
/* the buttons and the activity table line up with the name, not the initials */
#admin .adm-user>.adm-btns{margin:12px 0 0 54px}
#admin .adm-user [data-user-activity-panel]{margin:12px 0 0 54px!important;padding-top:10px!important;border-top:1px solid var(--nl-line)!important}
#admin .adm-user [data-user-activity-panel] table{width:100%;font-size:13px;color:var(--nl-ink)}
#admin .adm-user [data-user-activity-panel] th{padding:6px 8px 6px 0;font-size:11.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--nl-label);border-bottom:1px solid var(--nl-line)}
#admin .adm-user [data-user-activity-panel] td{padding:6px 8px 6px 0!important;border-bottom:1px solid #F0F4F6;vertical-align:top}
#admin .adm-user [data-user-activity-panel] code{font-size:12px;padding:1px 6px;border-radius:6px;background:var(--nl-option-hover)}
/* Activity log */
#admin #adminAuditCard .au-filters{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;margin-top:16px}
#admin #adminAuditCard .au-filters label{gap:6px;font-size:12px;font-weight:700;color:var(--nl-muted)}
#admin #adminAuditCard .au-filters input,#admin #adminAuditCard .au-filters select{min-height:44px;padding:0 12px;border:1px solid var(--nl-field-line);border-radius:var(--nl-r-sm);background:#fff;color:var(--nl-ink);font-size:15px;font-weight:400}
#admin #adminAuditCard .au-filters input:focus,#admin #adminAuditCard .au-filters select:focus{outline:none;border-color:var(--nl-teal);box-shadow:0 0 0 3px rgba(46,196,182,.25)}
#adminAuditCard #auditList{margin-top:4px}
#admin #adminAuditCard .au-event,#admin #adminAuditCard .au-event:first-child{margin-top:10px;padding:12px 14px;border:1px solid var(--nl-line);border-radius:var(--nl-r-md);background:#fff;color:var(--nl-ink);font-size:14px;line-height:1.5}
#admin #adminAuditCard .au-head b{font-size:15px}
#admin #adminAuditCard .au-outcome{padding:3px 10px;background:var(--nl-mint);color:var(--nl-teal-d)}
#admin #adminAuditCard .au-outcome[data-outcome=failure],#admin #adminAuditCard .au-outcome[data-outcome=denied]{background:#FBE4E8;color:#A3293E}
#admin #adminAuditCard .au-meta{color:var(--nl-muted)}
#admin #adminAuditCard .au-meta code{font-size:12px;padding:1px 6px;border-radius:6px;background:var(--nl-option-hover)}
#adminAuditCard #auditList>.muted{margin:12px 0 0}
/* Media storage: each setting is a small tile */
#admin #mediaList{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px;margin-top:14px}
#admin #mediaList .media-row{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border:1px solid var(--nl-line);border-radius:var(--nl-r-md);background:#F6F9FA}
#admin #mediaList .media-row dt{font-size:11.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--nl-label)}
#admin #mediaList .media-row dd{font-size:15px;font-weight:600;color:var(--nl-ink)}
#admin #mediaList>.empty-state,#admin #mediaList>.error{grid-column:1/-1}
/* Journey analytics: the on/off box becomes a switch (still a checkbox, so keyboard and screen readers work) */
#admin .adm-switch{position:relative;display:inline-flex;align-items:center;gap:12px;margin-top:16px;min-height:44px;cursor:pointer;color:var(--nl-ink);font-weight:600}
#admin .adm-switch input{position:absolute;opacity:0;width:44px;height:26px;margin:0;cursor:pointer}
#admin .adm-switch-track{flex:none;position:relative;width:44px;height:26px;border-radius:var(--nl-r-pill);background:#C3CFD7;transition:background-color .18s}
#admin .adm-switch-track::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(11,31,53,.3);transition:transform .18s var(--nl-ease-out)}
#admin .adm-switch input:checked+.adm-switch-track{background:var(--nl-teal-d)}
#admin .adm-switch input:checked+.adm-switch-track::after{transform:translateX(18px)}
#admin .adm-switch input:focus-visible+.adm-switch-track{box-shadow:0 0 0 3px rgba(46,196,182,.45)}
/* What owners can see */
#admin #adminVisibilityCard .vis-list{gap:8px;margin-top:16px}
#admin #adminVisibilityCard .vis-item{align-items:center;min-height:48px;padding:10px 14px;border:1px solid var(--nl-line);border-radius:var(--nl-r-sm);background:#fff;color:var(--nl-ink);font-size:14px;line-height:1.45}
#admin #adminVisibilityCard .vis-item:not(.off):hover{background:var(--nl-option-hover)}
#admin #adminVisibilityCard .vis-item:has(input:checked){border-color:#BFE9E4;background:#F4FCFB}
#admin #adminVisibilityCard .vis-item input{width:18px;height:18px;margin:0;accent-color:var(--nl-teal-d)}
#admin #adminVisibilityCard .vis-item.child{margin-left:28px}
/* Owner risk rules */
#admin #adminRiskCard .risk-grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));margin-top:16px}
#admin #adminRiskCard .risk-row{grid-template-columns:minmax(0,1fr) 104px;gap:12px;padding:12px 14px;border:1px solid var(--nl-line);border-radius:var(--nl-r-sm);background:#fff;color:var(--nl-ink)}
#admin #adminRiskCard .risk-row small{margin-top:3px}
#admin #adminRiskCard .risk-row input{min-height:44px;padding:0 12px;border:1px solid var(--nl-field-line);border-radius:var(--nl-r-sm);font-size:15px;color:var(--nl-ink)}
#admin #adminRiskCard .risk-row input:focus{outline:none;border-color:var(--nl-teal);box-shadow:0 0 0 3px rgba(46,196,182,.25)}
/* Property type templates */
#admin .adm-row{margin-top:12px;padding:14px 16px;border:1px solid var(--nl-line);border-radius:var(--nl-r-md);background:#fff}
#admin .adm-row-head{display:flex;justify-content:space-between;align-items:center;gap:10px 14px;flex-wrap:wrap}
#admin .adm-row-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}
#admin .adm-row-title b{font-size:16px;color:var(--nl-ink);overflow-wrap:anywhere}
#admin .adm-code{padding:2px 8px;border-radius:6px;background:var(--nl-option-hover);color:var(--nl-muted);font-size:12px}
#admin .adm-row>.adm-tags{margin-top:10px}
#admin #templateFormWrap>.card{margin-top:14px!important;padding:16px;border:1px solid var(--nl-line);border-radius:var(--nl-r-md);background:#F6F9FA!important;box-shadow:none}
#admin #templateFormWrap .field{padding:8px 14px;border:1px solid var(--nl-field-line);border-radius:var(--nl-r-sm);background:#fff}
#admin #templateFormWrap .field:focus-within{border-color:var(--nl-teal);box-shadow:0 0 0 3px rgba(46,196,182,.25)}
#admin #templateFormWrap .field small{display:block;font-size:12px;font-weight:700;color:var(--nl-muted)}
#admin #templateFormWrap .field{padding-top:6px;padding-bottom:2px}
#admin #templateFormWrap .field input{color:var(--nl-ink)}
#admin #tplFieldsGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:0 18px}
#admin #tplFieldsGrid>label{display:flex!important;width:100%;color:var(--nl-ink);border-top-color:var(--nl-line)!important}
#admin #tplFieldsGrid input[type=checkbox]{width:18px;height:18px;margin:0;accent-color:var(--nl-teal-d)}
#admin #templateFormWrap .field input:focus{outline:none}
#admin #templateFormWrap .btn{min-height:44px;padding:0 18px;border-radius:var(--nl-r-sm);font-weight:700}
@media(max-width:767px){
  #adminAccessRequestsCard .acct-head,#adminUsersCard .acct-head,#adminUxCard .acct-head{flex-wrap:wrap}
  #adminAccessRequestsCard .acct-head-text,#adminUsersCard .acct-head-text,#adminUxCard .acct-head-text{flex:1 1 calc(100% - 58px)}
  #adminAccessRequestsCard .acct-pill,#adminUsersCard .acct-pill,#adminUxCard .acct-pill{margin-left:58px}
  #adminAccessRequestsList .aa-req,#admin .adm-user,#admin .adm-row{padding:12px}
  #adminAccessRequestsList .aa-btns{width:100%}
  #adminAccessRequestsList .aa-btns .aa-btn{flex:1 1 0}
  #admin .adm-tools select.adm-input{flex:1 1 calc(50% - 5px)}
  #admin .adm-user>.adm-btns,#admin .adm-user [data-user-activity-panel]{margin-left:0!important}
  #admin .adm-user>.adm-btns .btn,#admin .adm-user>.adm-btns select{flex:1 1 auto}
  #admin .adm-row .adm-btns{width:100%}
  #admin .adm-row .adm-btns .btn{flex:1 1 0}
  #admin #adminRiskCard .risk-grid{grid-template-columns:1fr}
  #admin .adm-foot .btn{flex:1 1 auto}
}

/* ==========================================================================================================
   SFT-646: [16b] admin extras in the same account-card style as SFT-617: moving voice recordings, data
   retention clean-up, house style, advert templates (list and editor) and publishing failures. The browsing
   analytics switch was already done in SFT-617. Layout only, except that the two destructive runs (clean-up,
   moving recordings) now ask "Are you sure?" in the page first; texts, results and API calls are unchanged.
   ========================================================================================================== */
/* house style: the text box and a Custom / Default pill */
#admin .adm-textarea{display:block;width:100%;min-height:120px;margin-top:16px;padding:12px 14px;border:1px solid var(--nl-field-line);border-radius:var(--nl-r-sm);background:#fff;color:var(--nl-ink);font:inherit;font-size:15px;line-height:1.55;resize:vertical;box-sizing:border-box}
#admin .adm-textarea:focus{outline:none;border-color:var(--nl-teal);box-shadow:0 0 0 3px rgba(46,196,182,.25)}
/* advert templates: each channel is a row; an off channel is greyed */
#admin .adm-meta-line{display:block;margin-top:14px}
#admin #adminAdvertCard .adv-row.off{background:#F6F9FA}
#admin #adminAdvertCard .adv-row.off .adm-row-title b{color:var(--nl-muted)}
#admin #adminAdvertCard .adv-info{flex:1 1 280px;min-width:0;display:flex;flex-direction:column;gap:6px}
#admin #adminAdvertCard .adm-tag[data-advert-state="on"]{background:var(--nl-mint);color:var(--nl-teal-d)}
#admin #adminAdvertCard .adm-tag[data-advert-state="off"]{background:#FBE4E8;color:#A3293E}
/* the editor is a light panel in the card with the same fields and tap sizes as the rest of the admin area */
#admin #adminAdvertCard .adv-edit{margin-top:14px;padding:18px;border:1px solid var(--nl-line);border-radius:var(--nl-r-md);background:#F6F9FA;color:var(--nl-ink)}
#admin #adminAdvertCard .adv-edit h3{margin:22px 0 6px;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--nl-teal-d)}
#admin #adminAdvertCard .adv-edit h3:first-child{margin-top:0}
#admin #adminAdvertCard .adv-edit small.muted{display:block;margin-bottom:6px;color:var(--nl-muted)}
#admin #adminAdvertCard .adv-grid label,#admin #adminAdvertCard .adv-limit label{font-size:12.5px;font-weight:700;color:var(--nl-muted)}
#admin #adminAdvertCard .adv-edit input[type=text],#admin #adminAdvertCard .adv-edit input[type=number],#admin #adminAdvertCard .adv-edit select,#admin #adminAdvertCard .adv-edit textarea{min-height:44px;padding:0 12px;border:1px solid var(--nl-field-line);border-radius:var(--nl-r-sm);background:#fff;color:var(--nl-ink);font-family:inherit;font-size:15px;font-weight:400}
#admin #adminAdvertCard .adv-edit textarea{padding:10px 12px;line-height:1.5}
#admin #adminAdvertCard .adv-edit input:focus,#admin #adminAdvertCard .adv-edit select:focus,#admin #adminAdvertCard .adv-edit textarea:focus{outline:none;border-color:var(--nl-teal);box-shadow:0 0 0 3px rgba(46,196,182,.25)}
#admin #adminAdvertCard .adv-edit input[type=checkbox]{width:18px;height:18px;margin:0;accent-color:var(--nl-teal-d)}
#admin #adminAdvertCard .adv-block,#admin #adminAdvertCard .adv-limit{min-height:52px;padding:4px 0;border-top:1px solid var(--nl-line);color:var(--nl-ink)}
#admin #adminAdvertCard .adv-block .btn{min-width:44px;min-height:44px;padding:0 12px;border-radius:var(--nl-r-sm)}
#admin #adminAdvertCard .adv-fields label,#admin #adminAdvertCard label.adv-check{min-height:44px;color:var(--nl-ink);font-weight:500}
#admin #adminAdvertCard .adv-swatch{width:28px;height:28px;border-radius:8px;border-color:var(--nl-field-line)}
#admin #adminAdvertCard .adv-actions{margin-top:20px}
#admin #adminAdvertCard .adv-actions .btn{min-height:44px;padding:0 18px;border-radius:var(--nl-r-sm);font-weight:700}
/* publishing failures: the summary box changes colour; failing and take-down rows match the other admin rows */
#admin #adminPublishCard #pubFailSummary{margin-top:16px}
#admin #adminPublishCard #pubFailSummary[data-state="ok"]{background:var(--nl-mint);color:var(--nl-teal-d);font-weight:600}
#admin #adminPublishCard #pubFailSummary[data-state="fail"]{background:#FBE4E8;color:#A3293E;font-weight:600}
#admin #adminPublishCard #pubFailSummary[data-state="due"]{background:#FCEBDB;color:#8A4A0C;font-weight:600}
#admin #adminPublishCard .pf-row{align-items:center;gap:10px 14px;margin-top:12px;padding:14px 16px;border:1px solid #F3C6CE;border-left:4px solid #C2364F;border-radius:var(--nl-r-md);background:#fff;color:var(--nl-ink)}
#admin #adminPublishCard .pf-row.manual{border-color:#F2D3B3;border-left-color:#D9822B;background:#fff}
#admin #adminPublishCard .pf-main b{font-size:16px;color:var(--nl-ink)}
#admin #adminPublishCard .pf-main .pill{margin:0 0 0 6px;padding:3px 10px;border-radius:var(--nl-r-pill);background:var(--nl-option-hover);color:var(--nl-muted);font-size:12px;font-weight:700}
#admin #adminPublishCard .pf-main .pill.pb-manual{background:#FCEBDB;color:#8A4A0C}
#admin #adminPublishCard .pf-main small{font-size:13px;line-height:1.5;color:var(--nl-muted)}
#admin #adminPublishCard .pf-reason{margin-top:8px;padding:8px 12px;border-radius:var(--nl-r-xs);background:#FDF2F4;color:#A3293E;font-size:14px;line-height:1.5}
#admin #adminPublishCard .pf-row.manual .pf-reason{background:#FDF6EE;color:#8A4A0C}
#admin #adminPublishCard .pf-actions .btn{min-height:44px;padding:0 14px;border-radius:var(--nl-r-sm);font-size:14px;font-weight:700;white-space:nowrap}
#admin #adminPublishCard .pf-sub{margin:22px 0 0;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--nl-label)}
@media(max-width:767px){
  #admin #adminHouseStyleCard .acct-head{flex-wrap:wrap}
  #admin #adminHouseStyleCard .acct-head-text{flex:1 1 calc(100% - 58px)}
  #admin #adminHouseStyleCard .acct-pill{margin-left:58px}
  #admin #adminAdvertCard .adv-edit{padding:14px}
  #admin #adminAdvertCard .adv-actions .btn{flex:1 1 auto}
  #admin #adminPublishCard .pf-row{padding:12px}
  #admin #adminPublishCard .pf-actions{width:100%}
  #admin #adminPublishCard .pf-actions .btn{flex:1 1 0}
}

/* ==========================================================================================================
   SFT-640: [10c] buyer browse listings and filters (epic SFT-601). Design draft v2 on the story, approved by Siros EJ.
   A wide white panel opened from "Filters": filters in a left column, the count, the filters in use (each with an x) and
   the sort in one bar, "Add these to my search" as a banner, results as listing cards, "Show more homes". On a phone the
   filters are a bottom sheet behind a "Filters" button. Layout only: the same filters, sort options and results as before
   ("Bedrooms (at least)" stays; the Turkish room list of the draft needs a server change and is not part of this).
   ========================================================================================================== */
body #byBrowseDialog{padding:0;border:0;background:#fff;color:var(--nl-ink);overflow:hidden;font-family:var(--nl-font);--ink:var(--nl-ink);--muted-text:var(--nl-muted)}
body #byBrowseDialog[open]{display:flex;flex-direction:column}
body #byBrowseDialog :focus-visible{outline:2px solid var(--nl-teal-d);outline-offset:2px}
body #byBrowseDialog .by-browse-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 24px;border-bottom:1px solid var(--nl-line)}
body #byBrowseDialog .by-browse-head h3{margin:0;font-size:22px;font-weight:800;letter-spacing:-.02em;color:var(--nl-ink)}
body #byBrowseDialog .by-browse-head p{margin:2px 0 0;font-size:13.5px;color:var(--nl-muted)}
body #byBrowseDialog .by-browse-x{flex:none;width:44px;height:44px;min-height:44px;padding:0;border:1px solid #D5DEE3;border-radius:var(--nl-r-sm);background:#fff;color:var(--nl-ink);font-size:16px;cursor:pointer}
body #byBrowseDialog .by-browse{flex:1;min-height:0;display:grid;grid-template-columns:280px minmax(0,1fr);gap:0;padding:0}
body #byBrowseDialog .by-browse-side{display:flex;flex-direction:column;min-height:0;border-right:1px solid var(--nl-line);background:#fff}
body #byBrowseDialog .by-browse-sheet-head,body #byBrowseDialog .by-browse-sheet-foot,body #byBrowseDialog .by-browse-open-filters{display:none}
body #byBrowseDialog .by-browse-filters{display:flex;flex-direction:column;gap:16px;overflow-y:auto;padding:18px 18px 24px}
body #byBrowseDialog .by-browse-eyebrow{margin:0;font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--nl-muted)}
body #byBrowseDialog .by-browse-filters label:not(.by-browse-choice){display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:700;color:var(--nl-ink)}
body #byBrowseDialog .by-browse-filters :is(input:not([type="radio"]),select),body #byBrowseDialog .by-browse-sort select{width:100%;min-width:0;height:44px;min-height:44px;padding:0 12px;border:1px solid #D5DEE3;border-radius:var(--nl-r-sm);background:#fff;color:var(--nl-ink);font:inherit;font-size:16px;font-weight:500}
body #byBrowseDialog fieldset{margin:0;padding:0;border:0;min-width:0}
body #byBrowseDialog legend{padding:0;margin:0 0 6px;font-size:13px;font-weight:700;color:var(--nl-ink)}
body #byBrowseDialog .by-browse-choice{position:relative;display:inline-flex;margin:0;cursor:pointer}
body #byBrowseDialog .by-browse-choice input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
body #byBrowseDialog .by-browse-choice span{display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:44px;padding:0 14px;border-radius:var(--nl-r-pill);font-size:13.5px;font-weight:700;color:var(--nl-ink);white-space:nowrap}
body #byBrowseDialog .by-browse-choice input:focus-visible + span{outline:2px solid var(--nl-teal-d);outline-offset:2px}
body #byBrowseDialog .by-browse-types>div{display:flex;flex-wrap:wrap;gap:6px}
body #byBrowseDialog .by-browse-types .by-browse-choice span{border:1px solid #D5DEE3;background:#fff}
body #byBrowseDialog .by-browse-types .by-browse-choice input:checked + span{border-color:var(--nl-navy);background:var(--nl-navy);color:#fff}
body #byBrowseDialog .by-browse-seg>div{display:flex;padding:4px;border-radius:var(--nl-r-sm);background:#EEF4F6}
body #byBrowseDialog .by-browse-seg .by-browse-choice{flex:1}
body #byBrowseDialog .by-browse-seg .by-browse-choice span{border-radius:var(--nl-r-xs);padding:0 6px}
body #byBrowseDialog .by-browse-seg .by-browse-choice input:checked + span{background:#fff;box-shadow:0 2px 8px -4px rgba(11,31,53,.35)}
body #byBrowseDialog .by-browse-price-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
body #byBrowseDialog .by-browse-link{align-self:flex-start;min-height:44px;padding:0;border:0;background:none;color:var(--nl-teal-d);font:inherit;font-size:13.5px;font-weight:700;cursor:pointer}
body #byBrowseDialog .by-browse-main{display:flex;flex-direction:column;gap:14px;min-height:0;overflow-y:auto;padding:18px 20px 24px;background:#F6F9FA}
body #byBrowseDialog .by-browse-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px}
body #byBrowseDialog .by-browse-count{display:flex;flex-direction:column;margin-right:auto}
body #byBrowseDialog .by-browse-count b{font-size:18px;font-weight:800}
body #byBrowseDialog .by-browse-count span{font-size:12.5px;color:var(--nl-muted)}
body #byBrowseDialog .by-browse-sort{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:var(--nl-muted)}
body #byBrowseDialog .by-browse-sort select{width:auto}
body #byBrowseDialog .by-browse-chips{order:3;flex-basis:100%;display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0}
body #byBrowseDialog .by-browse-chips button{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border:0;border-radius:var(--nl-r-pill);background:var(--nl-mint);color:var(--nl-teal-d);font:inherit;font-size:13px;font-weight:700;cursor:pointer}
body #byBrowseDialog .by-browse-banner{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;padding:12px 16px;border:1px dashed var(--nl-teal);border-radius:var(--nl-r-md);background:#fff}
body #byBrowseDialog .by-browse-banner p{flex:1 1 260px;margin:0;font-size:13.5px;line-height:1.5}
body #byBrowseDialog .by-browse-confirm{border:1px solid #BFE6E0;background:var(--nl-mint);border-radius:var(--nl-r-md)}
body #byBrowseDialog .by-browse-btn{min-height:44px;padding:0 18px;border:1px solid #D5DEE3;border-radius:var(--nl-r-sm);background:#fff;color:var(--nl-ink);font:inherit;font-size:14px;font-weight:700;cursor:pointer}
body #byBrowseDialog .by-browse-btn.primary{border-color:var(--nl-teal);background:var(--nl-teal);color:var(--nl-navy)}
body #byBrowseDialog .by-browse-btn.dark{border-color:var(--nl-navy);background:var(--nl-navy);color:#fff}
body #byBrowseDialog .by-browse-btn:disabled{opacity:.6;cursor:default}
body #byBrowseDialog .by-browse-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,230px),1fr));grid-auto-rows:max-content;gap:16px;max-height:none;overflow:visible}
body #byBrowseDialog .by-browse-item{position:relative;display:flex;flex-direction:column;border:1px solid var(--nl-line);border-radius:var(--nl-r-lg);background:#fff;overflow:hidden}
body #byBrowseDialog .by-browse-item:focus-within{border-color:var(--nl-teal)}
body #byBrowseDialog .by-browse-card{display:flex;flex-direction:column;flex:1;gap:0;padding:0;border:0;border-radius:0;background:#fff;color:var(--nl-ink);text-align:left}
body #byBrowseDialog .by-browse-card:focus-visible{outline:2px solid var(--nl-teal-d);outline-offset:-2px}
body #byBrowseDialog .by-browse-photo{position:relative;display:block;height:170px;padding:0;background:#E9EFF2}
body #byBrowseDialog .by-browse-photo img{display:block;width:100%;height:100%;aspect-ratio:auto;object-fit:cover}
body #byBrowseDialog .by-browse-nophoto{display:grid;place-items:center;width:100%;height:100%;aspect-ratio:auto;color:var(--nl-muted);font-size:13px}
body #byBrowseDialog .by-browse-deal{position:absolute;left:12px;top:12px;padding:5px 10px;border-radius:var(--nl-r-pill);background:rgba(11,31,53,.82);color:#fff;font-size:11.5px;font-weight:600}
body #byBrowseDialog .by-browse-text{display:flex;flex-direction:column;gap:4px;padding:14px 16px 16px}
body #byBrowseDialog .by-browse-text :is(b,span){padding:0}
body #byBrowseDialog .by-browse-text b{font-size:14.5px;font-weight:800;line-height:1.3}
body #byBrowseDialog .by-browse-price{font-size:17px;font-weight:800}
body #byBrowseDialog .by-browse-per{padding:0;font-size:12px;font-weight:600;color:var(--nl-muted)}
body #byBrowseDialog .by-browse-facts{font-size:12.5px;color:var(--nl-muted)}
body #byBrowseDialog .by-browse-save{position:absolute;top:10px;right:10px;z-index:1;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:0;border-radius:50%;background:#fff;color:var(--nl-ink);box-shadow:0 6px 16px -8px rgba(0,0,0,.5);cursor:pointer}
body #byBrowseDialog .by-browse-save svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round}
body #byBrowseDialog .by-browse-save.saved{background:#fff;border:0;color:var(--nl-red)}
body #byBrowseDialog .by-browse-save.saved svg path{fill:var(--nl-red)}
body #byBrowseDialog .by-browse-morewrap{display:flex;justify-content:center}
body #byBrowseDialog .by-browse-skeleton{height:270px;border-radius:var(--nl-r-lg);background:linear-gradient(90deg,#EEF3F5 0%,#E3EBEF 50%,#EEF3F5 100%)}
body #byBrowseDialog .by-browse-state{display:flex;flex-direction:column;align-items:center;gap:8px;padding:32px 20px;border:1px solid var(--nl-line);border-radius:var(--nl-r-lg);background:#fff;color:var(--nl-ink);text-align:center}
body #byBrowseDialog .by-browse-state p{margin:0;font-size:13.5px;color:var(--nl-muted)}
body #byBrowseDialog .by-browse-error{align-items:flex-start;text-align:left;border-color:#F3C6CE;background:#FFF1F0}
body #byBrowseDialog .by-browse-error b{color:#8A1F11}
@media(min-width:768px){body #byBrowseDialog{width:min(1180px,calc(100vw - 48px));max-width:none;height:min(860px,calc(100vh - 48px));max-height:none;border-radius:var(--nl-r-lg)}}
@media(max-width:767px){
  body #byBrowseDialog .by-browse-head{padding:12px 16px}
  body #byBrowseDialog .by-browse-head p{display:none}
  body #byBrowseDialog .by-browse{grid-template-columns:minmax(0,1fr)}
  body #byBrowseDialog .by-browse-side{display:none}
  body #byBrowseDialog .by-browse-main{padding:14px 16px 24px}
  body #byBrowseDialog .by-browse-count span{display:none}
  body #byBrowseDialog .by-browse-open-filters{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border:0;border-radius:var(--nl-r-sm);background:var(--nl-navy);color:#fff;font:inherit;font-size:14px;font-weight:700;cursor:pointer}
  body #byBrowseDialog .by-browse-open-filters i{min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--nl-teal);color:var(--nl-navy);font-style:normal;font-size:11.5px;font-weight:800;line-height:20px}
  body #byBrowseDialog .by-browse-sort span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  body #byBrowseDialog.sheet-open .by-browse-head,body #byBrowseDialog.sheet-open .by-browse-main{display:none}
  body #byBrowseDialog.sheet-open .by-browse-side{display:flex;height:100%;border:0}
  body #byBrowseDialog.sheet-open .by-browse-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid var(--nl-line);font-size:17px}
  body #byBrowseDialog.sheet-open .by-browse-filters{flex:1;min-height:0;padding:16px}
  body #byBrowseDialog.sheet-open .by-browse-eyebrow,body #byBrowseDialog.sheet-open .by-browse-link{display:none}
  body #byBrowseDialog.sheet-open .by-browse-sheet-foot{display:flex;gap:10px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--nl-line)}
  body #byBrowseDialog.sheet-open .by-browse-sheet-foot .primary{flex:1}
}
@media(prefers-reduced-motion:no-preference){body #byBrowseDialog .by-browse-photo img{transition:transform .5s var(--nl-ease-out)}body #byBrowseDialog .by-browse-item:hover .by-browse-photo img{transform:scale(1.05)}}

/* ==========================================================================================================
   SFT-639: [09d] buyer saved searches and "Save my search" (epic SFT-601). Design draft v1, approved by Solmaz
   Jarchlou and Siros EJ. The panel is a white card that opens under the header buttons: title and x, the three tabs as
   one segmented control, labelled fields, Save and Close. Signed in it shows "New search", the notification settings and
   the saved searches as cards. On a phone it is full screen. Layout only: the same fields, rules and requests.
   ========================================================================================================== */
body #buyers .by-save-anchor{position:relative;height:0;z-index:30}
/* while it is open the card may be wider than a narrow chat column and lie over the matches */
@media(min-width:768px){body #buyers .by-chat:has(#byProfilePanel:not(.hidden)){overflow:visible;z-index:40}}
body #buyers #byProfilePanel{scroll-margin:84px 0 16px;position:absolute;top:8px;left:10px;width:min(400px,calc(100vw - 48px));max-height:min(520px,60vh);overflow-y:auto;display:flex;flex-direction:column;gap:12px;padding:18px 16px 20px;border:1px solid var(--nl-line);border-radius:var(--nl-r-lg);background:#fff;color:var(--nl-ink);box-shadow:0 30px 60px -24px rgba(0,0,0,.55);--ink:var(--nl-ink);--muted-text:var(--nl-muted)}
body #buyers #byProfilePanel.hidden{display:none}
body #buyers #byProfilePanel>*{flex:none}
body #buyers #byProfilePanel :focus-visible{outline:2px solid var(--nl-teal-d);outline-offset:2px}
body #buyers #byProfilePanel .by-save-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
body #buyers #byProfilePanel .by-save-head b{font-size:20px;font-weight:800;letter-spacing:-.02em}
body #buyers #byProfilePanel .by-save-x{flex:none;width:44px;height:44px;min-height:44px;padding:0;border:1px solid #D5DEE3;border-radius:var(--nl-r-sm);background:#fff;color:var(--nl-ink);font-size:16px;cursor:pointer}
body #buyers #byProfilePanel .by-profile-tabs{display:flex;flex-wrap:nowrap;gap:0;margin:0;padding:4px;border-radius:var(--nl-r-sm);background:#EEF4F6}
body #buyers #byProfilePanel .by-profile-tabs.hidden{display:none}
body #buyers #byProfilePanel .by-profile-tabs button{flex:1 1 auto;min-width:0;min-height:44px;padding:0 6px;border:0;border-radius:var(--nl-r-xs);background:transparent;color:var(--nl-muted);font-size:12.5px;font-weight:700;line-height:1.2;white-space:nowrap}
body #buyers #byProfilePanel .by-profile-tabs button.active{background:#fff;color:var(--nl-ink);box-shadow:0 2px 8px -4px rgba(11,31,53,.35)}
body #buyers #byProfilePanel .by-profile-hint{margin:0;font-size:13.5px;line-height:1.55;color:var(--nl-muted)}
body #buyers #byProfilePanel .by-profile-fields{display:flex;flex-direction:column;gap:12px;margin:0}
body #buyers #byProfilePanel .by-id-field{display:flex;flex-direction:column;gap:6px;margin:0;font-size:13px;font-weight:700;color:var(--nl-ink)}
body #buyers #byProfilePanel .by-id-field:has(>input.hidden){display:none}
body #buyers #byProfilePanel .by-id-field input{width:100%;height:48px;min-height:48px;padding:0 14px;border:1.5px solid #D5DEE3;border-radius:14px;background:#fff;color:var(--nl-ink);font:inherit;font-size:16px;font-weight:500}
body #buyers #byProfilePanel .by-id-field input:focus{border-color:var(--nl-teal);outline:0;box-shadow:0 0 0 4px rgba(46,196,182,.18)}
body #buyers #byProfilePanel .by-profile-fields:not(:has(input:not(.hidden))){display:none}
body #buyers #byProfilePanel .by-id-note{margin:-4px 0 0;font-size:12.5px;color:var(--nl-muted)}
body #buyers #byProfilePanel .by-id-note:empty{display:none}
body #buyers #byProfilePanel .by-profile-actions{display:flex;flex-wrap:wrap;gap:8px}
body #buyers #byProfilePanel .by-profile-actions .btn{height:48px;min-height:48px;padding:0 20px;border-radius:var(--nl-r-sm);font-size:15px;font-weight:700}
body #buyers #byProfilePanel .by-profile-actions .btn.hidden{display:none}
body #buyers #byProfilePanel .by-profile-actions .by-send{border:0;background:var(--nl-teal);color:var(--nl-navy)}
body #buyers #byProfilePanel .by-profile-actions .btn.secondary{border:1px solid #D5DEE3;background:#fff;color:var(--nl-ink)}
/* signed in: the saved searches come first, then New search / Sign out, then the notification settings */
body #buyers #byProfilePanel .by-search-list{order:1}
body #buyers #byProfilePanel .by-search-list:empty{display:none}
body #buyers #byProfilePanel .by-profile-actions,body #buyers #byProfilePanel #byProfileMsg{order:2}
body #buyers #byProfilePanel .by-notify-settings{order:3}
body #buyers #byProfilePanel .by-search-list ul{gap:8px;margin:8px 0 0}
body #buyers #byProfilePanel .by-search-item{min-height:44px;padding:12px 14px;border:1px solid var(--nl-line);border-radius:var(--nl-r-md);background:#fff;color:var(--nl-ink)}
body #buyers #byProfilePanel .by-search-item.current{border-color:var(--nl-teal);background:var(--nl-mint)}
body #buyers #byProfilePanel .by-notify-settings:empty{display:none}
body #buyers #byProfilePanel :is(.notice,.error){margin:0}
body #buyers #byProfilePanel #byProfileMsg:empty{display:none}
body #buyers #byProfileBtn{border-color:var(--nl-teal);background:var(--nl-teal);color:var(--nl-navy)}
body #buyers #byProfileBtn::after{content:" ▾"}
@media(max-width:767px){
  /* full screen on a phone; the chat column is sticky and so its own stacking context: lift it over the page header and tab bar */
  body #buyers .by-chat:has(#byProfilePanel:not(.hidden)){z-index:9000}
  body #buyers #byProfilePanel{position:fixed;inset:0;width:auto;max-width:none;max-height:none;z-index:9000;margin:0;border:0;border-radius:0;padding:14px 18px calc(18px + env(safe-area-inset-bottom))}
  body #buyers #byProfilePanel .by-profile-actions .btn{flex:1 1 auto}
}

/* ==========================================================================================================
   SFT-627: [07d] owner report schedule (epic SFT-601). Design draft v1 on the story, approved by the reviewers.
   A full-width white card under the page header: the title and explanation, "How often", the weekday and the report
   language as buttons (the selects behind them still hold the values; the day of the month stays a drop-down), the next
   report as a small calendar card and Save. Layout only: the same options and the same save request. The location on the
   activity chart stays a label, as on the live site.
   ========================================================================================================== */
body #owners .ow-schedule{display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,1.7fr) minmax(170px,.7fr);gap:24px;align-items:start;padding:24px;border:0;border-radius:var(--nl-r-lg);background:#fff;color:var(--nl-ink);--ink:var(--nl-ink);--muted-text:var(--nl-muted)}
body #owners .ow-schedule.hidden{display:none}
body #owners .ow-schedule :focus-visible{outline:2px solid var(--nl-teal-d);outline-offset:2px}
body #owners .ow-schedule h3{margin:0 0 6px;font-size:19px;font-weight:800;letter-spacing:-.01em;color:var(--nl-ink)}
body #owners .ow-schedule .muted{margin:0;font-size:13.5px;line-height:1.55;color:var(--nl-muted)}
body #owners .ow-schedule-row{display:flex;flex-direction:column;align-items:stretch;gap:14px;min-width:0}
body #owners .ow-field{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:13px;font-weight:700;color:var(--nl-ink)}
body #owners .ow-field.hidden{display:none}
body #owners .ow-schedule select{max-width:220px;height:44px;min-height:44px;padding:0 12px;border:1px solid #D5DEE3;border-radius:var(--nl-r-sm);background:#fff;color:var(--nl-ink);font:inherit;font-size:16px}
body #owners .ow-schedule select[hidden],body #owners .ow-days-pick[hidden],body #owners .ow-cal[hidden]{display:none}
body #owners .ow-seg{display:inline-flex;align-self:flex-start;max-width:100%;flex-wrap:nowrap;gap:0;padding:4px;border-radius:var(--nl-r-sm);background:#EEF4F6}
body #owners .ow-seg button{flex:1 1 auto;min-width:0;min-height:44px;padding:0 18px;white-space:nowrap;border:0;border-radius:var(--nl-r-xs);background:transparent;color:var(--nl-muted);font:inherit;font-size:13.5px;font-weight:700;cursor:pointer}
body #owners .ow-seg button[aria-pressed="true"]{background:#fff;color:var(--nl-ink);box-shadow:0 2px 8px -4px rgba(11,31,53,.35)}
body #owners .ow-days-pick{display:flex;flex-wrap:wrap;gap:6px}
body #owners .ow-days-pick button{min-width:56px;min-height:44px;padding:0 10px;border:1px solid #D5DEE3;border-radius:var(--nl-r-sm);background:#fff;color:var(--nl-ink);font:inherit;font-size:13px;font-weight:700;cursor:pointer}
body #owners .ow-days-pick button[aria-pressed="true"]{border-color:var(--nl-navy);background:var(--nl-navy);color:#fff}
body #owners .ow-sch-side{display:flex;flex-direction:column;align-items:center;gap:12px;padding:16px;border:1px solid var(--nl-line);border-radius:var(--nl-r-md);text-align:center}
body #owners .ow-cal{display:flex;flex-direction:column;width:84px;overflow:hidden;border:1px solid var(--nl-line);border-radius:var(--nl-r-sm)}
body #owners .ow-cal span{padding:4px 0;background:var(--nl-navy);color:#fff;font-size:11.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
body #owners .ow-cal b{padding:8px 0;font-size:28px;font-weight:800;line-height:1.1}
body #owners .ow-schedule-next{margin:0;font-size:13px;font-weight:700;color:var(--nl-ink)}
body #owners .ow-sch-side .btn{width:100%;height:46px;border:0;border-radius:var(--nl-r-sm);background:var(--nl-teal);color:var(--nl-navy);font-weight:700}
body #owners #ownersScheduleMessage{grid-column:1/-1}
body #owners #ownersScheduleMessage:empty{display:none}
body #owners #ownersScheduleBtn[aria-expanded="true"]{background:#fff;color:var(--nl-navy)}
@media(max-width:1100px){body #owners .ow-schedule{grid-template-columns:minmax(0,1fr) minmax(170px,240px)}body #owners .ow-sch-intro{grid-column:1/-1}}
@media(max-width:760px){
  body #owners .ow-schedule{grid-template-columns:minmax(0,1fr);gap:16px;padding:18px}
  body #owners .ow-seg{align-self:stretch}
  body #owners .ow-seg button{flex:1;min-width:0;padding:0 8px}
  body #owners .ow-days-pick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
  body #owners .ow-days-pick button{min-width:0}
  body #owners .ow-schedule select{max-width:none;width:100%}
}

/* ==========================================================================================================
   SFT-645: [07e] owner priority, changes, messages, data freshness and report email (epic SFT-601). Design draft v1,
   approved by the reviewers. The data freshness line is a slim banner on top; "Needs your attention" is the main card on
   the left; what changed, the messages and the report email are cards on the right. Layout only: the same data, wording
   and buttons. The page keeps the sections' order in the document; the grid only places them.
   ========================================================================================================== */
body #owners .ow-workspace:not(.hidden){display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);grid-template-rows:repeat(7,auto) 1fr;column-gap:20px;row-gap:0;align-items:start}
body #owners .ow-workspace>*{grid-column:1/-1;min-width:0}
body #owners .ow-workspace>.ws-head{grid-row:1}
body #owners .ow-workspace>.ow-schedule{grid-row:2}
body #owners .ow-workspace>#ownersExportMessage{grid-row:3}
body #owners .ow-workspace>#ownersExportMessage:not(:empty){margin-bottom:12px}
body #owners .ow-workspace>.ow-fresh{grid-row:4}
body #owners .ow-workspace>.ow-priority{grid-column:1;grid-row:5/9}
body #owners .ow-workspace>.ow-changes{grid-column:2;grid-row:5}
body #owners .ow-workspace>.msg-card{grid-column:2;grid-row:6}
body #owners .ow-workspace>.ow-email{grid-column:2;grid-row:7}
body #owners .ow-workspace:not(:has(>.ow-changes:not(:empty),>.msg-card:not(:empty),>.ow-email:not(:empty)))>.ow-priority{grid-column:1/-1}
body #owners .ow-workspace>.ow-stats{grid-row:9}
body #owners .ow-workspace>.ow-layout{grid-row:10}
body #owners .ow-workspace :focus-visible{outline:2px solid var(--nl-teal-d);outline-offset:2px}
/* data freshness: a slim banner on the dark page */
body #owners .ow-workspace .ow-fresh{align-items:center;gap:12px;padding:12px 18px;border:1px solid rgba(46,196,182,.35);border-radius:var(--nl-r-md);background:rgba(46,196,182,.12);color:#E8FBF8}
body #owners .ow-workspace .ow-fresh>span{flex:none;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:var(--nl-teal);color:var(--nl-navy);font-weight:900}
body #owners .ow-workspace .ow-fresh.stale{border-color:#E3B65C;background:rgba(227,182,92,.16);color:#FFF3DA}
body #owners .ow-workspace .ow-fresh.stale>span{background:#E3B65C}
body #owners .ow-workspace .ow-fresh b{font-size:14px}
/* the cards */
body #owners .ow-workspace :is(.ow-priority,.ow-changes,.msg-card,.ow-email){padding:20px;border:0;border-radius:var(--nl-r-lg);background:#fff;color:var(--nl-ink);--ink:var(--nl-ink);--muted-text:var(--nl-muted)}
body #owners .ow-workspace :is(.ow-priority,.ow-changes,.msg-card,.ow-email) h3{margin:0;font-size:17px;font-weight:800;letter-spacing:-.01em;color:var(--nl-ink)}
body #owners .ow-workspace .ow-pri-head{align-items:center}
body #owners .ow-workspace .ow-pri-head p{color:var(--nl-muted)}
body #owners .ow-workspace .ow-pri-icon{width:36px;height:36px;border-radius:var(--nl-r-xs);background:#EEF3F5;color:var(--nl-muted)}
body #owners .ow-workspace .ow-priority.alert .ow-pri-icon{background:#FFF1E3;color:#B85C0F}
body #owners .ow-workspace .ow-priority.clear .ow-pri-icon{background:var(--nl-mint);color:var(--nl-teal-d)}
body #owners .ow-workspace .ow-pri-list{gap:12px}
body #owners .ow-workspace .ow-pri-list li{flex-wrap:wrap;gap:12px;padding:14px;border:1px solid var(--nl-line);border-left:4px solid #D9822B;border-radius:var(--nl-r-md)}
body #owners .ow-workspace .ow-pri-list li.serious{border-left-color:var(--nl-red)}
body #owners .ow-workspace .ow-pri-rank{width:30px;height:30px;background:var(--nl-navy);color:#fff;font-size:13px}
body #owners .ow-workspace .ow-pri-body{flex:1 1 220px;gap:4px}
body #owners .ow-workspace .ow-pri-body>b{font-size:15px;color:var(--nl-ink)}
body #owners .ow-workspace .ow-pri-tags span{padding:4px 10px;font-size:11.5px}
body #owners .ow-workspace .ow-pri-level{background:#FFF1E3;color:#8A520F}
body #owners .ow-workspace .ow-pri-list li.serious .ow-pri-level{background:#FDE7EB;color:#A32640}
body #owners .ow-workspace .ow-pri-new{background:#E6F0FB;color:#1F5FA3}
body #owners .ow-workspace .ow-pri-reason{background:#EEF3F5;color:#3C4B57}
body #owners .ow-workspace .ow-pri-action{margin-top:8px;padding:10px 12px;border-radius:var(--nl-r-xs);background:var(--nl-mint);color:var(--nl-ink)}
body #owners .ow-workspace .ow-pri-action b{color:var(--nl-teal-d)}
body #owners .ow-workspace .ow-pri-msg{min-height:44px;margin-top:8px;padding:0 16px;border:0;border-radius:var(--nl-r-sm);background:var(--nl-navy);color:#fff;font-size:13.5px}
body #owners .ow-workspace .ow-pri-days{align-self:flex-start;padding:5px 10px;border-radius:var(--nl-r-pill);background:#EEF3F5;color:var(--nl-muted)}
body #owners .ow-workspace .ow-pri-ask{align-self:flex-start;min-height:44px;padding:0 16px;border:1px solid #D5DEE3;border-radius:var(--nl-r-sm);color:var(--nl-ink);font-size:13.5px}
body #owners .ow-workspace .ow-pri-more{display:block;min-height:44px;margin:8px auto 0;color:var(--nl-teal-d)}
body #owners .ow-workspace .msg-compose{padding:12px;border:1px solid var(--nl-teal);border-radius:var(--nl-r-md);background:#fff}
body #owners .ow-workspace .msg-compose textarea{border:1px solid #D5DEE3;border-radius:var(--nl-r-xs);color:var(--nl-ink);background:#fff;font-size:15px}
body #owners .ow-workspace .msg-compose .btn{min-height:44px;border-radius:var(--nl-r-sm);font-weight:700}
body #owners .ow-workspace .msg-compose .btn.primary,body #owners .ow-workspace .msg-body .btn.primary{border:0;background:var(--nl-teal);color:var(--nl-navy)}
/* what changed */
body #owners .ow-workspace .ow-changes ul{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:8px}
body #owners .ow-workspace .ow-changes li{position:relative;padding-left:18px;font-size:13.5px;line-height:1.5}
body #owners .ow-workspace .ow-changes li::before{content:"";position:absolute;left:0;top:.55em;width:8px;height:8px;border-radius:50%;background:var(--nl-teal)}
body #owners .ow-workspace .ow-changes .muted{margin:8px 0 0;color:var(--nl-muted)}
/* messages */
body #owners .ow-workspace .msg-card>p{color:var(--nl-muted)}
body #owners .ow-workspace .msg-thread{border:1px solid var(--nl-line);border-radius:var(--nl-r-md)}
body #owners .ow-workspace .msg-thread:has(>.msg-body){border-color:var(--nl-teal)}
body #owners .ow-workspace .msg-thread>button{min-height:52px;flex-wrap:wrap;color:var(--nl-ink)}
body #owners .ow-workspace .msg-thread>button strong{white-space:normal;text-align:left}
body #owners .ow-workspace .msg-thread>button span{flex:1 1 100%;text-align:left}
body #owners .ow-workspace .msg-thread>button .msg-unread{flex:none}
/* report email */
body #owners .ow-workspace .ow-email{display:flex;flex-direction:column;align-items:stretch;gap:10px}
body #owners .ow-workspace .ow-email h3::before{content:"\2709  "}
body #owners .ow-workspace .ow-email label{min-height:44px;color:var(--nl-ink)}
body #owners .ow-workspace .ow-email .ow-email-note{order:1;flex-basis:auto;color:var(--nl-muted)}
body #owners .ow-workspace .ow-email #ownerEmailSend{order:2;min-height:44px;width:100%;border:1px solid #D5DEE3;border-radius:var(--nl-r-sm);background:#fff;color:var(--nl-ink);font-weight:700}
body #owners .ow-workspace .ow-email .ow-email-msg{order:3;flex-basis:auto}
body #owners .ow-workspace .ow-email .ow-email-msg:empty{display:none}
body #owners .ow-workspace :is(.ow-priority,.ow-changes,.msg-card,.ow-fresh,.ow-email):empty{display:none}
@media(max-width:900px){
  body #owners .ow-workspace:not(.hidden){grid-template-columns:minmax(0,1fr);grid-template-rows:none}
  body #owners .ow-workspace>.ow-priority{grid-column:1;grid-row:5}
  body #owners .ow-workspace>.ow-changes{grid-column:1;grid-row:6}
  body #owners .ow-workspace>.msg-card{grid-column:1;grid-row:7}
  body #owners .ow-workspace>.ow-email{grid-column:1;grid-row:8}
}
@media(max-width:600px){body #owners .ow-workspace :is(.ow-priority,.ow-changes,.msg-card,.ow-email){padding:16px}}

/* ==========================================================================================================
   SFT-682: [07f] the portfolio manager's "acting for" banner and export card (epic SFT-601). Design draft v1, approved by
   the reviewers. Under the page header: who is being acted for, and a card naming the export's file, period and language
   with the same export. Layout only: only a portfolio manager gets it (the report says who they act for); there is no
   owner switch, because a manager is linked to one owner.
   ========================================================================================================== */
body #owners .ow-acting{display:flex;flex-wrap:wrap;gap:14px;flex-basis:100%;width:100%;margin:4px 0 0}
body #owners .ow-acting.hidden{display:none}
body #owners .ow-acting :focus-visible{outline:2px solid var(--nl-teal);outline-offset:2px}
body #owners .ow-act-banner{flex:2 1 320px;display:flex;align-items:center;gap:14px;min-width:0;padding:16px 18px;border:1px solid rgba(46,196,182,.35);border-radius:var(--nl-r-md);background:rgba(46,196,182,.12)}
body #owners .ow-act-avatar{flex:none;display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;background:#fff;color:var(--nl-navy);font-size:15px;font-weight:800}
body #owners .ow-act-banner>div{display:flex;flex-direction:column;gap:2px;min-width:0}
body #owners .ow-act-eyebrow{color:var(--nl-teal-l);font-size:11.5px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
body #owners .ow-act-banner b{color:#fff;font-size:16px;overflow-wrap:anywhere}
body #owners .ow-act-export{flex:1 1 280px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-radius:var(--nl-r-md);background:#fff;color:var(--nl-ink)}
body #owners .ow-act-export dl{display:flex;flex-wrap:wrap;gap:6px 18px;margin:0}
body #owners .ow-act-export dt{font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--nl-muted)}
body #owners .ow-act-export dd{margin:0;font-size:13.5px;font-weight:700}
body #owners .ow-act-export .btn{min-height:44px;border:0;border-radius:var(--nl-r-sm);background:var(--nl-teal);color:var(--nl-navy);font-weight:700}
@media(max-width:600px){body #owners .ow-act-export .btn{width:100%}}
/* the header names the role under the manager's name */
body #headerUser[data-role]{flex-direction:column;align-items:flex-start;justify-content:center;line-height:1.2}
body #headerUser[data-role]::after{content:attr(data-role);font-size:11px;font-weight:600;color:var(--nl-teal-l);white-space:nowrap}
