:root {
  color-scheme: light;
  --ink: #20332e;
  --muted: #52645c;
  --green: #18483d;
  --lime: #dce8a4;
  --paper: #fff;
  --back: #f3f5ef;
  --line: #d3dcd2;
  font: 16px/1.5 "Bahnschrift", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--back);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
header { background: var(--paper); border-bottom: 1px solid var(--line); }
.bar, main { width: min(100% - 64px, 1140px); margin-inline: auto; }
.bar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-height: 52px; text-decoration: none; color: var(--green); font-size: 1.45rem; font-weight: 750; letter-spacing: -.035em; }
.mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 9px; background: var(--green); color: var(--lime); }
.mark svg { width: 25px; }
nav, .actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
nav a { display: inline-flex; align-items: center; min-height: 52px; text-underline-offset: 4px; }
.identity { display: grid; padding-inline: 10px; line-height: 1.2; overflow-wrap: anywhere; }
.identity small { color: var(--muted); margin-top: 4px; }
main { padding-block: 48px 72px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.75rem); line-height: 1.05; letter-spacing: -.055em; font-weight: 750; }
h2 { margin: 32px 0 14px; font-size: 1.55rem; letter-spacing: -.025em; }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -.018em; overflow-wrap: anywhere; }
p { max-width: 66ch; }
.heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding-block: 8px 22px; border-bottom: 2px solid var(--green); margin-bottom: 20px; }
.heading h1 { order: -1; }
.day { color: var(--muted); font-weight: 650; font-variant-numeric: tabular-nums; }
.plan-note { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 13px 17px; background: #e7edda; max-width: none; border-radius: 6px; }
.stack { margin: 18px 0 24px; }
.stack > p { padding: 14px 0; color: var(--muted); }
.task, .person { background: var(--paper); padding: 19px 22px; border: 1px solid var(--line); }
.task + .task, .person + .person { border-top: 0; }
.task:first-child, .person:first-child { border-radius: 9px 9px 0 0; }
.task:last-child, .person:last-child { border-radius: 0 0 9px 9px; }
.task:only-child, .person:only-child { border-radius: 9px; }
.task { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px 28px; }
.task-top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.state { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; }
.state::before { content: ""; width: 8px; height: 8px; border: 1px solid currentColor; border-radius: 50%; }
.state.active { color: #786018; }
.state.review { color: #345e86; }
.state.done { color: var(--green); }
.state.active::before, .state.review::before, .state.done::before { background: currentColor; }
.description { margin-top: 7px; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 15px; margin: 0; padding-left: 19px; border-left: 1px solid var(--line); }
dt { color: var(--muted); font-size: .875rem; }
dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.late, .error { color: #992d31; }
.error { margin-bottom: 14px; }
.actions { grid-column: 1 / -1; }
.actions:empty { display: none; }
button, summary, .link-button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 18px; background: var(--green); color: white; border: 1px solid transparent; border-radius: 6px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; text-align: center; }
button:hover, summary:hover, .link-button:hover { text-decoration: underline; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid #2760a8; outline-offset: 3px; }
.quiet, .secondary, .link-button { background: var(--paper); border-color: var(--line); color: var(--green); }
main > details > summary { display: flex; justify-content: space-between; min-height: 62px; list-style: none; background: var(--lime); color: var(--ink); text-align: left; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; margin-left: 14px; line-height: 1; }
details[open] > summary::after { content: "−"; }
.editor { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 22px; margin-top: 12px; }
.small { margin-top: 8px; }
.small summary { background: var(--back); color: var(--ink); }
.small form { margin-top: 12px; max-width: 420px; }
label { display: grid; gap: 6px; margin-bottom: 16px; font-weight: 650; min-width: 0; }
input, select, textarea { width: 100%; min-width: 0; min-height: 52px; border: 1px solid #879c91; background: var(--paper); color: var(--ink); border-radius: 5px; padding: 10px 12px; font: inherit; }
textarea { resize: vertical; }
fieldset { border: 1px solid var(--line); margin: 0 0 16px; padding: 12px; min-width: 0; }
legend { font-weight: 650; }
.check { display: flex; align-items: center; gap: 10px; min-height: 48px; margin: 0; }
.check input { width: 22px; height: 22px; min-height: 0; accent-color: var(--green); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.login { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); max-width: 960px; margin: clamp(0px, 7vh, 80px) auto 0; }
.login-art { display: grid; grid-template-rows: 1fr auto; min-height: 420px; padding: 26px; background: var(--green); color: var(--lime); border-radius: 14px 0 0 14px; }
.art-sign { display: grid; place-items: center; padding: 20px; }
.art-sign svg { width: min(100%, 210px); }
.art-footer { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid #81a48c; padding-top: 12px; font-variant-numeric: tabular-nums; }
.login-form { display: grid; align-content: center; padding: clamp(22px, 4vw, 49px); border: 1px solid var(--line); border-left: 0; border-radius: 0 14px 14px 0; background: var(--paper); }
.login-form h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
.login-form p { color: var(--muted); margin: 10px 0 24px; }
.login-form button { width: 100%; margin-top: 4px; }
.person p { color: var(--muted); margin-block: 4px 12px; overflow-wrap: anywhere; }
.heading + p { margin-bottom: 14px; }
@media (max-width: 680px) {
  .bar, main { width: calc(100% - 32px); }
  main { padding-block: 24px 44px; }
  .login, .pair, .task { grid-template-columns: 1fr; }
  .login-art { min-height: 0; padding: 13px 18px; border-radius: 10px 10px 0 0; }
  .art-sign { padding: 7px 0 14px; }
  .art-sign svg { width: 66px; }
  .art-footer { font-size: .875rem; padding-top: 7px; }
  .login-form { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 10px 10px; }
  .task, .person, .editor { padding: 14px; }
  dl { border-left: 0; border-top: 1px solid var(--line); padding: 10px 0 0; }
  .actions form, .actions button { width: 100%; }
  .identity { padding-inline: 0; }
}
/* Workspace navigation, task views and discussion */
.sections { background: var(--green); color: var(--lime); padding-inline: max(16px, calc((100% - 1140px) / 2)); gap: 0; }
.sections a { padding-inline: 18px; font-weight: 700; text-decoration: none; }
.sections a:hover, .sections a:focus-visible { background: var(--lime); color: var(--green); }
.heading h1, .task-top a, .back-link { color: var(--green); }
.task-top a, .back-link { font-weight: 700; text-underline-offset: 4px; }
.task-top a { display: inline-flex; align-items: center; min-height: 44px; }
.plan-note { background: var(--lime); }
.filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; align-items: end; gap: 12px; padding: 16px; margin-bottom: 20px; background: #e3ebd5; border-radius: 8px; }
.filters label { margin: 0; }
.issue-list { border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.issue-row { display: grid; grid-template-columns: minmax(64px,.55fr) minmax(0,2.5fr) minmax(125px,1.15fr) minmax(90px,.75fr) minmax(0,1fr); gap: 12px; align-items: center; padding: 14px; min-height: 58px; text-decoration: none; overflow-wrap: anywhere; }
.issue-row + .issue-row { border-top: 1px solid var(--line); }
.issue-row:hover, .board-card:hover { background: #f1f5e5; }
.issue-row small, .board-card small, .comment time { color: var(--muted); font-variant-numeric: tabular-nums; }
.board { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.lane { min-width: 0; background: #e5ecdc; border-radius: 8px; padding: 12px; }
.lane h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 12px; color: var(--green); font-size: 1rem; }
.lane h2 span { font-variant-numeric: tabular-nums; }
.lane p { color: var(--muted); }
.board-card { display: grid; gap: 5px; margin-top: 8px; padding: 12px; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 5px; background: var(--paper); text-decoration: none; overflow-wrap: anywhere; }
.discussion { padding: 20px; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: 8px; }
.discussion h2 { margin-top: 0; }
.discussion form { margin-top: 18px; }
.comment { border-bottom: 1px solid var(--line); padding-block: 12px; }
.comment time { margin-inline-start: 8px; font-size: .875rem; }
.back-link { display: inline-flex; min-height: 44px; align-items: center; }
@media(max-width: 880px) {
  .board { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .issue-row { grid-template-columns: minmax(55px,.6fr) minmax(0,2fr) minmax(0,1.25fr) minmax(82px,.9fr); }
  .issue-row > :last-child { grid-column: 2 / -1; }
}
@media(max-width: 520px) {
  .sections a { padding-inline: 12px; }
  .filters { grid-template-columns: minmax(0,1fr); }
  .board { grid-template-columns: minmax(0,1fr); }
  .issue-row { grid-template-columns: minmax(0,1fr) auto; }
  .issue-row strong { grid-column: 1 / -1; grid-row: 2; }
  .issue-row > :last-child { grid-column: 1 / -1; }
}
/* Dark green surrounds the light working surfaces. */
body { min-height: 100vh; background: #123b32; }
main { color: #f0f5e9; }
.heading { border-bottom-color: #789989; }
.heading h1, .day, .back-link, main > .stack > p { color: #e4efbd; }
.task, .person, .editor, .login-form, .filters, .issue-list, .board, .discussion, .plan-note { color: var(--ink); }
.login-art { border: 1px solid #729484; }
main > .error { color: #ffd4d4; }
/* A quiet pinboard texture and a softer sign-in emblem. */
body {
  background-color: #123b32;
  background-image: radial-gradient(circle, #b1d3ac30 1px, transparent 1.5px);
  background-size: 24px 24px;
}
header { background: #fafbf2; }
.mark { border-radius: 13px; }
.login-art {
  position: relative;
  isolation: isolate;
  background: #245244;
  border-radius: 24px 0 0 24px;
}
.art-sign { position: relative; }
.art-sign::before {
  content: "";
  position: absolute;
  width: min(78%, 264px);
  aspect-ratio: 1;
  border-radius: 42% 48% 45% 46%;
  background: #326454;
  border: 1px solid #88a98b;
  transform: rotate(-9deg);
}
.art-sign svg { position: relative; width: min(70%, 168px); }
.art-sign::after {
  content: "✦";
  position: absolute;
  top: 15%;
  right: 14%;
  color: #f0dea1;
  font-size: 1.5rem;
  line-height: 1;
}
.login-form { border-radius: 0 24px 24px 0; background: #fafbf2; }
button, summary, .link-button { border-radius: 11px; }
main > details > summary { background: #e4edb7; }
.plan-note, .filters, .lane, .discussion { border-radius: 14px; }
.lane { background: #e8efdd; }
.board-card { border-radius: 10px; }
@media (max-width: 680px) {
  .login-art { border-radius: 18px 18px 0 0; }
  .login-form { border-radius: 0 0 18px 18px; }
  .art-sign::before { width: 83px; }
  .art-sign svg { width: 59px; }
  .art-sign::after { right: calc(50% - 59px); top: 8%; font-size: 1rem; }
}

.pager { margin-top: 16px; }
.shift-plan > .stack > p { color: #e4efbd; }
.shift-plan > details > summary {
  display: flex;
  justify-content: space-between;
  min-height: 68px;
  background: #e4edb7;
  color: var(--ink);
  list-style: none;
  text-align: left;
}
.shift-plan + section { margin-top: 24px; }
@media (max-width: 1050px), (pointer: coarse) {
  button, summary, .link-button, .sections a, nav a { min-height: 58px; }
  .shift-plan > details > summary, main > details > summary { min-height: 72px; font-size: 1.17rem; }
  .actions { margin-top: 8px; }
  .actions form { flex: 1 1 230px; }
  .actions button { width: 100%; min-height: 68px; font-size: 1.13rem; }
  .task-top a { min-height: 48px; }
  input, select, textarea { min-height: 56px; }
  .check input { min-height: 0; }
}
@media (max-width: 540px) {
  .sections { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); padding-inline: 6px; }
  .sections a { justify-content: center; padding-inline: 4px; }
  .task { row-gap: 10px; }
  .task h3 { font-size: 1.28rem; }
}
.missing { max-width: 640px; margin: clamp(0px, 6vh, 65px) auto 0; padding: clamp(22px, 6vw, 52px); background: #fafbf2; color: var(--ink); border-radius: 22px; }
.missing-mark { display: inline-flex; align-items: center; gap: 12px; padding: 6px 14px 6px 6px; margin-bottom: 22px; background: var(--lime); color: var(--green); border-radius: 16px; font-weight: 750; }
.missing h1 { font-size: clamp(2rem, 6vw, 3.3rem); }
.missing p { margin: 12px 0 22px; color: var(--muted); }
.missing .link-button { background: var(--green); color: white; }
@media (max-width: 540px) { .missing .link-button { width: 100%; } }
.shift-plan section > h2 { margin: 20px 0 8px; }
.shift-plan .assigned > h2 { color: #e4efbd; margin-top: 0; }
.assigned .task { border-left: 5px solid #dce8a4; }
.task-due { width: fit-content; margin: 10px 0; padding: 7px 12px; border-radius: 7px; color: #18483d; background: #e6efd8; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.task-due strong { margin-right: 4px; }
.task-due.late { color: #8a2832; background: #f9e3e2; }
.shift-empty { color: #e4efbd; margin-bottom: 16px; }
@media (max-width: 1050px), (pointer: coarse) {
  .assigned .task h3 { font-size: 1.38rem; }
  .assigned .task-due { font-size: 1.13rem; }
}
#tasks > .stack > p { color: #e4efbd; }
