:root {
    color-scheme: light;
    --ink: #20342e;
    --muted: #53675c;
    --paper: #f5f7f4;
    --line: #dce5dc;
    --green: #214e40;
    --soft: #e7f0e2;
    --white: #fff;
    font: 16px/1.5 system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #245c49; font-weight: 650; text-underline-offset: .2em; }
a:hover { color: #122e25; }
:focus-visible { outline: 3px solid #337c65; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.15rem); line-height: 1.08; letter-spacing: -.055em; }
h2 { font-size: 1.12rem; letter-spacing: -.015em; }
h3 { font-size: 1rem; line-height: 1.3; }
small { color: var(--muted); font-size: .875rem; }
p + p { margin-top: .65rem; }
button, .button { border: 0; border-radius: .65rem; background: var(--green); color: white; font: inherit; font-weight: 650; padding: .62rem 1rem; min-height: 44px; cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; }
button:hover, .button:hover { background: #15372d; color: white; }
.quiet, .secondary { color: var(--green); background: var(--soft); }
input:not([type=checkbox]), select, textarea { max-width: 100%; width: 100%; padding: .65rem; border: 1px solid #aebfb4; border-radius: .5rem; background: white; color: var(--ink); font: inherit; min-height: 44px; }
input[type=checkbox] { width: 1.15rem; height: 1.15rem; accent-color: var(--green); }
label { display: block; font-weight: 650; }
textarea { resize: vertical; }
summary { cursor: pointer; }
.skip { position: fixed; top: -5rem; left: 1rem; padding: 1rem; background: white; z-index: 20; }
.skip:focus { top: 1rem; }
.rail { width: 15rem; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; padding: 1.5rem 1.1rem; border-right: 1px solid var(--line); background: #f9fbf8; overflow: auto; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-size: 1.65rem; font-weight: 800; letter-spacing: -.06em; text-decoration: none; color: inherit; }
.mark { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .65rem; background: var(--green); color: #e2f5c9; font-size: 1.1rem; }
.brand-dot { color: #528b68; margin-left: -.55rem; }
.unit-label { margin: 2rem 0 1rem; padding: .8rem; background: var(--soft); border-radius: .7rem; color: var(--muted); font-size: .875rem; }
.unit-label strong { display: block; color: var(--ink); font-size: 1rem; }
.rail nav { display: grid; gap: .15rem; }
.rail nav a { display: flex; align-items: center; gap: .7rem; min-height: 44px; padding: .5rem .65rem; border-radius: .55rem; color: var(--muted); text-decoration: none; }
.rail nav a:hover, .rail nav a[aria-current] { background: var(--soft); color: var(--green); }
.rail nav span { width: 1.25rem; text-align: center; }
.top { margin-left: 15rem; min-height: 4.25rem; padding: .65rem 2rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: #fafcf9; }
.desktop-top { font-weight: 650; }
.mobile-brand, .mobile-nav { display: none; }
.account, .more { position: relative; }
.account summary { padding: .55rem; overflow-wrap: anywhere; }
.account > div, .more > div { position: absolute; right: 0; z-index: 4; width: 13rem; background: white; border: 1px solid var(--line); border-radius: .7rem; padding: .65rem; box-shadow: 0 .45rem 1.5rem #183c3320; }
.account a, .more div a { display: flex; align-items: center; min-height: 44px; }
.workspace { max-width: 100rem; margin-left: 15rem; padding: 2rem clamp(1.25rem, 4vw, 3rem) 4rem; }
.hero { background: #e5eee0; border-radius: 1.15rem; padding: clamp(1.2rem, 4vw, 2.4rem); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.25rem; }
.hero p:not(.eyebrow) { margin-top: .65rem; color: var(--muted); }
.eyebrow { color: #456a56; font-weight: 750; font-size: .875rem; margin-bottom: .45rem; }
.progress-box { background: #f6f9f4; padding: 1rem; border-radius: .75rem; min-width: 12rem; }
progress { display: block; width: 100%; height: .75rem; accent-color: #3a745d; margin-top: .55rem; }
.dashboard { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.panel { background: white; border: 1px solid var(--line); border-radius: 1rem; min-width: 0; }
.section-head { display: flex; align-items: center; gap: .65rem; padding: 1rem; border-bottom: 1px solid var(--line); }
.section-head a { margin-left: auto; font-size: .875rem; text-align: right; display: grid; align-items: center; min-height: 44px; }
.section-icon { display: grid; place-items: center; flex: 0 0 2.2rem; height: 2.2rem; border-radius: .65rem; background: var(--soft); color: var(--green); font-weight: 700; }
.blue { background: #e6edf2; color: #33566d; }
.gold, .amber { background: #fbefd7; color: #6d4818; }
.rows { padding: 0 1rem; }
.rows > .muted { padding: 1rem 0; }
.row { display: flex; align-items: flex-start; gap: .7rem; padding: .8rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.row:last-child { border-bottom: 0; }
.row time { color: var(--green); font-weight: 750; }
.row .pill:last-child { margin-left: auto; }
.pill { display: inline-block; border-radius: .5rem; padding: .22rem .48rem; background: var(--soft); color: var(--green); font-size: .875rem; }
.pill.amber { background: #fbefd7; color: #6d4818; }
.warning { background: #fbefd7; color: #674718; border-radius: .75rem; padding: .9rem 1rem; margin-bottom: 1rem; }
.muted { color: var(--muted); }
.task-text, .record-body { flex: 1; min-width: 0; }
.task[data-status=done] h3 { text-decoration: line-through; color: var(--muted); }
.check { width: 44px; min-height: 44px; padding: 0; justify-content: center; border: 1px solid #9db5a8; background: white; color: var(--green); }
.task[data-status=done] .check { background: var(--green); color: white; }
.task-details summary { color: var(--green); min-height: 30px; }
.task-details form { margin: .4rem 0; }
.task-details label { margin-bottom: .45rem; }
.page-head { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: .8rem; margin-bottom: 1.25rem; }
.form-panel, .filter { padding: 1rem 1.2rem; margin-bottom: 1rem; }
.form-panel > p, .form-panel form > p, .form-panel form > label, .form-panel h2 { margin: 0 0 .8rem; }
.form-panel input:not([type=checkbox]), .form-panel textarea, .form-panel select { margin-top: .25rem; }
.actions, .filter { display: flex; align-items: end; flex-wrap: wrap; gap: .6rem; margin: .75rem 0; }
.public-wrap { max-width: 82rem; padding: 2rem; margin: auto; }
.login-layout { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100svh; }
.login-intro { padding: clamp(2rem, 8vw, 8rem); background: #204e40; color: #f3faed; position: relative; isolation: isolate; overflow: hidden; }
.login-intro .mark { background: #ddefce; color: #204e40; }
.login-intro .brand-dot { color: #cbe6bb; }
.login-intro h1 { margin-top: clamp(3rem, 13vh, 9rem); }
.login-intro p { margin-top: 1.2rem; max-width: 24rem; color: #d9e8d8; }
.login-decoration { position: absolute; z-index: -1; bottom: -16rem; right: -9rem; width: 34rem; height: 34rem; }
.login-decoration i { position: absolute; inset: 0; border: 1px solid #75a393; border-radius: 50%; opacity: .35; }
.login-decoration i:nth-child(2) { inset: 2rem; }
.login-decoration i:nth-child(3) { inset: 4rem; }
.login-form { padding: clamp(1.5rem, 7vw, 6rem); align-self: center; }
.login-form h2 { font-size: 2rem; }
.login-form p { margin: .4rem 0 1.2rem; color: var(--muted); }
.login-form label { margin: .75rem 0 .25rem; }
.login-form button { margin-top: 1.2rem; width: 100%; justify-content: center; }
@media (max-width: 1000px) { .dashboard { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
    .rail, .desktop-top { display: none; }
    .mobile-brand { display: inline-flex; }
    .top, .workspace { margin-left: 0; }
    .top { min-height: 3.75rem; padding: .4rem 1rem; }
    .workspace { padding: 1rem .85rem calc(5.5rem + env(safe-area-inset-bottom)); }
    .hero { align-items: stretch; flex-direction: column; }
    .mobile-nav { position: fixed; z-index: 3; inset: auto 0 0; display: flex; justify-content: space-around; background: #fff; padding: .2rem .15rem env(safe-area-inset-bottom); border-top: 1px solid var(--line); }
    .mobile-nav > a, .more summary { min-height: 56px; padding: .25rem; display: grid; place-content: center; text-align: center; text-decoration: none; font-size: .875rem; font-weight: 650; color: var(--green); }
    .mobile-nav span { font-size: 1.1rem; }
    .more > div { bottom: 100%; }
    .login-layout { display: block; }
    .login-intro { padding: 1.6rem; }
    .login-intro h1 { margin-top: 1.6rem; }
    .public-wrap { padding: 1rem; }
}
[data-checklist-editor] ol { padding-left: 1.4rem; }
[data-checklist-editor] li { padding: .4rem; border-bottom: 1px solid var(--line); cursor: grab; }
[data-checklist-editor] li span { display: block; margin-bottom: .4rem; }
[data-checklist-editor] button { margin: 0 .4rem .3rem 0; }
.action-item { margin-block: .35rem; }
.theme-ocean { --green: #214e65; --soft: #e2edf4; }
.theme-clay { --green: #79472f; --soft: #fae9db; }
.theme-ocean .hero, .theme-clay .hero { background: var(--soft); }
.month { width: 100%; table-layout: fixed; text-align: center; border-collapse: collapse; }
.month th, .month td { border: 1px solid var(--line); padding: .2rem; }
.month a { display: flex; flex-direction: column; min-height: 44px; align-items: center; justify-content: center; }
fieldset { border: 1px solid var(--line); border-radius: .55rem; min-width: 0; }
fieldset label { padding: .3rem; }
