/* Bureau: a working table. Shared values come from design-tokens.css. */
:root {
  --b-canvas:var(--paper); --b-surface:var(--surface); --b-sidebar:var(--surface);
  --b-ink:var(--ink); --b-muted:var(--muted); --b-line:var(--line);
  --b-accent:var(--accent); --b-accent-hover:var(--accent-hover); --b-accent-soft:var(--accent-soft);
  --b-green:var(--success); --b-amber:var(--warning); --b-red:var(--danger);
  --b-green-soft:color-mix(in srgb,var(--success) 8%,var(--paper));
  --b-amber-soft:color-mix(in srgb,var(--warning) 8%,var(--paper));
  --b-red-soft:color-mix(in srgb,var(--danger) 7%,var(--paper));
  font-family:var(--font-body); font-size:14px; line-height:1.5;
  color:var(--ink); background:var(--paper); color-scheme:dark; font-synthesis:none; text-rendering:optimizeLegibility;
  scrollbar-color:var(--line) var(--paper); scrollbar-width:thin;
}
* {box-sizing:border-box}
body {margin:0; min-width:320px}
button,input,select,textarea {font:inherit; color:inherit; -webkit-tap-highlight-color:transparent}
button,a {touch-action:manipulation}
button {cursor:pointer}
button:disabled {cursor:not-allowed; opacity:.45}
a {color:inherit; text-decoration:none; text-underline-offset:4px}
a:hover {color:var(--accent)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible {outline:2px solid var(--accent); outline-offset:3px}
input,select,textarea {accent-color:var(--accent); caret-color:var(--accent)}
input::placeholder,textarea::placeholder {color:var(--muted); opacity:1}
::selection {background:var(--accent); color:var(--on-accent)}
svg {display:block; width:18px; height:18px; flex-shrink:0; stroke:currentColor}
h1,h2,h3,h4,p {margin:0}
h1,h2,h3,h4 {font-family:var(--font-display); font-weight:700; letter-spacing:-.035em}
h1 {font-size:32px; line-height:1.15}
h2 {font-size:19px; line-height:1.35}
h3 {font-size:16px; line-height:1.45}
small {font-size:13px}
strong {font-weight:600}
[hidden] {display:none!important}
.b-sr,.b-sr-only,.sr-only {position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0}
.b-skip {position:fixed; top:-80px; left:16px; z-index:150; padding:12px 20px; border-radius:var(--radius); color:var(--on-accent); background:var(--accent)}
.b-skip:focus {top:12px}
.b-muted,.b-label {color:var(--muted)}
.b-label {font-size:13px; font-weight:500; letter-spacing:0}
.b-heading>.b-label,.b-heading>div>.b-label,.t-heading>div>.b-label,.b-sidebar-label {display:none}
.b-subtitle {max-width:62ch; margin-top:10px; font-size:14px; color:var(--muted); line-height:1.6}
.b-money,.b-amount,.b-stat strong,.b-count {font-variant-numeric:tabular-nums; white-space:nowrap}
.b-shell {min-height:100dvh}

/* Navigation stays quiet; the current working surface carries the emphasis. */
.b-sidebar {position:fixed; inset:0 auto 0 0; z-index:30; width:196px; display:flex; flex-direction:column; padding:24px 16px 20px; border-right:1px solid var(--line); background:var(--surface); overflow-y:auto}
.b-brand {display:block; padding:0 8px 24px; font:800 30px/1.1 var(--font-display); letter-spacing:-.04em}
.b-brand small {display:block; margin-top:8px; color:var(--muted); font:500 11px/1.4 var(--font-mono); letter-spacing:.08em; text-transform:uppercase}
.b-brand-mark {display:none}
.b-workspace {display:flex; align-items:center; gap:10px; margin-bottom:20px; padding:12px; border:1px solid var(--line); border-radius:12px; background:var(--raised)}
.b-workspace strong {display:block; font-size:14px; font-weight:600}
.b-workspace small {display:block; margin-top:2px; color:var(--muted); font-size:13px}
.b-workspace .b-avatar {width:28px; height:28px; font-size:13px}
.b-nav {display:flex; flex-direction:column; gap:3px}
.b-nav-link,.b-nav a,.b-nav button {display:flex; align-items:center; gap:10px; width:100%; min-height:42px; padding:10px 9px; border:0; border-radius:var(--radius); background:transparent; text-align:left; color:var(--muted); font-size:14px; font-weight:450; line-height:1.4}
.b-nav-link:hover,.b-nav a:hover,.b-nav button:hover {background:var(--raised); color:var(--ink)}
.b-nav-link.active,.b-nav [aria-current=page],.b-nav button.active {color:var(--on-accent); background:var(--accent); font-weight:600}
.b-nav-link.active .b-nav-count,.b-nav [aria-current=page] .b-nav-count {color:inherit}
.b-nav svg {width:17px; height:17px; stroke-width:1.7}
.b-nav-count {margin-left:auto; font-size:13px; font-weight:400; font-variant-numeric:tabular-nums; color:var(--muted)}
.b-sidebar-bottom {margin-top:auto; padding-top:24px}
.b-sidebar-bottom>.b-nav-link {font-size:13px}
.b-local-note {display:flex; align-items:center; gap:7px; padding:10px 9px 16px; font-size:13px; color:var(--muted)}
.b-local-note i {width:5px; height:5px; border-radius:50%; background:var(--success)}
.b-author {display:flex; gap:9px; align-items:center; padding:16px 8px 0; border-top:1px solid var(--line)}
.b-author .b-avatar {display:none}
.b-author strong {font-size:13px; font-weight:500}
.b-author small {display:block; margin-top:3px; color:var(--muted); font-size:13px}
.b-main {min-height:100dvh; margin-left:196px; min-width:0}
.b-topbar {position:sticky; top:0; z-index:20; height:64px; padding:0 32px; display:flex; align-items:center; justify-content:space-between; gap:20px; border-bottom:1px solid var(--line); background:color-mix(in srgb,var(--paper) 80%,transparent); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px)}
.b-breadcrumb {display:flex; align-items:center; gap:10px; min-width:0; font-size:13px; color:var(--muted)}
.b-breadcrumb strong {overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-weight:450; color:var(--ink)}
.b-main-actions,.b-topbar-actions {display:flex; align-items:center; gap:8px}
.b-search-trigger {display:flex; align-items:center; gap:8px; min-height:38px; padding:6px 8px 6px 14px; border:1px solid var(--line); border-radius:var(--radius-pill); background:var(--surface); color:var(--muted); font-size:13px}
.b-search-trigger:hover {color:var(--ink)}
.b-search-trigger svg {width:16px; height:16px}
.b-search-trigger kbd {padding:1px 7px; border:1px solid var(--line); border-radius:var(--radius-pill); background:var(--raised); font:12px var(--font-mono)}
.b-content {max-width:1640px; margin-inline:auto; padding:28px 32px 48px; min-width:0}
.b-heading {display:flex; align-items:flex-start; justify-content:space-between; gap:24px; margin-bottom:28px}
.b-heading-actions {display:flex; align-items:center; gap:8px; flex-wrap:wrap}
.b-demo-chip {font-size:13px; color:var(--muted)}
.b-btn {display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:38px; padding:8px 16px; border:1px solid var(--line-strong); border-radius:var(--radius-pill); color:var(--ink); background:transparent; font-size:13px; font-weight:500; line-height:1.35; white-space:nowrap; transition:background .15s,color .15s,border-color .15s}
.b-btn svg {width:16px; height:16px}
.b-btn:hover {border-color:var(--muted); background:var(--raised)}
.b-btn.primary,.b-btn.b-primary {background:var(--accent); border-color:var(--accent); color:var(--on-accent); font-weight:600}
.b-btn.primary:hover,.b-btn.b-primary:hover {background:var(--accent-hover); border-color:var(--accent-hover)}
.b-btn.ghost {background:transparent; border-color:transparent; color:var(--muted)}
.b-btn.ghost:hover {color:var(--ink); background:var(--subtle)}
.b-btn.danger {color:var(--danger); border-color:color-mix(in srgb,var(--danger) 40%,var(--paper))}
.b-btn.danger:hover {background:var(--b-red-soft); border-color:var(--danger)}
.b-btn.small {min-height:32px; padding:6px 9px; font-size:13px}
.b-icon-btn {display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; min-width:36px; width:36px; height:36px; padding:8px; border:0; border-radius:var(--radius-pill); background:transparent; color:var(--muted)}
.b-icon-btn:hover {background:var(--raised); color:var(--ink)}
.b-icon-btn svg {width:17px; height:17px}
.b-link,.b-text-btn {display:inline-flex; align-items:center; gap:7px; min-height:34px; padding:5px 0; border:0; background:none; color:var(--accent); font-size:13px; font-weight:500; text-align:left}
.b-link:hover,.b-text-btn:hover {text-decoration:underline; text-underline-offset:4px}
.b-link svg {width:15px; height:15px}
.b-link.danger {color:var(--danger)}
.b-back {margin-bottom:16px; color:var(--muted)}

