:root {
  --ink: #17212b;
  --navy: #16324f;
  --navy-2: #244f6c;
  --accent: #0f766e;
  --accent-hover: #0b5d56;
  --muted: #667085;
  --muted-strong: #52606d;
  --canvas: #f3f5f7;
  --surface: #ffffff;
  --line: #e4e8ec;
  --line-strong: #c9d3d9;
  --soft: #eef5f4;
  --surface-subtle: #f7f9fa;
  --warning: #b45309;
  --danger: #b42318;
  --success: #147d59;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --shadow-card: 0 5px 18px rgba(16, 24, 40, .045);
  --shadow-raised: 0 12px 35px rgba(16, 24, 40, .06);
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --fs-xs: .75rem;
  --fs-sm: .8125rem;
  --fs-md: .875rem;
  --fs-body: 1rem;
  --fs-lead: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.75rem;
  --fs-display: clamp(2.5rem, 5vw, 4rem);
  --weight-medium: 600;
  --weight-bold: 700;
  --weight-heavy: 800;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--fs-body);
  line-height: 1.5;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid rgba(15, 118, 110, .42);
  outline-offset: 3px;
}

.app-navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(16, 24, 40, .02);
}

.app-nav-inner { min-height: 68px; }
.app-brand { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--navy); font-size: var(--fs-md); letter-spacing: -.02em; }
.app-brand:hover { color: var(--navy-2); }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-sm); background: var(--navy); color: #fff; }
.brand-mark svg { width: 18px; height: 18px; stroke-width: 2.4; }
.app-nav-toggle { min-width: 44px; min-height: 44px; border: 1px solid var(--line); color: var(--navy); padding: var(--space-2); }
.app-nav-toggle svg { width: 19px; height: 19px; }
.app-nav-links { gap: var(--space-1); }
.app-nav-links .nav-link { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; border-radius: var(--radius-sm); color: var(--muted); font-size: var(--fs-sm); font-weight: var(--weight-bold); padding: var(--space-2) var(--space-3); }
.app-nav-links .nav-link svg { width: 16px; height: 16px; stroke-width: 2; }
.app-nav-links .nav-link:hover { background: #f4f6f8; color: var(--navy); }
.app-nav-links .nav-link.active { background: var(--soft); color: var(--accent); }
.app-nav-actions { margin-left: var(--space-4); }
.app-nav-actions svg, .btn svg, .dropdown-item svg { width: 16px; height: 16px; stroke-width: 2; vertical-align: -3px; }
.app-nav-actions .btn, .app-nav-actions form { margin: 0; }
.home-switcher { max-width: 185px; }
.home-switcher-name { max-width: 118px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notification-button { width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0; }
.notification-dot { position: absolute; top: -4px; right: -5px; display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 var(--space-1); border: 2px solid #fff; border-radius: var(--radius-pill); background: var(--danger); color: #fff; font-size: var(--fs-xs); font-weight: var(--weight-heavy); line-height: 1; }
.user-chip { display: inline-flex; align-items: center; gap: var(--space-2); max-width: 155px; color: var(--muted); font-size: var(--fs-xs); font-weight: var(--weight-medium); }
.user-chip > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #dcebea; color: var(--accent); font-size: var(--fs-xs); font-weight: var(--weight-heavy); }
.sign-out { padding-inline: var(--space-2); }
.dropdown-menu { border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-raised); }
.dropdown-label { min-height: 44px; padding: var(--space-2) var(--space-3); color: var(--muted-strong); font-size: var(--fs-xs); font-weight: var(--weight-heavy); letter-spacing: .1em; text-transform: uppercase; }
.dropdown-item { min-height: 44px; border-radius: 7px; color: var(--ink); font-size: var(--fs-sm); }
.dropdown-item:hover, .dropdown-item.active { background: var(--soft); color: var(--accent); }
.home-menu { min-width: 15rem; }

.app-main { padding-top: var(--space-6); padding-bottom: var(--space-7); }
.app-alert { display: flex; align-items: center; gap: var(--space-3); border: 1px solid transparent; border-radius: var(--radius-sm); box-shadow: none; }
.app-alert svg { width: 18px; height: 18px; flex: 0 0 auto; }
.alert-success { background: #edf8f2; border-color: #c8ead8; color: #126044; }
.alert-danger, .alert-warning { background: #fff5f3; border-color: #f4d1cb; color: #9f2d23; }
.alert-info { background: #eef6fb; border-color: #cce3f1; color: #1f5775; }

.btn { min-height: 44px; border-radius: var(--radius-sm); font-weight: var(--weight-bold); }
.btn-primary { --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent); --bs-btn-hover-bg: var(--accent-hover); --bs-btn-hover-border-color: var(--accent-hover); --bs-btn-active-bg: var(--accent-hover); --bs-btn-active-border-color: var(--accent-hover); }
.btn-outline-primary { --bs-btn-color: var(--accent); --bs-btn-border-color: #82b9b3; --bs-btn-hover-bg: var(--accent); --bs-btn-hover-border-color: var(--accent); --bs-btn-active-bg: var(--accent); --bs-btn-active-border-color: var(--accent); }
.btn-outline-secondary { --bs-btn-color: #52606d; --bs-btn-border-color: #b8c1ca; --bs-btn-hover-bg: #52606d; --bs-btn-hover-border-color: #52606d; }
.btn-success { --bs-btn-bg: var(--success); --bs-btn-border-color: var(--success); --bs-btn-hover-bg: #0f6045; --bs-btn-hover-border-color: #0f6045; }
.btn-quiet { --bs-btn-color: #52606d; --bs-btn-border-color: var(--line); --bs-btn-hover-color: var(--navy); --bs-btn-hover-bg: #f4f6f8; --bs-btn-hover-border-color: #d5dce2; background: #fff; }
.btn-link { color: var(--accent); font-weight: 700; text-decoration: none; }
.btn-link:hover { color: var(--accent-hover); }

.app-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); }
.app-card.card { border-color: var(--line); }
.card-header { border-bottom: 1px solid var(--line); color: var(--navy); }
.card-header a { display: inline-flex; align-items: center; gap: var(--space-1); font-size: var(--fs-xs); font-weight: var(--weight-bold); text-decoration: none; }
.card-header a svg { width: 15px; height: 15px; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-5); }
.page-heading h1 { margin: var(--space-1) 0 0; color: var(--navy); font-weight: var(--weight-heavy); letter-spacing: -.035em; }
.page-heading-copy { display: flex; align-items: flex-start; gap: var(--space-3); }
.page-heading-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-top: 0; border: 1px solid #cfe1df; border-radius: var(--radius-md); background: var(--soft); color: var(--accent); }
.page-heading-icon svg { width: 20px; height: 20px; }
.page-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.eyebrow { color: var(--accent); font-size: var(--fs-xs); font-weight: var(--weight-heavy); letter-spacing: .13em; text-transform: uppercase; }
.text-secondary { color: var(--muted) !important; }

.hero-card { overflow: hidden; margin-top: var(--space-2); padding: clamp(var(--space-5), 4vw, var(--space-7)); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-raised); }
.hero-card h1 { max-width: 700px; margin-top: var(--space-3); color: var(--navy); font-size: var(--fs-display); font-weight: var(--weight-heavy); letter-spacing: -.055em; line-height: 1.05; }
.hero-card .lead { max-width: 650px; font-size: var(--fs-lead); }
.hero-panel { padding: var(--space-5); border-radius: var(--radius-md); background: var(--navy); color: #fff; box-shadow: 0 12px 24px rgba(22, 50, 79, .16); }
.hero-panel-header { display: flex; align-items: center; gap: var(--space-3); padding-bottom: var(--space-4); border-bottom: 1px solid rgba(255,255,255,.15); }
.hero-panel-header svg { width: 21px; height: 21px; color: #8bd2c8; }
.hero-panel-kicker { color: #a9c3d4; font-size: var(--fs-xs); font-weight: var(--weight-heavy); letter-spacing: .11em; text-transform: uppercase; }
.hero-panel-title { margin-top: var(--space-1); font-size: var(--fs-lg); font-weight: var(--weight-bold); }
.hero-panel-row { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4) 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.hero-panel-row:last-child { border-bottom: 0; padding-bottom: var(--space-1); }
.hero-panel-row svg { width: 18px; height: 18px; color: #8bd2c8; }
.hero-panel-row strong { display: block; font-size: var(--fs-sm); }
.hero-panel-row small { color: #b2c3d0; font-size: var(--fs-xs); }
.hero-note { margin: var(--space-5) 0 0; color: var(--muted); font-size: var(--fs-sm); }
.feature-stack { display: grid; gap: var(--space-3); }
.feature-item { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fafbfc; }
.feature-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; border-radius: var(--radius-sm); background: var(--soft); color: var(--accent); }
.feature-icon svg { width: 17px; height: 17px; }
.feature-item strong { display: block; color: var(--navy); font-size: var(--fs-md); }
.feature-item small { display: block; margin-top: var(--space-1); color: var(--muted); font-size: var(--fs-sm); }

.metric-card { position: relative; height: 100%; min-height: 116px; padding: var(--space-4); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-card); }
.metric-card.danger { border-left-color: var(--danger); }
.metric-card.success { border-left-color: var(--success); }
.metric-card.warning { border-left-color: var(--warning); }
.metric-label { display: block; color: var(--muted); font-size: var(--fs-xs); font-weight: var(--weight-heavy); letter-spacing: .06em; text-transform: uppercase; }
.metric-icon { position: absolute; top: var(--space-4); right: var(--space-4); color: #a8b5bf; }
.metric-icon svg { width: 19px; height: 19px; }
.metric-value, .metric-card strong { display: block; margin-top: var(--space-3); color: var(--navy); font-size: var(--fs-xl); font-weight: var(--weight-heavy); letter-spacing: -.04em; line-height: 1; }
.metric-card.danger .metric-value, .metric-card.danger strong { color: var(--danger); }
.metric-card.success .metric-value, .metric-card.success strong { color: var(--success); }
.empty-state { max-width: 650px; margin: var(--space-6) auto; padding: var(--space-7) var(--space-5); text-align: center; }
.empty-state-icon { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto; border-radius: var(--radius-md); background: var(--soft); color: var(--accent); }
.empty-state-icon svg { width: 25px; height: 25px; }

.list-group-item { border-color: var(--line); padding: var(--space-4) var(--space-5); }
.list-group-item strong { color: var(--navy); }
.list-group-item:hover { background: #fafcfc; }
.quick-action { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); width: 100%; text-align: left; }
.quick-action-label { display: inline-flex; align-items: center; gap: var(--space-2); }
.quick-action-label svg { width: 17px; height: 17px; }

.auth-shell, .form-shell { max-width: 680px; margin: var(--space-6) auto; }
.auth-shell { max-width: 460px; }
.form-shell-wide { max-width: 980px; margin: var(--space-4) auto; }
.auth-intro { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-5); }
.auth-intro .page-heading-icon { width: 36px; height: 36px; }
.form-label { color: #344054; font-size: var(--fs-sm); font-weight: var(--weight-bold); }
.form-control, .form-select { min-height: 44px; border-color: #d8e0e5; border-radius: var(--radius-sm); color: var(--ink); }
.form-control:focus, .form-select:focus { border-color: #6db2aa; box-shadow: 0 0 0 .2rem rgba(15, 118, 110, .13); }
.input-group-text { border-color: #d8e0e5; background: #f8fafb; color: var(--muted); }
.form-text { color: var(--muted-strong); font-size: var(--fs-sm); }

.table { --bs-table-bg: transparent; --bs-table-border-color: var(--line); }
.table thead th { padding: var(--space-3) var(--space-4); color: var(--muted-strong); font-size: var(--fs-xs); font-weight: var(--weight-heavy); letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.table tbody td { padding: var(--space-4); }
.table tbody strong { color: var(--navy); }
.table-responsive { border-radius: var(--radius-lg); }
.status-pill, .category-chip { display: inline-flex; align-items: center; width: max-content; padding: var(--space-1) var(--space-2); border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: var(--weight-heavy); line-height: 1.2; }
.status-pending { background: #edf1ff; color: #3b4aa0; }
.status-in-progress { background: #fff5d9; color: #8a5a00; }
.status-completed { background: #e7f6ee; color: #16704f; }
.status-skipped { background: #eef1f3; color: #53606d; }
.status-overdue { background: #fff0ee; color: var(--danger); }
.category-chip { background: var(--soft); color: var(--accent); }
.priority-low { background: #edf4fb; color: #28618a; }
.priority-medium { background: #fff5d9; color: #8a5a00; }
.priority-high { background: #fff0ee; color: var(--danger); }
.detail-list dt { color: var(--muted); font-weight: 700; }
.detail-list dd { color: #344054; }
.detail-list dt, .detail-list dd { padding-top: var(--space-2); padding-bottom: var(--space-2); border-bottom: 1px solid #f0f2f4; }
.notification-unread { border-left: 4px solid var(--accent); background: #fbfefe; }

.calendar-card { padding: 0; }
.calendar-card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--line); }
.calendar-card-head strong { display: block; color: var(--navy); font-size: var(--fs-md); }
.calendar-card-head > div:first-child span { display: block; margin-top: var(--space-1); color: var(--muted); font-size: var(--fs-sm); }
.calendar-legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--space-3); color: var(--muted-strong); font-size: var(--fs-sm); font-weight: var(--weight-bold); }
.calendar-legend > span { display: inline-flex; align-items: center; gap: var(--space-1); }
.calendar-legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.calendar-legend-dot.low { background: #2878a8; }
.calendar-legend-dot.medium { background: var(--accent); }
.calendar-legend-dot.high { background: var(--danger); }
.calendar-frame { padding: var(--space-4) var(--space-5) var(--space-5); }
#calendar { min-height: 0; }
.fc { --fc-border-color: #dfe5e8; --fc-today-bg-color: #eff9f7; --fc-page-bg-color: #fff; color: var(--ink); font-size: var(--fs-sm); }
.fc .fc-toolbar { align-items: center; margin-bottom: var(--space-4); gap: var(--space-3); }
.fc .fc-toolbar-title { color: var(--navy); font-size: var(--fs-lg); font-weight: var(--weight-heavy); letter-spacing: -.025em; }
.fc .fc-toolbar-chunk { display: flex; align-items: center; gap: var(--space-1); }
.fc .fc-button { min-width: 44px; min-height: 44px; border-radius: var(--radius-sm); font-size: var(--fs-sm); font-weight: var(--weight-bold); box-shadow: none; }
.fc .fc-button-primary { background: var(--surface); border-color: var(--line-strong); color: var(--muted-strong); }
.fc .fc-button-primary:hover, .fc .fc-button-primary:focus { background: #f4f7f8; border-color: #9fb0ba; color: var(--navy); }
.fc .fc-button-primary:disabled { background: #f3f5f6; border-color: #dce3e7; color: #a0abb3; }
.fc .fc-button-primary:not(:disabled).fc-button-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.fc .fc-scrollgrid { overflow: hidden; border-radius: 8px; }
.fc .fc-col-header-cell { background: var(--surface-subtle); }
.fc .fc-col-header-cell-cushion { display: block; padding: var(--space-3) var(--space-2); color: var(--muted-strong); font-size: var(--fs-xs); font-weight: var(--weight-heavy); letter-spacing: .05em; text-decoration: none; text-transform: uppercase; }
.fc .fc-daygrid-day { transition: background-color .15s ease; }
.fc .fc-daygrid-day:hover { background: #fbfdfd; }
.fc .fc-daygrid-day-frame { min-height: 92px; }
.fc .fc-daygrid-day-top { padding: var(--space-2) var(--space-2) 0; }
.fc .fc-daygrid-day-number { display: inline-grid; place-items: center; min-width: 32px; min-height: 32px; padding: var(--space-1) var(--space-2); border-radius: 6px; color: #344054; font-size: var(--fs-sm); font-weight: var(--weight-bold); text-decoration: none; }
.fc .fc-day-other .fc-daygrid-day-number { color: #a7b1b9; font-weight: 600; }
.fc .fc-day-today .fc-daygrid-day-number { background: var(--accent); color: #fff; }
.fc .fc-daygrid-day-events { margin: var(--space-1) var(--space-2) 0; }
.fc .fc-daygrid-event { margin-top: var(--space-1); border: 0; border-radius: 5px; padding: var(--space-1) var(--space-2); font-size: var(--fs-xs); font-weight: var(--weight-bold); line-height: 1.25; }
.fc .fc-daygrid-event-dot { display: none; }
.fc .fc-event-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc .fc-more-link { color: var(--accent); font-size: var(--fs-xs); font-weight: var(--weight-heavy); text-decoration: none; }
.fc .fc-list-day-cushion { background: var(--surface-subtle); }
.fc .fc-list-event:hover td { background: #fbfdfd; }

.calendar-status, .calendar-state { display: flex; align-items: center; justify-content: center; gap: var(--space-3); min-height: 44px; margin-bottom: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); background: var(--surface-subtle); color: var(--muted-strong); font-size: var(--fs-sm); }
.calendar-state-error { justify-content: space-between; background: #fff5f3; color: var(--danger); }
.calendar-state[hidden], .calendar-status[hidden] { display: none; }

.task-list-mobile { display: none; }
.task-mobile-card { display: grid; gap: var(--space-4); padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); }
.task-mobile-heading, .task-mobile-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); }
.task-mobile-heading h2 { margin: var(--space-2) 0 0; color: var(--navy); }
.task-priority { flex: 0 0 auto; padding: var(--space-1) var(--space-2); border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: var(--weight-heavy); }
.task-mobile-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin: 0; }
.task-mobile-meta div { min-width: 0; }
.task-mobile-meta dt { color: var(--muted-strong); font-size: var(--fs-xs); font-weight: var(--weight-heavy); letter-spacing: .04em; text-transform: uppercase; }
.task-mobile-meta dd { margin: var(--space-1) 0 0; color: var(--ink); font-size: var(--fs-sm); }
.task-mobile-footer { align-items: center; padding-top: var(--space-3); border-top: 1px solid var(--line); }

.member-list { display: grid; gap: var(--space-3); }
.member-summary-card { padding: var(--space-4); }
.member-summary { display: flex; align-items: center; gap: var(--space-3); }
.member-summary-copy { min-width: 0; flex: 1 1 auto; }
.member-summary-copy p, .member-summary-copy > span { display: block; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.member-accordion .member-summary-copy strong { display: block; }
.member-role-badge { display: inline-flex; align-items: center; gap: var(--space-1); flex: 0 0 auto; padding: var(--space-1) var(--space-2); border: 1px solid #b9dcd7; border-radius: var(--radius-pill); background: var(--soft); color: var(--accent); font-size: var(--fs-sm); font-weight: var(--weight-bold); }
.member-accordion { display: grid; gap: var(--space-3); }
.member-accordion .accordion-item { overflow: hidden; border: 1px solid var(--line); }
.member-accordion .accordion-button { min-height: 72px; gap: var(--space-3); color: var(--ink); font-size: var(--fs-body); font-weight: var(--weight-bold); }
.member-accordion .accordion-button:not(.collapsed) { background: var(--soft); color: var(--navy); box-shadow: none; }
.member-accordion .accordion-button:focus { box-shadow: none; }
.member-accordion .accordion-button::after { flex: 0 0 auto; }
.member-accordion .accordion-body { padding: var(--space-5); border-top: 1px solid var(--line); }
.member-panel-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-4); }
.override-count { flex: 0 0 auto; color: var(--muted-strong); font-size: var(--fs-sm); }
.member-role-field { max-width: 320px; margin-bottom: var(--space-5); }
.permission-groups { display: grid; gap: var(--space-4); }
.permission-group { margin: 0; padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); }
.permission-group legend { float: none; width: auto; margin: 0 0 var(--space-3); padding: 0; color: var(--navy); font-size: var(--fs-sm); font-weight: var(--weight-heavy); }
.member-panel-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--line); }

.section-kicker { display: block; margin-bottom: var(--space-1); color: var(--accent); font-size: var(--fs-xs); font-weight: var(--weight-heavy); letter-spacing: .08em; text-transform: uppercase; }
.report-panel { padding: var(--space-5); }
.report-panel-heading, .section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); }
.report-panel-heading > svg { width: 22px; height: 22px; color: var(--accent); }
.report-cost-list { display: grid; gap: var(--space-4); margin-top: var(--space-5); }
.report-cost-row { display: grid; gap: var(--space-2); color: var(--muted-strong); font-size: var(--fs-sm); }
.report-cost-row strong { color: var(--navy); }
.report-bar { height: 8px; overflow: hidden; border-radius: var(--radius-pill); background: #e8eef0; }
.report-bar span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.report-total { display: flex; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--line); color: var(--muted-strong); font-size: var(--fs-sm); }
.report-total strong { color: var(--navy); font-size: var(--fs-md); }
.report-history { display: grid; gap: 0; margin-top: var(--space-4); }
.report-history-row { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.report-history-row:last-child { border-bottom: 0; }
.report-history-row strong { color: var(--navy); }
.report-summary { margin-top: var(--space-6); }
.report-summary > .section-heading { margin-bottom: var(--space-3); }

@media (max-width: 991.98px) {
  .app-nav-links { margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--line); }
  .app-nav-actions { margin: var(--space-2) 0 var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--line); }
}

@media (max-width: 767px) {
  .app-main { padding-top: var(--space-5); }
  .page-heading { align-items: stretch; flex-direction: column; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1 1 auto; }
  .hero-card { padding: var(--space-4); }
  .hero-card h1 { font-size: var(--fs-display); }
  .calendar-card-head { align-items: flex-start; flex-direction: column; }
  .calendar-legend { justify-content: flex-start; }
  .calendar-frame { padding: var(--space-3); }
  .fc .fc-toolbar { align-items: stretch; flex-direction: column; gap: var(--space-3); }
  .fc .fc-toolbar-chunk { display: flex; flex-wrap: wrap; justify-content: center; }
  .fc .fc-toolbar-title { font-size: var(--fs-md); }
  .fc .fc-daygrid-day-frame { min-height: 76px; }
  .fc .fc-col-header-cell-cushion { font-size: var(--fs-xs); }
  .task-list-desktop { display: none; }
  .task-list-mobile { display: grid; gap: var(--space-3); }
  .table { min-width: 0; }
  .table-responsive { overflow-x: visible; }
  .member-summary { align-items: flex-start; flex-wrap: wrap; }
  .member-role-badge { margin-left: auto; }
  .member-accordion .accordion-button { padding: var(--space-3); }
  .member-accordion .accordion-body { padding: var(--space-4); }
  .member-panel-intro { flex-direction: column; }
  .report-panel { padding: var(--space-4); }
  .report-history-row { flex-direction: column; gap: var(--space-1); }
}
