/* Story Engine — the canvas world IS the brand. Night-navy sky, terrain
 * green, start-flag gold; square pixel-game chrome (max 2px radius, hard
 * offset shadows), sans for prose, mono for ALL data. Type sizes >= 12px. */
:root {
  color-scheme: dark;
  --bg: #0b1026;            /* night sky — same family as canvas background */
  --bg-panel: #11172f;
  --bg-inset: #0d1229;
  --line: #232b4a;
  --line-strong: #323c63;
  --text: #e8ecff;
  --dim: #9aa4d2;
  --accent: #4ade80;        /* terrain green — primary actions */
  --accent-deep: #16a34a;
  --gold: #facc15;          /* start-flag gold — highlights, warnings, CTAs */
  --green: #4ade80;
  --red: #f87171;           /* growth-down red */
  --sans: "Segoe UI", system-ui, sans-serif;
  --mono: Consolas, "Cascadia Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.6;
}

main { max-width: 1060px; margin: 0 auto; padding: 0 20px 48px; }

/* ---------- header ---------- */
.app-header {
  max-width: 1060px;
  margin: 0 auto;
  padding: 30px 20px 8px;
}
.title-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
h1 {
  margin: 0;
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text);
}
h1 .wm { color: var(--gold); }
.phase-badge {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--gold);
  border: 1px solid rgba(250, 204, 21, 0.45);
  border-radius: 2px;
  padding: 3px 11px;
}
.tagline { color: var(--dim); margin: 8px 0 20px; max-width: 640px; }

/* ---------- stepper: game levels ---------- */
.stepper {
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0 0 22px;
  flex-wrap: wrap;
}
.stepper li {
  font-size: 12.5px;
  font-family: var(--mono);
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 5px 13px 5px 7px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-inset);
}
.stepper li span {
  display: inline-block;
  width: 20px; height: 20px;
  text-align: center; line-height: 20px;
  border-radius: 2px;
  background: var(--line);
  font-size: 12px;
}
.stepper li.current {
  color: #0b1026;
  background: var(--accent);
  border-color: var(--accent-deep);
  font-weight: 600;
}
.stepper li.current span { background: #0b1026; color: var(--accent); }
.stepper li.done { color: var(--green); border-color: rgba(74, 222, 128, 0.4); }
.stepper li.done span { background: var(--accent-deep); color: #06170c; }
.stepper li.done::after { content: '⚑'; color: var(--gold); font-size: 12px; }
.stepper li.skipped { opacity: 0.4; text-decoration: line-through; }

/* ---------- screens & panels ---------- */
.screen { display: none; }
.screen.active { display: block; animation: fadein 0.25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; } }

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 26px;
  margin-bottom: 18px;
}
h2 { font-size: 19px; font-weight: 600; margin: 0 0 16px; }
h3 { font-size: 13px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; margin: 0 0 12px; color: var(--dim); font-family: var(--mono); }
.dim { color: var(--dim); font-size: 13.5px; font-weight: normal; }
.hidden { display: none !important; }

/* ---------- inputs ---------- */
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--dim);
  margin: 18px 0 7px;
  font-family: var(--mono);
}
.field-label:first-child { margin-top: 0; }
.req { color: var(--dim); font-weight: 400; font-size: 12.5px; letter-spacing: 0; text-transform: none; font-family: var(--sans); }
/* input:not([type]) covers every dynamically-created input (renderGrid,
 * milestone titles/descs) — createElement('input') has no type attribute,
 * so an [type="text"]-only selector leaves them UA-default (the old
 * black-on-black bug). */
textarea, input:not([type]), input[type="text"] {
  width: 100%;
  background: var(--bg-inset);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 11px 13px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.55;
  resize: vertical;
}
textarea:focus, input:focus {
  outline: none;
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.16);
}
.inp-missing { border-color: rgba(250, 204, 21, 0.55) !important; border-style: dashed !important; }
#inp-desc { font-family: var(--sans); font-size: 14.5px; }

