:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: #162824;
  background: #f2f6f4;
  --paper: #fff;
  --line: #dce7e1;
  --muted: #52665d;
  --deep: #123c34;
  --green: #145e4b;
  --mint: #e0f1e7;
  --rust: #8c3c26;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
[hidden] { display: none !important; }
h1, h2, h3, p, dl, dd { margin: 0; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #318e73;
  outline-offset: 3px;
}
.layout { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner, .account, .brand { display: flex; align-items: center; }
.header-inner { min-height: 72px; justify-content: space-between; gap: 12px; }
.brand { gap: 11px; font-weight: 800; letter-spacing: -.035em; }
.brand-mark { width: 31px; height: 31px; display: grid; place-items: center; flex: none; background: var(--deep); border-radius: 10px; }
.brand-mark::after, .review-button[aria-pressed="true"]::before {
  content: "";
  width: 11px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg) translateY(-1px);
}
.brand-mark::after { color: #abf1c3; }
.account { gap: 12px; }
.account-name { font-size: .9rem; font-weight: 750; }
.quiet { min-height: 38px; background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; color: var(--deep); font-size: .875rem; font-weight: 700; white-space: nowrap; }
.quiet:hover { background: var(--mint); }
.initial-status { margin-block: 54px; color: var(--muted); }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.login { max-width: 445px; margin: clamp(34px, 11vh, 110px) auto; padding: clamp(22px, 4vw, 36px); }
.login h1 { font-size: clamp(1.55rem, 4vw, 2rem); letter-spacing: -.06em; }
.intro { margin: 8px 0 24px; color: var(--muted); line-height: 1.55; }
.person-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border: 0; margin: 0 0 17px; padding: 0; }
.person-choices label { display: grid; cursor: pointer; }
.person-choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.person-choices span { display: grid; min-height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 9px; font-weight: 700; }
.person-choices input:checked + span { background: var(--mint); border-color: #85bca7; color: var(--deep); }
.person-choices input:focus-visible + span { outline: 3px solid #318e73; outline-offset: 3px; }

.overview { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-top: 34px; padding: 30px 34px; border-radius: 23px; background: var(--deep); color: #fff; }
.today { display: block; color: #b6e8cb; font-size: .9rem; font-weight: 700; }
.overview h1 { font-size: clamp(2rem, 5vw, 3.15rem); letter-spacing: -.075em; line-height: 1.15; margin-top: 9px; white-space: nowrap; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.stats div { padding-inline: clamp(17px, 3.3vw, 38px); border-left: 1px solid #416b60; }
.stats div:last-child { padding-right: 7px; }
.stats dt { font-size: .875rem; font-weight: 650; color: #cee4d9; white-space: nowrap; }
.stats dd { font-size: 2rem; line-height: 1.12; margin-top: 6px; font-weight: 800; font-variant-numeric: tabular-nums; }

.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, 352px); align-items: start; gap: 26px; margin-block: 26px 55px; }
.section-header, .editor-top, .card-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
h2 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -.05em; }
.agenda h2 { margin-block: 8px; }
.add-shortcut { display: none; }
.filters { display: flex; flex-wrap: wrap; gap: 5px; margin-block: 12px 15px; }
.filters button { min-height: 42px; padding: 7px 12px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); font-size: .9rem; font-weight: 750; }
.filters button[aria-pressed="true"] { background: var(--paper); border-color: var(--line); color: var(--deep); box-shadow: 0 1px 2px #122e2410; }
.filters button:hover { color: var(--deep); background: #e5eee9; }
.agenda-list { display: grid; gap: 11px; }
.empty { padding: 35px 20px; border: 1px dashed #b9cfc4; border-radius: var(--radius); text-align: center; background: #f9fbfa; }
.empty strong { display: block; font-size: 1.05rem; }
.empty p { margin-top: 7px; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.empty button { margin-top: 17px; }
.card { padding: 17px; }
.card-header { align-items: start; }
.card-title { font-size: 1.1rem; letter-spacing: -.03em; line-height: 1.4; overflow-wrap: anywhere; }
.card-date { display: block; margin-top: 3px; color: var(--muted); font-size: .875rem; }
.card details { margin-top: 10px; }
.card summary { color: var(--green); font-size: .9rem; font-weight: 700; cursor: pointer; }
.card details p { margin-top: 9px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.review-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.review-button { position: relative; min-height: 70px; display: grid; gap: 2px; align-content: center; justify-items: start; padding: 7px 8px; border: 1px solid var(--line); border-radius: 9px; background: #f6f8f7; color: var(--muted); text-align: left; }
.review-button:hover { border-color: #45977c; }
.review-button strong { font-size: .85rem; }
.review-button time { font-size: .85rem; font-variant-numeric: tabular-nums; }
.review-button small { font-size: .78rem; }
.review-button.due { background: var(--mint); border-color: #a8d2bb; color: #154e3f; }
.review-button.overdue { background: #fff2eb; border-color: #e9c5b3; color: var(--rust); }
.review-button[aria-pressed="true"] { color: var(--green); background: #f4faf6; }
.review-button[aria-pressed="true"]::before { position: absolute; top: 13px; right: 9px; width: 9px; }

.editor { padding: 20px; scroll-margin-top: 18px; }
.editor-top { margin-bottom: 17px; }
.field { display: block; margin-bottom: 14px; font-size: .9rem; font-weight: 720; }
.field input, .field textarea { display: block; width: 100%; min-height: 44px; margin-top: 6px; padding: 10px; border: 1px solid #c9d9d0; border-radius: 9px; background: #fcfefd; color: #162824; font-size: 1rem; font-weight: 400; }
.field textarea { resize: vertical; min-height: 92px; line-height: 1.45; }
.field input::placeholder, .field textarea::placeholder { color: #617568; }
.optional { color: var(--muted); margin-left: 4px; font-size: .8rem; font-weight: 500; }
.intervals { display: grid; grid-template-columns: repeat(4, 1fr); padding: 10px 4px; border-radius: 10px; margin-block: 2px 14px; background: #edf5f0; }
.intervals div { display: grid; text-align: center; gap: 3px; font-size: .83rem; color: var(--muted); }
.intervals div + div { border-left: 1px solid #d6e5dc; }
.intervals time { color: var(--deep); font-weight: 800; font-variant-numeric: tabular-nums; }
.primary { display: block; width: 100%; min-height: 46px; padding: 9px 12px; background: var(--green); border: 1px solid var(--green); border-radius: 9px; color: #fff; font-weight: 800; }
.primary:hover { background: var(--deep); }
.feedback { margin-bottom: 12px; border-radius: 8px; padding: 8px 10px; background: var(--mint); color: var(--deep); font-size: .9rem; line-height: 1.5; }
.error { color: var(--rust); background: #fff2eb; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 780px) {
  .layout { width: min(620px, calc(100% - 34px)); }
  .workspace { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .add-shortcut { display: inline-block; }
  .overview { display: block; padding: 21px; margin-top: 23px; }
  .stats { margin-top: 19px; padding-top: 15px; border-top: 1px solid #416b60; }
  .stats div { padding-inline: clamp(7px, 3vw, 17px); }
  .stats div:first-child { border-left: 0; padding-left: 0; }
  .stats dd { font-size: 1.75rem; }
}

@media (max-width: 375px) {
  .layout { width: calc(100% - 24px); }
  .account { gap: 6px; }
  .brand { gap: 6px; font-size: .9rem; }
  .account-name { display: none; }
  .overview { padding-inline: 15px; }
  .card, .editor { padding: 13px; }
  .review-button { padding-inline: 5px; }
}
