:root {
  color-scheme: light;
  --navy-950: #081925;
  --navy-900: #0c2438;
  --navy-800: #173a55;
  --ink: #17242e;
  --muted: #647481;
  --line: #dce4e9;
  --surface: #ffffff;
  --canvas: #f3f6f7;
  --teal: #14a89a;
  --teal-soft: #e1f4f1;
  --amber: #d99a23;
  --amber-soft: #fbf0d8;
  --blue-soft: #e7f0f7;
  --danger: #b84b4b;
  --shadow: 0 16px 38px rgba(21, 46, 61, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-synthesis: none;
}
/* Chinese reading (the language layer sets <html lang="zh-CN">): CJK glyphs need more leading and no tracking */
html[lang="zh-CN"] body { line-height: 1.65; }
html[lang="zh-CN"] .status-pill, html[lang="zh-CN"] .eyebrow { letter-spacing: 0; }

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); }
button { font: inherit; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--navy-950); color: white; padding: 28px 18px 20px; display: flex; flex-direction: column; z-index: 20; }
.brand { display: flex; gap: 12px; align-items: center; padding: 0 10px 30px; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--teal); color: #062f2c; font-size: 1.2rem; font-weight: 900; }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font-size: 1rem; letter-spacing: .01em; }
.brand-copy small { margin-top: 4px; color: #8fa7b6; font-size: .75rem; }
.nav-list { display: grid; gap: 8px; }
.nav-item { width: 100%; min-height: 48px; border: 0; border-radius: 12px; padding: 0 12px; display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; color: #aabcc8; background: transparent; text-align: left; cursor: pointer; transition: .18s ease; }
.nav-item:hover { color: white; background: rgba(255,255,255,.06); transform: translateX(2px); }
.nav-item.active { background: #14344b; color: white; box-shadow: inset 3px 0 0 var(--teal); }
.nav-icon { font-size: 1.12rem; text-align: center; }
.nav-count { min-width: 24px; padding: 3px 7px; border-radius: 999px; background: rgba(255,255,255,.08); font-size: .72rem; text-align: center; }
.nav-item.active .nav-count { background: var(--teal); color: #062f2c; font-weight: 800; }
.sidebar-footer { margin-top: auto; padding: 18px 12px 0; border-top: 1px solid rgba(255,255,255,.08); color: #8fa7b6; }
.demo-preview { display: grid; gap: 5px; margin-bottom: 18px; }
.demo-preview-note { color: #8fa7b6; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.demo-preview label { color: inherit; font-size: 12px; font-weight: 600; }
.demo-preview select { width: 100%; min-height: 40px; padding: 0 10px; border: 1px solid rgba(255,255,255,.24); border-radius: 10px; background: #173a55; color: white; font: inherit; font-size: 12px; cursor: pointer; }
.demo-preview select:focus-visible { outline: 2px solid #64a4ec; outline-offset: 2px; }
.sidebar-footer p { margin: 8px 0 0; font-size: .74rem; }
.environment { display: flex; align-items: center; gap: 8px; font-size: .76rem; color: #d9e4ea; }
.environment span { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(20,168,154,.13); }
.workspace { min-width: 0; }
.topbar { min-height: 78px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: space-between; padding: 0 34px; position: sticky; top: 0; z-index: 10; }
.company-switcher .eyebrow { display: block; margin-bottom: 2px; }
.company-switcher button { border: 0; background: transparent; padding: 0; font-weight: 750; color: var(--ink); cursor: pointer; }
.company-switcher button span { color: var(--muted); padding-left: 4px; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.icon-button { position: relative; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: white; color: var(--navy-800); cursor: pointer; }
.notification-dot { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; background: #ed7a55; border-radius: 50%; border: 2px solid white; }
.profile { display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--teal-soft); color: #08756c; font-weight: 800; font-size: .82rem; }
.alive-avatar { position: relative; overflow: hidden; }
.alive-avatar-photo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; background-color: inherit; }
.profile > span:last-child { display: grid; }
.profile strong { font-size: .82rem; }
.profile small { color: var(--muted); margin-top: 2px; font-size: .72rem; }
.mobile-menu { display: none; }
.view { display: none; padding: 34px; max-width: 2400px; margin: 0 auto; }
.view.active { display: block; animation: reveal .25s ease; }
@keyframes reveal { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.eyebrow { margin: 0 0 7px; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 800; }
h1 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.55rem); letter-spacing: -.04em; color: var(--navy-900); line-height: 1.08; }
.page-intro { margin: 8px 0 0; color: var(--muted); font-size: .98rem; }
.primary-button, .secondary-button { border-radius: 11px; min-height: 42px; padding: 0 18px; font-weight: 750; cursor: pointer; }
.primary-button { border: 0; color: white; background: var(--navy-900); box-shadow: 0 8px 18px rgba(12,36,56,.18); }
.primary-button:hover { background: var(--navy-800); transform: translateY(-1px); }
.secondary-button { border: 1px solid var(--line); background: white; color: var(--navy-900); }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.metric-card { min-height: 174px; padding: 21px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 9px 24px rgba(20,44,58,.05); overflow: hidden; position: relative; }
.metric-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--teal); }
.metric-card.navy::before { background: #3f789a; }
.metric-card.amber::before { background: var(--amber); }
.metric-card.slate::before { background: #8496a3; }
.metric-label { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .8rem; font-weight: 700; }
.metric-icon { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--teal-soft); color: #08756c; }
.navy .metric-icon { background: var(--blue-soft); color: #376d8e; }
.amber .metric-icon { background: var(--amber-soft); color: #aa7310; }
.slate .metric-icon { background: #edf1f3; color: #647481; }
.metric-card > strong { display: block; margin-top: 18px; font-size: 1.75rem; letter-spacing: -.04em; color: var(--navy-900); }
.metric-card p { margin: 7px 0 0; font-size: .78rem; color: var(--muted); }
.positive { color: #078879; font-weight: 800; }
.sparkline { position: absolute; right: 18px; bottom: 18px; width: 78px; height: 36px; display: flex; align-items: end; gap: 4px; }
.sparkline i { flex: 1; background: #b5e3dd; border-radius: 3px 3px 0 0; }
.sparkline i:nth-child(1) { height: 25%; } .sparkline i:nth-child(2) { height: 38%; } .sparkline i:nth-child(3) { height: 32%; } .sparkline i:nth-child(4) { height: 62%; } .sparkline i:nth-child(5) { height: 52%; } .sparkline i:nth-child(6) { height: 75%; } .sparkline i:nth-child(7) { height: 94%; background: var(--teal); }
.progress-track { margin-top: 18px; height: 5px; border-radius: 99px; background: #e9eef1; overflow: hidden; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: #3f789a; }
.slate .progress-track span { background: #8496a3; }
.split-bar { display: flex; margin-top: 18px; height: 5px; border-radius: 99px; overflow: hidden; background: #f1e2c1; }
.split-bar span { background: var(--amber); } .split-bar i { flex: 1; background: #f3c974; }
.dashboard-grid, .lower-grid { display: grid; gap: 16px; margin-top: 16px; }
.dashboard-grid { grid-template-columns: minmax(0, 1.65fr) minmax(320px, .85fr); }
.lower-grid { grid-template-columns: minmax(0, 1.35fr) minmax(340px, 1fr); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel-heading h2 { margin: 0; font-size: 1.12rem; letter-spacing: -.02em; color: var(--navy-900); }
.text-button, .more-button { border: 0; background: transparent; color: #0b8177; font-weight: 750; cursor: pointer; }
.more-button { color: var(--muted); letter-spacing: .12em; }
.attention-list { display: grid; }
.attention-row { border: 0; border-top: 1px solid var(--line); background: white; min-height: 70px; padding: 11px 4px; display: grid; grid-template-columns: 38px 1fr auto 22px; gap: 12px; align-items: center; text-align: left; cursor: pointer; }
.attention-row:first-child { border-top: 0; }
.attention-row:hover .row-arrow { transform: translateX(4px); color: var(--teal); }
.attention-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; font-weight: 900; }
.attention-icon.crm { background: var(--teal-soft); color: #08756c; }
.attention-icon.claims { background: var(--amber-soft); color: #a56c08; }
.attention-icon.purchase { background: var(--blue-soft); color: #356e91; }
.attention-icon.followup { background: #eeeaf7; color: #7055a6; }
.attention-copy { display: grid; gap: 4px; }
.attention-copy strong { font-size: .87rem; color: var(--ink); }
.attention-copy small { font-size: .74rem; color: var(--muted); }
.priority { font-size: .68rem; font-weight: 800; border-radius: 999px; padding: 5px 8px; }
.priority.high { color: #9e3434; background: #fde7e7; }
.priority.medium { color: #97610b; background: var(--amber-soft); }
.priority.low { color: #08756c; background: var(--teal-soft); }
.row-arrow { color: #8da0ac; transition: .18s ease; }
.pipeline-total { display: flex; align-items: baseline; gap: 7px; padding-bottom: 14px; }
.pipeline-total strong { font-size: 1.65rem; color: var(--navy-900); }
.pipeline-total span { color: var(--muted); font-size: .78rem; }
.pipeline-bars { display: grid; gap: 11px; }
.pipeline-bars > div span { display: flex; justify-content: space-between; font-size: .72rem; margin-bottom: 5px; }
.pipeline-bars b { font-weight: 650; }.pipeline-bars em { font-style: normal; color: var(--muted); }
.pipeline-bars i { display: block; height: 7px; border-radius: 99px; background: #edf1f3; overflow: hidden; }
.pipeline-bars u { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), #63cfc4); text-decoration: none; }
.conversion { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 15px; display: grid; grid-template-columns: 1fr auto; align-items: baseline; }
.conversion span { color: var(--muted); font-size: .72rem; }.conversion strong { font-size: 1.2rem; }.conversion small { grid-column: 1 / -1; margin-top: 4px; color: #078879; font-size: .7rem; }
.donut-legend { display: grid; gap: 16px; }.donut-legend span { display: grid; grid-template-columns: 9px 1fr; column-gap: 8px; }.donut-legend i { width: 8px; height: 8px; border-radius: 2px; margin-top: 4px; }.donut-legend b { font-size: .82rem; }.donut-legend small { grid-column: 2; color: var(--muted); font-size: .7rem; margin-top: 2px; }.donut-legend .paid { background: var(--teal); }.donut-legend .due { background: var(--amber); }.donut-legend .late { background: #d96a6a; }
.placeholder-view { min-height: calc(100vh - 78px); align-content: center; max-width: 720px; }
.placeholder-view h1 { margin-bottom: 12px; }.placeholder-view > p:not(.eyebrow) { color: var(--muted); line-height: 1.7; margin-bottom: 22px; }
.toast { position: fixed; right: 24px; bottom: 24px; padding: 12px 16px; border-radius: 10px; color: white; background: var(--navy-900); box-shadow: var(--shadow); transform: translateY(90px); opacity: 0; transition: .24s ease; z-index: 80; }
.toast.visible { transform: none; opacity: 1; }
.summary-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--navy-900); border-radius: 15px; padding: 5px; margin-bottom: 16px; color: white; box-shadow: 0 14px 28px rgba(12,36,56,.12); }
.summary-strip > div { padding: 16px 20px; border-left: 1px solid rgba(255,255,255,.1); display: grid; grid-template-columns: 1fr auto; align-items: baseline; }
.summary-strip > div:first-child { border-left: 0; }.summary-strip span { color: #a9bdc9; font-size: .78rem; }.summary-strip strong { font-size: 1.42rem; }.summary-strip small { grid-column: 1 / -1; color: #7fe0d6; margin-top: 5px; font-size: .7rem; }
.table-panel { padding: 0; overflow: hidden; }.table-panel > .panel-heading { padding: 22px 22px 0; }
.toolbar { min-height: 68px; padding: 13px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); }
.search-box { min-width: 270px; max-width: 400px; flex: 1; display: flex; align-items: center; gap: 8px; background: var(--canvas); border: 1px solid transparent; border-radius: 10px; padding: 0 12px; }
.search-box:focus-within { background: white; border-color: #92cdc6; box-shadow: 0 0 0 3px rgba(20,168,154,.1); }
.search-box span { color: var(--muted); font-size: 1.15rem; }.search-box input { width: 100%; height: 40px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: .88rem; }
.filter-group, .segmented-control { display: flex; gap: 4px; padding: 4px; background: var(--canvas); border-radius: 10px; }
.filter-chip, .segmented-control button { min-height: 32px; padding: 0 11px; border-radius: 7px; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: .76rem; font-weight: 700; }
.filter-chip.active, .segmented-control button.active { background: white; color: var(--navy-900); box-shadow: 0 2px 7px rgba(19,47,64,.1); }
.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 820px; }
.data-table th { padding: 11px 16px; background: #f8fafb; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; text-align: left; white-space: nowrap; }
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: .8rem; vertical-align: middle; color: #354650; }
.data-table tr:last-child td { border-bottom: 0; }.data-table tbody tr:hover { background: #f9fbfb; }.data-table tbody tr.hidden { display: none; }
.person-cell { display: flex; align-items: center; gap: 10px; min-width: 170px; }.person-cell > span:last-child, .data-table td > span:not(.status-pill) { display: grid; }.person-cell b, .data-table td b { color: var(--ink); font-size: .82rem; }.person-cell small, .data-table td small { color: var(--muted); margin-top: 3px; font-size: .69rem; }
.person-avatar { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; font-weight: 800; font-size: .7rem; }.person-avatar.mint { background: var(--teal-soft); color: #08756c; }.person-avatar.blue { background: var(--blue-soft); color: #356e91; }.person-avatar.amber { background: var(--amber-soft); color: #99640a; }.person-avatar.violet { background: #eeeaf7; color: #7055a6; }.person-avatar.coral { background: #fbe7e0; color: #ad593b; }
.source-badge { width: 25px; height: 25px; display: inline-grid !important; place-items: center; border-radius: 7px; margin-right: 5px; font-size: .64rem; font-weight: 850; }.source-badge.whatsapp { background: #e0f6e9; color: #117b44; }.source-badge.facebook { background: #e5effb; color: #2767b1; }.source-badge.instagram { background: #f9e5f0; color: #b13d7a; }.source-badge.referral { background: #eeeaf7; color: #7055a6; }
.unassigned-label { color: #a05d16; font-weight: 700; }.mini-user { display: flex; align-items: center; gap: 7px; }.mini-user > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: var(--navy-900); color: white; font-size: .57rem; font-weight: 800; }
.status-pill { display: inline-flex !important; width: max-content; align-items: center; min-height: 25px; border-radius: 999px; padding: 0 9px; font-size: .66rem; font-weight: 800; white-space: nowrap; }.status-pill.new { background: var(--blue-soft); color: #356e91; }.status-pill.contacted { background: var(--amber-soft); color: #96620b; }.status-pill.qualified { background: #eeeaf7; color: #6c53a0; }.status-pill.proposal { background: #e5edf8; color: #405f91; }.status-pill.won { background: var(--teal-soft); color: #08756c; }.status-pill.overdue { background: #fde7e7; color: #a33e3e; }.status-pill.neutral { background: #edf1f3; color: #60727e; }
.row-menu { border: 0; background: transparent; color: #84939d; cursor: pointer; letter-spacing: .08em; }.table-footer { padding: 13px 18px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .72rem; border-top: 1px solid var(--line); }.table-footer div { display: flex; gap: 4px; }.table-footer button { min-width: 30px; height: 30px; border: 1px solid var(--line); background: white; border-radius: 7px; color: var(--ink); cursor: pointer; }.table-footer button:disabled { opacity: .4; }
.compact-metrics .metric-card { min-height: 150px; }.compact-metrics .metric-card > strong { font-size: 1.55rem; }
.split-workspace { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(320px, .72fr); gap: 16px; margin-top: 16px; align-items: start; }.selectable { cursor: pointer; }.selectable.active { background: #eff8f7 !important; box-shadow: inset 3px 0 0 var(--teal); }
.statement-panel { position: sticky; top: 96px; }.statement-head, .claim-detail-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; }.statement-head h2 { margin: 0; font-size: 1.16rem; }.statement-head > div > small { color: var(--muted); font-size: .7rem; }.balance-card { padding: 18px; margin: 18px 0; border-radius: 13px; background: var(--navy-900); color: white; display: grid; }.balance-card span { color: #a9bdc9; font-size: .72rem; }.balance-card strong { margin-top: 6px; font-size: 1.55rem; }.balance-card small { color: #7fe0d6; margin-top: 5px; font-size: .7rem; }.statement-list { display: grid; }.statement-list > div { display: grid; grid-template-columns: 30px 1fr auto; gap: 9px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }.statement-list i { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: var(--amber-soft); color: #9c6507; font-style: normal; font-weight: 800; }.statement-list i.credit { background: var(--teal-soft); color: #08756c; }.statement-list span { display: grid; }.statement-list b { font-size: .78rem; }.statement-list small { margin-top: 3px; color: var(--muted); font-size: .66rem; }.statement-list strong { font-size: .75rem; }.full-button { width: 100%; margin-top: 15px; }
.workflow-banner { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto; align-items: center; padding: 17px 22px; background: white; border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); margin-bottom: 16px; }.workflow-banner > i { height: 2px; background: #dce4e9; }.workflow-step { display: grid; grid-template-columns: 32px auto; column-gap: 9px; align-items: center; }.workflow-step > span { grid-row: 1 / 3; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-weight: 800; font-size: .72rem; }.workflow-step b { font-size: .76rem; }.workflow-step small { color: var(--muted); font-size: .65rem; margin-top: 2px; }.workflow-step.done > span { background: var(--teal); color: white; border-color: var(--teal); }.workflow-step.current > span { border: 2px solid var(--teal); color: #08756c; box-shadow: 0 0 0 4px var(--teal-soft); }
.claim-layout { display: grid; grid-template-columns: minmax(360px, .72fr) minmax(0, 1.25fr); gap: 16px; align-items: start; }.queue-count { padding: 5px 9px; border-radius: 999px; background: var(--amber-soft); color: #8d5b08; font-size: .7rem; font-weight: 800; }.segmented-control { margin-bottom: 14px; }.claim-cards { display: grid; gap: 9px; }.claim-card { border: 1px solid var(--line); border-radius: 11px; background: white; padding: 13px; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "type value age" "person person person"; gap: 8px 12px; text-align: left; cursor: pointer; }.claim-card:hover, .claim-card.active { border-color: #82c8c1; background: #f6fbfa; }.claim-type { width: max-content; padding: 4px 7px; border-radius: 6px; font-size: .62rem; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }.claim-type.reimbursement { color: #356e91; background: var(--blue-soft); }.claim-type.advance { color: #7a5298; background: #eee5f5; }.claim-value { grid-area: value; display: grid; }.claim-value b { font-size: .85rem; }.claim-value small, .claim-age, .claim-person small { color: var(--muted); font-size: .65rem; }.claim-person { grid-area: person; display: grid; padding-top: 8px; border-top: 1px solid var(--line); }.claim-person b { font-size: .76rem; }.claim-age { grid-area: age; }.claim-detail-head h2 { margin: 9px 0 4px; font-size: 1.25rem; }.claim-detail-head p { margin: 0; color: var(--muted); font-size: .72rem; }.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); margin: 20px 0; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }.detail-grid div { background: white; padding: 12px; }.detail-grid dt { color: var(--muted); font-size: .65rem; }.detail-grid dd { margin: 4px 0 0; color: var(--ink); font-size: .78rem; font-weight: 700; }.amount-summary { border-left: 3px solid var(--teal); padding: 8px 0 8px 14px; display: grid; }.amount-summary span { color: var(--muted); font-size: .68rem; }.amount-summary strong { margin-top: 4px; font-size: 1.35rem; }.amount-summary small { margin-top: 4px; color: #08756c; font-size: .68rem; }.supporting-document { margin: 17px 0; padding: 12px; display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; }.document-thumb { width: 38px; height: 42px; display: grid; place-items: center; border-radius: 7px; background: #fde7e7; color: #a33e3e; font-size: .62rem; font-weight: 900; }.supporting-document > span:nth-child(2) { display: grid; }.supporting-document b { font-size: .75rem; }.supporting-document small { margin-top: 3px; color: var(--muted); font-size: .65rem; }.request-note { border-top: 1px solid var(--line); padding-top: 14px; }.request-note b { font-size: .75rem; }.request-note p { color: var(--muted); line-height: 1.5; font-size: .78rem; }.approval-actions { display: flex; justify-content: end; gap: 8px; margin-top: 18px; }.approve-button, .reject-button { min-height: 42px; border-radius: 10px; padding: 0 16px; font-weight: 800; cursor: pointer; }.approve-button { border: 0; background: var(--teal); color: #063b36; }.reject-button { border: 1px solid #efc9c9; background: white; color: #9e3434; }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(8,25,37,.54); backdrop-filter: blur(4px); padding: 24px; display: grid; place-items: center; }.modal-backdrop[hidden] { display: none; }.modal { width: min(560px, 100%); border-radius: 17px; background: white; box-shadow: 0 28px 80px rgba(0,0,0,.25); padding: 26px; position: relative; animation: modal-in .2s ease; }@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.99); } }
.modal-close { position: absolute; top: 15px; right: 15px; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--muted); cursor: pointer; font-size: 1.2rem; }.modal h2 { margin: 0; color: var(--navy-900); font-size: 1.45rem; }.modal-copy { color: var(--muted); font-size: .8rem; line-height: 1.5; }.modal form { display: grid; gap: 14px; margin-top: 20px; }.modal label { display: grid; gap: 6px; color: var(--ink); font-size: .76rem; font-weight: 750; }.modal input, .modal select, .modal textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 10px 11px; color: var(--ink); background: white; font: inherit; font-size: .82rem; outline: 0; }.modal input:focus, .modal select:focus, .modal textarea:focus { border-color: #78c4bc; box-shadow: 0 0 0 3px rgba(20,168,154,.1); }.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.modal-actions { margin-top: 8px; display: flex; justify-content: end; gap: 8px; }

@media (max-width: 1100px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid, .lower-grid { grid-template-columns: 1fr; }
  .split-workspace, .claim-layout { grid-template-columns: 1fr; }
  .statement-panel { position: static; }
  .summary-strip { grid-template-columns: repeat(2, 1fr); }
  .summary-strip > div:nth-child(3) { border-left: 0; border-top: 1px solid rgba(255,255,255,.1); }.summary-strip > div:nth-child(4) { border-top: 1px solid rgba(255,255,255,.1); }
}

@media (max-width: 760px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: -270px; width: 252px; transition: left .22s ease; box-shadow: 20px 0 40px rgba(0,0,0,.18); }
  .sidebar.open { left: 0; }
  .topbar { padding: 0 18px; }
  .mobile-menu { display: block; border: 0; background: transparent; font-size: 1.3rem; color: var(--navy-900); }
  .company-switcher .eyebrow, .profile > span:last-child { display: none; }
  .company-switcher button { font-size: .78rem; }
  .view { padding: 24px 18px; }
  .page-heading { align-items: start; flex-direction: column; }
  .metric-grid { grid-template-columns: 1fr; }
  .attention-row { grid-template-columns: 36px 1fr 20px; }
  .priority { display: none; }
  .toolbar { align-items: stretch; flex-direction: column; }.search-box { min-width: 0; max-width: none; }.filter-group { overflow-x: auto; }
  .summary-strip { grid-template-columns: 1fr; }.summary-strip > div { border-left: 0; border-top: 1px solid rgba(255,255,255,.1); }.summary-strip > div:first-child { border-top: 0; }
  .workflow-banner { overflow-x: auto; grid-template-columns: 130px 45px 130px 45px 130px 45px 130px; }
  .approval-actions { flex-wrap: wrap; }.form-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Alive Ops app additions (foundation). Appended only: every rule above is
   the approved prototype design and stays unchanged.
   ========================================================================== */
[hidden] { display: none !important; }
a.nav-item { text-decoration: none; }
.nav-count:empty { display: none; }
.sidebar-footer p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-signout { margin-top: 12px; border: 1px solid rgba(255,255,255,.12); background: transparent; color: #d9e4ea; border-radius: 9px; padding: 7px 12px; font-size: .74rem; font-weight: 700; cursor: pointer; }
.sidebar-signout:hover { background: rgba(255,255,255,.06); color: white; }
.company-switcher { position: relative; }
.company-switcher button:disabled { cursor: default; }
.switcher-menu, .profile-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px; max-height: 60vh; overflow-y: auto; background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; z-index: 30; display: grid; gap: 2px; }
.switcher-menu button, .profile-menu button { width: 100%; text-align: left; padding: 9px 11px; border: 0; border-radius: 8px; background: transparent; font-size: .82rem; font-weight: 650; color: var(--ink); cursor: pointer; }
.switcher-menu button:hover, .profile-menu button:hover { background: var(--canvas); }
.switcher-menu button.active { background: var(--teal-soft); color: #08756c; }
.company-switcher .switcher-menu button span { padding-left: 0; color: var(--muted); font-weight: 600; font-size: .72rem; }
.profile-wrap { position: relative; }
.profile-button { border: 0; background: transparent; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.profile-menu { left: auto; right: 0; min-width: 210px; }
.profile-menu small { display: block; padding: 6px 11px 9px; margin-bottom: 4px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .72rem; overflow-wrap: anywhere; }
a.icon-button { display: grid; place-items: center; text-decoration: none; }
.toast.error { background: #9e3434; }
.toast.success { background: #0b6f66; }
.empty-state { padding: 26px 12px; text-align: center; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.empty-state strong { display: block; color: var(--ink); font-size: .9rem; margin-bottom: 4px; }
.dashboard-grid.single, .lower-grid.single { grid-template-columns: minmax(0, 1fr); }
.metric-card .negative { color: #a33e3e; font-weight: 800; }
.boot-message { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--muted); }
.boot-message strong { display: block; color: var(--navy-900); font-size: 1.1rem; margin-bottom: 8px; }
.stack { display: grid; gap: 16px; align-content: start; }
.data-table td > .status-pill + small { display: block; }
.table-footer button:not(:disabled):hover { border-color: #92cdc6; }
/* modal extensions: wide form, scroll, checkboxes, link box */
.modal { max-height: calc(100vh - 48px); overflow-y: auto; }
.modal.wide { width: min(780px, 100%); }
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }
.field-legend { margin: 2px 0 8px; color: var(--ink); font-size: .76rem; font-weight: 750; }
.field-hint { color: var(--muted); font-size: .7rem; font-weight: 500; }
.modal input[type="checkbox"] { width: auto; margin: 0; accent-color: var(--teal); }
.link-box { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 12px; border: 1px solid #b5e3dd; border-radius: 11px; background: var(--teal-soft); }
.modal .link-box input { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .72rem; }
.link-box p { grid-column: 1 / -1; margin: 0; color: #08756c; font-size: .72rem; }
.form-error { padding: 9px 11px; border-radius: 9px; background: #fde7e7; color: #9e3434; font-size: .78rem; font-weight: 650; }
.form-success { padding: 9px 11px; border-radius: 9px; background: var(--teal-soft); color: #08756c; font-size: .8rem; font-weight: 650; line-height: 1.5; }
.modal-actions.split { justify-content: space-between; flex-wrap: wrap; }
.modal-actions .group { display: flex; gap: 8px; flex-wrap: wrap; }
a.attention-row { color: inherit; text-decoration: none; }
.quick-list { display: grid; margin-top: 16px; }
.quick-list .attention-row { grid-template-columns: 38px 1fr 22px; }
/* sign-in and set-password pages */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(circle at 15% 0%, #173a55 0, var(--navy-950) 60%); }
.auth-card { width: min(420px, 100%); padding: 30px; border-radius: 18px; background: white; box-shadow: 0 28px 80px rgba(0,0,0,.3); }
.auth-card .brand { padding: 0 0 26px; }
.auth-card .brand-copy strong { color: var(--navy-900); }
.auth-card .brand-copy small { color: var(--muted); }
.auth-card h1 { font-size: 1.6rem; }
.auth-card form { display: grid; gap: 14px; margin-top: 20px; }
.auth-card label { display: grid; gap: 6px; color: var(--ink); font-size: .76rem; font-weight: 750; }
.auth-card input { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; font: inherit; font-size: .88rem; outline: 0; }
.auth-card input:focus { border-color: #78c4bc; box-shadow: 0 0 0 3px rgba(20,168,154,.1); }
.auth-card .primary-button { width: 100%; }
.auth-card .primary-button:disabled, .modal .primary-button:disabled { opacity: .6; cursor: default; transform: none; }
.auth-foot { margin: 18px 0 0; color: var(--muted); font-size: .74rem; text-align: center; line-height: 1.5; }
.auth-foot a, .form-success a { color: #0b8177; font-weight: 750; }
@media (max-width: 760px) {
  .form-row.three { grid-template-columns: 1fr; }
  .modal-actions.split { justify-content: stretch; }
  .auth-card { padding: 24px 20px; }
}

/* ---- My profile dialog (client.js, every page; docs/GROUP-SCOPE-AND-PAGES.md section 11) ----------------
   Same anatomy as the My tasks dialogs: white sheet, quiet slate borders, visible labels, error beside the field. */
.profile-modal { padding: 16px; background: #18213566; backdrop-filter: none; }
.profile-modal .modal { width: min(520px, 100%); padding: 24px; border: 1px solid #e4e8ee; border-radius: 14px; background: #fff; box-shadow: 0 18px 48px #1a263129; color: #25282d; font-size: 13px; }
.profile-modal h2 { margin: 0 44px 4px 0; color: #202a3e; font-size: 18px; font-weight: 500; letter-spacing: -.02em; line-height: 1.3; overflow-wrap: anywhere; }
.profile-modal .modal-copy { margin: 0 0 18px; color: #6d737c; font-size: 13px; line-height: 1.5; }
.profile-modal .modal-close { display: grid; place-items: center; top: 16px; right: 16px; width: 36px; height: 36px; padding: 0; border: 1px solid #e4e8ee; border-radius: 50%; background: #fff; }
.profile-modal .modal-close:hover { background: #f8f9fb; }
.profile-modal .modal-close img { width: 15px; height: 15px; opacity: .7; }
.profile-modal h3 { margin: 0; color: #25282d; font-size: 14px; font-weight: 600; }
.profile-modal .prf-section + .prf-section { margin-top: 18px; padding-top: 16px; border-top: 1px solid #e2e6ed; }
.profile-modal .prf-section-head p { margin: 2px 0 12px; color: #6d737c; font-size: 12px; line-height: 1.45; }
.profile-modal .prf-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 10px 0 0; }
.profile-modal .prf-facts div { min-width: 0; }
.profile-modal .prf-facts dt { color: #6d737c; font-size: 12px; }
.profile-modal .prf-facts dd { margin: 2px 0 0; color: #25282d; overflow-wrap: anywhere; }
.profile-modal .prf-facts dd.is-empty { color: #6d737c; }
.profile-modal form { display: grid; gap: 14px; margin: 0; }
.profile-modal .prf-field { display: grid; gap: 6px; min-width: 0; }
.profile-modal .prf-field label { display: block; color: #25282d; font-size: 13px; font-weight: 500; }
.profile-modal .prf-field input { width: 100%; min-height: 38px; margin: 0; padding: 0 12px; border: 1px solid #d9dee7; border-radius: 8px; background: #fff; box-shadow: none; color: #25282d; font: inherit; font-size: 13px; outline: 0; }
.profile-modal .prf-field input:focus { outline: 2px solid #3c6bc2; outline-offset: 1px; border-color: #b7c3d6; box-shadow: none; }
.profile-modal .prf-field input:disabled { background: #f6f7f9; color: #6d737c; }
.profile-modal .prf-field input[aria-invalid="true"] { border-color: #e11d48; }
.profile-modal #prf-bank_account_no { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.profile-modal :is(.prf-hint, .prf-meta) { margin: 0; color: #6d737c; font-size: 12px; line-height: 1.45; }
.profile-modal .prf-error { margin: 0; color: #be123c; font-size: 12px; line-height: 1.45; }
.profile-modal .prf-alert { padding: 10px 12px; border-radius: 8px; background: #fff1f2; color: #be123c; font-size: 13px; line-height: 1.45; }
.profile-modal .prf-confirm { display: grid; gap: 10px; padding: 12px; border: 1px solid #f1c7cf; border-radius: 8px; background: #fff5f6; }
.profile-modal .prf-confirm p { margin: 0; color: #25282d; line-height: 1.45; }
.profile-modal .prf-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-modal :is(.primary-button, .secondary-button) { min-height: 38px; border-radius: 999px; }
.profile-modal :is(.primary-button, .secondary-button):disabled { opacity: .55; cursor: default; }
.profile-modal .secondary-button.is-danger { border-color: #f1c7cf; color: #be123c; }
.profile-modal .secondary-button.is-danger:hover:not(:disabled) { background: #fff5f6; }
.profile-modal .prf-state { margin: 0; color: #4d545e; line-height: 1.5; }
.profile-modal .prf-state p { margin: 0 0 10px; }
.profile-modal .prf-photo-row { display: flex; align-items: center; gap: 14px; margin: 10px 0; }
.profile-modal .prf-photo-current { flex: none; }
.profile-modal .prf-photo-avatar { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #e7e9ec; color: #474c55; font-size: 20px; font-weight: 600; }
.profile-modal .prf-photo-content { min-width: 0; display: grid; gap: 8px; }
.profile-modal .prf-photo-section .prf-actions { gap: 8px; }
.profile-modal .prf-photo-section :is(button, input[type="range"]) { min-height: 44px; }
.profile-modal .prf-photo-editor { display: grid; justify-items: start; gap: 12px; margin-top: 14px; }
.profile-modal .prf-photo-editor canvas { display: block; width: min(256px, 100%); height: auto; aspect-ratio: 1; border: 1px solid #ccd9e2; border-radius: 10px; background: #f5f7f8; }
.profile-modal .prf-photo-controls { display: grid; gap: 8px; width: min(320px, 100%); }
.profile-modal .prf-photo-controls label { display: grid; gap: 2px; color: #25282d; font-size: 12px; font-weight: 500; }
.profile-modal .prf-photo-controls input { width: 100%; accent-color: #39414c; }
.profile-modal .prf-photo-status { margin: 10px 0 0; color: #be123c; line-height: 1.45; }
.profile-modal .prf-photo-status.is-progress { color: #4d545e; }
.profile-modal .prf-photo-section :is(button, input[type="range"]):focus-visible { outline: 2px solid #3c6bc2; outline-offset: 2px; }
.profile-modal [hidden] { display: none !important; }
@media (max-width: 560px) {
  .profile-modal .modal { padding: 20px 16px; }
  .profile-modal .modal-close { top: 10px; right: 10px; width: 44px; height: 44px; }
  .profile-modal h2 { min-height: 36px; }                /* the copy starts below the larger close button */
  .profile-modal .prf-facts { grid-template-columns: minmax(0, 1fr); }
}
