@charset "UTF-8";

:root {
  color-scheme: light;
  --canvas: #f5f6f3;
  --surface: #ffffff;
  --surface-soft: #fafbf8;
  --ink: #203632;
  --muted: #64736d;
  --line: #e0e6df;
  --line-strong: #c4cfc5;
  --forest: #193d3a;
  --forest-deep: #12302e;
  --accent: #bce296;
  --green: #285f42;
  --green-soft: #ebf4e6;
  --amber: #8b580b;
  --amber-soft: #fff3d9;
  --red: #a0352f;
  --red-soft: #fff0ed;
  --radius: 12px;
  --sidebar-width: 238px;
  --shadow: 0 3px 18px rgb(25 61 58 / 4%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 14px; line-height: 1.5; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--forest-deep); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
:focus-visible { outline: 3px solid #b17326; outline-offset: 3px; }
main:focus { outline: none; }
::selection { background: #d3e8bd; color: var(--forest-deep); }
svg { flex-shrink: 0; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(27px, 2.5vw, 34px); line-height: 1.2; font-weight: 650; letter-spacing: -1.1px; }
h2 { margin-bottom: 16px; font-size: 19px; line-height: 1.3; font-weight: 620; letter-spacing: -.4px; }
h3 { margin-bottom: 10px; font-size: 15px; line-height: 1.4; font-weight: 650; }
p { margin-bottom: 14px; }
p:last-child { margin-bottom: 0; }
small, .small { font-size: 12px; }
strong { font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.muted, .text-muted, .helptext { color: var(--muted); }
.positive, .text-success { color: var(--green); }
.negative, .text-danger { color: var(--red); }
.nowrap { white-space: nowrap; }
.text-right, .numeric { text-align: right; font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 12px; z-index: 100; padding: 12px 18px; background: white; color: var(--forest); border-radius: 6px; }
.skip-link:focus { top: 12px; }

/* Navigation */
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; flex-direction: column; width: var(--sidebar-width); padding: 34px 18px 18px; color: #eff5ef; background: var(--forest); overflow-y: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-size: 28px; font-weight: 660; letter-spacing: -1.4px; line-height: 1; }
.brand:hover { color: inherit; }
.brand-dot { color: var(--accent); }
.sidebar-brand { margin-left: 12px; margin-bottom: 38px; }
.brand-symbol { display: inline-flex; gap: 3px; align-items: flex-end; height: 25px; }
.brand-symbol span { display: block; width: 5px; height: 25px; border-radius: 2px; background: currentColor; }
.brand-symbol span:nth-child(2) { height: 18px; background: var(--accent); }
.brand-symbol span:nth-child(3) { height: 23px; }
.workspace-context { margin: 0 8px 27px; padding: 0 4px; }
.context-label { display: block; margin-bottom: 6px; color: #a9c4b8; font-size: 10px; font-weight: 600; letter-spacing: 1.15px; text-transform: uppercase; }
.context-name { font-size: 14px; font-weight: 620; line-height: 1.5; overflow-wrap: anywhere; }
.primary-nav { flex: 1; }
.nav-group + .nav-group { margin-top: 28px; }
.nav-group-label { display: block; padding: 0 12px; margin-bottom: 8px; color: #a9c4b8; font-size: 10px; text-transform: uppercase; letter-spacing: 1.1px; font-weight: 600; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 43px; padding: 10px 12px; margin-bottom: 4px; border-radius: 7px; color: #d6e4dd; text-decoration: none; font-size: 13px; line-height: 1.35; font-weight: 480; }
.nav-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.nav-link:hover { color: white; background: #2c514a; }
.nav-link.active { color: #193b30; background: var(--accent); font-weight: 650; }
.nav-link.active svg { opacity: 1; }
.sidebar :focus-visible { outline-color: var(--accent); }
.sidebar-account { display: flex; align-items: center; gap: 11px; margin: 30px 8px 0; padding: 20px 3px 0; border-top: 1px solid #3b5b52; }
.user-avatar { display: inline-grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: #375d50; color: #dbead3; font-size: 13px; font-weight: 600; }
.account-text { min-width: 0; }
.account-name { display: block; overflow-wrap: anywhere; font-size: 12px; font-weight: 600; }
.account-text form { margin: 1px 0 0; }
.logout-button { min-height: 28px; padding: 1px 0; border: 0; background: transparent; color: #b9cfc3; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.logout-button:hover { color: white; }
.mobile-header { display: none; }

/* Page layout */
.main-shell { margin-left: var(--sidebar-width); padding: 39px 42px 64px; }
.main-shell main { max-width: 1480px; margin: 0 auto; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.page-heading-group { min-width: 0; }
.page-eyebrow { margin-bottom: 10px; color: var(--muted); font-size: 11px; font-weight: 580; }
.page-intro { max-width: 760px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.page-intro:empty, .page-actions:empty { display: none; }
.page-actions { display: flex; flex-shrink: 0; flex-wrap: wrap; align-items: center; gap: 10px; }
.page-content { display: grid; gap: 24px; min-width: 0; }
.content-grid, .detail-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(270px, 1fr); gap: 24px; align-items: start; }
.two-column, .grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.stack { display: grid; gap: 20px; }
.section-heading, .card-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.section-heading h2, .card-header h2, .card-header h3 { margin: 0; }
.section-heading a, .card-header a { font-size: 12px; font-weight: 600; }
.card { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.card > :last-child { margin-bottom: 0; }
.card-flush { padding: 0; overflow: hidden; }
.card-flush > .card-header { padding: 22px 24px; margin-bottom: 0; }
.card-soft { background: var(--surface-soft); }
.card-accent { background: #edf4e6; border-color: #dae6d0; }
.card-footer { padding-top: 17px; margin-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.metric-card, .metric { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.metric-label { color: var(--muted); font-size: 12px; line-height: 1.4; }
.metric-value { margin-top: 12px; font-size: clamp(26px, 2.4vw, 34px); font-weight: 630; letter-spacing: -1.1px; line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric-description, .metric-note { margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.metric-card a { margin-top: 9px; font-size: 12px; }
.metric-card.highlight { border-color: #d4e5c5; background: #eaf3e2; }
.amount { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Links and actions */
.button, .btn, button[type="submit"], input[type="submit"] { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 15px; border: 1px solid var(--line-strong); border-radius: 7px; background: white; color: var(--forest); font-size: 12px; line-height: 1.5; font-weight: 620; text-decoration: none; white-space: normal; text-align: center; }
.button:hover, .btn:hover, button[type="submit"]:hover, input[type="submit"]:hover { color: var(--forest-deep); border-color: #8da191; background: #f3f7ef; }
.button-primary, .btn-primary, .button.primary, .btn.primary, button[type="submit"].button-primary, button[type="submit"].btn-primary, button[type="submit"].primary, input[type="submit"].primary { border-color: var(--forest); background: var(--forest); color: white; }
.button-primary:hover, .btn-primary:hover, .button.primary:hover, .btn.primary:hover, button[type="submit"].button-primary:hover, button[type="submit"].btn-primary:hover, button[type="submit"].primary:hover { border-color: var(--forest-deep); background: var(--forest-deep); color: white; }
.button-secondary, .btn-secondary { background: white; }
.button-small, .btn-sm, button[type="submit"].button-small, button[type="submit"].btn-sm { min-height: 32px; padding: 5px 11px; font-size: 11px; }
.button-danger, button[type="submit"].button-danger { color: var(--red); border-color: #e5b8b0; }
.button-danger:hover, button[type="submit"].button-danger:hover { background: var(--red-soft); color: var(--red); border-color: var(--red); }
.button-text { border-color: transparent; background: transparent; padding-left: 0; padding-right: 0; }
.button-row, .form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.form-actions { padding-top: 6px; margin-top: 20px; }
.text-link { color: var(--green); font-size: 12px; font-weight: 620; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.account-text .logout-button { justify-content: flex-start; min-height: 28px; padding: 1px 0; border: 0; border-radius: 0; background: none; color: #b9cfc3; font-size: 11px; font-weight: 400; text-decoration: underline; }
.account-text .logout-button:hover { color: white; background: none; }

/* Tables and list controls */
.toolbar, .filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 19px; }
.toolbar > form, form.toolbar, form.filter-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.toolbar .search-field, .filter-bar .search-field { flex: 1 1 240px; max-width: 440px; }
.toolbar .field, .filter-bar .field { margin-bottom: 0; }
.toolbar input[type="search"], .filter-bar input[type="search"] { min-width: 200px; }
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table, .table { width: 100%; border-collapse: collapse; border-spacing: 0; font-size: 12px; text-align: left; }
caption { margin-bottom: 12px; color: var(--muted); font-size: 12px; text-align: left; }
th { padding: 12px 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-soft); color: var(--muted); font-size: 10px; font-weight: 620; letter-spacing: .3px; white-space: nowrap; }
td { padding: 15px 14px; border-bottom: 1px solid #e9ede6; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcf7; }
td a:not(.button):not(.btn) { color: var(--ink); font-weight: 600; text-decoration: none; }
td a:not(.button):not(.btn):hover { color: var(--green); text-decoration: underline; }
td .subtext, .cell-note { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 400; }
td .button-row { flex-wrap: nowrap; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
.card-flush th:first-child, .card-flush td:first-child { padding-left: 24px; }
.card-flush th:last-child, .card-flush td:last-child { padding-right: 24px; }
.table-footer, .pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.pagination a { font-weight: 600; }
.count-label { color: var(--muted); font-size: 12px; }
.badge { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 4px 8px; border-radius: 5px; background: #edf0ec; color: #58685e; font-size: 10px; line-height: 1.4; font-weight: 600; white-space: nowrap; }
.badge-success, .badge.success { background: var(--green-soft); color: var(--green); }
.badge-warning, .badge.warning { background: var(--amber-soft); color: var(--amber); }
.badge-danger, .badge-error, .badge.danger, .badge.error { background: var(--red-soft); color: var(--red); }
.badge-neutral, .badge.neutral { background: #edf0ec; color: #58685e; }
.badge-info { background: #e9f0f5; color: #3b6178; }
.badge-dot::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.tabs { display: flex; gap: 23px; overflow-x: auto; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.tab, .tabs a { position: relative; flex: 0 0 auto; display: block; padding: 0 1px 12px; color: var(--muted); font-size: 12px; font-weight: 550; text-decoration: none; }
.tab.active, .tabs a.active, .tabs a[aria-current="page"] { color: var(--forest); font-weight: 650; box-shadow: inset 0 -2px var(--forest); }
.tab:hover, .tabs a:hover { color: var(--forest); }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.field { min-width: 0; margin-bottom: 18px; }
.form-grid .field { margin-bottom: 0; }
.field.full-width, .full-width { grid-column: 1 / -1; }
label, .field-label { display: block; margin-bottom: 7px; color: var(--ink); font-size: 12px; font-weight: 600; }
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), select, textarea { display: block; width: 100%; min-height: 41px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 6px; background: white; color: var(--ink); font-size: 13px; line-height: 1.5; box-shadow: 0 1px 2px rgb(25 61 58 / 2%); }
input::placeholder, textarea::placeholder { color: #879088; opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: #99ad9d; }
input:focus, select:focus, textarea:focus { border-color: var(--green); }
input[readonly] { color: var(--muted); background: var(--surface-soft); }
input:disabled, select:disabled, textarea:disabled { color: var(--muted); background: #f0f2ec; }
select { padding-right: 28px; }
textarea { min-height: 112px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 17px; height: 17px; accent-color: var(--forest); vertical-align: middle; }
.checkbox-field, .checkbox-label { display: flex; align-items: flex-start; gap: 9px; }
.checkbox-field input, .checkbox-label input { flex-shrink: 0; margin-top: 2px; }
.helptext, .field-help { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.errorlist { margin: 6px 0 10px; padding: 0; color: var(--red); list-style: none; font-size: 12px; }
.field:has(.errorlist) input, .field:has(.errorlist) select, .field:has(.errorlist) textarea { border-color: #bd5146; }
fieldset { min-width: 0; margin: 0 0 24px; padding: 0; border: 0; }
legend { margin-bottom: 15px; padding: 0; font-size: 15px; font-weight: 650; }
.inline-form { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; }
.inline-form .field { margin: 0; flex: 1 1 150px; }
.inline-form .button { flex-shrink: 0; }
form > p { margin-bottom: 18px; }

/* Feedback, detail records and activity */
.messages { display: grid; gap: 10px; margin-bottom: 24px; }
.message, .notice { padding: 14px 17px; border: 1px solid #d7e2cc; border-radius: 8px; background: var(--green-soft); color: var(--green); font-size: 13px; }
.message-error, .notice-error { border-color: #ebc5bb; background: var(--red-soft); color: var(--red); }
.message-warning, .notice-warning { border-color: #eddcab; background: var(--amber-soft); color: var(--amber); }
.message-info, .notice-info { border-color: var(--line); background: #f0f4ee; color: var(--ink); }
.empty-state, .empty { padding: 36px 20px; color: var(--muted); text-align: center; }
.empty-state h2, .empty-state h3 { color: var(--ink); }
.empty-state p { max-width: 420px; margin-left: auto; margin-right: auto; font-size: 13px; }
.empty-state .button { margin-top: 8px; }
.empty-icon { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 16px; border-radius: 50%; background: #edf2e8; color: var(--green); }
dl { margin: 0; }
.definition-list > div, .detail-list > div { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.definition-list > div:first-child, .detail-list > div:first-child { padding-top: 0; }
.definition-list > div:last-child, .detail-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
dt { color: var(--muted); font-size: 12px; }
dd { margin: 0; font-size: 12px; overflow-wrap: anywhere; }
.definition-list dd, .detail-list dd { text-align: right; }
.list, .activity-list, .task-list { margin: 0; padding: 0; list-style: none; }
.list-item, .activity-item, .task-item { display: flex; align-items: flex-start; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.list-item:first-child, .activity-item:first-child, .task-item:first-child { padding-top: 0; }
.list-item:last-child, .activity-item:last-child, .task-item:last-child { padding-bottom: 0; border-bottom: 0; }
.item-content { flex: 1; min-width: 0; }
.item-title { display: block; color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; }
.item-meta { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.item-date { flex-shrink: 0; color: var(--muted); font-size: 11px; white-space: nowrap; }
.activity-dot { flex-shrink: 0; width: 7px; height: 7px; margin: 6px 3px 0; border-radius: 50%; background: #80a577; }
.date-tile { display: flex; flex: 0 0 43px; flex-direction: column; align-items: center; padding: 7px; border: 1px solid #e1e8d9; border-radius: 7px; background: #f3f7ed; line-height: 1.2; }
.date-tile strong { font-size: 18px; }
.date-tile span { margin-top: 3px; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.progress-track { height: 6px; overflow: hidden; border-radius: 6px; background: #edf0e9; }
.progress-fill { height: 100%; border-radius: inherit; background: #8db472; }
progress { width: 100%; height: 7px; accent-color: #719b56; }
.summary-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 0; }
.summary-row + .summary-row { border-top: 1px solid var(--line); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; color: var(--muted); font-size: 12px; }

/* Signed-out pages */
.auth-body { min-height: 100vh; background: radial-gradient(ellipse at 15% 0%, #e4eddb, transparent 52%), var(--canvas); }
.auth-shell { width: min(100% - 40px, 440px); margin: 0 auto; padding: 68px 0 56px; }
.auth-brand { margin-bottom: 52px; color: var(--forest); }
.auth-brand .brand-dot, .auth-brand .brand-symbol span:nth-child(2) { color: #699644; background-color: #699644; }
.auth-brand .brand-dot { background: transparent; }
.auth-shell .page-header { display: block; margin-bottom: 24px; }
.auth-shell h1 { font-size: 30px; }
.auth-shell .card { padding: 30px; }
.auth-shell .form-grid { grid-template-columns: 1fr; }
.auth-shell .button-primary, .auth-shell button[type="submit"] { width: 100%; }

@media (min-width: 1700px) {
  .main-shell { padding-left: 60px; padding-right: 60px; }
}
@media (max-width: 1200px) {
  :root { --sidebar-width: 218px; }
  .main-shell { padding: 31px 28px 50px; }
  .metric-grid { gap: 12px; }
  .metric-card, .metric { padding: 18px; }
  .detail-grid, .content-grid { grid-template-columns: minmax(0, 1.45fr) minmax(240px, 1fr); gap: 18px; }
  .card { padding: 21px; }
}
@media (max-width: 1050px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid, .content-grid { grid-template-columns: 1fr; }
  .page-header { align-items: flex-start; }
  .page-actions { max-width: 230px; justify-content: flex-end; }
}
@media (max-width: 900px) {
  .mobile-header { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; min-height: 62px; padding: 12px 22px; background: var(--forest); color: white; }
  .brand-mobile { font-size: 24px; }
  .brand-mobile .brand-symbol { height: 22px; }
  .brand-mobile .brand-symbol span { height: 22px; width: 4px; }
  .brand-mobile .brand-symbol span:nth-child(2) { height: 16px; }
  .brand-mobile .brand-symbol span:nth-child(3) { height: 20px; }
  .mobile-menu-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 7px 9px; border: 1px solid #567168; border-radius: 6px; background: transparent; color: white; font-size: 12px; }
  .mobile-menu-toggle:hover, .mobile-menu-toggle[aria-expanded="true"] { background: #2d514b; }
  .sidebar { display: none; position: fixed; top: 62px; right: 0; bottom: auto; width: 100%; max-height: calc(100dvh - 62px); padding: 19px 22px 23px; box-shadow: 0 18px 24px rgb(15 42 34 / 18%); }
  .sidebar.is-open { display: flex; }
  .sidebar-brand { display: none; }
  .workspace-context { margin-bottom: 17px; }
  .primary-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .nav-group + .nav-group { margin-top: 0; }
  .nav-link { min-height: 43px; }
  .sidebar-account { margin-top: 15px; padding-top: 15px; }
  .main-shell { margin-left: 0; padding: 28px 24px 44px; }
  .page-header { margin-bottom: 25px; }
  .page-eyebrow { margin-bottom: 7px; font-size: 10px; }
}
@media (max-width: 600px) {
  body { font-size: 13px; }
  .mobile-header { padding-left: 18px; padding-right: 15px; }
  .main-shell { padding: 25px 16px 40px; }
  h1 { font-size: 28px; letter-spacing: -.8px; }
  h2 { font-size: 17px; }
  .page-header { flex-direction: column; gap: 17px; }
  .page-intro { font-size: 12px; }
  .page-actions { max-width: none; justify-content: flex-start; gap: 8px; }
  .page-content { gap: 19px; }
  .metric-grid { gap: 10px; }
  .metric-card, .metric { padding: 16px 14px; }
  .metric-label { font-size: 11px; }
  .metric-value { font-size: 27px; margin-top: 10px; }
  .metric-note, .metric-description { font-size: 10px; }
  .card { padding: 19px 16px; border-radius: 10px; }
  .card-flush { padding: 0; }
  .card-flush > .card-header { padding: 19px 16px; }
  .card-header, .section-heading { gap: 10px; margin-bottom: 16px; }
  .content-grid, .detail-grid, .two-column, .grid-2, .form-grid { grid-template-columns: 1fr; gap: 18px; }
  .button, .btn, button[type="submit"], input[type="submit"] { min-height: 42px; padding: 10px 13px; }
  .button-small, .btn-sm, button[type="submit"].button-small, button[type="submit"].btn-sm { min-height: 36px; padding: 7px 10px; }
  .toolbar, .filter-bar, .toolbar > form, form.toolbar, form.filter-bar { align-items: stretch; gap: 10px; }
  .toolbar .search-field, .filter-bar .search-field { flex-basis: 100%; max-width: none; }
  .toolbar input[type="search"], .filter-bar input[type="search"] { min-width: 0; }
  .toolbar select, .filter-bar select { min-width: 0; }
  .table-wrap { margin: 0; }
  th { padding: 10px; }
  td { padding: 13px 10px; }
  table { font-size: 11px; }
  .card-flush th:first-child, .card-flush td:first-child { padding-left: 16px; }
  .card-flush th:last-child, .card-flush td:last-child { padding-right: 16px; }
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), select, textarea { min-height: 44px; font-size: 16px; }
  .sidebar { padding: 17px 15px 22px; }
  .primary-nav { gap: 9px; }
  .nav-link { gap: 9px; padding: 10px; font-size: 12px; }
  .nav-link svg { width: 17px; height: 17px; }
  .nav-group-label { padding-left: 10px; }
  .tabs { gap: 20px; }
  .auth-shell { width: min(100% - 32px, 440px); padding-top: 40px; }
  .auth-brand { margin-bottom: 40px; }
  .auth-shell .card { padding: 24px 20px; }
  .empty-state, .empty { padding: 26px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print {
  .sidebar, .mobile-header, .page-actions, .skip-link, .button, .btn, .logout-button { display: none !important; }
  body { color: black; background: white; }
  .main-shell { margin: 0; padding: 0; }
  .card, .metric-card, .metric { box-shadow: none; break-inside: avoid; }
  .table-wrap { overflow: visible; }
  a { color: inherit; }
}

.context-home { display:block; margin-top:12px; font-size:12px; color:#c4dbd1; text-decoration:none; }
.context-home:hover { color:white; text-decoration:underline; }