/* subject field (Setup) */
.subject-row { position: relative; max-width: 420px; }
.auto-pill {
  position: absolute;
  right: 9px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.5px;
  color: #0b1026;
  background: var(--gold);
  border-radius: 2px;
  padding: 1px 7px;
  pointer-events: none;
}

/* ---------- buttons: chunky game buttons ---------- */
.btn {
  background: var(--bg-inset);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 9px 18px;
  font-family: var(--sans);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.btn:hover:not(:disabled) { border-color: var(--accent-deep); background: #141b38; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary {
  background: var(--accent);
  border: 1px solid var(--accent-deep);
  color: #0b1026;
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--accent-deep);
}
.btn-primary:hover:not(:disabled) { background: #6ee7a0; border-color: var(--accent-deep); color: #0b1026; }
.btn-primary:active:not(:disabled) { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--accent-deep); }
.btn-big { padding: 12px 28px; font-size: 15.5px; }
.btn-wide { width: 100%; margin-top: 12px; }
.btn.confirmed { border-color: rgba(74, 222, 128, 0.6); color: var(--green); }
.action-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.action-row .btn-primary { margin-left: auto; }

/* Template picker (Confirm screen) */
.template-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.tp-label { color: var(--dim); font-size: 13px; }
.tp-choice.active {
  border-color: var(--accent-deep);
  color: var(--accent);
  font-weight: 600;
  background: rgba(74, 222, 128, 0.12);
}

.mode-toggle { display: flex; gap: 10px; margin: 20px 0 6px; }
.mode-on { border-color: var(--accent-deep); color: var(--accent); font-weight: 600; background: rgba(74, 222, 128, 0.12); }

