/* Hallmark · v2.0.0 · Taxora consultant workspace · blue palette · reference: Taxora_Financial_Consultant_SVG.zip */
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Instrument+Sans:wght@400;500;600;700&family=Schibsted+Grotesk:wght@600;700&display=swap');

:root {
  --paper: #f4f7fc;
  --surface: #fff;
  --rail: #e3edfa;
  --ink: #10294a;
  --muted: #445b78;
  --rule: #c8d8ec;
  --strong: #819bbb;
  --accent: #164eaa;
  --accent-hover: #113c85;
  --selected: #d2e4ff;
  --table: #e9f1fc;
  --status: #e1ebf8;
  --bar: #5c91dc;
  --bar-light: #a6c6f2;
  --on-accent: #fff;
  --on-navy-muted: #d4e5ff;
  --shadow: #10294a24;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --heading: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --number: "DM Mono", ui-monospace, monospace;
  --radius: 6px;
  --rail-width: 240px;
  --gutter: clamp(20px, 3.2vw, 46px);
  font: 15px/1.5 var(--body);
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
button, summary, input, select, textarea { font: inherit; }
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 6px 14px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--on-accent);
  background: var(--accent);
  font-weight: 700;
  cursor: pointer;
}
button:hover, .button:hover { background: var(--accent-hover); text-decoration: none; }
.secondary { background: var(--surface); color: var(--ink); border-color: var(--strong); }
.secondary:hover { background: var(--table); color: var(--accent); }
.text-button {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font-weight: 500;
}
.text-button:hover { background: transparent; text-decoration: underline; }

.workspace { display: grid; grid-template-columns: var(--rail-width) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--rail);
  border-right: 1px solid var(--rule);
  padding: 23px 18px;
  overflow: auto;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); font: 700 29px/1 var(--heading); letter-spacing: -.04em; }
.sidebar .brand { margin-inline: 12px; }
.brand span, .avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; letter-spacing: 0; font-weight: 700; }
.brand span { border-radius: var(--radius); background: var(--accent); color: var(--on-accent); font-size: 20px; }
.avatar { border-radius: 50%; background: var(--selected); color: var(--accent); font-size: 13px; }
.sidebar nav { margin-top: 22px; margin-bottom: 30px; }
.sidebar nav p { color: var(--muted); font-size: 13px; font-weight: 700; margin: 22px 12px 8px; }
.sidebar nav a { display: flex; align-items: center; min-height: 37px; color: var(--ink); padding: 7px 16px; border-left: 3px solid transparent; border-radius: 4px; font-size: 14px; }
.sidebar nav a:hover, .sidebar nav a[aria-current] { background: var(--selected); color: var(--accent); text-decoration: none; }
.sidebar nav a[aria-current] { border-left-color: var(--accent); font-weight: 700; }
.account { margin: auto 6px 0; padding-top: 16px; border-top: 1px solid var(--rule); display: flex; gap: 12px; align-items: center; font-size: 13px; }
.account-name { font-weight: 700; overflow-wrap: anywhere; }
.workarea { min-width: 0; }
.topbar, .public-header { min-height: 69px; border-bottom: 1px solid var(--rule); background: var(--surface); }
.topbar-inner, .public-header-inner { max-width: 1320px; min-height: 68px; margin: auto; padding: 9px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.public-header-inner { max-width: 1440px; }
.public-header .actions { margin: 0; }
.breadcrumb { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 13px; }
.breadcrumb strong { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 16px; }
.selector { position: relative; min-width: 0; }
.selector summary { list-style: none; cursor: pointer; display: flex; gap: 12px; align-items: center; justify-content: space-between; width: 230px; min-height: 38px; padding: 7px 11px; border: 1px solid var(--strong); border-radius: var(--radius); background: var(--surface); font-size: 14px; }
.selector summary::-webkit-details-marker { display: none; }
.chevron { flex: none; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.pop { position: absolute; right: 0; top: calc(100% + 9px); z-index: 10; width: min(348px, calc(100dvw - 28px)); max-height: 65vh; overflow: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); box-shadow: 0 12px 28px var(--shadow); padding: 15px; }
.pop label { display: block; margin: 4px 0; color: var(--muted); font-size: 13px; font-weight: 500; }
.pop input { width: 100%; margin-bottom: 8px; }
.pop a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 38px; padding: 6px 9px; border-radius: 4px; }
.pop a:hover, .pop a[aria-current] { background: var(--selected); }
.pop a span:last-child { flex: none; }
.pop a small { display: block; }
.nav-toggle { display: none; }

