:root {
  color-scheme: light;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: var(--surface-subtle);
  --ink: #192f37;
  --muted: #49616b;
  --line: #d8e4e8;
  --control-line: #bacdd5;
  --surface-subtle: #f1f6f8;
  --accent: #045b71;
  --accent-dark: #034558;
  --accent-light: #e5f3f6;
  --brand-green: #8dc63f;
  --progress-green: #527b24;
  --sidebar: 230px;
  --nav-dark: #113e4d;
  --nav-line: #42646f;
  --nav-muted: #bfd5dc;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 6; top: 12px; left: 16px; background: white; padding: 12px; border: 1px solid var(--line); }
svg.icon { width: 19px; height: 19px; display: block; flex: none; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.sign-in { display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; padding: 24px 15px; }
.hsse-logo { display: block; object-fit: contain; flex: none; border-radius: 4px; }
.sign-in-card { width: min(100%, 465px); background: white; border: 1px solid var(--line); border-top: 5px solid var(--accent); border-radius: 8px; }
.sign-in-brand { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 25px 0; }
.sign-in-body { padding: 17px 25px 25px; }
.sign-in-body h1 { font-size: 28px; }
.sign-in-description { margin: 0 0 20px; color: var(--muted); }
.unit-options { display: grid; gap: 9px; }
.unit-option { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 11px; align-items: center; min-height: 63px; padding: 10px 13px; text-align: left; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 7px; }
.unit-option:hover { background: var(--surface-subtle); border-color: var(--control-line); }
.unit-option:disabled { opacity: .65; cursor: wait; }
.unit-initial { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 5px; background: var(--accent-light); color: var(--accent); font-weight: 680; }
.unit-option strong, .unit-option small { display: block; }
.unit-option small, .unit-next { color: var(--muted); }
.sign-in-note { margin: 17px 0 0; font-size: 13px; color: var(--muted); }
.shell { min-height: 100vh; }
.sidebar { width: var(--sidebar); position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; padding: 20px 14px 18px; background: var(--nav-dark); color: #edf6f8; z-index: 4; overflow-y: auto; }
.sidebar a:focus-visible { outline-color: var(--brand-green); }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 4px 17px; border-bottom: 1px solid var(--nav-line); }
.brand strong { font-size: 19px; letter-spacing: -.025em; }
.sidebar nav { margin: 16px 0 22px; }
.nav-group { display: grid; gap: 2px; }
.guide-nav-group { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--nav-line); }
.nav-label { margin: 24px 0 8px; padding: 16px 11px 0; border-top: 1px solid var(--nav-line); color: var(--nav-muted); font-size: 13px; font-weight: 650; }
.nav-link { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 8px 10px; border-left: 2px solid transparent; border-radius: 3px; font-size: 14px; }
.nav-link svg { width: 17px; height: 17px; color: var(--nav-muted); }
.target-table tbody tr:hover, .activity-row:hover { background: var(--surface-subtle); }
.nav-link:hover { background: #1c5060; }
.nav-link[aria-current] { color: white; background: #24596b; border-left-color: var(--brand-green); font-weight: 650; }
.nav-link[aria-current] svg { color: inherit; }
.category-code { min-width: 26px; color: var(--muted); font-size: 12px; font-weight: 550; font-variant-numeric: tabular-nums; }
.sidebar .category-code { color: var(--nav-muted); }
.sidebar-footer { margin-top: auto; padding: 13px 10px 0; border-top: 1px solid var(--nav-line); }
.sidebar-footer strong, .sidebar-footer small { display: block; font-size: 13px; }
.sidebar-footer small { margin-top: 4px; color: var(--nav-muted); }
.workspace { margin-left: var(--sidebar); }
.topbar { background: white; border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1380px; min-height: 68px; margin-inline: auto; padding: 9px 32px; display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; }
.topbar-mobile { display: none; }
.breadcrumb { min-width: 0; font-size: 14px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: ''; flex: none; width: 5px; height: 5px; margin-inline: 2px; border-top: 1px solid #6c8792; border-right: 1px solid #6c8792; transform: rotate(45deg); }
.breadcrumb a, .breadcrumb-current { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 4px 7px; border-radius: 5px; font-weight: 600; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); background: var(--surface-subtle); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb .icon { width: 16px; height: 16px; }
.breadcrumb-current { color: var(--accent-dark); background: var(--accent-light); font-weight: 700; }
.profile { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.profile > :not(.profile-account) { flex: none; }
.profile > .button, .profile .logout-button { min-height: 44px; padding-inline: 10px; border-color: transparent; border-radius: 6px; }
.profile .logout-button { color: var(--muted); }
.profile > .button:hover, .profile .logout-button:hover { background: var(--surface-subtle); }
.content { max-width: 1380px; margin-inline: auto; padding: 28px 32px 38px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(1.85rem, 3vw, 2.35rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.12; margin-bottom: 6px; }
.page-heading p { margin: 0; color: var(--muted); font-size: 15px; }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: none; }
.button, .period-control { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; padding: 8px 12px; border: 1px solid var(--control-line); border-radius: 5px; background: white; color: var(--ink); font-size: 14px; font-weight: 650; white-space: nowrap; }
.button .icon, .period-control .icon { width: 17px; height: 17px; }
.button:hover, .period-control:hover { border-color: #8aaab6; background: var(--surface-subtle); }
.button.primary { background: var(--accent); border-color: var(--accent); color: white; }
.button.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button.danger { background: #9b3026; border-color: #9b3026; color: white; }
.button.danger:hover { background: #79251d; border-color: #79251d; }
.button.text { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; background: transparent; border: 0; padding-inline: 4px; }
.button.text:hover { background: var(--accent-light); }
.button:disabled { cursor: wait; opacity: .6; }
.period-control { position: relative; padding: 0; }
.period-control > span[data-icon] { position: absolute; pointer-events: none; left: 10px; color: var(--muted); }
.period-control > span[data-icon]:last-child { right: 8px; left: auto; }
.period-control select { appearance: none; background: transparent; border: 0; color: inherit; font-weight: 650; padding: 9px 29px 9px 34px; min-height: 41px; border-radius: 5px; }
.number { font-variant-numeric: tabular-nums; }
.monthly-summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 174px; padding: 19px clamp(20px, 6vw, 85px) 19px 26px; border-left: 4px solid var(--brand-green); border-radius: 8px; background: var(--accent); color: white; }
.summary-count h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); font-weight: 680; letter-spacing: -.025em; margin: 0 0 6px; }
.monthly-summary p { margin: 0; }
.summary-count p { font-size: 15px; color: #e1f0f4; }
.summary-count .summary-period { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; font-size: 13px; font-weight: 650; }
.summary-period .icon { width: 16px; height: 16px; }
.summary-count strong { color: white; font-weight: 700; }
.summary-count .summary-remaining { margin-top: 10px; color: #d1e8ec; font-size: 14px; }
.summary-chart { display: grid; place-items: center; position: relative; width: 134px; aspect-ratio: 1; flex: none; text-align: center; }
.summary-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke-width: 7; }
.chart-track { stroke: #367c8d; }
.chart-value { stroke: var(--brand-green); stroke-linecap: round; }
.summary-chart strong, .summary-chart span { display: block; }
.summary-chart strong { font-size: 34px; font-weight: 700; line-height: 1.05; letter-spacing: -.04em; }
.summary-chart span { margin-top: 4px; color: #e1f0f4; font-size: 12px; }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin: 14px 0 18px; }
.metric { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.metric-icon { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 6px; color: var(--accent); background: var(--accent-light); }
.metric dt { color: var(--muted); font-size: 13px; }
.metric dd { margin: 2px 0 0; font-size: 24px; font-weight: 680; line-height: 1.12; }
.progress-track { display: block; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.progress-track > span { display: block; height: 100%; width: var(--progress); background: var(--progress-green); border-radius: inherit; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.27fr) minmax(0, 1fr); gap: 15px; align-items: start; }
.dashboard-panel, .panel { min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: white; }
.dashboard-panel .panel-head { padding: 8px 14px; min-height: 58px; }
.dashboard-panel .panel-head h2 { margin: 0; }
.panel { max-width: 920px; padding: 15px 17px 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 0 11px; }
.panel-head h2 { font-size: 19px; letter-spacing: -.015em; margin: 0 0 4px; }
.panel-head p { color: var(--muted); font-size: 14px; margin: 0; }
.target-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.target-table th, .target-table td { border-bottom: 1px solid var(--line); padding: 0 11px; text-align: right; }
.target-table th:first-child { text-align: left; }
.target-table thead th { border-top: 1px solid var(--line); background: var(--surface-subtle); color: var(--muted); font-weight: 650; height: 38px; }
.target-table tbody tr:last-child > * { border-bottom: 0; }
.target-table tbody th { padding-block: 0; }
.target-table tbody th a { display: flex; align-items: center; min-height: 54px; padding-block: 7px; }
.target-table tbody th a:hover { text-decoration: underline; text-underline-offset: 3px; }
.target-name { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.target-name strong, .activity-name strong { display: block; font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.category-progress { display: grid; grid-template-columns: minmax(24px, 1fr) auto; align-items: center; gap: 8px; }
.category-progress .number { min-width: 4ch; color: var(--accent); }
.activity-list, .report-list { border-top: 1px solid var(--line); }
.activity-row { display: flex; gap: 9px; width: 100%; text-align: left; align-items: center; padding: 9px 14px; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: inherit; min-height: 61px; }
.activity-row:last-child { border-bottom: 0; border-radius: 0 0 9px 9px; }
.activity-row:focus-visible { outline-offset: -2px; }
.activity-row > [data-icon] { color: var(--muted); }
.activity-row > [data-icon] .icon { width: 15px; height: 15px; }
.activity-name { flex: 1; min-width: 0; }
.activity-name small { font-size: 13px; color: var(--muted); display: block; margin-top: 3px; overflow-wrap: anywhere; }
.activity-status { font-size: 13px; color: var(--muted); white-space: nowrap; }
.report-toolbar { display: flex; padding: 9px 0 15px; gap: 10px; flex-wrap: wrap; }
.search-control { display: flex; align-items: center; gap: 8px; flex: 1; color: var(--muted); border: 1px solid var(--control-line); padding: 0 10px; border-radius: 5px; min-width: min(100%, 230px); }
.search-control input { border: 0; background: transparent; min-width: 0; width: 100%; min-height: 42px; }
.report-toolbar select { width: auto; font-size: 14px; }
.empty { padding: 20px 14px; color: var(--muted); margin: 0; font-size: 14px; }
.target-settings { padding-bottom: 18px; }
.target-edit { min-height: 60px; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); }
.target-edit .target-name { flex: 1; }
.target-edit input { width: 90px; }
.target-settings .note { padding-top: 10px; border-top: 1px solid var(--line); }
.target-settings .button { margin-top: 14px; }
.menu-toggle { display: none !important; }
dialog { width: min(680px, calc(100% - 24px)); max-height: min(90vh, 900px); padding: 0; border: 1px solid #dbe7e7; border-radius: 6px; color: var(--ink); background: #fff; box-shadow: 0 22px 75px #102d3542; }
dialog::backdrop, .mobile-scrim { background: #0c252ddd; opacity: .58; }
.dialog-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 19px 22px; background: #fff; border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin: 0; font-size: 23px; letter-spacing: -.035em; }
.dialog-head p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.dialog-body { display: grid; gap: 13px; padding: 19px 22px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 13px 22px; background: var(--surface-subtle); border-top: 1px solid var(--line); flex-wrap: wrap; }
.dialog-actions .file-links { margin-right: auto; }
.icon-button { display: inline-grid; place-items: center; width: 40px; height: 40px; background: white; border: 1px solid #dbe7e8; border-radius: 5px; color: #39565d; padding: 0; flex: none; }
.icon-button:hover { background: var(--surface-subtle); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.field { display: grid; gap: 6px; color: #274248; font-size: 14px; font-weight: 630; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field small, .note { color: var(--muted); font-weight: 450; font-size: 13px; }
.note { margin: 0; }
input:not([type=checkbox]), textarea, select { color: var(--ink); }
.field input:not([type=checkbox]), .field textarea, .field select, .target-edit input, .report-toolbar select { border: 1px solid var(--control-line); background-color: white; border-radius: 5px; padding: 8px 10px; min-height: 41px; min-width: 0; }
.field textarea { resize: vertical; min-height: 68px; }
.field select, .report-toolbar select { padding-right: 17px; }
.field input[type=file] { max-width: 100%; font-size: 14px; }
.field input[type=file]::file-selector-button { background: var(--accent-light); color: var(--accent); border: 0; border-radius: 5px; padding: 6px 8px; margin-right: 7px; font: inherit; cursor: pointer; }
fieldset { border: 1px solid var(--line); margin: 0; padding: 9px 12px 12px; min-width: 0; border-radius: 5px; }
legend { padding: 0 6px; color: #274248; font-size: 14px; font-weight: 700; }
.checks { display: grid; gap: 7px; }
.check { display: grid; grid-template-columns: minmax(0, 1fr) 107px; align-items: center; }
.signature-area { width: 100%; height: 87px; border: 1px dashed var(--control-line); border-radius: 5px; background: var(--surface-subtle); touch-action: none; }
.signature-control .button { justify-self: start; min-height: 38px; }
.inline-message { background: #fff7e8; border: 1px solid #f1dfb4; border-radius: 5px; padding: 10px; color: #684914; margin: 0; font-size: 14px; }
.inline-error { color: #8d241e; background: #fff0ed; border-color: #f4cecb; }
.toast { position: fixed; right: 22px; bottom: 20px; padding: 12px 16px; background: var(--nav-dark); color: white; border-radius: 5px; box-shadow: 0 8px 30px #07171438; z-index: 8; font-size: 14px; max-width: calc(100% - 44px); }
.paper { color: #243236; overflow-wrap: anywhere; }
.paper-header { border-bottom: 2px solid #317865; padding-bottom: 12px; margin-bottom: 14px; }
.paper-header small { color: #476865; font-weight: 700; }
.paper h3 { font-size: 21px; margin: 5px 0 0; }
.paper h4 { margin: 13px 0 6px; }
.paper dl { display: grid; grid-template-columns: minmax(90px, 145px) 1fr; margin: 0; }
.paper dt, .paper dd { padding: 6px; border-bottom: 1px solid #e0e9e9; margin: 0; white-space: pre-wrap; }
.paper dt { font-weight: 650; }
.paper table { border-collapse: collapse; width: 100%; }
.paper td, .paper th { border: 1px solid #dbe5e6; padding: 6px; text-align: left; }
.paper figure { margin: 0; break-inside: avoid; }
.paper figcaption { font-size: 13px; margin-top: 3px; }
.document-photos, .signatures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.document-photos img { width: 100%; height: 160px; object-fit: contain; background: #f3f7f7; }
.signatures img { width: min(100%, 220px); height: 64px; object-fit: contain; object-position: left; }
.file-links { display: flex; flex-wrap: wrap; gap: 8px; }
.file-links .button { white-space: normal; overflow-wrap: anywhere; }
#print-area { display: none; }
.profile-account { display: flex; align-items: center; gap: 8px; min-width: 44px; min-height: 44px; max-width: 210px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 7px; font-size: 14px; font-weight: 650; }
.profile-account:hover, .profile-account[aria-current="page"] { background: var(--surface-subtle); color: var(--accent-dark); border-color: var(--control-line); }
.profile-icon { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 4px; background: var(--accent-light); color: var(--accent); }
.profile-icon .icon { width: 16px; height: 16px; }
.profile-name { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.guide-trigger { color: var(--accent); }
.guide-dialog { width: min(520px, calc(100% - 24px)); max-height: min(85dvh, 700px); }
.guide-topics { display: grid; gap: 8px; padding: 15px 22px; }
.guide-topic { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 46px; text-align: left; padding: 8px 12px; border: 1px solid var(--line); border-radius: 5px; background: white; color: var(--ink); }
.guide-topic:hover { border-color: var(--control-line); background: var(--accent-light); }
.guide-topic strong { font-size: 14px; font-weight: 650; }
.guide-topic span { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.guide-dialog-actions { display: flex; justify-content: flex-end; border-top: 1px solid var(--line); padding: 5px 22px; }
.guide-hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; max-width: 1040px; }
.guide-hub-panel { margin-bottom: 0; }
.guide-links { margin: 0; padding: 0; list-style: none; }
.guide-links a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; align-items: center; min-height: 58px; padding: 11px 2px; border-top: 1px solid var(--line); }
.guide-links a:hover { color: var(--accent); }
.guide-links strong { font-size: 15px; font-weight: 650; }
.guide-links small { grid-column: 1; color: var(--muted); font-size: 13px; }
.guide-links .icon { grid-column: 2; grid-row: 1 / span 2; color: var(--accent); width: 16px; }
.driver-popover.pantauk3-tour { --driver-popover-font-family: 'Segoe UI', system-ui, sans-serif; max-width: min(356px, calc(100vw - 24px)); padding: 16px; border-top: 3px solid var(--brand-green); border-radius: 7px; color: var(--ink); }
.pantauk3-tour .driver-popover-title { padding-right: 20px; font-size: 18px; line-height: 1.25; }
.pantauk3-tour .driver-popover-description { font-size: 14px; line-height: 1.45; }
.pantauk3-tour .driver-popover-progress-text { color: var(--muted); }
.pantauk3-tour .driver-popover-footer button { min-height: 36px; padding-inline: 8px; border: 1px solid var(--line); border-radius: 4px; font-size: 13px; text-shadow: none; }
.pantauk3-tour .driver-popover-footer .driver-popover-next-btn { border-color: var(--accent); background: var(--accent); color: white; }
.pantauk3-tour .driver-popover-footer .driver-popover-next-btn:hover { background: var(--accent-dark); }
.guide-change-topic { display: block; background: transparent; border: 0; color: var(--accent); padding: 0; margin-top: 10px; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.stack-form { display: grid; gap: 14px; }
.field :is(input[type="password"], input[type="email"], input[type="month"], input[type="search"]) { width: 100%; }
.account-page { max-width: 1040px; margin-inline: auto; }
.account-page .page-heading h1 { margin-bottom: 0; }
.content:has(.account-page) > .flash { max-width: 1040px; margin-inline: auto; }
.account-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 22px; align-items: start; }
.account-profile { padding: 0; overflow: hidden; }
.account-profile-header, .account-password-header { display: flex; align-items: center; gap: 13px; }
.account-profile-header { padding: 21px 23px; border-top: 3px solid var(--brand-green); background: var(--nav-dark); color: white; }
.account-icon { display: grid; place-items: center; width: 43px; height: 43px; flex: none; border-radius: 6px; background: var(--accent-light); color: var(--accent); }
.account-profile-header .account-icon { border: 1px solid var(--nav-line); background: #24596b; color: white; }
.account-profile-header h2 { margin: 0 0 4px; color: #d2e7ec; font-size: 14px; font-weight: 650; }
.account-profile-header p { margin: 0; font-size: 21px; font-weight: 680; line-height: 1.2; overflow-wrap: anywhere; }
.account-details { margin: 0; padding-inline: 23px; }
.account-details > div { display: grid; grid-template-columns: minmax(74px, 1fr) minmax(0, 2fr); gap: 9px; padding-block: 15px; align-items: baseline; }
.account-details > div + div { border-top: 1px solid var(--line); }
.account-details dt { color: var(--muted); font-size: 14px; }
.account-details dd { margin: 0; font-size: 15px; font-weight: 620; overflow-wrap: anywhere; }
.account-profile-form { padding: 20px 23px 23px; border-top: 1px solid var(--line); }
.account-profile-form input[aria-invalid="true"], .admin-account-card input[aria-invalid="true"] { border-color: #ac4135; }
.account-password { padding: 23px; }
.account-password-header { padding-bottom: 17px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.account-password-header h2 { margin: 0; font-size: 21px; letter-spacing: -.015em; }
.account-password .stack-form { gap: 16px; }
.account-password-input { position: relative; }
.account-password .account-password-input input { width: 100%; min-height: 46px; padding-right: 48px; }
.account-password-input input[aria-invalid="true"] { border-color: #ac4135; }
.password-toggle { position: absolute; inset: 0 2px 0 auto; margin-block: auto; height: 38px; border: 0; background: transparent; color: var(--accent); }
.password-toggle span { display: grid; place-items: center; }
.password-toggle:focus-visible { outline-offset: -2px; }
.account-password-actions { display: flex; justify-content: flex-end; padding-top: 15px; border-top: 1px solid var(--line); }
.flash { margin: 0 0 17px; padding: 12px 14px; border: 1px solid #c5dbce; border-radius: 6px; background: #eaf4ed; color: #24473a; font-size: 14px; }
.flash-error { border-color: #eed3ce; background: #fff2ee; color: #8b3227; }
.flash-error ul { margin: 5px 0 0; padding-left: 18px; }
.period-form { display: flex; gap: 6px; align-items: stretch; min-width: 0; }
.period-form input[type="month"] { min-height: 43px; min-width: 0; max-width: 100%; padding: 7px 9px; border: 1px solid var(--control-line); border-radius: 5px; background: white; font-size: 14px; }
.summary-link { display: inline-block; color: white; text-decoration: underline; text-underline-offset: 3px; margin-top: 8px; font-size: 14px; }
.summary-link:focus-visible { outline-color: white; }
.form-panel { padding: 19px; margin-bottom: 15px; }
.form-panel h2 { margin: 0 0 12px; font-size: 19px; }
.form-panel .panel-head h2 { margin: 0; }
.form-panel .panel-head p { margin-top: 4px; }
.form-panel h3 { margin: 20px 0 6px; font-size: 16px; }
.report-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; align-items: flex-end; }
.report-filters .filter-search { flex: 1; min-width: min(100%, 200px); }
.report-panel .report-list, .report-panel .pagination { margin-inline: -17px; }
.pagination { display: flex; gap: 8px; justify-content: center; align-items: center; border-top: 1px solid var(--line); padding: 9px 8px; font-size: 13px; color: var(--muted); }
.category-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.category-pills [aria-current="page"] { color: var(--accent); background: var(--accent-light); border-color: var(--control-line); }
.report-checklist { padding: 11px 13px; }
.checklist-row { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 12px; padding-block: 7px; align-items: end; }
.checklist-row + .checklist-row { border-top: 1px solid var(--line); }
.report-attachment-options { display: grid; gap: 8px; }
.attachment-remove-option { display: flex; gap: 8px; align-items: baseline; padding-block: 7px; overflow-wrap: anywhere; font-size: 14px; }
.attachment-remove-option + .attachment-remove-option { border-top: 1px solid var(--line); }
.attachment-remove-option small { display: block; color: var(--muted); }
.account-directory { max-width: none; }
.account-filters { margin-top: 6px; }
.account-list { margin: 0; padding: 0; list-style: none; }
.account-list-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 105px; align-items: center; gap: 12px 16px; padding: 13px 0; border-top: 1px solid var(--line); }
.account-list-identity, .account-list-access { display: grid; gap: 3px; overflow-wrap: anywhere; }
.account-list-row strong { font-size: 15px; font-weight: 660; }
.account-list-row span { font-size: 14px; color: var(--muted); }
.account-list-row .button { justify-self: end; }
.account-list .empty { border-top: 1px solid var(--line); padding-left: 0; }
.admin-account-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; gap: 15px; max-width: 1000px; }
.admin-account-card { max-width: 640px; }
.admin-account-card .form-grid { align-items: start; }
.admin-account-card > .note { margin-bottom: 14px; overflow-wrap: anywhere; }
.admin-unit-form { max-width: 640px; }
.admin-unit-form summary, .account-delete summary, .report-delete summary { font-weight: 670; cursor: pointer; }
.admin-unit-form form, .account-delete form, .report-delete form { margin-top: 13px; }
.account-delete, .report-delete { border-color: #ead3ce; }
.account-delete summary, .report-delete summary { color: #8b3227; }
.account-delete-confirm, .report-delete-confirm { display: flex; gap: 8px; align-items: baseline; font-size: 14px; overflow-wrap: anywhere; }
.details { display: grid; grid-template-columns: minmax(95px, 180px) minmax(0, 1fr); margin: 0; font-size: 14px; }
.details dt, .details dd { border-bottom: 1px solid var(--line); margin: 0; padding: 8px 6px; overflow-wrap: anywhere; }
.details dt { font-weight: 650; }
.details dd { white-space: pre-wrap; }
.attachment-list { padding: 0; margin: 0; list-style: none; }
.attachment-list li { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 2px; border-bottom: 1px solid var(--line); }
.attachment-list span { min-width: 0; overflow-wrap: anywhere; }
.attachment-list small { display: block; color: var(--muted); }
.activity-chevron { color: var(--muted); }
.activity-chevron .icon { width: 15px; height: 15px; }
@media (max-width: 1150px) {
  :root { --sidebar: 200px; }
  .topbar-inner { padding-inline: 24px; }
  .content { padding-inline: 24px; }
}
@media (max-width: 1000px) {
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 880px) {
  .page-heading { flex-wrap: wrap; }
  .account-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .admin-account-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .guide-hub-grid { grid-template-columns: minmax(0, 1fr); gap: 13px; }
}
@media (max-width: 760px) {
  .sidebar { visibility: hidden; transform: translateX(-100%); width: 232px; }
  .sidebar.open { transform: translateX(0); visibility: visible; }
  .mobile-scrim { position: fixed; inset: 0; z-index: 3; }
  .workspace { margin-left: 0; }
  .menu-toggle { display: inline-grid !important; }
  .topbar-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); padding: 0; gap: 0; }
  .topbar-mobile { display: flex; align-items: center; gap: 6px; padding: 8px 0 8px 14px; }
  .profile { grid-column: 2; grid-row: 1; padding-right: 14px; }
  .breadcrumb { grid-column: 1 / -1; background: #f8fbfc; border-top: 1px solid var(--line); padding: 4px 14px; font-size: 13px; }
  .breadcrumb a, .breadcrumb-current { min-height: 40px; }
  .content { padding: 21px 14px 30px; }
  .page-heading { flex-wrap: wrap; margin-bottom: 16px; gap: 12px; }
  .monthly-summary { min-height: 148px; padding: 14px 18px; gap: 12px; }
  .summary-chart { width: 113px; }
  .summary-chart strong { font-size: 28px; }
}
@media (max-width: 480px) {
  .profile { gap: 4px; }
  .profile > .guide-trigger, .profile .logout-button { width: 44px; padding-inline: 0; }
  .profile > .guide-trigger span, .profile .logout-button span { display: none; }
  .guide-topics, .guide-dialog-actions { padding-inline: 14px; }
  .sign-in-brand { padding: 20px 20px 0; }
  .sign-in-body { padding: 15px 20px 20px; }
  .page-actions { max-width: 100%; }
  .monthly-summary { min-height: 135px; padding: 13px 14px; gap: 9px; }
  .summary-count h2 { font-size: 21px; }
  .summary-count p { font-size: 13px; }
  .summary-count .summary-period { margin-bottom: 8px; }
  .summary-count .summary-remaining { margin-top: 7px; font-size: 12px; }
  .summary-chart { width: 94px; }
  .summary-chart strong { font-size: 24px; }
  .summary-chart span { font-size: 10px; margin-top: 2px; }
  .metrics { gap: 7px; margin: 9px 0 13px; }
  .metric { align-items: stretch; padding: 9px; }
  .metric-icon { display: none; }
  .metric dt { min-height: 2.5em; font-size: 12px; line-height: 1.25; }
  .metric dd { font-size: 20px; }
  .target-table th, .target-table td { padding-inline: 5px; }
  .target-table thead th { font-size: 13px; }
  .target-name { gap: 4px; }
  .category-progress { display: block; }
  .category-progress .progress-track { display: none; }
  .activity-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; }
  .activity-row > [data-icon] { grid-column: 2; grid-row: 1; }
  .activity-status { grid-column: 1; }
  .dashboard-panel .panel-head { padding-inline: 9px; }
  .dashboard-panel .panel-head h2 { font-size: 17px; }
  .activity-row { padding-inline: 9px; }
  .dialog-head, .dialog-body, .dialog-actions { padding-inline: 14px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-panel { padding: 14px; }
  .account-profile-header { padding: 16px; }
  .account-details { padding-inline: 16px; }
  .account-details > div { padding-block: 12px; }
  .account-profile-form { padding: 14px 16px 16px; }
  .account-password { padding: 16px; }
  .account-password .field input { font-size: 16px; }
  .account-password-actions .button { width: 100%; }
  .account-list-row { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 9px; }
  .account-list-row .button { grid-column: 2; grid-row: 1 / span 2; }
  .checklist-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .activity-chevron { grid-column: 2; grid-row: 1; }
}
@media print {
  @page { margin: 16mm; }
  .sign-in, .shell, dialog, .toast, .skip-link { display: none !important; }
  body { background: white; color: black; min-width: 0; }
  #print-area { display: block; font-size: 11pt; }
  .paper tr, .paper figure { break-inside: avoid; }
}
