:root {
  color-scheme: light;
  --ink: #102923;
  --muted: #52655e;
  --line: #ceddd5;
  --paper: #f4f8f5;
  --green: #076449;
  --nav: #11271f;
  font: 16px/1.6 system-ui, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
img, canvas { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #167b58;
  outline-offset: 3px;
}
.site-header { background: var(--nav); color: white; }
.site-header nav, main { width: min(100% - 2rem, 1180px); margin: auto; }
.site-header nav { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-header a { color: white; text-decoration: none; }
.brand { font-size: 1.25rem; font-weight: 800; letter-spacing: -.03em; }
.header-note { color: #c7e5d5; font-size: .83rem; }
main { padding: 2.7rem 0 3rem; }
.intro { max-width: 830px; margin-bottom: 2rem; }
.kicker { margin: 0 0 .45rem; color: var(--green); font-size: .8rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
h1 { font-size: clamp(2rem, 5vw, 3.65rem); line-height: 1.08; letter-spacing: -.045em; margin: 0 0 1rem; }
h2 { font-size: 1.35rem; line-height: 1.25; margin: 0 0 .65rem; }
h3 { font-size: 1rem; line-height: 1.3; margin: 0 0 .45rem; }
p { margin: .4rem 0 .8rem; }
.description { color: var(--muted); font-size: 1.12rem; }
.preview-grid { display: grid; gap: 1rem; }
.preview-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,15rem),1fr)); }
.panel, .preview-card { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem; min-width: 0; }
.panel { margin-bottom: 1rem; }
.workbench { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(0, 1.25fr); gap: 1.25rem; align-items: start; }
.workbench > * { min-width: 0; }
.note { background: #e6f4eb; border-left: 4px solid #1b815d; padding: .75rem .95rem; margin: .65rem 0 1rem; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.tools, .row-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
button, .button {
  background: #edf6ef;
  border: 1px solid #abc6b6;
  border-radius: 8px;
  padding: .56rem .85rem;
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
}
button:hover, .button:hover { background: #e1f1e6; }
.primary { background: var(--green); color: white; border-color: var(--green); }
.primary:hover { background: #084d3c; }
button:disabled { cursor: default; opacity: .56; }
label { display: block; font-size: .87rem; font-weight: 700; }
input, textarea, select {
  display: block; width: 100%; max-width: 100%;
  margin: .32rem 0 .75rem; border: 1px solid #a8bbb0; border-radius: 7px;
  background: white; color: var(--ink); font: inherit; padding: .55rem .58rem;
}
input[type="range"] { padding: 0; accent-color: var(--green); }
textarea { resize: vertical; min-height: 4.5rem; }
input[type="file"] { font-size: .82rem; }
fieldset { min-width: 0; margin: .75rem 0; padding: .75rem; border: 1px solid var(--line); border-radius: 9px; }
legend { padding: 0 .35rem; font-weight: 750; }
.number-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .1rem .6rem; }
.notice { min-height: 1.6rem; color: var(--muted); margin: .7rem 0; overflow-wrap: anywhere; }
.alert { color: #8a361b; }
.ok { color: #075a42; }
.preview-card canvas { width: 100%; background: #dce8df; border-radius: 7px; }
.preview-card p { margin-bottom: 0; overflow-wrap: anywhere; }
.preview-card + .preview-grid, .preview-grid + .preview-card { margin-top: 1rem; }
.timeline { display: flex; height: 2.7rem; gap: 2px; margin: .8rem 0; background: #e9efe9; border-radius: 6px; overflow: hidden; }
.timeline span { min-width: 0; overflow: hidden; text-align: center; font-weight: 750; font-size: .82rem; line-height: 2.7rem; color: #0b412e; background: #b7e2c8; }
.cue-track { position: relative; height: 1rem; background: #e6eee8; border-radius: 5px; }
.cue-track span { position: absolute; height: 100%; background: #3e956c; border-radius: 4px; }
.timeline-list { list-style: none; padding: 0; margin: .8rem 0; }
.timeline-list li { padding: .65rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.timeline-list strong { display: block; }
.related { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1.5rem; }
footer { width: min(100% - 2rem,1180px); margin: auto; border-top: 1px solid var(--line); padding: 1rem 0 2rem; color: var(--muted); font-size: .85rem; }
.skip { position: absolute; top: -100px; left: 1rem; background: white; padding: .5rem; z-index: 2; }
.skip:focus { top: .4rem; }
@media(max-width: 760px) {
  .workbench { grid-template-columns: 1fr; }
  main { padding-top: 1.8rem; }
  .header-note { font-size: .74rem; }
}
