:root {
  font: 15px/1.55 system-ui, -apple-system, sans-serif;
  color: #173a33;
  background: #f5f7f2;
  --muted: #486059;
  --line: #d5e0d8;
  --primary: #126551;
  --topbar: #173a33;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, select, input, textarea { font: inherit; }
a { color: var(--primary); }
a, button { touch-action: manipulation; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.85rem, 4vw, 2.65rem); line-height: 1.15; letter-spacing: -.045em; }
h2 { font-size: 1.3rem; line-height: 1.3; letter-spacing: -.02em; }
h3 { font-size: 1.03rem; line-height: 1.4; }
main { min-height: 65vh; }
:focus-visible { outline: 3px solid #286f59; outline-offset: 3px; }
.shell { width: min(calc(100% - 48px), 1168px); margin-inline: auto; }
.topbar { background: var(--topbar); color: white; }
.topbar :focus-visible { outline-color: #a9e1cc; }
.topbar-inner { display: flex; align-items: center; min-height: 66px; gap: 38px; }
.brand { display: inline-flex; gap: 10px; align-items: center; color: white; font-weight: 730;
  font-size: 1.14rem; text-decoration: none; white-space: nowrap; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 7px;
  background: #a9e1cc; color: #173a33; font-size: .95rem; }
nav { display: flex; align-self: stretch; gap: 6px; }
nav a { color: #d2e9e0; padding: 0 17px; display: grid; place-items: center;
  text-decoration: none; border-block-end: 3px solid transparent; white-space: nowrap; }
nav a[aria-current="page"] { color: white; border-color: #9de4cb; background: #205c4b; }
nav a:hover { background: #285f52; color: white; }
.connection { margin-left: auto; display: flex; align-items: center; gap: 8px;
  color: #dcece6; white-space: nowrap; font-size: .87rem; }
.connection::before { content: ""; display: block; border-radius: 50%; width: 8px; height: 8px;
  background: #efaa5e; }
.connection.online::before { background: #71d4a2; }
.context { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-block: 20px;
  border-bottom: 1px solid var(--line); color: var(--muted); }
.context select { width: min(260px, 100%); }
.context #updated { margin-left: auto; font-size: .86rem; }
.heading { display: flex; align-items: end; justify-content: space-between; gap: 16px;
  margin-block: 34px 24px; }
.stack, .grid { display: grid; gap: 16px; align-items: start; }
.grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px;
  align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px;
  min-width: 0; }
.panel > :not(:first-child) { margin-top: 12px; }
.panel > summary { font-size: 1.08rem; }
.muted, small { color: var(--muted); }
.error { color: #8d2727; background: #ffebeb; border-color: #f3c2c2; }
.success { color: #145e40; background: #e8f6ef; border-color: #add7c2; }
.message { margin-top: 14px; border-width: 1px; border-style: solid; padding: 10px 14px;
  border-radius: 8px; overflow-wrap: anywhere; }
.tag { display: inline-block; font-size: .81rem; padding: 3px 8px; border-radius: 6px;
  background: #e8f0ea; color: #38584a; width: fit-content; }
.tag.waiting { background: #fff0ce; color: #704c00; font-weight: 650; }
.actions, .row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row { justify-content: space-between; }
button, .button { cursor: pointer; border: 1px solid transparent; border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center; padding: 8px 13px;
  min-height: 42px; background: var(--primary); color: white; font-weight: 620;
  text-decoration: none; text-align: center; line-height: 1.3; }
button:hover, .button:hover { background: #0c5243; }
.secondary { border-color: #bacfc2; color: #205c4b; background: #fff; }
.secondary:hover { background: #e8f3ee; }
button:active:not(.secondary, .link), .button:active:not(.secondary) { background: #0a4538; }
button:disabled { cursor: default; opacity: .55; }
.link { color: var(--primary); background: transparent; text-align: left; padding-inline: 0;
  justify-content: start; }
.link:hover { background: transparent; text-decoration: underline; }
input:not([type="checkbox"]), select, textarea { width: 100%; padding: 8px 10px;
  border: 1px solid #bdcec3; border-radius: 7px; background: white; color: inherit; min-height: 42px; }
input[type="file"] { padding: 6px; overflow: hidden; }
textarea { resize: vertical; min-height: 88px; }
label.field { display: grid; gap: 4px; min-width: 0; font-weight: 550; }
label.field small { font-weight: 400; }
summary { cursor: pointer; font-weight: 700; }
dl { display: grid; grid-template-columns: minmax(90px, max-content) minmax(0, 1fr);
  gap: 4px 12px; margin: 0; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
pre { overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .84rem;
  background: #edf3ef; padding: 12px; border: 1px solid var(--line); border-radius: 7px;
  max-height: 440px; margin: 0; }
code { overflow-wrap: anywhere; }
.scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 10px 9px; vertical-align: top; border-bottom: 1px solid var(--line); }
th { font-size: .86rem; color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f3f8f5; }
.item-title { font-weight: 720; }
.dates { white-space: nowrap; }
.date-cell { display: grid; gap: 2px; }
.timeline { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.day { border-left: 1px solid var(--line); min-height: 105px; padding: 7px; display: grid;
  align-content: start; gap: 5px; }
.day:last-child { border-right: 1px solid var(--line); }
.day.weekend { background: #edf2ed; }
.day .link { min-height: 0; min-width: 0; display: block; overflow-wrap: anywhere;
  font-size: .8rem; }
.footer { border-top: 1px solid var(--line); margin-top: 26px; padding-block: 13px 22px;
  font-size: .82rem; color: var(--muted); }
.event-list { padding-left: 20px; margin-bottom: 0; }
.event-list li { overflow-wrap: anywhere; padding-block: 3px; }

@media (max-width: 700px) {
  .shell { width: calc(100% - 28px); }
  .topbar-inner { display: grid; grid-template-columns: 1fr auto; gap: 0; padding-top: 12px; }
  .connection { grid-row: 1; grid-column: 2; }
  nav { grid-row: 2; grid-column: 1 / -1; margin-top: 6px; }
  nav a { min-height: 46px; padding-inline: 11px; }
  .context { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }
  .context select { width: 100%; grid-row: 2; }
  .context #updated { grid-row: 3; grid-column: 1 / -1; margin: 0; }
  .context #refresh { grid-row: 2; }
  .heading { align-items: start; flex-direction: column; margin-block: 24px 17px; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 14px; }
  dl { grid-template-columns: minmax(78px, max-content) minmax(0, 1fr); }
}
.section-gap { margin-top: 16px; }
[hidden] { display: none !important; }
.inbox-split { grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr); }
.manual-steps { margin-bottom: 0; padding-inline-start: 1.6rem; }
.manual-steps > li + li { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
.manual-steps > li::marker { color: var(--primary); font-weight: 700; }
.manual-steps .stack { gap: 10px; }
.manual-steps .button, .manual-steps button { max-width: 100%; overflow-wrap: anywhere; }
.manual-steps form > .message { margin-top: 0; }
.item-cell[data-indent="1"] { padding-left: 12px; }
.item-cell[data-indent="2"] { padding-left: 24px; }
.item-cell[data-indent="3"] { padding-left: 36px; }
.item-cell[data-indent="4"] { padding-left: 48px; }

@media (max-width: 700px) {
  .inbox-split { grid-template-columns: minmax(0, 1fr); }
  .timeline { grid-template-columns: minmax(0, 1fr); }
  .day { grid-template-columns: 54px minmax(0, 1fr); min-height: 36px;
    border-left: none; border-bottom: 1px solid var(--line); }
  .day:last-child { border-right: 0; border-bottom: 0; }
  .day button { grid-column: 2; }
  .day strong { grid-row: span 2; }
  .day .link { min-height: 33px; }
  .inbox-split table, .inbox-split tbody { display: block; }
  .inbox-split thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%);
    overflow: hidden; white-space: nowrap; }
  .inbox-split tr { display: grid; padding-block: 8px; border-bottom: 1px solid var(--line); }
  .inbox-split td { display: grid; padding: 4px 0; border: 0; gap: 3px; overflow-wrap: anywhere; }
  .inbox-split td::before { content: attr(data-label); color: var(--muted); font-size: .78rem; }
  .inbox-split td ul { margin-top: 0; }
}
.footer span { display: flex; justify-content: space-between; align-items: center; }
.before-panel { margin-bottom: 16px; }

@media (max-width: 440px) {
  .manual-steps dl { grid-template-columns: minmax(0, 1fr); }
  .manual-steps dd + dt { margin-top: 4px; }
}