/* Overview, projects, clients and invoices share a continuous data surface. */
.b-summary {display:flex; align-items:stretch; gap:16px; margin-bottom:28px}
.b-stat {flex:1; min-width:0; padding:20px 22px; border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--surface)}
.b-stat>span,.b-stat>small {display:block; color:var(--muted); font-size:13px}
.b-stat strong {display:block; font-family:var(--font-display); font-size:32px; line-height:1.3; letter-spacing:-.04em; margin:8px 0 2px; font-weight:700}
.b-stat strong>small {display:block; margin-top:6px; font-size:13px; font-weight:400; letter-spacing:0; color:var(--muted)}
.b-stat .b-accent {color:var(--accent)}
.b-overview-grid,.b-bottom-grid {display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:32px; align-items:start}
.b-bottom-grid {margin-top:32px}
.b-panel {min-width:0; padding:0 22px; border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--surface)}
.b-panel+.b-panel {margin-top:20px}
.b-panel-head {display:flex; align-items:center; justify-content:space-between; gap:16px; padding:20px 0 16px}
.b-panel-head h2 {font-size:19px; letter-spacing:-.025em}
.b-panel-head p {margin-top:5px; color:var(--muted); font-size:13px}
.b-count {font-size:13px; color:var(--muted); font-weight:400}
.b-panel-head .b-count {margin-left:8px}
.b-panel-foot {display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 0; border-top:1px solid var(--line); color:var(--muted); font-size:13px}
.b-panel-body,.b-padding {padding:0 0 20px}
.b-project-row {display:grid; grid-template-columns:32px minmax(120px,1fr) 76px 58px 100px 90px 28px; align-items:center; gap:12px; padding:17px 0; border-top:1px solid var(--line)}
.b-project-name,.b-table-link,.b-task-body,.b-card-title,.b-client-name {min-width:0; padding:0; border:0; color:var(--ink); background:none; text-align:left}
.b-project-name:hover,.b-table-link:hover,.b-card-title:hover,.b-client-name:hover {color:var(--accent)}
.b-project-name strong,.b-table-link strong {display:block; font-size:14px; font-weight:550; line-height:1.5; overflow-wrap:anywhere}
.b-project-name small,.b-table-link small {display:block; margin-top:4px; font-size:13px; color:var(--muted)}
.b-row-progress small {display:block; font-size:13px; color:var(--muted); margin-top:5px; white-space:nowrap}
.b-row-amount {font-size:13px; font-variant-numeric:tabular-nums; text-align:right; white-space:nowrap}
.b-avatar {width:34px; height:34px; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; border-radius:50%; color:var(--accent); background:var(--accent-soft); font-size:13px; font-weight:550}
.b-avatar.small {width:26px; height:26px; font-size:13px}
.b-avatar[data-tone="1"],.b-avatar[data-tone="3"] {color:var(--ink); background:var(--raised)}
.b-progress {height:5px; border-radius:var(--radius-pill); background:var(--raised); width:100%; overflow:hidden}
.b-progress>span,.b-progress>i {display:block; height:100%; border-radius:inherit; background:var(--accent)}
.b-badge {display:inline-flex; align-items:center; gap:6px; max-width:100%; min-height:24px; padding:2px 0; color:var(--muted); font-size:13px; white-space:nowrap}
.b-badge i,.b-stage-dot,.t-status-dot {width:6px; height:6px; border-radius:50%; display:inline-block; flex-shrink:0; background:currentColor}
.b-badge.active,.b-badge.doing,.b-stage-dot.active,.t-status-dot.doing {color:var(--accent)}
.b-badge.review,.b-badge.partial,.b-stage-dot.review {color:var(--warning)}
.b-badge.done,.b-badge.paid,.b-stage-dot.done,.t-status-dot.done {color:var(--success)}
.b-badge.overdue,.b-overdue,.b-due.overdue,.b-task-date.b-overdue {color:var(--danger)}
.b-due,.b-task-date {color:var(--muted); font-size:13px; white-space:nowrap; font-variant-numeric:tabular-nums}
.b-task-row {display:flex; align-items:flex-start; gap:12px; min-width:0; padding:16px 0; border-top:1px solid var(--line)}
.b-task-body {flex:1}
.b-task-body strong {display:block; font-size:14px; font-weight:500; line-height:1.6; overflow-wrap:anywhere}
.b-task-body small {display:block; margin-top:3px; font-size:13px; color:var(--muted)}
.b-task-row .b-task-date {margin-top:3px}
.b-task-row>.b-icon-btn {margin-top:-6px}
.b-task-check,.b-check,.t-check {display:grid; place-items:center; width:20px; height:20px; min-width:20px; flex-shrink:0; padding:0; margin-top:2px; border:1.5px solid var(--line-strong); border-radius:6px; color:var(--on-accent); background:transparent}
.b-task-check.checked,.b-task-check[aria-checked=true],.b-check.done,.t-check[aria-pressed=true],.t-check.is-done {color:var(--on-accent); background:var(--accent); border-color:var(--accent)}
.b-task-check svg,.b-check svg,.t-check svg {width:13px; height:13px}
.b-task-check:hover,.t-check:hover {border-color:var(--accent)}
.b-task-row.is-done .b-task-body strong {color:var(--muted); text-decoration:line-through}
.b-agenda .b-task-date {display:none}
.b-agenda-icon {color:var(--accent)}
.b-invoice-row {display:grid; grid-template-columns:22px minmax(110px,1fr) 100px 90px auto; align-items:center; gap:12px; padding:16px 0; border-top:1px solid var(--line)}
.b-invoice-symbol {color:var(--muted)}
.b-invoice-row strong {display:block; font-size:14px}
.b-invoice-row p,.b-invoice-row small {display:block; margin-top:4px; color:var(--muted); font-size:13px}
.b-invoice-row .b-money {font-size:14px; text-align:right}
.b-activity {list-style:none; margin:0; padding:0}
.b-activity li {display:flex; gap:10px; padding:16px 0; border-top:1px solid var(--line); font-size:14px; line-height:1.6}
.b-activity li:before {content:""; width:5px; height:5px; margin-top:8px; flex-shrink:0; background:var(--line); border-radius:50%}
.b-activity p {overflow-wrap:anywhere}
.b-activity small,.b-activity time {display:block; color:var(--muted); font-size:13px; margin-top:5px}
.b-empty,.t-empty {padding:48px 24px; text-align:center; color:var(--muted); font-size:14px; line-height:1.6}
.b-empty strong,.b-empty h2,.b-empty h3,.t-empty strong,.t-empty h2,.t-empty h3 {display:block; color:var(--ink); font-size:20px}
.b-empty p,.t-empty p {max-width:42ch; margin:10px auto 20px}
.b-empty svg,.t-empty>svg {margin:0 auto 16px; color:var(--accent); width:26px; height:26px}