/* ---------- samples ---------- */
.samples { margin-top: 22px; }
#sample-chips { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 8px; }
.chip {
  background: var(--bg-inset);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 2px;
  padding: 7px 16px;
  font-size: 13.5px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.chip:hover { border-color: var(--accent-deep); }
.chip-hint { color: var(--dim); font-size: 12px; }

/* ---------- messages / kv ---------- */
.msg { border-radius: 2px; padding: 12px 16px; margin: 12px 0; font-size: 14px; line-height: 1.55; }
.msg-ok { background: rgba(74, 222, 128, 0.07); border: 1px solid rgba(74, 222, 128, 0.35); }
.msg-warn { background: rgba(250, 204, 21, 0.07); border: 1px solid rgba(250, 204, 21, 0.35); }
.msg-error { background: rgba(248, 113, 113, 0.08); border: 1px solid rgba(248, 113, 113, 0.4); }
.msg .btn { margin-left: 10px; }

.kv-grid { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.kv { display: flex; gap: 14px; font-size: 14.5px; }
.kv-k {
  color: var(--dim);
  min-width: 150px;
  text-align: right;
  font-size: 13.5px;
}
.kv-v { font-family: var(--mono); font-size: 13.5px; }
.kv-v .lg-swatch { margin-right: 4px; }

.shape-btns { display: flex; gap: 12px; margin: 14px 0; flex-wrap: wrap; }
.shape-btns .btn-big { flex: 1; min-width: 220px; line-height: 1.45; }

/* ---------- analyzing: steps tick past a pixel horse ---------- */
.az-wrap { display: flex; gap: 30px; align-items: center; flex-wrap: wrap; }
.analyze-steps { color: var(--dim); font-size: 15px; font-family: var(--mono); }
.analyze-steps li { margin: 9px 0; opacity: 0.45; transition: opacity 0.2s; }
.analyze-steps li.az-active { color: var(--accent); opacity: 1; }
.analyze-steps li.az-active::after { content: ' …'; }
.analyze-steps li.az-done { color: var(--green); opacity: 0.9; }
.analyze-steps li.az-done::after { content: ' ⚑'; color: var(--gold); }

/* 12×9 box-shadow pixel horse, 2 gallop frames via steps() — no images.
 * Each frame is one div; the animation swaps their visibility. */
.px-horse { position: relative; width: 96px; height: 80px; flex: 0 0 auto; }
.px-horse i { position: absolute; left: 0; top: 0; width: 8px; height: 8px; }
.px-horse .f1 { animation: horseblink 0.5s steps(1) infinite; }
.px-horse .f2 { animation: horseblink 0.5s steps(1) infinite reverse; }
@keyframes horseblink { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }
/* body + head (shared shape), then per-frame legs */
.px-horse i {
  background: transparent;
  box-shadow:
    /* head + neck (dark mane over brown) */
    80px 8px 0 #7a4f2a, 88px 8px 0 #7a4f2a,
    80px 16px 0 #b98850, 88px 16px 0 #b98850,
    72px 16px 0 #7a4f2a,
    /* body */
    16px 24px 0 #b98850, 24px 24px 0 #b98850, 32px 24px 0 #b98850, 40px 24px 0 #b98850,
    48px 24px 0 #b98850, 56px 24px 0 #b98850, 64px 24px 0 #b98850, 72px 24px 0 #b98850,
    16px 32px 0 #a06f3c, 24px 32px 0 #b98850, 32px 32px 0 #b98850, 40px 32px 0 #b98850,
    48px 32px 0 #b98850, 56px 32px 0 #b98850, 64px 32px 0 #b98850,
    /* tail */
    8px 24px 0 #7a4f2a, 0px 32px 0 #7a4f2a,
    /* rider blip */
    40px 16px 0 #4ade80, 40px 8px 0 #e8ecff;
}
.px-horse .f1 {
  box-shadow:
    /* legs extended */
    16px 40px 0 #7a4f2a, 16px 48px 0 #7a4f2a,
    32px 40px 0 #7a4f2a,
    56px 40px 0 #7a4f2a,
    72px 40px 0 #7a4f2a, 72px 48px 0 #7a4f2a;
}
.px-horse .f2 {
  box-shadow:
    /* legs tucked */
    24px 40px 0 #7a4f2a,
    32px 40px 0 #7a4f2a, 40px 48px 0 #7a4f2a,
    56px 40px 0 #7a4f2a, 64px 48px 0 #7a4f2a,
    64px 40px 0 #7a4f2a;
}

.doc-cand-row { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.doc-cand { padding: 6px 12px; font-size: 13px; }

/* ---------- confirm grid ---------- */
.grid-scroll { overflow-x: auto; margin-top: 14px; border: 1px solid var(--line); border-radius: 2px; }
.edit-grid { border-collapse: collapse; width: 100%; }
.edit-grid th, .edit-grid td { border: 1px solid var(--line); padding: 0; min-width: 110px; }
.edit-grid th { background: var(--bg-inset); position: relative; padding-top: 20px; }
.edit-grid input {
  width: 100%;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--text);          /* the black-on-black fix */
  font-family: var(--mono);
  padding: 8px 10px;
  font-size: 13.5px;
  box-shadow: none;
}
.edit-grid th input { font-weight: 600; color: var(--accent); }
.edit-grid input:focus { background: rgba(74, 222, 128, 0.07); box-shadow: none; }
.edit-grid tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.02); }
.role-badge {
  position: absolute;
  top: 3px; left: 5px;
  font-size: 10.5px;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0 6px;
  border-radius: 2px;
  text-transform: uppercase;
}
.role-primary { background: rgba(74, 222, 128, 0.28); color: #b7f0cb; }
.role-growth { background: rgba(250, 204, 21, 0.22); color: #f2dd8a; }
.role-extra { background: rgba(154, 164, 210, 0.22); color: #c3cbec; }
.role-label, .role-player { background: var(--line); color: var(--dim); }
.role-period { background: rgba(143, 130, 200, 0.25); color: #c3bae0; }

/* ---------- milestones checklist ---------- */
.ms-head { margin-top: 30px; display: flex; align-items: center; gap: 12px; }
.count-chip {
  font-size: 12.5px;
  font-family: var(--mono);
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: var(--accent);
  border-radius: 2px;
  padding: 2px 12px;
}
.ms-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-inset);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 13px 15px;
  margin: 10px 0;
}
.ms-row input[type="checkbox"] { width: 18px; height: 18px; margin-top: 7px; accent-color: var(--accent-deep); }
.ms-main { flex: 1; }
.ms-top { display: flex; gap: 9px; align-items: center; }
.ms-period-chip {
  font-family: var(--mono);
  font-size: 12px;
  background: rgba(143, 130, 200, 0.2);
  color: #c3bae0;
  border-radius: 2px;
  padding: 3px 9px;
  white-space: nowrap;
}
.ms-title-inp { font-weight: 600; font-family: var(--sans); font-size: 14px; }
.ms-desc-inp { margin-top: 7px; font-size: 13px; font-family: var(--sans); }
.ms-src { color: var(--dim); font-size: 12px; margin-top: 7px; line-height: 1.5; }

/* ---------- render screen & chrome ---------- */
.render-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.render-title { color: var(--gold); font-size: 15px; font-family: var(--mono); }
.spacer { flex: 1; }

.stage-box {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  overflow: hidden;
  background: #0b1026;
}
.stage { display: block; line-height: 0; }
.scene-canvas { display: block; }

.stage-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: var(--dim);
  padding: 9px 4px 0;
}
.stage-legend:empty { display: none; }
.lg-item { display: inline-flex; align-items: center; gap: 5px; }
.lg-swatch {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 2px;
}

.milestone-banner {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  max-width: 88%;
  background: rgba(9, 12, 28, 0.94);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 10px 20px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.3s, transform 0.3s;
}
.milestone-banner.hidden { opacity: 0; transform: translateX(-50%) translateY(12px); pointer-events: none; display: block !important; }
.mb-period { font-family: var(--mono); font-size: 13px; color: var(--gold); margin-right: 10px; }
.mb-title { font-size: 16px; font-weight: 600; }
.mb-desc { font-size: 14px; color: #b9c2e6; }

.transport {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  flex-wrap: wrap;
}
.speed-select {
  background: var(--bg-inset);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 14px;
}
.progress-outer {
  flex: 1;
  min-width: 140px;
  height: 12px;
  background: var(--bg-inset);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: visible;
  position: relative;
}
/* terrain-green fill with a 4px pixel-grass top edge; the leading edge
 * carries a tiny rider glyph. */
.progress-inner {
  height: 100%;
  width: 0;
  background: linear-gradient(180deg, var(--accent) 0 4px, var(--accent-deep) 4px 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 0 100%),
    repeating-linear-gradient(90deg, #000 0 4px, transparent 4px 8px);
  -webkit-mask-size: 100% calc(100% - 2px), 100% 2px;
  -webkit-mask-position: 0 2px, 0 0;
  -webkit-mask-repeat: no-repeat, repeat-x;
  -webkit-mask-composite: source-over;
  mask-image: linear-gradient(90deg, #000 0 100%),
    repeating-linear-gradient(90deg, #000 0 4px, transparent 4px 8px);
  mask-size: 100% calc(100% - 2px), 100% 2px;
  mask-position: 0 2px, 0 0;
  mask-repeat: no-repeat, repeat-x;
  transition: width 0.15s linear;
  position: relative;
}
.progress-inner::after {
  content: '♞';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-58%);
  font-size: 15px;
  line-height: 1;
  color: var(--gold);
  text-shadow: 1px 1px 0 #0b1026;
}
.status-line { font-size: 13.5px; color: var(--gold); font-family: var(--mono); }

.lower-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}
.hud-panel h3, .ms-panel h3 { text-align: center; }
@media (max-width: 760px) { .lower-panels { grid-template-columns: 1fr; } }

.hud-cards { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hud-card {
  text-align: center;
  background: var(--bg-inset);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 10px 16px;
  min-width: 110px;
}
.hud-label { font-size: 11.5px; color: var(--dim); letter-spacing: 0.6px; text-transform: uppercase; font-family: var(--mono); }
.hud-value { font-size: 18.5px; font-weight: 600; font-family: var(--mono); color: var(--accent); }

.ms-list { max-height: 240px; overflow-y: auto; }
.ms-empty { color: var(--dim); font-size: 13.5px; }
.ms-card {
  background: var(--bg-inset);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 9px 13px;
  margin-bottom: 7px;
  cursor: pointer;
  font-size: 14.5px;
  transition: border-color 0.15s;
}
.ms-card:hover { border-color: var(--accent-deep); }
.ms-card-period { font-family: var(--mono); color: var(--gold); font-size: 12.5px; margin-right: 8px; }
.ms-card-title { font-weight: 600; }
.ms-card-desc { color: var(--dim); font-size: 13.5px; margin-top: 3px; }

.app-footer {
  max-width: 1060px;
  margin: 0 auto;
  padding: 12px 20px 34px;
  color: var(--dim);
  font-size: 13px;
}

/* ---------- mobile (<= 600px) ---------- */
@media (max-width: 600px) {
  main { padding: 0 10px 32px; }
  .app-header { padding: 18px 10px 6px; }
  h1 { font-size: 21px; }
  .tagline { font-size: 13.5px; margin: 6px 0 14px; }
  .panel { padding: 16px 14px; }

  /* iOS zooms into focused inputs below 16px — keep them at 16px on phones */
  textarea, input:not([type]), input[type="text"], #inp-desc { font-size: 16px; }
  .edit-grid input { font-size: 14px; }

  /* horizontally scrollable rows instead of tall wrapped stacks */
  .stepper { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .stepper li { flex: 0 0 auto; }
  #sample-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .chip { flex: 0 0 auto; }

  /* comfortable touch targets */
  .btn { min-height: 44px; }
  .doc-cand { min-height: 40px; }
  .ms-row input[type="checkbox"] { width: 22px; height: 22px; }
  .speed-select { min-height: 44px; }

  /* stacked key/value rows read better than right-aligned columns */
  .kv { flex-direction: column; gap: 0; }
  .kv-k { min-width: 0; text-align: left; font-size: 12px; }

  .action-row .btn-primary { flex: 1; }
  .shape-btns .btn-big { min-width: 100%; }
  .ms-top { flex-wrap: wrap; }
  .hud-card { min-width: 90px; padding: 8px 12px; flex: 1; }
  .lower-panels { gap: 12px; }

  .stage-legend { gap: 10px; font-size: 12px; }
  .render-topbar { flex-wrap: wrap; }
  .milestone-banner { max-width: 94%; padding: 6px 10px; }
}

/* ---------- research mode ---------- */
.web-sources { margin-top: 8px; font-size: 13px; }
.web-sources a { color: var(--accent); text-decoration: none; }
.web-sources a:hover { text-decoration: underline; }

/* ---------- story cards (intro / finale overlays) ---------- */
.story-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: rgba(7, 10, 24, 0.6);
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.story-card.hidden { opacity: 0; display: flex !important; }
.sc-title {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.45;
  max-width: 82%;
  color: #eef1ff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}
.sc-sub {
  margin-top: 10px;
  font-size: 14.5px;
  font-family: var(--mono);
  color: #c4cbe8;
  max-width: 72%;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
@media (max-width: 600px) {
  .sc-title { font-size: 16.5px; max-width: 92%; }
  .sc-sub { font-size: 13px; max-width: 88%; }
}

/* ---------- render focus mode ---------- */
body.focus-render .tagline,
body.focus-render .stepper,
body.focus-render .phase-badge { display: none; }
body.focus-render .app-header { padding: 12px 20px 2px; }
body.focus-render h1 { font-size: 18px; }

@media (max-width: 600px) {
  .mb-title { font-size: 14px; }
  .mb-desc { font-size: 12.5px; }
  .milestone-banner { padding: 8px 12px; }
}

/* ---------- validate-screen adjustment controls ---------- */
.col-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.col-controls select {
  background: var(--bg-inset);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 6px 9px;
  font-family: var(--mono);
  font-size: 13.5px;
}

/* ---------- validate feedback box ---------- */
.feedback-box { margin-top: 18px; padding-top: 4px; border-top: 1px solid var(--line); }
.feedback-box .action-row { margin-top: 10px; }
