:root {
  color-scheme: light;
  --page: #f6f5ef;
  --ink: #183c42;
  --header: #163e47;
  --green: #194c45;
  --line: #b4c9c2;
  --red: #991b1b;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.65 system-ui, sans-serif;
}
main { max-width: 740px; margin: auto; padding: 22px 18px 60px; }
header { background: var(--header); color: white; padding: 30px 24px; border-radius: 10px; }
small { color: #c5dcd5; }
h1 { font-size: clamp(30px, 7vw, 46px); line-height: 1.25; margin: 24px 0 14px; overflow-wrap: anywhere; }
header p { color: #dae7e3; margin: 0; }
h2 { font-size: 22px; margin: 0; overflow-wrap: anywhere; }
h3 { font-size: 1.17em; margin: 1em 0; }
a { color: #245952; }
article { background: white; border-radius: 10px; margin-top: 16px; padding: 20px; }
article p { margin: 4px 0; color: #536462; }
button, .action {
  display: block;
  width: 100%;
  padding: 13px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--green);
  text-align: center;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}
.primary { background: #19564f; color: white; }
.channel-link { display: flex; align-items: center; gap: 8px; padding: 20px; text-align: left; font-weight: bold; }
.channel-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.channel-arrow { margin-left: auto; flex-shrink: 0; }
.channel-link.priority { color: var(--red); background: #fff5f5; border-color: #b42323; }
.priority-badge { background: var(--red); color: white; border-radius: 4px; padding: 2px 6px; flex-shrink: 0; line-height: normal; }
.action:hover, button:hover { background: #f1f7f4; }
.primary:hover { background: #13453f; }
.channel-link.priority:hover { background: #ffecec; }
:focus-visible { outline: 3px solid #2b7468; outline-offset: 3px; }
.priority:focus-visible { outline-color: var(--red); }
.action[aria-disabled="true"], button:disabled { cursor: not-allowed; color: #73817a; background: #f4f5f1; }
.header-back { color: white; }
.draft-text { white-space: pre-wrap; }
.draft-text.spacious { overflow-wrap: anywhere; line-height: 1.85; }
textarea { width: 100%; box-sizing: border-box; font: inherit; }
textarea[hidden] { display: none; }
#status { color: #285d50; }
details { margin-top: 14px; }
summary { cursor: pointer; padding: 10px 0; }
.video-attachment summary { padding: 14px 0; }
.attachments-first summary { padding: 12px 0; }
article img { max-width: 100%; height: auto; }
video { width: 100%; }
.media-placeholder { display: grid; place-items: center; aspect-ratio: 16 / 9; background: #f2f5f0; border: 1px dashed var(--line); color: #687872; text-align: center; padding: 20px; }
.action { overflow-wrap: anywhere; }
footer { margin-top: 32px; border-top: 1px solid #ccd6d0; padding-top: 16px; font-size: 14px; color: #687872; }
.skip-link { position: absolute; left: 18px; top: -60px; padding: 8px 14px; background: white; z-index: 10; }
.skip-link:focus { top: 4px; }
.empty-state { text-align: center; }
@media (max-width: 420px) {
  .channel-link { gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
