* { box-sizing: border-box; }
:root {
  --ink: #142b2a;
  --muted: #53645e;
  --green: #075d4b;
  --accent: #dafea6;
  --line: #d5ddd3;
  --page: #f3f4ed;
  --white: #fff;
  font: 16px/1.5 "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
}
body, h1, h2, h3, p { margin: 0; }
.wrap { width: min(1140px, calc(100% - 48px)); margin-inline: auto; }
header { background: var(--white); border-bottom: 1px solid var(--line); }
.top, .head, .tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.top { justify-content: space-between; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -.045em; }
.brand span { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 10px 10px 10px 3px; background: var(--green); color: var(--accent); }
button, input, textarea { font: inherit; color: inherit; }
button { min-height: 44px; padding: 8px 13px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; font-weight: 650; cursor: pointer; }
button:hover:not(:disabled) { border-color: var(--green); }
button:disabled { color: #5d6d64; background: #f1f4f0; cursor: default; }
button.primary { background: var(--green); color: var(--white); border-color: var(--green); }
button.primary:hover { background: #074d3e; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
input:not([type="checkbox"]), textarea { min-height: 44px; border: 1px solid #a2b1a5; background: var(--white); border-radius: 8px; padding: 8px 11px; max-width: 100%; }
:is(input:not([type="checkbox"]), textarea):focus { border-color: var(--green); outline: 1px solid var(--green); outline-offset: 1px; }
.intro { padding: 36px 0 23px; }
h1 { font-size: clamp(33px, 5vw, 57px); line-height: 1.07; letter-spacing: -.06em; }
.intro p, .review-help { color: var(--muted); margin-top: 8px; }
h2 { font-size: 24px; letter-spacing: -.04em; line-height: 1.15; }
h3 { font-size: 16px; }
.desk { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
.paper, .review { background: var(--white); border: 1px solid var(--line); border-radius: 15px; min-width: 0; padding: 21px; }
.paper { padding: 0; overflow: clip; }
.head { background: #153a32; color: white; padding: 19px; gap: 13px; }
.head p { margin-top: 4px; font-size: 13px; color: #d6eadc; }
.schedule-heading { flex: 1; }
.date-tile { flex: none; display: grid; min-width: 59px; padding: 6px; border-radius: 9px; background: var(--accent); color: var(--ink); text-align: center; }
.date-tile strong { font-size: 27px; line-height: 1.1; }
.date-tile span { font-size: 11px; font-weight: 650; }
.filters { display: flex; gap: 6px; padding: 13px 18px 8px; }
.filters button[aria-pressed="true"] { color: var(--green); border-color: #8bb09d; background: #eaf4eb; }
#schedule { padding-inline: 18px; }
.item { border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: start; gap: 8px; padding: 12px 0; }
.item div { min-width: 0; }
.item label { display: flex; align-items: center; min-height: 44px; gap: 8px; overflow-wrap: anywhere; cursor: pointer; }
.item input { width: 18px; height: 18px; flex: none; accent-color: var(--green); }
.item input:checked + strong { text-decoration: line-through; color: var(--muted); }
.item small, .item details { display: block; color: var(--muted); font-size: 13px; }
.item details { margin-top: 7px; overflow-wrap: anywhere; }
.item button { font-size: 13px; white-space: nowrap; }
.empty { color: var(--muted); padding: 22px 0; max-width: 35ch; }
.schedule-tools { padding: 14px 18px; border-top: 1px solid var(--line); }
.review form { margin-top: 13px; }
.review textarea { width: 100%; display: block; min-height: 108px; resize: vertical; margin-top: 5px; }
.review label { font-weight: 650; font-size: 14px; }
.review .tools { margin-top: 10px; }
.review .tools label { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.proposal { border-top: 1px solid var(--line); padding-top: 15px; }
.diff { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.diff > div { flex: 1; min-width: 0; border-radius: 7px; padding: 7px 9px; background: #f0f2ed; }
.diff .new { background: #e3f5d8; }
.diff small { display: block; color: var(--muted); }
.diff strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
.diff .arrow { color: var(--green); font-weight: 750; }
blockquote { margin: 10px 0; border-left: 2px solid #7ba993; padding-left: 10px; color: var(--muted); overflow-wrap: anywhere; }
.fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 155px); gap: 8px; margin-top: 10px; }
.fields label { display: grid; gap: 4px; min-width: 0; }
.fields input { width: 100%; }
.error { color: #7b2319; }
#status:not(:empty) { margin-top: 12px; color: #285344; font-size: 14px; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; margin-top: 26px !important; padding: 13px 0 22px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 820px) {
  .desk { grid-template-columns: minmax(0, 1fr); }
  .wrap { width: calc(100% - 32px); }
  .intro { padding-top: 24px; }
}
@media (max-width: 480px) {
  .top { min-height: 62px; }
  .brand { font-size: 17px; gap: 6px; }
  .top button { font-size: 12px; padding-inline: 8px; }
  .review, .head { padding: 14px; }
  .head input { max-width: 143px; }
  .fields { grid-template-columns: minmax(0, 1fr); }
}

.head input { color: var(--ink); }
.head input:focus-visible { outline-color: var(--accent); }
@media (max-width: 480px) {
  .head input { margin-left: 72px; }
}

@media (prefers-reduced-motion: no-preference) {
  button {
    transition: background-color 140ms ease-out, border-color 140ms ease-out, transform 100ms ease-out;
  }
  button:active:not(:disabled) { transform: translateY(1px); }
  :is(input:not([type="checkbox"]), textarea) { transition: border-color 140ms ease-out; }
  .proposal { animation: proposal-in 220ms cubic-bezier(.2, .7, .25, 1) both; }
  .proposal:nth-child(2) { animation-delay: 35ms; }
  .just-saved { animation: saved-highlight 360ms ease-out; }
}
@keyframes proposal-in {
  from { opacity: .35; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes saved-highlight {
  from { background-color: #e3f5d8; }
  to { background-color: transparent; }
}
