:root {
  color-scheme: light;
  --bg: #f5f7f7;
  --surface: #ffffff;
  --ink: #172126;
  --muted: #61717a;
  --line: #d8e0e2;
  --primary: #087f8c;
  --accent: #d85545;
  --gold: #d79b28;
  --green: #3b8b5f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(8, 127, 140, 0.13), transparent 34%),
    linear-gradient(315deg, rgba(216, 85, 69, 0.09), transparent 34%),
    var(--bg);
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.shell { min-height: 100vh; padding: 18px; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1520px;
  margin: 0 auto 16px;
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand > div:last-child { min-width: 0; }
.mark {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 28% 32%, var(--primary) 0 8px, transparent 9px),
    radial-gradient(circle at 70% 42%, var(--accent) 0 8px, transparent 9px),
    radial-gradient(circle at 50% 72%, var(--gold) 0 7px, transparent 8px),
    var(--surface);
  box-shadow: 0 16px 44px rgba(23, 33, 38, 0.11);
}
.eyebrow { margin: 0 0 5px; color: var(--primary); font-size: 0.76rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 4px; font-size: clamp(1.55rem, 3vw, 2.8rem); line-height: 1; overflow-wrap: anywhere; }
h2 { margin-bottom: 0; font-size: 1.08rem; }
.brand p:last-child { margin: 0; color: var(--muted); line-height: 1.42; overflow-wrap: anywhere; }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.top-actions { justify-content: flex-end; }
button, .top-actions span {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 12px;
  font-weight: 850;
}
.primary { background: var(--primary); border-color: #066b76; color: #fff; box-shadow: 0 10px 28px rgba(8, 127, 140, 0.24); }
.grid {
  display: grid;
  grid-template-columns: minmax(310px, 460px) minmax(0, 1fr) minmax(280px, 380px);
  gap: 16px;
  align-items: start;
  max-width: 1520px;
  margin: 0 auto;
}
.panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 50px rgba(23, 33, 38, 0.10);
}
.task-form { display: grid; gap: 13px; }
.scenario, .capture, .reflection {
  padding: 13px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fbfcfc;
  line-height: 1.5;
}
.capture { display: grid; gap: 5px; border-left: 4px solid var(--green); border-radius: 0 8px 8px 0; background: #edf8f2; }
.capture span { color: var(--muted); }
.reflection { margin: 12px 0 0; border-color: rgba(215, 155, 40, 0.48); background: #fff8e8; color: #5d4511; }
label { color: var(--muted); font-weight: 830; }
textarea, input[type="text"], input[type="number"], select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px;
}
textarea { min-height: 94px; resize: vertical; line-height: 1.45; }
.slider { display: grid; grid-template-columns: minmax(130px, 190px) minmax(0, 1fr) 58px; gap: 10px; align-items: center; }
input[type="range"] { width: 100%; accent-color: var(--primary); }
.value { text-align: right; color: var(--ink); font-weight: 950; font-variant-numeric: tabular-nums; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-grid.three { grid-template-columns: repeat(3, 1fr); }
.choice-card {
  min-height: 112px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}
.choice-card:has(input:checked) { border-color: var(--primary); background: #e8f6f7; }
.choice-card b { display: block; margin-bottom: 6px; }
.choice-card span { display: block; color: var(--muted); font-size: 0.9rem; line-height: 1.35; }
.check { display: flex; gap: 9px; align-items: flex-start; font-weight: 650; }
.check input { margin-top: 4px; accent-color: var(--green); }
canvas { display: block; width: 100%; height: auto; aspect-ratio: 1.75; margin: 14px 0; border-radius: 8px; background: #101719; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.metrics div { min-height: 76px; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfc; }
.metrics strong { display: block; font-size: 1.28rem; line-height: 1.05; }
.metrics span { display: block; margin-top: 5px; color: var(--muted); font-size: 0.8rem; font-weight: 850; }
.feed { display: grid; gap: 8px; max-height: 500px; overflow: auto; margin-top: 12px; }
.feed-item { padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfc; }
.feed-item b { display: block; margin-bottom: 4px; font-size: 0.88rem; }
.feed-item span { color: var(--muted); font-size: 0.84rem; line-height: 1.35; }
.matrix { display: grid; gap: 7px; }
.matrix-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; }
.mouse-zone { height: 230px; border: 1px dashed var(--line); border-radius: 8px; background: #fbfcfc; position: relative; overflow: hidden; }
.mouse-zone span { position: absolute; top: 50%; transform: translateY(-50%); padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: white; font-weight: 850; }
.mouse-zone span:first-child { left: 14px; }
.mouse-zone span:last-child { right: 14px; }
details { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); }
summary { color: var(--ink); cursor: pointer; font-weight: 850; }
@media (max-width: 1180px) {
  .grid { grid-template-columns: minmax(310px, 460px) minmax(0, 1fr); }
  .commons { grid-column: 1 / -1; }
}
@media (max-width: 780px) {
  .shell { padding: 12px; }
  .topbar { flex-direction: column; align-items: stretch; }
  .brand { align-items: flex-start; }
  .brand p:last-child { max-width: 28ch; }
  .top-actions { justify-content: flex-start; }
  .grid, .metrics, .choice-grid, .choice-grid.three, .slider, .matrix-row { grid-template-columns: 1fr; }
  .value { text-align: left; }
  .actions button { width: 100%; }
}
