/* Seen to Sold — 04 Refined / Charcoal and gold edition.
   Complete plain-CSS replacement. Manrope throughout. No framework.
   Existing portal class names are retained; new components use the same vocabulary.
   data-sidebar="collapsed" | "expanded"; intentionally white (data-theme="light").
*/
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;650;700;750;800&display=swap');
:root {
  --bg:#f9f8f5; --surface:#fff; --surface-2:#f5f4f0; --surface-3:#eeece5;
  --fg:#232421; --muted:#656760; --faint:#73766d; --line:#e7e5de; --line-strong:#cccac0;
  --ink:#252824; --ink-2:#343832; --ink-fg:#f8f7f1; --ink-muted:#b1b6ab;
  --gold:#b58b38; --gold-text:#856119; --gold-soft:#f6efdf; --gold-line:#ddc79a;
  --gold-grad:linear-gradient(115deg,#d9b666,#af822e);
  --good:#25734f; --good-soft:#edf5ee; --good-btn:#246c49;
  --warn:#906215; --warn-soft:#faf0dc; --bad:#b3473b; --bad-soft:#fcedea;
  --info:#466788; --info-soft:#edf2f7;
  --bubble-them:#f0efea; --bubble-us:#2c342f; --bubble-us-fg:#f9fbf8;
  --font-display:'Manrope',Arial,sans-serif; --font-body:'Manrope',Arial,sans-serif; --font-data:'Manrope',Arial,sans-serif;
  --radius:12px; --side:224px; --gap:24px; --shadow:0 3px 20px #25282405;
  --report-paper:#fffdf7; --chart-line:#405750; --focus:#9b741f; --bar-other:#d6d4ca;
  color-scheme:light;
}
:root[data-sidebar="collapsed"]{--side:64px}


*{box-sizing:border-box}
html,body{margin:0;min-height:100%;width:100%;-webkit-text-size-adjust:100%}
body{background:var(--bg);color:var(--fg);font:13px/1.65 var(--font-body);-webkit-font-smoothing:antialiased}
#app{min-height:100vh;min-height:100dvh;min-width:0}
[hidden]{display:none!important}
button,input,select,textarea{font:inherit;color:inherit}
button,a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
a{color:var(--gold-text);text-underline-offset:4px}
h1,h2,h3,p{margin-top:0}
h1,h2,h3{font-family:var(--font-display);margin-bottom:0;letter-spacing:-.04em;color:var(--fg)}
h1{font-size:38px;font-weight:800;line-height:1.2}
h2{font-size:17px;font-weight:800;line-height:1.4}
h3{font-size:14px;font-weight:750;line-height:1.4}
b,strong{font-weight:750}
.num,.mono{font-family:var(--font-data);font-variant-numeric:tabular-nums;letter-spacing:-.02em}
svg{vertical-align:middle;max-width:100%;flex-shrink:0}
.ico{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
:focus-visible{outline:2px solid var(--focus);outline-offset:4px;border-radius:4px}
::selection{background:var(--gold-soft);color:var(--fg)}
[disabled],[aria-disabled="true"]{opacity:.48;cursor:not-allowed!important}
[disabled]:hover{transform:none;box-shadow:none;filter:none}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.eyebrow{font-size:10px;font-weight:750;letter-spacing:.15em;text-transform:uppercase;color:var(--faint);display:flex;align-items:center;gap:8px;flex-wrap:wrap;line-height:1.6}
.eyebrow .pill{font-size:10px;letter-spacing:0;text-transform:none}
.hint{font-size:11px;color:var(--faint);line-height:1.75;margin:0;overflow-wrap:anywhere}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:39px;padding:9px 15px;background:var(--surface);color:var(--fg);border:1px solid var(--line-strong);border-radius:7px;text-decoration:none;font-size:12px;line-height:1.45;font-weight:750;max-width:100%;transition:background .16s,border-color .16s,box-shadow .16s;white-space:normal}
.btn:hover:not(:disabled){background:var(--surface-2);border-color:var(--faint)}
.btn:active:not(:disabled){transform:translateY(1px)}
.btn.primary{background:var(--gold-grad);color:#251c0c;border-color:transparent}
.btn.primary:hover:not(:disabled){background:var(--gold-grad);filter:brightness(1.05)}
.btn.good{background:var(--fg);color:var(--surface);border-color:var(--fg)}
.btn.good:hover:not(:disabled){background:var(--fg);opacity:.88}
.btn.danger{background:transparent;border-color:transparent;color:var(--bad)}
.btn.danger:hover:not(:disabled){background:var(--bad-soft);border-color:transparent}
.btn.ghost{background:transparent;border-color:transparent;color:var(--muted)}
.btn.ghost:hover:not(:disabled){background:var(--surface-2);border-color:transparent;color:var(--fg)}
.btn.small{min-height:31px;padding:6px 11px;font-size:11px;border-radius:6px}
.btn.block{width:100%}.btn .ico{width:14px;height:14px}
.icon-button{display:inline-grid;place-items:center;width:34px;height:34px;background:transparent;border:1px solid var(--line);border-radius:7px;color:var(--muted);flex-shrink:0}
.icon-button:hover{background:var(--surface-2);color:var(--fg)}
.input,select.input,textarea.input{width:100%;min-width:0;min-height:42px;padding:10px 12px;border:1px solid var(--line-strong);border-radius:7px;background:var(--surface);color:var(--fg);font-size:13px;line-height:1.5}
.input:focus{outline:none;border-color:var(--gold);box-shadow:0 0 0 3px var(--gold-soft)}
.input::placeholder{color:var(--faint);opacity:1}
textarea.input{resize:vertical;min-height:115px;line-height:1.7}
label.field{display:grid;gap:6px;min-width:0;font-size:11px;font-weight:750;color:var(--muted)}
.form-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(160px,100%),1fr));align-items:end;gap:12px;min-width:0}
.prefix{position:relative;min-width:0}.prefix span{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--muted)}.prefix .input{padding-left:25px}
.actions{display:flex;align-items:center;flex-wrap:wrap;gap:7px;min-width:0}
.msg{font-size:12px;padding:12px 15px;border-radius:7px;line-height:1.7;overflow-wrap:anywhere}
.msg.error{background:var(--bad-soft);color:var(--bad);border:1px solid color-mix(in srgb,var(--bad) 20%,transparent)}
.msg.ok{background:var(--good-soft);color:var(--good)}
/* Navigation: 16px icons, 64px rail; labels revealed in expanded mode. */
.shell{display:grid;grid-template-columns:var(--side) minmax(0,1fr);min-height:100vh;min-height:100dvh;transition:grid-template-columns .2s}
.side{position:sticky;top:0;height:100vh;height:100dvh;background:var(--ink);color:var(--ink-fg);display:flex;flex-direction:column;min-width:0;z-index:35;padding:24px 12px 14px;gap:18px}
.brand{display:flex;align-items:center;gap:12px;padding:0 7px;text-decoration:none;color:var(--ink-fg);min-height:34px}
.logo{display:block;width:74px;height:auto;object-fit:contain;flex-shrink:0}
.brand-caption{font-size:10px;line-height:1.5;font-weight:650;color:var(--ink-muted);padding-left:11px;border-left:1px solid #ffffff26}
.switcher{position:relative;min-width:0}
.switcher select{width:100%;min-width:0;appearance:none;background:var(--surface);border:1px solid var(--line);border-radius:7px;padding:9px 32px 9px 12px;font-size:12px;font-weight:750;cursor:pointer;color:var(--fg);text-overflow:ellipsis}
.switcher:after{content:"";position:absolute;right:13px;top:44%;border:solid currentColor;border-width:0 1.5px 1.5px 0;padding:2.5px;transform:rotate(45deg);pointer-events:none;color:var(--muted)}
.side .switcher select{background:var(--ink-2);border-color:#ffffff19;color:var(--ink-fg);font-size:11px}
.side .switcher:after{color:var(--ink-muted)}
.side .switcher option{background:var(--ink);color:var(--ink-fg)}
.nav{display:flex;flex-direction:column;gap:4px;min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#ffffff22 transparent}
.nav-label{font-size:9px;letter-spacing:.09em;text-transform:uppercase;color:var(--ink-muted);font-weight:650;padding:12px 12px 7px;overflow-wrap:anywhere}
.nav-label:first-child{padding-top:0}
.nav a{position:relative;display:flex;align-items:center;gap:12px;padding:10px 12px;min-height:40px;border-radius:6px;color:var(--ink-muted);text-decoration:none;font-size:12px;font-weight:650;flex-shrink:0}
.nav svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.nav a:hover{color:var(--ink-fg);background:var(--ink-2)}
.nav a.on{background:#caa65922;color:#ead294;box-shadow:inset 2px 0 #d3ae62}
.nav .count{margin-left:auto;background:#dcc17f;color:#292214;font-size:10px;min-width:18px;text-align:center;line-height:18px;padding:0 4px;border-radius:5px;font-weight:800}
.side-foot{margin-top:auto;border-top:1px solid #ffffff20;padding-top:15px;display:grid;gap:10px;position:relative}
.side-foot .who{font-size:11px;line-height:1.7;padding:0 8px;overflow-wrap:anywhere;color:var(--ink-muted)}
.side-foot .who b{display:block;color:var(--ink-fg)}
.side-foot button{border:0;background:transparent;color:var(--ink-muted);text-align:left;display:flex;align-items:center;gap:12px;padding:8px 12px;font-size:11px;min-height:36px;border-radius:6px}
.side-foot button:hover{background:var(--ink-2);color:var(--ink-fg)}
.side-foot .sidebar-toggle{position:absolute;right:-23px;bottom:3px;display:grid;place-items:center;width:24px;min-height:24px;height:24px;padding:0;border-radius:50%;background:#dcc17f;color:#292518;border:2px solid var(--bg);z-index:2;box-shadow:0 1px 6px #0002}
.sidebar-toggle svg{width:12px;height:12px}
:root[data-sidebar="collapsed"] .side{padding-left:10px;padding-right:10px;gap:22px}
:root[data-sidebar="collapsed"] .brand{padding:0;justify-content:center}
:root[data-sidebar="collapsed"] .brand .logo{width:41px}
:root[data-sidebar="collapsed"] .brand-caption,:root[data-sidebar="collapsed"] .side>.switcher,:root[data-sidebar="collapsed"] .nav-text,:root[data-sidebar="collapsed"] .side-foot .who,:root[data-sidebar="collapsed"] .side-foot button>span{display:none}
:root[data-sidebar="collapsed"] .nav a{justify-content:center;padding:10px;min-height:40px}
:root[data-sidebar="collapsed"] .nav-label{font-size:0;border-top:1px solid #ffffff24;padding:0;margin:12px 8px 8px}
:root[data-sidebar="collapsed"] .nav-label:first-child{display:none}
:root[data-sidebar="collapsed"] .nav .count{position:absolute;right:1px;top:1px;font-size:8px;min-width:12px;line-height:12px;border-radius:4px;padding:0 2px}
:root[data-sidebar="collapsed"] .side-foot button{justify-content:center;padding:8px}
:root[data-sidebar="collapsed"] .sidebar-toggle svg{transform:rotate(180deg)}
:root[data-sidebar="collapsed"] .side-foot .sidebar-toggle{right:-22px;padding:0}
.app-workspace{min-width:0}
.topbar{min-height:69px;border-bottom:1px solid var(--line);padding:13px 34px;display:flex;justify-content:space-between;align-items:center;gap:20px;background:var(--surface)}
.topbar-left,.topbar-right{display:flex;align-items:center;gap:14px;min-width:0}
.topbar .switcher{width:198px;flex-shrink:1}.topbar .switcher select{border:0;background:var(--surface-2)}
.breadcrumb{font-size:11px;color:var(--faint);white-space:nowrap}.breadcrumb:before{content:"/";margin-right:14px;color:var(--line-strong)}
.demo-flag{font-size:9px;letter-spacing:.08em;text-transform:uppercase;color:var(--gold-text);background:var(--gold-soft);border:1px solid var(--gold-line);padding:3px 7px;border-radius:4px;font-weight:750}
.profile-dot{width:30px;height:30px;display:grid;place-items:center;background:var(--surface-3);border-radius:50%;color:var(--muted);font-size:10px;font-weight:800}
.topbar-note{font-size:10px;color:var(--muted)}
.mobile-top{display:none}
.main{padding:32px 36px 28px;min-width:0}
.page{width:100%;max-width:1440px;margin:0 auto;display:grid;gap:26px;min-width:0}
.page>*{min-width:0}
.page-head{display:flex;align-items:end;justify-content:space-between;gap:16px;flex-wrap:wrap}
.page-head>div{min-width:0}
.page-head p{font-size:12px;color:var(--muted);margin:8px 0 0;max-width:74ch;line-height:1.85}
.page-head .eyebrow{margin-bottom:11px}
.page-footer{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-top:30px;padding-top:16px;border-top:1px solid var(--line);font-size:10px;color:var(--faint)}
.page-footer strong{font-weight:650;color:var(--gold-text)}
.panel{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:18px 22px;border-bottom:1px solid var(--line)}
.panel-body{padding:20px 22px;min-width:0}.panel-foot{padding:16px 22px;border-top:1px solid var(--line)}
.panel> :first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.panel> :last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}
.grid-2{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);align-items:start;gap:24px;min-width:0}
.stack{display:grid;gap:24px;min-width:0}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:22px 0}
.stat{display:flex;flex-direction:column;min-width:0;gap:6px;padding:0 23px;border-right:1px solid var(--line)}
.stat:first-child{padding-left:0}.stat:last-child{border-right:0}
.stat .label{font-size:11px;color:var(--muted);font-weight:650;line-height:1.5}
.stat .value{font-size:31px;font-weight:750;line-height:1.25;letter-spacing:-.055em;font-variant-numeric:tabular-nums}
.stat .note{font-size:10px;color:var(--faint);line-height:1.5}
.stat.alert .value{color:var(--gold-text)}
.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.section-heading h2{font-size:15px}.section-heading .section-index{font-size:10px;color:var(--gold-text);margin-right:8px;font-weight:650;letter-spacing:0}
.pill{display:inline-flex;align-items:center;gap:5px;padding:3px 8px;max-width:100%;font-size:10px;line-height:1.5;font-weight:750;white-space:normal;background:var(--surface-2);color:var(--muted);border-radius:5px}
.pill:before{content:"";width:4px;height:4px;background:currentColor;border-radius:50%;flex-shrink:0}
.pill.good{background:var(--good-soft);color:var(--good)}.pill.warn{background:var(--warn-soft);color:var(--warn)}.pill.bad{background:var(--bad-soft);color:var(--bad)}.pill.info{background:var(--info-soft);color:var(--info)}.pill.gold{background:var(--gold-soft);color:var(--gold-text)}.pill.plain:before{display:none}
/* Stage labels are namespaced: a Booked lead is attention, a completed booking task stays good. */
.pill.stage-new,.pill.stage-contacted{background:var(--info-soft);color:var(--info)}
.pill.stage-booked,.pill.stage-quoted{background:var(--warn-soft);color:var(--warn)}
.pill.stage-won{background:var(--good-soft);color:var(--good)}
.pill.stage-lost{background:var(--surface-2);color:var(--muted)}
.chips{display:flex;gap:7px;flex-wrap:wrap;min-width:0}
.chip{display:inline-flex;align-items:center;gap:4px;min-height:33px;padding:7px 13px;border:1px solid var(--line);border-radius:6px;font-size:11px;font-weight:750;background:var(--surface);color:var(--muted);text-decoration:none;line-height:1.5;max-width:100%}
.chip:hover{border-color:var(--line-strong);color:var(--fg)}.chip.on{background:var(--fg);color:var(--surface);border-color:var(--fg)}.chip .n{font-size:10px;margin-left:4px;opacity:.8}
.rows{display:grid;min-width:0}.row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5px 12px;padding:17px 22px;border-bottom:1px solid var(--line);text-decoration:none;color:inherit;min-width:0}
.row:last-child{border-bottom:0}.row .t{font-size:12px;font-weight:750;min-width:0;overflow-wrap:anywhere}.row .s{grid-column:1;color:var(--muted);font-size:11px;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.row .r{grid-column:2;grid-row:1/span 2;display:grid;justify-items:end;gap:5px;font-size:10px;color:var(--faint)}
button.row{width:100%;background:transparent;border:0;border-bottom:1px solid var(--line);text-align:left;font:inherit}
a.row:hover,button.row:hover{background:var(--surface-2)}
.empty{padding:42px 24px;color:var(--muted);text-align:center;line-height:1.8;font-size:12px}
.empty b{display:block;color:var(--fg);font-size:18px;font-weight:750;letter-spacing:-.03em;margin-bottom:8px}
.empty-icon{display:grid;place-items:center;width:44px;height:44px;margin:0 auto 16px;border:1px solid var(--line);border-radius:50%;color:var(--gold-text)}
.loading{text-align:center;padding:50px 22px;color:var(--faint);font-size:12px}
.loading:before{content:"";display:block;width:22px;height:22px;border:2px solid var(--line);border-top-color:var(--gold);border-radius:50%;margin:0 auto 12px;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
/* Approvals — message-first, not a wall of oversized cards. */
.approval{display:grid;gap:12px;padding:21px 22px;border-bottom:1px solid var(--line);min-width:0}.approval:last-child{border-bottom:0}
.approval-top{display:flex;align-items:center;flex-wrap:wrap;gap:9px;min-width:0}.approval-top .about{font-weight:800;font-size:13px}.approval-top time{margin-left:auto;font-size:10px;color:var(--faint)}
.approval .summary{font-size:12px;color:var(--muted);overflow-wrap:anywhere}.draft{background:var(--surface-2);border:1px solid var(--line);border-left:2px solid var(--gold-line);padding:14px 16px;border-radius:6px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.85}
.draft .meta{display:block;margin-bottom:8px;font-size:10px;font-weight:650;color:var(--muted);line-height:1.65}.result{font-size:11px;color:var(--muted);line-height:1.8}.approval textarea.input{font-size:12px}
/* Conversations */
.convo{display:grid;grid-template-columns:minmax(240px,29%) minmax(0,1fr);min-height:610px;overflow:hidden}
.convo-list{display:flex;flex-direction:column;border-right:1px solid var(--line);min-width:0}.convo-list .search{padding:15px;border-bottom:1px solid var(--line)}.convo-list .search input{font-size:11px;background:var(--surface-2)}
.convo-items{overflow:auto;max-height:78vh;scrollbar-width:thin}
.convo-item{display:grid;gap:5px;width:100%;padding:18px 18px 16px;background:transparent;border:0;border-bottom:1px solid var(--line);text-align:left;min-width:0}.convo-item:hover{background:var(--surface-2)}.convo-item.on{background:var(--gold-soft);box-shadow:inset 2px 0 var(--gold)}
.convo-item .top{display:flex;gap:8px;align-items:baseline;min-width:0}.convo-item .name{font-size:12px;font-weight:800;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.convo-item time{margin-left:auto;flex-shrink:0;font-size:9px;color:var(--faint)}
.convo-item .last{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}.convo-item .tags{display:flex;gap:4px;flex-wrap:wrap;margin-top:4px}.convo-item .pill{font-size:9px;padding:2px 6px}
.thread{display:flex;flex-direction:column;min-width:0}.thread-head{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:20px 24px;border-bottom:1px solid var(--line)}.thread-head .contact{display:grid;min-width:0}.thread-head .contact span{font-size:11px;color:var(--muted);overflow-wrap:anywhere}.thread-head h2{font-size:19px}
.bubbles{display:flex;flex-direction:column;gap:12px;padding:25px;max-height:55vh;overflow:auto;min-height:160px}
.bubble{max-width:min(83%,560px);padding:12px 15px;border-radius:12px;font-size:12px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.bubble.them{align-self:flex-start;background:var(--bubble-them);border-bottom-left-radius:3px}.bubble.us{align-self:flex-end;background:var(--bubble-us);color:var(--bubble-us-fg);border-bottom-right-radius:3px}.bubble.call{align-self:center;border:1px dashed var(--line-strong);background:transparent;color:var(--muted);font-size:11px;border-radius:5px;text-align:center}
.bubble-meta{font-size:9px;color:var(--faint);align-self:flex-start;margin-top:-7px}.bubble-meta.us{align-self:flex-end}.thread-drafts{border-top:1px solid var(--line);background:var(--report-paper)}.thread-notes{padding:16px 24px;border-top:1px solid var(--line);font-size:12px;color:var(--muted);white-space:pre-wrap}.thread-notes summary{cursor:pointer;font-weight:750;color:var(--fg)}.back-link{display:none}
.lead-details{border-bottom:1px solid var(--line);background:var(--surface-2);padding:17px 24px;display:grid;gap:15px}
.lead-details-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.lead-details-top .eyebrow{font-size:9px}.lead-details-top .actions{margin-left:auto}
.lead-facts{display:grid;grid-template-columns:1.65fr 1fr 1fr;gap:13px 25px;margin:0;min-width:0}.lead-facts>div{min-width:0}.lead-facts dt{font-size:9px;text-transform:uppercase;letter-spacing:.07em;font-weight:750;color:var(--faint);margin-bottom:4px}.lead-facts dd{font-size:11px;margin:0;overflow-wrap:anywhere;font-weight:650}
.lead-outcome-form{background:var(--surface);border:1px solid var(--gold-line);padding:18px;border-radius:8px;display:grid;gap:14px}.lead-outcome-form h3{font-size:13px}.lead-outcome-form .form-row{grid-template-columns:1fr 1fr}.lead-outcome-form .field-wide{grid-column:1/-1}.lead-outcome-form .actions{justify-content:flex-end}.lead-outcome-form textarea{min-height:70px}.outcome-warning{font-size:11px;color:var(--warn);margin:0}
/* Tables remain real tables; narrow versions reflow every field with data-label. */
.table-wrap{min-width:0;max-width:100%;overflow-x:auto;border-radius:inherit}
table{border-collapse:collapse;width:100%;font-size:12px}
th{text-align:left;font-size:9px;letter-spacing:.07em;text-transform:uppercase;font-weight:750;color:var(--faint);padding:12px 17px;border-bottom:1px solid var(--line);white-space:nowrap;background:var(--surface-2)}
td{padding:16px 17px;border-bottom:1px solid var(--line);vertical-align:top;overflow-wrap:anywhere}tr:last-child td{border-bottom:0}
td.n,th.n{text-align:right;font-family:var(--font-data);font-variant-numeric:tabular-nums;white-space:nowrap}
td .sub{display:block;font-size:10px;color:var(--muted);line-height:1.75;margin-top:4px}.click{cursor:pointer}.click:hover td{background:var(--surface-2)}
.chart{width:100%;height:auto;display:block}.chart .grid{stroke:var(--line);stroke-width:1;stroke-dasharray:3 5}.chart .axis{fill:var(--faint);font:10px var(--font-data)}.chart .bar-a{fill:var(--gold)}.chart .bar-b{fill:var(--bar-other)}
.legend{display:flex;gap:16px;flex-wrap:wrap;color:var(--muted);font-size:10px;align-items:center}.legend i{display:inline-block;width:8px;height:8px;vertical-align:0;margin-right:6px;border-radius:2px}.legend .line-key{width:15px;height:2px;background:var(--chart-line);border-radius:0;vertical-align:3px}
/* Billing, settings, drawers: original selectors preserved. */
.balance{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:18px;padding:25px 24px}.balance .big{font-size:42px;font-weight:750;line-height:1.3;letter-spacing:-.05em}.balance .big small{font-size:15px;font-weight:500;color:var(--muted);margin-left:8px;letter-spacing:-.02em}
.meter{height:5px;background:var(--surface-3);border-radius:10px;overflow:hidden}.meter i{display:block;height:100%;background:var(--gold);border-radius:10px}.meter.warn i{background:var(--warn)}.meter.bad i{background:var(--bad)}
.kv{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 20px;margin:0;font-size:11px}.kv dt{color:var(--muted)}.kv dd{margin:0;text-align:right;font-family:var(--font-data);font-weight:650;overflow-wrap:anywhere}.buy{display:flex;gap:7px;flex-wrap:wrap}.buy .btn{flex:1 1 60px}
.tool{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px 18px;padding:21px 22px;border-bottom:1px solid var(--line)}.tool:last-child{border-bottom:0}.tool .s{font-size:11px;line-height:1.85;color:var(--muted);margin-top:6px}.tool>.actions{max-width:155px}.tool b{font-size:12px}
.drawer-back{position:fixed;inset:0;background:#10171266;backdrop-filter:blur(3px);z-index:70;animation:fade-in .15s ease-out}
.drawer{position:fixed;inset:0 0 0 auto;width:min(600px,100%);z-index:71;background:var(--surface);border-left:1px solid var(--line);box-shadow:-15px 0 60px #0002;display:flex;flex-direction:column;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px);animation:slide-in .2s ease-out}
.drawer-head{display:flex;align-items:flex-start;gap:14px;padding:24px;border-bottom:1px solid var(--line)}.drawer-head>div{flex:1;min-width:0}.drawer-head h2{font-size:25px;margin:9px 0}.drawer-body{display:grid;align-content:start;gap:24px;padding:24px;overflow:auto;overscroll-behavior:contain}.report{font-size:12px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}
@keyframes slide-in{from{transform:translateX(30px);opacity:.5}to{transform:translateX(0);opacity:1}}@keyframes fade-in{from{opacity:0}to{opacity:1}}
.toasts{position:fixed;right:20px;bottom:calc(20px + env(safe-area-inset-bottom,0px));display:grid;gap:8px;max-width:min(420px,calc(100% - 40px));z-index:90;pointer-events:none}
.toast{padding:15px 18px;background:var(--ink);color:var(--ink-fg);border-left:3px solid #d1b36f;border-radius:7px;box-shadow:0 8px 35px #0002;font-size:12px;line-height:1.7;animation:fade-in .2s}.toast.error{border-left-color:var(--bad)}
/* Dashboard: a working brief, with results on a quieter second band. */
.dashboard-head{align-items:center}.dashboard-head h1{font-size:clamp(30px,3.3vw,48px);max-width:22ch}.dashboard-head h1 em{font-style:normal;color:var(--gold-text)}
.approval-nudge{display:flex;gap:16px;align-items:center;padding:14px 18px;border:1px solid var(--gold-line);background:var(--gold-soft);border-radius:8px;max-width:360px;text-decoration:none;color:var(--fg)}.approval-nudge>.num{font-size:36px;font-weight:750;line-height:1;color:var(--gold-text)}.approval-nudge b{display:block;font-size:12px}.approval-nudge span span{font-size:10px;color:var(--muted)}.approval-nudge>.ico{margin-left:12px;color:var(--gold-text);width:17px}
.dashboard-ops{margin-bottom:-5px}
.results-strip{background:var(--report-paper);border:1px solid var(--gold-line);border-radius:10px;overflow:hidden}
.results-strip-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;padding:12px 20px;border-bottom:1px solid var(--gold-line)}.results-strip-head h2{font-size:12px;letter-spacing:-.02em}.results-strip-head .eyebrow{font-size:9px;color:var(--gold-text)}
.results-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:20px 0}.results-stats .stat{padding:0 20px;gap:5px;border-right-color:var(--gold-line)}.results-stats .value{font-size:27px}.stat-change{font-size:9px;font-weight:750;display:flex;align-items:center;gap:3px;line-height:1.6}.stat-change.good{color:var(--good)}.stat-change.bad{color:var(--bad)}.stat-change.neutral{color:var(--faint)}.stat-change .ico{width:11px;height:11px}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:24px;align-items:start}.dashboard-work .panel-head{border-bottom:0;padding-bottom:6px}.dashboard-work .panel-body{padding-top:6px}.dashboard-credit{background:var(--ink);color:var(--ink-fg);border:0;border-radius:10px;overflow:hidden;position:relative;padding:23px}.dashboard-credit .eyebrow{color:var(--ink-muted)}.dashboard-credit .big{font-size:40px;line-height:1.4;letter-spacing:-.055em;font-weight:750;color:#e2c785}.dashboard-credit .big small{font-size:12px;letter-spacing:0;font-weight:500;color:var(--ink-muted)}.dashboard-credit .hint{color:var(--ink-muted)}.credit-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #ffffff25;margin-top:18px;padding-top:15px}.credit-footer a{color:#e7cc8f;text-decoration:none;font-size:11px;font-weight:750}.credit-footer .ico{width:13px}
/* Reporting: editorial financial statement, not another card dashboard. */
.report-head{padding:0 0 4px}.report-head h1{font-size:44px}.report-head .eyebrow{color:var(--gold-text)}.report-range{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.report-range .input{min-width:145px;width:auto;min-height:36px;font-size:11px;background:var(--surface)}.report-range .ico{color:var(--faint)}.custom-range{display:flex;gap:8px;flex-wrap:wrap;align-items:end;max-width:100%}.custom-range .input{min-width:0;width:145px}.custom-range .btn{min-height:36px}
.report-period{font-size:10px;color:var(--faint);text-align:right;margin-top:6px}
.report-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--surface)}
.report-kpis .stat{padding:22px 25px;gap:7px;border-bottom:1px solid var(--line);border-right:1px solid var(--line);position:relative}
.report-kpis .stat:nth-child(4n){border-right:0}.report-kpis .stat:nth-child(n+5){border-bottom:0}.report-kpis .stat:first-child{padding-left:25px}.report-kpis .value{font-size:37px}.report-kpis .stat:nth-child(5){background:var(--gold-soft)}.report-kpis .stat:nth-child(5) .value{color:var(--gold-text)}.report-kpis .stat:nth-child(5):before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--gold)}
.report-primary{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(270px,1fr);gap:28px;align-items:stretch;min-width:0}
.revenue-section{min-width:0;padding:23px;border:1px solid var(--line);border-radius:10px;background:var(--surface);display:flex;flex-direction:column}
.report-section-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap;margin-bottom:14px}.report-section-head h2{font-size:17px}.report-section-head p{font-size:10px;color:var(--faint);margin:5px 0 0}
.chart-summary{display:flex;align-items:baseline;gap:10px;margin:0 0 12px;flex-wrap:wrap}.chart-summary strong{font-size:36px;line-height:1.4;letter-spacing:-.055em;font-weight:750}.chart-summary span{font-size:10px;color:var(--muted)}
.chart-segment{display:inline-flex;border:1px solid var(--line);padding:3px;border-radius:6px;gap:2px;flex-shrink:0}.chart-segment button{background:transparent;border:0;border-radius:4px;padding:5px 9px;font-size:10px;color:var(--muted);font-weight:750}.chart-segment button.on{background:var(--surface-3);color:var(--fg)}
.revenue-chart{width:100%;height:auto;display:block;overflow:visible;margin:auto 0 4px}.revenue-chart .grid{stroke:var(--line);stroke-dasharray:3 5;stroke-width:1}.revenue-chart text{font-family:var(--font-data);font-size:10px;fill:var(--faint)}.revenue-chart .revenue-bar{fill:var(--gold);opacity:.8}.revenue-chart .revenue-bar:hover{opacity:1}.revenue-chart .won-line{fill:none;stroke:var(--chart-line);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.revenue-chart .won-point{fill:var(--surface);stroke:var(--chart-line);stroke-width:2}
.chart-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:15px;flex-wrap:wrap}.chart-foot .hint{font-size:9px}
.funnel-section{border-top:2px solid var(--gold);padding-top:20px;min-width:0}.funnel-list{display:grid;gap:16px;margin:22px 0 16px}.funnel-step{position:relative;display:grid;grid-template-columns:1fr auto;gap:7px 10px}.funnel-step .step-name{font-size:12px;font-weight:750;display:flex;gap:9px;align-items:center}.funnel-step .step-number{font-size:9px;color:var(--faint);font-weight:500}.funnel-step .step-count{font-size:18px;line-height:1;letter-spacing:-.04em;font-weight:750}.funnel-step .step-bar{height:5px;background:var(--surface-3);border-radius:2px;grid-column:1/-1;overflow:hidden}.funnel-step .step-bar i{display:block;height:100%;background:var(--gold);border-radius:2px}.funnel-step .step-rate{grid-column:1/-1;font-size:9px;color:var(--faint)}.funnel-step:last-child .step-bar i{background:var(--good)}.funnel-step:last-child .step-count{color:var(--good)}.funnel-note{border-top:1px solid var(--line);padding-top:12px}
.source-section{background:var(--surface);border:1px solid var(--line);border-radius:10px;overflow:hidden}.source-section .report-section-head{padding:20px 22px;margin:0}.source-section .table-wrap{border-radius:0}.source-section th{font-size:8px;padding:12px 14px}.source-section td{padding:14px;font-size:11px}.source-name{display:flex;align-items:center;gap:9px;min-width:130px;font-weight:750}.source-icon{display:grid;place-items:center;width:26px;height:26px;border:1px solid var(--line);border-radius:6px;color:var(--muted);background:var(--surface-2);flex-shrink:0}.source-icon .ico{width:13px;height:13px}.table-note{padding:11px 22px;background:var(--surface-2);font-size:10px;color:var(--faint);margin:0}
.report-secondary{display:grid;grid-template-columns:1fr 1fr;gap:28px}
.distribution-section,.lost-section{min-width:0;border-top:1px solid var(--line);padding-top:20px}
.distribution-list{display:grid;gap:15px;margin-top:23px}.distribution-row{display:grid;grid-template-columns:120px minmax(0,1fr) 32px;gap:16px;align-items:center;font-size:11px}.distribution-row .meter{height:7px}.distribution-row .num{font-weight:750;text-align:right}.distribution-row:nth-child(1) .meter i{background:var(--good)}.distribution-row:nth-child(2) .meter i{background:var(--gold)}.distribution-row:nth-child(3) .meter i{background:var(--warn)}.distribution-row:nth-child(4) .meter i{background:var(--bad)}
.lost-reasons{list-style:none;padding:0;margin:15px 0 0;display:grid}.lost-reasons li{display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:11px;padding:10px 0;border-bottom:1px solid var(--line)}.lost-reasons li:last-child{border-bottom:0}.lost-reasons .num{font-weight:750;color:var(--muted)}
.recent-wins{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--surface)}.recent-wins .report-section-head{padding:20px 22px;margin:0}.win-row{display:grid;grid-template-columns:minmax(150px,1.5fr) minmax(100px,1fr) minmax(130px,1fr) minmax(100px,1fr);gap:16px;align-items:center;padding:16px 22px;border-top:1px solid var(--line);font-size:11px;min-width:0}.win-person{display:flex;align-items:center;gap:10px;min-width:0}.avatar{display:grid;place-items:center;width:32px;height:32px;background:var(--surface-2);border:1px solid var(--line);color:var(--muted);border-radius:50%;font-size:9px;font-weight:750;flex-shrink:0}.win-person b{display:block;font-size:12px}.win-person small{display:block;color:var(--faint);font-size:9px}.win-amount{font-size:16px;font-weight:750;letter-spacing:-.035em}.win-source{color:var(--muted);overflow-wrap:anywhere}.win-speed{text-align:right;color:var(--muted);font-size:10px}.win-speed b{color:var(--fg)}
.report-notes{border-top:1px solid var(--line);padding-top:15px;font-size:10px;color:var(--faint)}.report-notes>p{margin:0 0 9px}.report-notes details{max-width:100%}.report-notes summary{font-weight:750;cursor:pointer;color:var(--muted)}.report-notes .definitions{display:grid;gap:8px;margin-top:14px;max-width:100ch}.report-notes .definitions p{margin:0}
.report-empty{padding:80px 25px;min-height:400px}.report-empty .empty-icon{width:60px;height:60px}.report-empty p{max-width:48ch;margin:0 auto 18px}
.admin-stats{grid-template-columns:repeat(4,minmax(0,1fr));padding:0;background:var(--surface)}.admin-stats .stat{padding:20px;border-bottom:1px solid var(--line)}.admin-stats .stat:nth-child(4n){border-right:0}.admin-stats .stat:nth-child(n+5){border-bottom:0}.admin-stats .stat:nth-child(7){background:var(--gold-soft)}.admin-stats .value{font-size:28px}.admin-table table{font-size:10px}.admin-table th{font-size:8px;white-space:normal;min-width:65px;padding:11px 10px}.admin-table td{padding:15px 10px}.admin-table td:first-child{min-width:170px}.admin-table td:last-child{min-width:160px}.admin-table .chips{gap:4px}.admin-table .pill{font-size:9px}.admin-table .influenced{font-weight:800;color:var(--gold-text)}
/* Authentication uses the same actual S2S logo and Manrope. */
.auth{min-height:100vh;min-height:100dvh;display:grid;grid-template-columns:1fr 1fr}.auth-brand{background:var(--ink);color:var(--ink-fg);display:flex;flex-direction:column;justify-content:space-between;gap:50px;padding:48px clamp(25px,5vw,80px)}.auth-brand .brand{padding:0}.auth-brand .brand .logo{width:100px}.auth-brand h1{font-size:clamp(34px,4vw,58px);line-height:1.12;color:var(--ink-fg);max-width:13ch}.auth-brand h1 em{font-style:normal;color:#d4b46d;display:block}.auth-brand p{font-size:13px;line-height:1.9;color:var(--ink-muted);max-width:42ch;margin-top:22px}.auth-feed{display:grid;gap:17px;padding-top:25px;border-top:1px solid #ffffff25}.auth-feed div{display:flex;align-items:baseline;gap:15px;font-size:11px;line-height:1.7}.auth-feed span{color:#d1b674;font-size:10px;white-space:nowrap;flex-shrink:0}
.auth-form-wrap{min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding:50px 25px}.auth-form{display:grid;gap:20px;width:100%;max-width:370px}.auth-form h2{font-size:32px}.auth-form .sub{font-size:12px;color:var(--muted);margin:-8px 0 7px}.auth-form .input{font-size:14px;min-height:46px}.auth-form .btn{min-height:45px}.auth-form .field{font-size:12px}.divider{display:flex;align-items:center;gap:15px;color:var(--faint);font-size:10px}.divider:before,.divider:after{content:"";height:1px;background:var(--line);flex:1}.links{display:flex;gap:12px;flex-wrap:wrap;justify-content:space-between}.links button{background:none;border:0;padding:0;font-size:11px;color:var(--gold-text);text-align:left}.google-g{width:18px;height:18px}
/* Small laptops */
@media(max-width:1200px){.main{padding:28px 25px}.topbar{padding-left:25px;padding-right:25px}.stat{padding-left:16px;padding-right:16px}.results-stats .stat{padding:0 15px}.results-stats .value{font-size:25px}.topbar-note{display:none}.dashboard-head h1{font-size:37px}.report-primary{grid-template-columns:minmax(0,1.5fr) minmax(245px,1fr)}.tool{grid-template-columns:1fr}.tool>.actions{max-width:none;justify-content:flex-start!important}.report-kpis .stat{padding:20px}.report-kpis .stat:first-child{padding-left:20px}.report-kpis .value{font-size:32px}.admin-table table{font-size:10px}}
@media(min-width:901px) and (max-width:1100px){.grid-2,.dashboard-grid{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}.stat .label{font-size:10px}.stat .note{font-size:9px}.results-stats .value{font-size:22px}.dashboard-head{align-items:flex-start}.approval-nudge{padding:12px;max-width:285px}.approval-nudge>.num{font-size:28px}.dashboard-head h1{font-size:33px}.report-primary{grid-template-columns:minmax(0,1fr)}.funnel-list{grid-template-columns:repeat(5,minmax(0,1fr));gap:20px}.funnel-step{display:flex;flex-direction:column}.funnel-step .step-count{font-size:25px}.funnel-step .step-bar{width:100%}.funnel-step .step-rate{font-size:8px}.lead-facts{grid-template-columns:1fr 1fr}.balance{grid-template-columns:1fr}.convo{grid-template-columns:minmax(215px,32%) minmax(0,1fr)}}
/* Phones/tablets: body never scrolls sideways; only navigation tabs do. */
@media(max-width:900px){
 .shell{grid-template-columns:minmax(0,1fr);min-height:calc(100dvh - 107px)}.side,.topbar{display:none}
 .mobile-top{display:grid;gap:12px;padding:12px max(16px,env(safe-area-inset-right,0px)) 0 max(16px,env(safe-area-inset-left,0px));background:var(--ink);color:var(--ink-fg);position:sticky;top:0;z-index:40;padding-top:max(12px,env(safe-area-inset-top,0px));max-width:100%;min-width:0}
 .mobile-top .bar{display:flex;align-items:center;gap:10px;min-width:0}.mobile-top .logo{width:45px}.mobile-top .switcher{flex:1;min-width:0}.mobile-top .switcher select{background:var(--ink-2);border-color:#ffffff20;color:var(--ink-fg);font-size:11px;padding-left:10px}.mobile-top .switcher:after{color:var(--ink-muted)}
 .mobile-top .menu-btn{flex-shrink:0;background:transparent;border:0;color:var(--ink-muted);font-size:10px;padding:8px 0;min-height:36px}.mobile-top .icon-button{border-color:#ffffff22;color:var(--ink-muted);width:30px;height:32px}.mobile-top .tabs{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;min-width:0;max-width:100%;overscroll-behavior-x:contain}.mobile-top .tabs::-webkit-scrollbar{display:none}.mobile-top .tabs a{color:var(--ink-muted);text-decoration:none;white-space:nowrap;font-size:11px;flex-shrink:0;padding:9px 5px 12px;border-bottom:2px solid transparent;font-weight:650}.mobile-top .tabs a.on{color:#ecd59d;border-bottom-color:#d3ad61}.mobile-top .tabs .count{background:#d3b671;color:#292214;border-radius:4px;font-size:9px;padding:2px 4px;margin-left:5px}
 .main{padding:25px max(20px,env(safe-area-inset-right,0px)) 25px max(20px,env(safe-area-inset-left,0px))}.page{gap:23px}.page-head h1{font-size:34px}.page-head p{font-size:12px}.dashboard-head h1{font-size:36px}
 .grid-2,.dashboard-grid{grid-template-columns:minmax(0,1fr)}.dashboard-grid>.stack{grid-template-columns:1fr 1fr;align-items:start}.dashboard-grid>.stack .panel{grid-column:1/-1}.dashboard-grid>.stack .dashboard-credit{grid-column:1/-1}
 .convo{grid-template-columns:minmax(0,1fr);min-height:540px}.convo.open .convo-list{display:none}.convo:not(.open) .thread{display:none}.convo-list{border-right:0}.convo-items{max-height:none}.back-link{display:inline-flex}.thread-head{padding:18px}.lead-details{padding:16px 18px}.bubbles{padding:20px}.thread-notes{padding:16px 18px}
 .report-kpis .value{font-size:28px}.report-kpis .stat{padding:18px}.report-kpis .stat:first-child{padding-left:18px}.report-primary{grid-template-columns:minmax(0,1fr)}.funnel-list{grid-template-columns:repeat(5,minmax(0,1fr));gap:20px}.funnel-step{display:flex;flex-direction:column}.funnel-step .step-bar{width:100%}.funnel-step .step-count{font-size:25px}.funnel-step .step-rate{font-size:8px}.report-secondary{gap:24px}.distribution-row{grid-template-columns:95px 1fr 25px;gap:10px}
 .auth{grid-template-columns:1fr}.auth-brand{padding:30px;gap:28px}.auth-brand h1{max-width:22ch;font-size:36px}.auth-brand p{margin-top:16px}.auth-feed{gap:12px}.auth-form-wrap{min-height:0;padding:45px 25px}.auth-form-wrap:only-child{min-height:100dvh}.auth-brand .brand .logo{width:78px}
 .table-wrap{overflow-x:visible}table.responsive-table,table.responsive-table tbody{display:block;width:100%}table.responsive-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
 table.responsive-table tbody tr{display:grid;grid-template-columns:1fr 1fr;padding:14px 18px;gap:12px 17px;border-bottom:1px solid var(--line)}table.responsive-table tbody tr:last-child{border-bottom:0}
 table.responsive-table td{display:flex;flex-direction:column;gap:3px;width:auto;min-width:0!important;max-width:100%;padding:0!important;border:0;text-align:left!important;white-space:normal!important;font-size:12px;overflow-wrap:anywhere}
 table.responsive-table td:before{content:attr(data-label);font-size:9px;font-family:var(--font-body);font-weight:750;letter-spacing:.055em;text-transform:uppercase;color:var(--faint);margin-bottom:2px}table.responsive-table td .sub{margin-top:0;font-size:10px}table.responsive-table td:first-child{grid-column:1/-1}table.responsive-table td[colspan]{grid-column:1/-1;display:block}table.responsive-table td[colspan]:before{display:none}table.responsive-table td .pill{align-self:flex-start}
 .activity-table td:nth-child(3),.leads-table td:nth-child(3){grid-column:1/-1}.admin-table td:last-child{grid-column:1/-1}.source-section .source-name{min-width:0}.source-section td:first-child:before{display:none}.admin-table table td:last-child{min-width:0}.win-row{grid-template-columns:1.5fr 1fr;gap:7px 16px}.win-source{padding-left:42px}.win-amount{text-align:right}.win-speed{text-align:right}
}
@media(max-width:600px){
 .main{padding:24px 16px}.page{gap:22px}.page-head h1,.dashboard-head h1{font-size:30px;line-height:1.28}.page-head .eyebrow{font-size:9px;margin-bottom:10px}.page-head p{font-size:11px}.dashboard-head{gap:18px}.approval-nudge{max-width:none;width:100%;padding:13px 16px;border-radius:7px}.approval-nudge>.num{font-size:30px}.approval-nudge>.ico{margin-left:auto}
 .stats{grid-template-columns:repeat(2,minmax(0,1fr));padding:0}.stat{padding:16px 14px;border-bottom:1px solid var(--line);border-right:0}.stat:first-child{padding-left:14px}.stat:nth-child(odd){border-right:1px solid var(--line)}.stat:nth-last-child(-n+2){border-bottom:0}.stat:last-child:nth-child(odd){grid-column:1/-1;border-right:0;border-top:1px solid var(--line)}.stat .value{font-size:29px}.stat .label{font-size:10px}.stat .note{font-size:9px}
 .results-stats{grid-template-columns:repeat(2,minmax(0,1fr));padding:0}.results-stats .stat{padding:16px 14px;border-bottom:1px solid var(--gold-line);border-right:0}.results-stats .stat:nth-child(odd){border-right:1px solid var(--gold-line)}.results-stats .stat:last-child{grid-column:1/-1;border-right:0;border-bottom:0;border-top:0}.results-stats .value{font-size:26px}.results-strip-head{padding:11px 14px}.results-strip-head .eyebrow{font-size:8px}.results-strip-head .btn{font-size:10px;min-height:28px;padding:5px 7px}.stat-change{font-size:9px}
 .panel-head{padding:16px}.panel-body{padding:17px 16px}.panel-foot{padding:15px 16px}.panel-head h2{font-size:15px}.approval{padding:18px 16px}.approval-top .about{font-size:12px}.approval .summary{font-size:11px}.draft{font-size:12px;padding:13px 12px}.draft .meta{font-size:9px}.approval .btn{font-size:11px;padding:10px 12px;min-height:39px}.approval-top{gap:7px}.row{padding:16px;gap:5px 10px}.row .r{font-size:9px}.row .t{font-size:11px}.row .s{font-size:10px}.row .r .pill{font-size:9px}.section-heading h2{font-size:14px}.section-heading .hint{font-size:9px}
 .report-head{gap:18px}.report-range{width:100%}.report-range>.input{flex:1}.report-period{text-align:left;font-size:9px}.custom-range{width:100%;gap:7px}.custom-range .field{flex:1;min-width:0}.custom-range .input{width:100%;font-size:12px}.report-kpis{grid-template-columns:1fr 1fr}.report-kpis .stat{padding:17px 14px!important;border-right:1px solid var(--line)!important;border-bottom:1px solid var(--line)!important}.report-kpis .stat:nth-child(2n){border-right:0!important}.report-kpis .stat:nth-last-child(-n+2){border-bottom:0!important}.report-kpis .stat:last-child{grid-column:auto;border-top:0}.report-kpis .value{font-size:28px}.report-kpis .note{font-size:9px}
 .revenue-section{padding:18px 14px}.report-section-head{gap:10px}.report-section-head h2{font-size:16px}.report-section-head p{font-size:9px}.chart-summary strong{font-size:32px}.chart-summary span{font-size:9px}.revenue-chart text{font-size:12px}.chart-foot .legend{font-size:9px;gap:12px}.chart-foot .hint{font-size:8px}.revenue-chart{min-height:190px}.chart-segment button{font-size:9px;padding:4px 6px}
 .funnel-list{display:grid;grid-template-columns:1fr;gap:16px;margin-top:20px}.funnel-step{display:grid;grid-template-columns:1fr auto;gap:7px}.funnel-step .step-count{font-size:21px}.funnel-step .step-bar{grid-column:1/-1;height:6px}.funnel-step .step-rate{font-size:9px}.report-secondary{grid-template-columns:1fr;gap:24px}.distribution-row{grid-template-columns:118px 1fr 28px;font-size:11px;gap:12px}
 .source-section .report-section-head,.recent-wins .report-section-head{padding:17px 16px}.source-section th{font-size:9px}.source-section tbody tr{gap:12px 20px}.source-section tbody tr:nth-child(even){background:var(--surface-2)}.table-note{padding:12px 16px;font-size:9px}.win-row{padding:16px;gap:8px}.win-person b{font-size:11px}.win-person .avatar{width:28px;height:28px}.win-person{gap:8px}.win-source{padding-left:36px;font-size:10px}.win-speed{font-size:9px}.win-amount{font-size:15px}
 .lead-facts{grid-template-columns:1fr 1fr;gap:13px}.lead-facts>div:first-child{grid-column:1/-1}.lead-details-top{gap:9px}.lead-details-top .actions{margin-left:0}.lead-outcome-form{padding:15px 12px}.lead-outcome-form .form-row{gap:10px}.thread-head{padding:17px 15px}.thread-head .contact span{font-size:10px}.thread-head .chips{width:100%;margin-left:0!important}.thread-head h2{font-size:18px}.thread-notes{font-size:11px}.lead-details{padding:15px}.bubbles{padding:18px 15px}.bubble{max-width:89%;font-size:12px}.bubble-meta{font-size:9px}.convo-item .name{font-size:13px}.convo-item time{font-size:10px}.convo-list .search input{font-size:14px}
 .tool{padding:18px 16px;grid-template-columns:1fr}.tool .actions{justify-content:flex-start!important}.balance{grid-template-columns:1fr;padding:22px 16px}.balance .big{font-size:37px}.balance .big small{font-size:13px}.kv{gap:10px 13px;font-size:11px}.form-row{grid-template-columns:1fr}.buy .prefix{flex:1 1 140px}.drawer-head{padding:20px 16px}.drawer-body{padding:20px 16px}.drawer-head h2{font-size:23px}.drawer .approval{padding:16px 13px}.drawer-head .btn{flex-shrink:0}.drawer-head .eyebrow{font-size:9px}
 .admin-stats{grid-template-columns:1fr 1fr}.admin-stats .stat{padding:17px 14px;border-right:0;border-bottom:1px solid var(--line)}.admin-stats .stat:nth-child(odd){border-right:1px solid var(--line)}.admin-stats .stat:nth-child(n+5){border-bottom:1px solid var(--line)}.admin-stats .stat:nth-last-child(-n+2){border-bottom:0}.admin-stats .value{font-size:26px}
 .auth-brand{padding:27px 24px;gap:30px}.auth-brand h1{font-size:33px}.auth-brand p{font-size:12px}.auth-feed{gap:13px}.auth-feed div{font-size:10px}.auth-feed span{font-size:9px}.auth-form-wrap{padding:40px 24px}.auth-form h2{font-size:29px}.auth-form .input,.input{font-size:16px}.lead-outcome-form .input{font-size:16px}.report-range .input{font-size:13px}.links{gap:14px}.page-footer{font-size:9px;gap:8px}.topbar-note{display:none}.dashboard-work .legend{font-size:9px;gap:12px}.toasts{right:16px;bottom:16px;max-width:calc(100% - 32px)}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
@media print{.side,.mobile-top,.topbar,.toasts,.page-footer,.report-range,.actions,.chart-segment{display:none!important}.shell{display:block}.main{padding:0}.page{max-width:none}.panel,.report-kpis,.revenue-section,.source-section,.recent-wins{break-inside:avoid}.table-wrap{overflow:visible}body{background:#fff;color:#222}}
/* Detail-header alignment: only the outcome actions move to the right. */
.lead-details-top>.actions:first-child{margin-left:0}


/* Seen to Sold — workspace components.
   Appended to the compatibility foundation; no framework or external UI package.
   Fonts remain Google Fonts only. Content follows the existing demo's data model. */
:root {
  --bg:#f3f4f4;--surface:#fff;--surface-2:#f6f7f7;--surface-3:#e9ecec;
  --fg:#202427;--muted:#636b70;--faint:#737a7e;--line:#e2e6e7;--line-strong:#c6cdcf;
  --ink:#f8f9f9;--ink-2:#eef0f0;--ink-fg:#23282b;--ink-muted:#657075;
  --gold:#ba913f;--gold-text:#80601f;--gold-soft:#faf5e9;--gold-line:#e7d9b8;--gold-grad:var(--gold);
  --good:#277151;--good-soft:#edf5f0;--good-btn:#23684a;--warn:#926213;--warn-soft:#faf2df;
  --bad:#b04435;--bad-soft:#fbefec;--info:#4b697e;--info-soft:#eff3f6;
  --bubble-them:#f0f2f3;--bubble-us:#252c30;--bubble-us-fg:#fff;
  --report-paper:var(--surface);--chart-line:#343f46;--focus:#89651f;--bar-other:#c6ced0;
  --font-display:'Manrope',Arial,sans-serif;--font-body:'Manrope',Arial,sans-serif;--font-data:'Manrope',Arial,sans-serif;
  --radius:6px;--side:226px;--shadow:none;--path-selected:#fbf8ef;--path-line:#899398;
  color-scheme:light;
}

:root[data-sidebar="collapsed"]{--side:64px}
body{font-size:14px;line-height:1.6;background:var(--bg);font-optical-sizing:auto}
h1,h2,h3{font-family:var(--font-display);text-wrap:pretty;letter-spacing:-.035em}
h1,.page-head h1{font-size:27px;font-weight:750;line-height:1.25}
h2{font-size:16px;font-weight:750}h3{font-size:14px;font-weight:750}
.eyebrow,th,.nav-label,.lead-facts dt,.demo-flag,table.responsive-table td::before{letter-spacing:0;text-transform:none}
.eyebrow{font-size:12px}.hint{font-size:12px;line-height:1.7;color:var(--muted)}
.ico{width:16px;height:16px;flex-shrink:0}
:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
::selection{background:var(--gold-soft);color:var(--fg)}
.btn{font-size:12px;font-weight:700;min-height:38px;border-radius:5px;padding:9px 13px;box-shadow:none;line-height:1.45}
.btn.small{font-size:12px;min-height:34px;border-radius:4px}
.btn.primary{background:var(--gold);color:#211b0e;border-color:transparent}
.btn.primary:hover:not(:disabled){background:var(--gold);filter:brightness(1.06)}
.btn.good{background:var(--fg);color:var(--surface);border-color:var(--fg)}
.btn.good:hover:not(:disabled){background:var(--fg);opacity:.88}
.btn:disabled,.btn[aria-disabled="true"]{opacity:.45;cursor:not-allowed;transform:none}
.btn.danger{color:var(--bad)}
.icon-button{width:34px;height:34px;border:0;border-radius:4px;color:var(--muted)}
.input,select.input,textarea.input{font-size:14px;border-radius:5px;min-height:41px}
label.field{font-size:12px}.form-row{gap:14px}.msg{font-size:13px;border-radius:4px}
.pill{font-size:11px;font-weight:650;border-radius:4px;padding:3px 7px;line-height:1.45}
.pill:before{width:5px;height:5px}.stage-new,.stage-contacted{color:var(--info);background:var(--info-soft)}
.stage-booked,.stage-quoted{color:var(--warn);background:var(--warn-soft)}
.stage-won{color:var(--good);background:var(--good-soft)}.stage-lost{color:var(--muted);background:var(--surface-3)}
.text-link{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:650;text-decoration:none;color:var(--muted);white-space:nowrap;min-height:32px}
.text-link:hover{color:var(--fg)}.text-link .ico{width:13px;height:13px}
/* The rail borrows the compact mechanics requested, not a GHL screen design. */
.shell{transition:grid-template-columns .18s ease;min-height:100dvh}
.side{background:var(--ink);border-right:1px solid var(--line);color:var(--ink-fg);padding:22px 12px 18px;gap:23px;z-index:35}
.brand{padding:0 5px;gap:15px;min-height:31px}.brand .logo{width:75px}.brand-caption{border-left-color:var(--line-strong);font-size:10px;color:var(--muted);font-weight:500}
.nav{gap:7px;scrollbar-color:var(--line-strong) transparent}.nav a{min-height:39px;font-size:12px;color:var(--ink-muted);border-radius:5px}
.nav svg{width:16px;height:16px;stroke-width:1.6}.nav a.on{background:var(--fg);color:var(--surface);box-shadow:none}
.nav a:hover{color:var(--ink-fg);background:var(--ink-2)}.nav a.on:hover{background:var(--fg);color:var(--surface)}
.nav .count{color:#272011;background:var(--gold);border-radius:4px;font-size:10px}
.nav-label{font-size:10px;font-weight:600;color:var(--muted);padding:12px 10px 7px}
.side .switcher select{background:var(--surface);color:var(--fg);border:1px solid var(--line);font-size:12px;border-radius:5px;min-height:41px}
.side .switcher option{background:var(--surface);color:var(--fg)}.side .switcher:after{color:var(--muted)}
.side-foot{border-top:1px solid var(--line);gap:8px;padding-top:12px}.side-foot .who{font-size:11px;color:var(--muted)}.side-foot .who b{color:var(--fg)}
.side-foot button{font-size:12px;color:var(--muted);border-radius:4px}.side-foot button:hover{background:var(--ink-2);color:var(--fg)}
.side-foot .sidebar-toggle{background:var(--gold);color:#242014;border:2px solid var(--bg);width:25px;height:25px;min-height:25px;box-shadow:none;right:-25px;bottom:5px}
:root[data-sidebar="collapsed"] .side{padding-left:10px;padding-right:10px;gap:23px}
:root[data-sidebar="collapsed"] .brand .logo{width:40px}
:root[data-sidebar="collapsed"] .nav-label{border-top-color:var(--line-strong)}
:root[data-sidebar="collapsed"] .side-foot .sidebar-toggle{right:-24px}
:root[data-sidebar="collapsed"] .nav a{min-height:39px;padding:10px}
:root[data-sidebar="collapsed"] .nav .count{right:0;top:-1px;min-width:13px;line-height:13px;font-size:8px;border:1px solid var(--surface)}
.topbar{min-height:62px;padding:12px 30px;gap:16px;background:var(--surface)}
.topbar .switcher{width:204px}.topbar .switcher select{background:none;padding:8px 24px 8px 0;border-radius:0;font-size:13px;font-weight:700}
.topbar-left,.topbar-right{gap:16px}.breadcrumb{font-size:12px}.breadcrumb:before{margin-right:16px}
.demo-flag{font-size:10px;background:var(--surface-2);border:1px solid var(--line);color:var(--muted);font-weight:500;padding:3px 6px;border-radius:4px;white-space:nowrap}
.profile-dot{width:28px;height:28px;font-size:10px;background:var(--fg);color:var(--surface)}
.workspace-search{display:flex;align-items:center;gap:9px;padding:5px 0;background:none;border:0;color:var(--faint);font-size:11px}
.workspace-search .ico{width:14px;height:14px}.workspace-search:hover{color:var(--fg)}
kbd{font:10px var(--font-body);padding:2px 4px;border:1px solid var(--line);border-bottom-width:2px;border-radius:3px;color:var(--muted);background:var(--surface)}
.main{padding:27px 30px 24px}.page{gap:26px;max-width:1580px}.page-head{align-items:center}.page-head p{font-size:13px;line-height:1.6;margin-top:8px}
.page-head .eyebrow{margin-bottom:7px}.page-footer{font-size:11px;border:0;margin-top:27px;padding-top:0;color:var(--muted)}
.footer-dot{width:3px;height:3px;display:inline-block;background:var(--faint);vertical-align:middle;margin:0 8px}
.panel{border-radius:6px;box-shadow:none}.panel-head{padding:17px 20px}.panel-body{padding:19px 20px}.panel-foot{padding:15px 20px}
.panel-head h2{font-size:15px}.chip{font-size:12px;border-radius:4px;min-height:34px;padding:7px 12px}
.chip.on{background:var(--fg);color:var(--surface);border-color:var(--fg)}
.row{padding:15px 20px;gap:4px 14px}.row .t{font-size:13px}.row .s{font-size:12px}.row .r{font-size:10px}
.empty{padding:46px 24px;font-size:13px;line-height:1.8}.empty b{font-size:16px}
/* The customer-path canvas is the identifying product component. */
.workspace-head{min-height:62px}.workspace-head h1{font-size:27px;letter-spacing:-.045em}
.workspace-head p{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:9px;font-size:12px}.workspace-head .pill{font-size:10px;padding:2px 6px}
.head-separator{height:12px;width:1px;background:var(--line-strong);margin:0 3px}
.review-link{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:650;text-decoration:none;color:var(--fg);padding:10px 13px;background:var(--surface);border:1px solid var(--line);border-radius:5px}
.review-link .ico{width:13px;height:13px}.review-dot{width:6px;height:6px;border-radius:50%;background:var(--gold)}
/* Review surface stays attached to the selected path. */
.decision-dock{border-left:1px solid var(--line);background:var(--surface-2);display:flex;flex-direction:column;min-width:0}
.dock-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:18px 21px;border-bottom:1px solid var(--line);font-size:11px;font-weight:650}
.dock-heading>span:first-child{display:flex;align-items:center;gap:8px}.dock-heading .ico{width:14px;height:14px;color:var(--muted)}.dock-status{font-size:10px;color:var(--gold-text);font-weight:600}
.dock-person{padding:23px 21px 16px}.dock-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.dock-person h2{font-size:20px;font-weight:750}.dock-person p{font-size:11px;color:var(--muted);margin:7px 0 0;line-height:1.8}.dock-person p span{color:var(--line-strong);margin:0 2px}
.dock-facts{display:flex;gap:32px;padding:0 21px 20px}.dock-facts>span{display:grid;gap:3px}.dock-facts small{font-size:10px;color:var(--muted)}.dock-facts b{font-size:14px;font-weight:650;font-variant-numeric:tabular-nums}
#desk-decisions{border-top:1px solid var(--line)}
.approval{gap:12px;padding:20px;border-color:var(--line)}.approval-top{gap:8px}.approval-top .about{font-size:13px}.approval-top time{font-size:10px}.approval .summary{font-size:12px;line-height:1.65}
.draft{background:var(--surface);border:1px solid var(--line);border-radius:5px;padding:17px;font-size:13px;line-height:1.85;box-shadow:none}
.draft .meta{font-size:10px;color:var(--muted);font-family:var(--font-body);line-height:1.6;margin-bottom:10px}
.approval .actions{gap:6px}.approval .btn{min-height:35px;padding:8px 10px;font-size:11px}.approval .result{font-size:12px}
.decision-dock .approval{padding:18px 21px;gap:10px}.decision-dock .approval-top .about{display:none}.decision-dock .approval-top time{font-size:9px}
.decision-dock .approval-top .pill.gold{background:none;color:var(--muted);padding:0;font-size:10px}.decision-dock .approval-top .pill.gold:before{display:none}
.decision-dock .draft{padding:15px;font-size:12px;line-height:1.85}.decision-dock .draft .meta{font-size:9px;border-bottom:1px solid var(--line);padding-bottom:9px;margin-bottom:10px}
.decision-dock .approval .summary{font-size:11px}.decision-dock .actions .btn.good{flex:1}.decision-dock .actions .btn{font-size:11px}
.dock-thread-link{padding:16px 21px;margin-top:auto;border-top:1px solid var(--line)}.dock-thread-link .text-link{font-size:11px;color:var(--fg)}.dock-thread-link p{font-size:10px;line-height:1.6;color:var(--muted);margin:3px 0 0}
.dock-updated{padding:30px 22px}.dock-updated h3{font-size:15px;line-height:1.5;margin:14px 0 9px}.dock-updated p{font-size:12px;line-height:1.8;color:var(--muted);margin:0}
.check-mark{display:grid;place-items:center;border:1px solid var(--line-strong);border-radius:50%;height:27px;width:27px;color:var(--good)}.check-mark .ico{width:14px;height:14px}
/* Supporting numbers are a ledger, not the opening act. */
.activity-totals,.results-strip{background:var(--surface);border:1px solid var(--line);border-radius:6px;overflow:hidden}
.strip-title,.results-strip-head{padding:16px 22px 0;display:flex;justify-content:space-between;align-items:center;gap:12px;border:0}
.strip-title h2,.results-strip-head h2{font-size:14px;font-weight:750}.strip-title>span{font-size:11px;color:var(--muted)}
.results-strip-head>div{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}.results-strip-head .eyebrow{font-size:10px;color:var(--muted)}
.stats,.results-stats{border:0;background:none;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:19px 0 23px;gap:0}
.stat,.results-stats .stat,.stat:first-child{padding:0 22px;border-right:1px solid var(--line);gap:6px}.stat:last-child{border-right:0}
.stat .label{font-size:11px;color:var(--muted);line-height:1.5}.stat .value,.results-stats .value{font-size:27px;letter-spacing:-.045em;font-weight:650;line-height:1.2}
.stat .note{font-size:10px;color:var(--muted);line-height:1.65}.stat-change{font-size:9px;font-weight:650}.stat-change .ico{width:12px;height:12px}
.work-history{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:28px;align-items:start}.activity-paper,.work-chart,.credit-ledger{background:var(--surface);border:1px solid var(--line);border-radius:6px;overflow:hidden}
.section-top{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;gap:12px}.section-top h2{font-size:15px}.activity-paper .section-top{border-bottom:1px solid var(--line)}
.activity-paper .row .t{font-size:12px}.activity-paper .row .s{font-size:11px}.history-right{display:grid;gap:20px}.work-chart{padding-bottom:20px}.work-chart .chart{padding:0 18px}.work-chart .legend{margin:12px 23px 0;font-size:10px}
.credit-ledger{padding-bottom:20px}.credit-ledger>strong{display:block;font-size:28px;letter-spacing:-.04em;padding:0 20px;font-weight:650}.credit-ledger>strong small{font-size:12px;letter-spacing:0;font-weight:500;color:var(--muted)}.credit-ledger>p{margin:8px 20px 0;font-size:11px;color:var(--muted)}.credit-ledger>.pill{margin:12px 20px 0}
/* A performance sheet: chart and conversion progression, metric index alongside. */
.report-head .eyebrow{display:none}.report-period{font-size:11px}.report-range .input{font-size:12px}.report-range{border-radius:5px}.custom-range{font-size:12px}
.performance-sheet{display:grid;grid-template-columns:minmax(0,1fr) 318px;border:1px solid var(--line);border-radius:6px;background:var(--surface);overflow:hidden;min-width:0}
.performance-main{min-width:0}.revenue-section{background:none;border:0;border-radius:0;padding:25px;min-height:0}
.report-section-head{margin-bottom:18px}.report-section-head h2{font-size:16px;letter-spacing:-.03em}.report-section-head p{font-size:11px;color:var(--muted);line-height:1.7;margin-top:5px}
.chart-summary{margin-top:12px;margin-bottom:15px}.chart-summary strong{font-size:37px;line-height:1.2;letter-spacing:-.05em;font-weight:650}.chart-summary span{font-size:11px}
.revenue-chart{max-height:330px}.revenue-chart text{font-family:var(--font-body);font-size:10px}.revenue-chart .revenue-bar{fill:var(--gold);opacity:.85}.revenue-chart .won-line{stroke:var(--chart-line);stroke-width:2}.revenue-chart .won-point{stroke:var(--chart-line)}
.chart-segment{border-radius:4px;background:var(--surface-2);border:1px solid var(--line);padding:2px}.chart-segment button{font-size:10px;padding:5px 9px;border-radius:2px}.chart-segment button.on{background:var(--surface);color:var(--fg);box-shadow:0 1px 3px #0001}
.chart-foot .legend{font-size:11px}.chart-foot .hint{font-size:10px}.report-notes{font-size:11px;line-height:1.8}.revenue-section>.report-notes{font-size:10px}
.performance-ledger{border-left:1px solid var(--line);background:var(--surface-2);padding:24px 23px}.performance-ledger>h2{font-size:14px}.performance-ledger>p{font-size:10px;color:var(--muted);margin:5px 0 15px}
.performance-ledger .report-kpis{display:flex;flex-direction:column;border:0;background:none;border-radius:0;padding:0;margin:0;box-shadow:none}
.performance-ledger .report-kpis .stat{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 10px;padding:12px 0!important;border:0!important;border-bottom:1px solid var(--line)!important;background:none!important;min-height:68px}
.performance-ledger .report-kpis .stat:last-child{border-bottom:0!important;grid-column:auto}
.performance-ledger .report-kpis .stat .label{font-size:11px;color:var(--fg);font-weight:650;align-self:center}
.performance-ledger .report-kpis .stat .value{font-size:21px;letter-spacing:-.045em;text-align:right;align-self:center;white-space:nowrap}
.performance-ledger .report-kpis .stat .note{font-size:9px;grid-column:1/-1}.performance-ledger .report-kpis .stat-change{font-size:9px;grid-column:1/-1}
.funnel-section{padding:23px 25px;border:0;border-top:1px solid var(--line)}.funnel-section .report-section-head{margin-bottom:18px}
.funnel-section .report-section-head .pill{font-size:10px;background:none;padding:0;color:var(--muted)}
.funnel-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;margin:17px 0 20px;position:relative}
.funnel-step{display:flex;flex-direction:column;gap:10px;padding:0 12px;min-width:0;border-right:1px solid var(--line)}
.funnel-step:first-child{padding-left:0}.funnel-step:last-child{padding-right:0;border:0}.funnel-step .step-name{font-size:10px;font-weight:650}.funnel-step .step-number{display:none}
.funnel-step .step-count{font-size:28px;font-weight:650;line-height:1.1;letter-spacing:-.05em}.funnel-step .step-bar{height:4px;width:100%;background:var(--surface-3);border-radius:0}.funnel-step .step-bar i{border-radius:0;background:var(--gold)}
.funnel-step .step-rate{font-size:9px;line-height:1.6;color:var(--muted)}.funnel-note{font-size:10px;border:0;padding:0;line-height:1.8}
.source-section,.recent-wins{border-radius:6px}.source-section .report-section-head,.recent-wins .report-section-head{padding:22px 24px}
.source-section th{font-size:10px;padding:13px}.source-section td{font-size:12px;padding:17px 13px}.source-icon{border:0;background:none;border-radius:0;width:17px;height:22px}.source-name{font-size:12px;min-width:120px;gap:8px}
.table-note{font-size:11px;line-height:1.8;padding:13px 24px}.report-secondary{gap:28px}.distribution-section,.lost-section{border:1px solid var(--line);background:var(--surface);border-radius:6px;padding:23px 24px}
.distribution-row{font-size:12px;grid-template-columns:125px minmax(0,1fr) 30px;gap:13px}.distribution-row .meter{height:5px}.distribution-list{gap:20px}.lost-reasons li{font-size:12px;padding:11px 0}
.win-row{padding:18px 24px;font-size:12px}.win-person b{font-size:13px}.win-person small{font-size:10px}.win-amount{font-size:18px}.win-speed{font-size:11px}
/* Approval inbox uses a document-like working pane; ordinary controls stay quiet. */
.review-count{font-size:12px;color:var(--muted)}.approval-tabs{gap:3px}.approval-tabs .chip{background:none;border:0;border-bottom:2px solid transparent;border-radius:0;padding:8px 14px;color:var(--muted)}
.approval-tabs .chip.on{color:var(--fg);border-bottom-color:var(--fg)}
.approval-workspace{display:grid;grid-template-columns:300px minmax(0,1fr);border:1px solid var(--line);border-radius:6px;overflow:hidden;background:var(--surface);min-height:570px}
.approval-index{background:var(--surface-2);border-right:1px solid var(--line);min-width:0}
.approval-item{position:relative;display:grid;width:100%;text-align:left;padding:23px 22px;gap:8px;background:none;border:0;border-bottom:1px solid var(--line);color:var(--fg)}
.approval-item:hover{background:var(--surface)}.approval-item.selected{background:var(--surface)}.approval-item.selected:before{content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--gold)}
.approval-item-meta{display:flex;justify-content:space-between;gap:12px;font-size:10px;color:var(--muted)}.approval-item b{font-size:14px}.approval-item>span:not(.approval-item-meta):not(.pill){font-size:12px;line-height:1.7;color:var(--muted)}.approval-item small{font-size:10px;color:var(--gold-text)}.approval-item .pill{justify-self:start}
.approval-document{min-width:0;background:var(--surface);padding-bottom:25px}.approval-document>header{padding:17px 28px;font-size:11px;color:var(--muted);border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:20px;background:var(--surface-2)}
.approval-document-title{padding:32px 34px 0}.approval-document-title h2{font-size:26px}.approval-document-title p{font-size:12px;color:var(--muted);margin-top:8px}
#approval-focused .approval{padding:20px 34px 28px;border:0;gap:18px}#approval-focused .approval-top .about{display:none}#approval-focused .draft{padding:25px;background:var(--surface-2);font-size:15px;line-height:1.9;min-height:150px}#approval-focused .draft .meta{font-size:11px;margin-bottom:18px;padding-bottom:12px;border-bottom:1px solid var(--line)}
#approval-focused .actions{gap:10px}#approval-focused .actions .btn{font-size:12px;min-height:40px;padding:11px 16px}
.approval-document>footer{border-top:1px solid var(--line);padding:20px 34px 0}.approval-document>footer p{font-size:11px;color:var(--muted);margin:4px 0 0}
/* Conversations: readable chat, compact navigation, customer file on wide displays. */
.convo{grid-template-columns:268px minmax(0,1fr);border-radius:6px;overflow:hidden;min-height:650px}
.convo-list{background:var(--surface-2)}.convo-list .search{padding:16px}.convo-list .input{font-size:12px;background:var(--surface);min-height:37px}
.convo-item{padding:18px 16px;gap:5px}.convo-item.on{background:var(--path-selected);box-shadow:inset 3px 0 var(--gold)}.convo-item .name{font-size:13px}.convo-item .last{font-size:12px}.convo-item time{font-size:9px}.convo-item .tags{flex-wrap:wrap;gap:4px}.convo-item .pill{font-size:9px;padding:2px 5px}
.thread-head{padding:22px}.thread-head h2{font-size:21px}.thread-head .contact span{font-size:12px}.bubble{font-size:13px;line-height:1.85;max-width:min(85%,560px);border-radius:10px;padding:14px 16px}.bubble-meta{font-size:10px}.bubbles{gap:14px}.bubble.call{font-size:12px}.thread-notes{font-size:12px}.thread-notes .report{font-size:13px;line-height:1.9}
.lead-details{background:var(--surface-2);padding:20px 22px;gap:17px}.lead-details-top .eyebrow{font-size:11px}.lead-facts dt{font-size:10px}.lead-facts dd{font-size:12px}.lead-details .hint{font-size:10px}.lead-outcome-form{padding:16px;border-radius:4px}.lead-outcome-form .input{font-size:14px}.lead-outcome-form .field{font-size:11px}.lead-outcome-form h3{font-size:14px}
@media(min-width:1350px){
 .thread{display:grid;grid-template-columns:minmax(0,1fr) 248px;align-content:start;grid-template-rows:auto auto auto auto auto}
 .thread-head{grid-column:1/-1;grid-row:1}.thread>.lead-details{grid-column:2;grid-row:2 / span 4;border-left:1px solid var(--line);border-bottom:0;height:100%;align-content:start;padding:22px 18px}
 .thread>.bubbles{grid-column:1;grid-row:2;padding:24px;max-height:430px;min-height:260px}.thread>.thread-drafts{grid-column:1;grid-row:3}.thread>.thread-notes{grid-column:1}
 .thread .lead-facts{grid-template-columns:1fr;gap:17px}.thread .lead-details-top{display:grid;gap:18px}.thread .lead-details-top .actions{margin-left:0}.thread .lead-details-top .actions .btn{min-height:32px;font-size:11px;padding:7px 9px}
 .thread .lead-outcome-form .form-row{grid-template-columns:1fr}.thread .lead-outcome-form .btn{font-size:11px;min-height:32px}
}
/* Shared settings / financial information remains complete. */
table{font-size:13px}th{font-size:11px;color:var(--muted);font-weight:650;padding:13px 18px}td{padding:17px 18px}td .sub{font-size:12px}
.tool b{font-size:14px}.tool .s{font-size:12px}.tool>.actions{max-width:none}.tool{grid-template-columns:1fr;gap:12px}.tool>.actions{justify-content:flex-start!important}
.kv{font-size:12px;gap:14px 20px}.balance .big{font-size:38px}.balance .eyebrow{font-size:12px}.balance .big small{font-size:14px}.balance{grid-template-columns:1fr;padding:24px}
.admin-stats{grid-template-columns:repeat(4,minmax(0,1fr));padding:0;background:var(--surface);border:1px solid var(--line);border-radius:6px;overflow:hidden}.admin-stats .stat{padding:21px!important;border-bottom:1px solid var(--line)}.admin-stats .stat:nth-child(7){background:none}.admin-stats .value{font-size:25px}
.admin-table table{font-size:11px}.admin-table th{font-size:10px}.admin-table .pill{font-size:10px}.admin-table td:first-child{min-width:160px}
.drawer-back{background:#17202666;backdrop-filter:none}.drawer{box-shadow:-12px 0 40px #0002}.drawer-head h2{font-size:25px}.drawer .report{font-size:14px;line-height:1.9}.drawer .eyebrow{font-size:11px}.drawer-body{gap:24px}
.toast{background:var(--fg);color:var(--surface);border-left:3px solid var(--gold);font-size:13px;border-radius:5px;box-shadow:0 5px 22px #0002}
/* Search is a real, keyboard-usable dialog; it navigates existing demo routes. */
.search-dialog{padding:0;background:var(--surface);color:var(--fg);border:1px solid var(--line);border-radius:8px;width:min(570px,calc(100% - 32px));max-height:80dvh;margin:11vh auto auto;box-shadow:0 20px 100px #0003}
.search-dialog::backdrop{background:#20282f65}.search-dialog-head{display:flex;align-items:center;gap:12px;padding:16px 19px;border-bottom:1px solid var(--line)}.search-dialog-head input{flex:1;min-width:0;background:none;border:0;outline:none;font-size:14px;color:var(--fg)}.search-dialog-head>.ico{color:var(--muted)}
.search-results{max-height:55dvh;overflow:auto;padding:7px}.search-results>button{display:flex;align-items:center;gap:15px;padding:12px;width:100%;background:none;border:0;border-radius:4px;text-align:left;color:var(--fg)}.search-results>button:hover{background:var(--surface-2)}.search-results>button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;flex-shrink:0}.search-results>button>.ico:last-child{margin-left:auto;width:13px;height:13px;color:var(--muted)}.search-results b{display:block;font-size:13px}.search-results small{font-size:10px;color:var(--muted)}.search-dialog-foot{padding:13px 19px;border-top:1px solid var(--line);color:var(--muted);font-size:10px;line-height:1.8}
.auth-brand{background:#22292d;color:#f6f7f8}.auth-brand .brand-caption{color:#bec4c7;border-left-color:#ffffff30}.auth-brand h1{font-size:clamp(32px,4vw,54px);color:#f6f7f8;line-height:1.17;letter-spacing:-.05em}.auth-brand h1 em{color:#d2ac63}.auth-brand p{color:#b9c1c6;font-size:14px}.auth-feed{border-color:#ffffff28}.auth-feed div{font-size:12px}.auth-feed span{font-size:11px}.auth-form .sub{font-size:13px}.auth-form .links button{font-size:12px}
/* Responsive layout: no page-level or data-table sideways scroll on phones. */
@media(max-width:1250px){
 .main{padding:24px}.topbar{padding-left:24px;padding-right:24px}.workspace-search span{display:none}
 .workdesk{grid-template-columns:minmax(0,1fr) 306px}.paths-heading{padding:22px 19px 18px}.paths-heading .text-link{font-size:10px}.path-filter{padding:0 19px;gap:13px}
 .path-axis,.path-row{grid-template-columns:138px minmax(135px,1fr) 70px;gap:8px;padding-left:18px;padding-right:18px}.path-person{gap:7px}.path-person b{font-size:11px}.path-person small{font-size:9px}.path-avatar{width:24px;height:24px;font-size:8px}.path-result b{font-size:11px}.path-axis{font-size:9px}
 .dock-heading,.dock-person,.dock-thread-link{padding-left:18px;padding-right:18px}.dock-facts{padding-left:18px;padding-right:18px}.decision-dock .approval{padding-left:18px;padding-right:18px}
 .stats,.results-stats{padding:18px 0}.stat,.stat:first-child,.results-stats .stat{padding:0 17px}.stat .value{font-size:24px}.stat .label{font-size:10px}.stat .note{font-size:9px}
 .performance-sheet{grid-template-columns:minmax(0,1fr) 290px}.performance-ledger{padding:22px 18px}.performance-ledger .report-kpis .stat .value{font-size:20px}
 .source-section th{font-size:9px}.source-section td{font-size:11px;padding:15px 11px}
}
@media(min-width:901px) and (max-width:1100px){
 .workdesk{grid-template-columns:minmax(0,1fr)}.decision-dock{border-left:0;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1.5fr}.dock-heading{grid-column:1/-1}.dock-person{grid-column:1;grid-row:2}.dock-facts{grid-column:1;grid-row:3;align-self:start}#desk-decisions{grid-column:2;grid-row:2/span 3;border-top:0;border-left:1px solid var(--line)}.dock-thread-link{grid-column:1;grid-row:4;align-self:end;margin-top:0}
 .path-axis,.path-row{grid-template-columns:180px minmax(180px,1fr) 85px}.path-person b{font-size:12px}.path-avatar{width:28px;height:28px}.path-axis{font-size:10px}
 .paths-list{min-height:0}.work-history{grid-template-columns:1fr 1fr;gap:22px}.approval-workspace{grid-template-columns:250px minmax(0,1fr)}.approval-document-title,#approval-focused .approval,.approval-document>footer{padding-left:25px;padding-right:25px}
}
@media(max-width:900px){
 .shell{display:block;min-height:calc(100dvh - 105px)}.side,.topbar{display:none}.mobile-top{background:var(--surface);color:var(--fg);border-bottom:1px solid var(--line);z-index:40;padding-top:max(12px,env(safe-area-inset-top,0px));gap:9px}
 .mobile-top .switcher select{background:var(--surface-2);color:var(--fg);border:1px solid var(--line);font-size:12px;min-height:37px;border-radius:4px;padding-left:9px}.mobile-top .switcher:after{color:var(--muted)}.mobile-top .menu-btn{font-size:11px;color:var(--muted);min-height:36px}.mobile-top .icon-button{border:0;color:var(--muted)}
 .mobile-top .tabs{gap:14px}.mobile-top .tabs a{font-size:12px;color:var(--muted);padding:9px 2px 12px}.mobile-top .tabs a.on{color:var(--fg);border-bottom-color:var(--fg)}.mobile-top .tabs .count{background:var(--gold);color:#2a2110}
 .main{padding:24px 20px}.page{gap:23px}.page-head h1{font-size:27px}.page-head p{font-size:13px}.workspace-head h1{font-size:27px}.workspace-head p{font-size:12px}
 .workdesk{grid-template-columns:minmax(0,1fr)}.decision-dock{border-left:0;border-top:1px solid var(--line)}.path-axis,.path-row{grid-template-columns:180px minmax(180px,1fr) 85px}.path-person b{font-size:12px}.path-avatar{width:28px;height:28px}.path-axis{font-size:10px}.paths-list{min-height:0}
 .decision-dock .approval .summary{font-size:12px}.decision-dock .draft{font-size:13px}.decision-dock .draft .meta{font-size:10px}.decision-dock .actions .btn.good{flex:0 1 auto}.decision-dock .approval .btn{font-size:12px;min-height:38px;padding:10px 15px}
 .stats,.results-stats{grid-template-columns:repeat(3,minmax(0,1fr));padding:0;gap:0}.stat,.stat:first-child,.results-stats .stat{padding:19px!important;border:0!important;border-bottom:1px solid var(--line)!important}.stat:nth-child(3n){border-right:0!important}.stat .label{font-size:11px}.stat .note{font-size:10px}.stat .value{font-size:25px}.stat-change{font-size:10px}.strip-title,.results-strip-head{padding:18px 19px 4px}
 .work-history{grid-template-columns:1fr}.history-right{grid-template-columns:1.4fr 1fr;align-items:start}.credit-ledger .section-top{align-items:start}.section-top{padding:18px 20px}
 .performance-sheet{grid-template-columns:1fr}.performance-ledger{border-left:0;border-top:1px solid var(--line);padding:23px}.performance-ledger .report-kpis{display:grid;grid-template-columns:1fr 1fr;gap:0 25px}.performance-ledger .report-kpis .stat{padding:14px 0!important}.performance-ledger .report-kpis .stat .value{font-size:24px}.performance-ledger .report-kpis .stat .label{font-size:12px}.performance-ledger .report-kpis .stat .note{font-size:10px}.performance-ledger .report-kpis .stat-change{font-size:10px}
 .revenue-section{padding:23px}.revenue-chart{max-height:350px}.funnel-section{padding:22px 23px}.funnel-list{grid-template-columns:repeat(5,minmax(0,1fr));gap:0}.funnel-step .step-name{font-size:11px}.funnel-step .step-count{font-size:28px}.funnel-step .step-rate{font-size:10px}
 .source-section td{font-size:13px}table.responsive-table td::before{font-size:11px;color:var(--muted);letter-spacing:0;text-transform:none}table.responsive-table td .sub{font-size:12px}.source-name{font-size:14px}.table-note{font-size:11px}
 .report-secondary{gap:20px}.distribution-section,.lost-section{padding:21px}.distribution-row{grid-template-columns:108px minmax(0,1fr) 24px;gap:10px;font-size:11px}
 .approval-workspace{grid-template-columns:245px minmax(0,1fr)}.approval-item{padding:19px 17px}.approval-document-title,#approval-focused .approval,.approval-document>footer{padding-left:23px;padding-right:23px}.approval-document-title h2{font-size:24px}.approval-document-title p{line-height:1.8}#approval-focused .draft{font-size:14px;padding:19px}
 .convo{grid-template-columns:1fr;min-height:560px}.convo.open .convo-list{display:none}.convo:not(.open) .thread{display:none}.convo-item{padding:18px 20px}.convo-item .name{font-size:14px}.convo-item .pill{font-size:10px}.convo-item time{font-size:10px}.thread-head h2{font-size:22px}.thread .lead-facts{grid-template-columns:1fr 1fr}.thread .lead-facts dt{font-size:11px}.thread .lead-facts dd{font-size:12px}.thread .lead-details{padding:19px 20px}.thread .bubble{font-size:14px}.thread .bubble-meta{font-size:11px}
 .admin-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.admin-stats .stat{padding:19px!important}.admin-stats .value{font-size:24px}.auth-feed{display:grid}.auth-form-wrap{padding:40px 25px}
}
@media(min-width:601px) and (max-width:900px){
 .decision-dock{display:grid;grid-template-columns:1fr 1.5fr}.dock-heading{grid-column:1/-1}.dock-person{grid-column:1;grid-row:2}.dock-facts{grid-column:1;grid-row:3;align-self:start}#desk-decisions{grid-column:2;grid-row:2/span 3;border-left:1px solid var(--line);border-top:0}.dock-thread-link{grid-column:1;grid-row:4;align-self:end;margin-top:0}
}
@media(max-width:600px){
 .main{padding:23px 16px}.page{gap:21px}.page-head h1,.workspace-head h1{font-size:25px}.page-head p{font-size:12px}.workspace-head{gap:15px;align-items:start}.workspace-head p{font-size:11px;gap:7px}.review-link{font-size:11px;padding:9px 11px}
 .paths-heading{padding:21px 17px 17px;gap:12px}.paths-heading h2{font-size:18px}.paths-heading p{font-size:11px}.paths-heading .text-link{font-size:10px;align-self:start}.paths-heading .text-link .ico{display:none}.path-filter{padding:0 17px;gap:16px;flex-wrap:nowrap}.path-filter button{font-size:10px;gap:5px;padding:10px 0 12px;white-space:nowrap}
 .path-axis{display:none}.path-row{grid-template-columns:minmax(0,1fr) 85px;gap:7px 12px;padding:17px;min-height:110px}.path-person b{font-size:13px}.path-person small{font-size:10px}.path-avatar{width:30px;height:30px;font-size:9px}.path-result{grid-column:2;grid-row:1}.path-result b{font-size:12px}.path-result small{font-size:10px}.path-stages{grid-column:1/-1;grid-row:2;padding:6px 0 0;margin-left:28px;height:42px}.path-stage-name{font-size:10px}.path-node{width:7px;height:7px}.paths-foot{padding:15px 17px;font-size:9px;gap:9px}.paths-foot>span:last-child{display:none}
 .dock-heading{padding:17px 19px;font-size:12px}.dock-status{font-size:11px}.dock-person{padding:21px 19px 16px}.dock-person h2{font-size:22px}.dock-person p{font-size:12px}.dock-facts{padding:0 19px 22px;gap:44px}.dock-facts b{font-size:16px}.dock-facts small{font-size:11px}.decision-dock .approval{padding:19px}.decision-dock .approval-top .pill.gold{font-size:11px}.decision-dock .approval-top time{font-size:10px}.decision-dock .draft{padding:17px;font-size:14px;line-height:1.9}.decision-dock .draft .meta{font-size:10px}.decision-dock .approval .summary{font-size:12px}.decision-dock .actions{gap:7px}.decision-dock .actions .btn.good{flex:1}.decision-dock .actions .btn{min-height:40px;font-size:11px;padding:10px 12px}.dock-thread-link{padding:17px 19px}.dock-thread-link .text-link{font-size:12px}.dock-thread-link p{font-size:11px}
 .stats,.results-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stat,.stat:first-child,.results-stats .stat{padding:18px 17px!important;min-width:0;border-right:1px solid var(--line)!important}.stat:nth-child(2n){border-right:0!important}.stat:last-child{grid-column:1/-1;border-right:0!important;border-bottom:0!important}.stat .label{font-size:11px}.stat .value,.results-stats .value{font-size:26px}.stat .note{font-size:10px}.results-strip-head{padding:16px 17px 10px}.results-strip-head>div{display:block}.results-strip-head .eyebrow{font-size:9px;display:block;margin-top:5px}.results-strip-head>.btn{font-size:10px;padding:0;min-height:30px}.results-strip-head h2{font-size:13px}.strip-title{padding:17px 17px 4px}.strip-title h2{font-size:13px}.strip-title>span{font-size:10px}
 .history-right{grid-template-columns:1fr}.activity-paper .row{padding:15px 17px}.activity-paper .row .t{font-size:12px}.activity-paper .row .s{font-size:11px}.activity-paper .row .r{font-size:9px;gap:5px}.activity-paper .row .pill{font-size:9px}.work-chart .legend{font-size:11px}.credit-ledger>strong{font-size:30px}.credit-ledger>p{font-size:12px}
 .report-head{gap:18px}.report-head>div:last-child{width:100%}.report-range{width:100%}.report-range .input{font-size:13px}.report-period{font-size:10px;text-align:left}.custom-range .input{font-size:14px}.custom-range .field{font-size:11px}.revenue-section{padding:21px 16px}.chart-summary strong{font-size:34px}.chart-summary span{font-size:10px}.report-section-head h2{font-size:16px}.report-section-head p{font-size:11px}.chart-segment button{font-size:10px;padding:6px 7px}.revenue-chart{margin-top:17px;min-height:220px;max-height:none}.revenue-chart text{font-size:11px}.chart-foot .legend{font-size:10px}.chart-foot .hint{font-size:9px}
 .funnel-section{padding:21px 17px}.funnel-section .report-section-head{gap:10px}.funnel-section .report-section-head .pill{display:none}.funnel-list{grid-template-columns:1fr;gap:0;margin:12px 0 19px}.funnel-step{display:grid;grid-template-columns:83px 1fr 35px;align-items:center;border:0;border-bottom:1px solid var(--line);padding:13px 0;gap:7px 10px}.funnel-step:last-child{padding:13px 0;border:0}.funnel-step .step-name{font-size:12px;grid-column:1;grid-row:1}.funnel-step .step-count{font-size:20px;text-align:right;grid-column:3;grid-row:1}.funnel-step .step-bar{grid-column:2;grid-row:1;width:100%;height:5px}.funnel-step .step-rate{grid-column:2/-1;grid-row:2;font-size:10px}.funnel-note{font-size:10px}
 .performance-ledger{padding:22px 17px}.performance-ledger .report-kpis{display:block}.performance-ledger .report-kpis .stat{padding:15px 0!important}.performance-ledger .report-kpis .stat .value{font-size:25px}.performance-ledger .report-kpis .stat .label{font-size:12px}.performance-ledger>p{font-size:11px}
 .report-secondary{grid-template-columns:1fr}.distribution-section,.lost-section{padding:22px 18px}.distribution-row{font-size:12px;grid-template-columns:125px minmax(0,1fr) 27px}.source-section .report-section-head,.recent-wins .report-section-head{padding:21px 18px}.source-section tbody tr{padding:18px!important;gap:16px 24px!important}.source-section tbody tr:nth-child(even){background:var(--surface-2)}.source-section td{font-size:14px!important}.source-name{font-size:14px}.table-note{padding:15px 18px;font-size:11px}.win-row{padding:19px 18px;gap:9px}.win-person b{font-size:12px}.win-person small{font-size:10px}.win-source{font-size:11px}.win-speed{font-size:10px}.win-amount{font-size:17px}.report-notes{font-size:11px}
 .approval-workspace{display:flex;flex-direction:column;min-height:0}.approval-index{border-right:0;display:grid;grid-template-columns:1fr;border-bottom:1px solid var(--line);max-height:240px;overflow:auto}.approval-item{padding:16px 18px;gap:5px}.approval-item b{font-size:13px}.approval-item>span:not(.approval-item-meta):not(.pill){font-size:11px}.approval-item small{font-size:10px}.approval-document>header{padding:16px 19px;font-size:10px}.approval-document-title{padding:24px 19px 0}.approval-document-title h2{font-size:24px}.approval-document-title p{font-size:12px}#approval-focused .approval{padding:18px 19px 25px}#approval-focused .draft{padding:18px;font-size:14px}#approval-focused .actions{gap:7px}#approval-focused .actions .btn{font-size:11px;padding:10px 13px}#approval-focused .actions .btn.good{flex:1}.approval-document>footer{padding:18px 19px 0}
 .convo{min-height:500px}.thread-head{padding:19px}.thread-head h2{font-size:21px}.thread-head .contact span{font-size:11px}.thread-head .chips{margin-left:0!important}.thread .lead-facts{gap:16px 20px}.thread .lead-facts>div:first-child{grid-column:1/-1}.lead-details-top .actions{margin-left:0}.lead-details-top .btn{font-size:11px;min-height:36px}.lead-details .hint{font-size:11px}.thread .bubbles{padding:21px 17px}.thread .bubble{font-size:13px;padding:13px 14px;max-width:90%}.thread-drafts .approval{padding:19px}.thread-drafts .draft{font-size:14px}.thread-notes{padding:18px}.thread-notes .report{font-size:13px}.lead-outcome-form .form-row{grid-template-columns:1fr}.lead-outcome-form .input{font-size:16px}
 .input{font-size:16px}.tool{padding:21px 19px}.tool b{font-size:13px}.tool .s{font-size:12px}.tool .btn{font-size:11px}.tool .pill{font-size:11px}.kv{font-size:12px}.balance .big{font-size:34px}.balance .big small{font-size:13px}.buy .btn{font-size:13px}.buy .prefix{width:120px!important}.panel-head h2{font-size:14px}.panel-head .num{font-size:11px!important;overflow-wrap:anywhere}.form-row{grid-template-columns:1fr}.panel-body{padding:19px}.panel-foot{padding:18px}.admin-stats{grid-template-columns:1fr 1fr}.admin-stats .stat:last-child{grid-column:auto}.admin-stats .value{font-size:24px}.admin-table table td{font-size:13px!important}.admin-table .pill{font-size:10px}
 .row .s{white-space:normal}.row .r{max-width:120px}.row .r .btn{white-space:normal;font-size:10px}.page-footer{font-size:10px;line-height:1.8;gap:6px}.drawer-head,.drawer-body{padding:21px}.drawer-head h2{font-size:23px}.drawer .report{font-size:13px}.drawer .draft{font-size:14px}.drawer .approval{padding:18px}.drawer .actions .btn{font-size:11px}.toast{font-size:12px}
 .auth-brand{padding:30px 23px;gap:32px}.auth-brand h1{font-size:34px}.auth-brand p{font-size:13px}.auth-feed div{font-size:11px;gap:12px}.auth-feed span{font-size:10px}.auth-form h2{font-size:29px}.auth-form .input{font-size:16px}.auth-form .sub{font-size:13px}.search-dialog-head input{font-size:16px}.search-dialog-foot{font-size:10px}.search-results>button{padding:13px}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
@media print{.decision-dock,.path-filter,.paths-foot,.review-link,.workspace-search{display:none!important}.workdesk,.work-history,.performance-sheet{display:block;border:0}.performance-ledger{border:0}.path-row{break-inside:avoid}.activity-totals,.results-strip,.performance-sheet{break-inside:avoid}}

/* Mobile selection keeps the active work in view. */
.dock-back{display:none}
@media(max-width:600px){.dock-back{display:inline-flex;align-items:center;gap:2px;font-size:10px;color:var(--muted);background:none;border:0;padding:5px 0}.dock-back .ico{width:12px;height:12px}.decision-dock,.paths-canvas{scroll-margin-top:122px}.dock-heading{gap:10px}.dock-heading>span:first-of-type{font-size:11px}.dock-heading .dock-status{font-size:10px}}

/* =====================================================================
   WHITE / YOUR DECISION
   The portal is intentionally white. No system or stored dark-mode switch.
   All values about portal work are credit-denominated. Revenue remains currency.
   ===================================================================== */
:root, :root[data-theme="light"], :root[data-theme="dark"] {
  --bg:#ffffff; --surface:#ffffff; --surface-2:#fafaf8; --surface-3:#f1f0eb;
  --fg:#242623; --muted:#656962; --faint:#767a72;
  --line:#e7e8e2; --line-strong:#d3d6cc;
  --ink:#ffffff; --ink-2:#f7f7f3; --ink-fg:#242623; --ink-muted:#686d64;
  --gold:#c6a052; --gold-text:#836016; --gold-soft:#faf4e6; --gold-line:#e8d8b4;
  --gold-grad:#c6a052; --focus:#9c752f;
  --good:#246b4a; --good-soft:#eef6f0; --good-btn:#c6a052;
  --warn:#8c6520; --warn-soft:#fcf5e7; --bad:#a83930; --bad-soft:#fcf0ed;
  --info:#406878; --info-soft:#f0f5f6;
  --bubble-them:#f5f5f1; --bubble-us:#f8f0de; --bubble-us-fg:#393324;
  --report-paper:#fff; --chart-line:#696d62; --bar-other:#d9ddd4;
  --shadow:0 5px 20px #2c2c2310;
  color-scheme:light;
}
html,body,#app,.shell,.app-workspace,.main,.topbar,.side,.mobile-top { background:#fff; }
body { font-family:var(--font-body); }
.topbar,.mobile-top { border-color:var(--line); }
.nav a.on,.nav a.on:hover { color:var(--gold-text); background:var(--gold-soft); box-shadow:inset 2px 0 var(--gold); }
.nav a:hover { background:var(--surface-2);color:var(--fg); }
.profile-dot { background:var(--gold-soft);color:var(--gold-text);border:1px solid var(--gold-line); }
.mobile-top .tabs a.on { color:var(--gold-text);background:var(--gold-soft);border-color:var(--gold); }
.side-foot .sidebar-toggle { border-color:#fff; }
.btn.good,.btn.primary { color:#261e10;background:var(--gold);border-color:var(--gold); }
.btn.good:hover:not(:disabled),.btn.primary:hover:not(:disabled) { color:#261e10;background:#d2ae62;border-color:#d2ae62;opacity:1;filter:none; }
.chip.on,.segmented .on { background:var(--gold-soft);border-color:var(--gold-line);color:var(--gold-text); }
.review-link { background:var(--surface); }
.performance-ledger,.funnel-step,.approval-index,.approval-document,.thread-drafts,.lead-details,.lead-outcome-form { background:var(--surface); }
.approval-item.selected { background:var(--gold-soft); }
.bubble.us { background:var(--bubble-us);color:var(--bubble-us-fg); }
.toast { background:#fff;color:var(--fg);border:1px solid var(--line);border-left:3px solid var(--good);box-shadow:var(--shadow); }
.toast.error { border-left-color:var(--bad); }
.auth-brand { background:#fff;color:var(--fg);border-right:1px solid var(--line); }
.auth-brand h1,.auth-brand .brand { color:var(--fg); }
.auth-brand p,.auth-feed span { color:var(--muted); }
.auth-brand h1 em { color:var(--gold-text); }
.auth-feed { background:#fff;border-color:var(--line); }
.auth-feed div { color:var(--fg);border-color:var(--gold-line); }
.dashboard-credit { background:#fff;color:var(--fg);border:1px solid var(--line); }
.dashboard-credit .big { color:var(--fg); }
.dashboard-credit .hint,.dashboard-credit .eyebrow { color:var(--muted); }
.credit-footer { border-color:var(--line); }
.credit-footer a { color:var(--gold-text); }
.custom-credits { width:160px;max-width:100%; }
.buy .btn { min-height:42px; }
.balance .big small { font-size:15px; }

/* A focused decision document replaces the entire customer-path canvas. */
.decision-workspace { background:#fff;border:1px solid var(--line);border-radius:8px;min-width:0;overflow:hidden; }
.decision-workspace-head { display:flex;align-items:center;justify-content:space-between;gap:18px;padding:24px 28px;border-bottom:1px solid var(--line); }
.decision-kicker { display:block;font-size:10px;font-weight:700;letter-spacing:.14em;color:var(--gold-text);margin-bottom:6px; }
.decision-workspace-head h2 { font-size:25px;letter-spacing:-.045em;font-weight:750;line-height:1.25; }
.decision-workspace-head p { font-size:12px;color:var(--muted);margin:7px 0 0; }
.decision-layout { display:grid;grid-template-columns:minmax(0,1fr) 310px;min-height:440px; }
.decision-main { min-width:0;display:flex;flex-direction:column; }
.decision-person { display:flex;justify-content:space-between;align-items:center;gap:16px;padding:25px 28px 20px; }
.decision-identity { display:flex;align-items:center;gap:12px;min-width:0; }
.decision-identity>div { min-width:0; }
.decision-avatar { display:grid;place-items:center;flex-shrink:0;width:42px;height:42px;border:1px solid var(--gold-line);border-radius:50%;color:var(--gold-text);background:var(--gold-soft);font-size:12px;font-weight:700; }
.decision-name { display:flex;align-items:center;gap:10px;flex-wrap:wrap; }
.decision-name h3 { font-size:21px;letter-spacing:-.035em;line-height:1.3;overflow-wrap:anywhere; }
.decision-name .pill { font-size:10px; }
.decision-channel { display:block;color:var(--muted);font-size:11px;margin-top:5px; }
.decision-position { color:var(--faint);font-size:11px;white-space:nowrap;flex-shrink:0; }
.decision-facts { display:grid;grid-template-columns:minmax(0,1.8fr) minmax(90px,1fr) minmax(100px,1fr);margin:0 28px;padding:0 0 20px;gap:18px;border-bottom:1px solid var(--line); }
.decision-facts div { min-width:0; }
.decision-facts dt { color:var(--muted);font-size:10px;margin-bottom:5px; }
.decision-facts dd { font-size:13px;font-weight:650;margin:0;overflow-wrap:anywhere; }
.decision-facts dd span { display:block;font-size:10px;font-weight:500;margin-top:2px;color:var(--muted); }
#decision-focused { min-width:0; }
#decision-focused .approval { padding:22px 28px 24px;border:0;gap:13px; }
#decision-focused .approval-top .about { display:none; }
#decision-focused .approval-top .pill { background:none;color:var(--muted);padding:0; }
#decision-focused .approval-top .pill:before { display:none; }
#decision-focused .approval-top time { font-size:10px; }
#decision-focused .summary { font-size:13px;color:var(--fg);font-weight:600;line-height:1.65; }
#decision-focused .draft { padding:20px 22px;font-size:14px;line-height:1.9;background:var(--surface-2);border:1px solid var(--line);border-radius:6px; }
#decision-focused .draft .meta { font-size:10px;font-weight:600;padding-bottom:11px;margin-bottom:12px;border-bottom:1px solid var(--line);color:var(--muted); }
#decision-focused textarea.input { min-height:175px;font-size:14px;line-height:1.9; }
#decision-focused .actions { padding-top:3px;gap:9px; }
#decision-focused .actions .btn { font-size:12px;min-height:42px;padding:10px 18px; }
#decision-focused .actions .btn.good { padding-inline:22px; }
#decision-focused .actions .btn.danger { margin-left:3px; }
.decision-bottom { display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:auto;border-top:1px solid var(--line);padding:12px 28px; }
.decision-bottom .text-link { font-size:11px;color:var(--fg); }
.decision-bottom>span { font-size:10px;color:var(--muted);display:flex;align-items:center;gap:5px; }
.decision-bottom .ico { width:13px;height:13px; }
.decision-bottom>span .ico { color:var(--good); }
.decision-queue { min-width:0;background:#fff;border-left:1px solid var(--line);display:flex;flex-direction:column; }
.decision-queue-head { display:flex;justify-content:space-between;align-items:center;gap:14px;padding:22px 22px 17px; }
.decision-queue-head h3 { font-size:13px;letter-spacing:-.02em; }
.decision-total { border:1px solid var(--gold-line);background:var(--gold-soft);color:var(--gold-text);font-size:10px;font-weight:700;line-height:22px;padding:0 7px;border-radius:5px; }
.decision-queue-items { display:grid;align-content:start;overflow-y:auto;max-height:430px;scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent; }
.decision-queue-item { width:100%;border:0;border-top:1px solid var(--line);background:#fff;color:var(--fg);text-align:left;display:grid;grid-template-columns:22px minmax(0,1fr) 12px;align-items:start;gap:10px;padding:20px;position:relative; }
.decision-queue-item:last-child { border-bottom:1px solid var(--line); }
.decision-queue-item:hover { background:var(--surface-2); }
.decision-queue-item.selected { background:var(--gold-soft); }
.decision-queue-item.selected:before { content:'';position:absolute;inset:0 auto 0 0;width:3px;background:var(--gold); }
.decision-queue-item:focus-visible { outline-offset:-4px; }
.decision-queue-number { color:var(--faint);font-size:10px;padding-top:1px;font-variant-numeric:tabular-nums; }
.decision-queue-item.selected .decision-queue-number { color:var(--gold-text); }
.decision-queue-copy { display:grid;gap:6px;min-width:0; }
.decision-queue-meta { display:flex;justify-content:space-between;align-items:center;gap:8px;color:var(--muted);font-size:9px;flex-wrap:wrap; }
.decision-queue-meta time { font-size:9px; }
.decision-queue-copy b { font-size:12px;font-weight:750;overflow-wrap:anywhere; }
.decision-queue-summary { color:var(--muted);font-size:11px;line-height:1.7;overflow-wrap:anywhere; }
.decision-queue-item>.ico { width:12px;height:12px;margin-top:25px;color:var(--muted); }
.decision-queue-note { margin:auto 0 0;padding:24px 22px;font-size:11px;line-height:1.85;color:var(--muted); }
.decision-empty { display:grid;justify-items:center;text-align:center;padding:55px 24px;gap:12px; }
.decision-empty-mark { display:grid;place-items:center;width:45px;height:45px;border:1px solid #d3e5d6;background:var(--good-soft);border-radius:50%;color:var(--good); }
.decision-empty h3 { font-size:22px; }
.decision-empty p { color:var(--muted);font-size:13px;max-width:45ch;margin:0; }

@media(max-width:1100px) and (min-width:901px) {
  .decision-layout { grid-template-columns:minmax(0,1fr) 260px; }
  .decision-workspace-head,.decision-person { padding-inline:22px; }
  .decision-facts { margin-inline:22px;grid-template-columns:minmax(0,1.5fr) 80px 90px;gap:10px; }
  #decision-focused .approval,.decision-bottom { padding-inline:22px; }
  .decision-queue-item { padding:17px 15px;grid-template-columns:18px minmax(0,1fr) 10px;gap:8px; }
}
@media(max-width:900px) {
  .decision-layout { grid-template-columns:minmax(0,1fr) 255px; }
  .decision-workspace-head,.decision-person { padding-inline:22px; }
  .decision-facts { margin-inline:22px;grid-template-columns:minmax(0,1.5fr) 75px 85px;gap:10px; }
  #decision-focused .approval,.decision-bottom { padding-inline:22px; }
  .decision-queue-item { padding:18px 15px;gap:7px;grid-template-columns:18px minmax(0,1fr) 10px; }
}
@media(max-width:680px) {
  .decision-workspace-head { padding:21px 18px;align-items:start;gap:10px; }
  .decision-workspace-head h2 { font-size:24px; }
  .decision-workspace-head .text-link { font-size:10px;min-height:28px;margin-top:20px; }
  .decision-kicker { font-size:8px;letter-spacing:.13em; }
  .decision-workspace-head p { font-size:11px;max-width:22ch;line-height:1.8; }
  .decision-layout { grid-template-columns:minmax(0,1fr);min-height:0; }
  .decision-person { padding:21px 18px 18px;gap:10px; }
  .decision-avatar { width:35px;height:35px;font-size:10px; }
  .decision-identity { gap:9px; }
  .decision-name { gap:7px; }.decision-name h3 { font-size:18px; }
  .decision-name .pill { font-size:9px; }.decision-position { font-size:10px; }
  .decision-channel { font-size:10px; }
  .decision-facts { margin-inline:18px;grid-template-columns:minmax(0,1.5fr) minmax(65px,1fr) minmax(72px,1fr);gap:12px; }
  .decision-facts dd { font-size:12px; }.decision-facts dd span { font-size:9px; }
  #decision-focused .approval { padding:19px 18px 21px;gap:12px; }
  #decision-focused .summary { font-size:12px; }
  #decision-focused .draft { padding:17px;font-size:13px;line-height:1.9; }
  #decision-focused .draft .meta { font-size:9px; }
  #decision-focused .actions { gap:7px; }
  #decision-focused .actions .btn { padding:10px 12px;font-size:11px;min-height:44px; }
  #decision-focused .actions .btn.good { flex:1;padding-inline:14px; }
  #decision-focused .actions .btn.danger { margin-left:0; }
  .decision-bottom { padding:12px 18px;gap:8px; }
  .decision-bottom>span { font-size:9px; }
  .decision-queue { border-left:0;border-top:1px solid var(--line); }
  .decision-queue-head { padding:17px 18px; }
  .decision-queue-items { max-height:330px; }
  .decision-queue-item { grid-template-columns:24px minmax(0,1fr) 12px;padding:17px 18px;gap:10px; }
  .decision-queue-copy b { font-size:12px; }
  .decision-queue-note { padding:16px 18px;font-size:10px; }
  .decision-queue-note br { display:none; }.decision-queue-note br:after { content:' '; }
  .custom-credits { flex:1;min-width:140px; }
  .auth-brand { border-right:0;border-bottom:1px solid var(--line); }
}
@media(prefers-reduced-motion:reduce) { .decision-workspace * { scroll-behavior:auto;transition:none; } }

/* =====================================================================
   04 — CHARCOAL + GOLD
   Palette-only update to the approved Your decision portal.
   White work surfaces / warm canvas / charcoal navigation / gold actions.
   Append after the previous app.css, or use the complete supplied app.css.
   No changes to the DOM, routing, calculations or business logic required.
   ===================================================================== */
:root, :root[data-theme="light"], :root[data-theme="dark"] {
  --bg: #f5f3ee;
  --surface: #ffffff;
  --surface-2: #f8f7f4;
  --surface-3: #eeece7;
  --fg: #1a1a1a;
  --muted: #65625c;
  --faint: #74716a;
  --line: #e7e4dd;
  --line-strong: #cfcbc2;
  --gold: #d4af37;
  --gold-text: #7a5c12;
  --gold-soft: #faf4e2;
  --gold-line: #e9d99d;
  --gold-grad: linear-gradient(115deg, #dfc15d, #c7a12d);
  --focus: #8a6813;
  --good-btn: #d4af37;
  --bubble-them: #f3f2ee;
  --bubble-us: #f7efd8;
  --bubble-us-fg: #352d18;
  --report-paper: #ffffff;
  --chart-line: #3a3a3a;
  --bar-other: #d7d4cd;
  --shadow: 0 5px 20px #1a1a1a0a;
  color-scheme: light;
}
html, body, #app, .shell, .app-workspace, .main { background: var(--bg); }
.topbar { background: #ffffff; border-color: var(--line); }

/* Navigation stays charcoal in both rail states and on mobile. */
.side, .mobile-top {
  --nav-bg: #1a1a1a;
  --nav-hover: #2a2a2a;
  --nav-field: #252525;
  --nav-border: #3a3a3a;
  --nav-fg: #f7f5f0;
  --nav-muted: #b8b6b0;
  --focus: #dfc15d;
  background: var(--nav-bg);
  color: var(--nav-fg);
  border-color: var(--nav-border);
  color-scheme: dark;
}
.side .brand { color: var(--nav-fg); }
.side .brand-caption { color: var(--nav-muted); border-color: var(--nav-border); }
.side .nav { scrollbar-color: #56534d transparent; }
.side .nav-label { color: var(--nav-muted); }
.side .nav a { color: var(--nav-muted); }
.side .nav a:hover { color: var(--nav-fg); background: var(--nav-hover); }
.side .nav a.on, .side .nav a.on:hover {
  color: #241d0d;
  background: var(--gold-grad);
  box-shadow: none;
}
.side .nav a.on .count { background: #1a1a1a; color: #f3d985; }
.side .nav .count, .mobile-top .tabs .count { background: var(--gold); color: #241d0d; }
.side .nav a.on .count, .mobile-top .tabs a.on .count { background: #1a1a1a; color: #f3d985; }
.side .switcher select, .mobile-top .switcher select {
  color: var(--nav-fg); background: var(--nav-field); border-color: var(--nav-border);
}
.side .switcher::after, .mobile-top .switcher::after { color: var(--nav-muted); }
.side .switcher option, .mobile-top .switcher option { color: var(--nav-fg); background: var(--nav-field); }
.side .side-foot { border-color: var(--nav-border); }
.side .side-foot .who, .side .side-foot button { color: var(--nav-muted); }
.side .side-foot .who b { color: var(--nav-fg); }
.side .side-foot button:hover { color: var(--nav-fg); background: var(--nav-hover); }
.side .side-foot .sidebar-toggle {
  color: #241d0d; background: var(--gold); border-color: var(--bg);
}
.side .side-foot .sidebar-toggle:hover { color: #241d0d; background: #e0c15d; }
:root[data-sidebar="collapsed"] .side .nav-label { border-top-color: var(--nav-border); }
:root[data-sidebar="collapsed"] .side .nav .count { border-color: var(--nav-bg); }
.mobile-top .menu-btn, .mobile-top .icon-button {
  color: var(--nav-fg); border-color: var(--nav-border); background: var(--nav-field);
}
.mobile-top .menu-btn:hover, .mobile-top .icon-button:hover { background: var(--nav-hover); }
.mobile-top .tabs a { color: var(--nav-muted); }
.mobile-top .tabs a:hover { color: var(--nav-fg); background: var(--nav-hover); }
.mobile-top .tabs a.on, .mobile-top .tabs a.on:hover {
  color: #241d0d; background: var(--gold-grad); border-color: var(--gold);
}
.mobile-top .brand-mark { color: #241d0d; background: var(--gold); }

/* Solid, readable gold actions. Status colors continue to mean the same thing. */
.btn.good, .btn.primary { color: #241d0d; background: var(--gold-grad); border-color: #c5a12d; }
.btn.good:hover:not(:disabled), .btn.primary:hover:not(:disabled) {
  color: #241d0d; background: #e0c15d; border-color: #c5a12d; opacity: 1; filter: none;
}
.decision-avatar, .profile-dot { background: var(--gold-soft); border-color: var(--gold-line); color: var(--gold-text); }
.decision-workspace, .decision-main, .decision-queue, .decision-queue-item { background: var(--surface); }
.decision-queue-item:hover { background: var(--surface-2); }
.decision-queue-item.selected { background: var(--gold-soft); }

/* The small credit panel repeats the charcoal, without making the page dark. */
.credit-ledger, .dashboard-credit {
  background: #1a1a1a; color: #f7f5f0; border-color: #3a3a3a;
  --focus: #dfc15d;
}
.credit-ledger h2, .credit-ledger > strong, .dashboard-credit .big { color: #f7f5f0; }
.credit-ledger > strong small, .credit-ledger > p,
.dashboard-credit .hint, .dashboard-credit .eyebrow, .dashboard-credit .big small { color: #c1beb7; }
.credit-ledger .section-top { border-color: #3a3a3a; }
.credit-ledger .text-link, .dashboard-credit .credit-footer a { color: #e0c15d; }
.credit-ledger .text-link:hover, .dashboard-credit .credit-footer a:hover { color: #f1d997; }
.credit-footer { border-color: #3a3a3a; }
.credit-ledger > .pill { color-scheme: light; }

/* Forms, reports, tables, dialogs, and the sign-in form retain white surfaces. */
.auth-brand { background: #ffffff; color: var(--fg); }
.auth-brand .brand-caption { color: var(--muted); border-color: var(--line); }
.auth-form-wrap { background: #ffffff; }

@media print {
  html, body, #app, .shell, .app-workspace, .main { background: #ffffff; }
  .credit-ledger, .dashboard-credit { background: #ffffff; color: #1a1a1a; border-color: #cfcbc2; }
  .credit-ledger h2, .credit-ledger > strong, .dashboard-credit .big,
  .credit-ledger > strong small, .credit-ledger > p,
  .dashboard-credit .hint, .dashboard-credit .eyebrow, .dashboard-credit .big small { color: #1a1a1a; }
  .credit-ledger .text-link { color: #7a5c12; }
}


/* ================================================================
   04 / REFERENCE REFINEMENT
   Charcoal navigation. White working surfaces. Quiet gold accents.
   Reference cues: compact overview cards, a calmer header, generous
   panel spacing, a utility rail and a clear chart / report hierarchy.
   ================================================================ */
:root, :root[data-theme="light"], :root[data-theme="dark"] {
  --bg:#f5f6f8; --surface:#ffffff; --surface-2:#f7f8fa; --surface-3:#eef0f3;
  --fg:#25272b; --muted:#6c7078; --faint:#737781;
  --line:#e6e8ec; --line-strong:#d0d4db;
  --ink:#202124; --ink-2:#2c2e32; --ink-fg:#fbfbfc; --ink-muted:#b8bbc3;
  --gold:#d2ae4e; --gold-text:#84631d; --gold-soft:#fcf7e9; --gold-line:#ead9a9;
  --gold-grad:linear-gradient(115deg,#dcc070,#cba545);
  --good:#2d7660; --good-soft:#edf6f1; --good-btn:#d2ae4e;
  --bad:#b54b4b; --bad-soft:#fbefef; --warn:#88621f; --warn-soft:#fbf3e2;
  --info:#506d92; --info-soft:#edf2f9;
  --bubble-them:#f2f4f7; --bubble-us:#fcf6e7; --bubble-us-fg:#3e351f;
  --radius:14px; --side:216px; --gap:20px;
  --shadow:0 2px 5px #23283302,0 7px 24px #23283303;
  --chart-line:#555c67; --bar-other:#d7dce5; --report-paper:#fff;
  --font-display:'Manrope',Arial,sans-serif;
  --font-body:'Manrope',Arial,sans-serif;
  --font-data:'Manrope',Arial,sans-serif;
  color-scheme:light;
}
:root[data-sidebar="collapsed"]{--side:64px}
html,body,#app,.shell,.app-workspace,.main{background:var(--bg)}
body{font-size:13px;line-height:1.65}
h1,h2,h3{letter-spacing:-.025em} h1{font-size:27px;line-height:1.25;font-weight:750} h2{font-size:16px;font-weight:750} h3{font-size:14px}
.page{max-width:1520px;gap:22px}.main{padding:28px 28px 24px}.page-head{align-items:center;gap:18px}.page-head p{margin-top:6px;font-size:12px}
.btn,.btn.small{border-radius:8px;box-shadow:none;min-height:38px;font-size:12px;padding:9px 14px}
.btn.primary,.btn.good{background:var(--gold);border-color:#c9a543;color:#292313}
.btn.primary:hover:not(:disabled),.btn.good:hover:not(:disabled){background:#e1c373;color:#292313;border-color:#c9a543;filter:none}
.btn.danger{background:transparent;border-color:transparent;color:var(--bad)}
.btn.danger:hover:not(:disabled){background:var(--bad-soft);border-color:transparent}
.btn:disabled{opacity:.46;cursor:not-allowed}
.pill{border-radius:6px;font-size:10px;font-weight:650;padding:4px 7px;letter-spacing:0}
.pill:before{width:5px;height:5px}
.input,select.input,textarea.input{border-radius:8px;font-size:13px;min-height:42px;background:var(--surface)}
.input::placeholder{color:var(--faint)}
.panel{border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);background:#fff;min-width:0}
.panel-head{padding:19px 22px;border-bottom:1px solid var(--line)}.panel-body{padding:22px}.panel-foot{padding:16px 22px}
.chip{border-radius:7px;font-size:12px;padding:8px 13px;min-height:36px}.chip.on{background:var(--fg);color:#fff;border-color:var(--fg)}
.text-link{font-size:11px;min-height:32px;color:var(--muted)}.text-link:hover{color:var(--gold-text)}
/* Sidebar preserves the requested expand/collapse mechanism. */
.side,.mobile-top{--nav-bg:#202124;--nav-hover:#2c2e32;--nav-field:#2b2d31;--nav-border:#393b41;--nav-fg:#fbfbfc;--nav-muted:#b8bbc3;background:var(--nav-bg);color:var(--nav-fg);border-color:var(--nav-border)}
.side{padding:28px 12px 20px;gap:25px;border-right:0}
.side .brand{padding:0 11px;gap:13px;min-height:40px}.side .brand .logo{width:78px}.side .brand-caption{color:#b8bbc3;font-size:9px;line-height:1.6;border-color:#4b4d53}
.side .switcher select{background:var(--nav-field);border:1px solid var(--nav-border);border-radius:9px;min-height:42px;font-size:11px;color:#f7f8fa;padding-left:12px}
.side .switcher:after{color:#aeb3bb}.side .switcher option{background:var(--nav-bg);color:var(--nav-fg)}
.side .nav{gap:5px;overflow-x:hidden}.side .nav-label{font-size:9px;letter-spacing:.11em;color:#9398a3;padding:16px 12px 8px;font-weight:600}
.side .nav-label:first-child{padding-top:0}.side .nav a{min-height:42px;border-radius:8px;font-size:12px;padding:11px 12px;gap:12px;color:#bfc2c9}
.side .nav a:hover{background:var(--nav-hover);color:#fff}.side .nav a.on,.side .nav a.on:hover{background:var(--gold);color:#262216;box-shadow:none}
.side .nav svg{width:16px;height:16px;stroke-width:1.7}.side .nav .count{background:var(--gold);color:#262216;border-radius:5px;font-size:9px}
.side .nav a.on .count{background:#282622;color:#f1ddb0}
.side .side-foot{border-color:#393b41}.side .side-foot .who{font-size:10px;line-height:1.8;color:#aeb2bc}.side .side-foot .who b{font-size:12px;color:#f5f5f6;margin-bottom:1px}
.side .side-foot button{color:#b8bbc3;border-radius:7px}.side .side-foot button:hover{background:var(--nav-hover);color:#fff}
.side .side-foot .sidebar-toggle{background:#d2ae4e;color:#252017;border:3px solid var(--bg);width:28px;height:28px;min-height:28px;right:-26px;bottom:7px}
.side .side-foot .sidebar-toggle:hover{background:#e1c373;color:#252017}
:root[data-sidebar="collapsed"] .side{padding:28px 10px 20px;gap:24px}
:root[data-sidebar="collapsed"] .side .brand{padding:0;justify-content:center}
:root[data-sidebar="collapsed"] .side .brand .logo{width:39px}
:root[data-sidebar="collapsed"] .side .nav a{padding:11px;min-height:42px}
:root[data-sidebar="collapsed"] .side .nav-label{border-color:#393b41}
:root[data-sidebar="collapsed"] .side .side-foot .sidebar-toggle{right:-24px}
/* Header: a real search, approval shortcut and account menu. */
.topbar{min-height:76px;padding:15px 28px;border-bottom:1px solid var(--line);background:#fff;gap:16px}
.topbar-left,.topbar-right{gap:16px;min-width:0}.topbar .switcher{width:188px}.topbar .switcher select{font-size:12px;border:0;min-height:36px;font-weight:750;background:none}
.breadcrumb{font-size:12px;color:var(--muted)}.breadcrumb:before{color:#c4c7cd;margin-right:16px}
.workspace-search{display:flex;align-items:center;gap:9px;border:1px solid #eaecf0;background:#f8f9fb;color:var(--muted);padding:8px 11px;min-height:36px;border-radius:8px;font-size:11px}
.workspace-search .ico{width:14px;height:14px}.workspace-search kbd{margin-left:20px;line-height:1.5;font-size:9px;color:var(--faint);background:#fff;border:1px solid var(--line);border-radius:4px}
.topbar .demo-flag{font-size:9px;letter-spacing:.02em;background:#fff;color:var(--faint);border:1px solid var(--line);border-radius:5px;padding:4px 7px}
.notice-button{display:grid;place-items:center;position:relative;width:34px;height:36px;flex:none;color:var(--muted);border:0;border-radius:8px;text-decoration:none;background:#fff}
.notice-button:hover{background:var(--surface-2);color:var(--fg)}.notice-button .ico{width:17px;height:17px}.notice-button .notice-dot{position:absolute;right:7px;top:7px;width:5px;height:5px;background:var(--gold);border:1px solid #fff;border-radius:50%}
.account-menu{position:relative;flex:none;line-height:1.4}.account-menu>summary{display:flex;align-items:center;gap:9px;cursor:pointer;list-style:none;padding:1px;min-height:36px;border-radius:7px}
.account-menu>summary::-webkit-details-marker{display:none}.account-menu>summary>.ico{width:12px;height:12px;transform:rotate(90deg);color:var(--muted);margin-left:1px}
.account-avatar{display:grid;place-items:center;width:34px;height:34px;flex:none;border-radius:50%;font-size:10px;font-weight:800;background:#f1e8d0;color:#6e5522;border:3px solid #faf7f0}
.account-name{font-size:11px;font-weight:700;color:var(--fg)}.account-name small{display:block;font-size:9px;font-weight:500;color:var(--muted);margin-top:3px}
.account-popover{position:absolute;right:0;top:calc(100% + 13px);z-index:39;padding:9px;width:218px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 12px 40px #25272b17}
.account-popover>p{margin:3px 8px 10px;padding-bottom:10px;border-bottom:1px solid var(--line);font-size:10px;overflow-wrap:anywhere;color:var(--muted)}
.account-popover a,.account-popover button{display:flex;align-items:center;gap:8px;width:100%;background:none;border:0;border-radius:6px;color:var(--fg);font-size:12px;padding:9px;text-decoration:none;text-align:left;cursor:pointer}
.account-popover a:hover,.account-popover button:hover{background:var(--surface-2)}.account-popover .ico{width:14px;height:14px}
/* Dashboard overview cards and an understated results band. */
.overview-head{margin-bottom:0;align-items:center}.overview-head .eyebrow{font-size:9px;letter-spacing:.13em;margin-bottom:7px;color:var(--faint);font-weight:700}
.overview-head h1{font-size:27px;letter-spacing:-.04em}.overview-head p{font-size:12px;margin-top:7px;color:var(--muted)}
.overview-head .head-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.date-chip{display:flex;align-items:center;gap:8px;min-height:36px;font-size:11px;color:var(--muted);background:#fff;border:1px solid var(--line);border-radius:8px;padding:7px 11px}.date-chip .ico{width:14px;height:14px}
.overview-ops{min-width:0}.overview-sectionline{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:11px}.overview-sectionline h2{font-size:12px;letter-spacing:0;color:var(--fg);font-weight:700}.overview-sectionline>span{font-size:10px;color:var(--muted)}
.stats.overview-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;padding:0;background:none;border:0;border-radius:0;overflow:visible;box-shadow:none}
.overview-metrics .metric-card{position:relative;display:flex;flex-direction:column;min-width:0;gap:0;margin:0;border:1px solid var(--line);border-radius:12px;padding:17px 18px 15px;background:#fff;box-shadow:var(--shadow);min-height:121px}
.metric-card .metric-top{display:flex;align-items:center;justify-content:space-between;gap:9px;min-height:26px;margin-bottom:6px}
.metric-card .label{font-size:10px;font-weight:600;line-height:1.5;color:var(--muted);max-width:20ch}.metric-card .metric-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#f5f6f9;color:#606878;flex:none}.metric-card .metric-icon svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.metric-card .value{font-size:30px;font-weight:750;line-height:1.15;letter-spacing:-.04em;color:var(--fg);margin-bottom:5px}.metric-card .note{font-size:9px;color:var(--muted);line-height:1.5}
.metric-card.attention{background:#fcf8ed;border-color:#eadbb4}.metric-card.attention .metric-icon{background:#f4e9ca;color:#84631d}.metric-card.attention .value{color:#826018}.metric-card.attention .label{color:#826018}
.results-strip{border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);padding:14px 20px 17px;background:#fff;min-width:0}
.results-strip-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 11px;border:0;padding:0}.results-strip-head>div{display:flex;gap:14px;align-items:baseline;flex-wrap:wrap}.results-strip-head h2{font-size:12px;letter-spacing:0;font-weight:700}.results-strip-head .eyebrow{font-size:9px;text-transform:none;letter-spacing:0;font-weight:500;color:var(--muted)}.results-strip-head .btn{min-height:24px;padding:0;font-size:10px;background:transparent;border:0}
.results-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;min-width:0;padding:0;border:0}
.results-stats .stat{padding:0 17px;display:flex;flex-direction:column;gap:4px;border-right:1px solid var(--line);border-bottom:0;background:none;min-width:0}
.results-stats .stat:first-child{padding-left:0}.results-stats .stat:last-child{padding-right:0;border-right:0}
.results-stats .label{font-size:10px;font-weight:600;color:var(--muted)}.results-stats .value{font-size:24px;line-height:1.25;font-weight:750;letter-spacing:-.025em}.results-stats .note{font-size:9px;line-height:1.5;color:var(--muted)}.results-stats .stat-change{font-size:8px;line-height:1.5;display:flex;align-items:center;gap:2px;margin-top:1px}.stat-change .ico{width:10px;height:10px}
.dashboard-body{display:grid;grid-template-columns:minmax(0,1fr) 266px;gap:20px;align-items:start;min-width:0}.dashboard-main,.dashboard-rail{display:grid;gap:20px;min-width:0;align-content:start}
/* The central decision remains the primary workspace, not customer paths. */
.decision-workspace{border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:var(--shadow);overflow:hidden}
.decision-workspace-head{padding:19px 21px;gap:14px;border-bottom:1px solid var(--line)}
.decision-kicker{display:none}.decision-workspace-head h2{font-size:17px;letter-spacing:-.025em;display:flex;align-items:center;gap:9px}
.decision-workspace-head h2:before{content:'';width:7px;height:7px;background:var(--gold);border-radius:50%;flex:none}
.decision-workspace-head p{font-size:10px;line-height:1.5;margin-top:5px}.decision-workspace-head>.text-link{font-size:10px;min-height:24px;margin:0}
.decision-layout{grid-template-columns:minmax(0,1fr) 214px;min-height:0}.decision-main{background:#fff}
.decision-person{padding:20px 20px 15px;gap:10px}.decision-avatar{width:36px;height:36px;background:#f4eddd;color:#7c6028;border-color:#eee2c3;font-size:11px}
.decision-identity{gap:9px}.decision-name{gap:7px}.decision-name h3{font-size:17px;letter-spacing:-.03em}.decision-name .pill{font-size:8px;padding:3px 6px}
.decision-channel{font-size:9px;margin-top:4px}.decision-position{font-size:9px}
.decision-facts{margin:0 20px;padding:0 0 14px;gap:10px;grid-template-columns:minmax(0,1.4fr) minmax(65px,.8fr) minmax(65px,.8fr)}
.decision-facts dt{font-size:9px;margin-bottom:3px}.decision-facts dd{font-size:11px;line-height:1.5;font-weight:700}.decision-facts dd span{font-size:8px;line-height:1.5;max-width:24ch}
#decision-focused .approval{padding:15px 20px 20px;gap:11px}#decision-focused .approval-top{gap:8px}#decision-focused .approval-top .pill{font-size:9px}#decision-focused .approval-top time{font-size:9px}
#decision-focused .summary{font-size:11px;font-weight:600;line-height:1.65}#decision-focused .draft{border:1px solid #eceef2;background:#f8f9fb;border-radius:9px;padding:14px 15px;font-size:12px;line-height:1.85}
#decision-focused .draft .meta{font-size:9px;font-weight:500;letter-spacing:0;line-height:1.6;padding-bottom:9px;margin-bottom:10px}
#decision-focused textarea.input{font-size:12px;line-height:1.85;min-height:165px;border-radius:9px}
#decision-focused .actions{gap:7px;padding-top:2px}#decision-focused .actions .btn{min-height:36px;font-size:10px;padding:8px 11px;border-radius:7px}#decision-focused .actions .btn.good{padding-inline:13px}#decision-focused .actions .btn.danger{margin:0}
.decision-bottom{padding:11px 20px;gap:8px}.decision-bottom .text-link{font-size:9px;min-height:25px}.decision-bottom>span{font-size:8px;gap:4px}.decision-bottom .ico{width:11px;height:11px}
.decision-queue{border-left:1px solid var(--line);background:#fff;min-width:0}.decision-queue-head{padding:17px 15px 14px;gap:10px}.decision-queue-head h3{font-size:11px;letter-spacing:0}.decision-total{font-size:9px;line-height:19px;border-radius:5px;padding:0 6px}
.decision-queue-items{max-height:440px}.decision-queue-item{padding:15px 13px;grid-template-columns:17px minmax(0,1fr) 9px;gap:5px;background:#fff;border-top:1px solid var(--line)}
.decision-queue-item.selected{background:#fcf8ee}.decision-queue-item.selected:before{width:2px}.decision-queue-item:hover{background:#f7f8fa}.decision-queue-item.selected:hover{background:#faf2df}
.decision-queue-number{font-size:8px;padding-top:1px}.decision-queue-copy{gap:5px}.decision-queue-meta,.decision-queue-meta time{font-size:8px}.decision-queue-copy b{font-size:11px}.decision-queue-summary{font-size:9px;line-height:1.7}
.decision-queue-item>.ico{width:10px;height:10px;margin-top:22px}.decision-queue-note{font-size:9px;line-height:1.7;padding:17px 16px}
/* Credits is the only large dark card on the working surface. */
.credit-card{position:relative;overflow:hidden;border-radius:14px;padding:21px;background:#252629;color:#fff;border:1px solid #303238;box-shadow:var(--shadow);min-width:0}
.credit-card .credit-card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.credit-card .credit-card-head h2{font-size:11px;font-weight:600;color:#e4e4e7;letter-spacing:0}.credit-card-head>.ico{color:#d7b561;width:17px;height:17px}
.credit-card .credit-value{display:flex;align-items:baseline;gap:7px;margin:0 0 15px;flex-wrap:wrap}.credit-card .credit-value strong{font-size:32px;font-weight:700;letter-spacing:-.035em;line-height:1.15;color:#fff}.credit-card .credit-value>span{font-size:10px;color:#c4c5ca}
.credit-included{padding-top:14px;border-top:1px solid #45464b;margin-top:15px}.credit-included .credit-meter-label{display:flex;gap:8px;justify-content:space-between;font-size:9px;line-height:1.6;color:#cbccd1}.credit-included .credit-meter-label b{font-weight:600;color:#f5f5f6;white-space:nowrap}
.credit-included .meter{height:5px;margin:9px 0 8px;border:0;background:#494a4f}.credit-included .meter i{background:#d8b762;box-shadow:none}.credit-included p{font-size:9px;margin:0;color:#bfc1c8}
.credit-card .credit-cta{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:17px;border:1px solid #55565b;border-radius:7px;padding:9px 12px;min-height:37px;background:#f8f8f9;color:#303138;text-decoration:none;font-size:10px;font-weight:700}
.credit-card .credit-cta:hover{background:#f2e7c8;border-color:#f2e7c8}.credit-cta .ico{width:13px;height:13px}.credit-card>.hint{color:#c4c6ce;font-size:11px}.credit-card>.pill{margin-top:3px}
/* Compact, scrollable eight-item work log; row opens the original drawer. */
.activity-paper{padding:0;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);min-width:0;overflow:hidden}
.activity-paper>.section-top{padding:18px 18px 13px;margin:0;border:0;align-items:center;display:flex;justify-content:space-between;gap:10px}.activity-paper .section-top h2{font-size:13px}.activity-paper .section-top .text-link{font-size:9px;gap:2px;min-height:26px}
.activity-paper .rows{display:grid;max-height:470px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent;padding:0 16px 8px}
.activity-paper button.row{grid-template-columns:minmax(0,1fr);gap:5px;padding:13px 1px;background:#fff;border:0;border-bottom:1px solid var(--line);min-width:0;position:relative}
.activity-paper button.row:last-child{border-bottom:0}.activity-paper button.row:hover{background:#f8f9fb}.activity-paper .row .t{font-size:11px;font-weight:700;line-height:1.6;white-space:normal;padding-right:0}
.activity-paper .row .s{font-size:9px;line-height:1.7;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.activity-paper .row .r{grid-row:auto;grid-column:1;display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:8px;line-height:1.4}.activity-paper .row .pill{font-size:8px;padding:3px 5px}.activity-paper .row .pill:before{width:4px;height:4px}
/* HTML/CSS chart: text stays legible when the viewport changes. */
.overview-chart{padding:21px 22px 19px;min-width:0}.overview-chart .section-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border:0;margin:0 0 20px;padding:0}.overview-chart h2{font-size:14px}.overview-chart .section-top p{font-size:10px;color:var(--muted);margin:4px 0 0}.chart-period{font-size:9px;border:1px solid var(--line);border-radius:6px;padding:5px 9px;white-space:nowrap;color:var(--muted)}
.activity-chart{display:grid;grid-template-columns:24px minmax(0,1fr);gap:10px;min-width:0;margin-top:8px}.activity-yaxis{height:164px;display:flex;flex-direction:column;justify-content:space-between;text-align:right;font-size:9px;line-height:1;color:var(--faint);padding-top:0;transform:translateY(-4px)}
.activity-plot{height:164px;position:relative;min-width:0;border-bottom:1px solid var(--line)}.activity-grid{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:space-between;pointer-events:none}.activity-grid i{height:1px;width:100%;border-top:1px dashed #e8ebef}.activity-grid i:last-child{border:0}
.activity-bars{position:relative;display:grid;grid-template-columns:repeat(14,minmax(0,1fr));gap:10px;height:164px;padding:0 6px;align-items:end}.activity-day{height:100%;display:flex;align-items:center;justify-content:flex-end;flex-direction:column;min-width:0;position:relative;outline-offset:3px;border-radius:3px;cursor:default}
.activity-day .bar-stack{display:flex;flex-direction:column;justify-content:flex-end;width:80%;max-width:29px;min-width:3px;border-radius:4px 4px 1px 1px;overflow:hidden;position:relative}
.activity-day .bar-part{display:block;min-height:0;flex:none}.activity-day .bar-other{background:#cfd5df}.activity-day .bar-conversations{background:#d5b35c}.activity-day:hover .bar-conversations,.activity-day:focus-visible .bar-conversations{background:#bc9336}.activity-day:hover .bar-other,.activity-day:focus-visible .bar-other{background:#a7b0c0}
.activity-day .bar-tooltip{display:none;position:absolute;bottom:calc(100% + 7px);left:50%;transform:translateX(-50%);font-size:9px;padding:6px 8px;border-radius:5px;background:#292c32;color:#fff;white-space:nowrap;z-index:3;pointer-events:none;box-shadow:0 4px 10px #0001}.activity-day:hover .bar-tooltip,.activity-day:focus-visible .bar-tooltip{display:block}
.activity-dates{display:grid;grid-template-columns:repeat(14,minmax(0,1fr));gap:10px;font-size:8px;color:var(--faint);padding:9px 6px 0;min-width:0}.activity-dates span{text-align:center;white-space:nowrap}.activity-dates span:nth-child(odd){visibility:hidden}
.overview-chart .legend{display:flex;flex-wrap:wrap;justify-content:center;font-size:9px;gap:20px;padding-top:17px;color:var(--muted)}.overview-chart .legend i{width:7px;height:7px;border-radius:2px;margin-right:5px}
.chart-foot{font-size:10px}.chart .grid,.revenue-chart .grid{stroke:#e9ecf0;stroke-dasharray:3 5}.chart .axis{fill:var(--muted)}
/* Reports use the reference's card hierarchy rather than an editorial sheet. */
.reports-workspace .page-head h1{font-size:27px}.report-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;background:none;border:0;padding:0;border-radius:0;overflow:visible}
.report-kpis .stat,.report-kpis .stat:first-child{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);padding:20px;display:flex;flex-direction:column;gap:7px;min-width:0;min-height:151px}
.report-kpis .label{font-size:10px;font-weight:600;color:var(--muted);min-height:16px}.report-kpis .value{font-size:29px;line-height:1.25;font-weight:750;letter-spacing:-.035em}.report-kpis .note{font-size:9px;line-height:1.5;color:var(--muted)}.report-kpis .stat-change{font-size:9px;margin-top:auto;line-height:1.5}
.report-kpis .stat:nth-child(5){background:#fcf8ed;border-color:#eadbb4}.report-kpis .stat:nth-child(5) .value{color:#84631d}
.report-primary{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(265px,1fr);gap:20px;align-items:stretch;background:none;border:0;padding:0}
.revenue-section,.funnel-section,.source-section,.distribution-section,.lost-section,.recent-wins{padding:23px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);min-width:0}
.report-section-head{margin:0 0 18px;border:0;padding:0;gap:14px}.report-section-head h2{font-size:15px}.report-section-head p{font-size:10px;color:var(--muted);margin-top:4px}.chart-summary strong{font-size:29px}.chart-summary span{font-size:10px}
.chart-segment{padding:3px;background:var(--surface-2);border:1px solid var(--line);border-radius:7px}.chart-segment button{font-size:10px;border-radius:5px;padding:5px 9px;min-height:28px}.chart-segment button.on{background:#fff;color:var(--fg);box-shadow:0 1px 4px #0000000b}
.funnel-list{display:grid;grid-template-columns:1fr;gap:21px}.funnel-step{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:center}.step-name{font-size:11px}.step-number{font-size:9px;color:var(--faint)}.step-count{font-size:20px}.step-bar{grid-column:1 / -1;height:5px;background:#f1f2f5;border-radius:3px}.step-bar i{border-radius:3px;background:var(--gold)}.step-rate{font-size:9px;grid-column:1 / -1;color:var(--muted)}.funnel-note{font-size:9px;margin-top:20px}
.report-secondary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}.distribution-row{font-size:11px;gap:14px}.distribution-row .meter{height:6px;border:0}.lost-reasons li{font-size:12px;padding:12px 0}.recent-wins .win-row{padding-block:16px}.win-person b{font-size:12px}.win-person small,.win-source,.win-speed{font-size:10px}.win-amount{font-size:15px}
.source-section{padding:0;overflow:hidden}.source-section .report-section-head{padding:21px 23px;margin:0}.table-note{font-size:9px;padding:14px 23px;background:#fff;margin:0;border-top:1px solid var(--line)}
.table-wrap{min-width:0}.table-wrap table{font-size:12px}.table-wrap th{background:#f9fafb;font-size:9px;letter-spacing:.055em;color:var(--muted);padding:13px 16px}.table-wrap td{padding:16px;border-color:var(--line)}.table-wrap td .sub{font-size:10px;line-height:1.7;margin-top:4px}
.admin-stats{gap:12px;background:none;border:0;overflow:visible}.admin-stats .stat{background:#fff;border:1px solid var(--line);border-radius:12px;min-width:0;padding:18px}.admin-stats .value{font-size:26px}
/* Thread, approvals and billing inherit the same card and control treatment. */
.approval-workspace{border-radius:14px;border-color:var(--line);box-shadow:var(--shadow);overflow:hidden;background:#fff}.approval-index{background:#fff}.approval-document{background:#fff}.approval-item{background:#fff}.approval-item.selected{background:var(--gold-soft)}.approval-document-title h2{font-size:24px}.approval-document .draft{border-radius:9px;background:#f8f9fb;line-height:1.9;font-size:13px}
.convo{border-radius:14px;box-shadow:var(--shadow);overflow:hidden}.convo-list{background:#fff}.convo-item{background:#fff;padding:17px 18px}.convo-item.on{background:#fbf6e9;box-shadow:inset 2px 0 var(--gold)}.convo-item .name{font-size:12px}.convo-item .last{font-size:11px}.convo-item time{font-size:9px}.convo-item .tags{flex-wrap:wrap;gap:5px}.convo-item .pill{font-size:9px}
.thread{background:#fff}.thread-head{padding:20px 22px}.thread-head h2{font-size:19px}.thread-head .contact span{font-size:11px}.bubbles{background:#fff;padding:24px;gap:12px}.bubble{font-size:13px;line-height:1.8;border-radius:12px;padding:13px 16px}.bubble.them{background:#f2f4f7}.bubble.us{background:#fbf5e5;color:#393220}.bubble.call{background:#fff;border-color:var(--line);font-size:10px}.bubble-meta{font-size:9px;color:var(--muted)}
.lead-details{background:#fafbfd;border-color:var(--line);border-radius:0;padding:18px 22px}.lead-facts dt{font-size:9px}.lead-facts dd{font-size:11px}.lead-details .hint{font-size:9px}.lead-outcome-form{background:#fff;border-radius:9px;padding:17px;border:1px solid var(--line)}
.balance{padding:24px}.balance .big{font-size:43px;letter-spacing:-.04em}.balance .big small{font-size:13px}.buy .btn{border-radius:7px}.meter{height:6px;border:0;background:#f0f1f4}.meter i{background:var(--gold)}.meter.warn i{background:var(--warn)}.meter.bad i{background:var(--bad)}.kv{font-size:12px;line-height:1.8}.tool{padding:19px 22px}.tool .s{font-size:11px;line-height:1.8}.row .s{font-size:11px}.form-row{gap:14px}
.drawer{border-left-color:var(--line);box-shadow:-10px 0 50px #24283213}.drawer-head{padding:24px}.drawer-head h2{font-size:22px}.drawer-body{padding:24px;gap:20px}.drawer-back{background:#1c202947;backdrop-filter:blur(3px)}.report{font-size:13px;line-height:1.9}.toast{border-radius:10px;box-shadow:0 8px 30px #0002}
.page-footer{margin-top:30px;padding-top:19px;font-size:9px;border-color:var(--line);color:var(--faint)}
.auth-brand{background:#202124;color:#fff;border-color:#33363b}.auth-brand h1{color:#fff;font-size:42px;letter-spacing:-.04em}.auth-brand h1 em{color:#d8b762}.auth-brand p{color:#bfc2cb}.auth-brand .brand-caption{color:#bfc2cb;border-color:#45474f}.auth-feed div{color:#eef0f5;border-color:#6d5b31}.auth-feed span{color:#b7bbc5}.auth-form-wrap{background:#fff}.auth-form h2{font-size:28px}
@media(min-width:1350px){.convo{grid-template-columns:282px minmax(0,1fr)}.thread{display:flex}.thread-head,.thread-drafts,.thread-notes,.bubbles,.lead-details{grid-column:auto;grid-row:auto}.lead-details{border-left:0;border-bottom:1px solid var(--line)}.lead-facts{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1300px){.topbar-right{gap:11px}.workspace-search span{display:none}.workspace-search kbd{margin-left:2px}.account-name{display:none}.metric-card .metric-icon{width:23px;height:23px}.metric-card .label{font-size:9px}.overview-metrics .metric-card{padding:15px}.dashboard-body{grid-template-columns:minmax(0,1fr) 245px}.decision-layout{grid-template-columns:minmax(0,1fr) 200px}.decision-facts dd{font-size:10px}.results-stats .stat{padding-inline:12px}.results-stats .value{font-size:23px}}
@media(max-width:1180px){.dashboard-body{grid-template-columns:minmax(0,1fr)}.dashboard-rail{grid-template-columns:minmax(245px,.75fr) minmax(0,1fr);align-items:start}.activity-paper .rows{max-height:325px}.decision-layout{grid-template-columns:minmax(0,1fr) 245px}.decision-queue-summary{font-size:10px}.decision-facts dd{font-size:12px}.topbar .demo-flag{display:none}.main{padding:24px}.topbar{padding-inline:24px}.report-primary{grid-template-columns:minmax(0,1fr)}.funnel-list{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}.funnel-step{display:flex;align-items:flex-start;flex-direction:column;gap:8px}.step-bar{width:100%}.funnel-note{margin-top:18px}.funnel-step .step-rate{font-size:8px}.funnel-step .step-count{font-size:21px}}
@media(min-width:901px) and (max-width:1060px){.stats.overview-metrics{gap:9px}.overview-metrics .metric-card{padding:13px 12px}.metric-card .metric-top{align-items:start;gap:4px}.metric-card .metric-icon{width:20px;height:20px}.metric-card .metric-icon svg{width:12px;height:12px}.metric-card .value{font-size:26px}.results-strip{padding:14px}.results-stats .stat{padding-inline:10px}.results-stats .value{font-size:20px}.results-stats .note{font-size:8px}.results-stats .stat-change{font-size:7px}.results-strip-head .eyebrow{display:block}.overview-head h1{font-size:24px}.overview-head .date-chip{display:none}.report-kpis{gap:12px}.report-kpis .stat,.report-kpis .stat:first-child{padding:15px}.report-kpis .value{font-size:24px}}
@media(max-width:900px){
  .shell{grid-template-columns:minmax(0,1fr)}.side,.topbar{display:none}.mobile-top{padding-top:max(12px,env(safe-area-inset-top));top:0;padding-inline:max(16px,env(safe-area-inset-left));border-bottom:1px solid #393b41;gap:12px}.mobile-top .bar{gap:12px}.mobile-top .logo{width:45px}.mobile-top .switcher select{border-radius:7px;background:#2b2d31;color:#f5f5f7;font-size:12px;min-height:38px;border-color:#3c3f46}.mobile-top .switcher:after{color:#c1c5cc}.mobile-top .menu-btn{font-size:10px;min-height:36px;border-radius:6px;padding:7px 9px;background:#2b2d31;color:#f3f3f6;border-color:#3c3f46}.mobile-top .tabs{gap:4px;padding-bottom:8px}.mobile-top .tabs a{border:0;border-radius:6px;color:#bfc2ca;font-size:11px;padding:9px 12px}.mobile-top .tabs a.on{background:var(--gold);color:#272216;border-color:transparent}.mobile-top .tabs .count{font-size:9px}
  .main{padding:25px 20px}.page{gap:20px}.overview-head h1{font-size:25px}.overview-head .date-chip{display:none}.overview-head .head-actions .btn{font-size:10px;padding:7px 10px;min-height:34px}.overview-head p{font-size:11px}.overview-head .eyebrow{font-size:8px}.stats.overview-metrics{gap:11px}.overview-metrics .metric-card{padding:15px 13px;min-height:116px}.metric-card .label{font-size:9px}.metric-card .metric-icon{width:23px;height:23px}.metric-card .value{font-size:27px}.metric-card .note{font-size:8px}.results-stats .stat{padding-inline:12px}.results-stats .value{font-size:22px}.results-strip{padding:15px}.results-stats .note{font-size:8px}.results-stats .stat-change{font-size:8px}
  .decision-layout{grid-template-columns:minmax(0,1fr) 235px}.decision-facts{margin-inline:20px;grid-template-columns:minmax(0,1.3fr) minmax(65px,.8fr) minmax(65px,.8fr)}.decision-facts dd{font-size:11px}.decision-workspace-head{padding:19px 20px}.report-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.report-kpis .stat,.report-kpis .stat:first-child{padding:16px}.report-kpis .value{font-size:26px}.report-kpis .label,.report-kpis .note,.report-kpis .stat-change{font-size:9px}.report-secondary{gap:16px}.reports-workspace .page-head h1{font-size:26px}.page-footer{font-size:9px}
}
@media(max-width:680px){
 .main{padding:23px 16px}.page{gap:19px}.overview-head{align-items:flex-start}.overview-head h1{font-size:24px}.overview-head .head-actions{display:none}.overview-head p{max-width:38ch;line-height:1.8}.overview-sectionline h2{font-size:12px}.overview-sectionline>span{font-size:9px}.stats.overview-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.overview-metrics .metric-card{padding:16px;min-height:120px}.overview-metrics .metric-card:last-child:nth-child(odd){grid-column:1 / -1;min-height:98px;display:grid;grid-template-columns:1fr auto;column-gap:15px}.overview-metrics .metric-card:last-child:nth-child(odd) .metric-top{grid-column:1;grid-row:1;margin:0;justify-content:start;gap:10px}.overview-metrics .metric-card:last-child:nth-child(odd) .metric-icon{order:-1}.overview-metrics .metric-card:last-child:nth-child(odd) .value{grid-column:2;grid-row:1 / 3;align-self:center;margin:0;font-size:32px}.overview-metrics .metric-card:last-child:nth-child(odd) .note{grid-column:1;grid-row:2}
 .metric-card .label{font-size:10px}.metric-card .metric-icon{width:28px;height:28px}.metric-card .value{font-size:30px}.metric-card .note{font-size:9px}.results-strip{padding:16px}.results-strip-head{align-items:start;margin-bottom:15px}.results-strip-head>div{display:grid;gap:4px}.results-strip-head .eyebrow{font-size:8px;line-height:1.6;max-width:25ch}.results-strip-head .btn{font-size:9px;flex:none}.results-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:0}.results-stats .stat,.results-stats .stat:first-child,.results-stats .stat:last-child{padding:13px 0;border:0;border-bottom:1px solid var(--line);gap:4px}.results-stats .stat:nth-child(odd){padding-right:15px;border-right:1px solid var(--line)}.results-stats .stat:nth-child(even){padding-left:17px}.results-stats .stat:last-child:nth-child(odd){grid-column:1 / -1;border:0;display:grid;grid-template-columns:1fr auto;column-gap:12px;padding:14px 0 0}.results-stats .stat:last-child .value{grid-column:2;grid-row:1 / 4;align-self:center}.results-stats .stat:last-child .label,.results-stats .stat:last-child .note,.results-stats .stat:last-child .stat-change{grid-column:1}.results-stats .label{font-size:10px}.results-stats .value{font-size:25px}.results-stats .note,.results-stats .stat-change{font-size:9px}
 .dashboard-body,.dashboard-main,.dashboard-rail{gap:19px}.dashboard-rail{grid-template-columns:1fr}.decision-layout{grid-template-columns:1fr}.decision-workspace-head{padding:18px}.decision-workspace-head h2{font-size:17px}.decision-workspace-head p{font-size:10px;max-width:none}.decision-workspace-head>.text-link{font-size:9px;margin:0;flex:none}.decision-person{padding:19px 18px 15px}.decision-name h3{font-size:18px}.decision-channel{font-size:10px}.decision-name .pill{font-size:9px}.decision-position{font-size:10px}.decision-facts{margin-inline:18px;padding-bottom:16px;gap:12px}.decision-facts dt{font-size:9px}.decision-facts dd{font-size:11px}.decision-facts dd span{font-size:9px}#decision-focused .approval{padding:16px 18px 21px;gap:13px}#decision-focused .summary{font-size:12px}#decision-focused .draft{font-size:13px;padding:16px;line-height:1.9}#decision-focused .draft .meta{font-size:9px}#decision-focused .actions{gap:6px}#decision-focused .actions .btn{font-size:11px;min-height:42px;padding:9px 10px}#decision-focused .actions .btn.good{flex:1}.decision-bottom{padding:12px 18px}.decision-bottom .text-link{font-size:10px}.decision-bottom>span{font-size:8px}.decision-queue{border-left:0;border-top:1px solid var(--line)}.decision-queue-head{padding:16px 18px}.decision-queue-head h3{font-size:12px}.decision-queue-items{max-height:340px}.decision-queue-item{padding:16px 18px;grid-template-columns:22px minmax(0,1fr) 12px;gap:8px}.decision-queue-copy b{font-size:12px}.decision-queue-meta,.decision-queue-meta time{font-size:9px}.decision-queue-summary{font-size:11px}.decision-queue-note{font-size:10px;padding:14px 18px}
 .credit-card{padding:23px}.credit-card .credit-card-head h2{font-size:12px}.credit-card .credit-value strong{font-size:36px}.credit-included .credit-meter-label,.credit-included p{font-size:10px}.credit-card .credit-cta{font-size:11px;min-height:42px}.activity-paper .rows{max-height:500px}.activity-paper .row .t{font-size:12px}.activity-paper .row .s{font-size:11px}.activity-paper .row .r{font-size:9px}.activity-paper .row .pill{font-size:9px}
 .overview-chart{padding:20px 18px}.overview-chart .section-top{gap:10px;margin-bottom:23px}.overview-chart .section-top p{font-size:10px}.activity-bars,.activity-dates{gap:5px;padding-inline:1px}.activity-day .bar-stack{width:85%;max-width:18px}.activity-dates{font-size:7px}.activity-yaxis{font-size:8px}.activity-chart{gap:7px;grid-template-columns:20px minmax(0,1fr)}.activity-day .bar-tooltip{max-width:110px;white-space:normal;font-size:9px;text-align:center}.overview-chart .legend{font-size:9px}
 .report-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.report-kpis .stat,.report-kpis .stat:first-child{padding:16px;min-height:160px}.report-kpis .value{font-size:25px}.report-kpis .label{font-size:10px;min-height:28px}.report-kpis .note,.report-kpis .stat-change{font-size:9px}.report-primary,.report-secondary{grid-template-columns:1fr;gap:19px}.revenue-section,.funnel-section,.distribution-section,.lost-section,.recent-wins{padding:20px 18px}.report-section-head h2{font-size:15px}.report-section-head p{font-size:10px}.funnel-list{grid-template-columns:1fr;gap:19px}.funnel-step{display:grid;grid-template-columns:1fr auto;gap:7px}.funnel-step .step-rate{font-size:10px}.step-count{font-size:22px}.funnel-note{font-size:10px}.report-head{align-items:flex-start}.chart-summary strong{font-size:28px}.source-section .report-section-head{padding:20px 18px}.table-note{font-size:9px;padding:15px 18px}.table-wrap td{padding:10px 14px}.table-wrap .responsive-table tbody tr{border-color:var(--line)}.report-range .input{font-size:12px}.win-row{row-gap:6px}.win-amount{font-size:15px}.win-person small,.win-source,.win-speed{font-size:10px}.distribution-row{font-size:10px;gap:9px}
 .convo-item{padding:18px}.convo-item .name{font-size:13px}.convo-item .last{font-size:12px}.thread-head{padding:18px}.thread-head h2{font-size:18px}.thread-head .contact span{font-size:11px}.lead-details{padding:18px}.lead-facts{grid-template-columns:1fr 1fr;gap:15px}.lead-facts dd{font-size:11px}.lead-details .hint{font-size:9px}.lead-details-top{gap:12px}.bubbles{padding:18px}.bubble{max-width:90%;font-size:13px}.thread-notes{font-size:11px}.panel-head,.panel-body,.panel-foot{padding-inline:18px}.tool{padding:18px}.balance{padding:21px}.balance .big{font-size:38px}.kv{font-size:11px}.drawer-head,.drawer-body{padding:20px}.page-footer{display:grid;gap:6px;line-height:1.7}.auth-brand{padding:28px 22px}.auth-brand h1{font-size:32px}.auth-form-wrap{padding:32px 22px}.auth-form h2{font-size:26px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{.side,.mobile-top,.topbar,.head-actions,.page-footer,.credit-cta{display:none!important}.shell{display:block}.main{padding:0}.dashboard-body{display:block}.credit-card{background:#fff;color:#222}.credit-card *{color:#222!important}.report-kpis .stat,.decision-workspace,.overview-chart{break-inside:avoid}.activity-paper .rows{max-height:none;overflow:visible}}
/* Live approval counts also update the header shortcut. */
.notice-button .count{position:absolute;right:0;top:0;display:grid;place-items:center;min-width:14px;height:14px;padding:0 3px;background:#d2ae4e;color:#2a2315;border:2px solid #fff;border-radius:50%;font-size:8px;line-height:1;font-weight:700}
.notice-button:has(.count) .notice-dot{display:none}
.decision-workspace-head .text-link .count{font-size:9px;color:var(--gold-text);background:var(--gold-soft);padding:1px 5px;border-radius:4px}
.overview-metrics{--metric-count:5}.stats.overview-metrics{grid-template-columns:repeat(var(--metric-count),minmax(0,1fr))}
@media(max-width:680px){.stats.overview-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Neutralize superseded side-file layout rules from the earlier prototype. */
.thread>.lead-details{grid-column:auto;grid-row:auto;height:auto;min-height:0;width:auto;border-left:0;border-bottom:1px solid var(--line);padding:18px 22px;gap:15px}
.thread .lead-details-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.thread .lead-details-top .actions{margin-left:0}.thread .lead-facts{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px 23px}
.thread .lead-facts dt{font-size:9px;text-transform:none;letter-spacing:0}.thread .lead-facts dd{font-size:11px}
.thread>.bubbles{grid-column:auto;grid-row:auto;flex:0 0 auto;min-height:220px;max-height:420px;padding:23px;overflow-y:auto}
.thread>.thread-drafts,.thread>.thread-notes{grid-column:auto;grid-row:auto;flex-shrink:0}
.thread .lead-outcome-form .form-row{grid-template-columns:1fr 1fr}
.activity-paper .row .r{max-width:none;width:100%;justify-content:space-between;flex-wrap:nowrap}
.activity-paper .row .r>span:last-child{white-space:nowrap;flex-shrink:0}.activity-paper .row .r .pill{white-space:nowrap;flex-shrink:0}
.funnel-step{border:0;padding:0}.funnel-step .step-name{grid-column:1;grid-row:1}.funnel-step .step-count{grid-column:2;grid-row:1;text-align:right}.funnel-step .step-bar{grid-column:1/-1;grid-row:2}.funnel-step .step-rate{grid-column:1/-1;grid-row:3}
@media(max-width:680px){
 .overview-metrics .stat{border:1px solid var(--line)!important;padding:16px!important}
 .overview-metrics .stat.attention{border-color:var(--gold-line)!important}
 .results-stats .stat,.results-stats .stat:first-child,.results-stats .stat:last-child{padding:13px 0!important;border-right:0!important;border-bottom:1px solid var(--line)!important}
 .results-stats .stat:nth-child(odd){padding-right:15px!important;border-right:1px solid var(--line)!important}
 .results-stats .stat:nth-child(even){padding-left:17px!important}
 .results-stats .stat:last-child:nth-child(odd){border:0!important;padding:14px 0 0!important}
 .report-kpis .stat,.report-kpis .stat:first-child{border:1px solid var(--line)!important;padding:16px!important}
 .report-kpis .stat:nth-child(5){border-color:var(--gold-line)!important}
 .thread>.lead-details{padding:18px}.thread .lead-facts{grid-template-columns:1fr 1fr;gap:14px}.thread .lead-facts>div:first-child{grid-column:1/-1}
 .thread>.bubbles{padding:18px;max-height:470px}.thread .lead-outcome-form .form-row{grid-template-columns:1fr}
 .funnel-step{display:grid;grid-template-columns:1fr auto;padding:0 0 14px;border-bottom:1px solid var(--line)}.funnel-step:last-child{padding:0;border:0}.funnel-step .step-name{grid-column:1;grid-row:1}.funnel-step .step-count{grid-column:2;grid-row:1}.funnel-step .step-bar{grid-column:1/-1;grid-row:2}.funnel-step .step-rate{grid-column:1/-1;grid-row:3}
}
@media(max-width:680px){
 .input,select.input,textarea.input,.convo-list .search .input,.lead-outcome-form .input{font-size:16px;min-height:44px}
 .mobile-top .switcher select{font-size:16px;min-height:40px}
 .mobile-top .tabs a{min-height:42px;display:flex;align-items:center}
 .lead-details-top .actions .btn,.thread .lead-details-top .actions .btn{min-height:40px}
}
/* Seen to Sold — grouped navigation / full-sidebar business picker.
   Append after the existing refined stylesheet, or use the supplied full app.css.
   Keeps the white workspace and charcoal/gold palette. No new font files. */
:root, :root[data-theme="light"] { --side:248px; }
:root[data-sidebar="collapsed"], :root[data-theme="light"][data-sidebar="collapsed"] { --side:64px; }
.side.sidebar-grouped {
  --nav-bg:#202124;
  --nav-fg:#f7f7f8;
  --nav-muted:#b9bdc5;
  --nav-border:#393b40;
  --nav-hover:#2d2f34;
  padding:20px 12px 14px;
  gap:18px;
  background:var(--nav-bg);
  color:var(--nav-fg);
}
.side.sidebar-grouped .brand { min-height:30px;padding:0 10px;gap:14px;flex:none; }
.side.sidebar-grouped .brand .logo { width:65px; }
.side.sidebar-grouped .brand-caption { font-size:9px;line-height:1.55;font-weight:500;border-color:#45474d;color:#c1c4cb; }
.business-trigger {
  display:flex;align-items:center;gap:10px;
  width:100%;min-width:0;min-height:62px;
  border:1px solid transparent;border-radius:10px;
  padding:10px 9px;background:#292b2f;color:#f7f7f8;
  text-align:left;cursor:pointer;flex:none;
  transition:background .16s,border-color .16s;
}
.business-trigger:hover { background:#323439;border-color:#44474f; }
.business-trigger[aria-expanded="true"] { background:#303237;border-color:#66604d; }
.business-trigger:focus-visible { outline:2px solid #d2ae4e;outline-offset:3px; }
.business-current { display:grid;gap:4px;min-width:0;flex:1; }
.business-current b { display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--font-body);font-size:12.5px;font-weight:750;letter-spacing:-.02em; }
.business-current small { font-size:10px;font-weight:500;line-height:1.5;color:#b5b9c2; }
.business-chevron { width:15px;height:15px;flex:none;fill:none;stroke:#c4c7cf;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s; }
.business-trigger[aria-expanded="true"] .business-chevron { transform:rotate(180deg); }
.business-avatar { display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;flex:none;border-radius:50%;font-size:10px;line-height:1;font-weight:800;letter-spacing:.015em;background:#e8e8e4;color:#3f4145;border:1px solid #ffffff12; }
.business-avatar.sage { background:#dbe5de;color:#40574c; }
.business-avatar.slate { background:#dde3ed;color:#445774; }
.business-avatar.gold { background:#323028;color:#dec88f;border-color:#59503a; }
.business-avatar.agency { background:#f3f0e8;color:#77613a; }
.business-avatar img { width:25px;height:auto;max-width:100%;object-fit:contain; }
.business-avatar svg { width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round; }
.sidebar-content { display:flex;flex-direction:column;flex:1;min-height:0;min-width:0; }
.sidebar-menu { display:flex;flex-direction:column;gap:16px;min-height:0;flex:1; }
.side-shortcuts { display:flex;gap:8px;align-items:center;justify-content:center;padding:0 14px 12px;border-bottom:1px solid #ffffff12;flex:none; }
.side-shortcuts a,.side-shortcuts button { display:flex;align-items:center;justify-content:center;position:relative;background:transparent;border:0;color:#b9bdc5;border-radius:7px;min-width:40px;min-height:34px;padding:8px;text-decoration:none;cursor:pointer;flex:1; }
.side-shortcuts a:hover,.side-shortcuts button:hover { background:var(--nav-hover);color:#fff; }
.side-shortcuts svg { width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round; }
.side-shortcuts .count { position:absolute;top:0;right:7px;display:grid;place-items:center;min-width:15px;height:15px;line-height:15px;padding:0 3px;border-radius:5px;background:#d2ae4e;color:#272216;font-size:8px;font-weight:800;border:2px solid #202124; }
.side.sidebar-grouped .nav { gap:22px;min-height:0;overflow:auto;padding:0 2px 8px;scrollbar-width:thin;scrollbar-color:#4f525b transparent; }
.side.sidebar-grouped .nav-group { display:flex;flex-direction:column;gap:3px;flex:none;min-width:0; }
.side.sidebar-grouped .nav-label { display:block;font-size:10px;line-height:1.4;font-weight:750;letter-spacing:.025em;text-transform:none;color:#989ea9;padding:0 10px 7px;margin:0;border:0; }
.side.sidebar-grouped .nav a { min-height:36px;gap:12px;padding:8px 11px;border-radius:7px;font-size:12px;font-weight:600;line-height:1.5;color:#c2c6ce;opacity:1; }
.side.sidebar-grouped .nav a svg { width:15px;height:15px;stroke-width:1.65; }
.side.sidebar-grouped .nav a:hover { background:#2e3035;color:#fff; }
.side.sidebar-grouped .nav a.on,.side.sidebar-grouped .nav a.on:hover { background:#343128;color:#edce87;box-shadow:inset 2px 0 #d2ae4e; }
.side.sidebar-grouped .nav a.on svg { color:#e6c472; }
.side.sidebar-grouped .nav .count { background:#d2ae4e;color:#272216;font-size:9px;font-weight:800;min-width:18px;line-height:18px;border-radius:5px; }
.side.sidebar-grouped .nav a.on .count { background:#d2ae4e;color:#272216; }
.side.sidebar-grouped .side-foot { margin-top:0;padding-top:12px;gap:5px;border-color:#393b40;flex:none; }
.side.sidebar-grouped .side-foot .who { padding:0 10px;font-size:9.5px;line-height:1.6;color:#adb2bd; }
.side.sidebar-grouped .side-foot .who b { font-size:11px;font-weight:650;color:#eef0f3; }
.side.sidebar-grouped .side-foot button { font-size:10px;min-height:30px;padding:6px 10px; }
.side.sidebar-grouped .side-foot .sidebar-toggle { right:-26px;bottom:5px;min-height:28px;padding:0; }
.workspace-business-label { max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:1.5;font-weight:750;color:var(--fg); }
/* The directory occupies the menu's space; it is not a dropdown over the page. */
.business-picker { display:flex;flex-direction:column;gap:14px;flex:1;min-height:0;min-width:0;color:#f7f7f8;animation:business-picker-in .16s ease-out; }
.business-picker[hidden],.sidebar-menu[hidden],.side-foot[hidden],.business-empty[hidden],.tabs[hidden] { display:none!important; }
.picker-heading { display:flex;align-items:baseline;justify-content:space-between;gap:6px;padding:0 8px;flex:none; }
.picker-heading h2 { font-family:var(--font-body);font-size:12px;font-weight:700;letter-spacing:0;color:#f0f1f4; }
.picker-heading > span { font-size:9px;color:#a9aeb9; }
.business-search { display:flex;align-items:center;gap:9px;padding:0 12px;min-height:42px;flex:none;border:1px solid #4b4e56;border-radius:8px;background:#f7f8fa;color:#757e8d; }
.business-search svg { width:15px;height:15px;flex:none; }
.business-search input { appearance:none;min-width:0;min-height:40px;width:100%;padding:8px 0;border:0;outline:none!important;box-shadow:none;background:transparent;color:#282c33;font:500 12px/1.5 var(--font-body); }
.business-search input::placeholder { color:#667180;opacity:1; }
.business-search:focus-within { border-color:#d2ae4e;box-shadow:0 0 0 2px #d2ae4e33; }
.agency-option { padding-bottom:12px;border-bottom:1px solid #ffffff16;flex:none; }
.business-option { display:flex;align-items:center;gap:11px;min-height:62px;width:100%;min-width:0;padding:10px 9px;border:1px solid transparent;border-radius:9px;background:transparent;color:#e8eaf0;text-align:left;cursor:pointer;transition:background .15s,border-color .15s; }
.business-option:hover { background:#2e3035;border-color:#3e4148; }
.business-option.selected { background:#343128;border-color:#514a36; }
.business-option.selected .business-option-copy b { color:#f0d79e; }
.business-option:focus-visible { outline:2px solid #d2ae4e;outline-offset:-2px; }
.business-option-copy { display:grid;gap:5px;min-width:0;flex:1; }
.business-option-copy b { font-size:12px;line-height:1.45;font-weight:650;letter-spacing:-.012em;white-space:nowrap;text-overflow:ellipsis;overflow:hidden; }
.business-option-copy small { display:flex;gap:5px;align-items:center;font-size:10px;line-height:1.4;font-weight:500;color:#b0b5bf; }
.business-status { display:inline-block;width:5px;height:5px;flex:none;border-radius:50%;background:#a3a9b5; }
.business-status.good { background:#95bc9b; }.business-status.info { background:#9bb4d9; }.business-status.warn { background:#d6b675; }.business-status.bad { background:#ea9c95; }
.business-check { display:grid;place-items:center;color:#e3c477;flex:none; }
.business-check svg { width:14px;height:14px; }
.agency-business:not(.selected) .business-check { color:#9da3af; }
.directory-label { display:flex;align-items:center;justify-content:space-between;padding:0 9px;font-size:10px;color:#a1a8b5;font-weight:600;flex:none; }
.directory-label [data-business-total] { font-size:9px;font-variant-numeric:tabular-nums;background:#303238;border-radius:5px;padding:2px 6px;color:#c1c5ce; }
.business-list-wrap { flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#4f525b transparent;padding:1px;overscroll-behavior:contain; }
.business-list { list-style:none;display:grid;align-content:start;gap:7px;padding:0;margin:0; }
.business-list li { min-width:0;margin:0;padding:0; }
.business-empty { display:flex;flex-direction:column;align-items:center;text-align:center;padding:30px 8px;color:#c5c9d1; }
.business-empty > span { background:#303238;color:#aeb5c2;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;margin-bottom:14px; }
.business-empty b { font-size:12px;color:#f1f2f5;font-weight:650; }
.business-empty p { font-size:11px;line-height:1.6;margin:7px 0 14px;color:#aeb4c0; }
.business-empty button { font-family:var(--font-body);background:#393528;border:1px solid #645533;border-radius:6px;color:#efd190;font-size:11px;padding:7px 10px;cursor:pointer; }
.picker-back { display:flex;align-items:center;gap:9px;flex:none;width:100%;min-height:43px;background:transparent;border:0;border-top:1px solid #ffffff1c;padding:13px 9px 4px;text-align:left;font-size:11px;font-weight:550;color:#c4c8d0;cursor:pointer; }
.picker-back:hover { color:#f5d796; }.picker-back svg { width:14px;height:14px; }
.picker-back kbd { margin-left:auto;background:#2b2d31;border:1px solid #44474e;border-radius:4px;font:500 9px/1.5 var(--font-body);padding:1px 5px;color:#b2b8c3; }
:root[data-sidebar="collapsed"] .side.sidebar-grouped { padding:20px 9px 14px;gap:18px; }
:root[data-sidebar="collapsed"] .side.sidebar-grouped .brand { padding:0;justify-content:center; }
:root[data-sidebar="collapsed"] .side.sidebar-grouped .brand .logo { width:38px; }
:root[data-sidebar="collapsed"] .side.sidebar-grouped .business-trigger { padding:6px;min-height:44px;justify-content:center;border-radius:8px; }
:root[data-sidebar="collapsed"] .side.sidebar-grouped .business-current,
:root[data-sidebar="collapsed"] .side.sidebar-grouped .business-chevron,
:root[data-sidebar="collapsed"] .side.sidebar-grouped .side-shortcuts { display:none; }
:root[data-sidebar="collapsed"] .side.sidebar-grouped .business-avatar { width:30px;height:30px;font-size:9px; }
:root[data-sidebar="collapsed"] .side.sidebar-grouped .nav { gap:11px;padding:0; }
:root[data-sidebar="collapsed"] .side.sidebar-grouped .nav-group { gap:3px; }
:root[data-sidebar="collapsed"] .side.sidebar-grouped .nav-label { display:block;font-size:0;line-height:0;padding:0;margin:0 10px 8px;border-top:1px solid #ffffff1c; }
:root[data-sidebar="collapsed"] .side.sidebar-grouped .nav-group:first-child .nav-label { display:none; }
:root[data-sidebar="collapsed"] .side.sidebar-grouped .nav a { padding:10px;min-height:38px;justify-content:center; }
:root[data-sidebar="collapsed"] .side.sidebar-grouped .nav a.on { box-shadow:inset 2px 0 #d2ae4e; }
:root[data-sidebar="collapsed"] .side.sidebar-grouped .nav .count { right:0;top:0;font-size:8px;min-width:13px;line-height:13px;border:1px solid #202124; }
:root[data-sidebar="collapsed"] .side.sidebar-grouped .side-foot .sidebar-toggle { right:-24px; }
@keyframes business-picker-in { from { opacity:0;transform:translateY(4px); } to { opacity:1;transform:translateY(0); } }
@media (max-height:820px) and (min-width:901px) {
  .side.sidebar-grouped { padding-top:16px;gap:14px; }
  .side.sidebar-grouped .nav { gap:15px; }
  .side.sidebar-grouped .nav a { min-height:34px; }
  .side.sidebar-grouped .nav-label { padding-bottom:5px; }
  .side-shortcuts { padding-bottom:9px; }
}
@media(max-width:1100px) and (min-width:901px) { .workspace-business-label { max-width:150px; }.topbar-left { gap:10px; } }
@media(max-width:900px) {
  .mobile-top .bar { min-width:0;gap:10px; }
  .mobile-top .bar > a { flex:none; }
  .mobile-top .business-trigger { flex:1;min-width:0;width:auto;gap:8px;min-height:44px;padding:7px 9px;border-radius:7px;background:#2b2d31; }
  .mobile-top .business-trigger .business-avatar { display:none; }
  .mobile-top .business-current { gap:2px; }
  .mobile-top .business-current b { font-size:12px; }
  .mobile-top .business-current small { font-size:9px; }
  .mobile-top .business-chevron { width:14px;height:14px; }
  .mobile-top .menu-btn { flex:none;min-height:44px; }
  .mobile-top.is-switching { position:fixed;inset:0;z-index:65;display:flex;flex-direction:column;gap:22px;height:100vh;height:100dvh;width:100%;padding:16px; padding-top:max(16px,env(safe-area-inset-top));padding-bottom:max(16px,env(safe-area-inset-bottom));border:0;background:#202124;color:#f7f7f8; }
  .mobile-top.is-switching .bar { flex:none; }
  .mobile-top.is-switching .business-picker { gap:18px; }
  .mobile-top.is-switching .business-search { min-height:48px; }
  .mobile-top.is-switching .business-search input { font-size:16px;min-height:46px; }
  .mobile-top.is-switching .picker-heading h2 { font-size:15px; }
  .mobile-top.is-switching .picker-heading > span { font-size:11px; }
  .mobile-top.is-switching .business-option { min-height:68px;padding:12px;gap:13px; }
  .mobile-top.is-switching .business-option-copy b { font-size:14px; }
  .mobile-top.is-switching .business-option-copy small { font-size:11px; }
  .mobile-top.is-switching .business-avatar { width:36px;height:36px; }
  .mobile-top.is-switching .directory-label { font-size:12px; }
  .mobile-top.is-switching .picker-back { min-height:48px;font-size:13px; }
  .mobile-top.is-switching .picker-back kbd { display:none; }
  .mobile-top.is-switching .business-empty { padding-top:40px; }
}
@media(prefers-reduced-motion:reduce){.business-picker{animation:none}.business-chevron{transition:none}}


/* ======================================================================
   Agency view + conversation layouts. October 2026.
   Scope layout changes to the right pane; retain the existing contact list.
   ====================================================================== */

/* One searchable directory: Agency view is an ordinary first list entry. */
.business-picker .business-search{margin-top:8px}
.business-picker .business-list-wrap{margin-top:8px;min-height:0;flex:1}
.business-picker .business-avatar.agency{background:#f4edda;color:#8b6619}
.business-picker .business-avatar.agency svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

/* Explicitly neutralize the generic selected-chip background. */
html[data-page="approvals"] .approval-tabs{
  display:flex;align-items:center;gap:24px;padding:0;margin:0;
  background:transparent;border:0;border-bottom:1px solid var(--line);
  border-radius:0;box-shadow:none;min-height:46px;justify-content:flex-start;
}
html[data-page="approvals"] .approval-tabs .chip,
html[data-page="approvals"] .approval-tabs .chip.on{
  display:inline-flex;align-items:center;gap:8px;min-height:46px;min-width:0;
  padding:9px 2px 12px;margin:0 0 -1px;border:0;border-bottom:2px solid transparent;
  background:transparent!important;background-image:none!important;color:#626771;
  box-shadow:none;border-radius:0;font:650 13px/1.3 var(--font-body);text-decoration:none;
  opacity:1;transform:none;
}
html[data-page="approvals"] .approval-tabs .chip.on{color:#705213;border-bottom-color:#bd9635}
html[data-page="approvals"] .approval-tabs .chip:hover{color:#27292e;background:transparent!important}
html[data-page="approvals"] .approval-tabs .chip::before,
html[data-page="approvals"] .approval-tabs .chip::after{content:none!important;display:none!important}
html[data-page="approvals"] .approval-tabs .chip .n{
  display:inline-grid;place-items:center;min-width:22px;min-height:22px;margin:0;padding:2px 6px;
  border-radius:6px;background:#f5ecd5;color:#745615;font-size:11px;opacity:1;
}

/* Preview selector sits outside the working surface. */
.conversation-variants{gap:18px;max-width:1500px}
.conversation-page-head h1{font-size:28px;letter-spacing:-.035em}
.conversation-page-head p{font-size:13px;margin-top:7px}
.conversation-mockups{display:flex;align-items:center;gap:12px 20px;flex-wrap:wrap;padding:14px 18px;background:#fff;border:1px solid #e4e7ec;border-radius:12px}
.mockup-label{font-size:11px;letter-spacing:.025em;font-weight:650;color:#6a707b;flex:none}
.conversation-layout-choices{display:flex;gap:5px;align-items:center;flex-wrap:wrap}
.layout-choice{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:10px 12px;min-height:39px;background:#fff;color:#646a74;border:1px solid transparent;border-radius:7px;font:650 12px/1.3 var(--font-body);cursor:pointer}
.layout-choice span{font-size:10px;font-weight:750;opacity:.7}
.layout-choice:hover{background:#f7f8fa;color:#26292f}
.layout-choice.selected{background:#fcf7ea;border-color:#e8d4a0;color:#755819}
.layout-description{margin:0 0 0 auto;font-size:11px;color:#727780;max-width:42ch;line-height:1.6}
.conversation-variants .conversation-shell{display:grid;grid-template-columns:282px minmax(0,1fr);align-items:stretch;min-height:640px;border:1px solid #e0e4ea;border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 3px 16px #15203703}
.conversation-shell>.convo-list{min-width:0}
.conversation-shell .convo-items{max-height:1000px;scrollbar-width:thin}
.conversation-shell>.conversation-thread{display:flex;flex-direction:column;min-width:0;min-height:0;background:#fff;grid-template-columns:none;grid-template-rows:none;align-content:initial}
.conversation-shell .conversation-thread-head{display:flex;gap:13px;align-items:center;padding:22px 26px;min-width:0;background:#fff;border-bottom:1px solid #edf0f3}
.conversation-contact-avatar{display:grid;place-items:center;flex:none;width:43px;height:43px;border-radius:50%;font-size:13px;font-weight:750;color:#765a24;background:#f5eddb;border:1px solid #ecdfbc}
.conversation-contact{display:grid;gap:6px;min-width:0;flex:1}
.conversation-contact-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.conversation-contact-title h2{font-size:21px;letter-spacing:-.035em;line-height:1.25;color:#24272d}
.conversation-contact-title .pill{font-size:10px;line-height:1.4;padding:3px 7px;border-radius:5px}
.conversation-contact-line{font-size:12px;color:#6e737e;line-height:1.6;overflow-wrap:anywhere}
.conversation-details-toggle{display:flex;align-items:center;justify-content:center;gap:7px;flex:none;min-height:36px;padding:8px 10px;color:#626975;border:1px solid #e3e6eb;border-radius:7px;background:#fff;font-size:11px;font-weight:650;cursor:pointer}
.conversation-details-toggle .ico{width:14px;height:14px}
.conversation-details-toggle .ico:last-child{width:12px;height:12px;transform:rotate(90deg);transition:transform .15s}
.conversation-details-toggle[aria-expanded="true"]{border-color:#d5b35c;color:#755819;background:#fcf8ec}
.conversation-details-toggle[aria-expanded="true"] .ico:last-child{transform:rotate(-90deg)}
.conversation-context{display:flex;align-items:center;flex-wrap:wrap;gap:10px 24px;padding:12px 27px;border-bottom:1px solid #e8ebef;background:#fff;font-size:11px;color:#626974}
.conversation-context>span{display:inline-flex;gap:7px;align-items:center}
.conversation-context .ico{width:13px;height:13px;color:#9a8d70}
.conversation-facts{border-bottom:1px solid #e5e8ed;background:#fcfcfc}
.conversation-facts[hidden]{display:none!important}
.conversation-shell .conversation-facts .lead-details{background:transparent;padding:22px 26px;border:0;gap:18px}
.conversation-shell .conversation-facts .lead-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 23px}
.conversation-shell .conversation-facts .lead-facts dt{font-size:11px;color:#6a707a}
.conversation-shell .conversation-facts .lead-facts dd{font-size:13px;line-height:1.6;font-family:var(--font-body)}
.conversation-shell .conversation-facts .lead-details .hint{font-size:11px;line-height:1.7}
.conversation-contact-tags{display:flex;gap:7px;flex-wrap:wrap;padding:0 26px 20px}
.conversation-flow,.conversation-history,.conversation-reading-pane,.conversation-review-pane{min-width:0}
.conversation-flow{display:flex;flex-direction:column}
.conversation-history{padding:24px 30px 12px;display:flex;flex-direction:column;gap:25px;background:#fff}
.conversation-date{display:flex;align-items:center;gap:18px;color:#838993;font-size:10px;letter-spacing:.015em;margin:0 0 4px}
.conversation-date:before,.conversation-date:after{content:'';height:1px;background:#eff0f2;flex:1}
.conversation-date>span{flex:none}
.conversation-message{display:flex;align-items:flex-start;gap:10px;min-width:0;max-width:90%;margin:0}
.conversation-message-content{display:grid;gap:8px;min-width:0}
.message-avatar{display:grid;place-items:center;flex:none;width:29px;height:29px;font-size:9px;font-weight:750;border-radius:50%;margin-top:28px;color:#6c7079;background:#f1f3f5}
.message-avatar.business{background:#26282a}
.message-avatar img{width:22px;height:auto;max-height:20px;object-fit:contain}
.conversation-message-meta{display:flex;gap:9px;align-items:center;flex-wrap:wrap;color:#7b818b;font-size:10.5px;line-height:1.5}
.conversation-message-meta b{font-size:11.5px;color:#555c66;font-weight:700}
.conversation-message-meta time{white-space:nowrap;font-variant-numeric:tabular-nums}
.message-channel{font-size:9px;color:#7d838c;letter-spacing:.025em;font-weight:600}
.message-text{font:500 16px/1.8 var(--font-body);letter-spacing:-.012em;white-space:pre-wrap;overflow-wrap:anywhere;color:#30353d;padding:16px 19px;border-radius:0 13px 13px 13px;border:1px solid #e9ecf0;background:#f6f7f9;max-width:64ch}
.conversation-thread-chat .outgoing{align-self:flex-end;flex-direction:row-reverse}
.conversation-thread-chat .outgoing .conversation-message-meta{justify-content:flex-end}
.conversation-thread-chat .outgoing .message-text{border-radius:13px 0 13px 13px;background:#fcf6e7;border-color:#eee0b9;color:#493f2d}
.conversation-call{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap;font-size:11px;color:#787f88;padding:10px;border:1px dashed #e0e4e9;border-radius:8px}
.conversation-call .ico{width:13px;height:13px}.conversation-call time{font-size:10px}
.conversation-source{display:flex;align-items:center;justify-content:center;gap:6px;margin:10px 20px 22px;text-align:center;color:#858b94;font-size:10px;line-height:1.6}
.conversation-source .ico{width:12px;height:12px;flex:none}

/* The pending draft stays clearly separate from the SENT conversation. */
.conversation-review{margin:0 28px 22px;border:1px solid #e5dcc7;border-radius:12px;background:#fff;overflow:hidden}
.conversation-review-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px 15px;background:#fdfaf3;border-bottom:1px solid #f0e8d9}
.review-kicker{display:block;font-size:9px;letter-spacing:.06em;color:#937c47;margin-bottom:5px;font-weight:650;text-transform:uppercase}
.conversation-review-head h3{font-size:16px;font-weight:750;letter-spacing:-.025em;display:flex;gap:8px;align-items:center}
.conversation-review-head h3>span{display:grid;place-items:center;min-width:19px;height:19px;font-size:10px;background:#f1e5c5;color:#7b5d1b;border-radius:5px}
.review-unsent{display:inline-flex;align-items:center;gap:5px;color:#8a6b25;font-size:10px;white-space:nowrap}
.review-unsent:before{content:'';width:5px;height:5px;background:#c29a39;border-radius:50%}
.conversation-review-tabs{display:flex;gap:17px;padding:0 22px;border-bottom:1px solid #f0eee9;align-items:center}
.conversation-review-tabs button{min-height:38px;display:inline-flex;align-items:center;padding:8px 0;border:0;border-bottom:2px solid transparent;background:none;color:#747b84;font:650 11px/1.4 var(--font-body);cursor:pointer}
.conversation-review-tabs button.selected{color:#8b671d;border-bottom-color:#be983b}
.conversation-review .approval{padding:18px 22px;gap:13px;border:0;background:#fff}
.conversation-review .approval-top .about{display:none}
.conversation-review .approval-top time{font-size:10px}
.conversation-review .approval-top .pill{background:transparent;padding:0;color:#89806e;font-size:10px}
.conversation-review .approval-top .pill:before{display:none}
.conversation-review .summary{font-size:12px;line-height:1.7;color:#6c737c}
.conversation-review .draft{font:500 15.5px/1.8 var(--font-body);color:#30353b;padding:0;background:#fff;border:0;min-height:0;border-radius:0}
.conversation-review .draft .meta{font:600 10px/1.7 var(--font-body);color:#838994;margin:0 0 12px;padding:0 0 9px;border-bottom:1px solid #f0f1f3}
.conversation-review .actions{margin-top:5px;gap:8px;align-items:center;flex-wrap:wrap}
.conversation-review .btn{min-height:39px;font-size:11px;padding:9px 12px}
.conversation-review .btn.good{background:#d2ad4a;color:#30270f;border-color:#c69f3b}
.conversation-review .btn.good:hover:not(:disabled){background:#c8a044;border-color:#b88b2c}
.conversation-review .btn.danger{background:none;border:1px solid transparent;color:#b23a3a}
.conversation-review textarea.input{font-size:16px;line-height:1.8;min-height:180px;padding:14px;max-width:100%}
.conversation-review [hidden]{display:none!important}
.conversation-review-foot{margin:0;padding:0 22px 16px;color:#838994;font-size:10px;line-height:1.7}
.conversation-review.review-complete{padding:24px;text-align:center;display:grid;gap:8px;justify-items:center;border-color:#e6e9ee;background:#fafbfc}
.review-complete-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#e8f2ec;color:#397653}
.review-complete-icon .ico{width:15px;height:15px}.review-complete h3{font-size:14px}.review-complete p{margin:0;font-size:12px;color:#737b84}
.conversation-notes{margin:0 28px 22px;border-top:1px solid #e9ecf0;padding:16px 0 0;font-size:12px;color:#686f79}
.conversation-notes>summary{display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer;font-weight:650;min-height:28px}
.conversation-notes>summary::-webkit-details-marker{display:none}
.conversation-notes>summary .ico{width:14px;height:14px}
.conversation-notes>summary .ico:last-child{margin-left:auto;transition:transform .15s}
.conversation-notes[open]>summary .ico:last-child{transform:rotate(90deg)}
.conversation-notes .report{font-size:14px;line-height:1.9;margin-top:14px;color:#626975;padding:0 4px}

/* 02 / Reading view: an aligned, typography-first record rather than bubbles. */
.conversation-thread-reading .conversation-history{padding:30px 36px 4px;gap:0}
.reading-intro{display:flex;gap:12px;justify-content:space-between;align-items:center;font-size:9px;font-weight:650;letter-spacing:.12em;color:#9499a1;padding-bottom:22px}
.reading-intro>span:last-child{letter-spacing:0;text-transform:none;font-size:11px;font-weight:500}
.conversation-thread-reading .conversation-date{margin:0 0 4px;font-size:10px}
.conversation-thread-reading .conversation-message{max-width:100%;width:100%;padding:25px 0;border-bottom:1px solid #eceef2;display:block}
.conversation-thread-reading .conversation-message:last-child{border:0}
.conversation-thread-reading .conversation-message-content{display:grid;grid-template-columns:135px minmax(0,1fr);gap:28px;align-items:start}
.conversation-thread-reading .conversation-message-meta{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin-top:4px;font-size:11px}
.conversation-thread-reading .conversation-message-meta b{font-size:12px;line-height:1.5}
.conversation-thread-reading .message-channel{font-size:9px}
.conversation-thread-reading .message-text{background:none;border:0;border-radius:0;padding:0;font-size:17px;line-height:1.9;max-width:65ch;color:#333941}
.conversation-thread-reading .outgoing .conversation-message-meta b{color:#94722a}
.conversation-thread-reading .conversation-source{justify-content:flex-start;margin:22px 36px 28px}
.conversation-thread-reading .conversation-review{margin:0 36px 25px;border-radius:7px;border-color:#ded2b4;border-left:3px solid #c8a14a}
.conversation-thread-reading .conversation-review-head{background:#fff;border-bottom:0;padding-bottom:8px}
.conversation-thread-reading .conversation-notes{margin-inline:36px}

/* 03 / Side-by-side: readable exchange and approval dock in parallel. */
.conversation-split-body{display:grid;grid-template-columns:minmax(0,1fr) 314px;min-height:690px;align-items:start}
.conversation-reading-pane{height:100%;background:#fff}
.conversation-review-pane{height:100%;background:#fafbfc;border-left:1px solid #e6e9ef;padding:20px 16px}
.conversation-thread-split .conversation-history{gap:25px;padding:24px 24px 12px}
.conversation-thread-split .conversation-message{max-width:100%;width:100%}
.conversation-thread-split .conversation-message-content{width:100%}
.conversation-thread-split .message-text{font-size:15.5px;line-height:1.8;border:0;border-radius:0;padding:0;background:none;color:#333a43}
.conversation-thread-split .conversation-message-meta{justify-content:flex-start;gap:7px}
.conversation-thread-split .outgoing{padding:17px;border-left:2px solid #d2b56b;border-radius:0 8px 8px 0;background:#fcf8ed;max-width:100%}
.conversation-thread-split .outgoing .conversation-message-meta b{color:#816528}
.conversation-review-pane .conversation-review{margin:0 0 20px;border-radius:9px}
.conversation-review-pane .conversation-review-head{padding:17px 17px 15px;align-items:flex-start;flex-wrap:wrap;gap:8px}
.conversation-review-pane .review-unsent{font-size:9px}
.conversation-review-pane .conversation-review-tabs{padding-inline:17px}
.conversation-review-pane .approval{padding:17px;gap:12px}
.conversation-review-pane .draft{font-size:15px;line-height:1.85}
.conversation-review-pane .actions .btn.good{width:100%}
.conversation-review-pane .actions .btn:not(.good){flex:1}
.conversation-review-pane .summary{font-size:11px}
.conversation-review-pane .conversation-review-foot{padding-inline:17px;font-size:9px}
.conversation-review-pane .conversation-notes{margin:0;border-top:1px solid #e2e6ec;padding:17px 2px 0}
.conversation-review-pane .conversation-notes .report{font-size:12px}

@media(min-width:1550px){
 .conversation-split-body{grid-template-columns:minmax(0,1fr) 350px}
 .conversation-thread-split .conversation-history{padding:28px 34px 16px}
 .conversation-thread-split .message-text{font-size:16.5px}
 .conversation-review-pane{padding:24px 20px}
}
@media(min-width:901px) and (max-width:1220px){
 .conversation-variants .conversation-shell{grid-template-columns:260px minmax(0,1fr)}
 .conversation-split-body{grid-template-columns:minmax(0,1fr)}
 .conversation-review-pane{border-left:0;border-top:1px solid #e6e9ef;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:18px;height:auto}
 .conversation-review-pane .conversation-review{margin:0}
 .conversation-review-pane .conversation-notes{border:0;padding:0}
 .conversation-thread-reading .conversation-message-content{grid-template-columns:100px minmax(0,1fr);gap:18px}
 .layout-description{max-width:none;margin:0;flex-basis:100%}
}
@media(max-width:900px){
 .conversation-variants .conversation-shell{grid-template-columns:minmax(0,1fr);min-height:580px}
 .conversation-variants .conversation-shell.open>.convo-list{display:none}
 .conversation-variants .conversation-shell:not(.open)>.conversation-thread{display:none}
 .conversation-shell .convo-items{max-height:none}
 .conversation-shell .conversation-thread-head .back-link{display:inline-flex;gap:2px;min-width:32px;min-height:36px;padding:8px;background:#fff;color:#606975;border-color:#e6e9ef}
 .conversation-thread-head .back-link .ico{width:14px;height:14px}
 .conversation-thread-head .back-link>span{display:none}
 .conversation-split-body{grid-template-columns:minmax(0,1fr) 300px}
 .conversation-review-pane{padding:18px 14px}
 .layout-description{flex-basis:100%;max-width:none;margin:0;font-size:11px}
 .conversation-mockups{gap:9px 16px}
 .conversation-shell .conversation-thread-head{padding:21px 22px;gap:10px}
}
@media(max-width:680px){
 .conversation-variants{gap:14px}
 .conversation-page-head h1{font-size:25px}
 .conversation-page-head p{font-size:12px;line-height:1.7}
 .conversation-mockups{display:block;padding:13px 12px;border-radius:10px}
 .mockup-label{display:block;font-size:10px;margin-bottom:8px}
 .conversation-layout-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
 .layout-choice{flex-direction:column;gap:5px;font-size:10px;min-height:54px;padding:6px 4px}
 .layout-choice>span{font-size:9px}
 .layout-description{font-size:10px;line-height:1.7;margin:10px 1px 0}
 .conversation-variants .conversation-shell{border-radius:11px;min-height:540px}
 .conversation-shell .conversation-thread-head{padding:18px 14px;gap:9px;flex-wrap:wrap}
 .conversation-contact-avatar{display:none}
 .conversation-contact-title h2{font-size:19px}
 .conversation-contact-title{gap:7px}
 .conversation-contact-title .pill{font-size:9px}
 .conversation-contact-line{font-size:11px}
 .conversation-details-toggle{min-height:36px;padding:8px;gap:4px;font-size:10px}
 .conversation-details-toggle .ico:first-child{display:none}
 .conversation-details-toggle .ico:last-child{width:10px}
 .conversation-context{padding:11px 16px;gap:8px 12px;font-size:10px}
 .conversation-context .ico{width:11px;height:11px}
 .conversation-shell .conversation-facts .lead-details{padding:18px 16px;gap:15px}
 .conversation-shell .conversation-facts .lead-facts{grid-template-columns:1fr 1fr;gap:14px}
 .conversation-shell .conversation-facts .lead-facts>div:first-child{grid-column:1/-1}
 .conversation-shell .conversation-facts .lead-details .hint{font-size:10px}
 .conversation-shell .conversation-facts .lead-facts dt{font-size:10px}
 .conversation-shell .conversation-facts .lead-facts dd{font-size:12px}
 .conversation-contact-tags{padding:0 16px 16px}
 .conversation-history{padding:20px 16px 8px;gap:22px}
 .conversation-message{max-width:100%;gap:0}
 .message-avatar{display:none}
 .conversation-message-meta{font-size:10px;gap:6px}
 .conversation-message-meta b{font-size:11px}
 .message-channel{font-size:9px}
 .message-text{font-size:16px;line-height:1.8;padding:13px 14px}
 .conversation-thread-chat .conversation-message{max-width:96%}
 .conversation-date{font-size:10px;margin-bottom:0}
 .conversation-source{font-size:9px;margin:16px 15px 21px}
 .conversation-review{margin:0 14px 20px;border-radius:9px}
 .conversation-review-head{padding:17px 16px 13px;gap:9px}
 .conversation-review-head h3{font-size:16px}
 .conversation-review-tabs{padding-inline:16px}
 .conversation-review .approval{padding:17px 16px;gap:13px}
 .conversation-review .draft{font-size:16px;line-height:1.85}
 .conversation-review .summary{font-size:12px;line-height:1.7}
 .conversation-review .btn{min-height:42px;font-size:11px}
 .conversation-review .actions{gap:5px}
 .conversation-review .actions .btn.good{flex:1}
 .conversation-review-foot{padding-inline:16px;font-size:10px}
 .conversation-review .draft .meta{font-size:10px;line-height:1.7}
 .conversation-notes{margin:0 16px 20px;font-size:11px}
 .conversation-thread-reading .conversation-history{padding:22px 20px 4px}
 .conversation-thread-reading .conversation-message{padding:22px 0}
 .conversation-thread-reading .conversation-message-content{display:grid;grid-template-columns:1fr;gap:11px}
 .conversation-thread-reading .conversation-message-meta{flex-direction:row;gap:7px;align-items:center;margin:0}
 .conversation-thread-reading .conversation-message-meta b{font-size:12px}
 .conversation-thread-reading .message-text{font-size:17px;line-height:1.9}
 .conversation-thread-reading .conversation-source{margin:18px 20px 23px}
 .conversation-thread-reading .conversation-review{margin:0 16px 22px}
 .conversation-thread-reading .conversation-notes{margin-inline:20px}
 .conversation-split-body{grid-template-columns:minmax(0,1fr);min-height:0}
 .conversation-review-pane{padding:19px 14px;border-left:0;border-top:1px solid #e6e9ef}
 .conversation-thread-split .conversation-history{padding:22px 20px 8px;gap:25px}
 .conversation-thread-split .message-text{font-size:16px;line-height:1.85}
 .conversation-thread-split .outgoing{padding:15px}
 .conversation-review-pane .conversation-review{margin:0 0 20px}
 .conversation-review-pane .draft{font-size:16px}
 .conversation-review-pane .actions .btn.good{width:100%;flex:none}
}
@media(prefers-reduced-motion:reduce){.conversation-details-toggle .ico:last-child,.conversation-notes>summary .ico:last-child{transition:none}}


/* Approvals / 01 Review desk · 02 Wide review · 03 Inline review
   Namespaced to .ap-* so existing dashboard and conversation styles are retained. */
.ap-page{max-width:1510px;gap:0;min-width:0}
.ap-screen{display:grid;gap:18px;min-width:0}
.ap-page-head{margin:0;align-items:center}
.ap-page-head h1{font-size:29px;letter-spacing:-.045em}
.ap-page-head p{font-size:13px;margin-top:8px;color:#6d737d}
.ap-safety-note{display:flex;gap:7px;align-items:center;font-size:11px;color:#777e88;font-weight:500}
.ap-safety-note .ico{width:13px;height:13px;color:#9b803a}
.ap-layout-picker{display:grid;grid-template-columns:auto 1fr;gap:12px 26px;align-items:center;background:#fff;border:1px solid #e2e6ed;border-radius:12px;padding:15px 18px;min-width:0}
.ap-layout-label{font-size:11px;color:#636c77;font-weight:700;line-height:1.6}
.ap-layout-label>span{display:block;font-weight:500;font-size:10px;color:#858b94}
.ap-layout-buttons{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;min-width:0}
.ap-layout-choice{display:inline-flex;align-items:center;gap:9px;min-height:40px;padding:10px 14px;font-size:12px;font-weight:700;border:1px solid transparent;border-radius:7px;background:transparent;color:#646b76}
.ap-layout-choice:hover{background:#faf9f6;color:#41464e}
.ap-layout-choice.selected{border-color:#e5ce94;background:#fcf7e8;color:#785a17}
.ap-layout-number{font-size:10px;font-weight:700;color:#949aa3;font-variant-numeric:tabular-nums}
.ap-layout-choice.selected .ap-layout-number{color:#ab8a3c}
.ap-layout-description{grid-column:1/-1;border-top:1px solid #f0f1f3;padding-top:9px;margin:0;font-size:11px;color:#7b818a;line-height:1.5}
.ap-toolbar{display:flex;gap:16px;align-items:center;justify-content:space-between;border-bottom:1px solid #dfe4eb;min-width:0}
.ap-page .ap-status-tabs{display:flex;gap:25px;margin:0;border:0;padding:0;flex:none;background:transparent}
.ap-page .ap-status-tabs .chip{display:inline-flex;align-items:center;gap:8px;min-height:49px;padding:12px 0 13px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;box-shadow:none;text-decoration:none;color:#757c86;font-size:13px;font-weight:650;white-space:nowrap}
.ap-page .ap-status-tabs .chip.on{background:transparent;color:#745818;border-bottom-color:#c5a044;box-shadow:none}
.ap-page .ap-status-tabs .n{display:inline-grid;place-items:center;min-width:20px;min-height:20px;font-size:10px;margin:0;background:#eeeff2;color:#666e79;border-radius:5px;padding:1px 5px;font-family:var(--font-body)}
.ap-page .ap-status-tabs .on .n{background:#f1e6c7;color:#866620}
.ap-filters{display:flex;gap:9px;align-items:center;min-width:0}
.ap-search{display:flex;gap:7px;align-items:center;border:1px solid #e0e4eb;background:#fff;border-radius:7px;padding:0 10px;min-width:0;width:214px;height:36px}
.ap-search .ico{width:14px;height:14px;color:#939aa5;flex:none}
.ap-search input{width:100%;min-width:0;border:0;background:transparent;outline:none;padding:7px 0;font-size:11px}
.ap-search:focus-within{border-color:#c5a044;box-shadow:0 0 0 2px #c5a04415}
.ap-filters .ap-type-filter{width:111px;min-width:0;height:36px;min-height:36px;padding:7px 24px 7px 10px;font-size:11px;border-color:#e0e4eb;background-color:#fff}
.ap-results-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#8a9099;font-size:10px;margin:-6px 0 -5px;line-height:1.6}
.ap-results-bar>span:first-child{color:#69717d;font-weight:650;font-size:11px;flex:none}
.ap-workspace,.ap-desk,.ap-desk-review,.ap-detail,.ap-detail-grid,.ap-context,.ap-decision,.ap-decision-paper,.ap-focus-review,.ap-record{min-width:0}
.ap-workspace{display:grid;gap:16px}
.ap-desk{display:grid;grid-template-columns:220px minmax(0,1fr);border:1px solid #dfe4eb;border-radius:13px;background:#fff;overflow:hidden;box-shadow:0 2px 6px #20242a02;min-height:580px}
.ap-inbox{background:#fff;border-right:1px solid #e3e7ec;display:flex;flex-direction:column;min-width:0}
.ap-queue-title{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:19px 17px;border-bottom:1px solid #e8ebef}
.ap-queue-title h2{font-size:12px;letter-spacing:0;font-weight:750;color:#626a75}
.ap-queue-title>span{display:inline-grid;place-items:center;min-width:20px;height:20px;border-radius:5px;font-size:10px;color:#7e858f;background:#f3f4f6}
.ap-queue-items{display:grid;align-content:start}
.ap-queue-item{width:100%;min-width:0;text-align:left;background:#fff;border:0;border-bottom:1px solid #e9ecf1;border-radius:0;padding:17px;display:grid;gap:9px;box-shadow:none;cursor:pointer;position:relative;color:#333942;transition:background .12s}
.ap-queue-item:hover{background:#fcfaf5}
.ap-queue-item.selected{background:#fcf8ed;box-shadow:inset 2px 0 #c6a044}
.ap-queue-top{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;font-size:10px}
.ap-queue-top time{flex:none;color:#9399a1;font-size:9px}
.ap-type{display:inline-flex;align-items:center;gap:5px;color:#7d8187;font-size:10px;font-weight:650}
.ap-type .ico,.ap-type svg{width:12px;height:12px;flex:none;stroke-width:1.5}
.ap-queue-item>b{font-size:13px;line-height:1.5;color:#30353d;font-weight:750;letter-spacing:-.02em;overflow-wrap:anywhere}
.ap-queue-summary{font-size:11px;line-height:1.7;color:#787f89;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ap-queue-bottom{display:flex;justify-content:space-between;align-items:center;gap:6px;min-width:0}
.ap-waiting{display:inline-flex;align-items:center;gap:5px;font-size:9px;line-height:1.4;color:#9b7b31;font-weight:600;white-space:nowrap}
.ap-waiting:before{content:'';width:4px;height:4px;border-radius:50%;background:#ba9640;flex:none}
.ap-queue-arrow{display:flex;color:#b39a62;opacity:0}
.ap-queue-item.selected .ap-queue-arrow{opacity:1}
.ap-queue-arrow .ico{width:13px;height:13px}
.ap-queue-bottom .pill{font-size:9px;padding:2px 6px}
.ap-queue-hint{display:block;margin:auto 16px 0;padding:25px 0;font-size:10px;line-height:1.7;color:#969ba3;border-top:1px solid #eceef2}
.ap-queue-hint .ico{float:left;width:12px;height:12px;margin:3px 8px 14px 0;color:#a79469}
.ap-detail-head{display:flex;align-items:center;gap:12px;min-height:83px;padding:18px 24px;border-bottom:1px solid #e6e9ee;background:#fff}
.ap-detail-head .conversation-contact-avatar{width:38px;height:38px;font-size:11px;flex:none}
.ap-detail-person{min-width:0;flex:1}
.ap-detail-person>div{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.ap-detail-person h2{font-size:19px;line-height:1.4;letter-spacing:-.03em;overflow-wrap:anywhere}
.ap-detail-person .pill{font-size:9px;padding:3px 6px;border-radius:5px}
.ap-detail-person p{color:#8a9099;font-size:11px;line-height:1.5;margin:5px 0 0;overflow-wrap:anywhere}
.ap-item-position{display:flex;align-items:center;gap:5px;flex:none}
.ap-item-position>span{font-size:10px;color:#9197a1;margin-right:5px;white-space:nowrap}
.ap-step{width:28px;height:28px;padding:5px;border:1px solid #e8ebef;border-radius:6px;display:grid;place-items:center;background:#fff;color:#79818d}
.ap-step .ico{width:13px;height:13px}
.ap-step:disabled{opacity:.35;cursor:default}
.ap-step:hover:not(:disabled){background:#fcf8ed;border-color:#d6bf84}
.ap-detail-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);align-items:stretch}
.ap-context{background:#fff;display:flex;flex-direction:column}
.ap-column-head{display:flex;align-items:center;gap:9px;padding:20px 23px 12px}
.ap-section-icon{display:grid;place-items:center;flex:none;color:#8f969f}
.ap-section-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.ap-column-head h3{font-size:13px;line-height:1.6;letter-spacing:-.015em;color:#353b45;font-weight:750}
.ap-column-head p{font-size:10px;color:#9a9fa7;line-height:1.5;margin:2px 0 0}
.ap-messages{padding:17px 23px 20px;display:flex;flex-direction:column;gap:24px;min-width:0}
.ap-messages .conversation-date{font-size:9px;gap:12px;margin:0 0 2px}
.ap-messages .conversation-message{display:block;width:100%;max-width:100%;padding:0}
.ap-messages .conversation-message-content{gap:7px;display:grid}
.ap-messages .conversation-message-meta{gap:6px;font-size:9px}
.ap-messages .conversation-message-meta b{font-size:10px;color:#6b737f}
.ap-messages .message-channel{font-size:8px}
.ap-messages .message-text{border:0;background:none;border-radius:0;padding:0;font:500 14px/1.85 var(--font-body);letter-spacing:-.01em;color:#3b424d;max-width:62ch}
.ap-messages .outgoing{padding:14px;border-left:2px solid #d2b066;border-radius:0 8px 8px 0;background:#fcf8ed}
.ap-messages .outgoing .conversation-message-meta b{color:#96732b}
.ap-messages .conversation-call{font-size:10px;text-align:center}
.ap-agent-note{border-top:1px solid #eceef2;margin:0 23px 20px;padding-top:13px;color:#838a94;font-size:10px}
.ap-agent-note summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:7px;min-height:24px}
.ap-agent-note summary::-webkit-details-marker{display:none}
.ap-agent-note summary .ico{width:12px;height:12px;flex:none}
.ap-agent-note summary .ico:last-child{margin-left:auto}
.ap-agent-note[open] summary .ico:last-child{transform:rotate(90deg)}
.ap-agent-note .report{font-size:12px;line-height:1.9;padding-top:12px}
.ap-context-foot{display:flex;gap:9px;flex-wrap:wrap;justify-content:space-between;align-items:center;font-size:9px;color:#969ca5;padding:0 23px 22px;margin-top:auto}
.ap-context-foot>span,.ap-context-link{display:inline-flex;align-items:center;gap:5px;line-height:1.6}
.ap-context-link{font-size:10px;font-weight:650;color:#92702a;text-decoration:none}
.ap-context-foot .ico{width:11px;height:11px;flex:none}
.ap-decision{border-left:1px solid #e6e9ee;padding:20px;background:#fafbfc}
.ap-decision-paper{border:1px solid #e4dac4;border-radius:10px;overflow:hidden;background:#fff}
.ap-decision-head{padding:17px 17px 15px;background:#fdfaf3;gap:8px;border-bottom:1px solid #f0e8d9;flex-wrap:wrap}
.ap-decision-head .ap-section-icon{color:#a68637}
.ap-decision-head h3{font-size:16px}
.ap-decision-head p{font-size:9px;color:#9b927f}
.ap-unsent{margin-left:auto;color:#9b7c30;font-size:9px;display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.ap-unsent:before{content:'';width:4px;height:4px;border-radius:50%;background:#bd9840}
.ap-unsent.decided{color:#737d7b}
.ap-unsent.decided:before{background:currentColor}
.ap-decision-inner{padding:19px 18px 0;min-width:0}
.ap-draft-meta{display:flex;justify-content:space-between;align-items:center;gap:8px}
.ap-draft-meta time{font-size:9px;color:#9299a3}
.ap-action-summary{font-size:11px;line-height:1.8;margin:12px 0 16px;color:#7e8691}
.ap-address{margin:0 0 16px;padding:0 0 12px;border-bottom:1px solid #eceef1;display:grid;gap:6px;font-size:10px;line-height:1.65}
.ap-address>div{display:flex;align-items:baseline;gap:8px;min-width:0}
.ap-address dt{color:#939aa4;flex:none;font-weight:500}
.ap-address dd{margin:0;color:#6a727e;font-weight:600;overflow-wrap:anywhere;min-width:0}
.ap-page .ap-message-draft{font:500 15px/1.9 var(--font-body);white-space:pre-wrap;overflow-wrap:anywhere;padding:0;max-width:100%;border:0;background:#fff;color:#333b46;border-radius:0;min-height:0;margin:0}
.ap-editor{display:grid;gap:10px;min-width:0}
.ap-editor>span{font-size:11px;font-weight:700;color:#8c6d26}
.ap-editor small{display:block;font-size:10px;font-weight:500;color:#878e97;margin-top:3px}
.ap-editor .input{font:500 15px/1.85 var(--font-body);padding:12px;min-height:220px;max-width:100%;width:100%;border-radius:7px;border-color:#dac591;resize:vertical}
.ap-decision-actions{display:grid;gap:8px;margin:23px 0 0}
.ap-decision-actions .btn{min-height:40px;font-size:11px;border-radius:7px;padding:10px 12px;font-weight:700}
.ap-decision-actions .ap-approve{width:100%;background:#d2ad4a;border-color:#cba33c;color:#32280e;display:flex;gap:7px;box-shadow:0 1px 2px #8d631b10;white-space:normal;line-height:1.5}
.ap-decision-actions .ap-approve:hover:not(:disabled){background:#cba240;border-color:#b88b2c}
.ap-decision-actions .ico{width:13px;height:13px}
.ap-secondary-actions{display:flex;justify-content:space-between;gap:8px}
.ap-secondary-actions .ap-edit-button{border-color:#dfe3ea;background:#fff;color:#5b636f;flex:1}
.ap-secondary-actions .ap-reject{color:#ae4c4c;border-color:transparent;background:transparent;flex:1}
.ap-secondary-actions .ap-reject:hover:not(:disabled){background:#fdf3f3;border-color:#f3dada}
.ap-decision-foot{display:flex;align-items:flex-start;justify-content:center;gap:5px;font-size:9px;line-height:1.7;color:#939aa4;padding:17px 16px 19px;text-align:center}
.ap-decision-foot .ico{width:11px;height:11px;flex:none;margin-top:2px}
.ap-reject-confirm{background:#fff5f3;border:1px solid #f1d4cf;padding:13px;border-radius:8px;margin-top:20px}
.ap-reject-confirm b{font-size:12px;color:#8b4137}
.ap-reject-confirm p{font-size:11px;line-height:1.7;color:#986d65;margin:7px 0 12px}
.ap-reject-confirm .btn{font-size:11px;min-height:37px}
.ap-inline-error{font-size:11px;line-height:1.7;margin-top:14px}
.ap-action-preview{background:#fbfaf6;border:1px solid #eee5d4;border-radius:8px;padding:22px 17px;text-align:center;display:grid;justify-items:center;gap:9px}
.ap-action-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#f5ebd1;color:#aa8732}
.ap-action-icon .ico{width:18px;height:18px}
.ap-action-preview h4{font-size:16px;line-height:1.4;margin:0;color:#484130}
.ap-action-preview p{margin:0;color:#827b6d;font-size:12px;line-height:1.8}
.ap-action-preview>span:last-child{font-size:10px;color:#ad9a70}
.ap-decision-record{border-top:1px solid #eceef2;margin-top:22px;padding-top:17px;display:grid;gap:8px;color:#7c848e;font-size:10px}
.ap-decision-record .pill{justify-self:start}
.ap-decision-record p{font-size:12px;color:#646d78;margin:0;line-height:1.7}
.ap-readonly{font-size:12px;line-height:1.8;color:#848c97;margin:18px 0 0}
.ap-context-error,.ap-task-error{margin:15px 20px;font-size:12px;line-height:1.8}
.ap-context-error p{margin:8px 0}
.ap-report{padding:20px 23px}.ap-report .report{font:500 14px/1.9 var(--font-body);color:#4c5663}
.ap-empty{padding:65px 25px;min-height:330px;text-align:center;display:grid;gap:13px;justify-items:center;align-content:center}
.ap-empty-icon{display:grid;place-items:center;width:44px;height:44px;color:#9d813c;background:#fbf6e9;border-radius:50%;margin-bottom:5px}
.ap-empty h2{font-size:20px}.ap-empty p{font-size:13px;color:#848b94;max-width:40ch;margin:0 0 7px}.ap-empty .btn{font-size:12px}
.ap-load-error .actions{justify-content:center;margin-top:18px}
.ap-mobile-queue,.ap-mobile-review-tabs{display:none}
/* 02 / Queue above the review, giving BOTH reading columns more room. */
.ap-top-queue{min-width:0}
.ap-top-queue .ap-queue-title{border:0;padding:0 1px 11px}
.ap-top-queue .ap-queue-title>span{background:none;display:block;min-width:0}
.ap-top-queue-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;min-width:0;max-height:270px;overflow-y:auto;padding:1px}
.ap-top-queue .ap-queue-item{border:1px solid #e2e6ed;border-radius:9px;padding:13px 16px;gap:6px;min-width:0}
.ap-top-queue .ap-queue-item.selected{border-color:#dcc486;box-shadow:inset 0 2px #c5a044;background:#fdf9ef}
.ap-top-queue .ap-queue-summary{-webkit-line-clamp:1;font-size:10px}
.ap-top-queue .ap-queue-bottom{display:none}
.ap-focus-review{border-color:#dfe4eb;border-radius:12px;overflow:hidden}
.ap-focus-review .ap-detail-head{padding:17px 28px;min-height:82px}
.ap-focus-review .ap-detail-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.ap-focus-review .ap-column-head{padding-left:28px;padding-right:28px}
.ap-focus-review .ap-messages{padding:20px 28px 23px;gap:25px}
.ap-focus-review .ap-messages .message-text{font-size:15px;line-height:1.85}
.ap-focus-review .ap-decision{padding:22px 25px}
.ap-focus-review .ap-decision-head{padding:18px 22px}
.ap-focus-review .ap-decision-inner{padding:20px 23px 0}
.ap-focus-review .ap-message-draft{font-size:17px;line-height:1.9;min-height:145px}
.ap-focus-review .ap-decision-actions{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:9px;align-items:start;margin-top:25px}
.ap-focus-review .ap-secondary-actions{gap:3px}
.ap-focus-review .ap-secondary-actions .btn{padding-inline:8px}
.ap-focus-review .ap-action-summary{font-size:12px}
.ap-focus-review .ap-address{font-size:11px}
.ap-focus-review .ap-agent-note{margin-inline:28px}
.ap-focus-review .ap-context-foot{padding-inline:28px}
/* 03 / One expandable row; the full queue remains scannable on the same page. */
.ap-records-head{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:#949aa3;margin:-2px 1px -3px}
.ap-records-head>span:first-child{font-weight:650;color:#69717d}
.ap-records{display:grid;gap:11px}
.ap-record{border:1px solid #dfe4eb;border-radius:11px;background:#fff;overflow:hidden;box-shadow:0 2px 6px #24283002}
.ap-record.selected{border-color:#d8c7a2}
.ap-record-toggle{width:100%;display:grid;grid-template-columns:30px minmax(125px,.7fr) minmax(0,1.3fr) auto 16px;gap:18px;align-items:center;text-align:left;background:#fff;border:0;padding:19px 24px;border-radius:0;min-width:0;min-height:84px;color:#353c47}
.ap-record-toggle:hover{background:#fcfaf6}
.ap-record.selected .ap-record-toggle{background:#fdfaf2;border-bottom:1px solid #eee4d0}
.ap-record-number{font-size:12px;font-weight:650;color:#b7a47b;width:29px;height:29px;display:grid;place-items:center;border:1px solid #e9e2d3;border-radius:7px}
.ap-record.selected .ap-record-number{background:#efe3c1;border-color:#e6d3a5;color:#8c6c27}
.ap-record-who{display:grid;gap:5px;min-width:0}.ap-record-who b{font-size:14px;letter-spacing:-.02em;overflow-wrap:anywhere}.ap-record-who>span{font-size:10px;color:#8b919a}
.ap-record-summary{font-size:12px;line-height:1.7;color:#888e98;min-width:0;overflow-wrap:anywhere}
.ap-record-toggle>.ico{width:14px;height:14px;color:#989d9e}
.ap-record.selected .ap-record-toggle>.ico{transform:rotate(90deg);color:#b08a36}
.ap-record-content{min-width:0}
.ap-record-content .ap-detail-head{display:none}
.ap-record-content .ap-detail-grid{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr)}
.ap-record-content .ap-column-head{padding:22px 28px 12px}
.ap-record-content .ap-messages{padding:18px 28px 24px;gap:25px}
.ap-record-content .ap-messages .message-text{font-size:15px}
.ap-record-content .ap-decision{padding:24px 28px}
.ap-record-content .ap-decision-head{padding:17px 21px 15px}
.ap-record-content .ap-decision-inner{padding:20px 22px 0}
.ap-record-content .ap-message-draft{font-size:16px;line-height:1.9;min-height:125px}
.ap-record-content .ap-decision-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.ap-record-content .ap-approve{width:auto;flex:1}
.ap-record-content .ap-secondary-actions{flex:1;min-width:140px}
.ap-record-content .ap-agent-note{margin-inline:28px}
.ap-record-content .ap-context-foot{padding-inline:28px}
.ap-page [hidden]{display:none!important}
.ap-page :focus-visible{outline:2px solid #a4822d;outline-offset:3px}
.ap-screen[aria-busy=true] button{cursor:wait;opacity:.55}
@media(min-width:1680px){.ap-desk{grid-template-columns:246px minmax(0,1fr)}.ap-messages .message-text{font-size:16px}.ap-page .ap-message-draft{font-size:17px}.ap-messages{padding-inline:28px}.ap-decision{padding:26px}}
@media(max-width:1180px) and (min-width:701px){
 .ap-desk{grid-template-columns:minmax(0,1fr)}
 .ap-inbox{border-right:0;border-bottom:1px solid #e3e7ec}
 .ap-inbox .ap-queue-title{padding:12px 18px;border-bottom:0}
 .ap-inbox .ap-queue-items{grid-template-columns:repeat(3,minmax(0,1fr));padding:0 12px 12px;gap:8px;max-height:240px;overflow:auto}
 .ap-inbox .ap-queue-item{border:1px solid #e4e7ec;border-radius:7px;padding:12px;gap:6px}
 .ap-inbox .ap-queue-item.selected{border-color:#ddc88c}
 .ap-inbox .ap-queue-summary{-webkit-line-clamp:1}
 .ap-inbox .ap-queue-bottom,.ap-queue-hint{display:none}
 .ap-layout-picker{grid-template-columns:1fr}.ap-layout-label>span{display:inline;margin-left:9px}
 .ap-layout-buttons{justify-content:flex-start}
 .ap-detail-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .ap-messages{padding-inline:20px}.ap-decision{padding:18px}.ap-column-head{padding-inline:20px}
 .ap-focus-review .ap-decision-actions{grid-template-columns:1fr}.ap-record-content .ap-decision-actions{display:grid}.ap-record-content .ap-approve{width:100%}
 .ap-top-queue-items{gap:8px}.ap-top-queue .ap-queue-item{padding:12px}
 .ap-record-toggle{gap:13px;padding:17px 20px}
}
@media(max-width:900px){.ap-page-head h1{font-size:27px}.ap-page-head p{font-size:12px}.ap-safety-note{display:none}.ap-screen{gap:16px}.ap-layout-picker{padding:14px 16px}.ap-layout-label{font-size:10px}.ap-layout-choice{padding:10px 13px}.ap-results-bar>span:last-child{max-width:65%;font-size:9px;text-align:right}.ap-messages .message-text{font-size:15px}.ap-message-draft{font-size:16px}.ap-search input{font-size:16px}}
@media(max-width:700px){
 .ap-page .ap-screen{gap:15px}.ap-page-head{margin-bottom:0}.ap-page-head h1{font-size:27px}.ap-page-head p{font-size:12px;line-height:1.7;max-width:40ch}
 .ap-layout-picker{grid-template-columns:minmax(0,1fr);gap:10px;padding:13px}
 .ap-layout-label{display:flex;justify-content:space-between;gap:5px;font-size:10px}.ap-layout-label>span{font-size:9px;margin:0}
 .ap-layout-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
 .ap-layout-choice{display:grid;justify-items:start;gap:4px;padding:9px 8px;min-height:54px;font-size:10px;line-height:1.45;text-align:left;border-color:#edf0f3}
 .ap-layout-number{font-size:9px}.ap-layout-description{font-size:10px;line-height:1.7;padding-top:8px}
 .ap-toolbar{flex-wrap:wrap;gap:12px;border:0;flex-direction:column;align-items:stretch}
 .ap-page .ap-status-tabs{border-bottom:1px solid #dfe4eb;gap:26px}
 .ap-page .ap-status-tabs .chip{min-height:41px;padding:8px 0 11px;font-size:12px}
 .ap-filters{gap:8px}.ap-search{width:auto;flex:1;min-height:41px}.ap-search input{font-size:16px;line-height:1.5}
 .ap-filters .ap-type-filter{font-size:14px;height:41px;min-height:41px;width:113px}
 .ap-results-bar{margin:0;font-size:9px;gap:10px;align-items:flex-start}.ap-results-bar>span:first-child{font-size:10px}.ap-results-bar>span:last-child{font-size:9px;max-width:68%;line-height:1.7}
 .ap-mobile-queue{display:grid;gap:6px;font-size:10px;color:#757d89;font-weight:600}
 .ap-mobile-queue .input{font-size:14px;min-height:44px;padding:10px 34px 10px 12px;background:#fff;border-color:#dde3ea}
 .ap-desk{grid-template-columns:minmax(0,1fr);min-height:0;border-radius:11px}.ap-inbox,.ap-top-queue{display:none}
 .ap-detail-head,.ap-focus-review .ap-detail-head{padding:17px 15px;min-height:80px;gap:10px}
 .ap-detail-head .conversation-contact-avatar{width:32px;height:32px;font-size:9px}
 .ap-detail-person h2{font-size:16px}.ap-detail-person>div{gap:6px}.ap-detail-person .pill{font-size:8px}.ap-detail-person p{font-size:10px;line-height:1.6}
 .ap-item-position{gap:3px}.ap-item-position>span{display:none}.ap-step{width:25px;height:30px;padding:4px}
 .ap-mobile-review-tabs{display:flex;gap:16px;align-items:center;background:#fff;border-bottom:1px solid #e6e9ee;padding:0 16px}
 .ap-mobile-review-tabs button{font-size:11px;color:#949ba4;background:none;border:0;border-bottom:2px solid transparent;padding:13px 0;min-height:44px;font-weight:650;line-height:1.5}
 .ap-mobile-review-tabs button[aria-pressed=true]{color:#97722a;border-bottom-color:#c5a044}
 .ap-detail-grid,.ap-focus-review .ap-detail-grid,.ap-record-content .ap-detail-grid{grid-template-columns:minmax(0,1fr)}
 .ap-detail[data-mobile-panel=draft] .ap-context,.ap-detail[data-mobile-panel=context] .ap-decision{display:none}
 .ap-column-head,.ap-focus-review .ap-column-head,.ap-record-content .ap-column-head{padding:20px 18px 12px}
 .ap-messages,.ap-focus-review .ap-messages,.ap-record-content .ap-messages{padding:18px 18px 22px;gap:25px}
 .ap-messages .message-text,.ap-focus-review .ap-messages .message-text,.ap-record-content .ap-messages .message-text{font-size:16px;line-height:1.85}
 .ap-messages .conversation-message-meta{font-size:9px}.ap-messages .conversation-message-meta b{font-size:10px}
 .ap-decision,.ap-focus-review .ap-decision,.ap-record-content .ap-decision{padding:15px 13px;border-left:0;background:#fafbfc}
 .ap-decision-head,.ap-focus-review .ap-decision-head,.ap-record-content .ap-decision-head{padding:17px 15px 14px;gap:8px}
 .ap-decision-head h3{font-size:16px}.ap-decision-head p{font-size:9px}.ap-unsent{font-size:9px}
 .ap-decision-inner,.ap-focus-review .ap-decision-inner,.ap-record-content .ap-decision-inner{padding:18px 16px 0}
 .ap-action-summary,.ap-focus-review .ap-action-summary{font-size:12px;line-height:1.8}
 .ap-page .ap-message-draft,.ap-focus-review .ap-message-draft,.ap-record-content .ap-message-draft{font-size:16px;line-height:1.9;min-height:0}
 .ap-editor .input{font-size:16px;min-height:260px}
 .ap-decision-actions,.ap-focus-review .ap-decision-actions,.ap-record-content .ap-decision-actions{display:grid;grid-template-columns:1fr;margin-top:22px;gap:8px}
 .ap-decision-actions .btn{font-size:12px;min-height:44px}.ap-secondary-actions{gap:7px}.ap-record-content .ap-approve{width:100%}
 .ap-address,.ap-focus-review .ap-address{font-size:11px}.ap-decision-foot{font-size:9px;padding-bottom:18px}
 .ap-agent-note,.ap-focus-review .ap-agent-note,.ap-record-content .ap-agent-note{margin-inline:18px;font-size:11px}
 .ap-context-foot,.ap-focus-review .ap-context-foot,.ap-record-content .ap-context-foot{padding-inline:18px;gap:12px}
 .ap-records-head{font-size:10px}.ap-records-head>span:last-child{font-size:9px;max-width:60%;text-align:right}
 .ap-records{gap:10px}.ap-record-toggle{grid-template-columns:25px minmax(0,1fr) auto 12px;gap:10px;padding:16px 14px;min-height:78px}
 .ap-record-number{width:25px;height:25px;font-size:10px}.ap-record-who b{font-size:13px}.ap-record-who>span{font-size:9px}
 .ap-record-summary{grid-column:2/4;grid-row:2;font-size:11px;line-height:1.7}.ap-record-toggle>.ico{width:12px}.ap-record-status .ap-waiting{font-size:8px}
 .ap-empty{padding:45px 20px;min-height:300px}.ap-empty h2{font-size:18px}.ap-empty p{font-size:12px}
}
@media(prefers-reduced-motion:reduce){.ap-page *{transition:none!important;scroll-behavior:auto!important}}


/* Activity / 01 Daily journal · 02 Activity desk · 03 Work ledger
   Namespaced .ac-*; shares the approved portal navigation, branding and controls.
   New markup and behavior are in activity.js (included in portal.js). */
.ac-page{max-width:1510px;gap:0;min-width:0}
.ac-screen{display:grid;gap:18px;min-width:0;color:#30353c}
.ac-screen [hidden]{display:none!important}
.ac-page-head{align-items:center;margin:0;gap:18px}
.ac-page-head h1{font-size:29px;letter-spacing:-.045em;line-height:1.2}
.ac-page-head p{font-size:13px;line-height:1.7;margin:8px 0 0;color:#69717d}
.ac-header-actions{display:flex;gap:9px;align-items:center;flex-shrink:0}
.ac-range{display:flex;gap:8px;align-items:center;border:1px solid #dfe3e9;border-radius:8px;background:#fff;padding:0 10px;min-height:38px}
.ac-range>.ico{width:14px;height:14px;color:#858b96}
.ac-range select{font-size:12px;background:transparent;color:#4f5865;border:0;min-width:117px;min-height:37px;cursor:pointer}
.ac-refresh{display:grid;place-items:center;width:38px;height:38px;border:1px solid #dfe3e9;border-radius:8px;background:#fff;color:#6d7582;cursor:pointer}
.ac-refresh>.ico{width:16px;height:16px}.ac-refresh:hover{background:#f7f8fa}.ac-refresh:disabled{opacity:.5;cursor:wait}
.ac-layout-picker{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:10px 24px;padding:15px 18px;background:#fff;border:1px solid #e1e5ec;border-radius:12px;min-width:0}
.ac-layout-label{font-size:11px;font-weight:700;color:#626b77;line-height:1.6}.ac-layout-label>span{display:block;font-weight:500;font-size:10px;color:#838b97}
.ac-layout-buttons{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.ac-layout-choice{display:inline-flex;align-items:center;gap:9px;padding:10px 14px;min-height:40px;border:1px solid transparent;border-radius:7px;background:transparent;font-size:12px;font-weight:700;color:#646d7a;cursor:pointer}
.ac-layout-choice>span{font-size:10px;color:#7b8593;tab-size:2}.ac-layout-choice:hover{background:#faf9f6;color:#3a3d43}.ac-layout-choice.selected{border-color:#e4ce95;background:#fcf7e8;color:#785a17}.ac-layout-choice.selected>span{color:#a07e2d}
.ac-layout-description{grid-column:1/-1;padding-top:9px;border-top:1px solid #eff1f4;margin:0;color:#7b838f;font-size:11px;line-height:1.6}
.ac-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid #dce2e9;min-width:0}
.ac-kind-tabs{display:flex;gap:23px;min-width:0}
.ac-kind-tabs button{display:inline-flex;align-items:center;gap:7px;padding:12px 0 13px;min-height:47px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:#6e7785;font-size:12px;font-weight:650;white-space:nowrap;cursor:pointer}
.ac-kind-tabs button.on{border-bottom-color:#b58a29;color:#72541b}
.ac-kind-tabs button>span{font-size:10px;min-width:19px;min-height:18px;border-radius:5px;display:inline-grid;place-items:center;background:#e9ecf0;color:#6b7582;padding:1px 4px}
.ac-kind-tabs button.on>span{background:#f2e6c7;color:#856317}
.ac-search{display:flex;gap:7px;align-items:center;min-width:0;width:230px;max-width:100%;background:#fff;border:1px solid #dfe4eb;border-radius:7px;padding:0 10px;min-height:36px;margin-bottom:7px}
.ac-search>.ico{width:14px;height:14px;color:#909aa7;flex:none}.ac-search input{width:100%;min-width:0;border:0;padding:8px 0;font-size:11px;background:transparent;color:#383f49;outline:none}
.ac-search:focus-within{border-color:#b58a29;box-shadow:0 0 0 2px #c5a04417}
.ac-summary-bar{display:flex;gap:18px;align-items:center;flex-wrap:wrap;padding:3px 1px;color:#727b88;font-size:11px}
.ac-summary-bar>span{display:inline-flex;align-items:center;gap:5px}.ac-summary-bar b{color:#343c47;font-weight:750;font-variant-numeric:tabular-nums}.ac-summary-bar .ac-summary-credits{margin-left:auto;gap:7px}.ac-summary-credits>.ico{width:14px;height:14px;color:#8f783f}.ac-summary-credits>span{color:#9098a3;font-size:10px}
.ac-state-dot{display:inline-block;flex:none;width:5px;height:5px;border-radius:50%;background:#8d9aac}
.ac-state-dot.good{background:#398168}.ac-state-dot.warn{background:#b89136}.ac-state-dot.bad{background:#b95b58}
.ac-results-line{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:10px;color:#738092;margin-top:-5px;margin-bottom:-7px}
.ac-results-line>span{display:flex;align-items:center;gap:7px}.ac-results-line .ico{width:13px;height:13px;color:#989faa}
.ac-results-line select{border:0;background:transparent;padding:4px;color:#66717f;font-size:10px;min-height:28px;max-width:100%}
.ac-workspace{min-width:0}.ac-kicker{display:block;font-size:9px;letter-spacing:.09em;text-transform:uppercase;color:#939baa;font-weight:650;margin-bottom:5px}
.ac-paper-head{padding:23px 25px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid #e9ecf0}
.ac-paper-head h2{font-size:17px;letter-spacing:-.025em;line-height:1.5;margin:0;color:#363c45}
.ac-date-note{display:flex;align-items:center;gap:6px;color:#737f90;font-size:10px}.ac-date-note>.ico{width:13px;height:13px}
.ac-journal{display:grid;grid-template-columns:minmax(0,1fr) 248px;gap:20px;align-items:start}
.ac-journal-paper{background:#fff;border:1px solid #e0e5ed;border-radius:12px;min-width:0;overflow:hidden}
.ac-journal-days{padding:0 25px 10px}
.ac-day-heading{display:flex;align-items:baseline;gap:10px;padding:22px 0 15px}.ac-day-heading h3{font-size:12px;font-weight:750;letter-spacing:0}.ac-day-heading>span{font-size:10px;color:#8a929e}
.ac-events{display:grid}.ac-event{display:grid;grid-template-columns:62px 31px minmax(0,1fr);gap:12px;padding:0;position:relative;background:transparent;border:0;color:inherit;width:100%;text-align:left;cursor:pointer}
.ac-event>time{font-size:10px;color:#758093;padding-top:8px;white-space:nowrap;font-variant-numeric:tabular-nums}
.ac-timeline-mark{display:grid;place-items:center;align-self:start;width:30px;height:30px;background:#f5f6f8;color:#758296;border:1px solid #e8ecf0;border-radius:9px;z-index:1}
.ac-timeline-mark .ico{width:14px;height:14px}.ac-timeline-mark.warn{color:#9d7b2d;background:#fbf6e9;border-color:#eee2c2}.ac-timeline-mark.good{color:#608675;background:#f4f8f6;border-color:#e3ede7}.ac-timeline-mark.bad{color:#bd6565;background:#fcf4f4;border-color:#f0dede}
.ac-event:not(:last-child):before{content:"";position:absolute;left:89px;top:30px;bottom:-2px;width:1px;background:#e8ecf0;z-index:0}
.ac-event-copy{display:grid;gap:9px;padding:3px 0 23px;min-width:0;border-bottom:1px solid #f0f2f5;margin-bottom:19px}
.ac-event:last-child .ac-event-copy{margin-bottom:0;border-bottom:0;padding-bottom:17px}
.ac-event-title{display:flex;align-items:center;gap:9px;flex-wrap:wrap;min-width:0}.ac-event-title b{font-size:13px;font-weight:750;color:#343c47}.ac-event-title>span{font-size:10px;color:#748092}.ac-event-title>.ico{width:13px;height:13px;margin-left:auto;color:#acb2bc;transition:transform .15s}
.ac-event-summary{display:block;font-size:13px;line-height:1.85;color:#647082;overflow-wrap:anywhere;max-width:75ch}
.ac-event:hover .ac-event-title b{color:#8c6c23}.ac-event:hover .ac-event-title>.ico{transform:translateX(3px);color:#b9923a}
.ac-event-stamp{display:flex;align-items:center;gap:11px;flex-wrap:wrap}.ac-screen .pill{font-size:9px;padding:3px 7px;line-height:1.6;max-width:100%;border:0}.ac-credits{font-size:10px;font-variant-numeric:tabular-nums;color:#616d7e}.ac-credits>span{color:#778191;font-size:9px}
.ac-journal-aside{display:grid;gap:18px;min-width:0}.ac-side-note{background:#fff;border:1px solid #e0e5ec;border-radius:12px;padding:20px}.ac-side-note h2{font-size:13px;line-height:1.5;margin:0;letter-spacing:-.01em}.ac-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.ac-section-title>span{display:grid;place-items:center;min-width:22px;min-height:22px;background:#f8f1e0;color:#a17e29;border-radius:6px;font-size:10px;font-weight:700}
.ac-side-note>p{font-size:10px;line-height:1.85;color:#89929f;margin:10px 0 16px}
.ac-attention-item{display:flex;gap:9px;align-items:center;width:100%;padding:13px 0;background:transparent;border:0;border-top:1px solid #edf0f4;text-align:left;color:#485261;cursor:pointer}.ac-attention-item>span:nth-child(2){display:grid;gap:3px;min-width:0}.ac-attention-item b{font-size:11px;font-weight:700;overflow-wrap:anywhere}.ac-attention-item small{font-size:9px;color:#a18b59}.ac-attention-item>.ico{width:12px;height:12px;margin-left:auto;color:#aab2be}.ac-attention-item:hover b{color:#a17e29}
.ac-mix-item{display:grid;gap:8px;margin-top:17px}.ac-mix-item>div:first-child{display:flex;justify-content:space-between;gap:8px;color:#7c8797;font-size:10px}.ac-mix-item b{font-weight:700;color:#596575}
.ac-mini-meter{height:4px;border-radius:3px;background:#f0f2f5;overflow:hidden}.ac-mini-meter i{display:block;height:100%;background:#c6ac6d;border-radius:3px}
.ac-work-mix>p{display:flex;align-items:center;gap:7px;border-top:1px solid #edf0f4;padding-top:16px;margin:20px 0 0;font-size:9px}.ac-work-mix>p>.ico{width:12px;height:12px;flex:none}
.ac-aside-note{font-size:10px;line-height:1.8;color:#9099a5;margin:0;padding:0 7px}.ac-aside-note .ac-text-button{font-size:10px;display:inline-flex;vertical-align:middle}
.ac-all-clear{display:flex;gap:7px;align-items:center;font-size:10px;color:#6b8478;padding:12px 0}.ac-all-clear>.ico{width:14px;height:14px}
.ac-list-footer{border-top:1px solid #e8ecf1;padding:14px 20px;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:58px;color:#778191;font-size:10px;background:#fff}
.ac-list-footer>.btn{min-height:31px;font-size:10px;padding:7px 11px;color:#5c6676;border-color:#dfe4ec}.ac-list-end{display:flex;gap:6px;align-items:center;font-size:9px;color:#778191}.ac-list-end>.ico{width:12px;height:12px}
.ac-footnote{display:flex;align-items:center;gap:5px;flex-wrap:wrap;line-height:1.8;font-size:10px;color:#9199a6;margin:0;padding:1px 2px}.ac-footnote>.ico{width:12px;height:12px;color:#aa945d}.ac-footnote a{font-weight:600;color:#8f742e;text-decoration:none}
/* 02: split list and persistent report, rather than a drawer covering the list. */
.ac-desk{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(0,1.15fr);min-width:0;border:1px solid #dfe5ed;border-radius:12px;overflow:hidden;background:#fff;min-height:590px}
.ac-desk-list{min-width:0;border-right:1px solid #e4e8ef;background:#fdfefe;display:flex;flex-direction:column}
.ac-desk-list-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:20px;border-bottom:1px solid #e8ecf1;min-height:83px}
.ac-desk-list-head h2{font-size:15px;display:flex;align-items:center;gap:8px}.ac-desk-list-head h2>span{color:#87929f;font-size:10px;font-weight:500}.ac-desk-list-head>.ico,.ac-desk-list-head>span>.ico{width:16px;height:16px;color:#949daa}
.ac-desk-items{display:grid;max-height:670px;overflow-y:auto;overscroll-behavior:contain}.ac-desk-item{display:flex;align-items:flex-start;gap:11px;position:relative;width:100%;padding:20px;border:0;border-bottom:1px solid #e8ecf1;background:transparent;text-align:left;color:#36404c;cursor:pointer;min-width:0}
.ac-desk-item:hover{background:#fbfaf6}.ac-desk-item.selected{background:#fcf9f0;box-shadow:inset 2px 0 #be9840}
.ac-type-icon{width:31px;height:31px;display:inline-grid;place-items:center;flex:none;border-radius:9px;background:#f2f4f8;color:#7b899b}.ac-type-icon .ico{width:15px;height:15px}.ac-type-icon.warn{background:#f7eed7;color:#a28138}.ac-type-icon.good{background:#eff6f2;color:#6e8b7c}.ac-type-icon.bad{background:#fbefef;color:#bb6666}
.ac-desk-item-copy{display:grid;gap:6px;min-width:0;flex:1}.ac-desk-item-top{display:flex;gap:8px;align-items:baseline;justify-content:space-between;flex-wrap:wrap;min-width:0}.ac-desk-item-top>b{font-size:12px;letter-spacing:-.01em;font-weight:750;overflow-wrap:anywhere}.ac-desk-item-top>time{font-size:9px;white-space:nowrap;color:#758093;font-variant-numeric:tabular-nums}.ac-desk-type{font-size:9px;color:#7d7052}.ac-desk-result{font-size:12px;line-height:1.85;color:#6b788b;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.ac-desk-item .ac-event-stamp{margin-top:3px}
.ac-desk-item>.ico{width:12px;height:12px;flex:none;align-self:center;color:#c3c9d1}.ac-desk-item.selected>.ico{color:#be9840}.ac-desk-list>.ac-list-footer{margin-top:auto;padding-inline:18px;font-size:9px}.ac-desk-list .ac-list-end{display:none}
.ac-inspector{min-width:0;background:#fff;align-self:start;position:relative;top:auto}.ac-inspector-bar{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:21px 25px;min-height:83px;border-bottom:1px solid #e8ecf1;color:#8c95a1;font-size:10px}.ac-inspector-bar>span{display:flex;align-items:center;gap:7px}.ac-inspector-bar .ico{width:15px;height:15px}.ac-inspector-bar .ac-back{display:none}
.ac-detail-record{padding:26px;min-width:0}.ac-detail-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0}.ac-detail-heading>.ac-type-icon{width:38px;height:38px;border-radius:11px}.ac-detail-heading>.ac-type-icon>.ico{width:18px;height:18px}.ac-detail-heading>div{min-width:0;flex:1}.ac-detail-heading p{font-size:10px;color:#8f98a5;margin:0 0 4px}.ac-detail-heading h2{font-size:21px;line-height:1.4;letter-spacing:-.03em;color:#333c48;overflow-wrap:anywhere}.ac-detail-heading>.pill{align-self:center;font-size:9px}
.ac-detail-facts{display:grid;grid-template-columns:1.4fr 1fr;gap:12px;padding:18px 0;margin:22px 0 0;border-top:1px solid #ecf0f4;border-bottom:1px solid #ecf0f4}.ac-detail-facts>div{min-width:0}.ac-detail-facts dt{font-size:9px;text-transform:uppercase;letter-spacing:.06em;color:#99a1ad}.ac-detail-facts dd{font-size:11px;color:#657183;margin:5px 0 0;overflow-wrap:anywhere}.ac-detail-facts dd strong{font-weight:700;color:#4f596a}
.ac-report-section{padding:24px 0}.ac-report-section h3{font-size:11px;font-weight:750;letter-spacing:0;color:#697485;margin-bottom:13px}.ac-report-text p{font-size:14px;line-height:1.95;color:#586477;margin:0 0 12px;white-space:pre-wrap;overflow-wrap:anywhere}.ac-report-text p:last-child{margin-bottom:0}.ac-report-text .ac-pending-report{color:#929cab;font-size:13px}
.ac-proposals{border:1px solid #eaddb8;border-radius:10px;background:#fffdf8;overflow:hidden}.ac-proposals>.ac-section-title{padding:15px 17px;background:#fcf8ec;border-bottom:1px solid #eee4ca}.ac-proposals h3{font-size:12px;color:#7d692f;letter-spacing:-.01em}.ac-proposals .ac-section-title>span{font-size:9px;min-height:19px;min-width:19px}
.ac-proposal{display:flex;align-items:flex-start;gap:9px;margin:0 17px;padding:15px 0;border-bottom:1px solid #efe9da;min-width:0}.ac-proposal:last-child{border-bottom:0}.ac-proposal-icon{color:#a58e58;padding-top:3px}.ac-proposal-icon>.ico{width:13px;height:13px}.ac-proposal>div{min-width:0;flex:1}.ac-proposal b{font-size:11px;color:#6c6146}.ac-proposal p{font-size:11px;color:#948a72;line-height:1.8;margin:5px 0 0;overflow-wrap:anywhere}.ac-proposal>.pill{font-size:8px;margin-top:1px;flex-shrink:0}
.ac-review-callout{padding:0 17px 17px}.ac-review-callout p{display:flex;align-items:center;gap:5px;font-size:9px;color:#9f9478;margin:13px 0}.ac-review-callout p>.ico{width:11px;height:11px}.ac-review-callout .btn{font-size:11px;width:100%;min-height:39px}
.ac-detail-footer{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:24px;padding-top:17px;border-top:1px solid #ebeff4}.ac-detail-footer>span{display:flex;gap:5px;align-items:center;font-size:9px;color:#909ba9}.ac-detail-footer>span>.ico{width:12px;height:12px}
.ac-text-button{border:0;background:transparent;color:#977b32;display:inline-flex;align-items:center;gap:6px;text-decoration:none;font-size:10px;padding:3px 0;line-height:1.6;cursor:pointer;font-weight:600}.ac-text-button>.ico{width:13px;height:13px}.ac-text-button:hover{text-decoration:underline;color:#7e6222}
.ac-task-error{display:flex;gap:10px;align-items:flex-start;margin-top:22px;padding:15px;background:#fdf4f3;border:1px solid #efd9d7;border-radius:9px;color:#a65b57;font-size:12px}.ac-task-error>.ico{width:17px;height:17px;flex:none;margin-top:2px}.ac-task-error b{font-size:12px}.ac-task-error p{font-size:11px;line-height:1.8;margin:6px 0 0;color:#9e7875}
/* 03: compact ledger. Full-width inline record opens below its task. */
.ac-ledger{border:1px solid #dfe5ed;border-radius:12px;background:#fff;min-width:0;overflow:hidden}
.ac-ledger-wrap{min-width:0;max-width:100%;overflow-x:auto}
.ac-ledger-table{width:100%;border-collapse:collapse;table-layout:fixed;min-width:0;font-size:11px}
.ac-ledger-table thead{background:#fafbfc}.ac-ledger-table th{padding:13px 16px;border-bottom:1px solid #e4e9f0;text-transform:none;letter-spacing:0;color:#8c96a4;font-size:10px;white-space:normal;font-weight:600}.ac-ledger-table th:nth-child(1){width:14%}.ac-ledger-table th:nth-child(2){width:25%}.ac-ledger-table th:nth-child(3){width:34%}.ac-ledger-table th:nth-child(4){width:16%}.ac-ledger-table th:nth-child(5){width:8%}.ac-ledger-table th:nth-child(6){width:3%;padding-inline:0}
.ac-ledger-table th button{padding:0;border:0;background:transparent;display:inline-flex;align-items:center;gap:6px;color:inherit;font:inherit;cursor:pointer}.ac-ledger-table th button>.ico{width:10px;height:10px}
.ac-ledger-table .ac-ledger-row>td{border-bottom:1px solid #eaedf2;padding:18px 16px;vertical-align:middle;overflow-wrap:anywhere;color:#818b99}
.ac-ledger-row{cursor:pointer}.ac-ledger-row:hover>td{background:#fcfbf6}.ac-ledger-row.expanded>td{background:#fcf8ec;border-bottom-color:#e9ddb8}.ac-ledger-row.expanded>.ac-when{box-shadow:inset 2px 0 #c29b40}
.ac-when time{display:grid;gap:5px;font-size:10px}.ac-when b{font-weight:600;color:#7c8795}.ac-when span{font-size:9px;color:#7b8798}
.ac-ledger-trigger{border:0;padding:0;background:transparent;display:flex;gap:10px;align-items:center;min-width:0;width:100%;text-align:left;color:inherit;cursor:pointer;line-height:1.65}.ac-ledger-trigger>span:last-child{min-width:0}.ac-ledger-trigger b{display:block;font-size:11px;line-height:1.6;color:#4d596a;font-weight:700}.ac-ledger-trigger small{display:block;font-size:10px;color:#7b8798;margin-top:4px}.ac-ledger-trigger .ac-type-icon{width:28px;height:28px;border-radius:7px}.ac-ledger-trigger .ac-type-icon .ico{width:13px;height:13px}
.ac-ledger-table .ac-result{font-size:12px;line-height:1.85;color:#6b788b}.ac-ledger-table .ac-number{text-align:right;font-variant-numeric:tabular-nums}.ac-number>b{font-size:12px;font-weight:650;color:#687385}.ac-status .pill{font-size:8px;white-space:normal}
.ac-ledger-table .ac-expand-cell{padding-inline:0 10px}.ac-expand-cell button{display:inline-grid;place-items:center;width:25px;height:28px;border:0;background:transparent;color:#7d8798;border-radius:5px;cursor:pointer}.ac-expand-cell .ico{width:12px;height:12px}.expanded .ac-expand-cell .ico{transform:rotate(90deg);color:#ae872e}
.ac-ledger-table .ac-expanded-row>td{padding:0;background:#f8fafc;border-bottom:1px solid #e2e8f0}
.ac-inline-detail{margin:20px;border:1px solid #e3e7ed;border-radius:10px;background:#fff}
.ac-detail-compact{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:0 32px;padding:25px}
.ac-detail-compact>.ac-detail-heading{grid-column:1/-1}.ac-detail-compact .ac-detail-facts{grid-column:1/-1;margin-top:17px;padding-block:14px;grid-template-columns:1fr 1fr}
.ac-detail-compact .ac-report-section{grid-column:1;grid-row:3}.ac-detail-compact .ac-proposals{grid-column:2;grid-row:3;margin-top:23px;align-self:start}.ac-detail-compact .ac-detail-footer{grid-column:1/-1;margin-top:5px}.ac-detail-compact .ac-task-error{grid-column:1/-1}.ac-detail-compact:has(.ac-task-error) .ac-report-section{grid-row:auto}.ac-detail-compact:not(:has(.ac-proposals)) .ac-report-section{grid-column:1/-1;max-width:90ch}
.ac-detail-compact .ac-report-text p{font-size:13px;line-height:1.95}
.ac-load-state,.ac-empty{display:grid;place-items:center;align-content:center;gap:14px;min-height:360px;padding:40px 25px;background:#fff;border:1px solid #e1e7ee;border-radius:12px;text-align:center}
.ac-empty-mark{width:43px;height:43px;display:grid;place-items:center;border-radius:12px;background:#fbf6e8;color:#ba984b}.ac-empty-mark .ico{width:22px;height:22px}.ac-empty h2{font-size:20px;color:#4d5766}.ac-empty p{font-size:13px;color:#87919f;max-width:50ch;margin:0;line-height:1.8}.ac-empty .btn{margin-top:8px}.ac-detail-error{display:grid;place-items:center;text-align:center;gap:13px;padding:60px 25px;min-height:300px}.ac-detail-error h3{font-size:16px}.ac-detail-error p{font-size:12px;color:#84909f;line-height:1.8;margin:0}
.ac-page :focus-visible{outline:2px solid #ac852a;outline-offset:3px}
@media(min-width:1650px){.ac-journal{grid-template-columns:minmax(0,1fr) 280px}.ac-event-summary{font-size:13px}.ac-desk{grid-template-columns:minmax(300px,.85fr) minmax(0,1.15fr)}.ac-desk-result{font-size:12px}.ac-detail-record{padding:30px}.ac-report-text p{font-size:15px}}
@media(max-width:1200px){.ac-journal{grid-template-columns:minmax(0,1fr) 210px;gap:15px}.ac-journal-days{padding-inline:18px}.ac-paper-head{padding-inline:18px}.ac-side-note{padding:17px}.ac-kind-tabs{gap:15px}.ac-kind-tabs button{font-size:11px}.ac-search{width:200px}.ac-desk-item{padding:16px;gap:9px}.ac-desk-item-top{gap:5px}.ac-detail-record{padding:22px}.ac-desk{grid-template-columns:minmax(260px,.9fr) minmax(0,1.1fr)}.ac-ledger-table th,.ac-ledger-table .ac-ledger-row>td{padding-inline:12px}.ac-ledger-trigger{gap:7px}.ac-detail-heading h2{font-size:20px}.ac-proposal{flex-wrap:wrap}.ac-proposal>.pill{margin-left:22px}.ac-event{grid-template-columns:54px 29px minmax(0,1fr);gap:9px}.ac-event:not(:last-child):before{left:77px}.ac-event-title{gap:5px}.ac-event-title b{font-size:12px}.ac-event>time{font-size:9px}}
@media(max-width:1100px) and (min-width:901px){.ac-journal{grid-template-columns:minmax(0,1fr)}.ac-journal-aside{grid-template-columns:1fr 1fr}.ac-aside-note{display:none}.ac-layout-picker{grid-template-columns:1fr}.ac-layout-buttons{justify-content:flex-start}.ac-layout-label>span{display:inline;margin-left:9px}.ac-page-head p{max-width:47ch}.ac-toolbar{flex-wrap:wrap}.ac-search{width:100%;margin:0 0 12px}.ac-desk{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}.ac-desk-item>.ac-type-icon{display:none}.ac-desk-item-top>time{font-size:8px}.ac-detail-heading>.pill{margin-left:50px}.ac-proposal>.pill{margin-left:0}.ac-detail-facts{grid-template-columns:1fr}.ac-ledger-trigger>.ac-type-icon{display:none}.ac-detail-compact{grid-template-columns:1fr}.ac-detail-compact .ac-proposals{grid-column:1;grid-row:auto}.ac-detail-compact .ac-report-section{grid-row:auto}}
@media(max-width:900px){.ac-page-head h1{font-size:27px}.ac-page-head p{font-size:12px}.ac-journal{grid-template-columns:minmax(0,1fr) 210px}.ac-header-actions{gap:6px}.ac-screen{gap:16px}.ac-layout-picker{grid-template-columns:1fr;gap:9px}.ac-layout-buttons{justify-content:flex-start}.ac-layout-label{display:flex;justify-content:space-between;gap:10px}.ac-layout-label>span{font-size:10px}.ac-summary-bar{gap:13px}.ac-kind-tabs{gap:18px}.ac-search{width:210px}.ac-inspector{top:0}.ac-search input{font-size:16px}.ac-ledger-table th,.ac-ledger-table .ac-ledger-row>td{padding-inline:10px}.ac-detail-compact{gap:0 20px}}
@media(max-width:700px){
 .ac-page-head{align-items:flex-start;gap:14px}.ac-page-head p{font-size:12px;max-width:42ch}.ac-header-actions{width:100%;justify-content:space-between}.ac-range{flex:1;max-width:220px;min-height:41px}.ac-range select{min-height:40px;font-size:13px;width:100%}.ac-refresh{width:41px;height:41px}
 .ac-layout-picker{padding:13px}.ac-layout-label{font-size:10px;line-height:1.7}.ac-layout-label>span{font-size:9px;text-align:right;max-width:55%}.ac-layout-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.ac-layout-choice{display:grid;gap:3px;justify-items:start;text-align:left;min-height:55px;padding:8px;font-size:11px;line-height:1.5;border-color:#f0f1f3}.ac-layout-choice>span{font-size:9px}.ac-layout-description{font-size:10px;line-height:1.7}
 .ac-toolbar{display:grid;gap:11px;border-bottom:0;min-width:0}.ac-kind-tabs{gap:0;justify-content:space-between;border-bottom:1px solid #dce2e9}.ac-kind-tabs button{font-size:11px;gap:5px;padding:9px 0 12px;min-height:44px}.ac-kind-tabs button>span{font-size:8px;min-width:15px;min-height:16px;padding:0 3px}.ac-search{width:100%;min-height:43px;margin:0;padding-inline:12px}.ac-search input{font-size:16px;padding-block:10px}.ac-search>.ico{width:15px;height:15px}
 .ac-summary-bar{font-size:10px;gap:10px 15px;padding:1px 0}.ac-summary-bar .ac-summary-credits{margin:0;width:100%;font-size:11px}.ac-summary-credits>span{font-size:9px}.ac-results-line{font-size:9px;margin-top:0;margin-bottom:-5px}.ac-results-line select{font-size:11px;min-height:32px;max-width:125px}
 .ac-journal{grid-template-columns:minmax(0,1fr)}.ac-journal-aside{grid-template-columns:1fr}.ac-aside-note{display:none}.ac-work-mix{display:none}.ac-journal-paper,.ac-desk,.ac-ledger{border-radius:10px}
 .ac-paper-head{padding:19px 17px;align-items:flex-start;gap:10px}.ac-paper-head h2{font-size:16px}.ac-date-note{font-size:9px;max-width:85px;line-height:1.7}.ac-date-note>.ico{display:none}.ac-kicker{font-size:8px}
 .ac-journal-days{padding:0 15px 5px}.ac-day-heading{padding:20px 0 15px}.ac-day-heading h3{font-size:12px}.ac-day-heading>span{font-size:9px}
 .ac-event{grid-template-columns:26px minmax(0,1fr);gap:4px 10px}.ac-event>time{grid-column:2;grid-row:1;font-size:9px;padding:0 0 3px}.ac-timeline-mark{width:26px;height:26px;grid-column:1;grid-row:1/3;border-radius:8px}.ac-timeline-mark>.ico{width:12px;height:12px}.ac-event-copy{grid-column:2;grid-row:2;padding-top:0;padding-bottom:18px;margin-bottom:17px;gap:10px}.ac-event:not(:last-child):before{left:12px;top:26px}.ac-event-title{gap:5px}.ac-event-title b{font-size:13px;line-height:1.5}.ac-event-title>span{font-size:9px}.ac-event-summary{font-size:12px;line-height:1.9}.ac-event-stamp{gap:9px}.ac-screen .pill{font-size:9px}
 .ac-list-footer{padding:13px 15px;font-size:9px;gap:8px}.ac-list-footer>.btn{min-height:38px;font-size:11px}.ac-list-end{font-size:8px;max-width:115px;text-align:right;line-height:1.5}.ac-side-note{padding:18px}.ac-side-note>p{font-size:11px}.ac-attention-item{min-height:56px}.ac-attention-item b{font-size:12px}
 .ac-desk{grid-template-columns:minmax(0,1fr);min-height:0}.ac-desk[data-mobile-detail=false] .ac-inspector{display:none}.ac-desk[data-mobile-detail=true] .ac-desk-list{display:none}.ac-desk-list{border:0}.ac-desk-list-head{min-height:75px;padding:17px}.ac-desk-item{padding:19px 15px;gap:10px}.ac-desk-item>.ac-type-icon{width:29px;height:29px}.ac-desk-item-top>b{font-size:13px}.ac-desk-item-top>time{font-size:9px}.ac-desk-type{font-size:10px}.ac-desk-result{font-size:12px;line-height:1.85;-webkit-line-clamp:3}.ac-desk-item-copy{gap:7px}.ac-desk-item .ac-event-stamp{margin-top:5px}.ac-desk-items{max-height:none}
 .ac-inspector{position:static;scroll-margin-top:120px}.ac-inspector-bar{padding:12px 15px;min-height:64px}.ac-inspector-bar .ac-back{display:inline-flex;min-height:39px;font-size:11px;padding-inline:10px}.ac-inspector-bar>span{font-size:9px}.ac-inspector-bar>span>.ico{display:none}
 .ac-detail-record{padding:20px 17px}.ac-detail-heading{gap:10px}.ac-detail-heading h2{font-size:21px}.ac-detail-heading>.pill{font-size:8px;max-width:115px;white-space:normal}.ac-detail-heading>div{flex-basis:145px}.ac-detail-heading p{font-size:10px}
 .ac-detail-facts{gap:12px;grid-template-columns:1.3fr 1fr}.ac-detail-facts dt{font-size:9px}.ac-detail-facts dd{font-size:11px;line-height:1.8}.ac-report-section{padding:24px 0}.ac-report-section h3{font-size:12px}.ac-report-text p{font-size:16px;line-height:1.9}.ac-report-text .ac-pending-report{font-size:14px}.ac-proposals>.ac-section-title{padding:15px}.ac-proposal{margin:0 15px;gap:8px}.ac-proposal b{font-size:12px}.ac-proposal p{font-size:12px;line-height:1.8}.ac-proposal>.pill{margin-left:21px}.ac-review-callout{padding-inline:15px}.ac-review-callout p{font-size:10px}.ac-review-callout .btn{font-size:12px;min-height:44px}.ac-text-button{font-size:11px;min-height:34px}.ac-detail-footer{gap:8px}.ac-detail-footer>span{font-size:9px}.ac-task-error p{font-size:12px;line-height:1.9}
 /* Semantic table remains in the DOM; narrow view reflows every field, none hidden. */
 .ac-ledger-wrap{overflow:visible}.ac-ledger-table{display:block;width:100%;table-layout:auto}.ac-ledger-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.ac-ledger-table tbody{display:block;width:100%}
 .ac-ledger-table .ac-ledger-row{display:grid;grid-template-columns:1fr auto;gap:0;padding:17px 16px;border-bottom:1px solid #e7ecf3;position:relative;background:#fff;width:100%}
 .ac-ledger-table .ac-ledger-row>td{display:block;padding:0;border:0!important;background:transparent!important;width:auto;min-width:0;box-shadow:none}
 .ac-ledger-table .ac-ledger-row>td:before{display:none!important}.ac-ledger-table .ac-ledger-row .ac-when{grid-column:1;grid-row:1;font-size:9px}.ac-when time{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.ac-when b,.ac-when span{font-size:9px}
 .ac-ledger-table .ac-ledger-row .ac-what{grid-column:1/-1;grid-row:2;padding-top:12px;padding-right:25px}.ac-ledger-trigger b{font-size:13px}.ac-ledger-trigger small{font-size:11px}.ac-ledger-trigger{gap:10px;min-height:40px}
 .ac-ledger-table .ac-ledger-row .ac-result{grid-column:1/-1;grid-row:3;padding-top:13px;font-size:12px;line-height:1.9;color:#7b8695}
 .ac-ledger-table .ac-ledger-row .ac-status{grid-column:1;grid-row:4;padding-top:13px}.ac-ledger-table .ac-ledger-row .ac-number{grid-column:2;grid-row:4;padding-top:14px;font-size:11px;align-self:center}.ac-ledger-table .ac-number:after{content:' credits';font-size:10px;color:#959eab}.ac-ledger-table .ac-ledger-row .ac-expand-cell{grid-column:2;grid-row:1;align-self:start;text-align:right}.ac-expand-cell button{height:30px;width:30px;position:absolute;top:44px;right:10px}.ac-ledger-row.expanded{background:#fcf8ed!important;box-shadow:inset 2px 0 #c3a055}
 .ac-ledger-table .ac-expanded-row{display:block;width:100%;background:#f8fafc;border-bottom:1px solid #e6ecf3}.ac-ledger-table .ac-expanded-row>td{display:block;width:100%}.ac-inline-detail{margin:12px;border-radius:8px}.ac-detail-compact{display:block;padding:18px 14px}.ac-detail-compact .ac-detail-facts{grid-template-columns:1fr 1fr}.ac-detail-compact .ac-proposals{margin:0}.ac-detail-compact .ac-report-text p{font-size:15px}.ac-detail-compact .ac-detail-heading h2{font-size:19px}.ac-detail-compact .ac-detail-footer{margin-top:22px}
 .ac-footnote{font-size:9px;display:block;line-height:1.9;padding-inline:2px}.ac-footnote>.ico{vertical-align:-2px;margin-right:5px}.ac-empty{min-height:320px;padding:35px 20px}.ac-empty h2{font-size:19px}.ac-empty p{font-size:12px}.ac-load-state{min-height:320px}
}
@media(prefers-reduced-motion:reduce){.ac-page *{transition:none!important;scroll-behavior:auto!important}}
/* Mobile filters keep full labels; counts remain in the summary above the log. */
@media(max-width:700px){
 .ac-toolbar{grid-template-columns:minmax(0,1fr)}
 .ac-kind-tabs{width:100%;gap:10px;justify-content:space-between}
 .ac-kind-tabs button{font-size:12px;gap:0}
 .ac-kind-tabs button>span{display:none}
 .ac-search{width:100%;max-width:none}
}

/* =====================================================================
   LEADS — 01 Directory / 02 Desk / 03 Stage board.
   Scoped components. White workspace; charcoal navigation is unchanged.
   This file is included at the end of the complete replacement app.css.
   ===================================================================== */
.ld-screen{--ld-ink:#24282e;--ld-muted:#717985;--ld-line:#e7e9ed;--ld-bg:#f8f9fb;--ld-gold:#a17a2b;--ld-gold-soft:#fbf6e9;display:grid;gap:20px;min-width:0;color:var(--ld-ink);font-family:var(--font-body)}
.ld-screen *,.ld-dialog *{box-sizing:border-box;min-width:0}
.ld-screen button,.ld-screen select,.ld-screen input,.ld-dialog button{font-family:var(--font-body)}
.ld-screen .ico,.ld-dialog .ico{width:16px;height:16px;flex:none;stroke:currentColor;stroke-width:1.6;fill:none;stroke-linecap:round;stroke-linejoin:round}
.ld-screen .panel{background:#fff;border:1px solid var(--ld-line);border-radius:13px;box-shadow:0 2px 5px #172c4a02}
.ld-screen .page-head{margin:0;padding:0;border:0;align-items:center}
.ld-page-head h1{font-size:28px;line-height:1.2;font-weight:800;letter-spacing:-1px}
.ld-page-head p{font-size:13px;color:var(--ld-muted);line-height:1.7;margin-top:7px;max-width:74ch}
.ld-state-control{display:flex;align-items:center;gap:11px;flex:none;font-size:11px;color:var(--ld-muted)}
.ld-state-control>div{display:flex;padding:3px;background:#eef0f3;border:1px solid #e5e7eb;border-radius:9px;gap:3px}
.ld-state-control button{background:none;border:0;border-radius:6px;min-height:33px;padding:0 15px;font-size:12px;cursor:pointer;color:#626b76;font-weight:650}
.ld-state-control button.on{background:#fff;color:#272c34;box-shadow:0 1px 4px #1f2c3910}
.ld-preview-bar{padding:15px 19px;display:grid;grid-template-columns:minmax(190px,1fr) auto;gap:10px 20px;border:1px solid #e7e1d2;background:#fffdfa;border-radius:10px}
.ld-preview-label{display:grid;gap:4px;align-content:center}
.ld-preview-label>b{font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:#8f723a;font-weight:750}
.ld-preview-label>span{font-size:11px;color:#7e828a}
.ld-layouts{display:flex;gap:7px;align-items:center}
.ld-layout-choice{display:flex;align-items:center;gap:8px;min-height:38px;background:transparent;border:1px solid transparent;border-radius:7px;padding:8px 12px;color:#707783;font-size:12px;font-weight:650;cursor:pointer;white-space:nowrap}
.ld-layout-choice>span{font-size:10px;opacity:.65;font-variant-numeric:tabular-nums}
.ld-layout-choice:hover{background:#f7f3e9}
.ld-layout-choice.selected{background:#f3e8ca;border-color:#e8d7af;color:#78551a}
.ld-layout-note{grid-column:1/-1;font-size:11px;color:#81858e;line-height:1.6;margin:0}
.ld-summary{display:flex;align-items:center;flex-wrap:wrap;gap:14px 24px;font-size:12px;color:var(--ld-muted);padding:1px 2px}
.ld-summary>span{display:inline-flex;align-items:center;gap:6px}
.ld-summary b{font-size:15px;color:#313842;font-weight:750;font-variant-numeric:tabular-nums}
.ld-summary i{width:5px;height:5px;background:#9c8663;border-radius:50%;display:inline-block;margin-right:1px}
.ld-summary i.good{background:#529276}.ld-summary i.warn{background:#c29b58}.ld-summary i.info{background:#7895b7}
.ld-summary .ld-summary-note{margin-left:auto;font-size:10px;gap:6px}
.ld-summary-note>.ico{width:13px;height:13px}
.ld-filters{padding:0!important;overflow:hidden}
.ld-toolbar{display:flex;align-items:center;gap:10px;padding:14px 17px}
.ld-search{display:flex;align-items:center;gap:9px;flex:1;min-height:40px;background:#fafbfc;border:1px solid #e4e7ec;border-radius:8px;padding:0 12px;color:#9ba3b1}
.ld-search:focus-within{border-color:#bf9c54;box-shadow:0 0 0 2px #b38c3212;background:#fff}
.ld-search input{width:100%;min-width:0;padding:10px 0;border:0;background:transparent;outline:none!important;box-shadow:none!important;color:#313842;font-size:12px;font-weight:450}
.ld-search input::placeholder{color:#969ca6}
.ld-select{display:flex;gap:6px;align-items:center;border:1px solid #e5e7ed;border-radius:8px;background:#fff;min-height:40px;padding:0 8px;color:#7d8693;max-width:250px}
.ld-select>.ico{width:14px;height:14px}
.ld-select select{min-width:0;width:100%;color:#57606c;outline:none;background:transparent;border:0;padding:9px 5px;font-size:11px;cursor:pointer;max-width:100%;min-height:38px;font-weight:600}
.ld-sort{max-width:160px;flex:none}
.ld-reset{border:0;background:none;cursor:pointer;font-size:11px;padding:9px 2px;color:#8b723e;min-height:40px}
.ld-status-tabs{display:flex;flex-wrap:wrap;gap:0 23px;border-top:1px solid #eff1f4;padding:0 17px;background:#fff}
.ld-status-tabs button{display:inline-flex;gap:6px;align-items:center;min-height:45px;font-size:11px;font-weight:600;white-space:nowrap;background:none;border:0;border-bottom:2px solid transparent;margin-bottom:-1px;padding:10px 0;color:#79818d;cursor:pointer}
.ld-status-tabs button:hover{color:#333d49}
.ld-status-tabs button>span{font-size:9px;background:#f2f4f6;border-radius:5px;min-width:17px;padding:2px 5px;text-align:center;color:#838c98;font-variant-numeric:tabular-nums}
.ld-status-tabs button.on{color:#8b641c;border-bottom-color:#ba934c}
.ld-status-tabs button.on>span{background:#f7eed9;color:#9f772c}
.ld-result-line{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:#878f9b;margin-top:-4px;margin-bottom:-8px}
.ld-result-line>span:last-child{display:flex;align-items:center;gap:6px;font-size:10px}
.ld-result-line .ico{width:12px;height:12px}
.ld-workspace{min-width:0;max-width:100%}
.ld-screen .pill,.ld-dialog .pill{font-family:var(--font-body);font-size:10px;font-weight:650;line-height:1.5;padding:4px 7px;border-radius:5px;letter-spacing:0;text-transform:none;white-space:nowrap;box-shadow:none;border:0}
.ld-screen .pill:before,.ld-dialog .pill:before{width:4px;height:4px;box-shadow:none}
.ld-screen .pill.good,.ld-dialog .pill.good{background:#eef6f1;color:#46775d}
.ld-screen .pill.info,.ld-dialog .pill.info{background:#eff3f9;color:#52749d}
.ld-screen .pill.gold,.ld-screen .pill.warn,.ld-dialog .pill.gold,.ld-dialog .pill.warn{background:#faf2df;color:#9b732b}
.ld-screen .pill.bad,.ld-dialog .pill.bad{background:#fbefed;color:#b56a61}
.ld-screen :focus-visible,.ld-dialog :focus-visible{outline:2px solid #b68e3c;outline-offset:3px}
.ld-directory-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:19px 20px;border-bottom:1px solid #eef0f3}
.ld-directory-head h2{font-size:14px;letter-spacing:-.2px;font-weight:750}
.ld-directory-head>span{display:flex;align-items:center;gap:6px;color:#939aa5;font-size:10px}
.ld-directory-head .ico{width:13px;height:13px}
/* Specific selectors override older generic .responsive-table / .leads-table rules. */
.ld-table-wrap{width:100%;min-width:0;border-radius:0;overflow:visible}
.ld-screen table.ld-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:12px;background:#fff}
.ld-screen table.ld-table thead th{background:#fafbfc;text-transform:none;letter-spacing:0;font-size:10px;font-weight:650;color:#929aa6;white-space:normal;padding:13px 14px;border-bottom:1px solid #edf0f3;text-align:left}
.ld-screen table.ld-table thead th:first-child{width:29%;padding-left:20px}
.ld-screen table.ld-table thead th:nth-child(2){width:8%}
.ld-screen table.ld-table thead th:nth-child(3){width:39%}
.ld-screen table.ld-table thead th:nth-child(4){width:13%}
.ld-screen table.ld-table thead th:nth-child(5){width:7%}
.ld-screen table.ld-table thead th:nth-child(6){width:4%;padding:0}
.ld-screen table.ld-table tbody td{border-bottom:1px solid #edf0f3;padding:19px 14px;vertical-align:top;background:#fff;white-space:normal;min-width:0;overflow-wrap:anywhere;line-height:1.65}
.ld-screen table.ld-table tbody tr:last-child>td{border-bottom:0}
.ld-screen table.ld-table tbody td:first-child{padding-left:20px}
.ld-table-row{cursor:pointer}
.ld-screen table.ld-table .ld-table-row:hover td{background:#fffdf7}
.ld-company{display:flex;align-items:flex-start;gap:10px}
.ld-company>div{flex:1}
.ld-company button{border:0;background:none;padding:0;text-align:left;font-size:12px;font-weight:750;color:#333b47;line-height:1.55;cursor:pointer}
.ld-company button:hover{color:#947024}
.ld-company span:not(.ld-avatar){display:block;font-size:10px;color:#8a93a0;margin-top:4px;line-height:1.6}
.ld-company small{display:block;font-size:10px;color:#8c95a0;margin-top:2px}
.ld-avatar{display:inline-flex;align-items:center;justify-content:center;width:33px;height:33px;border-radius:9px;flex:none;background:#edf1f5;border:1px solid #e7ebef;color:#718397;font-size:10px;letter-spacing:.02em;font-weight:750}
.ld-avatar.tone-1{color:#82745e;background:#f4f0e9;border-color:#eee8dd}.ld-avatar.tone-2{color:#688577;background:#edf3ef;border-color:#e3ece6}.ld-avatar.tone-3{color:#827d91;background:#f1f0f6;border-color:#e9e7f0}
.ld-avatar.large{width:53px;height:53px;font-size:15px;border-radius:13px}
.ld-website{display:inline-flex;align-items:center;gap:5px;font-size:10px;color:#9a814d;text-decoration:none;max-width:100%;overflow-wrap:anywhere;line-height:1.65}
.ld-company-cell>.ld-website{margin-top:8px;margin-left:43px;max-width:calc(100% - 43px)}
.ld-website:hover{text-decoration:underline}
.ld-website .ico{width:10px;height:10px;opacity:.6}
.ld-score{display:inline-grid;gap:7px;min-width:32px;margin-top:2px}
.ld-score>b{font-size:14px;line-height:1.2;font-weight:750;color:#727b89;font-variant-numeric:tabular-nums}
.ld-score.strong>b{color:#40785e}
.ld-score>i{height:3px;border-radius:4px;background:#edf0f3;width:32px;display:block;overflow:hidden}
.ld-score>i>em{height:100%;display:block;background:#b3a286;border-radius:4px}
.ld-score.strong>i>em{background:#7eaa93}
.ld-score.unscored>b{color:#a4abb5}
.ld-screen table.ld-table .ld-research-cell p{font-size:11px;line-height:1.8;color:#647181;margin:0;font-weight:450}
.ld-firstline{font-size:10px;color:#929ca9;line-height:1.85;margin-top:8px}
.ld-firstline>span{display:inline-block;font-size:8px;font-weight:750;text-transform:uppercase;letter-spacing:.05em;margin-right:5px;color:#a48b53}
.ld-firstline.muted{color:#a2a9b3;font-style:normal}
.ld-screen table.ld-table .ld-found-cell{font-size:10px;white-space:nowrap;color:#929aa5}
.ld-screen table.ld-table .ld-open-cell{padding:17px 6px 12px 0;text-align:center}
.ld-icon-button{width:31px;height:31px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #e5e8ed;border-radius:7px;background:#fff;color:#8b95a2;cursor:pointer;flex:none;padding:0}
.ld-icon-button>.ico{width:13px;height:13px}
.ld-icon-button:hover:not(:disabled){border-color:#d0bd92;color:#87601e;background:#fcf8ee}
.ld-screen button:disabled,.ld-dialog button:disabled{opacity:.38;cursor:not-allowed}
.ld-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 19px;border-top:1px solid #eceff3;font-size:10px;color:#8c95a1;min-height:60px}
.ld-pagination>span b{font-weight:600;color:#586371}
.ld-pagination>div{display:flex;align-items:center;gap:9px}
.ld-pagination select{color:#788391;background:#fff;border:0;font-size:10px;padding:6px 1px;cursor:pointer;max-width:100%}
.ld-pagination button{display:grid;place-items:center;width:30px;height:30px;background:#fff;border:1px solid #e5e8ee;border-radius:6px;cursor:pointer;color:#687687;padding:0}
.ld-pagination button .ico{width:12px;height:12px}
.ld-pagination button:hover:not(:disabled){border-color:#c2ac7c;color:#997331}
/* 02 — List + profile. */
.ld-desk{display:grid;grid-template-columns:minmax(270px,.85fr) minmax(0,1.7fr);overflow:hidden;align-items:start;min-height:740px}
.ld-desk-list{min-width:0;border-right:1px solid #e5e9ef;align-self:stretch;display:flex;flex-direction:column}
.ld-desk-list>header{padding:19px 20px;border-bottom:1px solid #e9ecf1;background:#fcfcfd;min-height:81px}
.ld-desk-list>header h2{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:14px;letter-spacing:-.2px}
.ld-desk-list>header h2 span{border:1px solid #e5e8ed;background:white;border-radius:5px;font-size:10px;padding:3px 6px;color:#9099a6;font-weight:600}
.ld-desk-list>header small{font-size:10px;color:#9aa2ad;display:block;margin-top:5px}
.ld-desk-items{display:grid;max-height:750px;overflow:auto;scrollbar-width:thin;scrollbar-color:#d5dce5 transparent;overscroll-behavior:contain}
.ld-desk-item{display:grid;grid-template-columns:31px minmax(0,1fr) 22px;gap:10px;padding:20px 16px;background:#fff;border:0;border-bottom:1px solid #edf0f4;text-align:left;cursor:pointer;min-width:0;width:100%}
.ld-desk-item:hover{background:#fafbfc}
.ld-desk-item.selected{background:#fcf8ec;box-shadow:inset 3px 0 #bd9b53}
.ld-desk-item>.ld-avatar{width:30px;height:30px;font-size:9px;border-radius:8px}
.ld-desk-item-copy{display:grid;gap:5px}
.ld-desk-item-copy>b{font-size:12px;color:#404b5b;font-weight:700;line-height:1.55;overflow-wrap:anywhere}
.ld-desk-item-copy>small{font-size:10px;line-height:1.65;color:#929ba8}
.ld-desk-item-meta{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:5px;flex-wrap:wrap}
.ld-desk-item-meta>span:last-child:not(.pill){font-size:9px;color:#a1a8b3}
.ld-desk-score{color:#7b998a;font-size:12px;line-height:1.6;font-weight:750;text-align:right}
.ld-desk-list>.ld-pagination{padding:12px 13px;margin-top:auto;font-size:9px;gap:8px;flex-wrap:wrap}
.ld-desk-list>.ld-pagination select{font-size:9px}
.ld-desk-list>.ld-pagination>div{gap:6px}.ld-desk-list>.ld-pagination button{width:27px;height:27px}
.ld-inspector{min-width:0;background:#fff;position:sticky;top:80px}
.ld-inspector-nav{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 24px;border-bottom:1px solid #eef0f4;min-height:66px;font-size:10px;color:#9ba3af}
.ld-inspector-nav>div{display:flex;gap:6px}.ld-inspector-nav .ld-icon-button{width:28px;height:28px}
.ld-back{display:none}
.ld-profile{padding:29px 30px;color:#313a48;font-family:var(--font-body)}
.ld-profile-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.ld-profile-identity{display:flex;gap:15px;align-items:center;flex:1;min-width:160px}
.ld-profile-identity>div{min-width:0}
.ld-eyebrow{font-size:9px;font-weight:750;text-transform:uppercase;letter-spacing:.11em;color:#a18a56}
.ld-profile h2{font:750 23px/1.35 var(--font-display);letter-spacing:-.7px;color:#2b3543;margin:5px 0 7px;overflow-wrap:anywhere}
.ld-profile-heading p{font-size:11px;display:flex;align-items:center;gap:4px;color:#9aa2ad;margin:0}
.ld-profile-heading p>.ico{width:12px;height:12px}
.ld-profile-heading>.pill{margin-top:4px}
.ld-profile-fit{margin:27px 0 24px;padding:18px 0;border-block:1px solid #edf0f3;display:grid;grid-template-columns:120px 1fr;align-items:center;gap:20px}
.ld-score.large{display:flex;gap:6px;align-items:baseline;margin:0}
.ld-score.large>b{font-size:33px;font-weight:700;line-height:1;letter-spacing:-1px;color:#4a7f63}
.ld-score.large>span{font-size:11px;color:#9aa3af}.ld-score.large small{display:block;font-size:9px;margin-top:5px;letter-spacing:.02em}
.ld-profile-fit>div:last-child>b{font-size:12px;font-weight:700;color:#64715f}.ld-profile-fit p{font-size:11px;line-height:1.75;margin:5px 0 0;color:#99a1ac;max-width:45ch}
.ld-profile-facts{display:grid;grid-template-columns:1fr 1fr;gap:24px 25px;margin:0 0 28px}
.ld-profile-facts>div{min-width:0}.ld-profile-facts dt{font-size:10px;color:#9ca5b1;margin-bottom:7px}.ld-profile-facts dd{font-size:12px;font-weight:600;line-height:1.7;color:#596779;margin:0;overflow-wrap:anywhere}.ld-profile-facts dd small{display:block;font-size:10px;font-weight:450;color:#98a0ac;margin-top:2px}
.ld-profile-facts .ld-website{font-size:11px;align-items:flex-start;color:#9c814a;font-weight:500}
.ld-profile-reason{padding-top:22px;border-top:1px solid #edf0f3}
.ld-profile h3{font-size:12px;line-height:1.5;font-weight:750;letter-spacing:-.1px;display:flex;gap:7px;align-items:center;color:#596575;margin:0}
.ld-profile h3 .ico{width:14px;height:14px;color:#96a2b2}
.ld-profile-reason>p{font-size:14px;line-height:1.9;margin:13px 0 25px;color:#69778a}
.ld-opening{padding:18px 20px;border:1px solid #eee3c8;border-radius:10px;background:#fdfaf3;margin:0 0 21px}
.ld-opening-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.ld-opening h3{font-size:11px;color:#8e773f}.ld-opening h3 .ico{color:#b2975d}
.ld-opening-head>span{font-size:8px;padding:3px 5px;color:#a99368;background:#f4eddd;border-radius:4px;white-space:nowrap;line-height:1.6}
.ld-opening>p{font-size:14px;line-height:1.95;margin:14px 0;color:#7c7564}
.ld-text-button{display:inline-flex;align-items:center;gap:7px;border:0;background:none;padding:7px 0 0;font-size:10px;font-weight:700;color:#a18548;cursor:pointer;min-height:30px}
.ld-text-button .ico{width:12px;height:12px}
.ld-opening.restricted{border-color:#f0dedb;background:#fff9f8}.ld-opening.restricted h3,.ld-opening.restricted p{color:#a1716b}
.ld-profile-note{display:flex;align-items:flex-start;gap:7px;font-size:10px;color:#a3abb6;line-height:1.8}
.ld-profile-note .ico{width:12px;height:12px;margin-top:2px}
.ld-muted{font-size:11px;color:#a0a7b1}
/* 03 — Stage groups wrap on the page. No sideways-scrolling board. */
.ld-stage-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:start}
.ld-lane{background:#f2f4f7;border:1px solid #e6eaf0;border-radius:12px;padding:13px;min-width:0}
.ld-lane>header{padding:3px 2px 15px}
.ld-lane>header h2{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:0;font-size:12px}
.ld-lane>header h2>.pill{background:transparent!important;padding-left:0;font-size:12px;gap:7px}
.ld-lane>header h2>span:last-child{font-size:10px;color:#9ba5b1;border:1px solid #dfe5ec;background:#fff;padding:2px 7px;border-radius:5px;font-weight:650;min-width:25px;text-align:center}
.ld-lane>header small{display:block;font-size:9px;line-height:1.7;color:#9aa4b0;margin-top:6px}
.ld-lane-cards{display:grid;gap:11px}
.ld-lead-card{background:#fff;border:1px solid #e3e8ef;border-radius:9px;padding:15px;box-shadow:0 2px 2px #26395102}
.ld-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px}
.ld-card-top .ld-score{display:flex;align-items:center;gap:4px}.ld-card-top .ld-score>b{font-size:12px}.ld-card-top .ld-score>i{display:none}.ld-card-top .ld-score:after{content:'/100';font-size:9px;color:#b0b8c3}
.ld-card-title{background:none;border:0;padding:0;color:#465366;font-size:13px;font-weight:750;text-align:left;line-height:1.55;cursor:pointer;letter-spacing:-.1px}
.ld-card-title:hover{color:#9a742f}
.ld-card-person{font-size:10px;color:#929dad;margin:5px 0;line-height:1.7}
.ld-card-city{display:flex;align-items:center;gap:3px;font-size:9px;color:#a3adbb}.ld-card-city>.ico{width:11px;height:11px}
.ld-card-reason{font-size:11px;line-height:1.9;color:#7f8c9f;margin:15px 0}
.ld-card-firstline{border-top:1px solid #eef1f5;padding-top:12px;font-size:10px;color:#a48a51}
.ld-card-firstline summary{cursor:pointer;padding:0;line-height:1.7;font-weight:650;list-style:revert}
.ld-card-firstline>p{font-size:11px;line-height:1.85;margin:10px 0 0;color:#8b8373}
.ld-lead-card>footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:15px;font-size:9px;color:#a4afbe}
.ld-lead-card>footer button{font-size:9px;font-weight:650;border:0;background:none;display:flex;align-items:center;gap:5px;padding:3px 0;color:#97a2b3;cursor:pointer}
.ld-lead-card>footer button .ico{width:11px;height:11px}
.ld-lane-more{display:flex;align-items:center;justify-content:center;gap:8px;border:0;background:transparent;font-size:10px;color:#8794a7;cursor:pointer;padding:16px 5px 5px;width:100%;line-height:1.7}
.ld-lane-more>.ico{width:12px;height:12px}
.ld-lane-empty{min-height:135px;display:grid;place-content:center;border:1px dashed #dce2eb;border-radius:8px;color:#a8b1bf;font-size:11px;background:#f8f9fb}
.ld-stage-board[data-filtered=true]{grid-template-columns:minmax(0,1fr)}
.ld-stage-board[data-filtered=true] .ld-lane-cards{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}
.ld-stage-board[data-filtered=true] .ld-lane>header{display:flex;align-items:center;justify-content:space-between;gap:15px}
.ld-stage-board[data-filtered=true] .ld-lane>header h2{gap:14px}
.ld-stage-board[data-filtered=true] .ld-lane>header small{margin-top:0}
/* Empty and no-match are distinct from loading and request errors. */
.ld-empty{display:flex;align-items:center;flex-direction:column;justify-content:center;min-height:510px;padding:55px 35px;text-align:center}
.ld-empty h2{font-size:25px;font-weight:750;letter-spacing:-.7px;color:#465363;line-height:1.4;margin:10px 0}
.ld-empty>p{font-size:13px;line-height:1.9;max-width:54ch;color:#98a2b0;margin:0 0 20px}
.ld-empty>.btn{font-size:12px;min-height:42px;border-radius:8px;padding:10px 18px}
.ld-empty .ld-eyebrow{margin-top:27px;font-size:8px}
.ld-empty-art{width:165px;height:75px;border-radius:12px;background:#fff;border:1px solid #e7ebf0;box-shadow:0 6px 20px #18345507;position:relative;text-align:left;padding:18px 14px 14px 57px}
.ld-empty-art:before,.ld-empty-art:after{content:'';position:absolute;inset:6px -7px -6px 7px;border:1px solid #edf0f4;border-radius:12px;z-index:-1;background:#fff;transform:rotate(5deg)}
.ld-empty-art:after{transform:rotate(-5deg);inset:7px 6px -7px -6px}
.ld-empty-art>span{display:grid;place-items:center;position:absolute;left:14px;top:19px;width:30px;height:30px;background:#f4f2eb;border-radius:8px;color:#c0ab7d}
.ld-empty-art>span>.ico{width:16px;height:16px}
.ld-empty-art>i{display:block;height:4px;background:#edf0f4;border-radius:2px;margin:4px 0 6px;width:92%}.ld-empty-art>i:nth-of-type(2){width:70%}.ld-empty-art>i:nth-of-type(3){width:52%}
.ld-empty-art>b{position:absolute;display:grid;place-items:center;bottom:-9px;right:10px;background:#f6f0df;color:#bba064;width:29px;height:29px;border:3px solid white;border-radius:50%}
.ld-empty-art>b>.ico{width:11px;height:11px}
.ld-empty-steps{display:flex;justify-content:center;gap:25px;flex-wrap:wrap;margin-top:35px;padding-top:25px;border-top:1px solid #edf0f4;width:min(640px,100%);font-size:10px;color:#a6aeb9;line-height:1.7}
.ld-empty-steps b{color:#c6b181;font-size:8px;margin-right:5px;font-weight:700}
.ld-empty.no-matches{min-height:400px}.ld-empty.no-matches .ld-empty-steps{display:none}
.ld-footnote{font-size:10px;color:#a3abb6;line-height:1.9;margin:0}
.ld-load{min-height:350px;display:grid;place-items:center}.ld-load .empty{padding:40px}.ld-load .empty p{margin:12px 0 20px}
/* Native dialog provides focus trapping, inert background, and Escape close. */
.ld-dialog{position:fixed;inset:0 0 0 auto;margin:0;max-width:100%;width:590px;height:100%;max-height:100dvh;background:#fff;color:#354053;border:0;border-left:1px solid #e5e9ee;padding:0;box-shadow:-14px 0 55px #13274218;font-family:var(--font-body);overflow:auto;overscroll-behavior:contain}
.ld-dialog::backdrop{background:#1b283854;backdrop-filter:blur(2px)}
.ld-dialog-top{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:1;background:#fff;border-bottom:1px solid #e8edf3;padding:15px 24px;font-size:11px;color:#9ba5b3}
.ld-dialog-top>span{display:flex;align-items:center;gap:8px}.ld-dialog-top .ico{width:14px;height:14px}
.ld-dialog .ld-profile{padding:30px}.ld-dialog .ld-profile h2{font-size:23px}
@media(min-width:1500px){.ld-desk{grid-template-columns:350px minmax(0,1fr)}.ld-profile{padding:34px 44px}.ld-desk-items{max-height:780px}}
@media(max-width:1200px){
 .ld-preview-bar{grid-template-columns:1fr;gap:9px}.ld-preview-label{display:flex;justify-content:space-between;align-items:center;gap:15px}.ld-layouts{justify-content:flex-start}.ld-layout-choice{min-height:36px}.ld-toolbar{gap:7px;padding-inline:13px}.ld-select{max-width:210px}.ld-sort{max-width:135px}.ld-status-tabs{gap:0 17px;padding-inline:13px}.ld-summary{gap:12px 20px}.ld-summary .ld-summary-note{margin-left:0}
 .ld-screen table.ld-table thead th:first-child{width:28%;padding-left:16px}.ld-screen table.ld-table thead th:nth-child(2){width:8%}.ld-screen table.ld-table thead th:nth-child(3){width:38%}.ld-screen table.ld-table thead th:nth-child(4){width:15%}.ld-screen table.ld-table thead th:nth-child(5){width:7%}.ld-screen table.ld-table thead th{padding-inline:9px}.ld-screen table.ld-table tbody td{padding-inline:9px}.ld-screen table.ld-table tbody td:first-child{padding-left:16px}.ld-company{gap:7px}.ld-company>.ld-avatar{width:28px;height:28px;font-size:8px}.ld-company-cell>.ld-website{margin-left:35px;max-width:calc(100% - 35px)}
 .ld-desk{grid-template-columns:280px minmax(0,1fr)}.ld-desk-item{padding:18px 12px;gap:7px;grid-template-columns:27px minmax(0,1fr) 20px}.ld-desk-item>.ld-avatar{width:27px;height:27px;font-size:8px}.ld-profile{padding:25px 23px}.ld-profile h2{font-size:21px}.ld-profile-fit{grid-template-columns:100px 1fr;gap:15px}.ld-profile-heading .ld-avatar.large{width:44px;height:44px}.ld-profile-identity{gap:11px}
 .ld-stage-board{gap:12px}.ld-lane{padding:10px}.ld-lead-card{padding:13px}.ld-lane>header small{font-size:8px}
}
@media(max-width:1000px){.ld-page-head{gap:13px}.ld-toolbar{flex-wrap:wrap}.ld-search{flex-basis:100%}.ld-select{flex:1;max-width:none}.ld-sort{flex:0 1 155px}.ld-reset{padding-inline:8px}.ld-inspector{top:0}.ld-screen .ld-table .ld-company button{font-size:11px}.ld-screen .ld-table .ld-research-cell p{font-size:10px}.ld-screen .ld-table .pill{font-size:9px;padding:3px 5px;white-space:normal}.ld-screen .ld-table .ld-firstline{font-size:9px}.ld-directory-head>span{font-size:9px}}
@media(max-width:800px){.ld-stage-board{grid-template-columns:repeat(2,minmax(0,1fr))}.ld-stage-board[data-filtered=true] .ld-lane-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.ld-profile-facts{gap:17px}.ld-profile-reason>p,.ld-opening>p{font-size:13px}.ld-profile-identity .ld-avatar.large{display:none}.ld-profile-fit{grid-template-columns:88px 1fr}.ld-desk{grid-template-columns:260px minmax(0,1fr)}}
@media(max-width:700px){
 .ld-screen{gap:16px}.ld-page-head{display:flex;align-items:flex-start!important}.ld-page-head h1{font-size:25px}.ld-page-head p{font-size:12px;line-height:1.85;margin-top:8px}.ld-state-control{width:100%;justify-content:space-between;font-size:10px}.ld-state-control button{min-height:35px;padding-inline:18px}
 .ld-preview-bar{padding:13px;gap:10px}.ld-preview-label{align-items:flex-start}.ld-preview-label>b{font-size:8px}.ld-preview-label>span{font-size:9px;max-width:47%;text-align:right;line-height:1.6}.ld-layouts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.ld-layout-choice{display:grid;gap:4px;padding:9px 7px;white-space:normal;font-size:10px;line-height:1.5;min-height:52px;justify-content:start;text-align:left;border-color:#efebe2}.ld-layout-choice>span{font-size:9px}.ld-layout-note{font-size:10px;line-height:1.8}
 .ld-summary{gap:12px 17px;font-size:10px;padding:2px}.ld-summary b{font-size:13px}.ld-summary .ld-summary-note{width:100%;font-size:9px}.ld-summary i{width:4px;height:4px}
 .ld-toolbar{padding:12px;gap:9px}.ld-search{width:100%;flex-basis:100%;min-height:43px}.ld-search input{font-size:16px;padding-block:10px}.ld-select{min-height:42px;flex:1 1 calc(100% - 45px)}.ld-select select{font-size:12px;min-height:40px}.ld-sort{flex:1 1 calc(100% - 45px);max-width:calc(100% - 45px)}.ld-reset{padding:6px 0;flex:none;font-size:10px}.ld-status-tabs{gap:0 14px;padding:2px 12px 4px}.ld-status-tabs button{font-size:10px;min-height:39px;padding:9px 0;gap:4px}.ld-status-tabs button>span{font-size:8px;min-width:15px;padding:1px 4px}
 .ld-result-line{font-size:10px;gap:6px;margin-top:0}.ld-result-line>span:last-child{font-size:8px;gap:4px}.ld-result-line .ico{width:10px;height:10px}
 .ld-directory-head{padding:17px 16px;display:block}.ld-directory-head h2{font-size:14px}.ld-directory-head>span{margin-top:7px;font-size:9px}.ld-directory-head>span>.ico{display:none}
 /* Reflow all table fields to cards. No columns are removed. */
 .ld-screen table.ld-table{display:block;width:100%;table-layout:auto;background:transparent;border:0}
 .ld-screen table.ld-table thead{position:absolute;clip-path:inset(50%);height:1px;width:1px;overflow:hidden;margin:-1px;border:0;white-space:nowrap;padding:0}
 .ld-screen table.ld-table tbody{display:block;width:100%}
 .ld-screen table.ld-table tbody .ld-table-row{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:0;width:100%;padding:19px 16px;border-bottom:1px solid #e8edf3;background:white;position:relative}
 .ld-screen table.ld-table tbody .ld-table-row:last-child{border-bottom:0}
 .ld-screen table.ld-table tbody .ld-table-row>td{display:block;padding:0!important;border:0!important;background:transparent!important;width:auto!important;min-width:0!important;box-shadow:none!important}
 .ld-screen table.ld-table tbody .ld-table-row>td:before{display:none!important}
 .ld-screen table.ld-table .ld-company-cell{grid-column:1;grid-row:1}.ld-company{gap:9px}.ld-company>.ld-avatar{width:30px;height:30px;font-size:9px}.ld-screen table.ld-table .ld-company button{font-size:13px}.ld-screen table.ld-table .ld-company span:not(.ld-avatar){font-size:11px;line-height:1.7;margin-top:5px}.ld-screen table.ld-table .ld-company small{font-size:10px}.ld-company-cell>.ld-website{margin-left:39px;max-width:calc(100% - 39px);font-size:10px}
 .ld-screen table.ld-table .ld-score-cell{grid-column:2;grid-row:1;text-align:right}.ld-score>b{font-size:17px}.ld-screen table.ld-table .ld-score-cell:after{content:'Fit score';font-size:8px;color:#9ca7b6;display:block;margin-top:5px}
 .ld-screen table.ld-table .ld-research-cell{grid-column:1/-1;grid-row:2;padding-top:17px!important}.ld-screen table.ld-table .ld-research-cell p{font-size:12px;line-height:1.9}.ld-screen table.ld-table .ld-firstline{font-size:11px;line-height:1.9;margin-top:10px}.ld-firstline>span{font-size:8px}
 .ld-screen table.ld-table .ld-status-cell{grid-column:1;grid-row:3;padding-top:16px!important}.ld-screen table.ld-table .ld-status-cell .pill{font-size:10px;padding:4px 7px}
 .ld-screen table.ld-table .ld-found-cell{grid-column:1;grid-row:4;font-size:10px;padding-top:10px!important}.ld-screen table.ld-table .ld-found-cell:after{content:' · found'}
 .ld-screen table.ld-table .ld-open-cell{grid-column:2;grid-row:3/5;align-self:center;justify-self:end;padding-top:12px!important}.ld-screen table.ld-table .ld-open-cell .ld-icon-button{width:36px;height:36px}
 .ld-pagination{padding:14px 15px;font-size:9px;gap:10px;flex-wrap:wrap}.ld-pagination>div{gap:7px}.ld-pagination select{font-size:10px}.ld-pagination button{width:32px;height:32px}
 .ld-desk{grid-template-columns:minmax(0,1fr);min-height:0}.ld-desk[data-mobile-detail=false] .ld-inspector{display:none}.ld-desk[data-mobile-detail=true] .ld-desk-list{display:none}.ld-desk-list{border:0}.ld-desk-list>header{padding:17px}.ld-desk-list>header h2{font-size:15px}.ld-desk-list>header small{font-size:11px}
 .ld-desk-items{max-height:none}.ld-desk-item{grid-template-columns:32px minmax(0,1fr) 25px;gap:10px;padding:21px 16px}.ld-desk-item>.ld-avatar{width:32px;height:32px;font-size:10px}.ld-desk-item-copy>b{font-size:13px}.ld-desk-item-copy>small{font-size:11px}.ld-desk-score{font-size:14px}.ld-desk-item-meta{margin-top:8px}.ld-desk-item-meta>span:last-child:not(.pill){font-size:10px}.ld-desk-list>.ld-pagination{padding:15px}
 .ld-inspector{position:static;scroll-margin-top:115px}.ld-inspector-nav{padding:12px 16px;font-size:9px;gap:8px}.ld-inspector-nav .ld-icon-button{width:30px;height:30px}.ld-back{display:flex;align-items:center;gap:4px;background:none;border:1px solid #e6ebf2;color:#7d8a9d;min-height:35px;border-radius:6px;font-size:10px;padding:7px 9px;cursor:pointer}.ld-back>.ico{width:12px;height:12px}
 .ld-profile{padding:23px 18px}.ld-profile-heading{gap:12px}.ld-profile-identity{gap:12px}.ld-profile-identity .ld-avatar.large{display:flex;width:43px;height:43px;font-size:12px}.ld-profile h2{font-size:20px;letter-spacing:-.4px}.ld-profile-heading>.pill{font-size:9px}.ld-eyebrow{font-size:8px}.ld-profile-heading p{font-size:10px}
 .ld-profile-fit{grid-template-columns:83px minmax(0,1fr);gap:15px;margin:23px 0;padding:17px 0}.ld-score.large>b{font-size:30px}.ld-score.large>span{font-size:9px}.ld-score.large small{font-size:8px}.ld-profile-fit>div:last-child>b{font-size:11px}.ld-profile-fit p{font-size:10px;line-height:1.8}
 .ld-profile-facts{gap:20px 16px;margin-bottom:24px}.ld-profile-facts dt{font-size:9px}.ld-profile-facts dd{font-size:11px;line-height:1.8}.ld-profile-facts .ld-website{font-size:10px}.ld-profile-facts dd small{font-size:10px}.ld-profile h3{font-size:12px}.ld-profile-reason>p{font-size:14px;line-height:1.95;margin-bottom:23px}.ld-opening{padding:17px 16px}.ld-opening>p{font-size:14px;line-height:2}.ld-opening h3{font-size:11px}.ld-text-button{font-size:11px;min-height:38px}.ld-profile-note{font-size:10px;line-height:1.9}
 .ld-stage-board{grid-template-columns:minmax(0,1fr);gap:18px}.ld-stage-board[data-filtered=true] .ld-lane-cards{grid-template-columns:minmax(0,1fr)}.ld-stage-board[data-filtered=true] .ld-lane>header{display:block}.ld-stage-board[data-filtered=true] .ld-lane>header small{margin-top:6px}.ld-lane{padding:12px}.ld-lane>header{padding:3px 2px 14px}.ld-lane>header h2>.pill{font-size:13px}.ld-lane>header small{font-size:10px}.ld-lead-card{padding:18px}.ld-card-title{font-size:14px}.ld-card-person{font-size:11px}.ld-card-city{font-size:10px}.ld-card-reason{font-size:12px;line-height:1.95;margin:15px 0}.ld-card-firstline{font-size:11px}.ld-card-firstline>p{font-size:12px}.ld-lead-card>footer{font-size:10px}.ld-lead-card>footer button{font-size:10px;min-height:33px}.ld-lane-more{font-size:11px;min-height:44px;padding:12px 0 0}.ld-card-top .ld-score>b{font-size:14px}
 .ld-empty{padding:42px 22px;min-height:480px}.ld-empty h2{font-size:22px;line-height:1.5;max-width:16ch}.ld-empty>p{font-size:12px;line-height:1.95}.ld-empty .ld-eyebrow{margin-top:25px}.ld-empty-steps{gap:11px;margin-top:27px;padding-top:22px;display:grid;font-size:10px;text-align:left}.ld-empty.no-matches{min-height:380px}.ld-footnote{font-size:9px}.ld-dialog{width:100%;border-left:0}.ld-dialog-top{padding:13px 18px;font-size:11px;padding-top:max(13px,env(safe-area-inset-top,0px))}.ld-dialog-top .ld-icon-button{width:36px;height:36px}.ld-dialog .ld-profile{padding:24px 20px}.ld-dialog .ld-profile h2{font-size:21px}
}
@media(prefers-reduced-motion:reduce){.ld-screen *,.ld-dialog *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* Legibility pass: research and contact data should not recede into faint gray. */
.ld-screen .ld-company span:not(.ld-avatar),.ld-screen .ld-company small,
.ld-screen .ld-firstline,.ld-screen .ld-firstline.muted,
.ld-screen .ld-desk-item-copy>small,.ld-screen .ld-desk-item-meta>span:last-child:not(.pill),
.ld-screen .ld-card-person,.ld-screen .ld-card-city,.ld-screen .ld-card-reason,
.ld-screen .ld-lead-card>footer,.ld-screen .ld-lead-card>footer button,
.ld-screen .ld-lane>header small,.ld-screen .ld-lane-more,.ld-screen .ld-lane-empty,
.ld-screen .ld-profile-facts dt,.ld-dialog .ld-profile-facts dt,
.ld-screen .ld-profile-facts dd small,.ld-dialog .ld-profile-facts dd small,
.ld-screen .ld-profile-fit p,.ld-dialog .ld-profile-fit p,
.ld-screen .ld-profile-heading p,.ld-dialog .ld-profile-heading p,
.ld-screen .ld-profile-note,.ld-dialog .ld-profile-note,
.ld-screen .ld-empty>p,.ld-screen .ld-empty-steps,
.ld-screen .ld-result-line,.ld-screen .ld-pagination,.ld-screen .ld-inspector-nav,
.ld-screen .ld-footnote,.ld-screen .ld-layout-note,.ld-screen .ld-summary-note{color:#6d7888}
.ld-screen table.ld-table tbody .ld-found-cell{color:#6e7a8b}
.ld-screen table.ld-table .ld-research-cell p{font-size:12px;color:#536176}
.ld-screen table.ld-table .ld-firstline{font-size:11px;line-height:1.85}
.ld-screen .ld-company button{font-size:13px}
.ld-screen .ld-website,.ld-dialog .ld-website{color:#8c6d2d}
.ld-screen .ld-card-title{color:#3c4b60;font-size:14px}
.ld-screen .ld-card-reason{font-size:12px;line-height:1.85;color:#637287}
.ld-screen .ld-desk-item-copy>b{font-size:13px}
.ld-profile-reason>p{color:#56677d}.ld-opening>p{color:#716650}
.ld-screen .ld-empty h2{color:#344255}
@media(max-width:1000px) and (min-width:701px){.ld-screen table.ld-table .ld-research-cell p{font-size:11px}.ld-screen table.ld-table .ld-firstline{font-size:10px}.ld-screen .ld-company button{font-size:12px}}
@media(max-width:700px){.ld-screen .ld-company button{font-size:13px}.ld-screen .ld-card-title{font-size:14px}}


/* Seen to Sold / Meta ads. Plain CSS; appended to the complete app.css.
   Charcoal navigation, white workspace, restrained gold. No dark-mode override.
   Prefix ad- keeps these components isolated from the prior portal layouts. */
.ad-screen{display:grid;gap:20px;min-width:0;color:var(--fg);font-family:var(--font-body)}
.ad-screen *, .ad-home *, .ad-settings *{min-width:0}
.ad-screen button,.ad-settings button,.ad-home button{font-family:inherit}
.ad-screen .eyebrow{letter-spacing:.11em;font-size:10px;font-weight:750;color:#8a6b27}
.ad-page-head{margin-bottom:0!important;align-items:center!important}
.ad-page-head h1{font-size:30px;line-height:1.3;margin-top:5px!important}
.ad-page-head p{color:#69717e;font-size:13px!important;margin-bottom:0}
.ad-head-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.ad-preview-select{display:flex;align-items:center;gap:7px;font-size:11px;color:#69717e}
.ad-preview-select select{border:1px solid #e2e5e9;background:#fff;border-radius:7px;padding:8px 10px;font:600 11px var(--font-body);max-width:180px}
.ad-head-actions .btn{font-size:12px;min-height:37px}
.ad-connection{display:flex;align-items:center;gap:14px;padding:17px 20px;border:1px solid #e3e6ea;background:#fff;border-radius:12px}
.ad-meta-mark{width:43px;height:43px;display:grid;place-items:center;background:#f4f1e8;color:#94701f;border-radius:10px;flex:none}
.ad-meta-mark .ico{width:21px;height:21px}
.ad-connection-main{flex:1}
.ad-connection-main>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ad-connection-main strong{font-size:13px;font-weight:750}
.ad-connection-main p{display:flex;flex-wrap:wrap;gap:3px 14px;margin:5px 0 0;font-size:10px;line-height:1.7;color:#6a717e;overflow-wrap:anywhere}
.ad-sync{display:grid;gap:4px;text-align:right;font-size:10px;color:#707782;flex-shrink:0}
.ad-sync>span{display:flex;align-items:center;gap:6px;justify-content:flex-end}
.ad-sync .ico{width:13px;height:13px}
.ad-sync .text-link{justify-content:flex-end;font-size:10px}
.ad-range-form{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:0;margin:0}
.ad-range-select{display:flex;align-items:center;gap:8px;background:white;border:1px solid #dce0e6;border-radius:8px;padding:0 12px;min-height:40px}
.ad-range-select .ico{width:16px;color:#6c7280}
.ad-range-select select{border:0;background:transparent;font:650 12px var(--font-body);padding:9px 25px 9px 0;min-width:120px;color:#343b47}
.ad-custom-range{display:flex;gap:10px;align-items:end;flex-wrap:wrap}
.ad-custom-range label{display:grid;gap:4px;font-size:10px;font-weight:700}
.ad-custom-range input{font-size:12px;min-height:36px;padding:6px 9px;max-width:160px}
.ad-custom-range .btn{min-height:36px}
.ad-compare{display:flex;align-items:center;gap:9px;margin-left:auto;font-size:11px;color:#525a67;cursor:pointer}
.ad-compare input,.ad-agency-filter input{appearance:auto;width:16px;height:16px;accent-color:#a07b27;cursor:pointer;flex:none}
.ad-range-caption{display:flex;align-items:center;flex-wrap:wrap;gap:8px 17px;color:#69717e;font-size:10px;margin-top:-10px}
.ad-range-caption>span:last-child{margin-left:auto;display:inline-flex;align-items:center;gap:5px}
.ad-definition{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;width:22px;height:22px;min-width:22px;border:0;background:none;color:#707b8a;border-radius:5px;padding:3px;cursor:help}
.ad-definition:hover,.ad-definition:focus-visible{background:#f3ecdb;color:#876620}
.ad-definition .ico{width:13px;height:13px;stroke-width:1.7}
.ad-tabs{display:flex;align-items:stretch;gap:22px;border-bottom:1px solid #dce1e7;overflow-x:auto;max-width:100%;scrollbar-width:thin;padding:0;min-height:43px}
.ad-tabs>a{display:flex;align-items:center;gap:7px;text-decoration:none;white-space:nowrap;padding:12px 0 13px;color:#6b7380;font-size:12px;font-weight:700;border-bottom:2px solid transparent;margin-bottom:-1px;flex:none}
.ad-tabs>a:hover{color:#262d38}
.ad-tabs>a[aria-current="page"]{color:#886722;border-bottom-color:#b48e3d}
.ad-tabs>a>span{font-size:9px;background:#f4e9cc;border-radius:4px;min-width:18px;text-align:center;padding:0 4px;color:#7a5a19}
.ad-tab-content{display:grid;gap:20px;min-width:0}
.ad-panel{background:#fff;border:1px solid #e2e6eb;border-radius:12px;min-width:0;overflow:clip}
.ad-section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:21px 22px 17px;flex-wrap:wrap}
.ad-section-head h2{font-size:15px;font-weight:750;letter-spacing:-.02em;color:#2b3340;line-height:1.5;margin:0}
.ad-section-head p{font-size:11px;line-height:1.7;color:#747b87;margin:3px 0 0}
.ad-source-tag{display:inline-flex;align-items:center;gap:5px;color:#727986;font-size:10px;white-space:nowrap;line-height:1.5}
.ad-source-tag .ico{width:13px;height:13px}
.ad-count{font-size:10px;padding:5px 8px;border:1px solid #e8e0d0;background:#fbf8f0;border-radius:5px;color:#86651e;font-weight:700}
.ad-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.ad-metric{padding:17px 17px 15px;background:#fff;border:1px solid #e3e7ec;border-radius:10px;display:flex;flex-direction:column;align-items:flex-start;min-width:0;position:relative}
.ad-kpis>.ad-metric:nth-child(-n+3){grid-column:span 2;padding:20px}
.ad-metric-label{display:flex;align-items:center;justify-content:space-between;gap:4px;width:100%;font-size:11px;line-height:1.5;font-weight:650;color:#59616e;min-height:32px}
.ad-metric>strong{font-size:25px;font-weight:750;color:#27303d;line-height:1.3;letter-spacing:-.05em;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;margin-top:3px}
.ad-kpis>.ad-metric:nth-child(-n+3)>strong{font-size:34px}
.ad-metric-note{font-size:10px;color:#757d89;line-height:1.6;margin-top:5px}
.ad-delta{font-size:10px;font-weight:700;line-height:1.65;margin-top:10px;display:block}
.ad-delta>span{font-weight:500;color:#707b8a}
.ad-delta.good{color:#39745d}.ad-delta.bad{color:#ad5b50}.ad-delta.neutral{color:#78808c}
.ad-metric-target{margin-top:8px}
.ad-status{display:inline-flex;align-items:center;gap:5px;border-radius:5px;font-size:10px;line-height:1.6;padding:3px 7px;white-space:nowrap;font-weight:650;background:#f1f3f5;color:#6c7480;max-width:100%}
.ad-status::before{content:"";width:4px;height:4px;background:currentColor;border-radius:50%;flex:none}
.ad-status.good{background:#edf5ef;color:#357358}.ad-status.info{background:#edf2f8;color:#4b6d92}.ad-status.warn{background:#fbf2de;color:#936b24}.ad-status.bad{background:#faecea;color:#ae544d}
.ad-overview-grid{display:grid;grid-template-columns:minmax(0,1fr) 272px;gap:20px;align-items:start}
.ad-overview-side{display:grid;gap:16px}
.ad-segment{display:inline-flex;align-items:center;border:1px solid #e2e6ea;border-radius:7px;padding:3px;background:#fafbfc;max-width:100%;flex-wrap:wrap}
.ad-segment button{border:0;border-radius:5px;padding:6px 10px;min-height:30px;background:none;font-size:10px;font-weight:700;color:#727987}
.ad-segment button[aria-pressed="true"]{background:#fff;color:#8a6720;box-shadow:0 1px 3px #27344018}
.ad-segment button:hover{color:#282f3b}
.ad-trend>.ad-section-head{align-items:flex-start}
.ad-chart-container{padding:4px 15px 0;min-width:0}
.ad-chart{display:block;width:100%;height:auto;overflow:visible}
.ad-chart-heading{font:650 12px var(--font-body);fill:#4a5462}
.ad-chart-label{font:500 11px var(--font-body);fill:#7d8591}
.ad-gridline{stroke:#eff1f4;stroke-width:1}
.ad-spend-bar{fill:#cfb36f}.ad-lead-bar{fill:#aebbc8}.ad-cpl-dot{fill:#4b5563}
.ad-cpl-line{stroke:#4b5563;stroke-width:2;fill:none;stroke-linejoin:round;stroke-linecap:round}
.ad-budget-line{stroke:#b49b83;stroke-width:1.5;stroke-dasharray:6 5;fill:none}
.ad-chart-legend{display:flex;justify-content:center;align-items:center;gap:10px 18px;padding:15px 20px;font-size:10px;color:#68717d;flex-wrap:wrap}
.ad-chart-legend span{display:flex;align-items:center;gap:6px}.ad-chart-legend i{width:9px;height:9px;border-radius:2px;display:inline-block}.ad-chart-legend .spend{background:#cfb36f}.ad-chart-legend .leads{background:#aebbc8}.ad-chart-legend .cpl{background:#4b5563;height:2px}.ad-chart-legend .budget{width:14px;height:0;border-top:2px dashed #b49b83}
.ad-chart-values{border-top:1px solid #eff0f2;font-size:11px;color:#757e89}
.ad-chart-values>summary{padding:12px 22px;cursor:pointer;font-size:10px;list-style-position:inside}
.ad-budget-card{padding:23px}
.ad-budget-value{display:grid;gap:3px;margin:17px 0 17px}.ad-budget-value strong{font-size:30px;letter-spacing:-.06em;line-height:1.3;color:#2c3441;font-weight:750}.ad-budget-value>span{font-size:11px;color:#7b8390}
.ad-budget-meter{height:6px;border-radius:7px;background:#efeff1;overflow:hidden}.ad-budget-meter>i{display:block;height:100%;background:#caaa58;border-radius:7px}
.ad-budget-caption{display:flex;justify-content:space-between;gap:8px;font-size:10px;margin-top:8px;color:#7e8590}.ad-budget-caption b{font-weight:650;color:#7f6327}
.ad-budget-card>p{font-size:11px;line-height:1.8;color:#7b828d;margin:19px 0}
.ad-budget-card>.text-link{font-size:10px}
.ad-next-decision{padding:22px;background:#fffdf8}
.ad-next-decision>strong{font-size:32px;line-height:1.5;letter-spacing:-.05em;display:block;margin-top:7px;font-weight:750}
.ad-next-decision h3{font-size:13px}
.ad-next-decision p{font-size:11px;color:#767c85;margin:7px 0 15px}
.ad-next-decision .btn{font-size:10px;padding:9px 11px;width:100%}
.ad-funnel{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:0;padding:2px 22px 22px}
.ad-funnel-step{padding:12px 14px 9px;border-right:1px solid #e9ecf0}
.ad-funnel-step:first-child{padding-left:0}.ad-funnel-step:last-child{border:0;padding-right:0}
.ad-funnel-top{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#707b8a;margin-bottom:13px}
.ad-funnel-top .ico{width:12px;height:12px;color:#c1c6ce}
.ad-funnel-label{font-size:11px;color:#59616e;display:block;white-space:nowrap}
.ad-funnel-step>strong{font-size:25px;line-height:1.6;display:block;letter-spacing:-.04em;font-weight:750}
.ad-funnel-track{height:4px;border-radius:3px;background:#f1f2f4;margin:9px 0 13px;overflow:hidden}
.ad-funnel-track>i{display:block;height:100%;background:#c8ab61;border-radius:3px}
.ad-funnel-step>b{display:block;font-size:12px;font-weight:700;color:#3d4857;line-height:1.8}
.ad-funnel-step>small{font-size:9px;color:#848b96;line-height:1.5;display:block}
.ad-footnote{margin:0;padding:13px 22px 17px;color:#777f8b;font-size:10px;line-height:1.85;overflow-wrap:anywhere}
.ad-panel>.ad-footnote{border-top:1px solid #f0f1f4}
.ad-alert-list{display:grid}
.ad-alert{display:flex;align-items:flex-start;gap:12px;padding:17px 22px;border-top:1px solid #eceef1}
.ad-alert-sign{width:26px;height:26px;border-radius:7px;background:#faf3e5;color:#9a752b;display:grid;place-items:center;flex:none;margin-top:2px}
.ad-alert-sign .ico{width:15px;height:15px}
.ad-alert.bad .ad-alert-sign{background:#faedeb;color:#af5c53}
.ad-alert>div{flex:1;min-width:0}
.ad-alert h3{font-size:12px;line-height:1.6;color:#3b4350}
.ad-alert p{font-size:11px;line-height:1.75;color:#767e8b;margin:3px 0 7px}
.ad-alert-recommendation{font-size:11px;line-height:1.75;color:#697380;overflow-wrap:anywhere}
.ad-alert-recommendation b{font-size:10px;color:#4d5765;display:inline;margin-right:5px}
.ad-alert footer{display:flex;gap:10px;justify-content:space-between;align-items:center;margin-top:10px;flex-wrap:wrap}
.ad-alert time{font-size:9px;color:#707b8a}
.ad-alert .text-link{font-size:10px}
.ad-clear{display:flex;align-items:center;gap:13px;padding:22px;color:#478268}.ad-clear>div b{font-size:12px}.ad-clear p{font-size:11px;color:#7c8691;margin:2px 0 0}
.ad-banner{display:flex;align-items:center;gap:12px;padding:15px 18px;border:1px solid #eadbb5;border-radius:9px;background:#fffbf0;font-size:12px;color:#856727}
.ad-banner>div{flex:1}.ad-banner p{margin:3px 0 0;color:#707b8a;font-size:11px}.ad-banner .btn{font-size:11px;flex:none}
.ad-inline-error{color:#ae4c43;font-size:12px;background:#fff3f0;border:1px solid #f1d5d0;padding:10px 14px;border-radius:6px;margin:5px 0 0;flex-basis:100%}
.ad-table-actions{display:flex;gap:6px}.ad-table-actions .btn{font-size:10px;min-height:32px;padding:7px 9px}
.ad-table-toolbar{display:flex;align-items:center;justify-content:space-between;padding:0 22px 16px;gap:12px;flex-wrap:wrap}
.ad-table-toolbar>label,.ad-sort{display:flex;align-items:center;gap:8px;font-size:11px;color:#76808e}
.ad-table-toolbar select,.ad-sort select{padding:7px 25px 7px 10px;font-size:11px;min-height:35px;width:auto}
.ad-table-scroll{overflow:auto;max-width:100%;scrollbar-width:thin;position:relative;border-top:1px solid #e8ecf0}
.ad-campaign-table{font-size:11px;border-collapse:separate;border-spacing:0;width:100%;min-width:970px}
.ad-campaign-table th{font:650 9px/1.6 var(--font-body);text-transform:none;letter-spacing:0;color:#78808d;padding:13px 12px;white-space:nowrap;background:#fafbfc;border-bottom:1px solid #e6eaf0;text-align:right}
.ad-campaign-table th:first-child,.ad-campaign-table th:nth-child(2){text-align:left}
.ad-campaign-table th:first-child{position:sticky;left:0;z-index:2;min-width:255px;max-width:275px}
.ad-campaign-table td{font-size:11px;padding:15px 12px;border-bottom:1px solid #ecf0f3;vertical-align:middle;line-height:1.6;background:white}
.ad-campaign-table td:first-child{position:sticky;left:0;z-index:1;min-width:255px;max-width:275px;border-right:1px solid #e9edf0}
.ad-campaign-table .ad-number{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;color:#414c5b;font-weight:550}
.ad-campaign-table .ad-number small{display:block;font-size:8px;color:#707b8a;line-height:1.5}
.ad-campaign-table .ad-entity-name{display:flex;gap:8px;align-items:center}
.ad-entity-name>div{min-width:0}
.ad-entity-name b,.ad-name-button{font-weight:700;display:block;font-size:11px;line-height:1.6;white-space:normal;color:#394353}
.ad-entity-name small{display:block;font-size:9px;color:#707b8a;margin-top:2px;line-height:1.5}
.ad-expand{padding:0;width:22px;height:26px;min-width:22px;display:inline-grid;place-items:center;border:1px solid #e4e8ed;background:white;border-radius:5px;color:#7c8591}
.ad-expand .ico{width:12px;height:12px}
.ad-name-button{border:0;background:none;padding:0;text-align:left;font-weight:600;cursor:pointer}
.ad-name-button:hover{color:#9b772a;text-decoration:underline;text-underline-offset:3px}
.ad-campaign-table .ad-level-set td{background:#fafbfc}.ad-campaign-table .ad-level-set td:first-child{padding-left:25px}
.ad-campaign-table .ad-level-ad td:first-child{padding-left:42px}
.ad-tree-end{width:12px;height:14px;display:block;border-left:1px solid #dce2e9;border-bottom:1px solid #dce2e9;flex:none;margin-right:1px;align-self:flex-start}
.ad-muted{font-size:10px;color:#707b8a}
.ad-table-scroll .ad-definition{width:17px;height:17px;min-width:17px;padding:2px;vertical-align:middle}
.ad-creatives-section{min-width:0}.ad-creatives-section>.ad-section-head{padding:0 0 20px}
.ad-creative-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.ad-creative-card{border:1px solid #e0e5eb;border-radius:12px;background:white;overflow:hidden;min-width:0}
.ad-artwork{position:relative;aspect-ratio:1.8;background:#edece7;overflow:hidden;margin:0}
.ad-artwork>img{display:block;width:100%;height:100%;object-fit:cover;max-width:100%}
.ad-format{position:absolute;top:10px;left:10px;background:#ffffffec;border-radius:5px;padding:3px 7px;color:#4e5865;font-size:9px;font-weight:650;line-height:1.6}
.ad-art-caption{position:absolute;bottom:15px;left:15px;right:12px;font-size:11px;letter-spacing:.1em;font-weight:800;color:#fff;text-shadow:0 1px 7px #273627b3;line-height:1.5}
.ad-creative-body{padding:17px}
.ad-creative-state{display:flex;justify-content:space-between;align-items:center;gap:9px;margin-bottom:12px;flex-wrap:wrap}
.ad-creative-state>span:last-child:not(.ad-status){font-size:9px;color:#707b8a}
.ad-creative-body h3{font-size:13px;line-height:1.65;letter-spacing:-.02em;min-height:42px}
.ad-creative-body>p{font-size:11px;line-height:1.75;color:#7a8390;margin:8px 0 16px;min-height:58px}
.ad-creative-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px 8px;margin:0;padding:15px 0;border-top:1px solid #e9edf2}
.ad-creative-metrics>div{min-width:0}.ad-creative-metrics dt{color:#707b8a;font-size:9px;line-height:1.8}.ad-creative-metrics dd{margin:2px 0 0;color:#354152;font-size:14px;line-height:1.6;font-weight:700;font-variant-numeric:tabular-nums}
.ad-creative-body>footer{display:flex;align-items:center;justify-content:space-between;gap:7px;border-top:1px solid #e9edf2;padding-top:14px}
.ad-creative-body footer .text-link{border:0;background:none;font-size:10px;padding:0}
.ad-audience-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}
.ad-audience-card{padding:20px}.ad-audience-card h3{font-size:13px;margin:7px 0 14px}.ad-audience-card>strong{font-size:29px;letter-spacing:-.04em;font-variant-numeric:tabular-nums}.ad-audience-card strong small{font-size:11px;font-weight:500;color:#7b8593;letter-spacing:0}
.ad-audience-card dl{margin:17px 0 0;border-top:1px solid #e9edf1;padding-top:12px;display:grid;gap:7px}.ad-audience-card dl>div{display:flex;justify-content:space-between;font-size:11px;gap:9px}.ad-audience-card dt{color:#707b8a}.ad-audience-card dd{margin:0;font-weight:650;color:#465263}
.ad-area-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:25px;padding:0 22px 22px}
.ad-area-grid>div{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:4px 14px;padding:18px 22px;background:#f6faf7;border:1px solid #e6ede8;border-radius:9px}
.ad-area-grid>div:last-child{background:#fcfaf4;border-color:#f0e8d6}
.ad-area-grid strong{grid-row:span 2;font-size:29px;letter-spacing:-.05em;color:#3e6a53}.ad-area-grid>div:last-child strong{color:#997b35}.ad-area-grid span{font-size:12px;color:#586776}.ad-area-grid b{font-size:11px;color:#87929e;font-weight:600}
.ad-breakdown-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.ad-small-table-wrap{width:100%;overflow:auto;scrollbar-width:thin;min-width:0}
.ad-small-table{border-collapse:collapse;width:100%;font-size:11px;text-align:right}
.ad-small-table thead th{background:#fafbfc;color:#7a8594;font-size:9px;font-weight:650;letter-spacing:0;text-transform:none;white-space:nowrap;border-bottom:1px solid #e7ecf1;padding:12px 14px;text-align:right}
.ad-small-table thead th:first-child{text-align:left;padding-left:22px}
.ad-small-table tbody td,.ad-small-table tbody th{padding:14px 14px;border-bottom:1px solid #ebeff3;font-size:11px;line-height:1.7;vertical-align:middle;color:#4c596a;font-variant-numeric:tabular-nums;font-weight:550;letter-spacing:0;text-transform:none;text-align:right;background:white}
.ad-small-table tbody th:first-child,.ad-small-table tbody td:first-child{text-align:left;padding-left:22px;white-space:normal;color:#374556;font-weight:650}
.ad-small-table small{display:block;font-weight:500;font-size:9px;color:#707b8a;margin-top:3px;line-height:1.7}
.ad-tests>.ad-section-head{padding:0 0 18px}
.ad-test-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.ad-test{padding:20px 22px 0}.ad-test-title{display:flex;gap:8px;justify-content:space-between;align-items:center;margin-bottom:13px}
.ad-type-label{font-size:9px;letter-spacing:.05em;text-transform:uppercase;color:#92712c;font-weight:750;display:inline-flex;align-items:center}
.ad-test h3{font-size:14px;line-height:1.6}
.ad-test-hypothesis{font-size:11px;line-height:1.8;color:#7d8795;margin:8px 0 15px;min-height:40px}
.ad-test-meta{display:flex;flex-wrap:wrap;gap:9px 18px;font-size:9px;color:#707b8a;line-height:1.8;padding:12px 0;border-top:1px solid #edf0f3;border-bottom:1px solid #edf0f3}.ad-test-meta span{display:grid}.ad-test-meta b{font-weight:650;font-size:11px;color:#475769}
.ad-test-measure{display:grid;gap:2px;margin:15px 0 12px}.ad-test-measure span{font-size:9px;color:#707b8a}.ad-test-measure strong{font-size:12px;font-weight:700}
.ad-test-versions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ad-test-versions>div{padding:12px;background:#f8f9fb;border:1px solid #edf0f4;border-radius:8px;display:grid;gap:7px}.ad-test-versions span{font-size:10px;font-weight:650;color:#69788a}.ad-test-versions b{font-size:21px;letter-spacing:-.03em;line-height:1.3;color:#3d4b5d}.ad-test-versions small{font-size:9px;line-height:1.7;color:#707b8a}
.ad-test>.ad-footnote{padding:16px 0;border-top:0}
.ad-quality-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.ad-quality-overview .ad-metric>strong{font-size:28px}
.ad-health-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:2px 22px 22px}
.ad-health-grid>div{padding:17px;border:1px solid #e7ecf0;border-radius:9px;background:#fcfcfd}.ad-health-grid h3{margin-top:12px;font-size:13px}.ad-health-grid p{font-size:11px;color:#7c8796;line-height:1.8;margin:6px 0 0}
.ad-recommendations{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}
.ad-recommendation{padding:18px 22px 22px;border-top:1px solid #e9edf1;border-right:1px solid #e9edf1}.ad-recommendation:last-child{border-right:0}
.ad-rec-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:13px}
.ad-recommendation h3{font-size:14px;line-height:1.7;min-height:45px}
.ad-rec-change{display:flex;gap:13px;align-items:center;padding:14px 0;margin:9px 0;border-top:1px solid #edf0f4;border-bottom:1px solid #edf0f4}.ad-rec-change>div{flex:1;display:grid;gap:5px}.ad-rec-change span{font-size:9px;color:#707b8a}.ad-rec-change b{font-size:12px;color:#47566a;line-height:1.65;font-weight:650;overflow-wrap:anywhere}.ad-rec-change>div:last-child b{color:#8d6c26}.ad-rec-change>.ico{width:15px;color:#707b8a}
.ad-recommendation>p{font-size:11px;line-height:1.85;color:#7f8a99;margin:13px 0;min-height:60px}
.ad-rec-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:17px}.ad-rec-actions .btn{font-size:11px;min-height:36px}.ad-rec-actions .text-link{font-size:10px;flex-basis:100%;padding-top:6px}
.ad-recommendation>.ad-footnote{padding:0;min-height:0;border:0}
.ad-agent-log{display:grid}
.ad-log-item{display:flex;gap:15px;align-items:flex-start;padding:19px 22px;border-top:1px solid #e9edf2}
.ad-log-icon{width:30px;height:30px;display:grid;place-items:center;background:#f5f4ed;border-radius:8px;color:#a48642;flex:none}.ad-log-icon .ico{width:15px;height:15px}
.ad-log-item>div{flex:1}.ad-log-item>div>div{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.ad-log-item h3{font-size:12px;line-height:1.7;font-weight:650}.ad-log-item p{font-size:11px;color:#7c8796;margin:5px 0;line-height:1.8}.ad-log-item small{font-size:10px;color:#707b8a}
.ad-provenance{border-top:1px solid #e1e5eb;padding:10px 0 0;color:#7c8795;font-size:10px;line-height:1.9}
.ad-provenance summary{display:flex;align-items:center;gap:7px;cursor:pointer;font-size:11px;font-weight:650;color:#677586;padding:8px 0;list-style:none}.ad-provenance summary::after{content:"+";font-size:18px;margin-left:auto;font-weight:400}.ad-provenance details[open]>summary::after{content:"−"}.ad-provenance .ico{width:14px;height:14px}.ad-provenance>p{margin:10px 0 0}.ad-provenance>p strong{color:#647182;font-weight:600}
.ad-provenance-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:15px 0}.ad-provenance-grid b{font-size:11px;color:#4e5d70}.ad-provenance-grid p{margin:4px 0 0}
.ad-definition-list{display:grid;grid-template-columns:1fr 1fr;gap:12px 24px;margin:18px 0}.ad-definition-list>div{display:grid;gap:3px}.ad-definition-list dt{font-weight:700;color:#617084}.ad-definition-list dd{margin:0}
.ad-empty{padding:65px 24px;text-align:center;display:flex;flex-direction:column;align-items:center;min-height:300px;justify-content:center}.ad-empty>span{display:grid;place-items:center;width:54px;height:54px;background:#faf4e6;border:1px solid #efe2bc;border-radius:14px;color:#b49143;margin-bottom:22px}.ad-empty .ico{width:23px;height:23px}.ad-empty h2{font-size:19px;color:#415064}.ad-empty p{font-size:12px;color:#707b8a;max-width:480px;line-height:1.9;margin:10px 0 20px}.ad-empty>.btn{font-size:11px}
.ad-loading .loading{padding:90px 20px}
.ad-home{margin:0}.ad-home .ad-section-head{padding:20px}.ad-home-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;padding:2px 20px 23px}.ad-home-metrics>div{display:flex;flex-direction:column;align-items:flex-start;border-right:1px solid #e8ecf2;padding-right:12px;min-width:0}.ad-home-metrics>div:last-child{border:0;padding-right:0}.ad-home-metrics>div>span:first-child{font-size:10px;color:#7d8998;display:flex;align-items:center;min-height:24px}.ad-home-metrics strong{font-size:22px;font-weight:750;line-height:1.6;letter-spacing:-.05em;overflow-wrap:anywhere}.ad-home-metrics small{font-size:9px;color:#707b8a;line-height:1.8}.ad-home-metrics .ad-status{margin-top:6px;font-size:9px}.ad-home-alerts>summary{list-style:none;display:flex;align-items:center;gap:8px;font-size:11px;padding:14px 20px;border-top:1px solid #e7ecf2;cursor:pointer;background:#fffdf7}.ad-home-alerts>summary>.ico{width:14px;color:#ae8a39}.ad-home-alerts>summary>b{font-weight:650;color:#7d682e}.ad-home-alerts>summary>span{margin-left:auto;font-size:9px;color:#707b8a}.ad-home .ad-alert{padding:15px 20px}.ad-home .ad-alert-sign{display:none}.ad-home .ad-alert h3{font-size:11px}.ad-home .ad-alert p,.ad-home .ad-alert-recommendation{font-size:10px}.ad-home-empty{padding:0 20px 22px;font-size:12px;color:#707b8a}
.ad-settings-top{display:grid;grid-template-columns:1fr 255px;gap:28px;padding:4px 22px 20px;align-items:start;border-bottom:1px solid #e9edf2}
.ad-detail-kv{display:grid;grid-template-columns:130px minmax(0,1fr);gap:12px 18px;margin:0;font-size:12px;line-height:1.8}.ad-detail-kv dt{color:#707b8a;font-size:11px}.ad-detail-kv dd{margin:0;overflow-wrap:anywhere;color:#4b5a6e;font-weight:650}.ad-detail-kv dd small{display:block;color:#707b8a;font-size:10px;font-weight:500}
.ad-settings-top>div .hint{margin-top:8px;font-size:10px}
.ad-settings-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding:24px 22px}.ad-settings-form label.field{font-size:11px;color:#65758a;gap:7px}.ad-settings-form .input{font-size:13px}.ad-settings-form .ad-area-field{grid-column:1/-1}.ad-settings-form textarea{min-height:72px}.ad-settings-save{grid-column:1/-1;display:flex;align-items:center;gap:16px;flex-wrap:wrap}.ad-settings-save .hint{font-size:10px;max-width:540px}.ad-settings-form>.ad-inline-error{grid-column:1/-1}
.ad-agency-filter{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:11px;color:#7a8696;background:white;border:1px solid #e4e9f0;padding:12px 16px;border-radius:8px}.ad-agency-filter label{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:650;color:#58697d}.ad-alert-count{border:1px solid #eadcbb;background:#fcf6e8;border-radius:5px;padding:5px 8px;font-size:10px;font-weight:700;color:#9b762c;white-space:nowrap}
.ad-dialog{border:1px solid #e1e6ed;border-radius:14px;width:min(560px,calc(100% - 28px));max-height:calc(100dvh - 40px);padding:0;color:#354356;background:#fff;box-shadow:0 28px 95px #17243b40;overflow:auto;overscroll-behavior:contain}
.ad-dialog::backdrop{background:#1c243a55;backdrop-filter:blur(2px)}
.ad-dialog>header{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:20px 22px;border-bottom:1px solid #e9edf3;position:sticky;top:0;background:white;z-index:1}.ad-dialog h2{font-size:17px}.ad-icon-button{display:inline-grid;place-items:center;border:1px solid #e4e9f0;border-radius:7px;width:32px;height:32px;background:white;color:#707b8a;flex:none}.ad-icon-button .ico{width:15px;height:15px}
.ad-dialog-body{padding:22px}.ad-dialog-body>h3{font-size:16px;line-height:1.7;margin:12px 0}.ad-dialog-body>p{font-size:13px;line-height:1.85;color:#738194;margin:12px 0}.ad-dialog-body .ad-artwork{border-radius:9px;margin-bottom:17px}.ad-dialog-body .ad-rec-change{margin:17px 0}.ad-dialog-body .ad-rec-change b{font-size:14px}.ad-dialog-body .msg{margin:20px 0 15px;font-size:12px;line-height:1.8}.ad-dialog-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:20px}.ad-dialog-body>.ad-footnote{padding:0;font-size:10px}.ad-dialog .ad-detail-kv{margin:17px 0}.ad-definition-copy{font-size:16px!important;color:#45566c!important}
@media(min-width:1600px){.ad-chart-container{padding:4px 20px 0}.ad-overview-grid{grid-template-columns:minmax(0,1fr) 300px}.ad-kpis>.ad-metric:nth-child(-n+3)>strong{font-size:37px}}
@media(max-width:1250px){.ad-kpis>.ad-metric{grid-column:span 2}.ad-overview-grid{grid-template-columns:minmax(0,1fr) 240px}.ad-sync{font-size:9px}.ad-connection{align-items:flex-start}.ad-sync{max-width:185px}.ad-connection-main p{display:grid;gap:2px}.ad-funnel-step{padding-left:9px;padding-right:9px}.ad-funnel-step>strong{font-size:22px}.ad-funnel-label{font-size:10px}.ad-creative-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ad-recommendations{grid-template-columns:1fr}.ad-recommendation{border-right:0;padding:20px 22px}.ad-recommendation h3,.ad-recommendation>p{min-height:0}.ad-rec-change{max-width:550px}.ad-rec-actions .text-link{flex-basis:auto;margin-left:auto;padding-top:0}.ad-breakdown-grid{grid-template-columns:1fr}.ad-audience-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1050px){.ad-overview-grid{grid-template-columns:1fr}.ad-overview-side{grid-template-columns:1fr 1fr}.ad-budget-card .ad-budget-value{margin:12px 0}.ad-funnel{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px 0}.ad-funnel-step:nth-child(4){border-right:0}.ad-funnel-step:nth-child(5){padding-left:0}.ad-test-list{grid-template-columns:1fr}.ad-quality-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.ad-connection .ad-sync{max-width:none}.ad-connection{flex-wrap:wrap}.ad-sync{margin-left:57px;text-align:left}.ad-sync>span,.ad-sync .text-link{justify-content:flex-start}.ad-settings-top{grid-template-columns:1fr 200px}.ad-section-head{padding:19px 20px 15px}.ad-kpis>.ad-metric>strong{font-size:25px}.ad-kpis>.ad-metric:nth-child(-n+3)>strong{font-size:30px}}
@media(max-width:700px){.ad-screen,.ad-tab-content{gap:16px}.ad-page-head h1{font-size:27px}.ad-page-head .eyebrow{font-size:9px}.ad-head-actions{gap:9px;width:100%;justify-content:space-between}.ad-head-actions .btn{min-height:38px}.ad-connection{padding:15px;gap:12px}.ad-connection-main strong{font-size:12px}.ad-connection-main .pill{font-size:9px}.ad-connection-main>div{gap:5px}.ad-connection-main p{font-size:10px}.ad-meta-mark{width:34px;height:34px;border-radius:8px}.ad-sync{margin-left:46px;font-size:10px}.ad-sync .text-link{font-size:10px}.ad-range-form{gap:12px}.ad-compare{margin-left:0;font-size:11px;min-height:36px}.ad-custom-range{flex-basis:100%;order:3}.ad-custom-range input{font-size:16px;max-width:155px}.ad-range-caption{font-size:10px;margin-top:-5px}.ad-range-caption>span:last-child{margin-left:0}.ad-tabs{gap:21px;min-height:45px}.ad-tabs>a{font-size:12px;padding:12px 0}.ad-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ad-kpis>.ad-metric{grid-column:span 1;padding:15px}.ad-kpis>.ad-metric:nth-child(-n+3){grid-column:span 1;padding:15px}.ad-kpis>.ad-metric:first-child{grid-column:span 2;display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.ad-kpis>.ad-metric:first-child .ad-metric-label{grid-column:1/-1;min-height:22px}.ad-kpis>.ad-metric:first-child strong{grid-row:span 2;font-size:33px}.ad-kpis>.ad-metric:first-child .ad-metric-note{align-self:end}.ad-kpis>.ad-metric:first-child .ad-delta{margin-top:5px}.ad-kpis>.ad-metric:nth-child(-n+3)>strong{font-size:28px}.ad-metric>strong{font-size:24px!important}.ad-kpis>.ad-metric:first-child>strong{font-size:31px!important}.ad-metric-label{font-size:11px;line-height:1.6;min-height:26px}.ad-metric-note,.ad-delta{font-size:10px}.ad-delta>span{display:block}.ad-metric .ad-status{font-size:9px}.ad-section-head{padding:17px 16px 14px;gap:12px}.ad-section-head h2{font-size:14px}.ad-section-head p{font-size:11px}.ad-trend .ad-section-head{flex-direction:column;align-items:flex-start}.ad-chart-container{padding:0 8px}.ad-chart-legend{gap:10px 16px;padding:14px;font-size:10px}.ad-overview-side{gap:12px}.ad-budget-card,.ad-next-decision{padding:17px}.ad-budget-card .eyebrow,.ad-next-decision .eyebrow{font-size:8px;line-height:1.9}.ad-budget-value strong{font-size:25px}.ad-budget-value>span{font-size:10px}.ad-budget-caption{flex-wrap:wrap;font-size:9px}.ad-budget-card>p{font-size:10px;margin:13px 0}.ad-budget-card>.text-link{font-size:9px}.ad-next-decision>strong{font-size:27px}.ad-next-decision h3{font-size:12px}.ad-next-decision p{font-size:10px}.ad-next-decision .btn{font-size:10px;padding:8px}.ad-funnel{grid-template-columns:repeat(2,minmax(0,1fr));padding:3px 16px 20px;gap:12px 0}.ad-funnel-step{padding:12px 16px!important}.ad-funnel-step:nth-child(odd){padding-left:0!important}.ad-funnel-step:nth-child(even){border-right:0}.ad-funnel-step:nth-child(5){border-right:1px solid #e9ecf0}.ad-funnel-step:last-child{grid-column:1/-1;border-right:0}.ad-funnel-top{margin-bottom:7px}.ad-funnel-label{font-size:12px}.ad-funnel-step>strong{font-size:27px}.ad-funnel-step>small{font-size:10px}.ad-funnel-step>b{font-size:12px}.ad-footnote{padding:13px 16px;font-size:10px}.ad-alert{padding:16px;gap:10px}.ad-alert h3{font-size:12px}.ad-alert p,.ad-alert-recommendation{font-size:11px}.ad-alert footer{gap:8px}.ad-alert time{font-size:10px}.ad-banner{align-items:flex-start;flex-wrap:wrap;padding:15px}.ad-banner>.ico{margin-top:3px}.ad-banner .btn{margin-left:28px}.ad-provenance-grid{grid-template-columns:1fr;gap:12px}.ad-provenance-grid p{margin-top:3px}.ad-definition-list{grid-template-columns:1fr}.ad-provenance summary{font-size:11px}.ad-creative-grid{grid-template-columns:1fr}.ad-creative-body{padding:19px}.ad-creative-body h3{font-size:15px;min-height:0}.ad-creative-body>p{font-size:12px;min-height:0}.ad-art-caption{font-size:12px}.ad-creative-metrics dt{font-size:10px}.ad-creative-metrics dd{font-size:16px}.ad-creative-body footer .text-link{font-size:11px}.ad-audience-grid{gap:10px}.ad-audience-card{padding:16px}.ad-audience-card h3{font-size:12px}.ad-audience-card .eyebrow{font-size:8px}.ad-audience-card>strong{font-size:25px}.ad-audience-card dl>div{font-size:11px}.ad-area-grid{padding:0 16px 17px;gap:10px}.ad-area-grid>div{padding:16px;grid-template-columns:1fr;gap:4px}.ad-area-grid strong{grid-row:auto;font-size:28px}.ad-area-grid span{font-size:11px}.ad-area-grid b{font-size:10px}.ad-test{padding:17px 16px 0}.ad-test-title{margin-bottom:13px}.ad-test h3{font-size:14px}.ad-test-hypothesis{font-size:12px}.ad-test-versions b{font-size:23px}.ad-test-versions small{font-size:10px}.ad-quality-overview{gap:10px}.ad-health-grid{grid-template-columns:1fr;padding:0 16px 17px}.ad-recommendation{padding:17px 16px}.ad-rec-actions .text-link{flex-basis:100%;margin-left:0;padding-top:4px}.ad-recommendation>p{font-size:12px}.ad-recommendation h3{font-size:15px}.ad-rec-change b{font-size:13px}.ad-log-item{padding:17px 16px;gap:12px}.ad-log-item h3{font-size:12px}.ad-log-item p{font-size:11px}.ad-log-item small{font-size:10px}.ad-home-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.ad-home-metrics>div:nth-child(2){border-right:0}.ad-home-metrics strong{font-size:24px}.ad-home-metrics small{font-size:10px}.ad-home-alerts>summary>span{display:none}.ad-settings-top{grid-template-columns:1fr;gap:18px;padding:0 16px 20px}.ad-detail-kv{grid-template-columns:105px 1fr;font-size:11px;gap:10px 15px}.ad-settings-form{grid-template-columns:1fr;padding:20px 16px}.ad-settings-form .input{font-size:16px}.ad-settings-form .field{font-size:12px}.ad-settings-save .btn{width:100%}.ad-settings-save .hint{font-size:10px}.ad-dialog>header{padding:16px}.ad-dialog-body{padding:18px}.ad-dialog-actions .btn{min-height:42px}.ad-table-toolbar{padding:0 16px 16px}.ad-table-actions .btn{min-height:35px}.ad-sort{font-size:11px;flex-wrap:wrap}.ad-sort .input{font-size:12px}.ad-table-toolbar>label{width:100%;justify-content:space-between}
/* Mobile tables reflow into labelled records; only the navigation tabs scroll. */
.ad-campaign-table,.ad-small-table{display:block;min-width:0!important;width:100%;border:0}
.ad-campaign-table thead,.ad-small-table thead{position:absolute!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;width:1px!important;height:1px!important;overflow:hidden!important;white-space:nowrap}
.ad-campaign-table tbody,.ad-small-table tbody{display:block;width:100%}
.ad-campaign-table tr,.ad-small-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;padding:17px 16px!important;border-bottom:1px solid #e3e9f0;position:static!important;cursor:default}
.ad-campaign-table td,.ad-small-table td,.ad-small-table tbody th{display:block!important;position:static!important;min-width:0!important;max-width:none!important;width:auto!important;padding:0!important;border:0!important;text-align:left!important;background:transparent!important;white-space:normal!important;font-size:12px!important;line-height:1.6!important;float:none!important}
.ad-campaign-table td::before,.ad-small-table td::before,.ad-small-table tbody th::before{content:attr(data-label);display:block!important;position:static!important;float:none!important;width:auto!important;font-size:9px!important;color:#707b8a!important;font-weight:500!important;margin:0 0 4px!important;letter-spacing:0!important;text-transform:none!important}
.ad-campaign-table td:first-child,.ad-small-table tbody tr>th:first-child,.ad-small-table tbody td:first-child{grid-column:1/-1;border:0!important;font-size:12px!important}
.ad-campaign-table .ad-name-cell::before{display:none!important}
.ad-campaign-table .ad-entity-name{gap:10px}.ad-entity-name b,.ad-name-button{font-size:12px}.ad-entity-name small{font-size:10px}
.ad-campaign-table tr.ad-level-set{background:#f6f8fb;border-left:3px solid #d8c99f}.ad-campaign-table tr.ad-level-ad{border-left:3px solid #e7edf4;background:#fff}
.ad-table-scroll,.ad-small-table-wrap{overflow:visible;max-width:100%}
.ad-campaign-table .ad-number small{font-size:9px}.ad-small-table small{font-size:10px}
.ad-chart-values .ad-small-table td:first-child{font-size:13px!important;font-weight:700}
.ad-small-table tr{margin:0!important;border-radius:0!important;box-shadow:none!important;background:white!important}.ad-small-table tbody th:first-child::before{display:none!important}
}
@media(prefers-reduced-motion:reduce){.ad-screen *,.ad-dialog *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Final type pass: supporting values are readable, never faded to decorative gray. */
.ad-metric-label{font-size:12px}.ad-metric-note{font-size:11px}.ad-delta{font-size:11px}
.ad-footnote,.ad-provenance{font-size:11px;color:#6e7988}.ad-section-head p{font-size:12px}
.ad-connection-main p,.ad-sync{font-size:11px}.ad-range-caption{font-size:11px}
.ad-alert p,.ad-alert-recommendation{font-size:12px;color:#697585}.ad-alert h3{font-size:13px}
.ad-creative-body>p,.ad-test-hypothesis,.ad-recommendation>p{font-size:12px;color:#6c7888}
.ad-status{font-size:10px}.ad-campaign-table .ad-number{font-size:12px}
.ad-small-table tbody td,.ad-small-table tbody th{font-size:12px}
@media(max-width:700px){.ad-metric-label{font-size:11px}.ad-metric-note,.ad-delta{font-size:10px}.ad-connection-main p,.ad-sync{font-size:10px}.ad-section-head p{font-size:11px}.ad-range-caption{font-size:10px}.ad-footnote,.ad-provenance{font-size:10px}}

@media(max-width:700px){
 .ad-connection{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:start;gap:10px 12px}
 .ad-connection-main{grid-column:2}.ad-meta-mark{grid-column:1;grid-row:1}
 .ad-connection .ad-sync{grid-column:2;margin-left:0;text-align:left;width:100%;max-width:100%;gap:4px}
 .ad-connection-main>div{gap:6px;flex-wrap:wrap}.ad-connection-main strong{font-size:12px}
 .ad-connection-main p{font-size:10px;display:grid;gap:3px}
}


/* Integrations extension. Existing .btn/.input/.field/.panel vocabulary retained.
   Every new rule is scoped. No framework. No credentials or provider secrets. */
.integration-page{min-width:0;display:grid;gap:23px;--integration-border:#e6e8ec;--integration-faint:#70757f;--integration-soft:#f7f8fa}
.integration-page-head{align-items:center;gap:20px;margin-bottom:0!important}
.integration-page-head h1{font-size:30px;letter-spacing:-1.05px;line-height:1.3;margin-top:4px}
.integration-page-head .eyebrow{font-size:9px;letter-spacing:1.7px;color:#8a6b30}
.integration-page-head p{font-size:13px!important;line-height:1.7;max-width:72ch;color:#68707b!important}
.integration-page-head>.btn{flex-shrink:0;min-height:39px;border-color:var(--integration-border);background:#fff;border-radius:8px}
.integration-controls{display:grid;gap:16px;padding:0;min-width:0}
.integration-search{position:relative;min-width:0;max-width:none}
.integration-search>.ico{position:absolute;left:16px;top:16px;width:17px;height:17px;color:#8b909a;pointer-events:none}
.integration-search .input{padding:13px 180px 13px 44px;font-size:13px;border:1px solid #dfe3e8;border-radius:10px;min-height:49px;background:#fff;box-shadow:0 2px 4px #20252b02}
.integration-search>span{position:absolute;right:16px;top:16px;font-size:11px;color:#9196a0;pointer-events:none}
.integration-filters{display:flex;flex-wrap:wrap;gap:7px;min-width:0}
.integration-filters .chip{display:inline-flex;align-items:center;justify-content:center;min-height:34px;margin:0;padding:6px 12px;border:1px solid transparent;border-radius:7px;background:transparent;color:#636873;font-size:11px;font-weight:650;white-space:nowrap;text-decoration:none;box-shadow:none}
.integration-filters .chip:hover{background:#eceef1;color:#25272b}
.integration-filters .chip.on,.integration-filters .chip[aria-pressed=true]{background:#fff;color:#805f20;border-color:#dcc9a2;box-shadow:0 1px 3px #29251c03}
.integration-count-line{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-bottom:17px;border-bottom:1px solid #e3e6eb;margin-top:-4px}
.integration-count-line p{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0;color:#747b86;font-size:12px}
.integration-count-line p>strong{color:#303b36;font-weight:700;display:inline-flex;align-items:center;gap:7px}
.integration-count-line p>strong::before{content:"";width:6px;height:6px;border-radius:50%;background:#388768}
.integration-count-line>span{font-size:10px;color:#7c838f;display:flex;align-items:center;gap:6px}
.integration-count-line>span>.ico{width:13px;height:13px}
.integration-attention-link{background:#fff8e7;border:1px solid #e9d7ad;border-radius:5px;color:#8c651e;padding:3px 7px;margin-left:6px;font-size:10px;font-weight:700}
#integration-results{min-width:0;display:grid;gap:28px}
.integration-section{display:grid;gap:13px;min-width:0}
.integration-section-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;min-width:0}
.integration-section-head h2{font-size:14px;letter-spacing:-.25px;font-weight:750;color:#33383f}
.integration-section-head>span{font-size:10px;color:#8a909b}
.integration-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(250px,100%),1fr));gap:14px;min-width:0;align-items:stretch}
.integration-card{position:relative;display:grid;grid-template-rows:auto 1fr auto auto;gap:13px;min-width:0;padding:19px 17px 14px;background:#fff;border:1px solid var(--integration-border,#e5e7eb);border-radius:12px;box-shadow:0 2px 5px #26324502;transition:border-color .16s,box-shadow .16s;min-height:235px}
.integration-card:hover{border-color:#ced3db;box-shadow:0 3px 12px #28303b05}
.integration-card.needs-attention{border-color:#e3d3b4}
.integration-card-top{display:flex;gap:11px;align-items:center;min-width:0}
.integration-logo{display:inline-grid;place-items:center;flex:none;width:42px;height:42px;border-radius:10px;border:1px solid #e9eaee;background:#fff;box-shadow:0 2px 4px #15243203;overflow:hidden}
.integration-logo svg,.integration-logo img{width:27px;height:27px;object-fit:contain}
.integration-card-title{min-width:0;flex:1}
.integration-card-title h3{font-size:12px;line-height:1.5;letter-spacing:-.2px;white-space:normal;margin:0;color:#292e35;font-weight:800}
.integration-card-title p{margin:3px 0 0;font-size:10px;color:#858b95;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.integration-menu{position:relative;align-self:flex-start;margin:-4px -7px 0 -3px;flex:none;width:26px;z-index:2}
.integration-menu[open]{z-index:25}
.integration-menu summary{list-style:none;display:grid;place-items:center;width:26px;height:28px;border-radius:6px;color:#8a9098;cursor:pointer}
.integration-menu summary::-webkit-details-marker{display:none}
.integration-menu summary:hover,.integration-menu[open] summary{background:#f0f2f5;color:#393e47}
.integration-menu summary .ico{width:17px;height:17px}
.integration-menu-items{position:absolute;right:0;top:34px;width:215px;max-width:calc(100vw - 64px);padding:5px;border:1px solid #dfe3e9;border-radius:9px;background:#fff;box-shadow:0 8px 35px #1b273b1f;display:grid}
.integration-menu-items button{display:block;width:100%;border:0;background:transparent;color:#424853;text-align:left;padding:10px 11px;border-radius:5px;font-size:11px;line-height:1.5}
.integration-menu-items button:hover:not(:disabled){background:#f4f5f8}
.integration-menu-items button[data-in-disconnect]{color:#b65048}
.integration-description{margin:0;color:#747b86;font-size:11px;line-height:1.75;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;align-self:start;min-height:38px}
.integration-card-tags{min-height:20px;display:flex;align-items:center}
.integration-tag{display:inline-flex;align-items:center;gap:4px;border:1px solid #e7e9ef;border-radius:5px;background:#f8f9fb;color:#757b85;font-size:9px;line-height:1.5;font-weight:650;padding:3px 6px;max-width:100%}
.integration-tag.custom{color:#8a692f;background:#fcf8ee;border-color:#eee2c5}
.integration-tag .ico{width:11px;height:11px}
.integration-category{font-size:9px;line-height:1.5;color:#9399a4}
.integration-card-bottom{display:flex;justify-content:space-between;gap:8px;align-items:center;border-top:1px solid #f0f1f4;padding-top:12px;min-width:0;min-height:45px}
.integration-card-bottom .btn{font-size:10px;min-height:31px;padding:6px 10px;border:1px solid #e0e4e9;border-radius:6px;flex-shrink:0;background:#fff;color:#454b54;box-shadow:0 1px 2px #17233303}
.integration-card-bottom .btn .ico{width:11px;height:11px}
.integration-card-bottom .btn:hover:not(:disabled){border-color:#bead8f;background:#fffcf6}
.integration-card-bottom .btn.primary{background:#fbf3df;border-color:#e4cd98;color:#805d1d}
.integration-status{display:inline-flex;align-items:center;gap:5px;font-size:9px;font-weight:650;line-height:1.6;max-width:100%;color:#828994;overflow-wrap:anywhere}
.integration-status i{width:5px;height:5px;border-radius:50%;background:currentColor;flex:none}
.integration-status.good{color:#3b8164}.integration-status.warn{color:#9b7028}.integration-status.info{color:#53749a}.integration-status.neutral{color:#8c939d}
.integration-status.is-connecting i{background:transparent;border:1px solid #adbdd0;border-top-color:#53749a;border-radius:50%;width:10px;height:10px;animation:integration-spin .8s linear infinite}
@keyframes integration-spin{to{transform:rotate(360deg)}}
.integration-owner-note{font-size:9px;line-height:1.55;color:#7b828d;max-width:105px;text-align:right}
.integration-cancel{border:0;background:transparent;padding:5px 0;color:#846323;font-size:11px;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.integration-request-card{background:#fafbfc;border:1px dashed #d5d9df;display:flex;align-items:flex-start;flex-direction:column;justify-content:center;gap:9px;box-shadow:none}
.integration-request-card h3{font-size:13px;letter-spacing:-.3px;margin:0}
.integration-request-card p{font-size:11px;line-height:1.7;color:#7c8490;margin:0;max-width:29ch}
.integration-request-card>.btn{margin-top:auto;background:#fff;border-color:#e3e6eb;font-size:10px}
.integration-request-icon{height:31px;width:31px;display:grid;place-items:center;background:#fff;border:1px solid #e4e7ed;border-radius:8px;color:#97723a}
.integration-request-icon .ico{width:17px;height:17px}
.integration-pagination{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;border-top:1px solid #e2e6eb;padding-top:19px}
.integration-pagination p,.integration-pagination>span{margin:0;font-size:11px;color:#8b939f}
.integration-pagination .btn{font-size:11px;border-color:#dde2e8;background:#fff}
.integration-footer{display:grid;gap:7px;padding-top:9px}
.integration-footer p{margin:0;font-size:10px;line-height:1.75;color:#9298a1}
.integration-footer p:first-child{color:#7c848f;display:flex;align-items:center;gap:6px}
.integration-footer .ico{width:13px;height:13px}
.integration-demo{color:#7d838e;justify-self:end;margin-top:-10px;margin-bottom:-13px;max-width:100%}
.integration-demo summary{list-style:none;display:flex;align-items:center;justify-content:flex-end;gap:5px;cursor:pointer;font-size:10px;padding:4px 0}
.integration-demo summary::-webkit-details-marker{display:none}
.integration-demo summary .ico{width:12px;height:12px}
.integration-demo-controls{background:#fff;border:1px solid #e4e7ed;border-radius:9px;padding:16px;display:grid;grid-template-columns:140px 190px 170px;gap:12px;margin-top:5px;max-width:100%}
.integration-demo-controls>.field{font-size:10px}
.integration-demo-controls .input{font-size:11px;min-height:37px;padding:7px 9px}
.integration-demo-controls p{grid-column:1/-1;font-size:10px;line-height:1.7;margin:0;max-width:72ch;color:#949ba5}
.integration-empty{border:1px solid #e4e7ed;border-radius:13px;background:#fff;display:flex;flex-direction:column;align-items:center;padding:70px 24px;gap:13px;text-align:center}
.integration-empty h2{font-size:20px;letter-spacing:-.5px;margin:0}
.integration-empty p{font-size:12px;color:#7c828d;max-width:49ch;margin:0}
.integration-empty .actions{justify-content:center;margin-top:8px}
.integration-empty-icon{width:49px;height:49px;display:grid;place-items:center;border:1px solid #e7e9ed;border-radius:13px;background:#fafbfc;color:#999eaa;margin-bottom:6px}
.integration-empty.error .integration-empty-icon{background:#fff5ee;color:#ad7a44;border-color:#efdfcf}
.integration-skeleton{gap:17px;pointer-events:none}
.integration-skeleton :is(i,b,p,span){display:block;margin:0;border-radius:6px;background:linear-gradient(90deg,#f0f2f5,#f9fafc,#f0f2f5);background-size:200%;animation:integration-shimmer 1.6s linear infinite}
.integration-skeleton i{width:42px;height:42px}.integration-skeleton b{height:13px;width:65%}.integration-skeleton p{height:35px;width:92%}.integration-skeleton span{height:20px;width:80%}
@keyframes integration-shimmer{to{background-position:-200% 0}}
/* Native dialog keeps keyboard focus in the panel; Escape and close restore focus. */
.integration-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(540px,100vw);height:100vh;height:100dvh;max-height:none;max-width:100vw;background:#fff;color:#343941;padding:0;border:0;border-left:1px solid #dfe3e8;box-shadow:-12px 0 65px #10213820;overflow:hidden;font:13px/1.65 var(--font-body)}
.integration-drawer[open]{display:flex;flex-direction:column}
.integration-drawer::backdrop,.integration-modal::backdrop{background:#18202b57;backdrop-filter:blur(2px)}
.integration-drawer-head{padding:25px 25px 22px;display:flex;align-items:center;gap:12px;flex:none;border-bottom:1px solid #e9ebef;background:#fff}
.integration-drawer-head>.integration-logo{width:48px;height:48px}
.integration-drawer-head>div{flex:1;min-width:0}
.integration-drawer-head h2{font-size:20px;line-height:1.5;letter-spacing:-.6px}
.integration-drawer-head .eyebrow{font-size:8px;letter-spacing:1.5px}
.integration-drawer-head p{font-size:11px;margin:1px 0 0;color:#7e8693;overflow-wrap:anywhere}
.integration-drawer-head .icon-button{border:0;align-self:flex-start}
.integration-drawer-body{overflow:auto;overscroll-behavior:contain;display:grid;align-content:start;gap:25px;padding:22px 25px;min-height:0;flex:1}
.integration-drawer-body .integration-status{font-size:11px}
.integration-connection-summary{border:1px solid #e7e9ee;border-radius:10px;padding:15px;background:#fafbfc}
.integration-connection-summary dl{display:grid;gap:9px;margin:13px 0 0;font-size:11px}
.integration-connection-summary dl>div{display:flex;justify-content:space-between;gap:16px}
.integration-connection-summary dt{color:#89919c}.integration-connection-summary dd{margin:0;text-align:right;color:#525b66;overflow-wrap:anywhere}
.integration-accounts{margin-top:12px;font-size:11px;color:#6c7480}.integration-accounts ul{padding-left:17px;margin:6px 0 0}.integration-accounts summary{cursor:pointer;font-weight:700}
.integration-permissions h3,.integration-activity h3{font-size:14px;letter-spacing:-.2px;margin:0}
.integration-permissions>.hint{font-size:10px;margin:4px 0 5px}
.integration-permission-row{display:flex;align-items:center;gap:14px;padding:17px 0;border-bottom:1px solid #e7eaf0;position:relative;cursor:pointer}
.integration-permission-row>span{flex:1;display:grid;gap:3px;min-width:0}
.integration-permission-row strong{font-size:12px;color:#363e48}
.integration-permission-row small{font-size:11px;color:#848c98;line-height:1.6}
.integration-permission-row em{font-size:10px;color:#937137;font-style:normal;line-height:1.65}
.integration-permission-row input{position:absolute;right:0;top:50%;transform:translateY(-50%);width:38px;height:24px;margin:0;opacity:0;z-index:2;cursor:pointer}
.integration-switch{position:relative;background:#dbe0e7;width:36px;height:21px;border-radius:20px;flex:none;box-shadow:inset 0 1px 2px #11111108;transition:background .15s}
.integration-switch::after{content:"";position:absolute;left:3px;top:3px;width:15px;height:15px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #11111115;transition:transform .15s}
.integration-permission-row input:checked+.integration-switch{background:#b48a35}.integration-permission-row input:checked+.integration-switch::after{transform:translateX(15px)}
.integration-permission-row input:focus-visible+.integration-switch{outline:2px solid #a58141;outline-offset:4px}.integration-permission-row input:disabled+.integration-switch{opacity:.45}
.integration-permission-hint{font-size:10px;color:#8a929c;margin:10px 0 0}
.integration-inline-error{font-size:11px;color:#ae473b;background:#fff0ed;border:1px solid #f1d0c9;padding:9px 11px;border-radius:6px;margin:10px 0 0}
.integration-activity{outline-offset:6px}
.integration-activity .integration-section-head{padding-bottom:12px;border-bottom:1px solid #e8eaf0}
.integration-log-row{display:flex;align-items:flex-start;gap:10px;padding:14px 0;border-bottom:1px solid #f0f1f4}
.integration-log-row:last-child{border-bottom:0}
.integration-log-icon{width:25px;height:25px;flex:none;display:grid;place-items:center;background:#f5f7fa;border-radius:6px;color:#8b95a4}
.integration-log-icon .ico{width:13px;height:13px}
.integration-log-row>div{min-width:0;flex:1}
.integration-log-row strong{font-size:11px;font-weight:650;color:#48515d;display:block;line-height:1.6}
.integration-log-row p{font-size:9px;line-height:1.7;color:#959daa;margin:3px 0 0}
.integration-log-row>.integration-status{font-size:9px;max-width:85px;justify-content:flex-end;text-align:right;margin-top:3px}
.integration-drawer-foot{padding:16px 25px 21px;border-top:1px solid #e3e7ed;background:#fff;flex:none;padding-bottom:max(21px,env(safe-area-inset-bottom))}
.integration-drawer-foot>.actions{justify-content:space-between}
.integration-drawer-foot p{font-size:11px;color:#8b929d;margin:0}
.integration-disconnect-confirm{padding:13px 15px;background:#fff4ef;border:1px solid #f0d7c9;border-radius:8px;margin-bottom:15px}
.integration-disconnect-confirm b{font-size:11px;color:#a55739}.integration-disconnect-confirm p{margin:5px 0;color:#8f776d;font-size:10px}
.integration-modal{position:fixed;inset:0;margin:auto;border:1px solid #e1e4e9;border-radius:16px;box-shadow:0 15px 80px #101b3033;background:#fff;color:#343a43;width:min(510px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 40px);overflow:auto;padding:26px;font:13px/1.65 var(--font-body)}
.integration-modal>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:15px}.integration-modal>header .icon-button{border:0}
.integration-modal-icon{height:40px;width:40px;display:grid;place-items:center;border:1px solid #e9dfc9;background:#fffaf0;border-radius:10px;color:#b08a43}
.integration-modal h2{font-size:24px;letter-spacing:-.7px;line-height:1.4;margin:0 0 10px}
.integration-modal>p{font-size:12px;line-height:1.75;color:#818995;margin:9px 0 20px}
.integration-modal form{display:grid;gap:15px;margin-top:20px}
.integration-modal .input{border-color:#dfe3ea;font-size:13px;border-radius:8px;padding:11px 12px}
.integration-modal .field{color:#5e6775;font-size:11px;gap:6px}
.integration-modal textarea.input{min-height:105px}
.integration-modal .actions{gap:8px}
.integration-modal>.btn{margin-top:16px}
.integration-request-steps{display:flex;align-items:center;flex-wrap:wrap;gap:7px;font-size:9px;color:#9097a2;background:#f7f8fa;padding:11px;border-radius:6px}
.integration-request-steps span:not(:last-child)::after{content:"→";margin-left:7px;color:#b4b9c2}
.integration-request-meta{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 18px;font-size:11px;margin:18px 0}
.integration-request-meta dt{color:#9199a5}.integration-request-meta dd{margin:0;text-align:right;color:#626d7a;overflow-wrap:anywhere}
.integration-notice{background:#f7f9fc;border:1px solid #e5eaf1;border-radius:8px;padding:13px 15px;font-size:11px;color:#637085}
.integration-notice b{font-size:11px}.integration-notice p{font-size:11px;line-height:1.7;margin:5px 0 0;color:#8792a2}
.integration-notice.warn{border-color:#e9d8b7;background:#fffbf2;color:#9a7939}.integration-notice.warn p{color:#9c8d72}
.integration-review-check{display:flex;align-items:flex-start;gap:10px;font-size:12px;color:#566170}.integration-review-check input{accent-color:#a98437;margin-top:3px;flex:none}
.integration-toast{display:flex;align-items:center;gap:12px;max-width:470px;line-height:1.7;font-size:12px}
.integration-toast>span{flex:1}.integration-toast>.btn{font-size:10px;white-space:nowrap;background:#fff!important;color:#30343b!important;border-color:#d9dfe6}
.integration-toast-close{font-size:20px;background:transparent;color:inherit;border:0;padding:0 3px;align-self:flex-start}
.integration-agency-cell{min-width:145px}.integration-agency-cell .integration-status{display:flex;margin-top:4px}
.integration-count-button{padding:0;border:0;background:transparent;color:#846222;font-size:12px;font-weight:750;text-align:left}
.integration-agency-requests .panel-head{padding:20px 22px}.integration-agency-requests .panel-head h2{font-size:17px}
.integration-agency-requests .eyebrow{font-size:9px;letter-spacing:1px;margin-bottom:4px}
.integration-agency-note{font-size:11px;color:#8c93a1;margin:0;padding:16px 22px;border-bottom:1px solid #e7eaf0;line-height:1.7}
.integration-request-table{table-layout:fixed}
.integration-request-table th:nth-child(1){width:30%}.integration-request-table th:nth-child(2){width:18%}.integration-request-table th:nth-child(3){width:12%}.integration-request-table th:nth-child(4){width:19%}.integration-request-table th:nth-child(5){width:21%}
.integration-request-table td{font-size:11px;vertical-align:middle;padding-top:17px;padding-bottom:17px;overflow-wrap:anywhere}
.integration-request-table td .sub{font-size:10px;line-height:1.6;margin-top:4px}
.integration-request-table .btn{min-height:30px;font-size:10px;padding:5px 9px}
.integration-settings-link{display:flex;align-items:center;flex-wrap:wrap;gap:5px;padding:12px 15px;background:#fff;border:1px solid #e5e8ed;border-radius:8px;font-size:11px;color:#7b8593;margin:0}
.integration-settings-link>.ico{width:15px;height:15px;color:#a58a55;margin-right:3px}
@media(min-width:1500px){.page:has(.integration-page){max-width:1340px}.integration-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1180px){.integration-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.integration-card{padding:16px 13px 13px;gap:12px}.integration-card-title h3{font-size:11px}.integration-logo{width:36px;height:36px}.integration-card-top{gap:8px}.integration-card-bottom{gap:5px}.integration-status{font-size:8.5px}}
@media(min-width:901px) and (max-width:1100px){.integration-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.integration-description{font-size:11px}.integration-count-line>span{font-size:9px}.integration-demo-controls{grid-template-columns:120px 180px 150px}}
@media(max-width:900px){.integration-page{gap:19px}.integration-page-head h1{font-size:28px}.integration-page-head p{font-size:12px!important}.integration-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.integration-card{padding:19px 17px 14px}.integration-logo{width:42px;height:42px}.integration-card-title h3{font-size:12px}.integration-status{font-size:10px}.integration-card-bottom .btn{min-height:36px;font-size:11px}.integration-filters{flex-wrap:nowrap;overflow:auto;scrollbar-width:thin;padding:2px 1px 7px;overscroll-behavior-x:contain}.integration-filters .chip{flex:none;min-height:36px}.integration-drawer-head .icon-button{min-width:40px;min-height:40px}}
@media(max-width:600px){.integration-page-head{align-items:flex-start}.integration-page-head>.btn{font-size:10px;padding:8px 9px;min-height:35px;align-self:flex-start}.integration-page-head>.btn .ico{display:none}.integration-page-head>div{flex:1;min-width:0}.integration-page-head p{font-size:11px!important;margin-top:7px!important}.integration-page-head .eyebrow{font-size:8px;letter-spacing:1px}.integration-page-head h1{font-size:25px}.integration-page-head{gap:12px}.integration-grid{grid-template-columns:minmax(0,1fr);gap:12px}.integration-card{min-height:222px;padding:20px 18px 15px}.integration-card-title h3{font-size:14px}.integration-card-title p{font-size:11px}.integration-description{font-size:12px;line-height:1.75}.integration-card-bottom .btn{min-height:38px;font-size:12px;padding:7px 13px}.integration-card .integration-status{font-size:10px}.integration-tag{font-size:10px}.integration-category{font-size:10px}.integration-request-card{min-height:220px}.integration-search>.ico{top:16px}.integration-search .input{font-size:16px;padding-right:12px}.integration-search>span{display:none}.integration-count-line{gap:10px;padding-bottom:14px}.integration-count-line p{font-size:11px;gap:6px}.integration-count-line>span{font-size:10px}.integration-attention-link{margin-left:0;font-size:9px}.integration-section-head h2{font-size:13px}.integration-section-head>span{font-size:9px}.integration-demo{margin-top:-8px;margin-bottom:-7px}.integration-demo-controls{width:100%;grid-template-columns:minmax(0,1fr);padding:13px}.integration-demo[open]{justify-self:stretch}.integration-demo-controls .input{font-size:16px}.integration-demo-controls p{grid-column:auto}.integration-empty{padding:45px 20px}.integration-empty h2{font-size:19px}.integration-empty p{font-size:12px}.integration-drawer-body{padding:20px 19px}.integration-drawer-head{padding:21px 18px 18px}.integration-drawer-foot{padding:15px 19px max(18px,env(safe-area-inset-bottom))}.integration-permission-row{padding:19px 0}.integration-permission-row input{height:38px;width:44px}.integration-modal{padding:23px 20px}.integration-modal h2{font-size:23px}.integration-modal .input{font-size:16px}.integration-modal .btn{min-height:42px}.integration-log-row p{font-size:10px}.integration-footer p{font-size:10px}.integration-footer p:first-child{align-items:flex-start}.integration-owner-note{font-size:10px;max-width:125px}.integration-menu summary{height:32px}.integration-pagination p,.integration-pagination>span{font-size:10px}.integration-request-table{table-layout:auto}}
@media(prefers-reduced-motion:reduce){.integration-page *, .integration-drawer *, .integration-modal *{animation:none!important;transition:none!important}}
/* Readability pass: supporting copy remains legible against white surfaces. */
.integration-card-title p,.integration-description,.integration-category,
.integration-section-head>span,.integration-count-line>span,.integration-search>span,
.integration-pagination p,.integration-pagination>span,.integration-footer p,
.integration-owner-note,.integration-permission-row small,.integration-connection-summary dt,
.integration-log-row p,.integration-permission-hint,.integration-demo,.integration-demo-controls p,
.integration-drawer-head p,.integration-agency-note,.integration-request-card p,
.integration-modal>p,.integration-request-meta dt{color:#68717e}
.integration-description{font-size:12px;line-height:1.7}
.integration-status.neutral{color:#707783}
.integration-status.warn{color:#8c6524}
.integration-tag{color:#68717e}
.integration-card-title h3{font-size:13px}
@media(max-width:1180px) and (min-width:901px){.integration-card-title h3{font-size:12px}}
@media(max-width:600px){.integration-card-title h3{font-size:14px}}


/* Ad Trends — additive CSS. Load after the existing portal app.css.
   White work surface, charcoal typography, restrained gold, Manrope.
   All new components are scoped with trend-*; no framework required. */
.trend-screen {
  --trend-line: #e5e7eb;
  --trend-muted: #697079;
  --trend-gold: #a67a27;
  --trend-gold-bg: #faf6eb;
  --trend-green: #247653;
  --trend-red: #b1473d;
  display: grid;
  gap: 22px;
  min-width: 0;
  color: #24262b;
  font-family: var(--font-body, Manrope, sans-serif);
}
.trend-screen *, .trend-settings *, .trend-question * { box-sizing: border-box; }
.trend-screen h1, .trend-screen h2, .trend-screen h3, .trend-screen h4 { font-family: var(--font-display, Manrope, sans-serif); }
.trend-screen p { margin: 0; }
.trend-screen button, .trend-screen select, .trend-screen input { font: inherit; }
.trend-screen .ico, .trend-settings .ico, .trend-question .ico { width: 17px; height: 17px; flex: none; }
.trend-screen .page-head { align-items: flex-start; gap: 20px; }
.trend-page-head h1 { font-size: 30px; letter-spacing: -.9px; margin: 6px 0; }
.trend-page-head p { max-width: 630px; font-size: 14px; line-height: 1.7; color: var(--trend-muted); }
.trend-page-head .eyebrow { font-size: 10px; letter-spacing: .13em; color: var(--trend-gold); }
.trend-refresh { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.trend-refresh > span { display: grid; font-size: 10px; color: var(--trend-muted); gap: 3px; }
.trend-refresh time { color: #34383e; font-size: 12px; }
.trend-refresh .btn { min-height: 38px; font-size: 12px; }
.trend-demo { font-size: 11px; color: var(--trend-muted); margin-top: -12px; }
.trend-demo > summary { cursor: pointer; width: fit-content; min-height: 28px; display: list-item; padding: 5px 0; }
.trend-demo > div { display: flex; flex-wrap: wrap; align-items: end; gap: 18px; background: #fff; border: 1px dashed var(--trend-line); border-radius: 10px; padding: 16px; }
.trend-demo label { min-width: 220px; flex: 1; }
.trend-demo p { max-width: 290px; font-size: 12px; line-height: 1.7; }
.trend-toolbar { display: flex; align-items: stretch; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.trend-window-switch { display: flex; align-items: center; gap: 4px; padding: 5px; background: #fff; border: 1px solid var(--trend-line); border-radius: 10px; min-width: 0; }
.trend-window-switch button { padding: 11px 13px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #626872; font-size: 12px; font-weight: 650; white-space: nowrap; cursor: pointer; }
.trend-window-switch button[aria-pressed="true"] { color: #725319; background: #faf3e3; border-color: #e6d5ac; }
.trend-window-switch button:hover { background: #f6f6f5; }
.trend-window-switch button[aria-pressed="true"]:hover { background: #faf3e3; }
.trend-campaign-filter { display: flex; align-items: center; position: relative; min-width: 240px; max-width: 100%; flex: 0 1 300px; }
.trend-campaign-filter > .ico { position: absolute; left: 13px; color: #747a82; pointer-events: none; }
.trend-campaign-filter .input { padding-left: 38px; min-height: 48px; font-size: 12px; border-color: var(--trend-line); }
.trend-period-note { margin-top: -10px !important; font-size: 11px; color: var(--trend-muted); line-height: 1.8; }
.trend-period-note b { color: #454a53; font-weight: 600; }
.trend-period-note > span { padding: 0 8px; }
.trend-cycle-banner { display: flex; align-items: center; gap: 14px; padding: 17px 20px; background: #fff; border: 1px solid var(--trend-line); border-left: 3px solid #bc964c; border-radius: 9px; }
.trend-cycle-banner > .ico { color: var(--trend-gold); width: 21px; height: 21px; }
.trend-cycle-banner > div { flex: 1; min-width: 0; }
.trend-cycle-banner p { font-size: 13px; line-height: 1.65; }
.trend-cycle-banner span { display: block; font-size: 11px; color: var(--trend-muted); margin-top: 3px; }
.trend-link { display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 0; background: transparent; color: #8a641f; font-size: 12px; font-weight: 650; cursor: pointer; padding: 6px 0; min-height: 34px; }
.trend-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.trend-section-nav { display: flex; gap: 24px; border-bottom: 1px solid #dddfe3; overflow: auto; max-width: 100%; }
.trend-section-nav button { background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 10px 0 13px; color: #626872; cursor: pointer; font-weight: 650; font-size: 12px; white-space: nowrap; flex: none; }
.trend-section-nav button:first-child { color: #826022; border-color: #b28a3e; }
.trend-section-nav button:hover { color: #926b23; }
.trend-section { min-width: 0; display: grid; gap: 17px; padding-top: 7px; scroll-margin-top: 95px; }
.trend-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.trend-kicker { display: block; font-size: 10px; font-weight: 700; letter-spacing: .09em; color: #858080; text-transform: uppercase; margin-bottom: 7px; }
.trend-section-heading h2 { font-size: 20px; font-weight: 750; letter-spacing: -.5px; line-height: 1.4; }
.trend-section-heading > span { color: var(--trend-muted); font-size: 11px; }
.trend-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.trend-stat { padding: 18px 20px 15px; border: 1px solid var(--trend-line); border-radius: 10px; background: #fff; min-width: 0; }
.trend-stat-label { display: flex; justify-content: space-between; gap: 5px; align-items: center; font-size: 11px; font-weight: 650; color: #636974; min-height: 23px; }
.trend-help { display: inline-grid; place-items: center; width: 25px; height: 25px; border: 0; border-radius: 5px; background: transparent; color: #8f949c; cursor: pointer; flex: none; }
.trend-help .ico { width: 14px; height: 14px; }
.trend-help:hover { color: #876124; background: #faf4e6; }
.trend-stat-values { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 8px 0 12px; }
.trend-stat-values strong { font-size: clamp(23px,2.2vw,32px); letter-spacing: -1px; font-weight: 750; line-height: 1.1; font-variant-numeric: tabular-nums; }
.trend-stat-values > span { font-size: 10px; color: #7a8088; }
.trend-stat-values > span b { font-weight: 600; color: #5f6670; }
.trend-change { display: inline-flex; align-items: baseline; gap: 3px; font-size: 10.5px; line-height: 1.7; font-weight: 600; color: #686f78; }
.trend-change.good { color: #247653; }
.trend-change.bad { color: #b1473d; }
.trend-change.neutral { color: #68717d; }
.trend-stat-note { display: block; font-size: 10px; color: #7a8088; margin-top: 3px; }
.trend-method { font-size: 11px; color: #727983; line-height: 1.8; }
.trend-method b { color: #3f454d; }
.trend-method .trend-help { vertical-align: middle; }
.trend-badge { display: inline-flex; align-items: center; gap: 5px; width: fit-content; max-width: 100%; font-size: 10px; padding: 5px 8px; line-height: 1.35; border-radius: 5px; font-weight: 650; color: #636a74; background: #f1f2f4; }
.trend-badge.good { color: #237653; background: #eaf5ee; }
.trend-badge.warn { color: #906a23; background: #fbf2df; }
.trend-badge.bad { color: #ad493f; background: #fbefec; }
.trend-badge.info { color: #426f88; background: #eef4f7; }
.trend-campaign-stack { display: grid; gap: 20px; }
.trend-screen .trend-campaign { background: #fff; border: 1px solid var(--trend-line); border-radius: 12px; padding: 23px 25px 0; overflow: visible; box-shadow: none; }
.trend-campaign-head { display: flex; gap: 14px; justify-content: space-between; align-items: center; }
.trend-campaign-head h3 { font-size: 19px; letter-spacing: -.45px; margin: 0 0 8px; }
.trend-campaign-head > div:first-child > div { display: flex; align-items: center; gap: 10px; color: #757b83; font-size: 11px; }
.trend-campaign-head > div:last-child { max-width: 250px; text-align: right; }
.trend-campaign-summary { margin: 14px 0 20px !important; font-size: 13px; line-height: 1.75; color: #5b616b; max-width: 88ch; }
.trend-campaign-content { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.3fr); gap: 32px; padding-bottom: 20px; }
.trend-comparison { min-width: 0; }
.trend-compare-header, .trend-compare-row { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(0,.8fr) minmax(0,.8fr); gap: 10px; align-items: center; }
.trend-compare-header { padding-bottom: 10px; color: #8a8f97; font-size: 10px; }
.trend-compare-header > :not(:first-child), .trend-compare-row > :not(:first-child) { text-align: right; }
.trend-compare-row { padding: 10px 0; border-top: 1px solid #eff0f2; font-size: 12px; }
.trend-compare-row > span:first-child { font-size: 11px; color: #5c626c; }
.trend-compare-row strong { font-weight: 650; font-variant-numeric: tabular-nums; }
.trend-compare-row > span:last-child { font-variant-numeric: tabular-nums; color: #7e848d; }
.trend-compare-row small { display: block; color: #99804d; font-size: 9px; margin-top: 3px; line-height: 1.5; }
.trend-comparison > p { color: #8a8f97; font-size: 9.5px; line-height: 1.7; margin-top: 11px; }
.trend-chart { min-width: 0; margin: 0; padding-top: 2px; }
.trend-chart figcaption { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 11px; color: #6d747d; }
.trend-chart figcaption b { display: block; color: #a0a4aa; font-size: 10px; font-weight: 500; margin-top: 4px; }
.trend-chart figcaption i { display: inline-block; width: 9px; height: 9px; background: #f0e4c9; border-radius: 2px; margin-right: 5px; }
.trend-chart svg { width: 100%; height: auto; margin-top: 12px; display: block; overflow: visible; }
.trend-chart-grid { stroke: #eeeff1; stroke-width: 1; }
.trend-chart-axis { fill: #858b94; font: 11px var(--font-body, Manrope, sans-serif); }
.trend-chart-line { fill: none; stroke: #b99042; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.trend-chart-point { fill: #b99042; }
.trend-chart-recent { fill: #faf3e4; }
.trend-chart > p { font-size: 9px; color: #90959e; line-height: 1.6; margin-top: 5px; }
.trend-chart-data summary { font-size: 9px; color: #857045; cursor: pointer; min-height: 24px; padding-top: 4px; }
.trend-chart-data .trend-table-wrap { max-height: 240px; overflow: auto; }
.trend-campaign-foot { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px; background: #fafafa; padding: 17px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.trend-campaign-foot > div { padding-left: 14px; border-left: 2px solid #ece4d3; }
.trend-campaign-foot p { font-size: 11px; line-height: 1.8; color: #636a73; }
.trend-campaign-foot .trend-badge { margin-bottom: 4px; margin-right: 4px; }
.trend-card-actions { display: flex; gap: 15px; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 15px 0; }
.trend-card-actions > span { font-size: 10px; color: #8a8f96; }
.trend-low-data { display: inline-flex; align-items: center; gap: 6px; color: #92702b !important; }
.trend-card-actions .btn { font-size: 11px; border-radius: 6px; min-height: 35px; white-space: normal; }
.trend-panel-intro { font-size: 13px; color: #4e555f; padding: 22px 24px; line-height: 1.9; }
.trend-panel-intro small { color: #7b828c; font-size: 10px; }
.trend-table-wrap { max-width: 100%; min-width: 0; overflow: auto; scrollbar-width: thin; }
.trend-screen .trend-table-wrap table { border-collapse: collapse; width: 100%; font-size: 11px; }
.trend-screen .trend-table-wrap th { font: 650 10px var(--font-body, Manrope, sans-serif); text-transform: none; letter-spacing: 0; padding: 12px 14px; color: #80868e; background: #fbfbfc; text-align: left; white-space: nowrap; border-bottom: 1px solid #eceef0; }
.trend-screen .trend-table-wrap td { padding: 15px 14px; border-bottom: 1px solid #eceef0; vertical-align: middle; color: #4b525c; font-variant-numeric: tabular-nums; }
.trend-screen .trend-table-wrap td b { display: block; color: #343a43; font-weight: 650; }
.trend-screen .trend-table-wrap td small, .trend-screen .trend-table-wrap td em { display: block; font-size: 9px; font-style: normal; line-height: 1.7; color: #8a9099; margin-top: 3px; }
.trend-screen .trend-table-wrap td em { color: #8b723c; }
.trend-quality-table { min-width: 940px; }
.trend-quality-table td:first-child { min-width: 190px; max-width: 210px; position: relative; padding-left: 45px !important; }
.trend-rank { position: absolute; top: 20px; left: 16px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; background: #f5f0e4; color: #9b793b; font-size: 10px; }
.trend-quality-cost { font-size: 15px; font-weight: 700; color: #343a43 !important; }
.trend-example { margin: 18px 24px 24px; border-left: 2px solid #c8a35d; background: #faf8f3; padding: 15px 18px; }
.trend-example p { font-size: 12px; line-height: 1.9; color: #5e6269; }
.trend-example small { display: block; margin-top: 8px; font-size: 9px; color: #938977; }
.trend-screen .trend-cohort-panel, .trend-screen .trend-quality-panel, .trend-screen .trend-early, .trend-screen .trend-report { box-shadow: none; border: 1px solid var(--trend-line); border-radius: 12px; background: #fff; min-width: 0; }
.trend-cohort-intro { padding: 22px 24px; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.trend-cohort-intro b { font-size: 13px; }
.trend-cohort-intro p { margin-top: 5px; font-size: 11px; color: #787e88; }
.trend-cohort-intro > span { max-width: 200px; font-size: 10px; line-height: 1.7; color: #9b8048; }
.trend-cohort-intro i { width: 9px; height: 9px; background: #f7eccf; display: inline-block; margin-right: 6px; }
.trend-cohort-table { min-width: 1050px; }
.trend-cohort-table .developing td { background: #fffcf5; }
.trend-cohort-table .developing td:first-child { box-shadow: inset 2px 0 #d9ba7b; }
.trend-provisional { font-size: 10px; color: #a38d63; font-style: italic; }
.trend-footnote { padding: 15px 24px; font-size: 10px; line-height: 1.85; color: #858b93; }
.trend-early { padding: 24px; }
.trend-early > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.trend-early h3 { font-size: 17px; letter-spacing: -.4px; }
.trend-early > p { font-size: 11px; line-height: 1.85; color: #7e848c; margin: 12px 0 18px; }
.trend-early-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.trend-early-grid article { min-width: 0; padding: 0 16px; border-left: 1px solid #eceef1; }
.trend-early-grid article:first-child { padding-left: 0; border-left: 0; }
.trend-early-grid h4 { font-size: 11px; color: #6f7680; margin: 0 0 12px; font-weight: 600; }
.trend-early-grid b { font-size: 25px; font-weight: 700; letter-spacing: -.6px; display: block; }
.trend-early-grid div > span { font-size: 9px; color: #90969e; }
.trend-early-grid p { margin: 11px 0; font-size: 9px; line-height: 1.8; color: #868d97; }
.trend-early > .trend-footnote { padding: 0; margin: 20px 0 0; }
.trend-tracking { padding: 22px 24px; border: 1px solid #eadbbd; border-radius: 11px; background: #fffcf6; display: grid; gap: 16px; }
.trend-tracking > header { display: flex; align-items: start; gap: 12px; color: #98733b; }
.trend-tracking > header .ico { margin-top: 3px; }
.trend-tracking h2 { font-size: 16px; }
.trend-tracking header p { font-size: 11px; margin-top: 4px; color: #9b8c72; }
.trend-tracking > div { display: flex; align-items: center; gap: 18px; justify-content: space-between; border-top: 1px solid #efe4ce; padding-top: 15px; }
.trend-tracking > div p { font-size: 12px; line-height: 1.8; flex: 1; }
.trend-tracking > div p span { display: block; font-size: 11px; color: #8d8170; }
.trend-tracking .trend-link { flex: none; }
.trend-report-layout { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 20px; align-items: start; }
.trend-report { padding: 25px 28px; }
.trend-report > header { display: flex; gap: 13px; align-items: center; padding-bottom: 22px; border-bottom: 1px solid #eceef0; margin-bottom: 24px; }
.trend-report-mark { display: inline-grid; place-items: center; width: 38px; height: 42px; background: #f7f2e6; color: #a47d37; border-radius: 8px; flex: none; }
.trend-report header h3 { font-size: 15px; margin: 0; }
.trend-report header p { font-size: 10px; color: #8d9299; margin-top: 5px; }
.trend-report-copy { font-size: 13px; line-height: 1.9; color: #646a74; }
.trend-report-copy > p { margin: 0 0 24px; }
.trend-report-copy section { margin: 24px 0; }
.trend-report-copy section h3 { color: #33383f; font-size: 14px; margin-bottom: 9px; }
.trend-report-copy section p { margin-bottom: 8px; }
.trend-report-copy b { color: #555c66; font-weight: 650; }
.trend-proposals { margin-top: 26px; padding-top: 22px; border-top: 1px solid #e9ebee; }
.trend-proposals h3 { font-size: 14px; }
.trend-proposals > div { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 0; border-bottom: 1px solid #edf0f2; }
.trend-proposals > div > span { display: grid; gap: 6px; flex: 1; }
.trend-proposals b { font-size: 12px; }
.trend-proposals small { font-size: 10px; color: #848b95; }
.trend-proposals .btn { white-space: normal; font-size: 10px; padding: 9px 10px; }
.trend-proposals > p { font-size: 10px; color: #9298a1; margin-top: 13px; }
.trend-report-aside { display: grid; gap: 18px; }
.trend-report-aside .panel { padding: 20px; border: 1px solid var(--trend-line); box-shadow: none; background: #fff; }
.trend-report-aside h3 { font-size: 13px; margin-bottom: 14px; }
.trend-report-aside .panel > button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; background: none; border: 0; border-bottom: 1px solid #eceef0; padding: 13px 0; cursor: pointer; color: #535b65; text-align: left; }
.trend-report-aside .panel > button:hover { color: #96732d; }
.trend-report-aside button > span { display: grid; grid-template-columns: 17px 1fr; align-items: center; gap: 4px 8px; }
.trend-report-aside button b { font-size: 12px; }
.trend-report-aside button small { grid-column: 2; font-size: 9px; color: #959ba4; }
.trend-report-aside .panel > p { font-size: 9px; line-height: 1.8; color: #9096a0; margin-top: 14px; }
.trend-reading-note { padding: 20px; border-left: 2px solid #ccb17c; background: #f7f4ed; border-radius: 0 8px 8px 0; }
.trend-reading-note h3 { font-size: 16px; line-height: 1.6; }
.trend-reading-note p { font-size: 11px; color: #827968; line-height: 1.85; margin-top: 12px; }
.trend-provenance { color: #898f98; font-size: 10px; line-height: 1.9; border-top: 1px solid #dfe3e7; padding-top: 18px; }
.trend-provenance summary { display: flex; align-items: center; gap: 8px; cursor: pointer; color: #626b77; font-weight: 650; font-size: 11px; }
.trend-provenance details div { margin-top: 14px; padding: 20px; background: #fff; border: 1px solid #e5e8ec; border-radius: 8px; }
.trend-provenance details p { margin-bottom: 12px; }
.trend-provenance > p { margin-top: 15px; }
.trend-empty { min-height: 380px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 45px 24px; }
.trend-empty > span { display: grid; place-items: center; width: 55px; height: 55px; border-radius: 12px; color: #a78139; background: #f7f2e7; margin-bottom: 20px; }
.trend-empty > span .ico { width: 24px; height: 24px; }
.trend-empty h2 { font-size: 22px; line-height: 1.5; max-width: 470px; }
.trend-empty p { max-width: 430px; font-size: 13px; color: #8b919a; line-height: 1.9; margin: 14px 0 24px; }
.trend-settings { display: grid; gap: 18px; }
.trend-settings-intro h3 { font-size: 18px; line-height: 1.5; }
.trend-settings-intro p, .trend-question > p { color: #7f8791; font-size: 12px; line-height: 1.8; }
.trend-calculated { padding: 19px; border: 1px solid #e6e9ed; border-radius: 9px; background: #fafbfd; }
.trend-calculated > span { color: #7c848e; font-size: 12px; display: block; }
.trend-calculated > strong { font-size: 30px; display: block; margin: 4px 0; }
.trend-calculated p { font-size: 11px; color: #8b929c; }
.trend-calculated .trend-badge { display: inline-flex; font-size: 10px; margin: 9px 0; }
.trend-calculated small { display: block; color: #8e949c; font-size: 10px; line-height: 1.8; }
.trend-settings fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 13px; min-width: 0; }
.trend-settings legend { font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.trend-settings fieldset > p { font-size: 11px; color: #858b94; margin: 0; }
.trend-settings-range { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.trend-settings .input, .trend-question .input { font-size: 14px; }
.trend-switch { display: flex; gap: 10px; align-items: center; padding: 13px 0; font-size: 12px; line-height: 1.6; color: #656f7a; }
.trend-switch input { appearance: none; width: 36px; height: 21px; background: #d5d9df; border-radius: 20px; flex: none; position: relative; cursor: pointer; margin: 0; }
.trend-switch input:before { content: ''; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; background: #fff; border-radius: 50%; box-shadow: 0 1px 2px #0002; transition: transform .15s; }
.trend-switch input:checked { background: #b18a3e; }
.trend-switch input:checked:before { transform: translateX(15px); }
.trend-settings fieldset:disabled { opacity: .65; }
.trend-settings-audit { font-size: 10px; color: #8b929c; line-height: 1.8; margin: 12px 0 18px; }
.trend-form-error { font-size: 12px; background: #fff1ef; border-radius: 6px; padding: 10px 12px; color: #b24a3d; line-height: 1.7; }
.trend-question form { display: grid; gap: 15px; }
.trend-question .msg p { margin: 10px 0; line-height: 1.8; }
.trend-question-response .btn { margin-top: 15px; }
.trend-explanation p { font-size: 14px; color: #646f7b; line-height: 1.95; }
.trend-explanation .btn { margin-top: 16px; }
.trend-agency-cell { min-width: 190px; max-width: 230px; white-space: normal; }
.trend-agency-cell > b { display: block; font-size: 13px; }
.trend-agency-cell .trend-change { display: block; margin: 4px 0; font-size: 10px; }
.trend-agency-attention { min-width: 0; }
.trend-agency-attention .panel-head > span { font-size: 11px; color: #8a919b; }
.trend-agency-attention article { padding: 18px 23px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #eaeef1; }
.trend-agency-attention h3 { font-size: 14px; margin: 7px 0; }
.trend-agency-attention p { font-size: 12px; color: #7d8590; line-height: 1.8; margin: 0; }
.trend-agency-attention .btn { flex: none; }
.trend-screen [hidden], .trend-settings [hidden], .trend-question [hidden] { display: none !important; }
.trend-screen :focus-visible, .trend-settings :focus-visible { outline: 2px solid #bc9444; outline-offset: 3px; }
@media (min-width: 1650px) { .trend-stats { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 1200px) {
  .trend-report-layout { grid-template-columns: minmax(0,1fr) 225px; }
  .trend-campaign-content { gap: 20px; }
  .trend-stat { padding: 16px; }
  .trend-stat-values { display: grid; gap: 7px; }
  .trend-window-switch button { font-size: 11px; padding: 10px; }
}
@media (max-width: 1050px) and (min-width:901px) {
  .trend-campaign-content { grid-template-columns: minmax(0,1fr); }
  .trend-early-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 23px 0; }
  .trend-early-grid article:nth-child(odd) { border-left: 0; padding-left: 0; }
  .trend-report-layout { grid-template-columns: minmax(0,1fr); }
  .trend-report-aside { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .trend-screen { gap: 20px; }
  .trend-section { scroll-margin-top: 140px; }
  .trend-page-head h1 { font-size: 28px; }
  .trend-toolbar { align-items: stretch; }
  .trend-window-switch { flex: 1 1 100%; }
  .trend-window-switch button { flex: 1; }
  .trend-campaign-filter { flex: 1; max-width: none; }
  .trend-stats { gap: 10px; }
  .trend-report-layout { grid-template-columns: minmax(0,1fr); }
  .trend-report-aside { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 650px) {
  .trend-page-head { display: block !important; }
  .trend-page-head h1 { font-size: 27px; }
  .trend-page-head p { font-size: 13px; }
  .trend-refresh { margin-top: 16px; justify-content: space-between; }
  .trend-refresh > span { display: block; font-size: 11px; }
  .trend-refresh time { margin-left: 3px; }
  .trend-window-switch { display: grid; grid-template-columns: minmax(0,1fr); }
  .trend-window-switch button { text-align: left; font-size: 12px; padding: 10px 13px; }
  .trend-window-switch button[aria-pressed=true]:after { content: '✓'; float: right; }
  .trend-period-note { font-size: 10px; }
  .trend-cycle-banner { gap: 10px; padding: 15px; flex-wrap: wrap; align-items: start; }
  .trend-cycle-banner > .ico { margin-top: 4px; }
  .trend-cycle-banner > div { flex: 1 1 calc(100% - 35px); }
  .trend-cycle-banner .trend-link { margin-left: 31px; padding: 0; min-height: 28px; }
  .trend-cycle-banner p { font-size: 12px; }
  .trend-cycle-banner span { font-size: 10px; }
  .trend-section-nav { gap: 18px; }
  .trend-section-nav button { min-height: 44px; }
  .trend-section-heading h2 { font-size: 19px; max-width: 27ch; }
  .trend-section-heading .btn { min-height: 40px; }
  .trend-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .trend-stat { padding: 13px; }
  .trend-stat:last-child { grid-column: 1 / -1; }
  .trend-stat:last-child .trend-stat-values { display: flex; }
  .trend-stat-label { align-items: start; font-size: 10px; min-height: 30px; }
  .trend-stat-values strong { font-size: 26px; }
  .trend-stat-values > span { font-size: 9px; }
  .trend-change { font-size: 9px; }
  .trend-stat-note { font-size: 9px; line-height: 1.7; }
  .trend-stat .trend-help { width: 19px; height: 19px; }
  .trend-method { font-size: 10px; }
  .trend-screen .trend-campaign { padding: 19px 17px 0; }
  .trend-campaign-head { flex-direction: column; align-items: start; }
  .trend-campaign-head > div:last-child { text-align: left; max-width: none; }
  .trend-campaign-head h3 { font-size: 18px; }
  .trend-campaign-summary { font-size: 12px; }
  .trend-campaign-content { grid-template-columns: minmax(0,1fr); gap: 23px; }
  .trend-compare-row { padding: 11px 0; }
  .trend-compare-row small { font-size: 9px; }
  .trend-chart-data summary { min-height: 30px; }
  .trend-chart figcaption { font-size: 10px; }
  .trend-campaign-foot { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .trend-campaign-foot p { font-size: 11px; }
  .trend-card-actions { flex-direction: column; align-items: stretch; }
  .trend-card-actions .btn { min-height: 43px; text-align: center; }
  .trend-panel-intro { padding: 18px; font-size: 12px; }
  .trend-example { margin: 16px; padding: 13px; }
  .trend-example p { font-size: 11px; }
  .trend-cohort-intro { padding: 18px; flex-direction: column; align-items: start; gap: 12px; }
  .trend-cohort-intro > span { max-width: none; }
  .trend-footnote { padding: 14px 17px; }
  .trend-early { padding: 18px; }
  .trend-early > header { flex-direction: column; align-items: start; }
  .trend-early h3 { font-size: 16px; }
  .trend-early-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 0; }
  .trend-early-grid article { padding: 0 12px; }
  .trend-early-grid article:nth-child(odd) { padding-left: 0; border-left: 0; }
  .trend-early-grid b { font-size: 24px; }
  .trend-tracking { padding: 18px; }
  .trend-tracking > div { flex-direction: column; align-items: start; gap: 6px; }
  .trend-tracking h2 { font-size: 15px; }
  .trend-report { padding: 20px; }
  .trend-report-copy { font-size: 12px; }
  .trend-report-copy section { margin: 24px 0; }
  .trend-proposals > div { flex-direction: column; align-items: stretch; }
  .trend-proposals .btn { min-height: 40px; }
  .trend-report-aside { grid-template-columns: minmax(0,1fr); }
  .trend-screen .input, .trend-settings .input, .trend-question .input { font-size: 16px; }
  .trend-agency-attention article { padding: 17px; flex-direction: column; align-items: start; }
  .trend-settings-range { gap: 10px; }
}
@media (prefers-reduced-motion:reduce) { .trend-screen *, .trend-settings * { scroll-behavior: auto !important; transition: none !important; } }
/* Small-screen records: retain every column without a horizontal data scroller. */
@media (max-width:650px) {
  .trend-screen .trend-quality-table, .trend-screen .trend-cohort-table { display:block; min-width:0; width:100%; }
  .trend-quality-table thead, .trend-cohort-table thead { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
  .trend-quality-table tbody, .trend-cohort-table tbody { display:block; }
  .trend-quality-table tbody tr, .trend-cohort-table tbody tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border-top:1px solid var(--line); padding:12px; gap:0 12px; }
  .trend-screen .trend-quality-table tbody td, .trend-screen .trend-cohort-table tbody td { display:block; min-width:0; padding:9px 3px; border:0; text-align:left; white-space:normal; overflow-wrap:anywhere; }
  .trend-quality-table tbody td:first-child, .trend-cohort-table tbody td:first-child, .trend-cohort-table tbody td:last-child { grid-column:1/-1; }
  .trend-quality-table tbody td::before, .trend-cohort-table tbody td::before { display:block; margin-bottom:4px; font-size:10px; font-weight:600; color:var(--muted); }
  .trend-quality-table tbody td:nth-child(2)::before { content:'Leads / cost per lead'; }
  .trend-quality-table tbody td:nth-child(3)::before { content:'Qualified'; }
  .trend-quality-table tbody td:nth-child(4)::before { content:'Booked'; }
  .trend-quality-table tbody td:nth-child(5)::before { content:'Attended'; }
  .trend-quality-table tbody td:nth-child(6)::before { content:'Closed'; }
  .trend-quality-table tbody td:nth-child(7)::before { content:'Revenue'; }
  .trend-quality-table tbody td:nth-child(8)::before { content:'Cost per customer'; }
  .trend-cohort-table tbody td:nth-child(2)::before { content:'Leads'; }
  .trend-cohort-table tbody td:nth-child(3)::before { content:'Qualified'; }
  .trend-cohort-table tbody td:nth-child(4)::before { content:'Booked'; }
  .trend-cohort-table tbody td:nth-child(5)::before { content:'Closed so far'; }
  .trend-cohort-table tbody td:nth-child(6)::before { content:'Revenue so far'; }
  .trend-cohort-table tbody td:nth-child(7)::before { content:'Close rate'; }
  .trend-cohort-table tbody td:nth-child(8)::before { content:'Cost per customer'; }
  .trend-quality-table .trend-rank { float:left; margin-right:9px; }
}


/* Expanded provider catalog. Reuses .integration-* components and portal tokens. */
.integration-logo {
  display: grid;
  place-items: center;
  position: relative;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  color: var(--muted);
}
.integration-logo .integration-logo-initials {
  grid-area: 1 / 1;
  font: 700 17px/1 var(--font-body);
  letter-spacing: -.04em;
  color: #5d6570;
}
.integration-logo img {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  filter: none;
  mix-blend-mode: normal;
  transform: none;
}
.integration-logo.has-logo img { opacity: 1; }
.integration-logo.has-logo .integration-logo-initials { visibility: hidden; }
.integration-logo img[hidden] { display: none !important; }
.integration-directory > .integration-section-head { padding-bottom: 16px; border-bottom: 1px solid var(--line); align-items: flex-end; }
.integration-directory .eyebrow { display: block; font-size: 10px; margin-bottom: 5px; color: var(--muted); }
.integration-category-section { margin-top: 28px; min-width: 0; }
.integration-category-section > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.integration-category-section > header h3 { font-size: 15px; font-weight: 700; }
.integration-category-section > header span { font-size: 12px; color: var(--muted); }
.integration-request-end { margin-top: 20px; }
.integration-filters .chip { white-space: normal; text-align: left; line-height: 1.4; }
.integration-card-title { min-width: 0; }
.integration-card-title h3 { overflow-wrap: anywhere; }
.integration-count-line > p { flex-wrap: wrap; }
.integration-pagination p { max-width: 60ch; }
.integration-category-section .integration-card { min-height: 228px; }
@media (max-width: 600px) {
  .integration-category-section > header { align-items: flex-start; }
  .integration-category-section > header span { white-space: nowrap; }
  .integration-section-head { flex-wrap: wrap; }
  .integration-logo { flex-basis: 48px; width: 48px; height: 48px; padding: 6px; }
  .integration-filters { max-height: none; }
}


/* Full contact pages. Scoped to cp-* to preserve the existing portal screens.
   Inbound/CRM and AI-sourced records share the Leads directory. */
.page.contact-page { max-width:1440px; gap:22px; padding-top:0; }
.cp-breadcrumb { display:flex; justify-content:space-between; align-items:center; gap:12px; font-size:12px; color:var(--muted); }
.cp-breadcrumb > span { display:flex; gap:10px; align-items:center; }
.cp-breadcrumb i { color:#b5b5b5; font-style:normal; }
.cp-back { display:inline-flex; align-items:center; gap:5px; text-decoration:none; font-weight:650; color:var(--muted); padding:5px 0; }
.cp-back:hover { color:var(--fg); }
.cp-page-head { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:20px; padding-bottom:24px; border-bottom:1px solid var(--line); }
.cp-identity { display:flex; align-items:center; gap:17px; min-width:0; }
.cp-identity > div { min-width:0; }
.cp-avatar { display:grid; place-items:center; flex:none; width:66px; height:66px; border-radius:17px; background:#eee9dc; color:#786127; font-size:23px; letter-spacing:-.06em; font-weight:750; border:1px solid #e5dcc6; }
.cp-name-line { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.cp-name-line h1 { font-size:30px; letter-spacing:-.045em; overflow-wrap:anywhere; }
.cp-identity p { margin:5px 0 4px; font-size:13px; color:var(--muted); overflow-wrap:anywhere; }
.cp-record-id { display:inline-flex; align-items:center; gap:6px; font-size:11px; color:var(--faint); }
.cp-record-id .ico { width:13px; height:13px; }
.cp-head-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.cp-head-actions .btn { min-height:40px; font-size:12px; padding:9px 12px; }
.cp-profile-layout { display:grid; grid-template-columns:248px minmax(0,1fr); align-items:start; gap:24px; }
.cp-facts { min-width:0; padding:22px 20px 0; background:#fff; border-radius:12px; box-shadow:none; }
.cp-facts header { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.cp-facts header h2 { font-size:14px; }
.cp-facts header .pill { font-size:10px; padding:2px 7px; }
.cp-facts dl { margin:24px 0; display:grid; gap:20px; }
.cp-fact { display:flex; align-items:flex-start; gap:10px; min-width:0; }
.cp-fact .ico { flex:none; width:15px; height:15px; margin-top:3px; color:#858585; }
.cp-fact > div { min-width:0; }
.cp-fact dt { font-size:11px; line-height:1.5; color:var(--faint); margin-bottom:3px; }
.cp-fact dd { margin:0; font-size:12px; font-weight:650; line-height:1.75; overflow-wrap:anywhere; }
.cp-fact dd a { color:var(--fg); text-decoration:none; }
.cp-fact dd a:hover { text-decoration:underline; color:var(--gold-text); }
.cp-fact small { display:block; color:var(--muted); font-size:11px; font-weight:500; line-height:1.65; margin-top:3px; }
.cp-muted { color:var(--faint); font-size:12px; font-weight:500; }
.cp-tags { border-top:1px solid var(--line); padding-top:17px; }
.cp-tags h3,.cp-customer-history h3 { font-size:11px; font-weight:700; color:var(--muted); margin-bottom:10px; }
.cp-tags > div { display:flex; flex-wrap:wrap; gap:6px; }
.cp-tags .pill { max-width:100%; overflow-wrap:anywhere; white-space:normal; font-size:10px; }
.cp-customer-history { border-top:1px solid var(--line); margin-top:20px; padding-top:17px; display:grid; gap:8px; }
.cp-customer-history span { font-size:11px; color:var(--muted); }
.cp-customer-history b { display:block; color:var(--fg); font-size:12px; }
.cp-facts footer { display:flex; align-items:center; gap:10px; border-top:1px solid var(--line); margin:22px -20px 0; padding:15px 20px; }
.cp-facts footer .ico { color:var(--muted); width:15px; }
.cp-facts footer p { font-size:10.5px; line-height:1.7; color:var(--faint); margin:0; }
.cp-facts-toggle { display:none; }
.cp-main { min-width:0; }
.cp-tabs { display:flex; align-items:center; gap:26px; margin-bottom:20px; border-bottom:1px solid var(--line); min-width:0; max-width:100%; }
.cp-tabs button { display:flex; align-items:center; gap:6px; background:none; border:0; border-bottom:2px solid transparent; border-radius:0; color:var(--muted); padding:3px 0 15px; margin-bottom:-1px; font-size:12px; font-weight:650; min-height:44px; }
.cp-tabs button.on { color:var(--fg); border-bottom-color:var(--gold); }
.cp-tabs button span,.cp-count { display:inline-grid; place-items:center; min-width:19px; height:19px; padding:0 5px; background:var(--gold-soft); color:var(--gold-text); font-size:10px; border-radius:5px; font-weight:650; }
.cp-main-content { display:grid; gap:20px; min-width:0; }
.cp-main-content > * { min-width:0; }
.cp-main-content .panel { box-shadow:none; border-radius:12px; background:#fff; border:1px solid var(--line); }
.cp-main-content .panel > header { padding:20px 22px; display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.cp-main-content h2 { font-size:15px; letter-spacing:-.025em; }
.cp-main-content header p { font-size:11.5px; color:var(--muted); margin:4px 0 0; }
.cp-main-content .cp-opportunity header { padding-bottom:14px; }
.cp-opportunity .eyebrow { font-size:9px; letter-spacing:.12em; margin-bottom:5px; }
.cp-opportunity-stats { display:grid; grid-template-columns:1fr .85fr 1fr; gap:10px; padding:0 22px 20px; }
.cp-opportunity-stats > div { display:grid; align-content:start; gap:5px; padding-top:8px; min-width:0; }
.cp-opportunity-stats > div + div { padding-left:22px; border-left:1px solid var(--line); }
.cp-opportunity-stats span { font-size:11px; color:var(--muted); }
.cp-opportunity-stats strong { font-size:28px; font-weight:750; letter-spacing:-.05em; line-height:1.2; overflow-wrap:anywhere; }
.cp-opportunity-stats strong.cp-date-number { font-size:24px; }
.cp-opportunity-stats small { font-size:10px; color:var(--faint); overflow-wrap:anywhere; }
.cp-stage-track { display:flex; justify-content:space-between; gap:8px; padding:16px 22px; border-top:1px solid var(--line); background:#fcfcfb; border-radius:0 0 12px 12px; }
.cp-stage-track > span { display:flex; align-items:center; gap:7px; color:#777; font-size:11px; position:relative; }
.cp-stage-track > span + span:before { content:''; position:absolute; top:11px; right:calc(100% + 7px); width:13px; border-top:1px solid var(--line-strong); }
.cp-stage-track i { display:grid; place-items:center; width:23px; height:23px; border-radius:7px; font-size:10px; font-style:normal; border:1px solid var(--line); color:#888; background:white; }
.cp-stage-track .ico { width:13px; height:13px; }
.cp-stage-track .current { color:var(--gold-text); font-weight:750; }
.cp-stage-track .current i { color:#735c24; background:#f3e7c9; border-color:#dcc48c; }
.cp-stage-track .complete i { color:var(--good); background:var(--good-soft); border-color:transparent; }
.cp-prospect-foot { padding:15px 22px; border-top:1px solid var(--line); font-size:12px; color:var(--muted); margin:0; }
.cp-action-banner { display:flex; align-items:center; gap:14px; padding:16px 18px; border:1px solid #eadbb6; background:#fbf7ee; border-radius:10px; }
.cp-action-icon { display:grid; place-items:center; width:34px; height:34px; border-radius:9px; background:#f0e3c2; color:#806425; flex:none; }
.cp-action-banner > div { flex:1; min-width:0; }
.cp-action-banner h3 { font-size:12px; letter-spacing:-.015em; }
.cp-action-banner p { font-size:11px; margin:3px 0 0; color:#76684c; }
.cp-action-banner .btn { min-height:34px; }
.cp-text-button { display:inline-flex; align-items:center; gap:6px; font-size:11.5px; font-weight:650; color:var(--gold-text); background:none; border:0; padding:4px 0; text-decoration:none; cursor:pointer; }
.cp-text-button:hover { text-decoration:underline; }
.cp-conversation-preview > header,.cp-full-conversation > header,.cp-activity > header,.cp-notes-page > header,.cp-approvals-page > header { border-bottom:1px solid var(--line); }
.cp-message-list { padding:12px 22px 24px; display:grid; gap:22px; }
.cp-date-divider { text-align:center; color:var(--faint); display:flex; align-items:center; gap:10px; font-size:10px; margin:7px 0 0; }
.cp-date-divider:before,.cp-date-divider:after { content:''; flex:1; height:1px; background:#ececec; }
.cp-message { display:grid; grid-template-columns:29px minmax(0,1fr); gap:11px; }
.cp-message-avatar { width:29px; height:29px; display:grid; place-items:center; border-radius:9px; background:#eeefef; color:#51565b; font-size:10px; font-weight:700; flex:none; }
.cp-message.outgoing .cp-message-avatar { background:#f4ecd9; color:#88703a; font-size:8px; }
.cp-message header { display:flex; justify-content:space-between; align-items:baseline; gap:8px; flex-wrap:wrap; padding:0; margin:0 0 6px; }
.cp-message header b { font-size:12px; }
.cp-message header span { font-size:10px; color:var(--faint); }
.cp-message p { font-size:14px; line-height:1.8; margin:0; white-space:pre-wrap; overflow-wrap:anywhere; color:var(--fg); }
.cp-message.outgoing p { background:#faf8f2; border:1px solid #efe7d4; border-radius:0 10px 10px 10px; padding:12px 14px; }
.cp-call-event { display:flex; align-items:center; justify-content:center; gap:8px; flex-wrap:wrap; font-size:12px; color:var(--muted); padding:8px; background:#fafafa; border-radius:8px; }
.cp-call-event time { font-size:10px; color:var(--faint); }
.cp-appointments header .ico { width:16px; height:16px; margin-right:8px; color:var(--muted); }
.cp-appointments article { display:flex; align-items:flex-start; gap:13px; padding:3px 22px 22px; }
.cp-appointment-icon { display:grid; place-items:center; width:38px; height:38px; border:1px solid var(--line); background:#fafafa; border-radius:9px; flex:none; }
.cp-appointments article > div { flex:1; min-width:0; }
.cp-appointments article b { font-size:12px; }
.cp-appointments article p { font-size:12px; color:var(--muted); margin:2px 0; }
.cp-appointments article small { color:var(--faint); font-size:11px; }
.cp-appointments article .pill { font-size:10px; }
.cp-small-empty { padding:6px 22px 23px; color:var(--faint); font-size:12px; line-height:1.8; }
.cp-small-empty b { color:var(--fg); font-size:12px; }
.cp-small-empty p { margin:4px 0 0; }
.cp-research > p { padding:0 22px; font-size:14px; line-height:1.8; }
.cp-research > .draft { margin:18px 22px 22px; }
.cp-review-pane .cp-small-empty { padding:20px; }
.cp-conversation-split { display:grid; grid-template-columns:minmax(0,1fr) 310px; align-items:start; }
.cp-history-pane { min-width:0; }
.cp-review-pane { min-width:0; border-left:1px solid var(--line); background:#fbfbfa; }
.cp-review-pane > header { display:grid; gap:5px; padding:20px; border-bottom:1px solid var(--line); }
.cp-review-pane h3 { font-size:14px; }
.cp-contact-approvals { display:grid; gap:0; }
.cp-review-card { min-width:0; }
.cp-review-card + .cp-review-card { border-top:1px solid var(--line); }
.cp-review-card > .cp-text-button { margin:0 20px 18px; font-size:10px; }
.cp-review-card .approval { padding:20px; border:0; background:transparent; gap:13px; }
.cp-review-card .approval-top { gap:6px; }
.cp-review-card .approval-top time { font-size:10px; }
.cp-review-card .summary { font-size:12px; line-height:1.7; }
.cp-review-card .draft { background:#fff; border:1px solid #e5e4df; border-radius:8px; padding:14px; font-size:13px; line-height:1.85; }
.cp-review-card .draft .meta { font-size:10px; border-bottom:1px solid var(--line); padding-bottom:9px; margin-bottom:12px; }
.cp-review-card .actions { gap:7px; }
.cp-review-card .actions .btn { font-size:11px; min-height:36px; padding:8px 10px; }
.cp-review-card .actions .btn.good { background:var(--gold-grad); color:#251c0c; border-color:transparent; }
.cp-review-card textarea { min-height:185px; font-size:14px; line-height:1.8; }
.cp-decision-credit { font-size:11px; margin:0 20px 20px; color:var(--faint); }
.cp-source-note { margin:0; display:flex; align-items:center; gap:7px; padding:10px 22px 20px; font-size:10px; color:var(--faint); }
.cp-source-note .ico { width:13px; height:13px; }
.cp-timeline { list-style:none; padding:12px 22px 8px; margin:0; }
.cp-timeline li { display:grid; grid-template-columns:30px minmax(0,1fr); gap:13px; padding:13px 0 24px; position:relative; }
.cp-timeline li:before { content:''; position:absolute; left:14px; top:40px; bottom:-11px; width:1px; background:var(--line); }
.cp-timeline li:last-child:before { display:none; }
.cp-timeline-dot { display:grid; place-items:center; width:29px; height:29px; background:#f6f6f4; border:1px solid var(--line); border-radius:9px; color:var(--muted); z-index:1; }
.cp-timeline-dot .ico { width:14px; height:14px; }
.cp-timeline header { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; }
.cp-timeline b { font-size:12px; }
.cp-timeline time,.cp-timeline small { font-size:10px; color:var(--faint); }
.cp-timeline p { font-size:13px; margin:5px 0 0; line-height:1.8; white-space:pre-wrap; overflow-wrap:anywhere; }
.cp-note-form { padding:22px; border-bottom:1px solid var(--line); }
.cp-note-form textarea { margin-top:6px; min-height:120px; font-size:14px; }
.cp-note-form > div { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:12px; }
.cp-form-error { margin:8px 0 0; color:var(--bad); font-size:12px; }
.cp-note { padding:20px 22px; border-bottom:1px solid var(--line); }
.cp-note:last-child { border-bottom:0; }
.cp-note header { display:flex; align-items:center; gap:10px; }
.cp-note header div { display:grid; gap:2px; }
.cp-note header b { font-size:12px; }
.cp-note header time { font-size:10px; color:var(--faint); }
.cp-note header > .pill { margin-left:auto; font-size:10px; }
.cp-note > p { margin:12px 0 0; font-size:13px; line-height:1.8; overflow-wrap:anywhere; white-space:pre-wrap; }
.cp-notes-page .cp-small-empty { padding-top:25px; }
.cp-outcome-host:empty { display:none; }
.cp-outcome-panel { padding:20px; max-width:720px; margin-left:auto; }
.cp-outcome-panel form { margin:0; }
.cp-page-note { margin:0; font-size:11px; color:var(--faint); text-align:center; }
.cp-permission-note { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--warn); padding:10px 14px; background:var(--warn-soft); border-radius:8px; }
.cp-lost-note { padding:14px 22px; background:var(--surface-2); font-size:12px; }
.cp-lost-note p { margin:5px 0 0; }
.cp-error .actions { justify-content:center; }
.cp-contact-name-link { color:inherit; text-decoration:none; }
.cp-contact-name-link:hover { color:var(--gold-text); text-decoration:underline; }
.cp-full-profile-link { display:inline-flex; align-items:center; gap:6px; color:var(--gold-text); font-size:11px; text-decoration:none; white-space:nowrap; }
.cp-full-profile-link:hover { text-decoration:underline; }
.cp-directory-source { display:inline-flex; align-items:center; gap:5px; font-size:11px; color:var(--muted); margin-top:8px; }
.cp-directory-source .ico { width:13px; height:13px; }
.cp-lead-origin { font-size:10px; font-weight:650; background:#f0f2f3; color:#59636b; border:1px solid #e8eaeb; border-radius:4px; padding:2px 6px; display:inline-block; margin-bottom:6px; }
.cp-lead-origin.inbound { background:#f6eedc; color:#866929; border-color:#eee0bf; }
.cp-open-profile-bar { display:flex; justify-content:flex-end; padding:15px 20px 0; }
.ld-origin-select { min-width:130px; }
.cp-new-no-draft { color:var(--muted); font-size:11px; margin-top:6px; }
/* Customer data isn't marketing research: maintain a meaningful empty state. */
.cp-inbound-preview { padding:20px; }
.cp-inbound-preview h2 { font-size:20px; }
.cp-inbound-preview p { font-size:13px; line-height:1.8; }
@media(min-width:1600px){ .cp-conversation-split { grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr); } }
@media(max-width:1200px){
  .cp-profile-layout { grid-template-columns:220px minmax(0,1fr); gap:18px; }
  .cp-facts { padding:20px 16px 0; }
  .cp-facts footer { margin-left:-16px; margin-right:-16px; padding-left:16px; padding-right:16px; }
  .cp-conversation-split { grid-template-columns:minmax(0,1fr); }
  .cp-review-pane { border-left:0; border-top:1px solid var(--line); }
  .cp-contact-approvals { grid-template-columns:minmax(0,1fr); }
  .cp-stage-track { gap:6px; padding:14px; }
  .cp-stage-track > span { flex-direction:column; gap:5px; font-size:10px; }
  .cp-stage-track > span + span:before { top:11px; right:calc(100% + 6px); width:25px; }
  .cp-tabs { gap:19px; }
}
@media(max-width:900px){
  .cp-profile-layout { grid-template-columns:210px minmax(0,1fr); }
  .cp-head-actions { width:100%; }
}
@media(max-width:700px){
  .page.contact-page { gap:16px; }
  .cp-breadcrumb > span { display:none; }
  .cp-page-head { gap:16px; padding-bottom:18px; }
  .cp-name-line { gap:8px; }
  .cp-name-line h1 { font-size:26px; }
  .cp-avatar { width:53px; height:53px; font-size:19px; border-radius:13px; }
  .cp-identity { gap:13px; }
  .cp-identity p { font-size:11px; }
  .cp-head-actions { gap:7px; }
  .cp-head-actions .btn { flex:1; font-size:11px; padding:9px 8px; min-height:42px; }
  .cp-head-actions .btn:first-child { flex:1.5; }
  .cp-head-actions .ico { width:14px; height:14px; }
  .cp-profile-layout { grid-template-columns:minmax(0,1fr); gap:18px; }
  .cp-facts { padding:0; }
  .cp-facts-toggle { display:flex; width:100%; justify-content:space-between; align-items:center; min-height:48px; border:0; background:none; padding:13px 16px; font-size:12px; font-weight:700; }
  .cp-facts.expanded .cp-facts-toggle .ico { transform:rotate(90deg); }
  .cp-facts-inner { display:none; padding:0 16px; }
  .cp-facts.expanded .cp-facts-inner { display:block; }
  .cp-facts-inner > header { display:none; }
  .cp-facts dl { display:grid; grid-template-columns:1fr 1fr; gap:18px 12px; }
  .cp-facts footer { margin-left:-16px; margin-right:-16px; }
  .cp-tabs { gap:0; justify-content:space-between; margin-bottom:15px; }
  .cp-tabs button { font-size:10.5px; padding-bottom:10px; gap:4px; }
  .cp-tabs button span { font-size:9px; min-width:16px; height:17px; padding:0 4px; }
  .cp-main-content { gap:16px; }
  .cp-main-content .panel > header { padding:16px; }
  .cp-main-content .cp-opportunity header { gap:10px; }
  .cp-main-content h2 { font-size:14px; }
  .cp-opportunity-stats { padding:0 16px 17px; grid-template-columns:1.1fr .9fr 1fr; gap:10px; }
  .cp-opportunity-stats > div + div { padding-left:12px; }
  .cp-opportunity-stats strong { font-size:24px; }
  .cp-opportunity-stats strong.cp-date-number { font-size:21px; }
  .cp-opportunity-stats span { font-size:10px; }
  .cp-opportunity-stats small { font-size:9px; }
  .cp-stage-track { padding:14px 16px; }
  .cp-stage-track > span + span:before { width:20px; }
  .cp-action-banner { flex-wrap:wrap; gap:10px; padding:14px; }
  .cp-action-banner > .btn { margin-left:44px; }
  .cp-message-list { padding:12px 16px 20px; gap:20px; }
  .cp-message { grid-template-columns:25px minmax(0,1fr); gap:9px; }
  .cp-message-avatar { width:25px; height:25px; font-size:9px; }
  .cp-message p { font-size:14px; line-height:1.8; }
  .cp-message header { gap:3px; }
  .cp-message header span { font-size:9px; }
  .cp-message.outgoing p { padding:11px 12px; }
  .cp-appointments article { padding:0 16px 18px; flex-wrap:wrap; }
  .cp-appointments article > .pill { margin-left:51px; }
  .cp-appointment-icon { width:35px; height:35px; }
  .cp-review-card .approval { padding:16px; }
  .cp-review-card .draft { font-size:14px; }
  .cp-review-card .actions .btn { min-height:42px; }
  .cp-note-form,.cp-note { padding:16px; }
  .cp-note-form .input { font-size:16px; }
  .cp-note-form > div { flex-wrap:wrap; }
  .cp-note-form .hint { font-size:10px; }
  .cp-timeline { padding:10px 16px; }
  .cp-timeline p { font-size:13px; }
  .cp-outcome-panel { padding:16px; }
  .cp-full-profile-link { font-size:10px; }
  .cp-permission-note { font-size:11px; }
}
@media(max-width:700px){
  .cp-appointments article { display:grid; grid-template-columns:35px minmax(0,1fr); }
  .cp-appointments article > .pill { grid-column:2; margin-left:0; justify-self:start; }
}

/* Sign-in screen ("account window" design). Everything is scoped under .lg so it can't clash with the portal. */
.lg{--lg-fg:#202124;--lg-muted:#676b71;--lg-line:#dddfe3;--lg-gold:#d1ad52;--lg-gold-deep:#84651f;--lg-bad:#b03a32;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;background:#efefed;color:var(--lg-fg);font:14px/1.55 'Manrope',Arial,Helvetica,sans-serif;-webkit-font-smoothing:antialiased}
.lg *{box-sizing:border-box}
.lg h1,.lg p{margin:0}
.lg button,.lg input{font:inherit;color:inherit}
.lg button{cursor:pointer}
.lg button:disabled{cursor:wait}
.lg button:focus-visible,.lg a:focus-visible,.lg input:focus-visible{outline:3px solid #af862b;outline-offset:4px}
.lg-icon{width:18px;height:18px;stroke:currentColor;stroke-width:1.65;fill:none;stroke-linecap:round;stroke-linejoin:round;display:block;flex:none}
.lg-mast{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px clamp(24px,4.5vw,72px);min-height:82px}
.lg-topline{display:flex;align-items:center;gap:9px;font-size:11px;font-weight:600;color:#6f716c}
.lg-topline .lg-icon{width:15px;height:15px}
.lg-eyebrow{font-size:9px;letter-spacing:.13em;text-transform:uppercase;font-weight:750;color:var(--lg-muted)}
.lg-main{flex:1;display:flex;align-items:center;justify-content:center;padding:24px 32px 57px}
.lg-window{display:grid;grid-template-columns:218px minmax(0,1fr);width:850px;max-width:100%;min-height:522px;border:1px solid #deded8;border-radius:14px;box-shadow:0 12px 40px #2c312a09;background:#fff;overflow:hidden}
.lg-nav{background:#fafaf8;padding:33px 22px;display:flex;flex-direction:column;border-right:1px solid #e5e5df}
.lg-logo{width:89px;height:35px;object-fit:contain;display:block;margin:0 7px 39px}
.lg-nav .lg-eyebrow{margin:0 10px 12px;color:#7c8074;letter-spacing:.12em}
.lg-modes{display:grid;gap:5px}
.lg-modes button{display:flex;align-items:center;gap:10px;background:none;border:0;padding:11px 10px;text-align:left;color:#777b71;border-radius:6px;font-size:12px;font-weight:600}
.lg-modes button .lg-icon{width:16px;height:16px}
.lg-modes button.on{background:#262724;color:#fff}
.lg-modes button.on .lg-icon{color:#d6b760}
.lg-modes button:hover:not(.on){background:#eeefea;color:#30322c}
.lg-caption{margin-top:auto;padding:33px 10px 0;font-size:10px;color:#81857a;line-height:1.7}
.lg-caption b{font-weight:650;color:#51554a;display:block}
.lg-shell{width:100%;padding:46px 50px 37px;align-self:center;min-width:0}
.lg-head{margin-bottom:26px}
.lg-head h1{font-size:29px;line-height:1.2;letter-spacing:-1px;font-weight:750}
.lg-head p{margin-top:10px;font-size:12px;color:var(--lg-muted);line-height:1.75}
.lg-form{display:grid;gap:20px}
.lg-fields{display:grid;gap:16px}
.lg-field{display:grid;gap:8px;min-width:0}
.lg-label{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;font-weight:700}
.lg-link{padding:3px 0;border:0;background:none;text-decoration:none;font-weight:650;color:var(--lg-fg);font-size:11px}
.lg-label .lg-link{font-weight:550;color:var(--lg-muted)}
.lg-link:hover{color:var(--lg-gold-deep);text-decoration:underline;text-underline-offset:4px}
.lg-wrap{position:relative}
.lg-input{width:100%;min-width:0;height:47px;padding:12px 14px;background:#fff;border:1px solid #d4d6da;border-radius:6px;font-size:13px;transition:border-color .15s,box-shadow .15s}
.lg-input::placeholder{color:#858991;opacity:1}
.lg-input:focus{border-color:#a27b24;outline:0;box-shadow:0 0 0 3px #c59f3e18}
.lg-input.toggle{padding-right:53px}
.lg-eye{position:absolute;right:5px;top:4px;width:39px;height:39px;border:0;background:transparent;display:grid;place-items:center;border-radius:6px;color:#74777e}
.lg-eye:hover{background:#f0f1f2;color:#232426}
.lg-alert{border:1px solid #e9bcb7;border-radius:7px;background:#fff7f6;padding:11px 13px;font-size:12px;line-height:1.65;color:#97372f}
.lg-alert.ok{border-color:#bcd9c6;background:#f2f8f4;color:#286943}
.lg-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:47px;padding:12px 20px;border-radius:6px;border:1px solid transparent;font-weight:700;font-size:13px;transition:background .15s,transform .15s;text-decoration:none;width:100%}
.lg-btn:active{transform:translateY(1px)}
.lg-btn:disabled{opacity:.7}
.lg-btn.primary{background:var(--lg-gold);color:#262318}
.lg-btn.primary:hover{background:#c4a049}
.lg-btn.google{background:#fff;color:var(--lg-fg);border-color:var(--lg-line)}
.lg-btn.google:hover{background:#f6f6f4}
.lg-btn .google-g{width:18px;height:18px}
.lg-or{display:flex;align-items:center;gap:12px;font-size:11px;color:var(--lg-muted)}
.lg-or:before,.lg-or:after{content:'';flex:1;height:1px;background:#e6e7e8}
.lg-bottom{text-align:left;font-size:11px;margin-top:20px;color:var(--lg-muted)}
.lg-bottom .lg-link{margin-left:4px}
.lg-note{font-size:10px;color:var(--lg-muted);line-height:1.6}
.lg-foot{padding:18px clamp(24px,4.5vw,72px);font-size:10px;color:#777a80;display:flex;justify-content:space-between;align-items:center;gap:16px}
.lg-foot b{font-weight:600}
.lg-spin{height:16px;width:16px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:lg-spin .7s linear infinite;display:inline-block}
@keyframes lg-spin{to{transform:rotate(360deg)}}
@media(max-width:760px){.lg-mast{padding:22px 24px;min-height:78px}.lg-main{padding:24px 22px 36px}.lg-window{grid-template-columns:160px minmax(0,1fr);width:100%}.lg-nav{padding:27px 13px}.lg-logo{width:82px;margin:0 10px 30px}.lg-modes button{font-size:11px;gap:7px}.lg-shell{padding:32px 26px}.lg-head h1{font-size:28px}.lg-foot{padding:18px 24px}}
@media(max-width:520px){.lg-mast{min-height:69px;padding:19px 24px}.lg-main{padding:13px 18px 28px}.lg-window{grid-template-columns:minmax(0,1fr);border-radius:10px;min-height:0}.lg-nav{border-right:0;border-bottom:1px solid #e4e4de;padding:22px 20px 13px}.lg-logo{width:80px;height:32px;margin:0 0 20px}.lg-nav .lg-eyebrow,.lg-caption{display:none}.lg-modes{display:flex;gap:5px}.lg-modes button{flex:1;padding:10px 7px;font-size:10px;justify-content:center;gap:5px;white-space:nowrap}.lg-modes button .lg-icon{width:13px;height:13px}.lg-shell{padding:28px 23px 30px}.lg-input{font-size:16px}.lg-foot{padding:16px 20px;font-size:9px}}
@media(prefers-reduced-motion:reduce){.lg *{animation:none!important;transition:none!important}}

/* Agency: people, permissions and workspaces (live.js) */
.agency-tabs{display:flex;gap:4px;margin:0 0 18px;border-bottom:1px solid var(--line,#e7e5de);overflow-x:auto}
.agency-tabs a{padding:10px 14px;font-weight:650;font-size:13px;color:var(--muted,#656760);text-decoration:none;border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap}
.agency-tabs a.on{color:var(--fg,#232421);border-color:var(--gold,#b58b38)}
.people-table td,.perm-table td{vertical-align:top}
.people-table .sub,.perm-table .sub{font-size:12px;color:var(--muted,#656760);margin-top:2px}
.people-table td.actions{white-space:nowrap;text-align:right}
.perm-table th.c,.perm-table td.c{text-align:center;width:110px}
.perm-table input[type=checkbox],.ws-check input,.ws-radio input{width:18px;height:18px;accent-color:#9c7926}
.ws-scope{display:grid;gap:8px;margin:6px 0 10px}
.ws-radio,.ws-check{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:550}
.ws-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px;padding:12px;border:1px solid var(--line,#e7e5de);border-radius:10px;background:var(--surface-2,#f5f4f0)}
.people-form{border-color:var(--gold-line,#ddc79a)}

.people-table td.row-btns,.ws-table td.row-btns,td.row-btns{text-align:right;white-space:nowrap}td.row-btns .btn+.btn{margin-left:6px}

/* live fixes (portal-live-patch.py) */
.admin-table td .pill,.admin-table td .status-pill{white-space:nowrap}
.live-team{margin-top:24px}
