:root {
  --bg: #fff1f7;
  --panel: #fffafd;
  --ink: #24131d;
  --muted: #6e5362;
  --brand: #c21872;
  --brand-dark: #83124e;
  --brand-soft: #fde2f0;
  --rose: #f35ba5;
  --gold: #b87b2a;
  --line: #f3bfd9;
  --danger: #a53b3b;
  --good: #2d653a;
  --shadow: 0 18px 50px rgba(137, 18, 78, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(243, 91, 165, .25), transparent 32rem),
    radial-gradient(circle at top right, rgba(184, 123, 42, .16), transparent 28rem),
    linear-gradient(180deg, #fff9fc, var(--bg));
  min-height: 100vh;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  padding: 3rem clamp(1rem,4vw,4rem) 2rem;
}

.eyebrow {
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 850;
  margin: 0 0 .6rem;
}

h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(2.15rem, 4vw, 4.7rem); line-height: .96; letter-spacing: -.055em; margin-bottom: 1rem; }
h2 { font-size: 1.2rem; margin-bottom: .35rem; }
p { color: var(--muted); line-height: 1.5; }

.lede { font-size: 1.08rem; max-width: 51rem; margin-bottom: 0; }

.hero-card, .notice, .panel {
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: rgba(255,250,253,.92);
  box-shadow: var(--shadow);
}

.hero-card {
  min-width: 17rem;
  padding: 1rem;
  display: grid;
  gap: .35rem;
}
.hero-card span { color: var(--muted); font-size: .9rem; }

.shell { width: min(1220px, calc(100% - 2rem)); margin: 0 auto 3rem; display: grid; gap: 1rem; }
.notice { padding: 1rem 1.1rem; color: #793554; background: #fff0f7; border-color: #f1b8d2; }
.panel { padding: clamp(1rem, 2.2vw, 1.5rem); }
.accent-panel { background: linear-gradient(180deg, rgba(253,226,240,.9), rgba(255,250,253,.96)); }

.panel-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.grid { display: grid; gap: 1rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }

.pill {
  border: 1px solid var(--line);
  color: var(--brand-dark);
  background: var(--brand-soft);
  padding: .45rem .75rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  white-space: nowrap;
}

.drop-zone {
  border: 2px dashed #ef9cc7;
  border-radius: 1.25rem;
  min-height: 10rem;
  display: grid;
  place-items: center;
  text-align: center;
  gap: .25rem;
  padding: 1.5rem;
  cursor: pointer;
  background: linear-gradient(180deg, #fff7fb, #fff0f7);
  transition: .18s ease;
}
.drop-zone:hover { border-color: var(--brand); transform: translateY(-1px); }
.drop-zone input { display: none; }
.drop-zone strong { font-size: 1.1rem; }
.drop-zone small, .mini-upload span { color: var(--muted); }
.drop-icon { font-size: 2.3rem; }

.file-meta, .status {
  margin-top: 1rem;
  border-radius: 1rem;
  padding: .85rem 1rem;
  background: var(--brand-soft);
  border: 1px solid #f2b7d3;
  color: var(--brand-dark);
  display: grid;
  gap: .2rem;
}
.file-meta span { color: var(--muted); }
.status.error { color: #822323; background: #ffeded; border-color: #e8bbbb; }

.player { width: 100%; margin-top: 1rem; border-radius: 1rem; background: #1c1117; }
canvas { width: 100%; height: auto; border-radius: 1rem; background: #21131b; display: block; }
.timeline-help { color: var(--muted); font-size: .9rem; margin-top: .5rem; }
.time-pair { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; font-variant-numeric: tabular-nums; }
.time-pair span { padding: .45rem .65rem; border-radius: .75rem; background: #fff0f7; color: var(--brand-dark); font-weight: 750; }

.form-grid { display: grid; gap: .8rem; grid-template-columns: repeat(3, minmax(0,1fr)); }
.form-grid.two-cols { grid-template-columns: repeat(2, minmax(0,1fr)); }
label { display: grid; gap: .4rem; font-weight: 750; color: var(--ink); }
input, select, textarea {
  width: 100%;
  border: 1px solid #eab3ce;
  border-radius: .85rem;
  padding: .75rem .85rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(194, 24, 114, .18); border-color: var(--brand); }

.mini-upload {
  border: 1px dashed #e89cc2;
  border-radius: 1rem;
  padding: .9rem;
  background: rgba(255, 255, 255, .7);
  cursor: pointer;
}
.mini-upload input { padding: .6rem; }

.mark-buttons, .button-row { display: flex; gap: .65rem; flex-wrap: wrap; margin: .9rem 0; }
.button-row.flush { margin: 0; justify-content: flex-end; }
button, .button-label {
  border: none;
  border-radius: 999px;
  padding: .78rem 1rem;
  background: linear-gradient(135deg, var(--brand), var(--rose));
  color: white;
  font-weight: 850;
  font-size: .92rem;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(194,24,114,.20);
  transition: .18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
}
button:hover, .button-label:hover { transform: translateY(-1px); }
button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
button.secondary, .button-label.secondary { background: #fde2f0; color: var(--brand-dark); box-shadow: none; border: 1px solid #f1b6d3; }
button.ghost { background: transparent; border: 1px solid currentColor; box-shadow: none; }
button.danger { color: var(--danger); }
.button-label input { display: none; }

.fine-print { font-size: .88rem; margin: .9rem 0 0; }
.check-row { display: flex; align-items: center; gap: .55rem; font-weight: 650; color: var(--ink); margin: .75rem 0; }
.check-row input { width: auto; }

.summary {
  border-radius: 1rem;
  background: #fff0f7;
  border: 1px solid #f1b6d3;
  color: var(--brand-dark);
  padding: .85rem 1rem;
  font-weight: 750;
}
.cut-list { display: grid; gap: .65rem; margin-top: 1rem; }
.cut-item { display: grid; grid-template-columns: 1fr auto; gap: .8rem; align-items: center; border: 1px solid var(--line); border-radius: 1rem; padding: .9rem 1rem; background: #fffafd; }
.cut-item strong { display: block; font-variant-numeric: tabular-nums; }
.cut-item span, .cut-item small { color: var(--muted); }
.cut-actions { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.cut-actions button { padding: .55rem .8rem; font-size: .82rem; }

.footer { width: min(1220px, calc(100% - 2rem)); margin: 0 auto 2rem; text-align: center; }
.hidden { display: none !important; }

@media (max-width: 860px) {
  .hero, .panel-row { display: grid; }
  .grid.two, .form-grid, .form-grid.two-cols { grid-template-columns: 1fr; }
  .hero-card { width: 100%; }
  .cut-item { grid-template-columns: 1fr; }
  .cut-actions, .button-row.flush { justify-content: flex-start; }
}
