:root {
    color-scheme: light;
    --ink: #182d36;
    --muted: #52656d;
    --brand: #183e4a;
    --action: #24586a;
    --line: #d7e1e5;
    --canvas: #f3f6f7;
    --danger: #a12b32;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--canvas);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
[hidden] { display: none !important; }
a { color: var(--action); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #b15c0c; outline-offset: 4px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.9rem, 3.2vw, 2.75rem); line-height: 1.15; letter-spacing: -.035em; font-weight: 650; }
h2, legend { font-size: 1.375rem; line-height: 1.35; font-weight: 650; letter-spacing: -.02em; }
svg { width: 24px; height: 24px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.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; border: 0; }
.skip-link:focus { position: fixed; inset: 12px auto auto 12px; z-index: 10; padding: 12px 20px; background: white; }
.header-inner, .page-content, .site-footer { width: min(calc(100% - 96px), 1344px); margin-inline: auto; }
.site-header { background: var(--brand); color: white; }
.header-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: flex; flex-direction: column; min-width: 0; padding-block: 12px; color: white; text-decoration: none; overflow-wrap: anywhere; }
.brand-name { font-size: 1.5rem; font-weight: 650; letter-spacing: -.025em; line-height: 1.3; }
.brand-unit { font-size: .9375rem; color: #c1d7df; margin-top: 2px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: stretch; align-self: stretch; gap: 32px; }
.site-nav > a, .site-nav button { display: flex; align-items: center; min-height: 44px; padding: 0 2px; border: 0; border-bottom: 3px solid transparent; color: #d6e4e9; background: transparent; font-size: 1rem; font-weight: 550; text-decoration: none; }
.site-header :focus-visible { outline-color: white; }
.site-nav form { display: flex; }
.site-nav [aria-current="page"] { color: white; border-bottom-color: #c1d7df; }
.site-nav a:hover, .site-nav button:hover { color: white; border-bottom-color: white; }
.page-content { flex: 1; padding-block: 46px 24px; }
.page-content:focus { outline: none; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 36px; }
.intro { margin-top: 12px; color: var(--muted); font-size: 1.125rem; max-width: 65ch; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 48px; padding: 11px 20px; border: 1px solid var(--action); border-radius: 6px; background: var(--action); color: white; font-size: 1rem; line-height: 1.5; font-weight: 600; text-decoration: none; text-align: center; }
.button:hover { background: var(--brand); border-color: var(--brand); color: white; text-decoration: none; }
.page-heading > .button { flex-shrink: 0; }
.reminder-list { overflow: hidden; margin-bottom: 28px; background: white; border: 1px solid var(--line); border-radius: 6px; }
.list-heading { min-height: 74px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 16px 22px; }
.list-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px; min-width: 0; }
.list-count { color: var(--muted); font-size: 1rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.list-note { color: var(--muted); font-size: .875rem; }
.search-field { position: relative; width: 270px; max-width: 100%; }
.search-field svg { position: absolute; left: 12px; top: 12px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search-field input[type="search"] { padding-left: 40px; min-height: 44px; font-size: .9375rem; }
.reminder-table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; }
.reminder-table th, .reminder-table td { padding: 16px 18px; border-top: 1px solid var(--line); vertical-align: middle; }
.reminder-table thead th { padding-block: 12px; background: #eef3f5; font-size: .9375rem; font-weight: 600; }
.reminder-table th:first-child { width: 39%; padding-left: 22px; }
.reminder-table th:last-child { width: 17%; }
.reminder-table tbody tr:hover { background: #f8fafb; }
.reminder-table .case-cell { font-size: 1rem; font-weight: 400; overflow-wrap: anywhere; }
.case-cell > span { display: block; }
.case-reference, .case-handler, .case-comment { color: var(--muted); font-size: .875rem; }
.case-reference { margin-bottom: 2px; }
.case-title { font-weight: 650; line-height: 1.4; }
.case-handler { margin-top: 3px; }
.case-comment { margin-top: 5px; white-space: pre-line; }
time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.date-today { display: inline-block; padding: 8px 12px; margin-inline: -12px; border-radius: 4px; color: #164e70; background: #e4f1fb; font-weight: 650; }
.date-today small { display: block; font-size: .8125rem; font-weight: 400; }
.row-actions { white-space: nowrap; }
.row-actions a { display: inline-flex; align-items: center; min-height: 44px; padding: 5px 6px; font-size: .9375rem; }
.row-actions a + a { margin-left: 6px; padding-left: 14px; border-left: 1px solid var(--line); }
.empty-row td { padding: 36px 22px; color: var(--muted); text-align: center; }
.site-footer { display: flex; justify-content: space-between; gap: 16px; padding-block: 18px 26px; margin-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.form-heading, .editor-panel, .page-content > .notice { max-width: 960px; margin-inline: auto; }
.form-heading { margin-bottom: 28px; }
.back-link { display: inline-block; padding-block: 4px; margin-bottom: 18px; font-size: .9375rem; }
.editor-panel, .login-panel, .confirmation-panel { background: white; border: 1px solid var(--line); border-radius: 6px; }
.editor-panel { padding: 32px; }
fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
legend { display: block; padding: 0; margin-bottom: 22px; }
fieldset + fieldset { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--line); }
fieldset + fieldset legend { float: left; width: 100%; margin-bottom: 6px; }
fieldset + fieldset > .field-help { clear: both; margin-bottom: 22px; }
.case-fields, .date-fields { display: grid; gap: 22px; }
.case-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); }
.field-wide { grid-column: 1 / -1; }
.date-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
label { font-size: .9375rem; font-weight: 600; }
input:is([type="text"], [type="password"], [type="date"], [type="search"]), textarea { width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px; border: 1px solid #7b929c; border-radius: 4px; color: var(--ink); background: white; font-size: 1rem; line-height: 1.5; }
input::placeholder { color: var(--muted); opacity: 1; }
input:hover, textarea:hover { border-color: var(--action); }
input:focus, textarea:focus { border-color: var(--action); }
textarea { resize: vertical; }
.optional, .field-help { color: var(--muted); font-size: .875rem; font-weight: 400; }
.checkbox-field { display: flex; align-items: flex-start; gap: 12px; margin-top: 24px; }
.checkbox-field input { width: 20px; height: 20px; flex: 0 0 auto; margin: 3px 0 0; accent-color: var(--action); cursor: pointer; }
.checkbox-field label { cursor: pointer; }
.checkbox-field .field-help { margin-top: 4px; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 24px; padding-top: 24px; margin-top: 30px; border-top: 1px solid var(--line); }
.cancel-link { display: inline-flex; align-items: center; min-height: 44px; }
.notice { padding: 18px 22px; margin-bottom: 24px; border: 1px solid #dfb1b4; border-left: 4px solid var(--danger); border-radius: 4px; color: #79242b; background: #fff4f4; }
.notice h2 { font-size: 1.125rem; }
.notice ul { padding-left: 22px; margin: 10px 0 0; }
.notice li + li { margin-top: 4px; }
.signed-out .page-content { display: flex; align-items: flex-start; justify-content: center; flex-direction: column; }
.login-panel { width: 100%; max-width: 448px; margin: 32px auto 60px; padding: 36px; }
.login-panel h1 { font-size: 2rem; }
.login-panel .intro { font-size: 1rem; margin-bottom: 28px; }
.login-form { display: grid; gap: 22px; }
.login-form .button { margin-top: 4px; }
.confirmation-panel { max-width: 760px; margin: 0 auto; padding: 32px; }
.confirmation-panel h1 { font-size: 2rem; margin-bottom: 16px; }
.confirmation-panel > p { color: var(--muted); }
.confirmation-case { margin-top: 24px; padding: 20px 0; border-block: 1px solid var(--line); }
.confirmation-case, .notice { overflow-wrap: anywhere; }
.confirmation-case .case-reference { margin-bottom: 6px; }
.confirmation-panel .form-actions { border: 0; margin-top: 0; }
.button-danger { background: var(--danger); border-color: var(--danger); }
.button-danger:hover { background: #7e2027; border-color: #7e2027; }

@media (max-width: 1000px) {
.header-inner, .page-content, .site-footer { width: calc(100% - 48px); }
.header-inner { flex-wrap: wrap; gap: 0 24px; }
.site-nav { min-height: 60px; gap: 24px; }
.page-heading { align-items: flex-start; flex-direction: column; gap: 22px; }
.page-content { padding-top: 32px; }
.reminder-table, .reminder-table tbody { display: block; }
.reminder-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.reminder-table tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 22px; padding: 22px; border-top: 1px solid var(--line); }
.reminder-table th, .reminder-table td { display: block; padding: 0; border: 0; }
.reminder-table th:first-child { width: auto; padding: 0; }
.reminder-table .case-cell { grid-column: 1 / -1; }
.reminder-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 6px; color: var(--muted); font-size: .8125rem; }
.reminder-table .row-actions { grid-column: 1 / -1; padding-top: 4px; }
.row-actions a:first-child { padding-left: 0; }
.date-today { margin: 0; padding: 6px 8px; }
.reminder-table .empty-row { display: block; padding: 32px 22px; }
.editor-panel { padding: 28px; }

}

@media (max-width: 600px) {
.header-inner, .page-content, .site-footer { width: calc(100% - 32px); }
.header-inner { display: block; }
.brand { padding-block: 17px; }
.brand-name { font-size: 1.375rem; }
.brand-unit { font-size: .875rem; }
.site-nav { justify-content: space-between; gap: 12px; min-height: 50px; }
.site-nav > a, .site-nav button { font-size: .875rem; }
.page-content { padding-block: 28px 18px; }
h1 { font-size: 1.875rem; }
h2, legend { font-size: 1.2rem; }
.intro { font-size: 1rem; margin-top: 10px; }
.page-heading { margin-bottom: 26px; gap: 20px; }
.page-heading > .button { width: 100%; }
.list-heading { padding: 18px; gap: 14px; }
.list-title { gap: 12px; }
.list-note { width: 100%; }
.search-field { width: 100%; }
.reminder-list { margin-bottom: 20px; }
.reminder-table tbody tr { gap: 16px 8px; padding: 18px; }
.reminder-table time { font-size: .875rem; white-space: normal; overflow-wrap: anywhere; }
.reminder-table td[data-label] { min-width: 0; }
.reminder-table td[data-label]::before { overflow-wrap: anywhere; }
.case-reference, .case-handler, .case-comment { font-size: .875rem; }
.case-title { font-size: 1.0625rem; }
.date-today { padding: 5px; }
.site-footer { display: block; padding-block: 16px 24px; }
.site-footer span { display: block; }
.site-footer span + span { margin-top: 4px; }
.form-heading { margin-bottom: 22px; }
.editor-panel, .confirmation-panel { padding: 22px 18px; }
.case-fields, .date-fields { grid-template-columns: 1fr; gap: 20px; }
fieldset + fieldset { margin-top: 26px; padding-top: 26px; }
.form-actions { gap: 14px; flex-direction: column-reverse; align-items: stretch; }
.form-actions .button, .cancel-link { width: 100%; justify-content: center; }
.login-panel { padding: 28px 22px; margin-block: 16px 40px; }
.login-panel h1, .confirmation-panel h1 { font-size: 1.75rem; }
.notice { padding: 16px; }

}