/* Filters are controls, not a second visual hierarchy. */
.b-toolbar {display:flex; justify-content:space-between; align-items:center; gap:16px; min-width:0; margin-bottom:20px}
.b-toolbar .b-search {flex:1; max-width:320px}
.b-toolbar select,.t-filters select {min-height:36px; padding:7px 10px; border:1px solid var(--line-strong); border-radius:var(--radius); background:var(--paper); color:var(--ink); font-size:13px; max-width:230px}
.b-search,.t-search {display:flex; align-items:center; gap:8px; min-width:0; min-height:38px; padding:0 14px; border:1px solid var(--line); border-radius:var(--radius-pill); background:var(--surface); color:var(--muted)}
.b-search input,.t-search input {width:100%; min-width:0; padding:8px 0; border:0; outline:0; background:transparent; color:var(--ink); font-size:14px}
.b-search:focus-within,.t-search:focus-within,.t-quick-add:focus-within {outline:2px solid var(--accent); outline-offset:2px}
.b-search svg,.t-search svg {width:16px; height:16px}
.b-pills,.b-stage-tabs {display:flex; align-items:center; gap:2px; width:fit-content; max-width:100%; overflow-x:auto; padding:4px; border:1px solid var(--line); border-radius:var(--radius-pill); background:var(--surface); scrollbar-width:none}
.b-pills button,.b-stage-tabs button {min-height:36px; padding:7px 14px; border:0; border-radius:var(--radius-pill); background:none; font-size:13px; color:var(--muted); white-space:nowrap}
.b-pills button:hover,.b-stage-tabs button:hover {color:var(--ink)}
.b-pills button.active,.b-pills [aria-selected=true],.b-pills [aria-pressed=true],.b-stage-tabs button.active,.b-stage-tabs [aria-selected=true] {color:var(--ink); background:var(--raised)}
.b-stage-tabs {margin-bottom:24px}
.b-stage-tabs span {margin-left:8px; font-size:13px; color:var(--muted)}
.b-board {display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; align-items:start}
.b-column {min-width:0; padding:0 12px 12px; border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--surface); min-height:220px}
.b-column>header {display:flex; align-items:center; justify-content:space-between; gap:8px; padding:16px 0; font-size:14px; font-weight:550}
.b-column>header>span:first-child {display:flex; align-items:center; gap:8px}
.b-column.is-over,.b-column.is-dragover,.t-column.is-dragover,.t-column-body.is-dragover {background:var(--accent-soft); outline:2px dashed var(--accent); outline-offset:3px}
.b-project-card {min-width:0; margin-bottom:12px; padding:16px; border:1px solid var(--line); border-radius:12px; background:var(--raised); transition:border-color .15s}
.b-project-card:hover {border-color:var(--accent)}
.b-project-card.is-dragging,.t-card.is-dragging {opacity:.4}
.b-card-top {display:flex; align-items:center; gap:8px; min-width:0; margin-bottom:12px; font-size:13px; color:var(--muted)}
.b-card-top>span {overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.b-card-top>.b-icon-btn {margin-left:auto; margin-right:-8px; width:28px; height:28px; min-width:28px; padding:5px}
.b-card-title {display:block; font-size:16px; line-height:1.45; font-weight:550; overflow-wrap:anywhere; margin-bottom:8px}
.b-project-card>p {font-size:13px; line-height:1.6; color:var(--muted); overflow-wrap:anywhere}
.b-card-budget {display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:20px; font-size:14px}
.b-card-budget>span:last-child {font-size:13px; color:var(--muted)}
.b-card-progress {margin-top:16px}
.b-card-progress>span {display:block; margin-top:6px; font-size:13px; color:var(--muted)}
.b-card-stage {display:block; margin-top:16px; padding-top:12px; border-top:1px solid var(--line)}
.b-card-stage select {width:100%; min-height:34px; padding:5px 7px; border:1px solid var(--line-strong); border-radius:var(--radius); background:var(--paper); font-size:13px}
.b-column-add,.t-column-add {display:flex; align-items:center; justify-content:flex-start; gap:8px; width:100%; min-height:40px; padding:8px 0; border:0; background:none; color:var(--muted); font-size:13px}
.b-column-add:hover,.t-column-add:hover {color:var(--accent)}
.b-column-add svg,.t-column-add svg {width:15px; height:15px}
.b-column-empty,.t-column-empty {padding:24px 12px; text-align:center; color:var(--muted); border:1px dashed var(--line-strong); border-radius:12px; font-size:13px}
.b-detail-grid {display:grid; grid-template-columns:minmax(0,1fr) 285px; align-items:start; gap:32px}
.b-detail-main,.b-detail-aside {min-width:0}
.b-tabs {display:flex; gap:24px; overflow-x:auto; border-bottom:1px solid var(--line)}
.b-tabs button,.b-tabs a {min-height:48px; padding:12px 0; border:0; border-bottom:2px solid transparent; background:none; color:var(--muted); font-size:14px; white-space:nowrap}
.b-tabs .active,.b-tabs [aria-selected=true] {color:var(--ink); border-bottom-color:var(--accent)}
.b-tabs span {margin-left:5px; font-size:13px; color:var(--muted)}
.b-context {padding:20px 0}
.b-context h2 {font-size:18px; margin-bottom:20px}
.b-context>.b-field {margin-bottom:20px}
.b-context-client {display:flex; align-items:center; gap:10px; margin:18px 0}
.b-context dl {margin:20px 0}
.b-context dl>div {display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0; border-bottom:1px solid var(--line); font-size:13px}
.b-context dt {color:var(--muted)}
.b-context dd {margin:0; text-align:right; font-weight:550}
.b-context>.b-muted,.b-aside-note {font-size:13px; color:var(--muted); line-height:1.6; margin-top:16px}
.b-context>.b-btn {width:100%; margin-top:20px}
.b-context>.b-info-note {margin-top:16px}
.b-task-group>h3 {padding:13px 0; border-bottom:1px solid var(--line); font-size:14px; font-weight:500; letter-spacing:0}
.b-task-group>h3 span {margin-left:8px; color:var(--muted)}
.b-note-form {display:grid; gap:12px; padding:20px 0}
.b-note-form .b-btn {justify-self:start}
.b-note {padding:20px 0; border-top:1px solid var(--line)}
.b-note p {white-space:pre-wrap; overflow-wrap:anywhere; font-size:14px; line-height:1.7}
.b-note footer {display:flex; align-items:center; justify-content:space-between; margin-top:12px; gap:12px; font-size:13px; color:var(--muted)}
.b-table-wrap {max-width:100%; overflow-x:auto; border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--surface)}
.b-ledger {width:100%; border-collapse:collapse; text-align:left; font-size:14px}
.b-ledger th {padding:13px 16px; background:var(--raised); color:var(--muted); font-size:13px; font-weight:450; white-space:nowrap}
.b-ledger td {padding:18px 16px; border-top:1px solid var(--line); vertical-align:middle}
.b-ledger tbody tr:hover {background:var(--raised)}
.b-ledger th:last-child,.b-ledger td:last-child {text-align:right}
.b-ledger td strong {display:block; font-size:14px; font-weight:550}
.b-ledger td small {display:block; margin-top:5px; color:var(--muted); font-size:13px}
.b-table-action {display:inline-flex; border:0; background:none; color:var(--accent)}
.b-client-grid {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px}
.b-client-card {min-width:0; padding:24px; border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--surface)}
.b-client-card .b-card-top {margin-bottom:16px}
.b-client-card .b-avatar {width:40px; height:40px}
.b-client-name {font-size:23px; font-weight:550; letter-spacing:-.025em; line-height:1.35; overflow-wrap:anywhere}
.b-client-card>p,.b-client-card>small {display:block; font-size:14px; color:var(--muted); margin-top:6px; overflow-wrap:anywhere}
.b-client-stats {display:flex; justify-content:space-between; gap:16px; padding:18px 0; margin:20px 0 12px; border-block:1px solid var(--line); font-size:13px; color:var(--muted)}
.b-client-stats strong {display:block; color:var(--ink); font-family:var(--font-display); font-size:20px; font-weight:700; font-variant-numeric:tabular-nums}
.b-finance-overview {display:grid; grid-template-columns:320px minmax(0,1fr); gap:32px; margin-bottom:32px}
.b-finance-hero {padding:24px; border:1px solid var(--line-strong); border-radius:var(--radius-lg); background:radial-gradient(90% 120% at 0% 0%,#c8f16926,transparent 60%),var(--surface); color:var(--ink)}
.b-finance-hero>.b-label {color:var(--accent); font-size:14px}
.b-finance-hero>strong {display:block; margin:20px 0 24px; font-family:var(--font-display); font-size:40px; font-weight:800; line-height:1.25; letter-spacing:-.04em; font-variant-numeric:tabular-nums}
.b-finance-hero>div {display:flex; justify-content:space-between; gap:16px; font-size:13px}
.b-finance-hero>div b {font-weight:500; white-space:nowrap}
.b-finance-hero>p {margin-top:20px; padding-top:16px; border-top:1px solid var(--line); color:var(--muted); font-size:13px; line-height:1.6}
.b-chart-panel .b-panel-head {padding-bottom:8px}
.b-chart {display:flex; align-items:flex-end; gap:16px; height:190px; padding:8px 0 20px}
.b-month {display:flex; flex:1; min-width:0; flex-direction:column; align-items:center; justify-content:flex-end; gap:8px; height:100%}
.b-month>span,.b-month>small {color:var(--muted); font-size:13px; font-variant-numeric:tabular-nums; white-space:nowrap}
.b-bar-track {display:flex; align-items:flex-end; justify-content:center; width:100%; height:110px; max-width:40px}
.b-bar {display:block; width:100%; min-height:2px; border-radius:6px 6px 0 0; background:var(--line-strong)}
.b-month:last-child .b-bar {background:var(--accent)}
.b-ledger-toolbar {margin:0; padding:0 0 18px}
.b-ledger-toolbar .b-search {max-width:240px}

/* Native dialogs: clear fields, comfortable targets, restrained framing. */
.b-alert {display:flex; align-items:center; gap:12px; padding:14px 16px; margin-bottom:20px; border:1px solid color-mix(in srgb,var(--warning) 35%,var(--paper)); border-radius:12px; background:var(--b-amber-soft); color:var(--warning); font-size:14px; line-height:1.6}
.b-alert .b-btn {margin-left:auto; flex-shrink:0}
.b-alert.error {background:var(--b-red-soft); border-color:var(--danger); color:var(--danger)}
#storage-alert {margin:20px 32px 0}
.b-toast {position:fixed; z-index:100; bottom:24px; left:calc(50% + 98px); transform:translateX(-50%); display:flex; align-items:center; gap:16px; width:max-content; max-width:calc(100vw - 40px); padding:13px 18px; border:0; border-radius:var(--radius-pill); color:var(--paper); background:var(--ink); font-size:14px; box-shadow:var(--shadow)}
.b-toast button {min-height:32px; padding:5px; border:0; background:none; color:var(--paper); text-decoration:underline; text-underline-offset:4px; font-size:13px}
.b-dialog {width:min(640px,calc(100% - 40px)); max-height:calc(100dvh - 48px); margin:auto; padding:0; border:1px solid var(--line-strong); border-radius:20px; background:var(--surface); color:var(--ink); box-shadow:var(--shadow); overscroll-behavior:contain}
.b-dialog.wide {width:min(780px,calc(100% - 40px))}
.b-dialog::backdrop {background:#000000b3; backdrop-filter:blur(4px)}
body:has(.b-dialog[open]) {overflow:hidden}
.b-dialog-header,.b-dialog-head {position:sticky; top:0; z-index:2; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:22px 24px; border-bottom:1px solid var(--line); background:var(--surface)}
.b-dialog-header .b-label,.b-dialog-head .b-label {display:none}
.b-dialog-header h2,.b-dialog-head h2 {font-size:24px; line-height:1.25}
.b-form {display:grid; gap:20px; padding:24px}
.b-field {display:flex; flex-direction:column; gap:8px; min-width:0; color:var(--ink); font-size:14px; font-weight:500}
.b-field small {font-size:13px; font-weight:400; line-height:1.6; color:var(--muted)}
.b-field input,.b-field select,.b-field textarea {width:100%; min-width:0; min-height:44px; padding:10px 14px; border:1px solid var(--line-strong); border-radius:12px; color:var(--ink); background:var(--paper); font-size:15px; font-weight:400; line-height:1.5}
.b-field textarea {min-height:110px; resize:vertical}
.b-field input:focus,.b-field select:focus,.b-field textarea:focus {border-color:var(--accent); outline:0}
.b-field input:disabled,.b-field select:disabled {color:var(--muted); background:var(--raised)}
.b-form-grid {display:grid; grid-template-columns:1fr 1fr; gap:18px}
.b-form-grid .full,.b-form-grid .b-full {grid-column:1/-1}
.b-dialog-actions {display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:8px; padding-top:20px; margin-top:4px; border-top:1px solid var(--line)}
.b-dialog-actions .danger {margin-right:auto}
.b-form-error {padding:12px 14px; border-radius:var(--radius); background:var(--b-red-soft); color:var(--danger); font-size:14px; line-height:1.6}
.b-info-note,.b-form-note {font-size:13px; color:var(--muted); line-height:1.65}
.b-payment-summary {display:flex; align-items:center; justify-content:space-between; gap:20px; margin:24px 24px 0; padding:16px; border-radius:12px; background:var(--raised)}
.b-payment-summary>div>span,.b-payment-summary>span {color:var(--muted); font-size:13px}
.b-payment-summary strong {display:block; margin-top:5px; color:var(--ink); font-size:15px}
.b-payment-summary>span {text-align:right}
.b-payment-summary>span>b {display:block; margin-top:5px; color:var(--ink); font-size:24px; font-weight:500; font-variant-numeric:tabular-nums}
.b-invoice-detail,.b-client-detail,.b-data-content,.b-data-dialog {padding:24px}
.b-invoice-detail>p {color:var(--muted); font-size:14px; line-height:1.7; margin-bottom:12px}
.b-invoice-detail dl {display:grid; grid-template-columns:1fr 1fr; gap:20px; margin:24px 0}
.b-invoice-detail dt {color:var(--muted); font-size:13px; margin-bottom:5px}
.b-invoice-detail dd {margin:0; font-size:21px; font-weight:500; font-variant-numeric:tabular-nums}
.b-dialog-inline-actions,.b-data-actions {display:flex; flex-wrap:wrap; gap:8px; margin:20px 0}
.b-invoice-detail>h3,.b-client-detail>h3,.b-data-dialog>h3 {margin:28px 0 12px; font-size:18px; color:var(--ink)}
.b-payment-list {margin:0; padding:0; list-style:none}
.b-payment-list li,.b-data-item {display:flex; align-items:center; justify-content:space-between; gap:20px; padding:16px 0; border-top:1px solid var(--line); min-width:0}
.b-payment-list li>div,.b-data-item>div {min-width:0}
.b-payment-list li strong {display:inline-block; font-size:14px; margin-right:8px; overflow-wrap:anywhere}
.b-payment-list li span,.b-payment-list li small {color:var(--muted); font-size:13px}
.b-payment-list li small {display:block; margin-top:5px}
.b-payment-list .b-dialog-inline-actions {margin:0; flex-shrink:0}
.b-client-detail .b-context-client p {color:var(--muted); font-size:14px; margin-top:5px; overflow-wrap:anywhere}
.b-search-result {display:flex; align-items:center; gap:12px; width:100%; min-height:68px; padding:15px 24px; border:0; background:none; color:var(--ink); text-align:left}
.b-search-result:hover {background:var(--raised)}
.b-search-result>span {flex:1; min-width:0}
.b-search-result strong {display:block; font-size:15px; font-weight:550; overflow-wrap:anywhere}
.b-search-result small {display:block; margin-top:4px; color:var(--muted); font-size:13px}
.b-search-result>b {font-size:13px; font-weight:500; white-space:nowrap}
.b-search-result>svg {color:var(--muted); width:16px; height:16px}
.b-client-detail .b-search-result {padding-inline:0; border-top:1px solid var(--line)}
.b-command-search {margin:20px 24px; min-height:44px}
.b-command-search input {font-size:16px}
#search-results {max-height:440px; overflow-y:auto}
.b-search-hint {padding:16px 24px; border-top:1px solid var(--line); font-size:13px; color:var(--muted); line-height:1.6}
.b-data-dialog {font-size:14px; line-height:1.7; color:var(--muted)}
.b-data-dialog>p {margin-bottom:16px}
.b-data-dialog details {padding:16px 0; border-top:1px solid var(--line)}
.b-data-dialog summary {cursor:pointer; color:var(--ink); font-size:16px}
.b-data-dialog details>p {margin-top:12px}
.b-data-counts {display:grid; grid-template-columns:repeat(3,1fr); gap:16px; padding:20px 0; margin:20px 0; border-block:1px solid var(--line)}
.b-data-counts>span {font-size:13px}
.b-data-counts strong {display:block; color:var(--ink); font-size:26px; font-weight:500; line-height:1.4; font-variant-numeric:tabular-nums}
.b-data-reset {display:flex; align-items:center; justify-content:space-between; gap:16px; padding-top:20px; margin-top:24px; border-top:1px solid var(--line); font-size:13px}
.b-app-footer {display:flex; align-items:center; justify-content:space-between; gap:20px; max-width:1640px; margin-inline:auto; padding:0 32px 24px; color:var(--muted); font-size:13px}
.b-app-footer button {padding:6px 0; border:0; background:none; color:inherit; font:inherit; text-decoration:underline; text-underline-offset:4px}
.b-app-footer button:hover {color:var(--accent)}

/* Tasks: the list is the default. The board is an optional spatial view. */
.b-content:has(>.t-heading) {display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:20px; align-items:start}
.b-content:has(>.t-heading)>:not(.t-scopes):not(.t-filterbar) {grid-column:1/-1}
.t-heading {display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:24px}
.t-heading>div:first-child {display:flex; align-items:center; flex-wrap:wrap; gap:8px 20px}
.t-heading h1 {font-size:40px; line-height:1.1; font-weight:800}
.t-heading-actions {display:flex; align-items:center; gap:10px; flex-shrink:0}
.t-stats {display:flex; align-items:center; gap:12px; flex-wrap:wrap; color:var(--muted); font-size:13px}
.t-stats>span {display:inline-flex; gap:4px; align-items:center}
.t-stats b {color:var(--ink); font-weight:500; font-variant-numeric:tabular-nums}
.t-stats button {display:flex; align-items:center; gap:5px; padding:0; border:0; color:var(--danger); background:none; font-size:13px}
.t-stats button:hover {text-decoration:underline}
.t-stats button i {display:none}
.t-view-switch {display:flex; align-items:center; gap:2px; padding:4px; border:1px solid var(--line); border-radius:var(--radius-pill); background:var(--surface)}
.t-view-switch button {display:flex; align-items:center; justify-content:center; gap:6px; min-height:32px; padding:6px 12px; border:0; border-radius:var(--radius-pill); background:none; color:var(--muted); font-size:13px; font-weight:400; white-space:nowrap}
.t-view-switch svg {width:15px; height:15px}
.t-view-switch button:hover {color:var(--ink)}
.t-view-switch button.is-active,.t-view-switch [aria-pressed=true] {color:var(--ink); background:var(--raised)}
.t-scopes {grid-column:1; display:flex; align-items:center; gap:2px; overflow-x:auto; width:fit-content; max-width:100%; min-height:38px; margin:0 0 20px; padding:4px; border:1px solid var(--line); border-radius:var(--radius-pill); background:var(--surface); scrollbar-width:none}
.t-scopes::-webkit-scrollbar {display:none}
.t-scopes button {display:flex; align-items:center; gap:6px; min-height:34px; padding:6px 12px; border:0; border-radius:var(--radius-pill); background:none; color:var(--muted); font-size:13px; font-weight:400; white-space:nowrap}
.t-scopes button span {font-size:13px; color:var(--muted); font-variant-numeric:tabular-nums}
.t-scopes button:hover {color:var(--ink)}
.t-scopes button.is-active {color:var(--ink); background:var(--raised); font-weight:550}
.t-filterbar {position:relative; grid-column:2; display:flex; align-items:center; gap:8px; min-width:0; margin-bottom:20px}
.t-search {width:180px; min-height:36px}
.t-search input {font-size:13px; padding-block:7px}
.t-filter-toggle {display:inline-flex; min-height:36px}
.t-filter-toggle[aria-expanded=true] {border-color:var(--accent); color:var(--accent)}
.t-filter-toggle svg {width:15px; height:15px}
.t-filter-count {display:inline-grid; place-items:center; min-width:18px; height:18px; border-radius:var(--radius-pill); background:var(--accent-soft); color:var(--accent); font-size:13px}
.t-filters {display:none; position:absolute; top:calc(100% + 8px); right:0; z-index:20; width:340px; max-width:calc(100vw - 40px); padding:16px; border:1px solid var(--line-strong); border-radius:var(--radius-lg); background:var(--surface); box-shadow:var(--shadow)}
.t-filterbar.is-expanded .t-filters {display:grid; grid-template-columns:1fr; gap:10px}
.t-filters select {width:100%; max-width:none; font-size:14px; min-height:40px}
.t-sort {display:flex; gap:8px; align-items:center}
.t-sort>svg {width:16px; height:16px; color:var(--muted)}
.t-sort select {flex:1; min-width:0}
.t-filters>.b-btn {justify-self:start}
.t-quick-add {display:flex; align-items:center; gap:10px; flex-wrap:wrap; min-width:0; min-height:44px; padding:5px 6px 5px 12px; border:1px dashed var(--line-strong); border-radius:12px; margin-bottom:16px; color:var(--muted); background:transparent}
.t-quick-icon {display:block}
.t-quick-icon svg {width:17px; height:17px}
.t-quick-add input {flex:1; min-width:120px; min-height:32px; padding:6px 0; border:0; outline:0; background:transparent; color:var(--ink); font-size:14px}
.t-quick-add select {max-width:230px; min-width:0; min-height:32px; padding:5px 9px; border:0; border-left:1px solid var(--line); background:transparent; color:var(--muted); font-size:13px}
.t-quick-add .b-btn {background:var(--raised)}
.t-quick-add .b-form-error {width:100%; flex-basis:100%}
.t-enter-hint {color:var(--muted)}
.t-result-meta {display:flex; justify-content:space-between; gap:16px; margin-bottom:12px; color:var(--muted); font-size:13px}
.t-result-meta>span:last-child {display:none}
.t-list {min-width:0; overflow:hidden; border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--surface)}
.t-list-head,.t-row {display:grid; grid-template-columns:20px minmax(200px,1fr) 112px 95px 90px 85px; align-items:center; gap:16px; min-width:0}
.t-list-head {grid-template-columns:minmax(236px,1fr) 112px 95px 90px 85px; padding:13px 20px; border-bottom:1px solid var(--line); font:500 11px/1.4 var(--font-mono); letter-spacing:.06em; text-transform:uppercase; color:var(--muted)}
.t-row {min-height:74px; padding:15px 20px; border-bottom:1px solid var(--line); transition:background .15s}
.t-row:last-child {border-bottom:0}
.t-row:hover {background:var(--raised)}
.t-row>.t-check {margin:0}
.t-row-main {min-width:0}
.t-row-title {display:block; padding:0; border:0; color:var(--ink); background:none; text-align:left; font-size:15px; font-weight:500; line-height:1.45; overflow-wrap:anywhere}
.t-row-title:hover {color:var(--accent)}
.t-row-meta {display:flex; align-items:center; gap:10px; margin-top:6px; color:var(--muted); font-size:13px; line-height:1.35}
.t-task-code {font-size:13px; color:var(--muted); font-variant-numeric:tabular-nums}
.t-row-meta .t-task-code {display:none}
.t-status-label {font-size:13px; color:var(--muted)}
.t-status-label.doing {color:var(--accent)}
.t-status-label.done {color:var(--success)}
.t-project {display:inline-flex; align-items:center; gap:6px; min-width:0; max-width:100%; color:var(--muted); font-size:13px; line-height:1.4; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.t-project i {width:5px; height:5px; border-radius:50%; flex-shrink:0; background:var(--project-color,var(--muted))}
.t-project svg {width:13px; height:13px}
.t-priority {display:inline-flex; align-items:center; gap:5px; max-width:100%; color:var(--muted); font-size:13px; white-space:nowrap}
.t-priority svg {width:13px; height:13px}
.t-priority[data-priority=high] {color:var(--warning)}
.t-priority[data-priority=urgent] {color:var(--danger)}
.t-due,.t-checklist-count,.t-estimate,.t-time-spent {display:inline-flex; align-items:center; gap:5px; color:var(--muted); font-size:13px; white-space:nowrap; font-variant-numeric:tabular-nums}
.t-due svg,.t-checklist-count svg,.t-estimate svg,.t-time-spent svg {width:14px; height:14px}
.t-due.is-overdue {color:var(--danger)}
.t-due.is-today {color:var(--accent)}
.t-row>.t-due svg {display:none}
.t-timer-button {display:inline-flex; justify-content:flex-start; align-items:center; gap:5px; min-height:34px; padding:5px 6px; border:0; border-radius:var(--radius); color:var(--muted); background:none; font-size:13px; white-space:nowrap; font-variant-numeric:tabular-nums}
.t-timer-button:hover {color:var(--accent); background:var(--accent-soft)}
.t-timer-button svg {width:14px; height:14px}
.t-timer-button.is-running {color:var(--accent); background:var(--accent-soft)}
.t-row.is-done .t-row-title,.t-card.is-done .t-card-title {color:var(--muted); text-decoration:line-through}
.t-board {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:start; gap:24px; min-width:0}
.t-column {min-width:0; padding:0 12px 12px; border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--surface)}
.t-column-header {display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0 16px}
.t-column-header h2 {display:flex; align-items:center; gap:8px; font-size:15px; font-weight:500; letter-spacing:0}
.t-column-header h2>span {margin-left:4px; color:var(--muted); font-size:13px; font-weight:400; font-variant-numeric:tabular-nums}
.t-column-header>.b-icon-btn {width:30px; height:30px; min-width:30px; padding:6px}
.t-column-body {display:flex; flex-direction:column; gap:12px; min-height:100px}
.t-card {position:relative; display:flex; flex-direction:column; min-width:0; padding:16px; border:1px solid var(--line); border-radius:12px; background:var(--raised); cursor:grab; transition:border-color .15s}
.t-card:hover {border-color:var(--accent)}
.t-card.is-running {border-color:var(--accent)}
.t-card-top {display:flex; align-items:center; gap:8px; margin-bottom:12px; min-width:0}
.t-card-top .t-priority {margin-left:auto; font-size:13px}
.t-card-top .t-check {margin:0}
.t-card-title {padding:0; border:0; background:none; color:var(--ink); text-align:left; font-size:16px; font-weight:500; line-height:1.45; overflow-wrap:anywhere}
.t-card-title:hover {color:var(--accent)}
.t-card>.t-project {margin-top:8px}
.t-card-meta {display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:18px}
.t-card-meta .t-estimate {margin-left:auto}
.t-card-footer {display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:12px; padding-top:10px; border-top:1px solid var(--line)}
.t-category {font-size:13px; color:var(--muted)}
.t-column-add {margin-top:6px}
.t-calendar-toolbar {display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin:8px 0 20px}
.t-calendar-navigation {display:flex; align-items:center; gap:8px}
.t-calendar-navigation h2 {font-size:18px}
.t-calendar-navigation>.b-btn {margin-left:8px}
.t-calendar-hint {color:var(--muted); font-size:13px}
.t-calendar {display:grid; grid-template-columns:repeat(7,minmax(130px,1fr)); overflow-x:auto; min-width:0; max-width:100%; border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--surface)}
.t-day {min-width:0; min-height:300px; padding:12px 8px 16px; border-right:1px solid var(--line)}
.t-day:last-child {border-right:0}
.t-day.is-today {background:var(--accent-soft)}
.t-day.is-dragover,.t-unscheduled.is-dragover {background:var(--accent-soft); outline:2px dashed var(--accent); outline-offset:-3px}
.t-day-head {display:flex; align-items:center; gap:6px; margin-bottom:12px; padding-bottom:12px; border-bottom:1px solid var(--line)}
.t-day-head>div {display:flex; align-items:center; gap:5px}
.t-day-head>div>span {font-size:13px; color:var(--muted)}
.t-day-head strong {font-size:16px; font-weight:500}
.t-day-head .b-icon-btn {width:28px; height:30px; min-width:28px; padding:4px; margin-left:auto}
.t-day-head .b-icon-btn svg {width:15px; height:15px}
.t-day-count {font-size:13px; color:var(--muted)}
.t-day-empty {font-size:13px; color:var(--muted); padding:8px 0}
.t-calendar-task {min-width:0; padding:12px 10px; margin-bottom:10px; border:1px solid var(--line); border-radius:10px; background:var(--raised); cursor:grab}
.t-calendar-task:hover {border-color:var(--accent)}
.t-calendar-task-top {display:flex; align-items:center; justify-content:space-between; gap:4px; margin-bottom:8px}
.t-calendar-task .t-project {font-size:13px}
.t-calendar-task-title {display:block; width:100%; padding:0; border:0; background:none; color:var(--ink); font-size:14px; font-weight:500; line-height:1.45; text-align:left; overflow-wrap:anywhere}
.t-calendar-task-title .t-status-dot {margin-right:5px; vertical-align:middle}
.t-calendar-task.is-done .t-calendar-task-title {text-decoration:line-through; color:var(--muted)}
.t-calendar-task-footer {display:flex; align-items:center; justify-content:space-between; gap:5px; margin-top:12px; font-size:13px; color:var(--muted)}
.t-calendar-task-footer .t-checklist-count {font-size:13px}
.t-unscheduled {margin-top:28px}
.t-unscheduled-head {display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px}
.t-unscheduled-head h2 {font-size:18px}
.t-unscheduled-head h2 span {margin-left:8px; color:var(--muted); font-size:13px}
.t-unscheduled-head p {font-size:13px; color:var(--muted)}
.t-unscheduled-items {display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px}
.t-unscheduled-items>.b-muted {grid-column:1/-1; font-size:13px}
.b-task-views {margin-top:24px; padding-top:16px; border-top:1px solid var(--line)}
.b-task-views .b-nav-link {font-size:13px; min-height:38px; gap:8px; padding-inline:9px}
.b-task-views .b-nav-link svg {width:16px; height:16px}
.b-task-views .b-nav-count {font-size:13px}
.b-task-views .b-nav-link.is-active {color:var(--accent); background:var(--raised)}
.t-running-widget {display:grid; grid-template-columns:6px minmax(0,1fr) 32px; gap:4px 8px; align-items:center; padding:14px 12px; margin-top:20px; border:1px solid color-mix(in srgb,var(--accent) 35%,transparent); border-radius:12px; background:var(--accent-soft)}
.t-live-dot {width:5px; height:5px; background:var(--accent); border-radius:50%; grid-row:1/3}
.t-timer-label {grid-column:2/-1; padding:0; border:0; background:none; text-align:left; min-width:0}
.t-timer-label>span {display:none}
.t-running-widget strong {display:block; font-size:13px; font-weight:500; overflow:hidden; white-space:nowrap; text-overflow:ellipsis}
.t-running-widget .t-timer-time {grid-column:2; margin-top:4px; color:var(--accent); font-size:24px; font-weight:500; font-variant-numeric:tabular-nums; letter-spacing:-.025em}
.t-running-widget>.b-icon-btn {grid-column:3; grid-row:2; width:32px; height:32px; min-width:32px; color:var(--accent)}

/* Task details remain a native modal drawer; fields never depend on hover. */
#dialog.t-drawer {position:fixed; inset:0 0 0 auto; width:min(620px,100%); max-width:100%; height:100dvh; max-height:100dvh; margin:0 0 0 auto; border:0; border-left:1px solid var(--line-strong); border-radius:20px 0 0 20px; overflow-y:auto; box-shadow:-24px 0 64px #0009}
.t-drawer .b-dialog-header {padding:22px 24px}
.t-drawer .b-dialog-header h2 {font-size:22px}
.t-editor {display:flex; flex-direction:column; gap:24px; padding:24px}
.t-editor-top {display:flex; flex-direction:column; gap:16px; align-items:stretch}
.t-editor-title {display:flex; flex-direction:column; gap:8px; min-width:0; width:100%; font-size:14px; font-weight:500}
.t-editor-title>input {font-size:22px; font-weight:500; letter-spacing:-.025em; line-height:1.4; min-height:54px}
.t-properties {display:grid; grid-template-columns:1fr 1fr; gap:18px; padding:20px 0; border-block:1px solid var(--line)}
.t-properties .full {grid-column:1/-1}
.t-properties .b-field {font-size:13px}
.t-properties .b-field input,.t-properties .b-field select {font-size:14px}
.t-checklist-heading {display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:12px}
.t-checklist-heading h3 {font-size:16px}
.t-checklist-heading h3 span {color:var(--muted); margin-left:6px; font-size:13px; font-weight:400}
.t-checklist-heading>span {color:var(--muted); font-size:13px}
.t-checklist-row {display:flex; align-items:center; gap:10px; min-height:44px; padding:8px 0; border-bottom:1px solid var(--line)}
.t-checklist-row input[type=checkbox] {width:18px; height:18px; flex-shrink:0; accent-color:var(--success)}
.t-checklist-row input[type=text] {flex:1; min-width:0; padding:6px 0; border:0; background:none; font-size:14px}
.t-checklist-row:has(input:checked) input[type=text] {text-decoration:line-through; color:var(--muted)}
.t-checklist-row .b-icon-btn {width:30px; min-width:30px; height:32px; padding:6px}
.t-checklist-editor>.b-btn,.t-checklist-editor>.b-link {margin-top:12px}
.t-time-summary {display:flex; align-items:center; gap:16px; padding:18px; border-radius:12px; background:var(--raised); font-size:13px; color:var(--muted)}
.t-time-summary>svg {width:20px; height:20px; color:var(--accent)}
.t-time-summary>div {display:flex; flex-direction:column; gap:5px; flex-shrink:0}
.t-time-summary strong {font-family:var(--font-display); font-size:26px; font-weight:700; color:var(--ink); font-variant-numeric:tabular-nums}
.t-time-summary>p {margin-left:auto; max-width:240px; font-size:13px; line-height:1.6}
.t-editor-actions {display:flex; align-items:center; justify-content:flex-end; gap:8px; padding-top:20px; border-top:1px solid var(--line)}
.t-editor-actions .danger {margin-right:auto}
.boot-state {max-width:48ch; margin:10vh auto; padding:32px 0; border-top:1px solid var(--line); color:var(--muted)}
.boot-state strong,.boot-state h1,.boot-state h2 {display:block; font-size:24px; color:var(--ink); margin-bottom:12px}
.boot-state a {color:var(--accent); text-decoration:underline}

/* Responsive data remains readable: reduce columns before reducing type. */
@media(min-width:1600px) {.b-sidebar{width:216px}.b-main{margin-left:216px}.b-content{padding:32px 48px 56px}.b-topbar{padding-inline:48px}.b-toast{left:calc(50% + 108px)}}
@media(max-width:1250px) {
  .b-overview-grid,.b-bottom-grid{grid-template-columns:minmax(0,1fr) 260px;gap:24px}
  .b-project-row{grid-template-columns:30px minmax(110px,1fr) 76px 90px 28px;gap:10px}
  .b-project-row .b-row-progress,.b-project-row .b-due{display:none}
  .b-board{grid-template-columns:repeat(2,minmax(0,1fr))}
  .b-client-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .t-heading>div:first-child{display:block}.t-heading .t-stats{margin-top:8px}
  .t-heading-actions{flex-wrap:wrap;justify-content:flex-end;max-width:355px}
  .t-list-head,.t-row{grid-template-columns:20px minmax(160px,1fr) 100px 78px 78px;gap:12px}
  .t-list-head{grid-template-columns:minmax(192px,1fr) 100px 78px 78px}
  .t-row>.t-priority,.t-list-head>span:nth-child(3){display:none}
  .t-board{gap:16px}.t-card{padding:14px}.t-card-title{font-size:15px}
  .t-card-top>.t-task-code{display:none}.t-card-top .t-priority{margin-left:0;margin-right:auto}
  .t-card-meta{gap:8px}.t-card-meta .t-estimate{margin-left:0}
}
@media(max-width:1050px) {
  .b-sidebar{width:176px;padding-inline:12px}.b-main{margin-left:176px}.b-brand{font-size:30px}.b-workspace .b-avatar{display:none}
  .b-topbar{padding-inline:24px}.b-content{padding:24px 24px 40px}.b-app-footer{padding-inline:24px}.b-toast{left:calc(50% + 88px)}
  .b-search-trigger>span,.b-search-trigger kbd{display:none}
  .b-overview-grid,.b-bottom-grid,.b-detail-grid{grid-template-columns:1fr}.b-detail-aside{margin-top:8px}
  .b-summary{gap:12px;flex-wrap:wrap}.b-stat{flex-basis:calc(50% - 12px);padding:16px 18px}.b-stat strong{font-size:28px}
  .b-finance-overview{grid-template-columns:260px minmax(0,1fr);gap:24px}
  .b-finance-hero{padding:20px}.b-finance-hero>strong{font-size:30px}
  .b-content:has(>.t-heading){grid-template-columns:1fr}
  .t-scopes,.t-filterbar{grid-column:1/-1}.t-scopes{margin-bottom:12px}.t-filterbar{justify-content:space-between;margin-bottom:16px}
  .t-search{width:280px}.t-filters{right:0}
  .t-heading{align-items:flex-start}.t-heading-actions{max-width:330px}
  .t-unscheduled-items{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px) {
  .b-sidebar{display:contents}.b-main{margin-left:0;padding-bottom:72px}
  .b-brand,.b-workspace,.b-sidebar-label,.b-sidebar-bottom,.b-task-views{display:none}
  .b-nav{position:fixed;z-index:35;inset:auto 0 0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;padding:6px 8px max(6px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:color-mix(in srgb,var(--paper) 86%,transparent);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
  .b-nav a,.b-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:50px;padding:5px 2px;border-radius:0;font-size:13px;line-height:1.3}
  .b-nav svg{width:19px;height:19px}.b-nav-count{display:none}.b-nav [aria-current=page]{background:none;color:var(--accent)}
  .b-nav-link.active{background:none;color:var(--accent)}
  .b-topbar{height:62px;padding-inline:20px;gap:12px}.b-main-actions{gap:4px}.b-topbar .b-btn{min-height:38px;font-size:13px;padding-inline:10px}
  .b-breadcrumb{font-size:13px;gap:7px}.b-search-trigger{padding:8px}.b-search-trigger svg{width:18px;height:18px}
  .b-content{padding:24px 20px 36px}.b-heading{gap:20px;flex-wrap:wrap;margin-bottom:24px}.b-heading-actions{width:100%}
  h1,.t-heading h1{font-size:30px}.b-subtitle{font-size:14px}.b-app-footer{padding:0 20px 24px;font-size:13px;gap:16px}
  .b-toast{left:50%;bottom:85px;max-width:calc(100vw - 32px)}
  #storage-alert{margin:16px 20px 0}.b-alert{align-items:flex-start;flex-wrap:wrap}.b-alert .b-btn{margin-left:0}
  .b-overview-grid,.b-bottom-grid{gap:24px}.b-summary{margin-bottom:24px;padding-bottom:24px}.b-stat strong{font-size:28px}
  .b-panel-head{padding-top:20px}.b-project-row{grid-template-columns:30px minmax(130px,1fr) 78px 28px}.b-project-row>.b-row-amount{display:none}
  .b-invoice-row{grid-template-columns:20px minmax(90px,1fr) 90px auto}.b-invoice-row>.b-badge{display:none}
  .b-toolbar{align-items:stretch;flex-wrap:wrap;gap:12px}.b-toolbar .b-search{flex:1;min-width:180px;max-width:none}.b-toolbar select{font-size:16px;max-width:100%}
  .b-stage-tabs{gap:12px}.b-stage-tabs button{padding-inline:0}.b-client-grid{gap:20px}
  .b-finance-overview{grid-template-columns:1fr;gap:24px}.b-finance-hero>strong{font-size:36px}.b-chart{height:210px}
  .b-dialog{width:calc(100% - 24px);max-height:calc(100dvh - 24px)}.b-dialog.wide{width:calc(100% - 24px)}
  .b-dialog-header,.b-dialog-head{padding:20px}.b-dialog-header h2,.b-dialog-head h2{font-size:22px}.b-form{padding:20px}
  .b-field input,.b-field select,.b-field textarea{font-size:16px;min-height:44px}.b-form-grid{gap:16px}
  .b-invoice-detail,.b-client-detail,.b-data-content,.b-data-dialog{padding:20px}.b-payment-summary{margin:20px 20px 0}
  .b-payment-list li,.b-data-item{align-items:flex-start;flex-wrap:wrap;gap:12px}.b-payment-list .b-dialog-inline-actions{width:100%}
  .b-data-reset{flex-wrap:wrap}.b-search-result{padding-inline:20px}.b-command-search{margin:16px 20px}.b-search-hint{padding-inline:20px}
  .t-heading{gap:20px;flex-wrap:wrap;margin-bottom:20px}.t-heading-actions{width:100%;max-width:none;justify-content:space-between;gap:8px}.t-view-switch button{padding-inline:10px;min-height:40px}
  .t-heading-actions>.b-btn{font-size:13px;min-height:40px}.t-heading-actions>.b-btn svg{display:none}
  .t-scopes{gap:20px;margin-bottom:12px}.t-scopes button{font-size:14px;min-height:40px}.t-scopes button span{font-size:13px}
  .t-filterbar{gap:10px;margin-bottom:14px}.t-search{width:auto;flex:1;min-height:42px}.t-search input{font-size:16px}.t-filter-toggle{min-height:42px;font-size:14px}
  .t-filters select{font-size:16px;min-height:44px}.t-quick-add{display:none}.t-result-meta{margin-bottom:12px;font-size:13px}
  .t-row{min-height:80px}.t-list-head{padding-block:12px}.t-row-title{font-size:15px}
  .t-board{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.t-card-top>.t-task-code{display:block}.t-card-top .t-priority{margin-left:auto}.t-card-title{font-size:16px}
  .t-calendar-toolbar{gap:12px}.t-calendar-navigation{gap:2px;flex-wrap:wrap}.t-calendar-navigation h2{font-size:17px}.t-calendar-navigation>.b-btn{margin-left:4px}.t-calendar-hint{font-size:13px}
  .t-calendar{grid-template-columns:repeat(7,minmax(160px,1fr))}.t-day{min-height:300px;padding-inline:10px}
  .t-unscheduled-items{grid-template-columns:repeat(2,minmax(0,1fr))}.t-unscheduled-head{align-items:flex-start}.t-unscheduled-head p{max-width:135px;text-align:right}
  #timer-widget:has(.t-running-widget){padding:0 20px;background:var(--accent-soft)}
  .t-running-widget{margin:0;padding:10px 0;grid-template-columns:6px minmax(0,1fr) auto 32px;gap:8px;border:0}
  .t-live-dot{grid-row:1}.t-running-widget .t-timer-label{grid-column:2;grid-row:1}.t-running-widget .t-timer-time{grid-column:3;grid-row:1;font-size:20px;margin:0}.t-running-widget>.b-icon-btn{grid-column:4;grid-row:1}
  #dialog.t-drawer{width:100%;border-left:0;border-radius:0}.t-drawer .b-dialog-header{padding:20px}.t-editor{padding:20px;gap:24px}.t-editor-title>input{font-size:22px}
  .t-properties .b-field input,.t-properties .b-field select{font-size:16px}.t-checklist-row input[type=text]{font-size:16px}.t-checklist-row{min-height:48px}
  .t-checklist-heading{align-items:flex-start}.t-checklist-heading>span{max-width:140px;text-align:right}.t-time-summary{flex-wrap:wrap}.t-time-summary>p{max-width:none;flex-basis:100%;margin:0}
  .t-editor-actions{flex-wrap:wrap}.t-editor-actions .b-btn{min-height:42px}
}
@media(max-width:560px) {
  .b-main-actions .b-search-trigger{display:none}.b-topbar .b-breadcrumb>a{display:none}.b-topbar .b-breadcrumb>span{display:none}
  .b-client-grid,.b-board{grid-template-columns:1fr}.b-client-card{padding:20px}.b-client-name{font-size:24px}.b-column{min-height:0}
  .b-summary{gap:10px}.b-stat{flex-basis:calc(50% - 10px)}.b-stat strong{font-size:25px}
  .b-project-row{grid-template-columns:30px minmax(100px,1fr) 28px}.b-project-row>.b-badge{grid-column:2;grid-row:2}.b-project-row>.b-icon-btn{grid-column:3;grid-row:1}.b-project-row .b-project-name small{font-size:13px}
  .b-invoice-row{grid-template-columns:20px minmax(0,1fr) auto}.b-invoice-row>.b-money{grid-column:2;grid-row:2;text-align:left}.b-invoice-row>.b-btn{grid-column:3;grid-row:1/3}
  .b-form-grid{grid-template-columns:1fr}.b-form-grid .full,.b-form-grid .b-full{grid-column:auto}.b-dialog-actions .b-btn{min-height:42px}
  .b-ledger td,.b-ledger th{padding:14px 12px}.b-data-counts{grid-template-columns:repeat(2,1fr)}
  .b-invoice-detail dl{gap:20px 12px}.b-invoice-detail dd{font-size:19px}.b-payment-summary{gap:12px}.b-payment-summary>span>b{font-size:22px}
  .b-app-footer{align-items:flex-start;flex-direction:column;gap:4px}
  .t-heading-actions{display:grid;grid-template-columns:1fr auto}.t-view-switch{min-width:0}.t-view-switch button{flex:1;gap:0;padding-inline:4px;font-size:12px}.t-view-switch svg{display:none}
  .t-heading-actions>.b-btn{padding-inline:9px;font-size:13px}.t-stats{font-size:13px;gap:10px}.t-stats button{font-size:13px}
  .t-list-head{display:none}.t-row{grid-template-columns:20px minmax(0,1fr) auto;gap:8px 12px;padding:16px;min-height:110px}
  .t-row>.t-check{grid-column:1;grid-row:1;align-self:start;margin-top:1px}.t-row>.t-row-main{grid-column:2/-1;grid-row:1}
  .t-row>.t-project{grid-column:2;grid-row:2;max-width:100%;margin:2px 0 0;overflow:hidden}.t-row>.t-due{grid-column:2;grid-row:3;font-size:13px}
  .t-row>.t-timer-button,.t-row>.t-time-spent{grid-column:3;grid-row:3;justify-self:end;font-size:13px;min-height:32px;padding:4px 0}
  .t-row-meta{gap:10px;margin-top:5px;font-size:13px}.t-row-meta .t-status-label,.t-row-meta .t-checklist-count{font-size:13px}.t-row-title{font-size:15px;line-height:1.4}
  .t-board{grid-template-columns:1fr;gap:24px}.t-card{padding:16px}.t-card-title{font-size:16px}.t-card-top .t-priority{font-size:13px}
  .t-card-meta .t-estimate{margin-left:auto}.t-column-header{padding-block:12px}.t-column-header h2{font-size:16px}.t-column-add{min-height:44px;font-size:14px}
  .t-unscheduled-items{grid-template-columns:1fr}.t-calendar-navigation h2{font-size:16px}.t-calendar-navigation .b-icon-btn{width:30px;min-width:30px}
  .t-properties{gap:16px 12px}.t-properties .b-field{font-size:13px}.t-properties .b-field input,.t-properties .b-field select{padding-inline:8px}
}
@media(max-width:360px) {.t-heading-actions{grid-template-columns:1fr}.t-heading-actions>.b-btn{justify-self:start}.t-row-meta{flex-wrap:wrap;gap:5px 10px}.b-data-reset>.b-btn{white-space:normal}}
@media(prefers-reduced-motion:reduce) {*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media print {.b-sidebar,.b-topbar,.b-app-footer,.b-toast{display:none}.b-main{margin:0;padding:0}.b-content{padding:0}.b-btn,.b-icon-btn{display:none}.b-panel,.b-project-card,.t-card{break-inside:avoid}}
