:root {
  color-scheme: light;
  font-family: Inter, "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  color: #17324d;
  background: #f3f7f6;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
a { color: #075985; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; color: #092f3d; }
h1 { margin: 0 0 .75rem; font-size: clamp(1.9rem, 4vw, 2.7rem); letter-spacing: -.025em; }
h2 { margin: 0 0 .8rem; font-size: 1.25rem; }
h3 { margin: 0 0 .65rem; font-size: 1.05rem; }
p { margin: .5rem 0 1rem; }
.header {
  min-height: 76px;
  display: flex;
  align-items: center;
  background: #073b4c;
  color: #fff;
  padding: 1rem max(1rem, calc((100% - 1200px) / 2));
  border-bottom: 4px solid #18a999;
}
.header a { color: #fff; text-decoration: none; font-size: 1.15rem; font-weight: 750; }
.header small { display: block; color: #bce9e3; font-size: .78rem; font-weight: 600; margin-top: .1rem; }
.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); max-width: 1200px; min-height: calc(100vh - 76px); margin: auto; }
.tree { padding: 1.25rem 1rem; background: #fff; border-right: 1px solid #d5e0e3; }
.tree details + details { margin-top: .75rem; }
.tree summary { font-weight: 750; cursor: pointer; color: #294b57; }
.tree ul { padding-left: 1.1rem; margin: .4rem 0 .8rem; }
.tree li { margin: .25rem 0; }
.tree a[aria-current="page"], .tree a.current { font-weight: 750; color: #064e3b; }
.main { padding: 2rem clamp(1rem, 4vw, 2.6rem) 4rem; max-width: 950px; width: 100%; }
.lead { max-width: 720px; color: #45606a; font-size: 1.08rem; }
.eyebrow { margin: 0 0 .35rem; color: #0f766e; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.breadcrumb { font-size: .9rem; color: #607780; margin: 0 0 1rem; }
.card {
  background: #fff;
  border: 1px solid #d5e0e3;
  border-radius: .7rem;
  padding: 1.1rem;
  margin: 1rem 0;
  box-shadow: 0 5px 18px rgb(15 54 68 / 5%);
}
.grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); align-items: end; }
.form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); }
.form-grid .card { margin: 0; }
.workflow { margin: 1.7rem 0; }
label { display: grid; gap: .3rem; color: #294b57; font-size: .9rem; font-weight: 700; }
input, select, textarea, button {
  min-height: 42px;
  border-radius: .35rem;
  font: 600 .92rem/1.3 inherit;
}
input, select, textarea { width: 100%; padding: .55rem .65rem; color: #17324d; background: #fff; border: 1px solid #9bb0b7; }
textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid #5eead4;
  outline-offset: 2px;
}
button, .button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: .58rem .9rem;
  background: #0f766e;
  color: #fff;
  border: 1px solid #0f766e;
  border-radius: .35rem;
  cursor: pointer;
  text-decoration: none;
  font-weight: 750;
}
button:hover, .button:hover { background: #0b5f59; }
button:disabled { cursor: wait; opacity: .6; }
.login-form { display: grid; gap: .8rem; grid-template-columns: minmax(220px, 1fr) auto; align-items: end; max-width: 620px; }
.checkbox-label { display: flex; align-items: center; gap: .55rem; }
.checkbox-label input { width: 1.1rem; min-height: auto; height: 1.1rem; }
.rehearsal-controls { display: grid; gap: .85rem; }
.run-log { padding-left: 1.5rem; margin: .8rem 0; }
.run-log li { margin: .25rem 0; }
.run-log li[data-state="done"]::marker { color: #0f766e; }
.run-log li[data-state="failed"] { color: #b91c1c; font-weight: 700; }
.note { color: #45606a; }
.note[data-tone="success"] { color: #0b6b4f; font-weight: 700; }
.note[data-tone="error"] { color: #b42318; font-weight: 700; }
.note[data-tone="busy"] { color: #075985; font-weight: 700; }
.actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: .68rem .6rem; border-bottom: 1px solid #d5e0e3; text-align: left; vertical-align: top; white-space: nowrap; }
th { color: #45606a; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.subtle-line { display: block; color: #607780; font-size: .76rem; margin-top: .15rem; }
.order-summary { position: relative; border-top: 4px solid #0f766e; }
.order-summary h2 { padding-right: 9rem; }
.status-badge { float: right; padding: .28rem .6rem; border-radius: 999px; background: #dff7f1; color: #075e54; font-size: .78rem; font-weight: 800; }
.definition-list { display: grid; grid-template-columns: minmax(110px, .35fr) 1fr; margin: 0; }
.definition-list dt, .definition-list dd { padding: .38rem 0; border-bottom: 1px solid #e8eeef; }
.definition-list dt { color: #607780; font-size: .85rem; font-weight: 700; }
.definition-list dd { margin: 0; overflow-wrap: anywhere; }
.event-form { display: grid; gap: .75rem; align-content: start; }
.event-form-critical { border-color: #d39e00; }
.reviewer-panel summary { cursor: pointer; color: #092f3d; font-size: 1.1rem; font-weight: 800; }
.reviewer-panel[open] summary { margin-bottom: 1rem; }
.timeline { padding: 0; margin: 0; list-style: none; }
.timeline-item { position: relative; padding: 0 0 1.15rem 1.5rem; border-left: 2px solid #9fd7cf; }
.timeline-item::before { content: ""; position: absolute; width: .65rem; height: .65rem; left: -.4rem; top: .25rem; border-radius: 50%; background: #0f766e; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item h3 { display: flex; gap: .2rem; align-items: baseline; }
.sequence { color: #607780; font-weight: 600; }
.event-fields { grid-template-columns: minmax(90px, .28fr) 1fr; }
.media-list { padding-left: 1.2rem; }
.media-list li { margin: .55rem 0; }
.metrics-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1rem 0; }
.metric-card { padding: 1.1rem; background: #073b4c; color: #fff; border-radius: .7rem; }
.metric-label { display: block; color: #bce9e3; font-size: .82rem; font-weight: 700; }
.metric { display: block; margin-top: .2rem; font-size: 2rem; line-height: 1.1; }
figure img { display: block; width: 100%; height: auto; }

@media (max-width: 760px) {
  .layout { display: block; }
  .tree { border-right: 0; border-bottom: 1px solid #d5e0e3; }
  .main { padding: 1.35rem 1rem 3rem; }
  .metrics-grid { grid-template-columns: 1fr; }
  .login-form { grid-template-columns: 1fr; }
  .definition-list, .event-fields { grid-template-columns: 1fr; }
  .definition-list dt { padding-bottom: 0; border-bottom: 0; }
  .definition-list dd { padding-top: .05rem; }
  .status-badge { float: none; display: inline-block; margin-bottom: .65rem; }
  .order-summary h2 { padding-right: 0; }
}