main, footer { max-width: 1320px; margin: auto; padding-inline: var(--gutter); }
main { padding-block: 34px; }
footer { padding-block: 10px 20px; color: var(--muted); font-size: 12px; }
.public main { max-width: 1440px; padding-top: 0; }
.hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.hero h1 { margin: 0; }
.hero p { margin: 8px 0 0; color: var(--muted); }
.hero .button { flex: none; }
h1, h2, h3 { margin: 0 0 .6rem; font: 700 15px/1.18 var(--heading); overflow-wrap: break-word; min-width: 0; }
h1 { font-size: 38px; letter-spacing: -.035em; }
h2 { font-size: 21px; letter-spacing: -.02em; }
h3 { font-size: 16px; }
p { margin: .5rem 0 1rem; }
.muted, small { color: var(--muted); }
.grid { display: grid; gap: 18px; margin: 18px 0; }
.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.inbox { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); }
section, .panel { min-width: 0; margin: 18px 0; padding: 18px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.grid > section { margin: 0; }
.kpi strong { display: block; font: 500 26px/1.3 var(--number); overflow-wrap: anywhere; }
.kpi p { margin: 0 0 5px; color: var(--muted); font-size: 13px; }
.emphasis-metrics .kpi:first-child { background: var(--ink); color: var(--on-accent); border-color: var(--ink); }
.emphasis-metrics .kpi:first-child p { color: var(--on-navy-muted); }
.ledger-metrics { gap: 0; margin: 0 0 36px; padding: 16px 0; border-block: 1px solid var(--rule); }
.ledger-metrics .kpi { background: transparent; border: 0; border-radius: 0; padding: 0 22px; }
.ledger-metrics .kpi:first-child { padding-left: 0; }
.ledger-metrics .kpi + .kpi { border-left: 1px solid var(--rule); }
.chip { display: inline-block; border-radius: 4px; padding: 4px 8px; font-size: 12px; font-weight: 650; background: var(--status); color: var(--muted); }
.blue, .good, .escalated { background: var(--selected); color: var(--accent); }
.warn { background: var(--status); color: var(--muted); }
.table-scroll, section:has(> table) { overflow: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th, td { padding: 11px 15px; border-bottom: 1px solid var(--rule); }
thead th { color: var(--ink); background: var(--table); font-weight: 700; font-size: 13px; }
td > a { font-weight: 700; }
.amount { font-family: var(--number); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
input, select, textarea { min-width: 0; max-width: 100%; padding: 7px 9px; border: 1px solid var(--strong); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
label { font-weight: 600; }
form p:has(> label) { display: grid; gap: 5px; margin: .5rem 0 .85rem; }
.filters, .tabs, .actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin: .75rem 0; }
.tabs { border-bottom: 1px solid var(--rule); }
.tabs a { color: var(--muted); padding: 8px 12px; border-bottom: 2px solid transparent; }
.tabs [aria-current] { color: var(--accent); border-color: var(--accent); font-weight: 700; }
.notice, .errorlist { padding: 10px 16px; border: 1px solid var(--rule); background: var(--table); border-radius: var(--radius); }
.priority-work, .report-table { padding: 0; border: 0; background: transparent; }
.priority-work table { min-width: 580px; }
.priority-scroll { max-height: 248px; overscroll-behavior: contain; }
.priority-scroll thead th { position: sticky; top: 0; z-index: 1; }
.overview-charts { margin-top: 28px; gap: 20px; }
.overview-charts .chart-panel { padding: 0; border: 0; background: transparent; }
.overview-charts .chart-panel + .chart-panel { padding-left: 20px; border-left: 1px solid var(--rule); border-radius: 0; }
.overview-charts .chart-panel { min-height: 175px; }
.chart-panel { min-height: 195px; }
.chart-panel h2 { margin-bottom: 17px; }
.chart { display: grid; gap: 9px; }
.bar-row { display: grid; grid-template-columns: minmax(80px, 1fr) minmax(0, 2fr) auto; gap: 10px; align-items: center; }
.bar-row progress { width: 100%; height: 12px; accent-color: var(--accent); }
.bar-row span:last-child, .legend b { font-family: var(--number); }
.columns { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 9px; align-items: end; text-align: center; }
.column { min-width: 0; display: grid; grid-template-rows: 100px auto; gap: 7px; font-size: 12px; color: var(--muted); }
.column-plot { display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--rule); }
.column-plot i { display: block; height: var(--size); width: min(56%, 38px); border-radius: 3px 3px 0 0; background: var(--bar); }
.column strong { font-family: var(--number); color: var(--ink); overflow-wrap: anywhere; }
.dot { width: 9px; height: 9px; display: inline-block; background: var(--series); border-radius: 50%; }
.donut-group { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; }
.donut { --donut: var(--table); position: relative; width: 116px; height: 116px; background: conic-gradient(var(--donut)); border-radius: 50%; display: grid; place-items: center; }
.donut::before { content: ""; position: absolute; inset: 16px; background: var(--surface); border-radius: 50%; }
.donut strong { position: relative; font-size: 22px; }
.legend { list-style: none; margin: 0; padding: 0; }
.legend li { display: flex; align-items: center; gap: 8px; margin: .4rem 0; }
.legend li b { margin-left: auto; }
.distribution { height: 8px; margin-block: 4px 16px; border-radius: 4px; background: linear-gradient(to right, var(--donut)); }
.pipeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; gap: 8px; list-style: none; }
.pipeline li { background: var(--table); border-radius: var(--radius); text-align: center; padding: 10px 4px; font-size: 12px; }
.pipeline b { display: block; color: var(--accent); font-size: 16px; }
.report-grid { grid-template-columns: minmax(0, 2fr) minmax(255px, 1fr); gap: 26px; }
.report-side { padding-left: 24px; border-left: 1px solid var(--rule); }
.report-side section { padding: 0; border: 0; background: transparent; margin-top: 0; }
.report-side section + section { margin-top: 28px; }
.reconciliation { margin: 12px 0; padding: 12px 15px; border-radius: var(--radius); background: var(--table); }
.reconciliation div { display: flex; gap: 10px; justify-content: space-between; margin: 7px 0; }
.reconciliation dd { margin: 0; }
.report-total { background: var(--table); font-weight: 700; }
.report-total:last-child { background: var(--selected); }
.report-delta { border-top: 1px solid var(--rule); padding-top: 7px; font-weight: 700; }
.thread div { padding: 12px; background: var(--table); border-radius: var(--radius); margin: 10px 0; overflow-wrap: anywhere; }
.thread div:first-child { margin-left: 12%; background: var(--accent); color: var(--on-accent); }
.source img { display: block; width: 100%; height: auto; }
.source { background: var(--table); }
.login { max-width: 430px; margin: 50px auto; }
.public .landing-hero { min-height: 389px; margin-inline: calc(-1 * var(--gutter)); padding: 42px var(--gutter); display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px; align-items: center; background: var(--accent); color: var(--on-accent); }
.landing-hero h1 { font-size: clamp(34px, 4.1vw, 58px); }
.landing-hero h1 span { color: var(--on-navy-muted); }
.landing-hero p { color: var(--on-navy-muted); max-width: 50ch; }
.landing-hero .button { color: var(--accent); background: var(--surface); margin-top: 12px; }
.landing-steps { background: var(--table); color: var(--ink); padding: 18px; border-radius: var(--radius); }
.landing-steps ol { list-style: none; padding: 0; margin: 12px 0 0; }
.landing-steps li { display: grid; gap: 3px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 12px; margin-top: 8px; }
.landing-steps small { font-size: 13px; }
.module-list section { display: flex; flex-direction: column; align-items: flex-start; }
.module-list .button { margin-top: auto; }
.module-list .kpi p { margin-bottom: 12px; }
.client-profile { display: flex; justify-content: space-between; align-items: start; gap: 16px; flex-wrap: wrap; }
.module-label { margin-left: .3em; }
[hidden] { display: none !important; }

@media (max-width: 1100px) {
  .four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inbox { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .inbox > section:last-child { grid-column: 1 / -1; }
  .ledger-metrics .kpi { padding: 7px 16px; }
  .ledger-metrics .kpi:nth-child(odd) { border-left: 0; padding-left: 0; }
}
@media (max-width: 900px) {
  .workspace { display: block; }
  .sidebar { display: none; position: fixed; inset: 58px auto 0 0; width: var(--rail-width); height: auto; z-index: 20; }
  .sidebar.open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .topbar-inner { min-height: 58px; }
  .breadcrumb { display: none; }
}
@media (max-width: 680px) {
  :root { --gutter: 14px; }
  main { padding-block: 21px; }
  .hero { flex-direction: column; gap: 12px; }
  h1 { font-size: 29px; }
  .three, .two, .split, .inbox, .report-grid, .public .landing-hero { grid-template-columns: minmax(0, 1fr); }
  .selector summary { width: min(230px, 59vw); }
  .top-actions > .chip { display: none; }
  .overview-charts .chart-panel + .chart-panel, .report-side { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); padding-top: 16px; }
  .report-table table { min-width: 330px; }
  .kpi strong { font-size: 19px; }
  .kpi { padding: 12px; }
  .public .landing-hero { padding-block: 28px; gap: 20px; }
  .column { grid-template-rows: 80px auto; }
  .pipeline li { font-size: 11px; }
}

