/* Shared shell and dashboard rhythm. Keep module-specific form and ledger scales. */
.shell {
  --ink: #263f35;
  --muted: #63736b;
  --green: #32644f;
  --line: #dfe6df;
  --light: #edf3ed;
}
body .shell { background: #f5f7f4; }
body .shell .sidebar { padding-top: 24px; }
body .shell .sidebar > .brand,
body .shell .sidebar > .nav-search,
body .shell .sidebar > nav,
body .shell .sidebar > .sidebar-bottom { flex-shrink: 0; }
body .shell .brand { padding: 0 4px; min-height: 46px; }
body .shell .nav-search { margin: 20px 0 12px; }
body .shell .nav-search input { min-height: 42px; }
body .shell .nav-caption { margin: 20px 12px 7px; font-size: 11px; font-weight: 600; letter-spacing: 1px; }
body .shell .sidebar nav a { padding: 9px 12px; min-height: 40px; font-size: 14px; }
body .shell .sidebar nav a.active { background: #e9f1e9; }
body .shell .sidebar-bottom { position: sticky; bottom: 0; }
body .shell .user { margin-top: 0; padding-top: 14px; padding-bottom: 14px; }
body .shell .topbar { height: 68px; }
body .shell .top-context > span { font-size: 12px; }
body .shell .topbar-right time { font-variant-numeric: tabular-nums; font-size: 13px; }
body .shell .content { padding-top: 28px; }
body .shell .page-heading { align-items: center; gap: 16px 24px; margin-bottom: 24px; }
body .shell .page-heading h1 { margin-bottom: 6px; }
body .shell .page-heading .eyebrow { margin-bottom: 6px; }
body .shell .page-heading > .heading-actions { margin-bottom: 0; }
body .shell .heading-actions, body .shell .toolbar-actions { max-width: 100%; }
body .shell .toolbar h2 { margin: 0; }
body .shell .module-tabs { gap: 4px; margin-bottom: 24px; padding: 4px 4px 10px; }
body .shell .module-tabs a { min-height: 40px; display: flex; align-items: center; }
body .shell .button { transition: background-color .15s ease, border-color .15s ease; }
body .shell .button.primary:hover { background: #254f3d; border-color: #254f3d; }
body .shell .table-wrap { border-radius: 8px; }
body .shell .data-table tbody tr:hover, body .shell .inventory-table tbody tr:hover { background: #f5f8f3; }
body .shell .pagination { flex-wrap: wrap; }
body .shell .ledger-column-picker:not([open]) .ledger-column-panel { display: none; }
body .shell .ledger-table-wrap { contain: layout paint; }
body .shell .dashboard-heading { margin-bottom: 24px; }
.dashboard-heading .dashboard-intro { max-width: 640px; }
.dashboard-jump { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; min-height: 40px; }
.dashboard-month { margin: 28px 0 18px; scroll-margin-top: 90px; }
.dashboard-month .eyebrow { margin-bottom: 4px; }
.dashboard-month h2 { margin: 0; }
.dashboard-month p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.dashboard-month-form { display: flex; align-items: end; gap: 8px; flex-wrap: wrap; }
.dashboard-month-form label { font-size: 12px; color: var(--muted); }
body .shell .dashboard-month-form input { display: block; min-height: 40px; padding: 6px 10px; margin-top: 4px; font-size: 14px; width: 166px; }
body .shell .today-card { border-top: 0; border-left: 4px solid var(--green); padding: 22px; }
body .shell .today-card .eyebrow { font-size: 11px; letter-spacing: .6px; }
body .shell .today-card .card-title { margin-bottom: 16px; }
body .shell .today-card .daily-metrics { margin: 0 0 20px; }
body .shell .today-card .daily-metrics > a { padding: 16px; border: 1px solid #dce7dc; background: #f1f6ee; }
body .shell .today-card .daily-metrics > a:hover { border-color: #94b49b; background: #e7f0e4; }
body .shell .today-card .daily-metrics > a:last-child { background: #fff; }
body .shell .today-card .daily-columns { border-top: 1px solid var(--line); padding-top: 16px; gap: 24px; }
body .shell .today-card .daily-columns h3 { margin: 0 0 10px; font-size: 15px; }
body .shell .today-card .daily-columns p { font-size: 14px; margin-bottom: 0; line-height: 1.8; }
body .shell .stat-grid { margin-bottom: 22px; }
body .shell .stat-grid .stat { padding: 16px; }
body .shell .stat-grid .stat-number { margin: 10px 0; font-size: 27px; }
body .shell .stat-grid .stat-label > span { font-size: 17px; }
body .shell .stat-grid .progress { height: 5px; margin: 12px 0 8px; }
body .shell .stat-grid .stat.peach { background: #fbf1e5; border-color: #ebdfcd; }
@media (max-width: 950px) {
  body .shell .topbar { height: 64px; }
  body .shell .sidebar-bottom { padding-top: 12px; }
}
@media (max-width: 680px) {
  body .shell .content { padding: 20px 16px; }
  body .shell .page-heading { align-items: flex-start; margin-bottom: 20px; }
  body .shell .page-heading form { flex-wrap: wrap; flex-shrink: 1; max-width: 100%; }
  body .shell .page-heading .heading-actions { width: 100%; }
  body .shell .heading-actions .button, body .shell .toolbar-actions .button { min-height: 44px; }
  body .shell .today-card { padding: 16px; }
  body .shell .today-card .card-title { align-items: flex-start; gap: 12px; }
  body .shell .today-card .daily-metrics { gap: 10px; }
  body .shell .today-card .daily-metrics > a { padding: 14px; }
  body .shell .dashboard-month { align-items: flex-start; gap: 16px; margin-top: 24px; }
  .dashboard-month-form { width: 100%; }
  .dashboard-month-form label { flex: 1; min-width: 0; }
  body .shell .dashboard-month-form input { width: 100%; }
  body .shell .dashboard-month-form .button { min-height: 40px; }
  body .shell .stat-grid .stat { padding: 12px; }
  body .shell .stat-grid .stat-number { font-size: 23px; }
  body .shell .milestone-grid { gap: 8px; }
  body .shell .milestone { font-size: 12px; }
  body .shell .milestone > small { font-size: 11px; }
  body .shell .ledger-column-panel { width: min(340px, calc(100vw - 64px)); min-width: 0; }
  body .shell .ledger-column-panel fieldset { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  body .shell .button { transition: none; }
}
@media print {
  body .shell { background: white; }
  .dashboard-jump, .dashboard-month-form { display: none; }
}
