/* =====================================================================
   Design B · Soft Workspace (after the client's two reference shots)
   A frosted frame on a pastel field; round icon rail where black marks the active item; white cards
   with large radii and no borders; pale rows; striped progress bars; dark number badges; lime for
   the one call to action. Type: Onest.
   ===================================================================== */
body.ds-b {
  --font: 'Onest', system-ui, sans-serif; --font-h: 'Onest', system-ui, sans-serif;
  --bg: #E7F0F7; --surface: #F1F6FA; --surface-solid: #FFFFFF; --surface-2: #E5EEF6; --ink: #0C2740; --ink-2: #33506B; --muted: #5C7186; --line: #DCE6EF; --line-2: #EBF1F6;
  --primary: #0B5384; --primary-h: #08426A; --on-primary: #fff; --link: #0B5FA0; --focus: #2E9BE0;
  --track: #DCE6EF; --ring: #0B5384; --radius: 14px; --radius-lg: 28px; --shadow: none; --shadow-lg: 0 30px 80px -30px rgba(10, 58, 96, .35);
  --brand: #0B5384; --brand-d: #0A3A60; --sky: #2E9BE0;
  /* "lime" slots now carry the HADS ice blue: call to action, stripes, highlights */
  --lime: #CFE6F8; --lime-2: #E5F1FB; --lime-ink: #0A3A60; --stripe-a: #3E9FE2; --stripe-b: #9ACDF1;
  --k-case: #0B5384; --k-comp: #12867A; --k-doc: #D9622E; --k-ret: #5B6FD6;
  --c-awaiting: #B9531F; --p-awaiting: #FCE9DE; --c-danger: #C4382D; --p-danger: #FCE6E3; --c-done: #1F7A4D; --p-done: #E3F4EA;
  --c-progress: #0B5FA0; --p-progress: #E3F0FA; --c-review: #5B4BC4; --p-review: #ECEAFB; --c-pending: #8A6100; --p-pending: #FBF1D9;
  background: radial-gradient(1100px 700px at -5% -10%, #B7D9F2 0%, transparent 60%), radial-gradient(900px 700px at 105% 105%, #CBE3F5 0%, transparent 60%), radial-gradient(700px 500px at 60% 40%, #F4F8FB 0%, transparent 70%), #E7F0F7;
  background-attachment: fixed;
}

/* ---------- Building blocks ---------- */
.ds-b .btn { border-radius: 999px; height: 42px; padding: 0 18px; }
.ds-b .btn-sm { height: 36px; padding: 0 14px; }
.ds-b .btn-ghost { background: #fff; border-color: var(--line); }
.cb { position: relative; width: 48px; height: 48px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(20, 21, 22, .05); transition: background .15s, color .15s, transform .15s; }
.cb:hover { transform: translateY(-1px); }
.cb:disabled { opacity: .35; cursor: default; transform: none; }
.cb.sm { width: 36px; height: 36px; }
.bc { min-width: 0; padding: 22px; border-radius: 28px; background: #fff; }
.ic-c { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; background: var(--surface); color: var(--ink); }
.ic-c.sm { width: 36px; height: 36px; } .ic-c.xl { width: 64px; height: 64px; }
.ic-c.mk { font: 700 20px var(--font); }
.ic-c.k-doc, .ic-c.k-upload, .ic-c.k-sign, .ic-c.k-approve, .ic-c.k-comp { color: var(--kc); background: color-mix(in srgb, var(--kc) 12%, #fff); }
.k-sign, .k-approve { --kc: var(--k-case); } .k-upload { --kc: var(--k-doc); }
.lbl { display: block; margin: 14px 0 4px; font-size: 12.5px; color: var(--muted); }
.bc-h { font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.bc-p { margin: 0; color: var(--ink-2); line-height: 1.6; }
.bc-t { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 16px; font-weight: 600; }
.bc-t.sub { margin: 20px 0 10px; font-size: 13px; color: var(--muted); }
.bc-th { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; } .bc-th .bc-t { margin: 0; }
.ar { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; border: 1px solid var(--line); background: #fff; color: var(--ink); transition: background .15s, color .15s; }
.ar-btn { border-radius: 50%; }
button:hover > .ar, .mcard:hover .ar, .ar-btn:hover .ar { background: var(--brand); color: #fff; border-color: var(--brand); }
.person { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 16px; padding: 12px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); text-align: left; }
.person > span:not(.av):not(.ar) { flex: 1; display: grid; min-width: 0; } .person b { font-size: 15px; font-weight: 600; } .person small { color: var(--muted); font-size: 12.5px; }
/* striped progress: lime diagonal fill, the rest as fine ticks */
.stripe { position: relative; display: block; height: 28px; border-radius: 10px; overflow: hidden; background: repeating-linear-gradient(90deg, #C6D6E4 0 1.5px, transparent 1.5px 7px); }
.stripe > span { display: block; height: 100%; border-radius: 10px; background: repeating-linear-gradient(-45deg, var(--stripe-a) 0 5px, var(--stripe-b) 5px 10px); transition: width .5s ease; }
.stripe.sm { height: 14px; border-radius: 7px; } .stripe.sm > span { border-radius: 7px; }
.stripe.over > span { background: repeating-linear-gradient(-45deg, #F4A37E 0 5px, #FBD3C0 5px 10px); }
.dks { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 16px; } .dks.center { justify-content: center; }
.dk { display: inline-grid; place-content: center; width: 72px; height: 72px; border-radius: 50%; background: var(--brand-d); color: #fff; text-align: center; line-height: 1.1; flex: none; }
.dk b { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; } .dk small { max-width: 60px; margin: 2px auto 0; font-size: 11px; opacity: .8; }
.dk.lime { background: var(--lime); color: var(--lime-ink); }
/* pale rows, like a chapter list */
.chap { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.chap > li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface); font-size: 14px; font-weight: 600; }
.chap > li > span { flex: 1; min-width: 0; }
.chap > li em { font-style: normal; font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.chap > li i { display: inline-grid; color: var(--ink); }
.chap > li:not(.done):not(.now) > span { color: var(--ink-2); font-weight: 500; }
.chap > li.now { background: var(--brand); color: #fff; } .chap > li.now > span { color: #fff; } .chap > li.now em { color: #CFE3F4; }
.chap.plain > li { font-weight: 400; color: var(--ink-2); line-height: 1.5; } .chap.plain b { color: var(--ink); margin-right: 4px; }
.chap > li.lnk { padding: 0; } .chap > li.lnk button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border-radius: 14px; text-align: left; } .chap > li.lnk button:hover { background: var(--surface-2); }
.chap > li.lnk button > span { flex: 1; min-width: 0; font-weight: 600; color: var(--ink); }
.rws { display: grid; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 16px; background: var(--surface); text-align: left; transition: background .15s; }
button.row:hover { background: var(--surface-2); }
.row > span:not(.av):not(.ar):not(.ficon) { flex: 1; display: grid; min-width: 0; } .row b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .row small { font-size: 12px; color: var(--muted); }
.row-v { font-variant-numeric: tabular-nums; white-space: nowrap; }
.lime-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 10px; border-radius: 28px; background: var(--lime); text-align: left; }
.lime-cta > span:first-child { flex: 1; padding: 14px 16px; border-radius: 20px; background: var(--lime-2); color: var(--lime-ink); font-size: 14.5px; font-weight: 600; }
.lime-cta .ar { width: 48px; height: 48px; border-radius: 16px; border: 0; }
.lime-cta:hover .ar { background: var(--brand); color: #fff; }
.pill-o { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: border-color .15s; }
button.pill-o:hover { border-color: var(--ink); }
.pill-o.block { width: 100%; margin-top: 12px; }
.mtag { display: inline-flex; align-items: center; gap: 5px; justify-self: start; padding: 4px 10px; border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.mtag.need { background: var(--p-awaiting); color: var(--c-awaiting); } .mtag.done { background: var(--p-done); color: var(--c-done); } .mtag.ret { background: #EFE9FD; color: #6A43D4; } .mtag.slot { background: var(--lime-2); color: var(--lime-ink); }
.mtag-row { display: flex; gap: 6px; flex-wrap: wrap; }
.seg-pill { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: #fff; }
.seg-pill button { padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: background .15s, color .15s; }
.seg-pill button:hover { color: var(--ink); }
.seg-pill button.on { background: var(--brand); color: #fff; }
.seg-pill em { font-style: normal; opacity: .65; margin-left: 2px; }
.search-pill, .select-pill { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: 999px; background: #fff; color: var(--muted); min-width: 0; }
.search-pill input, .select-pill select { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); appearance: none; }
.select-pill select { cursor: pointer; padding-right: 6px; }
.search-pill:focus-within, .select-pill:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent); }
.select-pill.block { margin-bottom: 12px; background: var(--surface); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 16px 0; }
.tiles.one { grid-template-columns: minmax(0, 1fr); }
.tile-b { display: grid; gap: 2px; padding: 13px 16px; border-radius: 16px; background: var(--surface); min-width: 0; }
.tile-b small { font-size: 12px; color: var(--muted); } .tile-b b { font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.quote { margin: 0; padding: 14px 16px; border-radius: 16px; background: var(--surface); color: var(--ink-2); line-height: 1.6; }
.prog-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.prog-h > span:not(.ic-c) { flex: 1; display: grid; min-width: 0; } .prog-h b { font-size: 15px; font-weight: 600; } .prog-h small { font-size: 12.5px; color: var(--muted); }
.prog-h.mt { margin: 20px 0 10px; }
.prog-v { font-size: 16px; font-variant-numeric: tabular-nums; }
.prog-f { display: flex; gap: 10px; align-items: baseline; margin-top: 10px; font-size: 12.5px; color: var(--muted); } .prog-f b { color: var(--ink); font-size: 14px; }
/* hero artwork card */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: 300px; padding: 26px 28px; border-radius: 28px; color: #fff; }
.hero-lg { min-height: 360px; } .hero-sm { min-height: 230px; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(10, 12, 20, .38)); }
.art { position: absolute; inset: 0; z-index: -2; background: radial-gradient(420px 300px at 82% 12%, #8CCBF5, transparent 60%), radial-gradient(520px 360px at 8% 100%, #3FA6E8, transparent 60%), linear-gradient(150deg, #0A3A60, #0B5384 48%, #2E9BE0); }
.art-comp { background: radial-gradient(420px 300px at 82% 12%, #9DE3DA, transparent 60%), radial-gradient(520px 360px at 8% 100%, #3FB3E0, transparent 60%), linear-gradient(150deg, #0A3A60, #12867A 52%, #45B7C9); }
.art-doc { background: radial-gradient(420px 300px at 85% 12%, #FFC09C, transparent 55%), radial-gradient(520px 360px at 8% 100%, #2E9BE0, transparent 60%), linear-gradient(150deg, #0A3A60, #155E9B 55%, #D9733F); }
.art-ret { background: radial-gradient(420px 300px at 82% 12%, #B9C9FF, transparent 60%), radial-gradient(520px 360px at 8% 100%, #5FB4EE, transparent 60%), linear-gradient(150deg, #0A3A60, #3557B8 52%, #7FA6F0); }
.art-bars { position: absolute; left: 0; right: 0; bottom: 0; height: 72%; display: flex; align-items: flex-end; gap: 3px; }
.art-bars i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .04)); }
.hero-nav { position: absolute; top: 18px; left: 18px; display: flex; align-items: center; gap: 8px; }
.hero-nav .cb { width: 40px; height: 40px; background: rgba(255, 255, 255, .92); }
.hero-count { margin-left: 4px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .22); font-size: 12px; font-weight: 600; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero-t { position: relative; max-width: 560px; }
.hero-t small { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; opacity: .92; }
.hero-t h3 { font-size: clamp(28px, 3vw, 46px); font-weight: 700; line-height: 1.04; letter-spacing: -.035em; color: #fff; text-wrap: balance; }
.hero-t p { margin: 10px 0 0; opacity: .92; }
.hero-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; height: 40px; padding: 0 16px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; font-size: 13.5px; }
/* list cards (mail-style) */
.mcard { display: grid; gap: 8px; width: 100%; padding: 16px 18px; border-radius: 26px; background: #fff; text-align: left; transition: box-shadow .15s; min-width: 0; }
button.mcard:hover { box-shadow: 0 0 0 2px var(--line); }
.mcard.on, .mcard.on:hover { box-shadow: 0 0 0 2px var(--brand); }
.mcard.is-off { opacity: .6; }
.mcard-top { display: flex; align-items: center; gap: 10px; }
.mcard-who { flex: 1; display: grid; min-width: 0; line-height: 1.35; } .mcard-who small { font-size: 12.5px; color: var(--muted); }
.mcard > b { font-size: 16px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.mcard .nm { font-size: 15px; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.mcard .mail-t { overflow-wrap: anywhere; }
.mcard .due { justify-self: start; }
.sec-h2 { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 6px 0; }
.sec-h2 h2, .sec-t { font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.sec-t { margin: 0 0 12px 4px; }

/* ---------- Login ---------- */
.lg-b { min-height: 100vh; min-height: 100dvh; padding: 16px; background: transparent; }
.lgb-frame { display: grid; grid-template-columns: minmax(380px, 460px) minmax(0, 1fr); gap: 14px; min-height: calc(100vh - 32px); min-height: calc(100dvh - 32px); padding: 14px; border-radius: 40px; background: rgba(255, 255, 255, .5); border: 1px solid rgba(255, 255, 255, .75); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: 0 40px 100px -50px rgba(20, 30, 40, .35); }
.lgb-card { display: flex; flex-direction: column; padding: clamp(20px, 4vh, 34px) 34px clamp(16px, 3vh, 26px); border-radius: 30px; background: #fff; }
.lgb-brand { align-self: flex-start; display: inline-flex; align-items: center; height: 48px; padding: 0 18px; border-radius: 999px; background: var(--surface); }
.lgb-brand img { height: 24px; width: auto; }
.lgb-in { margin: auto 0; padding: clamp(12px, 3vh, 28px) 0; }
.lgb-in h1 { font-size: 34px; font-weight: 700; letter-spacing: -.03em; }
.lgb-sub { margin: 6px 0 clamp(16px, 3vh, 26px); color: var(--muted); }
.lg-b .field-in { height: 50px; border: 0; border-radius: 16px; background: var(--surface); }
.lg-b .field-in:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent); }
.lg-b .btn-primary { height: 52px; border-radius: 999px; box-shadow: 0 14px 30px -14px rgba(11, 83, 132, .7); }
.lg-b .check-box { border-radius: 6px; }
.lg-b .demo-note { justify-content: flex-start; text-align: left; margin-top: 0; }
.lgb-side { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; min-width: 0; }
.lgb-side .hero { min-height: 0; }
.lgb-side .hero-t h3 { font-size: clamp(34px, 4.2vw, 60px); }
.lgb-mini { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.lgb-mini .dks { margin: 0; }

/* ---------- Shell: frosted frame and round icon rail ---------- */
.dash-b { min-height: 100vh; min-height: 100dvh; padding: 16px; }
.bf { display: grid; grid-template-columns: 88px minmax(0, 1fr); min-height: calc(100vh - 32px); min-height: calc(100dvh - 32px); border-radius: 40px; background: rgba(255, 255, 255, .5); border: 1px solid rgba(255, 255, 255, .75); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: 0 40px 100px -50px rgba(20, 30, 40, .35); }
.bf-rail { position: sticky; top: 16px; height: calc(100vh - 32px); height: calc(100dvh - 32px); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 0; z-index: 20; }
.bf-logo { width: 54px; height: 54px; color: var(--brand); }
.bf-nav { display: grid; gap: 10px; margin: auto 0; }
.bf-link .ic { transition: transform .15s; }
.bf-link.on { background: var(--brand); color: #fff; }
.bf-link em { position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--sky); color: #fff; font-style: normal; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.bf-tip { position: absolute; left: calc(100% + 12px); top: 50%; z-index: 5; padding: 6px 12px; border-radius: 999px; background: var(--brand-d); color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(-4px, -50%); transition: opacity .15s, transform .15s; }
.cb:hover .bf-tip, .cb:focus-visible .bf-tip { opacity: 1; transform: translate(0, -50%); }
.bf-foot { display: grid; gap: 10px; justify-items: center; }
.bf-me { border-radius: 50%; } .bf-me .av { box-shadow: 0 0 0 3px #fff; }
.bf-me-a .pop { top: auto; bottom: 0; right: auto; left: calc(100% + 12px); }
.bf-main { min-width: 0; display: flex; flex-direction: column; gap: 18px; padding: 20px 22px 26px 6px; }
.bf-top { display: flex; align-items: center; gap: 12px; }
.bf-brand { display: inline-flex; align-items: center; height: 48px; padding: 0 18px; border-radius: 999px; background: #fff; flex: none; }
.bf-brand img { height: 24px; width: auto; }
.gsearch.b { flex: 1; max-width: 420px; }
.gsearch.b label { height: 48px; padding: 0 12px 0 16px; border-radius: 999px; background: #fff; color: var(--muted); }
.gsearch.b input { color: var(--ink); }
.gsearch.b kbd { border-radius: 999px; }
.bf-top-r { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.bf-date { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px; border-radius: 999px; background: #fff; font-size: 13.5px; font-weight: 500; }
.bf-top-r .bell { width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--ink); --bell-ring: #fff; }
.bf-content { min-width: 0; }
.ds-b .page-head { margin: 4px 4px 18px; align-items: center; }
.ds-b .page-title { font-size: 30px; font-weight: 700; letter-spacing: -.03em; }
.ds-b .page-sub { color: var(--muted); }
.ds-b .panel { border: 0; border-radius: 28px; background: #fff; }
.ds-b .tab { border-radius: 999px; } .ds-b .tab.on { background: var(--brand); color: #fff; } .ds-b .tab.on em { background: rgba(255, 255, 255, .2); color: #fff; }
.ds-b .callout { border-radius: 16px; }
.ds-b .datebox { border: 0; background: var(--surface); }
.ds-b .outcome { border-radius: 16px; }
.ds-b .form input:not([type=checkbox]):not([type=radio]):not([type=file]), .ds-b .form select, .ds-b .form textarea { border: 0; border-radius: 14px; background: var(--surface); }
.ds-b .drop { border-radius: 20px; }
.ds-b .assume { background: var(--p-pending); } .ds-b .assume p { margin: 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.6; } .ds-b .assume .bc-t { color: var(--c-pending); }

/* ---------- Dashboard ---------- */
.ovb { display: grid; grid-template-columns: minmax(280px, 330px) minmax(0, 1fr) minmax(260px, 300px); gap: 16px; align-items: start; }
.ovb-c { display: grid; gap: 14px; min-width: 0; align-content: start; }
.greet h1 { font-size: 26px; font-weight: 600; letter-spacing: -.025em; }
.greet p { margin: 10px 0 0; color: var(--ink-2); line-height: 1.6; } .greet p b { color: var(--ink); }

/* ---------- B6 case progress ---------- */
.ptabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 16px; padding: 4px; border-radius: 999px; background: #fff; scrollbar-width: none; width: fit-content; max-width: 100%; }
.ptabs::-webkit-scrollbar { display: none; }
.ptab { padding: 9px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.ptab:hover { color: var(--ink); } .ptab.on { background: var(--brand); color: #fff; }
.pgb { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
.pgb-l, .pgb-r { display: grid; gap: 14px; min-width: 0; }

/* ---------- B7/B8 list + reading pane ---------- */
.mail { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
.mail-l { position: sticky; top: 16px; display: grid; gap: 10px; min-width: 0; }
.mail-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.mail-filters .select-pill { height: 44px; }
.mail-list { display: grid; gap: 10px; max-height: calc(100dvh - 300px); overflow-y: auto; padding: 2px; scrollbar-width: thin; }
.mail-r { padding: 22px 28px 28px; }
.mail-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.mail-bar-r { display: flex; gap: 8px; flex-wrap: wrap; }
.mail-hd { display: grid; justify-items: center; gap: 2px; margin-bottom: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--line-2); text-align: center; }
.mail-hd .lbl { margin-top: 12px; } .mail-hd h2 { max-width: 640px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; } .mail-hd p { max-width: 600px; margin: 6px 0 0; color: var(--muted); }
.mail-hd .ficon { width: 64px; height: 64px; border-radius: 50%; font-size: 12px; }
.tl-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 8px 0 12px; }
.tl-h h3 { font-size: 16px; font-weight: 600; }
.tl-h .seg-pill { background: var(--surface); }
.chap-tl > li { align-items: flex-start; }
.chap-tl > li > span { display: grid; gap: 1px; } .chap-tl > li > span small { font-size: 12px; font-weight: 400; color: var(--muted); }
.chap-tl > li.now > span small { color: #CFE3F4; }
.chap-tl .chap-d { min-width: 92px; padding-top: 1px; }
.chap-tl > li.todo { background: transparent; border: 1.5px dashed var(--line); }
.chap-tl > li .link { font-size: 14px; display: inline; text-align: left; }
.req-b { display: grid; justify-items: center; gap: 8px; padding: 28px; border-radius: 20px; background: var(--p-awaiting); text-align: center; }
.req-b .ic-c { background: #fff; color: var(--c-awaiting); } .req-b p { max-width: 460px; margin: 0; color: var(--ink-2); }
.paper-b { border: 0; border-radius: 20px; background: var(--surface); box-shadow: none; }

/* ---------- B9 compliance ---------- */
.od-b { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; padding: 14px 18px; border-radius: 22px; background: #fff; color: var(--c-danger); font-size: 14px; }
.od-b > span { color: var(--ink-2); } .od-b b { color: var(--c-danger); } .od-b .link { display: inline; font-size: 14px; }
.cmp-b { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.cmp-side { display: grid; gap: 14px; }
.cal-top { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.cal-top h2 { min-width: 170px; text-align: center; font-size: 19px; font-weight: 600; }
.cal-top .cb { background: var(--surface); box-shadow: none; }
.cal-today { margin-left: auto; }
.cal-wk, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-wk { margin-bottom: 6px; } .cal-wk span { text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); }
.cal-c { min-width: 0; min-height: 78px; display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 14px; background: var(--surface); }
.cal-c.out { background: transparent; } .cal-c.we { background: #F8F9F9; }
.cal-c.today { background: var(--brand); } .cal-c.today .cal-n { color: #fff; }
.cal-n { padding: 2px 4px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.cal-i { display: block; width: 100%; padding: 3px 6px; border-radius: 8px; background: #fff; color: var(--c-progress); text-align: left; font-size: 11px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-i.s-danger { background: var(--p-danger); color: var(--c-danger); } .cal-i.s-awaiting { background: var(--p-awaiting); color: var(--c-awaiting); } .cal-i.s-done { background: var(--p-done); color: var(--c-done); }
.cal-legend { display: flex; gap: 6px 14px; flex-wrap: wrap; margin: 14px 0 0; font-size: 12px; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; } .cal-legend span::before { content: ''; width: 9px; height: 9px; border-radius: 50%; }
.cal-legend .s-danger::before { background: var(--c-danger); } .cal-legend .s-awaiting::before { background: var(--c-awaiting); } .cal-legend .s-progress::before { background: var(--c-progress); } .cal-legend .s-done::before { background: var(--c-done); }
.crows { display: grid; gap: 8px; }
.crow-b { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 18px; background: var(--surface); cursor: pointer; transition: background .15s; }
.crow-b:hover { background: var(--surface-2); }
.crow-d { width: 46px; height: 46px; border-radius: 50%; display: grid; place-content: center; flex: none; background: #fff; text-align: center; line-height: 1.05; }
.crow-d b { font-size: 16px; } .crow-d small { font-size: 10px; font-weight: 600; text-transform: uppercase; color: var(--muted); }
.crow-b.s-danger .crow-d { background: var(--c-danger); color: #fff; } .crow-b.s-danger .crow-d small { color: #FFDCD7; }
.crow-b.s-awaiting .crow-d { background: var(--brand); color: #fff; } .crow-b.s-awaiting .crow-d small { color: #CFE3F4; }
.crow-b .crow-m { flex: 1; display: grid; min-width: 0; } .crow-b .crow-m b { font-size: 14px; font-weight: 600; line-height: 1.35; } .crow-b .crow-m small { font-size: 12px; color: var(--muted); }
.ds-b .crow-b .remind { color: var(--muted); } .ds-b .crow-b .remind.on { background: var(--lime); color: var(--lime-ink); }

/* ---------- B10 timesheet ---------- */
.tsb { display: grid; grid-template-columns: minmax(270px, 320px) minmax(0, 1fr); gap: 16px; align-items: start; }
.tsb-l { position: sticky; top: 16px; display: grid; gap: 14px; }
.tsb-r { display: grid; gap: 14px; min-width: 0; }
.month-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.month-nav h2 { font-size: 18px; font-weight: 600; text-align: center; }
.month-nav .cb { background: var(--surface); box-shadow: none; }
.mrows { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.mrows li { display: grid; grid-template-columns: minmax(84px, auto) minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 16px; background: var(--surface); }
.mrows li.is-cur { background: #fff; box-shadow: inset 0 0 0 2px var(--brand); }
.mrow-l { display: flex; align-items: center; gap: 8px; min-width: 0; } .mrow-l b { font-size: 13.5px; font-weight: 600; } .mrow-l small { font-size: 11.5px; color: var(--muted); }
.mrows .mrow-l:has(small) { display: grid; gap: 0; }
.mrows em { font-style: normal; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; } .mrows em small { color: var(--c-awaiting); }
.tw { display: grid; gap: 14px; }
.tw-w { padding: 18px 20px; }
.tw-h { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tw-h > span:nth-child(2) { flex: 1; display: grid; } .tw-h b { font-size: 16px; font-weight: 600; } .tw-h small { font-size: 12.5px; color: var(--muted); }
.tw-h .dk { width: 58px; height: 58px; } .tw-h .dk b { font-size: 15px; }
.tw-w ul { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.tw-w li { display: grid; grid-template-columns: 44px 32px minmax(0, 1fr) auto 50px; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 16px; background: var(--surface); }
.tw-d { display: grid; line-height: 1.15; } .tw-d b { font-size: 13px; } .tw-d small { font-size: 11.5px; color: var(--muted); }
.tw-m { display: grid; min-width: 0; } .tw-m b { font-size: 13.5px; font-weight: 500; } .tw-m small { font-size: 12px; color: var(--muted); }
.tw-tags { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.tw-hr { text-align: right; font-variant-numeric: tabular-nums; }
.tsb-l .seg-pill { background: var(--surface); }

/* ---------- B11 retainer ---------- */
.rtb { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
.rtb-l, .rtb-r { display: grid; gap: 14px; min-width: 0; }
.slot-c { display: flex; gap: 8px; }
.slot-c span { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--muted); border: 1.5px dashed #C9CDD2; }
.slot-c span.used { background: var(--brand); color: #fff; border: 0; }

/* ---------- B3 company & users ---------- */
.acb { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
.acb-l, .acb-r { display: grid; gap: 14px; min-width: 0; }
.acb-users { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 10px; }

/* ---------- Dialogs, toasts, popovers ---------- */
.ds-b .modal-wrap { place-items: stretch end; padding: 16px; }
.ds-b .modal-backdrop { background: rgba(30, 36, 44, .3); }
.ds-b .modal { border: 0; border-radius: 32px; transform: translateX(48px); }
.ds-b .modal-wrap:not(:has(.modal-sm)) .modal { height: calc(100vh - 32px); max-height: none; }
.ds-b .modal-lg { width: min(760px, 100%); }
.ds-b .modal-wrap:has(.modal-sm) { place-items: center; }
.ds-b .modal-wrap:has(.modal-sm) .modal { transform: translateY(12px) scale(.98); }
.ds-b .modal-wrap.in .modal { transform: none; }
.ds-b .modal-head { padding: 24px 26px 14px; border: 0; }
.ds-b .modal-head h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.ds-b .modal-x { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); color: var(--ink); }
.ds-b .modal-body { flex: 1; padding: 8px 26px 20px; }
.ds-b .modal-foot { padding: 14px 26px 22px; border: 0; }
.ds-b .md-grid { border-radius: 18px; background: var(--surface); }
.ds-b .paper { border: 0; border-radius: 20px; }
.ds-b #toasts { top: calc(28px + env(safe-area-inset-top, 0px)); bottom: auto; }
.ds-b .toast { padding: 12px 18px; border-radius: 999px; background: var(--brand-d); transform: translateY(-10px); }
.ds-b .toast.in { transform: none; } .ds-b .toast .ic { color: #8FCBF2; }
.ds-b .pop { border: 0; border-radius: 24px; padding: 8px; box-shadow: 0 30px 70px -24px rgba(20, 21, 22, .35); }
.ds-b .pop-h { margin-bottom: 6px; border: 0; border-radius: 16px; background: var(--surface); }
.ds-b .pop-i { border-radius: 14px; }
.ds-b .notif { border-radius: 16px; }
.ds-b .notif-i { background: var(--surface); color: var(--ink); }
.ds-b .notif.unread::after { background: var(--k-doc); }
.ds-b .pop-user-h { border: 0; border-radius: 16px; background: var(--surface); }

/* ---------- Responsive ---------- */
@media (max-width: 1400px) {
  .ovb { grid-template-columns: minmax(280px, 320px) minmax(0, 1fr); }
  .ovb-r { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 1100px) {
  .ovb, .pgb, .mail, .cmp-b, .tsb, .rtb, .acb { grid-template-columns: minmax(0, 1fr); }
  .mail-l, .tsb-l { position: static; }
  .mail-list { max-height: 420px; }
  .bf-date { display: none; }
  .lgb-frame { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; }
  .lgb-side { display: none; }
}
@media (max-height: 820px) {
  .lg-b { padding: 10px; }
  .lgb-frame { padding: 10px; min-height: calc(100dvh - 20px); border-radius: 32px; }
  .lgb-card { padding-block: 16px 14px; }
  .lgb-brand { height: 42px; } .lgb-brand img { height: 21px; }
  .lgb-in { padding: 8px 0; } .lgb-in > .ic-c { display: none; } .lgb-in > .lbl { margin-top: 0; }
  .lgb-sub { margin-bottom: 14px; }
  .lgb-in h1 { font-size: 30px; }
  .lg-b .field-in { height: 46px; } .lg-b .btn-primary { height: 48px; }
  .lgb-mini .dk { width: 58px; height: 58px; }
}
@media (max-width: 760px) {
  .dash-b { padding: 0; }
  /* no backdrop-filter here: it would make the fixed dock stick to the frame instead of the screen */
  .bf { display: block; min-height: 100dvh; border-radius: 0; border: 0; background: rgba(255, 255, 255, .35); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
  /* the rail becomes a floating dock at the bottom */
  .bf-rail { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); top: auto; height: 68px; flex-direction: row; justify-content: flex-start; gap: 8px; padding: 0 10px; border-radius: 999px; background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 20px 40px -20px rgba(20, 21, 22, .35); overflow-x: auto; scrollbar-width: none; z-index: 40; }
  .bf-rail::-webkit-scrollbar { display: none; }
  .bf-logo, .bf-tip { display: none; }
  .bf-nav, .bf-foot { display: flex; gap: 8px; margin: 0; }
  .bf-rail .cb { width: 46px; height: 46px; background: var(--surface); box-shadow: none; } .bf-rail .cb.on { background: var(--brand); }
  .bf-me .av { --s: 46px !important; }
  .bf-me-a .pop { left: auto; right: 0; bottom: calc(100% + 12px); position: fixed; right: 16px; bottom: 90px; }
  .bf-main { padding: 12px 12px 96px; gap: 14px; }
  .bf-brand { padding: 0 14px; height: 44px; } .bf-brand img { height: 20px; }
  .gsearch.b label { height: 44px; } .gsearch.b kbd { display: none; }
  .bf-top-r .bell { width: 44px; height: 44px; }
  .ds-b .page-title { font-size: 24px; }
  .bc { padding: 18px; border-radius: 24px; } .mail-r { padding: 18px; }
  .hero { padding: 20px; min-height: 260px; } .hero-lg { min-height: 300px; }
  .hero-count { display: none; }
  .tw-w li { grid-template-columns: 40px minmax(0, 1fr) auto; } .tw-w li .av { display: none; }
  .tw-tags { grid-column: 2; grid-row: 2; justify-content: flex-start; } .tw-hr { grid-column: 3; grid-row: 1; }
  .cal-c { min-height: 50px; padding: 4px; } .cal-i { height: 6px; padding: 0; font-size: 0; border-radius: 3px; }
  .chap-tl .chap-d { min-width: 0; }
  .chap-tl > li { flex-wrap: wrap; }
  .ds-b .modal-wrap { padding: 0; }
  .ds-b .modal-wrap:not(:has(.modal-sm)) .modal { width: 100%; height: 100%; border-radius: 0; }
  .ds-b .modal-wrap:has(.modal-sm) { place-items: end stretch; }
  .ds-b .modal-wrap:has(.modal-sm) .modal { border-radius: 28px 28px 0 0; }
  .lg-b { padding: 10px; }
  .lgb-frame { padding: 10px; border-radius: 30px; min-height: calc(100dvh - 20px); }
  .lgb-card { padding: 20px 20px 16px; border-radius: 24px; }
  .lg-b .demo-note { padding-right: 70px; }
}

/* user avatar in the rail in HADS navy */
.ds-b .bf-me .av { background: var(--brand); }
