/* Bureau — local management demo. Deliberately quiet UI, dense and readable data. */
:root {
  color-scheme: light;
  --canvas: #f5f6f6;
  --surface: #fff;
  --ink: #202923;
  --muted: #69736d;
  --line: #e3e7e4;
  --line-strong: #cbd3cd;
  --accent: #275c45;
  --accent-dark: #19432f;
  --accent-soft: #eaf2ed;
  --amber: #886120;
  --amber-soft: #fbf2df;
  --red: #a2473c;
  --red-soft: #faeeea;
  --sidebar: 220px;
  --radius: 6px;
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 88px; }
body { margin: 0; background: var(--canvas); color: var(--ink); line-height: 1.5; }
body:has(dialog[open]) { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button, a, input, select, textarea { touch-action: manipulation; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
svg { flex-shrink: 0; vertical-align: middle; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong, b { font-weight: 700; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline-offset: 1px; }
::selection { color: var(--accent-dark); background: #dbe9df; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: 12px; transform: translateY(-160%); padding: 12px 18px; color: white; background: var(--accent); border-radius: var(--radius); }
.skip-link:focus { transform: none; }

/* Persistent application frame */
.app-shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100dvh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; flex-direction: column; width: var(--sidebar); padding: 25px 15px 17px; overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; min-height: 36px; margin: 0 10px 28px; font-size: 23px; font-weight: 800; letter-spacing: -.9px; }
.brand-mark { display: grid; place-items: center; flex: 0 0 33px; width: 33px; height: 33px; color: white; background: var(--accent); border-radius: 7px; font-size: 22px; font-weight: 700; line-height: 1; }
.brand-edition { align-self: flex-start; margin-top: 5px; color: #8b978e; font-size: 8px; font-weight: 500; letter-spacing: 0; }
.workspace-switch { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 46px; padding: 9px 10px; margin-bottom: 25px; text-align: left; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 12px; font-weight: 700; }
.workspace-switch > span { min-width: 0; }
.workspace-switch small { display: block; color: var(--muted); font-size: 10px; font-weight: 500; }
.workspace-switch > svg:last-child { margin-left: auto; width: 14px; height: 14px; color: var(--muted); }
.nav-label { padding: 0 12px; margin: 19px 0 8px; color: #869088; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.nav-button { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 44px; margin: 3px 0; padding: 10px 12px; border: 0; border-radius: var(--radius); background: transparent; color: #626d65; text-align: left; font-size: 12px; font-weight: 600; transition: background-color 150ms, color 150ms; }
.nav-button > svg { width: 18px; height: 18px; }
.nav-button:hover { background: #f4f6f4; color: var(--ink); }
.nav-button[aria-current="page"] { color: var(--accent); background: var(--accent-soft); font-weight: 750; }
.nav-count { display: inline-flex; align-items: center; justify-content: center; min-width: 21px; height: 21px; margin-left: auto; padding: 0 5px; font-size: 10px; font-weight: 700; background: #edf0ee; border-radius: 4px; font-variant-numeric: tabular-nums; }
.nav-button[aria-current="page"] .nav-count { background: #d4e6da; }
.sidebar-footer { margin-top: auto; padding-top: 32px; }
.sidebar-footer > p { padding: 0 11px; color: #89948c; font-size: 9px; line-height: 1.8; }
.reset-link { display: block; min-height: 44px; padding: 8px 11px; color: #718277; border: 0; background: transparent; font-size: 10px; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.reset-link:hover { color: var(--accent); }
.sidebar-footer > a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 11px; color: var(--muted); font-size: 11px; }
.sidebar-footer > a:hover { color: var(--accent); }
.demo-label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 600; }
.sidebar-footer .demo-label { padding: 0 11px 15px; }
.demo-label::before { content: ""; width: 5px; height: 5px; background: #91aa99; border-radius: 50%; }
.demo-dot { display: none; }
.profile { display: flex; align-items: center; gap: 10px; padding: 16px 9px 0; border-top: 1px solid var(--line); }
.profile strong { display: block; font-size: 11px; }
.profile small { display: block; color: var(--muted); font-size: 10px; }
.avatar { display: inline-flex; flex: 0 0 34px; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--avatar-color, #e4ece6); color: #435e4d; font-size: 10px; font-weight: 750; letter-spacing: -.1px; }
.main-shell { grid-column: 2; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; padding: 12px 32px; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-location { display: flex; align-items: center; gap: 8px; min-width: 0; }
.demo-return { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 12px; border: 1px solid #d8dfda; border-radius: 6px; background: #fff; color: #244f40; font-size: 11px; font-weight: 600; line-height: 1.4; white-space: nowrap; text-decoration: none; }
.demo-return svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.demo-return:hover { border-color: #244f40; background: #f3f6f4; }
.demo-return:focus-visible { outline: 2px solid #244f40; outline-offset: 3px; }
.topbar-location .demo-return { margin-right: 8px; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 11px; }
.breadcrumb strong, .breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }
.breadcrumb svg { width: 12px; height: 12px; color: #b1b9b3; }
.topbar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.search-trigger { display: flex; align-items: center; gap: 9px; min-width: 205px; min-height: 40px; padding: 8px 11px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); background: #fafbfa; font-size: 11px; text-align: left; }
.search-trigger svg { width: 16px; height: 16px; }
.search-trigger kbd { margin-left: auto; padding: 1px 4px; border: 1px solid var(--line); border-radius: 3px; font-family: inherit; font-size: 9px; color: #8d968f; }
.icon-button { display: inline-flex; position: relative; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; padding: 10px; border: 1px solid transparent; border-radius: var(--radius); background: transparent; color: #5e6a62; }
.icon-button:hover { background: #f1f4f2; color: var(--accent); }
.icon-button svg { width: 19px; height: 19px; }
.icon-button svg, .nav-button svg, .search-trigger svg, .button svg, .metric-icon svg, .insight-icon svg, .dialog-close svg, .panel-link svg, .demo-banner svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.notification-dot { position: absolute; top: 10px; right: 12px; width: 5px; height: 5px; background: #b99563; border: 1px solid white; border-radius: 50%; }
.mobile-menu { display: none; }
#sidebar-backdrop { display: none; }
.page-content { max-width: 1600px; margin: 0 auto; padding: 30px 32px 45px; }
.app-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding: 0 32px 23px; color: #939d96; font-size: 9px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.page-heading h1 { font-size: clamp(23px, 2.2vw, 28px); font-weight: 750; line-height: 1.2; letter-spacing: -.9px; }
.page-heading p { margin-top: 7px; color: var(--muted); font-size: 12px; }
.heading-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 10px 15px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); font-size: 11px; font-weight: 700; line-height: 1.3; text-align: center; transition: background-color 150ms, border-color 150ms, transform 150ms; }
.button svg { width: 15px; height: 15px; }
.button:hover { border-color: #b1bfb5; background: #f7f9f7; }
.button:active { transform: translateY(1px); }
.button-primary { color: white; background: var(--accent); border-color: var(--accent); }
.button-primary:hover { color: white; background: var(--accent-dark); border-color: var(--accent-dark); }
.button-secondary { color: #49584f; background: var(--surface); }
.button-small { min-height: 36px; padding: 8px 11px; font-size: 10px; }
.period-select, .filter-select { min-height: 44px; max-width: 100%; padding: 9px 32px 9px 12px; border: 1px solid var(--line); border-radius: var(--radius); background-color: var(--surface); color: #4d5b52; font-size: 11px; font-weight: 600; }
.demo-banner { display: flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 10px 13px; border: 1px solid #e0e6e1; border-radius: var(--radius); color: #6f7b72; background: #f0f3f0; font-size: 10px; line-height: 1.6; }
.demo-banner svg { width: 14px; height: 14px; }
.demo-banner a, .demo-banner button { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.demo-banner button { min-height: 28px; padding: 0; border: 0; background: transparent; font-size: inherit; }

/* Metrics and overview */
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.metric-card { position: relative; display: block; min-width: 0; min-height: 159px; padding: 20px 20px 17px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-align: left; font-variant-numeric: tabular-nums; }
button.metric-card { width: 100%; transition: border-color 160ms; }
button.metric-card:hover { border-color: #a8bdb0; }
.metric-label { display: flex; align-items: center; gap: 7px; padding-right: 22px; color: #69746c; font-size: 11px; font-weight: 600; }
.metric-icon { position: absolute; top: 18px; right: 17px; display: flex; align-items: center; justify-content: center; width: 23px; height: 23px; color: #96a29a; }
.metric-icon svg { width: 17px; height: 17px; }
.metric-value { display: block; margin-top: 13px; color: var(--ink); font-size: clamp(23px, 2.1vw, 30px); font-weight: 750; line-height: 1.16; letter-spacing: -1px; white-space: nowrap; }
.metric-change { display: inline-flex; align-items: center; gap: 3px; margin-top: 15px; font-size: 10px; font-weight: 700; }
.metric-change svg { width: 12px; height: 12px; }
.positive { color: var(--accent); }
.negative { color: var(--red); }
.metric-note { color: #8b948e; font-size: 9px; font-weight: 500; margin-left: 5px; }
.sparkline { position: absolute; right: 15px; bottom: 21px; width: 67px; height: 29px; color: #729c81; opacity: .9; }
.sparkline polyline, .sparkline path { vector-effect: non-scaling-stroke; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: stretch; gap: 20px; margin-bottom: 22px; }
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 75px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 13px; line-height: 1.4; font-weight: 750; letter-spacing: -.1px; }
.panel-subtitle { margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 400; }
.panel-body { padding: 22px; }
.panel-link { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; min-height: 36px; padding: 5px 0; color: var(--accent); border: 0; background: transparent; font-size: 10px; font-weight: 650; }
.panel-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.panel-link svg { width: 13px; height: 13px; }
.chart-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; color: #768078; font-size: 9px; }
.chart-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot { display: inline-block; flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.legend-dot.secondary { background: #bccdc0; }
.revenue-chart { display: block; width: 100%; height: auto; min-height: 180px; max-height: 270px; overflow: visible; }
.revenue-chart text { font-family: inherit; font-size: 10px; fill: #89948c; font-variant-numeric: tabular-nums; }
.chart-axis { fill: #89948c; font-size: 10px; }
.chart-grid { stroke: #edf0ed; stroke-width: 1; }
.chart-area { fill: #edf4ef; }
.chart-summary { display: flex; flex-wrap: wrap; gap: 30px; padding-top: 18px; margin-top: 11px; border-top: 1px solid var(--line); }
.chart-summary > div { display: grid; gap: 4px; }
.chart-summary span, .chart-summary dt { color: var(--muted); font-size: 10px; }
.chart-summary strong, .chart-summary dd { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.insights-list { padding: 4px 22px; }
.insight-row { display: flex; align-items: center; gap: 12px; min-height: 83px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.insight-row:last-child { border-bottom: 0; }
.insight-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; background: #f1f4f1; color: #67826e; border-radius: var(--radius); }
.insight-icon svg { width: 17px; height: 17px; }
.insight-copy { min-width: 0; flex: 1; }
.insight-copy strong { display: block; font-size: 11px; font-weight: 650; }
.insight-copy p, .insight-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.insight-value { margin-left: auto; white-space: nowrap; font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; }
.dashboard-bottom { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 20px; margin-bottom: 22px; }

/* Tables and list controls */
/* Keep absolutely positioned accessibility labels inside the table's scroll area. */
.table-scroll { position: relative; width: 100%; overflow: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #cbd4ce transparent; }
.data-table { width: 100%; min-width: 620px; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; }
.data-table th { padding: 13px 20px; background: #fafbfa; border-bottom: 1px solid var(--line); color: #859087; font-size: 9px; font-weight: 650; line-height: 1.4; white-space: nowrap; }
.data-table td { height: 65px; padding: 13px 20px; border-bottom: 1px solid #edf0ed; color: #5b685f; font-size: 11px; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfcfb; }
.data-table td:last-child, .data-table th:last-child { text-align: right; }
.data-table .numeric, .data-table [data-numeric] { text-align: right; white-space: nowrap; }
.data-table td > strong { color: var(--ink); font-weight: 650; }
.table-actions { display: flex; justify-content: flex-end; gap: 6px; }
.row-button { min-height: 44px; padding: 3px 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 650; text-align: left; }
.row-button:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.cell-title { display: block; color: #334539; font-size: 11px; font-weight: 650; }
.cell-meta { display: block; margin-top: 4px; color: #8b958e; font-size: 9px; font-weight: 400; }
.status { display: inline-flex; align-items: center; gap: 5px; min-height: 23px; padding: 3px 7px; border-radius: 4px; background: #f0f2f0; color: #737e75; font-size: 9px; font-weight: 650; line-height: 1.3; white-space: nowrap; }
.status::before { content: ""; flex-shrink: 0; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.status-paid, .status-accepted, .status-done { color: #397355; background: #eaf3ed; }
.status-sent, .status-active { color: #477783; background: #edf3f5; }
.status-overdue, .status-declined { color: var(--red); background: var(--red-soft); }
.status-review { color: var(--amber); background: var(--amber-soft); }
.status-planned, .status-draft { color: #788278; background: #f0f2f0; }
.view-toolbar { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 0 0 20px; }
.filter-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.filter-tabs button { min-height: 44px; padding: 8px 13px; border: 1px solid transparent; border-radius: var(--radius); background: transparent; color: #768078; font-size: 11px; font-weight: 600; }
.filter-tabs button:hover { color: var(--accent); }
.filter-tabs button[aria-pressed="true"] { background: var(--surface); border-color: var(--line); color: var(--accent); }
.search-input { width: 235px; max-width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); font-size: 11px; }
.search-input::placeholder { color: #909991; }

/* Clients */
.client-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.client-card { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-align: left; }
button.client-card:hover { border-color: #a8bdb0; }
.client-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.client-card-head .avatar { width: 40px; height: 40px; flex-basis: 40px; border-radius: 8px; font-size: 12px; }
.client-card-head h2, .client-card-head h3 { font-size: 13px; font-weight: 700; }
.client-card-head p { margin-top: 4px; color: var(--muted); font-size: 10px; }
.client-card-head > div { min-width: 0; }
.client-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 17px 0; border-top: 1px solid var(--line); }
.client-stats span, .client-stats dt { display: block; color: var(--muted); font-size: 10px; }
.client-stats strong, .client-stats dd { display: block; margin: 6px 0 0; color: var(--ink); font-size: 17px; font-weight: 700; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.client-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.client-tags span { padding: 4px 7px; color: #738077; background: #f3f5f3; border-radius: 3px; font-size: 9px; }

/* Project board */
.project-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 16px; }
.project-column { min-width: 0; padding: 10px; background: #ecefec; border: 1px solid #e3e8e3; border-radius: var(--radius); }
.column-title { display: flex; align-items: center; gap: 8px; min-height: 36px; margin-bottom: 9px; padding: 0 4px; color: #57675b; font-size: 11px; font-weight: 700; }
.column-title > span:last-child { display: inline-grid; place-items: center; min-width: 19px; height: 19px; margin-left: auto; border-radius: 4px; background: #dde5dd; color: #718273; font-size: 9px; }
.project-card { display: block; width: 100%; margin-bottom: 10px; padding: 16px; background: white; border: 1px solid #e0e6e1; border-radius: var(--radius); text-align: left; }
.project-card:last-child { margin-bottom: 0; }
button.project-card:hover { border-color: #a8bdb0; }
.project-card h3 { margin: 11px 0 5px; font-size: 12px; font-weight: 750; line-height: 1.5; }
.project-card p { color: var(--muted); font-size: 10px; }
.project-meta { display: flex; justify-content: space-between; gap: 6px; margin: 18px 0 7px; color: #7e8a80; font-size: 9px; font-variant-numeric: tabular-nums; }
.progress-track { display: block; height: 5px; overflow: hidden; background: #eaf0eb; border-radius: 3px; }
.progress-fill { display: block; width: var(--progress, 0%); max-width: 100%; height: 100%; background: #70977b; border-radius: inherit; }
.project-footer { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-top: 16px; color: #869187; font-size: 9px; }
.avatar-stack { display: flex; align-items: center; padding-left: 5px; }
.avatar-stack .avatar { width: 25px; height: 25px; flex-basis: 25px; border: 2px solid white; margin-left: -5px; font-size: 8px; }

/* Team and agenda */
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.team-row { display: flex; align-items: center; gap: 12px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.team-row:first-child { padding-top: 0; }
.team-row:last-child { padding-bottom: 0; border-bottom: 0; }
.team-row > div { min-width: 0; }
.team-row strong { display: block; font-size: 11px; }
.team-row p, .team-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.team-load { width: 118px; max-width: 40%; margin-left: auto; text-align: right; font-size: 10px; font-variant-numeric: tabular-nums; }
.team-load .progress-track { margin-top: 7px; }
.task-list { padding: 0 22px; }
.task-row { display: flex; align-items: flex-start; gap: 10px; min-height: 77px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.task-row:last-child { border-bottom: 0; }
.task-check { flex-shrink: 0; width: 18px; height: 18px; margin: 4px 0 0; accent-color: var(--accent); cursor: pointer; }
.task-row label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.task-info { flex: 1; min-width: 0; }
.task-info strong { display: block; font-size: 11px; font-weight: 600; }
.task-info small, .task-info p { display: block; margin-top: 5px; color: #8c968f; font-size: 9px; }
.task-row:has(input:checked) .task-info strong { color: #96a098; text-decoration: line-through; }
.task-time { margin-left: auto; padding-top: 2px; color: #77847a; font-size: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.agenda-date { margin: 0 0 14px; color: #77847a; font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: .6px; }
.agenda-list { display: grid; gap: 12px; }
.agenda-list .task-row { min-height: 80px; padding: 16px; border: 1px solid var(--line); border-left: 3px solid #81a38a; border-radius: var(--radius); background: var(--surface); }

/* Reports */
.report-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; }
.donut-wrap { position: relative; display: flex; align-items: center; justify-content: center; min-height: 230px; padding: 16px; }
.donut-wrap svg { width: 200px; height: 200px; }
.donut-wrap svg text { font-family: inherit; fill: var(--ink); font-variant-numeric: tabular-nums; }
.donut-legend { display: grid; gap: 14px; padding: 0 22px 25px; }
.donut-legend > li, .donut-legend > div { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.donut-legend strong { margin-left: auto; color: var(--ink); font-size: 11px; font-variant-numeric: tabular-nums; }
.ranking-list { padding: 2px 22px; }
.ranking-row { display: flex; align-items: center; gap: 12px; min-height: 73px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.ranking-row:last-child { border-bottom: 0; }
.ranking-row > span:first-child { color: #a1aaa3; font-size: 11px; }
.ranking-row > div { flex: 1; min-width: 0; }
.ranking-row strong { display: block; font-size: 11px; }
.ranking-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.ranking-row > strong:last-child { font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 230px; padding: 35px 22px; color: var(--muted); text-align: center; font-size: 12px; }
.empty-state-title { color: var(--ink); font-size: 16px; font-weight: 700; }
.empty-state p { max-width: 320px; }
.empty-state svg { width: 28px; height: 28px; color: #9aaca0; }
.empty-state .button { margin-top: 8px; }

/* Native dialogs */
.app-dialog { width: min(600px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 48px); margin: auto; padding: 0; overflow: auto; overscroll-behavior: contain; border: 1px solid #dce3dd; border-radius: 10px; background: white; color: var(--ink); box-shadow: 0 20px 90px #15362126; }
.app-dialog::backdrop { background: #17221cb3; }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 24px 26px 20px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { font-size: 20px; font-weight: 750; letter-spacing: -.5px; }
.dialog-header p { margin-top: 5px; color: var(--muted); font-size: 11px; }
.dialog-close { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; margin: -6px -9px -6px 0; padding: 12px; border: 0; border-radius: var(--radius); color: #6e7c72; background: transparent; }
.dialog-close:hover { background: #f0f4f0; }
.dialog-close svg { width: 18px; height: 18px; }
.dialog-body { padding: 24px 26px; }
.dialog-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding: 18px 26px; border-top: 1px solid var(--line); background: #fafbfa; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.form-field { display: flex; flex-direction: column; min-width: 0; gap: 7px; }
.form-field-full { grid-column: 1 / -1; }
.form-field label { color: #4c5c51; font-size: 11px; font-weight: 650; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 44px; padding: 10px 12px; color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius); background: white; font-size: 12px; }
.form-field textarea { min-height: 95px; resize: vertical; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #9ba49e; }
.form-field small { color: var(--muted); font-size: 10px; }
.form-field [aria-invalid="true"] { border-color: var(--red); }
.form-error { margin: 12px 0 0; color: var(--red); font-size: 11px; }
.form-error:empty { display: none; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-bottom: 24px; }
.detail-stat { padding: 15px; background: #f5f7f5; border-radius: var(--radius); }
.detail-stat span, .detail-stat dt { display: block; color: var(--muted); font-size: 10px; }
.detail-stat strong, .detail-stat dd { display: block; margin: 7px 0 0; color: var(--ink); font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.detail-list { margin: 0 0 20px; }
.detail-list > div, .detail-list > li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.detail-list dt, .detail-list span:first-child { color: var(--muted); }
.detail-list dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.detail-heading { margin: 20px 0 11px; color: #4c5e51; font-size: 12px; font-weight: 750; }
.detail-total { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 0 0; border-top: 1px solid var(--line-strong); font-size: 12px; }
.detail-total strong { font-size: 23px; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.search-dialog { max-width: 580px; }
.search-dialog .search-input { width: 100%; font-size: 13px; }
.search-results { display: grid; gap: 4px; max-height: 54dvh; margin-top: 15px; overflow: auto; }
.search-result { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 11px 13px; border: 1px solid transparent; border-radius: var(--radius); background: transparent; text-align: left; }
.search-result:hover { background: #f1f5f2; border-color: #e4ece6; }
.search-result > div { flex: 1; min-width: 0; }
.search-result strong { display: block; font-size: 12px; }
.search-result small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.result-kind { margin-left: auto; color: #8d988f; font-size: 9px; text-transform: uppercase; letter-spacing: .4px; }
.toast { position: fixed; z-index: 80; right: 25px; bottom: 24px; max-width: min(420px, calc(100% - 32px)); padding: 15px 20px; border: 1px solid #d0ded3; border-radius: var(--radius); color: #284f37; background: #eef6ef; font-size: 12px; font-weight: 600; box-shadow: 0 6px 24px #24392a0d; }
.toast:empty { display: none; }

/* View-specific content emitted by the application. */
.page-heading .page-eyebrow { margin: 0 0 7px; color: #819086; font-size: 8px; font-weight: 700; letter-spacing: 1.25px; }
.metric-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 14px; }
.metric-bottom > span { min-width: 0; }
.metric-bottom .metric-change { margin: 0; }
.metric-bottom .metric-note { display: block; margin: 4px 0 0; font-size: 8px; }
.metric-bottom .sparkline { position: static; flex: 0 0 54px; width: 54px; height: 26px; margin-bottom: 2px; }
.demo-banner { justify-content: space-between; }
.demo-banner > span { display: flex; align-items: center; gap: 7px; }
.demo-banner .demo-dot { display: inline-block; flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%; background: #7f9e89; }
.demo-banner button { display: inline-flex; align-items: center; flex-shrink: 0; gap: 5px; text-decoration: none; }
.demo-banner button:hover { text-decoration: underline; }
.demo-banner button svg { width: 12px; height: 12px; }
.chart-range { color: #8c978f; font-size: 9px; white-space: nowrap; }
.chart-legend { margin-bottom: 13px; }
.legend-dot.legend-secondary { background: #a1b8ac; }
.chart-data { margin-top: 1px; }
.chart-data summary { width: fit-content; padding: 10px 0; color: #7f8a82; font-size: 9px; cursor: pointer; text-underline-offset: 3px; }
.chart-data summary:hover { color: var(--accent); }
.chart-data[open] summary { margin-bottom: 8px; }
.chart-data .data-table { min-width: 340px; }
.chart-data .data-table th, .chart-data .data-table td { padding: 10px 12px; height: auto; }
.chart-data .data-table tbody th { font-weight: 500; }
.chart-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 7px; }
.chart-summary small { color: #909a93; font-size: 8px; }
.priority-dot { width: 7px; height: 7px; background: #bc9963; border-radius: 50%; }
button.insight-row { width: 100%; background: transparent; border-top: 0; border-inline: 0; text-align: left; }
button.insight-row:hover .insight-copy strong { color: var(--accent); }
.insight-icon.warning { background: #faf1e5; color: #ac8851; }
.insight-value { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; }
.insight-row > svg, .insight-value svg { width: 13px; height: 13px; color: #9caaa0; }
.insight-row > svg, .insight-value svg, .table-action svg, .client-card-head > svg, .project-footer svg, .paid-note svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.activity-preview { margin: 5px 22px 0; padding: 18px 0 16px; border-top: 1px solid var(--line); }
.activity-preview h3 { margin-bottom: 16px; color: #6f7f73; font-size: 10px; font-weight: 650; }
.activity-line { position: relative; display: flex; align-items: flex-start; gap: 10px; padding-bottom: 14px; color: #77837a; font-size: 10px; line-height: 1.6; }
.activity-line:last-child { padding-bottom: 0; }
.activity-line > i { flex-shrink: 0; width: 5px; height: 5px; margin-top: 5px; border: 1px solid #b2c1b7; border-radius: 50%; background: white; }
.activity-line p { min-width: 0; }
.activity-line small { display: block; margin-top: 3px; color: #a0aaa3; font-size: 8px; }
.activity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 30px; }
.activity-grid .activity-line { padding-bottom: 10px; }
.team-person { flex: 1; }
.team-person > span { display: block; margin-top: 4px; color: #8a968e; font-size: 10px; }
.team-load > span { display: flex; justify-content: flex-end; gap: 3px; align-items: baseline; font-size: 11px; }
.team-load small { display: inline; font-size: 9px; }
.progress-fill.overloaded { background: #ba915c; }
.calculation-note { margin-top: 18px; color: #949e97; font-size: 9px; line-height: 1.7; }
.project-progress-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 75px; padding: 15px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.project-progress-row:last-child { border-bottom: 0; }
.project-progress-row:first-child { padding-top: 0; }
.project-progress-row > div:first-child { min-width: 0; }
.project-progress-row strong { display: block; font-size: 11px; font-weight: 650; }
.project-progress-row:hover strong { color: var(--accent); }
.project-progress-row > div:first-child > span { display: block; margin-top: 5px; color: #8a968e; font-size: 9px; }
.project-progress-row > div:last-child { flex: 0 0 65px; width: 65px; text-align: right; }
.project-progress-row > div:last-child > span { display: block; margin-bottom: 7px; color: #7c8c80; font-size: 10px; font-variant-numeric: tabular-nums; }
.panel > .view-toolbar { margin: 0; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.table-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.document-scope { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding: 10px 20px; background: #f1f6f2; border-bottom: 1px solid #e4ede6; color: #64806e; font-size: 10px; }
.document-scope button { min-height: 32px; padding: 4px 0; border: 0; background: transparent; color: var(--accent); font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.filter-tabs button span { margin-left: 6px; color: #99a29b; font-size: 9px; }
.filter-tabs button[aria-pressed="true"] span { color: #7b9887; }
.table-action { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 12px; border: 0; border-radius: var(--radius); background: transparent; color: #8b9c90; }
.table-action:hover { color: var(--accent); background: #eef3ef; }
.table-action svg { width: 16px; height: 16px; }
.table-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 17px 20px; color: #8b968e; border-top: 1px solid var(--line); font-size: 10px; }
.table-footer strong { color: #687b6e; font-size: 10px; font-weight: 600; }
.data-table .amount-cell { color: #3c5143; font-weight: 650; white-space: nowrap; }
.clients-toolbar > span { color: #8a968e; font-size: 11px; }
.client-card-head > span { min-width: 0; }
.client-card-head > span > strong { display: block; color: #374c3e; font-size: 13px; }
.client-card-head > span > small { display: block; margin-top: 4px; color: #8a968e; font-size: 9px; }
.client-card-head > svg { flex-shrink: 0; width: 14px; height: 14px; margin-left: auto; color: #8da294; }
.client-contact { display: block; margin: -5px 0 19px; color: #7d8b82; font-size: 11px; }
.client-stats small { color: #8a968e; font-size: 9px; }
.client-card-note { display: block; padding-top: 9px; min-height: 33px; }
.client-email { color: #96a098; font-size: 9px; overflow-wrap: anywhere; }
.board-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 25px; margin-bottom: 24px; color: #859389; font-size: 10px; }
.board-summary span:first-child { color: #566d5d; font-weight: 650; }
.board-summary span:last-child { margin-left: auto; color: #99a29b; font-size: 9px; }
.column-title h2 { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; }
.column-dot { width: 6px; height: 6px; border-radius: 50%; background: #b2beb5; }
.column-dot.active { background: #4b8363; }
.column-dot.review { background: #bd995c; }
.column-dot.done { background: #8eaa98; }
.project-client { display: block; color: #8a988e; font-size: 9px; }
.project-card > strong { display: block; margin: 9px 0; color: #3c5143; font-size: 12px; line-height: 1.6; }
.project-budget { display: block; color: #7d8c82; font-size: 10px; font-variant-numeric: tabular-nums; }
.project-footer > span:last-child { display: inline-flex; align-items: center; gap: 5px; }
.project-footer .avatar { width: 26px; height: 26px; flex-basis: 26px; font-size: 8px; }
.project-footer svg { width: 12px; height: 12px; }
.project-footer .date-late { color: #ac7864; }
.panel-body > .task-list { padding: 0; }
.task-row .task-info { display: block; }
.task-info > span { display: block; margin-top: 5px; color: #94a097; font-size: 9px; }
.task-time { text-align: right; font-size: 9px; }
.task-time small { display: block; margin-top: 5px; color: #9aa59d; font-size: 8px; }
.task-complete .task-info strong { color: #9aa59d; text-decoration: line-through; }
.project-detail-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 17px 0 9px; color: #839087; font-size: 10px; }
.project-detail-meta strong { color: #548164; font-size: 10px; }
.project-task-list { margin-bottom: 24px; }
.project-task { display: flex; align-items: center; gap: 11px; min-height: 48px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12px; cursor: pointer; }
.project-task input { width: 19px; height: 19px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.project-task:has(input:checked) { color: #9ba59d; }
.project-task:has(input:checked) span { text-decoration: line-through; }
.document-detail-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 19px; color: #9aa49c; font-size: 10px; }
.document-title { margin: 0 0 6px; color: #344d3d; font-size: 17px; font-weight: 700; }
.document-title + p { color: #849188; font-size: 12px; }
.dialog-body > p + .detail-grid { margin-top: 23px; }
.dialog-body > .detail-total { margin-bottom: 23px; }
.paid-note { display: flex; align-items: center; gap: 7px; padding: 12px 13px; margin-top: 17px; color: #527b61; background: #eef5ef; border-radius: var(--radius); font-size: 11px; }
.paid-note svg { width: 16px; height: 16px; }
.demo-disclaimer { margin-top: 19px; color: #a0a9a3; font-size: 9px; }
.form-intro { margin-bottom: 22px; color: #89958c; font-size: 11px; line-height: 1.7; }
.form-hint { margin-top: 15px; color: #94a097; font-size: 10px; line-height: 1.8; }
.form-field > span { color: #637a6b; font-size: 11px; font-weight: 650; }
.dialog-header .dialog-kicker { margin: 0 0 6px; color: #96a399; font-size: 8px; font-weight: 650; letter-spacing: .7px; text-transform: uppercase; }
.client-detail-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 25px; }
.client-detail-heading .avatar { width: 52px; height: 52px; flex-basis: 52px; border-radius: 8px; font-size: 14px; }
.client-detail-heading strong { font-size: 13px; }
.client-detail-heading p { margin-top: 4px; color: #8a978f; font-size: 10px; overflow-wrap: anywhere; }
.detail-list-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 50px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; font-size: 11px; text-align: left; }
button.detail-list-row:hover { color: var(--accent); }
.detail-list-row > span:first-child { min-width: 0; color: #6a7e71; }
.detail-list-row small { display: block; margin-top: 4px; color: #99a39c; font-size: 9px; }
.detail-list-row > strong { flex-shrink: 0; font-variant-numeric: tabular-nums; }
#client-notes-form .button { margin-top: 12px; }
.search-help { padding: 7px 0; color: #97a39a; font-size: 11px; }
.search-result > span:first-child { min-width: 0; flex: 1; }
.ranking-row { width: 100%; border-top: 0; border-inline: 0; background: transparent; text-align: left; }
.ranking-row:hover .ranking-name { color: var(--accent); }
.rank-number { flex: 0 0 19px; font-variant-numeric: tabular-nums; }
.ranking-name { flex: 1; min-width: 0; color: #61776a; font-size: 11px; font-weight: 600; }
.ranking-name .progress-track { margin-top: 9px; }
.ranking-name .progress-fill { background: #b3c6b9; }
.ranking-row > strong:last-child { margin-left: 10px; color: #4b6957; }
.project-donut { display: flex; align-items: center; justify-content: center; width: 180px; height: 180px; border-radius: 50%; }
.project-donut > span { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 136px; height: 136px; border-radius: 50%; background: white; }
.project-donut strong { color: #4c6d57; font-size: 35px; font-weight: 650; line-height: 1.3; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.project-donut small { color: #99a59c; font-size: 10px; }
.donut-legend > span { display: flex; align-items: center; gap: 8px; color: #8a988e; font-size: 10px; }
.donut-legend > span > i { width: 6px; height: 6px; border-radius: 50%; }
.donut-legend > span > strong { color: #5e7b68; font-size: 11px; }
.expense-row { margin-bottom: 24px; }
.expense-row > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; color: #84988c; font-size: 11px; }
.expense-row strong { color: #607e6c; font-size: 11px; font-weight: 650; font-variant-numeric: tabular-nums; }
.expense-row .progress-fill { background: #a9c0b2; }
.method-note { margin: 24px 0 0; padding: 19px 22px; border-top: 1px solid var(--line); color: #94a198; font-size: 10px; line-height: 1.9; }
.method-note strong { display: block; margin-bottom: 6px; color: #84998c; font-size: 10px; font-weight: 600; }
.storage-note { margin-bottom: 20px; padding: 12px 15px; background: var(--amber-soft); color: var(--amber); border-radius: var(--radius); font-size: 11px; }
.demo-steps { display: grid; gap: 17px; padding-left: 20px; list-style: decimal; color: #73867a; font-size: 12px; line-height: 1.8; }
.demo-steps li::marker { color: var(--accent); font-weight: 650; }

/* Layout adapts before content gets compressed. */
@media (min-width: 801px) and (max-height: 800px) {
  .sidebar { padding-top: 16px; padding-bottom: 12px; }
  .brand { min-height: 33px; margin-bottom: 14px; }
  .workspace-switch { min-height: 44px; margin-bottom: 12px; padding-block: 5px; }
  .nav-label { margin-top: 4px; margin-bottom: 6px; }
  .nav-button { margin-block: 0; }
  .sidebar-footer { padding-top: 12px; }
  .sidebar-footer .demo-label { padding-bottom: 2px; font-size: 9px; }
  .sidebar-footer > p { font-size: 8px; line-height: 1.5; }
  .profile { padding-top: 9px; }
}
@media (min-width: 1600px) {
  .page-content { padding-top: 36px; }
  .metric-card { min-height: 167px; }
}
@media (max-width: 1250px) {
  .breadcrumb-workspace { display: none; }
  .search-trigger { min-width: 44px; width: 44px; justify-content: center; padding: 10px; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .page-content { padding: 26px 24px 40px; }
  .topbar { padding-inline: 24px; }
  .app-footer { padding-inline: 24px; }
  .metric-grid { gap: 12px; }
  .metric-card { padding: 18px 15px; }
  .metric-value { font-size: 25px; }
  .metric-note { display: block; margin: 3px 0 0; }
  .sparkline { width: 48px; right: 10px; bottom: 28px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }
  .dashboard-bottom { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .panel-head, .panel-body { padding: 18px; }
  .insights-list { padding-inline: 18px; }
  .insight-row { gap: 9px; }
  .client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1050px) {
  :root { --sidebar: 200px; }
  .sidebar { padding-inline: 12px; }
  .brand { margin-bottom: 23px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-card { min-height: 146px; padding: 18px; }
  .metric-note { display: inline; margin-left: 5px; }
  .sparkline { width: 65px; right: 17px; bottom: 22px; }
  .dashboard-grid, .report-grid { grid-template-columns: minmax(0, 1fr); }
  .insights-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 25px; }
  .insight-row:nth-last-child(2) { border-bottom: 0; }
  .page-heading { align-items: flex-start; }
  .heading-actions { justify-content: flex-end; }
  .page-heading h1 { font-size: 25px; }
  .search-trigger { min-width: 44px; }
  .team-grid { grid-template-columns: minmax(0, 1fr); }
  .priority-panel .insights-list { display: block; }
  .priority-panel .insight-row:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .activity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .app-shell { display: block; }
  .main-shell { margin-left: 0; }
  .sidebar { width: min(280px, calc(100% - 54px)); padding: 25px 20px 20px; transform: translateX(-100%); visibility: hidden; pointer-events: none; transition: transform 200ms ease, visibility 200ms; }
  .menu-open { overflow: hidden; }
  .menu-open .sidebar { transform: translateX(0); visibility: visible; pointer-events: auto; }
  .menu-open #sidebar-backdrop { position: fixed; inset: 0; z-index: 25; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #1f30266e; }
  .topbar { min-height: 64px; gap: 8px; padding: 8px 17px; }
  .mobile-menu { display: inline-flex; margin-left: -7px; }
  .breadcrumb { margin-right: auto; font-size: 10px; gap: 7px; }
  .topbar-actions { gap: 5px; }
  .search-trigger { min-width: 44px; width: 44px; height: 44px; justify-content: center; padding: 10px; background: transparent; border-color: transparent; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .search-trigger svg { width: 19px; height: 19px; }
  .topbar-actions > .avatar { width: 29px; height: 29px; flex-basis: 29px; font-size: 9px; }
  .page-content { padding: 25px 20px 35px; }
  .page-heading { gap: 16px; }
  .page-heading p { font-size: 11px; }
  .page-heading h1 { font-size: 25px; }
  .demo-banner { font-size: 9px; }
  .button-small { min-height: 44px; }
  .panel-link { min-height: 44px; }
  .task-row { gap: 8px; }
  .task-check { width: 22px; height: 22px; }
}
@media (max-width: 580px) {
  .topbar .breadcrumb, .topbar-actions > .avatar { display: none; }
  .topbar-location { gap: 4px; }
  .topbar-location .demo-return { margin-right: 0; }
  .topbar-actions { gap: 0; }
  .page-content { padding: 23px 16px 30px; }
  .app-footer { flex-direction: column; padding-inline: 16px; font-size: 8px; }
  .page-heading { flex-direction: column; align-items: stretch; margin-bottom: 18px; gap: 17px; }
  .heading-actions { justify-content: flex-start; }
  .page-heading h1 { font-size: 25px; }
  .button { padding-inline: 12px; }
  .demo-banner { align-items: flex-start; margin-bottom: 17px; padding: 9px 10px; }
  .demo-banner svg { margin-top: 2px; }
  .metric-grid { gap: 10px; margin-bottom: 17px; }
  .metric-card { padding: 15px 12px; min-height: 145px; }
  .metric-label { font-size: 10px; padding-right: 18px; }
  .metric-icon { top: 12px; right: 9px; width: 17px; height: 17px; }
  .metric-icon svg { width: 14px; height: 14px; }
  .metric-value { margin-top: 14px; font-size: 24px; letter-spacing: -.8px; }
  .metric-change { font-size: 9px; margin-top: 13px; }
  .metric-note { display: block; margin: 3px 0 0; font-size: 8px; }
  .sparkline { width: 43px; height: 24px; right: 10px; bottom: 23px; }
  .metric-bottom { gap: 5px; margin-top: 14px; }
  .metric-bottom .sparkline { flex-basis: 37px; width: 37px; height: 23px; }
  .metric-bottom .metric-note { font-size: 8px; }
  .demo-banner { align-items: stretch; flex-direction: column; gap: 5px; }
  .demo-banner button { align-self: flex-end; }
  .dashboard-grid, .dashboard-bottom, .report-grid { gap: 17px; margin-bottom: 17px; }
  .panel-head { min-height: 70px; padding: 15px; }
  .panel-head h2 { font-size: 12px; }
  .panel-body { padding: 15px; }
  .chart-legend { gap: 7px; font-size: 8px; }
  .chart-summary { gap: 20px; }
  .chart-summary strong { font-size: 15px; }
  .chart-summary span { font-size: 9px; }
  .chart-summary { gap: 12px; }
  .chart-summary small { font-size: 8px; }
  .chart-range { display: none; }
  .revenue-chart { min-height: 150px; }
  .insights-list { display: block; padding: 0 15px; }
  .insight-row { min-height: 76px; }
  .insight-row:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .task-list { padding-inline: 15px; }
  .task-row { min-height: 80px; }
  .view-toolbar { align-items: stretch; gap: 12px; }
  .filter-tabs { width: 100%; gap: 2px; }
  .filter-tabs button { padding-inline: 10px; font-size: 10px; }
  .view-toolbar .search-input { flex: 1; width: 100%; }
  .view-toolbar .filter-select { flex: 1; }
  .panel > .view-toolbar { padding: 13px 15px; }
  .table-filters { width: 100%; align-items: stretch; flex-direction: column; }
  .table-filters .search-input { width: 100%; }
  .document-scope { padding: 9px 15px; }
  .document-scope button { min-height: 40px; }
  .table-footer { padding-inline: 15px; }
  .board-summary { gap: 8px; margin-bottom: 18px; }
  .board-summary span { width: 100%; }
  .board-summary span:last-child { margin-left: 0; }
  .client-grid, .project-board { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .client-card { padding: 20px; }
  .project-column { padding: 12px; }
  .project-card { padding: 18px; }
  .project-card h3 { font-size: 14px; }
  .project-card p { font-size: 11px; }
  .project-footer { font-size: 10px; }
  .project-card > strong { font-size: 14px; }
  .activity-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .activity-preview { margin-inline: 15px; }
  .method-note { padding-inline: 0; }
  .project-task input { width: 22px; height: 22px; }
  .app-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 24px); border-radius: 8px; }
  .dialog-header { padding: 20px 18px 17px; }
  .dialog-header h2 { font-size: 19px; }
  .dialog-body { padding: 20px 18px; }
  .dialog-footer { padding: 15px 18px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .form-field input, .form-field select, .form-field textarea { font-size: 16px; }
  .form-field label { font-size: 12px; }
  .detail-grid { gap: 10px; }
  .detail-stat { padding: 12px; }
  .detail-stat strong { font-size: 17px; }
  .detail-list > div, .detail-list > li { gap: 12px; }
  .search-dialog .search-input { font-size: 16px; }
  .toast { right: 16px; bottom: 16px; padding: 13px 16px; font-size: 11px; }
}
@media (max-width: 360px) {
  .topbar { padding-inline: 12px; }
  .breadcrumb { gap: 4px; font-size: 9px; }
  .topbar-actions { gap: 0; }
  .topbar-actions > .avatar { display: none; }
  .page-content { padding-inline: 12px; }
  .metric-value { font-size: 21px; }
  .metric-label { font-size: 9px; }
  .metric-note { font-size: 7px; }
  .sparkline { display: none; }
  .panel-head { flex-wrap: wrap; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media print {
  :root { font-size: 11px; }
  body { background: white; }
  .app-shell { display: block; }
  .sidebar, .topbar, .demo-banner, .heading-actions, .view-toolbar, .toast, dialog { display: none !important; }
  .page-content { max-width: none; margin: 0; padding: 0; }
  .panel, .metric-card, .client-card, .project-card { break-inside: avoid; box-shadow: none; }
  .table-scroll { overflow: visible; }
  .data-table { min-width: 0; }
  .dashboard-grid, .dashboard-bottom, .report-grid { grid-template-columns: 1fr; }
}
