/* Shared portal shell. Navigation is independent of the scrolling data panels. */
body[data-portal-design] {
  /* Lead Leaders' editorial palette, shared with the public site. */
  --ink:#152630; --ink-raised:#233740; --ink-deep:#102029;
  --paper:#fcfbf8; --stone:#f5f4ef; --sand:#f2ede3; --line:#ded7ca;
  --gold:#826239; --gold-hover:#664b2b; --champagne:#ddc59c; --muted:#646b6e;
  --on-ink:#f9f7f0; --on-ink-muted:#d7d0c1; --on-ink-rule:#ddc59c38;
  --rail:clamp(254px,20.4vw,296px); --bar:74px; --gutter:clamp(20px,2.35vw,40px);
  --font:"DM Sans",Arial,sans-serif; --display:Georgia,"Times New Roman",serif;
  background:var(--paper); color:var(--ink); font:16px/1.5 var(--font);
  margin:0; padding-inline-start:var(--rail); min-height:100vh; min-height:100dvh;
}
body[data-portal-design] :is(h1,h2,h3,h4) {font-family:var(--display);color:inherit;letter-spacing:-.04em;font-weight:400;line-height:1.15}
body[data-portal-design] h1 {font-size:clamp(2.1rem,3.4vw,3.25rem)}
body[data-portal-design] h2 {font-size:clamp(1.55rem,2.25vw,2.1rem)}
body[data-portal-design] :is(button,input,select,textarea) {font-family:var(--font)}
body[data-portal-design] button {cursor:pointer}
body[data-portal-design] :is(button,a,summary,input,select,textarea):focus-visible {outline:3px solid var(--gold);outline-offset:3px}
body[data-portal-design] :is(.portal-shell,.phone-guide) {width:100%;max-width:1560px;margin:0 auto;padding:var(--gutter) var(--gutter) 48px;min-width:0}
body[data-portal-design] .portal-foot {width:100%;max-width:1560px;margin:0 auto;padding:20px var(--gutter) 40px;border-color:var(--line);color:var(--muted)}
.desk-icon {width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#desk-sidebar {position:fixed;inset:0 auto 0 0;z-index:85;width:var(--rail);display:flex;flex-direction:column;background:var(--ink);color:var(--on-ink)}
.desk-brand {height:var(--bar);flex:none;padding:0 23px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--on-ink-rule)}
.desk-brand a {display:inline-flex;align-items:center}
.desk-brand img {width:clamp(152px,12.8vw,194px);height:auto;filter:brightness(0) invert(1)}
.desk-scroll {flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#41535b var(--ink);padding:19px 12px;overscroll-behavior:contain}
.desk-menu-label,.desk-eyebrow {font:650 .74rem/1.35 var(--font);text-transform:uppercase;letter-spacing:.12em}
.desk-menu-label {color:var(--champagne);margin:3px 12px 12px}
#desk-links nav {display:grid;gap:4px;margin:0;padding:0;border:0;background:none;align-items:stretch}
#desk-links:has(nav:not(.desk-default)) .desk-default {display:none}
#desk-links .employee-lead-tabs {display:contents}
#desk-links :is(a,button),.desk-bottom a {display:flex;position:relative;gap:12px;align-items:center;width:100%;min-height:56px;padding:8px 10px;border:0;border-radius:5px;background:transparent;color:var(--on-ink);text-align:left;text-decoration:none;line-height:1.25;font-size:15px;font-weight:650;transform:none}
#desk-links :is(a,button):hover,.desk-bottom a:hover {background:var(--ink-raised);color:white}
#desk-links :is(a,button)[aria-current] {background:#ddc59c1d;color:#fff}
#desk-links :is(a,button)[aria-current]::after {content:"";position:absolute;inset:calc(50% - 13px) auto auto 0;width:2px;height:26px;border-radius:0 3px 3px 0;background:var(--champagne);animation:none}
.desk-nav-icon {position:relative;width:37px;height:37px;border-radius:6px;box-shadow:inset 0 1px 0 #ffffff10;display:grid;place-items:center;flex:none;background:var(--ink-raised);color:#c5b59c}
#desk-links [aria-current] .desk-nav-icon {background:var(--champagne);color:var(--ink);box-shadow:none}
.desk-nav-words {min-width:0;display:grid;gap:2px}
.desk-nav-title {font:650 .98rem/1.22 var(--font);letter-spacing:-.012em}
.desk-nav-words small {font:400 .8rem/1.27 var(--font);color:var(--on-ink-muted)}
#desk-links #unread-badge:not(:empty) {margin-left:5px;background:var(--champagne);color:var(--ink)}
.desk-bottom {padding:10px 16px;border-top:1px solid var(--on-ink-rule)}
.desk-bottom a {min-height:40px;color:var(--on-ink-muted);font-size:.84rem}
#desk-scrim {display:none}
body[data-portal-design] .portal-header {position:sticky;top:0;z-index:86;display:flex;align-items:center;justify-content:flex-start;gap:14px;width:100%;max-width:none;height:var(--bar);margin:0;padding:0 var(--gutter);background:var(--ink);border:0;border-bottom:1px solid var(--on-ink-rule);color:var(--on-ink)}
.desk-trail {margin-right:auto;display:flex;align-items:center;gap:12px;min-width:0;white-space:nowrap}
.desk-portal-name {font:400 1.32rem/1.15 var(--display);letter-spacing:-.025em}
.desk-divider {color:#87918f}
#desk-page-name {overflow:hidden;text-overflow:ellipsis;color:var(--on-ink-muted);font-size:.9rem}
body[data-portal-design] .portal-header > a,body[data-portal-design] .employee-header-actions > a {font-size:.88rem;font-weight:600;color:var(--champagne);text-decoration:none;line-height:1.2}
body[data-portal-design] .employee-header-actions {display:flex;align-items:center;gap:14px}
body[data-portal-design] .employee-account {position:relative;color:var(--ink)}
body[data-portal-design] .employee-account > summary {display:flex;align-items:center;gap:8px;max-width:220px;min-height:40px;padding:7px 12px;border:1px solid var(--on-ink-rule);border-radius:5px;background:var(--ink-raised);color:var(--on-ink);cursor:pointer;list-style:none;font:650 .88rem/1.25 var(--font)}
.employee-account > summary::-webkit-details-marker {display:none}
body[data-portal-design] .employee-account > summary::after {content:"";display:block;width:6px;height:6px;border:solid var(--champagne);border-width:0 1.5px 1.5px 0;transform:rotate(45deg);margin:-3px 1px 0 3px}
#desk-initials {display:grid;place-items:center;width:28px;height:28px;border-radius:4px;background:var(--champagne);color:var(--ink);font-size:.76rem}
#desk-client-name,#employee-account-name {overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
body[data-portal-design] .account-menu {position:absolute;top:calc(100% + 8px);right:0;width:max-content;max-width:min(320px,90vw);min-width:205px;background:#fff;color:var(--ink);padding:9px;border:1px solid var(--line);border-radius:6px;box-shadow:0 10px 30px #15263020;z-index:5}
#desk-client-tools :is(a,button),#desk-client-tools p {display:block;width:100%;padding:10px;font-size:.88rem;border:0;border-radius:7px;background:none;color:inherit;text-decoration:none;text-align:left;margin:0}
#desk-client-tools p {color:var(--muted);overflow-wrap:anywhere;border-bottom:1px solid var(--line)}
#desk-client-tools :is(a,button):hover {background:var(--sand)}
body[data-portal-design] .desk-hero {display:block;margin:0 0 20px;padding:clamp(22px,2.4vw,38px);background:var(--ink);color:var(--on-ink);border:1px solid var(--ink);border-top:2px solid #bc9e6d;border-radius:6px;box-shadow:0 10px 28px #1526300b}
.desk-hero-top,.desk-identity {display:flex;align-items:center;gap:20px}
.desk-hero-top {justify-content:space-between;flex-wrap:wrap}
.desk-identity {min-width:0;flex:1 1 270px}
.desk-emblem {display:grid;place-items:center;flex:none;width:72px;height:72px;border-radius:50%;background:var(--ink-raised);border:1px solid #bc9e6d66;box-shadow:inset 0 1px 0 #ffffff18,0 3px 9px #15263026}
.desk-emblem img {width:43px;height:43px;object-fit:contain;filter:brightness(0) invert(1)}
.desk-eyebrow {color:var(--champagne)}
body[data-portal-design] .desk-hero h1 {font:400 clamp(2.15rem,3.6vw,3.5rem)/1.06 var(--display);letter-spacing:-.04em;margin:7px 0;color:var(--paper)}
.desk-hero p {color:var(--on-ink-muted);margin:0;font-size:.96rem}
.desk-hero-actions {display:grid;gap:7px;flex:0 1 225px}
.desk-hero :is(a,button) {display:inline-flex;align-items:center;gap:10px;text-decoration:none;font:600 .91rem/1.3 var(--font);border:0}
.desk-hero-actions a {border-radius:3px;padding:11px 15px;justify-content:center;background:var(--champagne);color:var(--ink)}
.desk-hero-actions a+a {background:transparent;border:1px solid var(--on-ink-rule);color:var(--on-ink)}
.desk-hero-actions a:hover {background:#e8d8bd;color:var(--ink)}
.desk-quick {display:flex;align-items:center;gap:10px 30px;flex-wrap:wrap;border-top:1px solid var(--on-ink-rule);margin-top:22px;padding-top:16px}
.desk-quick :is(a,button) {background:none;color:var(--on-ink);padding:5px 0}
.desk-quick :is(a,button):hover {color:white;text-decoration:underline}
.desk-quick .desk-icon {color:var(--champagne)}
body[data-portal-design] .desk-employee-hero {display:none}
body[data-portal-design] main:has(> #employee-workspaces:not([hidden])) > .desk-employee-hero {display:block}
body[data-portal-design] main:has(> :is(#staff-directory,#registered-employees):target:not([hidden])) > .desk-employee-hero {display:none}
body[data-portal-design] .desk-gate-title {display:none}
body[data-portal-design] #employee-workspaces:not([hidden]) {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));gap:12px;border:0;padding:0;background:transparent;margin:20px 0}
body[data-portal-design] main:has(> :is(#staff-directory,#registered-employees):target:not([hidden])) > #employee-workspaces {display:none}
body[data-portal-design] #employee-workspaces a {display:flex;align-items:center;gap:12px;min-height:87px;border-radius:6px;padding:16px;background:white;color:var(--ink);border:1px solid var(--line);text-align:left;text-decoration:none}
#employee-workspaces .desk-nav-icon {background:var(--sand);color:var(--gold)}
#employee-workspaces .desk-nav-words small {color:var(--muted)}
body[data-portal-design] .portal-shell > :is(h1:not(.visually-hidden),.archive-head,.work-head),body[data-portal-design] .owner-top,body[data-portal-design] .phone-guide > h1,body[data-portal-design] .portal-shell > .ll-initial-view h1 {display:flex;align-items:center;gap:14px;flex-wrap:wrap;border-radius:6px;background:var(--ink);color:white;padding:clamp(22px,2.7vw,38px);margin:0 0 20px}
body[data-portal-design] :is(.archive-head,.work-head,.owner-top) h1 {margin:0}
body[data-portal-design] .owner-top {justify-content:space-between}
body[data-portal-design] .eyebrow {color:var(--gold);font-family:var(--font);letter-spacing:.075em;font-size:.75rem}
body[data-portal-design] :is(.archive-head,.work-head) .eyebrow {color:var(--champagne)}
body[data-portal-design] .primary {background:var(--gold);border:1px solid var(--gold);color:white;font-weight:650;border-radius:3px}
body[data-portal-design] .primary:hover:not(:disabled) {background:var(--gold-hover);border-color:var(--gold-hover)}
body[data-portal-design] .secondary {background:white;border:1px solid var(--line);border-radius:4px;color:var(--ink);font-weight:620}
body[data-portal-design] .secondary:hover:not(:disabled) {background:var(--stone)}
body[data-portal-design] .portal-shell :is(input:not([type=checkbox],[type=radio],[type=range],[type=file]),select,textarea) {border-color:var(--line);border-radius:4px;background-color:var(--paper);color:var(--ink);max-width:100%}
body[data-portal-design] :is(.portal-card,.campaign-card,.auth-card,.filter-card,.owner-surface,.qc-table,.lead-intake,.staff-directory,.staff-enrollment) {background-color:white;border:1px solid var(--line);border-radius:6px}
body[data-portal-design] :is(.portal-note,.long-notes) {background:var(--sand);color:var(--ink)}
body[data-portal-design] .stat-grid {gap:12px;margin:17px 0 28px}
body[data-portal-design] .stat-grid article {border-radius:6px;padding:20px 22px;border-color:var(--line);background:#fff;box-shadow:0 2px 7px #15263005}
body[data-portal-design] .stat-grid span {font-size:.87rem;color:var(--muted)}
body[data-portal-design] .stat-grid strong {font:400 clamp(2.2rem,3.1vw,3rem)/1.1 var(--display);letter-spacing:-.04em;font-variant-numeric:tabular-nums}
body[data-portal-design] :is(.portal-card p,.campaign-card p,.muted) {color:var(--muted)}
body[data-portal-design] .lead-filters {background:#fff;border-radius:6px;border:1px solid var(--line);padding:18px;gap:12px 14px;margin:16px 0;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;grid-template-areas:"search search action" "campaign status status"}
.lead-filters > div:first-child {grid-area:search}
.lead-filters > div:nth-child(2) {grid-area:campaign}
.lead-filters > div:nth-child(3) {grid-area:status}
.lead-filters > button {grid-area:action;min-width:110px;min-height:47px}
body[data-portal-design] .lead-filters :is(input,select) {height:46px}
body[data-portal-design] .lead-filters label {font-size:.85rem;font-weight:650;color:var(--ink)}
body[data-portal-design] .lead-list {border-radius:6px;border:1px solid var(--line);background:white;overflow:hidden}
body[data-portal-design] .lead-list > p {padding:0 18px}
body[data-portal-design] .lead-row {padding:16px 20px}
body[data-portal-design] .lead-row:last-child {border-bottom:0}
body[data-portal-design] .pagination {margin-top:14px;padding:12px 16px;background:#fff;border:1px solid var(--line);border-radius:6px}
body[data-portal-design] :is(.chat-launcher,.employee-chat-shortcut) {background:var(--gold);color:white}
body[data-portal-design] .ll-initial-view .portal-nav {display:flex;flex-wrap:wrap;gap:10px}
body[data-portal-design] .ll-initial-view .portal-nav a {color:var(--ink);font-weight:600}
body[data-portal-design] :is(.employee-entry,.portal-intro,#account-gate:has(>a.primary)):not([hidden]) {background:var(--ink);color:#fff;border-radius:6px;padding:clamp(24px,3vw,42px);max-width:none}
body[data-portal-design] :is(.employee-entry,.portal-intro,#account-gate:has(>a.primary)) :is(.eyebrow,p) {color:var(--on-ink-muted)}
body[data-portal-design] .portal-intro .portal-note {background:var(--ink-raised)}
body[data-portal-design] .auth-layout {gap:clamp(18px,3vw,42px);grid-template-columns:1.05fr 1fr;max-width:1400px}
body[data-portal-design] .auth-card {max-width:none}
/* Keep feature-specific panels and loading states within the portal palette. */
body[data-portal-design] :is(.employee-chat,.chat-bubble,.contact-row,.staff-count,.staff-avatar,.employee-chat-shortcut,.msg-dialog,table) {font-family:var(--font)}
body[data-portal-design] :is(.desk-brand,.desk-bottom) :focus-visible,
body[data-portal-design] :is(.desk-hero,#desk-sidebar,.portal-header) :focus-visible {outline-color:var(--champagne)}
body[data-portal-design] .account-menu :focus-visible {outline-color:var(--gold)}
body[data-portal-design] .employee-header-actions a:hover,.desk-trail a:hover {text-decoration:underline;text-underline-offset:3px}
body[data-portal-design] .portal-header .account-icon {color:var(--gold);background:var(--champagne)}
body[data-portal-design] .portal-shell :is(.portal-note,.dispute-card) {border-color:var(--line)}
body[data-portal-design] .section-heading .eyebrow {color:var(--gold)}
body[data-portal-design] .desk-hero .desk-icon,body[data-portal-design] .desk-nav-icon svg {stroke-width:1.6}
body[data-portal-design] .desk-quick :is(a,button):hover {color:var(--champagne)}
body[data-portal-design] :is(.primary,.secondary,.desk-hero-actions a) {letter-spacing:.005em}
body[data-portal-design] :is(input[type=checkbox],input[type=radio]) {accent-color:var(--gold)}
body[data-portal-design] .brand-loader {color:var(--ink)}
body[data-portal-design] .brand-loader::before {background:currentColor;mask:url('/assets/brand-logo.webp') center / contain no-repeat}
body[data-portal-design] .employee-loader img {filter:grayscale(1) brightness(.5)}
html[data-ll-leaving]:has(body[data-portal-design])::before {background:#826239}
body[data-portal-design] .lead-dialog {background:var(--paper);border-color:var(--line);border-radius:6px}
body[data-portal-design] .chat-body {background:var(--stone)}
body[data-portal-design] .chat-head,body[data-portal-design] .chat-line.mine .chat-bubble {background:var(--ink);color:var(--on-ink)}
body[data-portal-design] .chat-head .thread-heading h2 {font:400 1.2rem/1.2 var(--display)}
body[data-portal-design] :is(.msg-selected,.msg-context button,.msg-mentions button) {background:var(--sand);color:var(--ink)}
body[data-portal-design] #chat-send {background:var(--gold)}
body[data-portal-design] :is(#chat-send,.chat-launcher):hover {background:var(--gold-hover)}
body[data-portal-design] .score-hero {border-radius:6px}
/* Keep the same links accessible at both menu widths. */
.desk-brand img.desk-brand-mark {display:none;width:36px;height:36px;object-fit:contain}
.desk-page-mark {display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;flex:none;border:1px solid var(--on-ink-rule);border-radius:4px;background:var(--ink-raised);color:var(--champagne);margin-right:-5px}
.desk-page-mark .desk-icon {width:15px;height:15px}
.desk-rail-tip {position:fixed;z-index:92;pointer-events:none;transform:translateY(-50%);padding:7px 11px;background:var(--ink-raised);color:white;border:1px solid #bc9e6d66;border-radius:4px;box-shadow:0 4px 14px #15263022;font:600 .82rem/1.35 var(--font)}
body[data-portal-design] .stat-grid article > span {display:flex;align-items:center;gap:9px}
.stat-grid article > span > .desk-icon {width:28px;height:28px;padding:6px;color:var(--gold);background:var(--sand);border-radius:4px}
body[data-portal-design] #employee-workspaces a:hover {background:var(--paper);border-color:var(--line);box-shadow:0 3px 10px #15263009}
/* Center the 28px arrow on the edge with a larger pointer and touch target. */
#desk-sidebar > #desk-toggle {
  position:absolute;top:50%;right:0;transform:translate(50%,-50%);z-index:1;
  display:grid;place-items:center;width:44px;height:44px;margin:0;padding:0;
  border:0;border-radius:50%;background:transparent;color:var(--ink);box-shadow:none;
}
#desk-toggle::before {
  content:"";grid-area:1/1;width:28px;height:28px;box-sizing:border-box;
  border:1px solid var(--line);border-radius:50%;background:var(--paper);
  box-shadow:0 2px 7px #10202929;
}
#desk-toggle::after {
  content:"";grid-area:1/1;width:7px;height:7px;box-sizing:border-box;
  border:solid currentColor;border-width:0 2px 2px 0;transform:translateX(1px) rotate(135deg);
}
html[data-desk-folded] #desk-toggle::after {transform:translateX(-1px) rotate(-45deg)}
#desk-toggle:hover::before,#desk-toggle:focus-visible::before {border-color:var(--gold);background:var(--sand)}
body[data-portal-design] #desk-sidebar > #desk-toggle:focus-visible {outline:0}
#desk-toggle:focus-visible::before {outline:2px solid var(--gold);outline-offset:2px}
html[data-desk-folded] body[data-portal-design] {--rail:78px}
html[data-desk-folded] .desk-brand {justify-content:center;padding:0}
html[data-desk-folded] .desk-brand img:not(.desk-brand-mark) {display:none}
html[data-desk-folded] .desk-brand img.desk-brand-mark {display:block}
html[data-desk-folded] .desk-menu-label {display:none}
html[data-desk-folded] .desk-scroll {padding:18px 9px;scrollbar-width:none}
html[data-desk-folded] .desk-scroll::-webkit-scrollbar {display:none}
html[data-desk-folded] #desk-links nav {gap:5px}
html[data-desk-folded] #desk-links :is(a,button) {justify-content:center;gap:0;padding:5px 0;min-height:49px}
html[data-desk-folded] #desk-links .desk-nav-words {position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
html[data-desk-folded] #desk-links :is(a,button):has(#unread-badge:not(:empty)) .desk-nav-icon::after {content:"";position:absolute;top:4px;right:4px;width:7px;height:7px;border-radius:50%;background:var(--champagne);box-shadow:0 0 0 2px var(--ink)}
html[data-desk-folded] .desk-bottom {padding:12px 9px}
html[data-desk-folded] .desk-bottom a {justify-content:center;gap:0;font-size:0}
@media (max-width:1100px) { .desk-hero-actions {flex-basis:185px}.desk-emblem {width:60px;height:60px} }
@media (max-width:900px) {
  body[data-portal-design],html[data-desk-folded] body[data-portal-design] {--bar:62px;--rail:56px;--gutter:clamp(12px,3vw,24px)}
  #desk-sidebar {z-index:87}
  html[data-desk-folded] .desk-scroll {padding:12px 4px}
  html[data-desk-folded] .desk-bottom {padding:8px 4px}
  html[data-desk-folded] .desk-bottom a {min-height:44px}
  html[data-desk-open] #desk-sidebar {z-index:101;width:min(300px,calc(100vw - 48px))}
  html[data-desk-open] {overflow:hidden}
  html[data-desk-open] #desk-scrim {display:block;position:fixed;inset:0;z-index:100;background:#10202988;border:0}
  html[data-desk-open] .desk-brand {padding:0 12px;gap:8px}
  html[data-desk-open] .desk-brand img {max-width:36vw}
  body[data-portal-design] .auth-layout {grid-template-columns:1fr}
}
@media (max-width:620px) {
  body[data-portal-design] .portal-header {gap:8px}
  .desk-trail {gap:8px}
  .desk-portal-name {overflow:hidden;text-overflow:ellipsis}
  body[data-portal-design] .employee-header-actions {min-width:0}
  body[data-portal-design] .portal-header > .employee-account {min-width:0}
  .desk-divider,.desk-page-mark,#desk-page-name {display:none}
  .desk-portal-name {font-size:1.15rem}
  body[data-portal-design] .employee-account > summary {max-width:135px}
  .portal-header .employee-header-actions:has(details:not([hidden])) > a {display:none}
  body[data-portal-design] .portal-header:has(#desk-client-account:not([hidden])) > a {display:none}
  .desk-hero-top {gap:16px}
  .desk-hero-actions {flex:1 1 100%;grid-template-columns:1fr 1fr}
  .desk-hero-actions a {padding:10px 5px;font-size:.83rem;gap:6px}
  .desk-identity {gap:12px}
  .desk-emblem {width:48px;height:48px}.desk-emblem img {width:31px;height:31px}
  .desk-quick {gap:4px 16px;margin-top:15px;padding-top:12px}
  .desk-quick :is(a,button) {font-size:.83rem}
  .desk-quick .desk-icon {width:16px}
  body[data-portal-design] .desk-hero {padding:19px}
  body[data-portal-design] .lead-filters {grid-template-columns:1fr 1fr;grid-template-areas:"search search" "campaign status" "action action";padding:14px}
  body[data-portal-design] .stat-grid article {padding:15px}
  body[data-portal-design] .section-heading {gap:12px}
  body[data-portal-design] .portal-foot a {display:inline-block;margin:4px 12px 4px 0}
}
@media (prefers-reduced-motion:no-preference) {
  #desk-sidebar {transition:width 150ms ease-out}
  @media (min-width:901px) {
    #desk-sidebar {transition:width 175ms cubic-bezier(.2,.75,.25,1)}
    body[data-portal-design] {transition:padding-inline-start 175ms cubic-bezier(.2,.75,.25,1)}
    #desk-sidebar .desk-nav-words {animation:desk-words-in 160ms ease-out both}
    @keyframes desk-words-in {from {opacity:.35} to {opacity:1}}
  }
  #desk-links :is(a,button),.desk-hero a {transition:background-color 120ms,color 120ms}
}

body[data-portal-design] #desk-links nav {min-height:0;justify-content:stretch}
.desk-bottom a[aria-current="page"] {color:white;background:var(--ink-raised)}

/* Client wallet and daily wheel */
body[data-portal-design="client"] .portal-header:has(.client-wallet) {
  height:auto;min-height:var(--bar);padding-block:8px;flex-wrap:wrap;
  background:#fff;color:#191e32;border-bottom:1px solid #dfe3eb;
}
body[data-portal-design="client"] .portal-header:has(.client-wallet) :is(.desk-portal-name, .desk-divider, #desk-page-name) {color:#454e62}
body[data-portal-design="client"] .portal-header:has(.client-wallet) > a {color:#4f586c}
.client-wallet {
  display:flex;align-items:center;gap:clamp(8px,1.15vw,20px);min-width:0;
  margin:0;padding:0;background:none;color:#1d2232;font-family:var(--font);line-height:1.2;
}
.client-wallet a {color:inherit;text-decoration:none}
.client-wallet-wheel {
  display:grid;place-items:center;flex:0 0 auto;width:44px;height:44px;
  border-radius:11px;background:#11132b;
}
.client-wallet-wheel:hover {background:#262a48}
.client-wheel-disc {
  position:relative;width:28px;aspect-ratio:1;border:2px solid #fff;border-radius:50%;
  background:conic-gradient(from -30deg,#efb92f 0 60deg,#46a367 60deg 120deg,#df4137 120deg 180deg,#f1bf31 180deg 240deg,#46a367 240deg 300deg,#dc463e 300deg);
}
.client-wheel-disc::before {content:"";position:absolute;inset:29%;border:2px solid #33364b;border-radius:50%;background:#fbfaf6}
.client-wheel-disc::after {content:"";position:absolute;top:-3px;left:calc(50% - 3px);border-top:6px solid white;border-inline:3px solid transparent}
.client-wallet-group {
  display:flex;align-items:stretch;gap:0;min-width:0;padding:4px;
  background:#f4f5f8;border:1px solid #dce0e9;border-radius:14px;
}
.client-wallet-field {display:flex;gap:9px;align-items:center;padding:3px 14px;min-width:0;border-radius:8px}
.client-wallet-field:hover {background:#e9ecf2}
.client-wallet-field + .client-wallet-field {position:relative}
.client-wallet-field + .client-wallet-field::before {content:"";position:absolute;inset:2px auto 2px 0;width:1px;background:#d8dde6}
.client-wallet-icon {width:21px;height:21px;flex:none;fill:#7e8797}
.client-wallet-label {display:block;color:#5f687a;font-size:.78rem;font-weight:650;line-height:1.3;white-space:nowrap}
.client-wallet-value {display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 6px}
.client-wallet-value strong {font-size:1.12rem;line-height:1.2;font-weight:750;font-variant-numeric:tabular-nums;letter-spacing:-.025em}
.client-wallet-value small {font-size:.72rem;font-weight:600;line-height:1.2;color:#a55204}
.client-wallet-value small:empty {display:none}
.client-wallet .client-wallet-action {
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;
  min-height:44px;padding:5px 15px;border-radius:10px;background:#c9090b;color:#fff;
  font-weight:750;font-size:.85rem;line-height:1.2;text-align:center;text-decoration:none;white-space:nowrap;
}
.client-wallet-action > span {text-transform:uppercase;letter-spacing:.025em}
.client-wallet-action small {font-size:.73rem;font-weight:550}
.client-wallet .client-wallet-action:hover {background:#aa070a}
body[data-portal-design="client"] .client-wallet :is(a,button):focus-visible {outline:3px solid #3159a1;outline-offset:2px}
@media(max-width:1050px) {
  .client-wallet {gap:8px}
  .client-wallet-field {padding-inline:9px}
}
@media(max-width:820px) {
  .client-wallet {order:2;flex:1 0 100%;justify-content:flex-end}
  .client-wallet-group {flex:1;max-width:560px}
  .client-wallet-field {flex:1}
}
@media(max-width:560px) {
  .client-wallet {gap:5px}
  .client-wallet-wheel {width:36px;height:40px;border-radius:9px}
  .client-wheel-disc {width:25px}
  .client-wallet-group {display:grid;grid-template-columns:1fr 1fr;gap:3px;padding:4px}
  .client-wallet-field {padding:3px 7px;min-height:39px}
  .client-wallet-label {white-space:normal;font-size:.73rem}
  .client-wallet-icon {display:none}
  .client-wallet .client-wallet-action {grid-column:1/-1;min-height:38px;flex-direction:row;gap:6px}
}

/* Portal redesign. Keep the authenticated pages, forms, routes and menu owners. */
body[data-portal-design] {--stone:#f7f6f2;--line:#e0ddd4;background:var(--stone)}
#desk-sidebar {background:#f4f2ec;color:#263738;border-inline-end:1px solid var(--line)}
.desk-brand,.desk-bottom {border-color:var(--line)}
.desk-brand img {filter:brightness(0) saturate(100%) invert(13%) sepia(12%) saturate(1412%) hue-rotate(153deg) brightness(90%)}
.desk-menu-label,#desk-links .desk-nav-words small {color:#605f55}
#desk-links :is(a,button),.desk-bottom a {color:#374645}
#desk-links :is(a,button):hover,.desk-bottom a:hover {color:#152630;background:#eae7df}
#desk-links :is(a,button)[aria-current] {background:#e4e2d7;color:#192e34}
#desk-links :is(a,button)[aria-current]::after {background:#826239}
#desk-links .desk-nav-icon {background:#ebe8df;color:#5d6052;box-shadow:none}
#desk-links [aria-current] .desk-nav-icon {background:#20363a;color:#f4e4c8}
body[data-portal-design] .portal-header {background:#fcfbf8;color:var(--ink);border-bottom:1px solid var(--line)}
body[data-portal-design] .portal-header .desk-portal-name {color:var(--ink)}
body[data-portal-design] .portal-header #desk-page-name {color:#59615f}
body[data-portal-design] .portal-header > a,body[data-portal-design] .employee-header-actions > a {color:#73562f}
.desk-bottom a[aria-current="page"] {background:#e4e2d7;color:#192e34}
body[data-portal-design] :is(.portal-card,.campaign-card,.auth-card,.filter-card,.owner-surface,.qc-table,.lead-intake,.staff-directory,.staff-enrollment,.stat-grid article) {border-radius:10px}
body[data-portal-design] :is(.secondary,.primary),body[data-portal-design] #employee-workspaces a {border-radius:7px}
body[data-portal-design="owner"] .owner-top {background:#192e34}
body[data-portal-design="employee"] .desk-employee-hero {border-radius:12px}
body[data-portal-design="client"] .campaign-card {background:#fcfbf8}
@media(min-width:901px){
 html:not([data-desk-folded]) body[data-portal-design] {--rail:clamp(238px,18vw,268px)}
 body[data-portal-design] .portal-shell {max-width:1440px}
}
