/* Lancing workspace layout, using stock Basecoat component styles and tokens. */
body { font-size: .9375rem; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.025em; text-wrap: balance; }
h1, .page-title, .dashboard-page h1 { font-size: clamp(1.75rem, 4vw, 2.15rem); line-height: 1.2; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { line-height: 1.6; }
main > p { margin-block: .75rem; }
main a:not(.btn):not([role]):hover { text-decoration: underline; text-underline-offset: .2em; }
:where(a, button, summary):focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
summary { cursor: pointer; }
.app-shell { border: 0; box-shadow: none; max-width: 1240px; margin: 0 auto; padding: 0 2rem 3rem; width: 100%; }
.split-nav { border-bottom: 1px solid var(--border); padding-block: 1rem; margin-bottom: 2rem; gap: 1.5rem; }
.nav-brand h3 { font-size: 1.1rem; font-weight: 650; }
.split-nav ul.inline { gap: 1.25rem; }
.split-nav .collapsible a { color: var(--muted-foreground); font-size: .875rem; }
.split-nav .collapsible a[aria-current] { color: var(--foreground); font-weight: 650; text-decoration: underline; text-underline-offset: .6rem; }
.nav-account summary img { border: 1px solid var(--border); box-shadow: none; width: 34px; height: 34px; transition: none; }
.nav-account summary:hover img, .nav-account summary:focus-visible img, .nav-account[open] summary img { transform: none; box-shadow: none; }
.nav-account-menu { border: 1px solid var(--border); box-shadow: 0 5px 18px rgb(0 0 0 / .1); }
.workspace-eyebrow { color: var(--muted-foreground); font-size: .8rem; margin-bottom: .3rem; }
.dashboard-topbar, .billing-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin: 0 0 1.75rem; }
.dashboard-topbar .muted, .billing-page-heading .muted { margin-top: .4rem; }
.capture-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.dashboard-running-item { border: 1px solid var(--border); border-left: 3px solid var(--papercoat-green-pencil); border-radius: var(--radius); background: var(--muted); padding: 1rem; }
.dashboard-running-item span { font-size: .7rem; font-weight: 600; }
.dashboard-running-item strong { font-weight: 600; }
.dashboard-running-controls > strong { font-size: 1.3rem; }
.today-work { margin-bottom: 2.25rem; }
.today-work .section-heading-row { margin-bottom: 1rem; }
.today-work .section-heading-row > a { font-size: .8rem; color: var(--muted-foreground); }
.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: .8rem; }
.week-strip a { display: grid; gap: .4rem; text-align: center; padding: .7rem .2rem; border-right: 1px solid var(--border); }
.week-strip a:last-child { border-right: 0; }
.week-strip a[aria-current], .week-strip a:hover { background: var(--muted); }
.week-strip a[aria-current] { box-shadow: inset 0 -2px var(--foreground); }
.week-strip span { font-size: .75rem; color: var(--muted-foreground); }
.week-strip strong { font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.today-empty { text-align: center; padding: 2rem 1rem; background: var(--muted); border-radius: var(--radius); }
.today-empty p { color: var(--muted-foreground); margin-bottom: .75rem; }
.dashboard-recent-list { border-bottom: 1px solid var(--border); }
.dashboard-recent-head { border-bottom: 1px solid var(--border); font-size: .7rem; font-weight: 500; }
.dashboard-recent-row { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.dashboard-recent-client { font-size: .8rem; font-weight: 500; color: var(--muted-foreground); }
.dashboard-recent-description { font-weight: 500; margin-top: .15rem; }
.dashboard-recent-duration { font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.dashboard-section-title { border-bottom: 1px solid var(--border); padding-bottom: .75rem; }
.dashboard-section-title h2 { font-size: 1.1rem; }
.dashboard-workspace { grid-template-columns: minmax(0, 1.65fr) minmax(15rem, .75fr); gap: 2.5rem; }
.dashboard-attention-row { border-bottom: 1px solid var(--border); }
.dashboard-attention-copy strong, .dashboard-row-action, .dashboard-attention-value { font-weight: 500; }
.dashboard-attention-copy small { font-size: .75rem; }
.dashboard-attention-kind { font-weight: 500; font-size: .68rem; }
.dashboard-attention-kind.is-overdue { color: var(--muted-foreground); }
.dashboard-attention-group h3, .dashboard-metric span { font-weight: 500; font-size: .7rem; }
.dashboard-attention-group summary { color: var(--muted-foreground); font-size: .8rem; }
.dashboard-overview { padding-left: 1.5rem; }
.dashboard-metric strong { font-weight: 600; font-size: 1.7rem; margin-block: .5rem; }
.dashboard-metric small { font-size: .75rem; }
.dashboard-metric-secondary strong { font-size: 1.25rem; }
.dashboard-empty { border: 0; color: var(--muted-foreground); }
.invoice-review-page { max-width: none; }
.billing-page-heading .page-title { margin: 0; }
.billing-overview { display: grid; grid-template-columns: minmax(11rem, .65fr) minmax(0, 2.6fr); gap: 1.25rem; margin: 0 0 2.5rem; }
.billing-summary { display: grid; gap: .75rem; }
.billing-summary > div, .billing-summary > a { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; display: flex; flex-direction: column; justify-content: center; }
.billing-summary span { font-size: .8rem; }
.billing-summary strong { font-size: 1.65rem; font-weight: 550; letter-spacing: -.03em; margin-block: .35rem; font-variant-numeric: tabular-nums; }
.billing-summary small { color: var(--muted-foreground); font-size: .72rem; }
.billing-chart-panel { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; min-width: 0; }
.billing-chart-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.billing-chart-heading h2 { font-size: 1.25rem; }
.billing-chart-heading .select { font-size: .75rem; }
.billing-legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .72rem; margin: 1.25rem 0 1rem; color: var(--muted-foreground); }
.billing-legend span { display: inline-flex; gap: .4rem; align-items: center; }
.billing-legend i { width: .7rem; height: .7rem; border-radius: 2px; }
.billing-overview .worked { background: #507ca8; }
.billing-overview .approved { background: #39845b; }
.dark .billing-overview .worked { background: #8db5df; }
.dark .billing-overview .approved { background: #7cc399; }
.billing-chart { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); height: 200px; margin-bottom: 2rem; font-variant-numeric: tabular-nums; }
.billing-chart-axis { display: flex; flex-direction: column; justify-content: space-between; color: var(--muted-foreground); font-size: .7rem; padding-right: .6rem; text-align: right; }
.billing-chart-axis span { line-height: 1; }
.billing-chart-months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: .6rem; border-bottom: 1px solid var(--border); border-top: 1px solid var(--border); background: linear-gradient(to bottom, transparent calc(50% - .5px), var(--border) 50%, transparent calc(50% + .5px)); }
.billing-chart-month { position: relative; min-width: 0; }
.billing-chart-bars { display: flex; align-items: end; justify-content: center; gap: 3px; height: 100%; }
.billing-chart-bars i { display: block; width: 35%; border-radius: 2px 2px 0 0; }
.billing-chart-month > span { position: absolute; top: calc(100% + .5rem); width: 100%; text-align: center; color: var(--muted-foreground); font-size: .7rem; }
.billing-chart-month.is-future { opacity: .45; }
.billing-chart-data { font-size: .75rem; color: var(--muted-foreground); }
.billing-chart-data summary { min-height: 1.75rem; }
.billing-chart-data p { margin-block: .75rem; }
.billing-chart-data td { font-variant-numeric: tabular-nums; }
.invoice-review-topbar { margin-bottom: 1rem; }
.invoice-stage-links { width: 100%; gap: 1.5rem; }
.invoice-stage-links a { font-size: .875rem; padding-block: .8rem; }
.invoice-stage-links a.active { font-weight: 600; }
.invoice-review-group { padding: .25rem 0 .75rem; }
.invoice-review-group.selected { border-left: 0; padding-left: 0; background: color-mix(in srgb, var(--muted) 35%, transparent); }
.invoice-selection-help { color: var(--muted-foreground); font-size: .8rem; margin-bottom: .75rem; }
.invoice-review-meta { margin-inline: 0; }
.invoice-review-meta input[type="checkbox"], .invoice-review-heading input[type="checkbox"], .invoice-item-select { width: 1rem; height: 1rem; flex: 0 0 1rem; margin: 0; accent-color: var(--primary); }
.invoice-review-heading { align-items: center; }
.invoice-review-line.is-selectable { grid-template-columns: 1rem minmax(10rem, 1.2fr) minmax(13rem, 1fr) 5.5rem; align-items: start; padding-block: .5rem; }
.invoice-review-line.is-selectable > input { margin-top: .2rem; }
.invoice-review-line.is-selectable .invoice-review-description::before { content: none; }
.invoice-review-line.is-selectable .invoice-review-description { padding-left: 0; }
.invoice-review-description { white-space: normal; overflow-wrap: anywhere; }
.invoice-review-description label { cursor: pointer; display: block; margin: 0; }
.invoice-item-context { display: block; color: var(--muted-foreground); font-size: .72rem; margin-top: .2rem; }
.invoice-review-line.is-excluded .invoice-review-description, .invoice-review-line.is-excluded .invoice-review-calculation, .invoice-review-line.is-excluded > strong { color: var(--muted-foreground); }
.invoice-review-line.is-excluded > strong { text-decoration: line-through; }
.invoice-history-lines { font-size: .8rem; color: var(--muted-foreground); }
.invoice-history-lines summary { padding-block: .35rem; }
.invoice-history-lines[open] { color: var(--foreground); }
.invoice-review-heading a, .invoice-review-heading strong { font-weight: 600; }
.invoice-review-batch { border: 1px solid var(--border); border-radius: var(--radius); background: var(--muted); }
.invoice-document, .hnry-submit-progress { border: 1px solid var(--border); border-radius: var(--radius); box-shadow: none; }
.legacy-dialog > .modal-body, .legacy-dialog > .time-modal-card { border: 1px solid var(--border); box-shadow: 0 16px 48px rgb(0 0 0 / .2); }
.legacy-dialog h3 { font-size: 1.2rem; margin-bottom: 1rem; }
/* Retained pages use these semantic layout classes, not custom input/button visuals. */
label.field { font-weight: 500; font-size: .875rem; }
.breadcrumbs { font-size: .8rem; color: var(--muted-foreground); margin-bottom: 1rem; }
.note-body p { margin-block: .5rem; }
.note-body ul { list-style: disc; padding-left: 1.25rem; }
@media (max-width: 1000px) {
  .split-nav { gap: .8rem; }
  .split-nav ul.inline { gap: .75rem; }
  .dashboard-topbar { align-items: start; flex-direction: column; }
  .billing-chart-heading { align-items: start; flex-direction: column; gap: .75rem; }
}
@media (max-width: 720px) {
  .app-shell { padding: 0 1rem 2rem; }
  .split-nav { margin-bottom: 1.5rem; }
  .dashboard-workspace { grid-template-columns: 1fr; gap: 1.5rem; }
  .dashboard-overview { border: 0; padding: 0; }
  .billing-overview { grid-template-columns: 1fr; }
  .billing-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
  .billing-summary > div, .billing-summary > a { padding: .75rem; }
  .billing-summary strong { font-size: 1.2rem; }
  .billing-chart-months { gap: .25rem; }
  .billing-chart-panel { padding: 1rem .75rem; }
  .billing-chart { grid-template-columns: 3.25rem minmax(0, 1fr); height: 155px; }
  .billing-chart-month > span { font-size: .6rem; }
  .billing-page-heading { align-items: start; }
  .billing-page-heading > a { font-size: .75rem; }
  .invoice-stage-links { gap: 1rem; }
  .invoice-review-line.is-selectable { grid-template-columns: 1rem minmax(0, 1fr) auto; }
  .invoice-review-line.is-selectable > input { grid-column: 1; grid-row: 1 / span 2; }
  .invoice-review-line.is-selectable .invoice-review-description { grid-column: 2; grid-row: 1; }
  .invoice-review-line.is-selectable .invoice-review-calculation { grid-column: 2; grid-row: 2; }
  .invoice-review-line.is-selectable > strong { grid-column: 3; grid-row: 1; }
  .week-strip strong { font-size: .75rem; }
  .week-strip span { font-size: .65rem; }
  .dashboard-recent-list { border-top-width: 1px; }
}
@media (max-width: 400px) {
  .billing-summary { grid-template-columns: 1fr 1fr; }
  .billing-summary > a { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: .2rem .75rem; align-items: center; }
  .billing-summary > a strong { margin: 0; }
  .billing-summary > a small { grid-column: 1 / -1; }
  .billing-page-heading { gap: .75rem; }
  .billing-page-heading > a { white-space: normal; text-align: center; }
}
