:root {
  color-scheme: dark;
  --bg: #090b10;
  --panel: rgba(18, 22, 31, 0.9);
  --panel-2: #151a24;
  --border: #2a3140;
  --text: #f7f8fb;
  --muted: #9aa5b6;
  --accent: #ff416c;
  --accent-2: #ff7a45;
  --success: #32d296;
  --danger: #ff5d6c;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 65, 108, 0.14), transparent 32rem),
    radial-gradient(circle at 90% 0%, rgba(255, 122, 69, 0.11), transparent 30rem),
    var(--bg);
  color: var(--text);
}
.shell { width: min(980px, calc(100% - 32px)); margin: 0 auto; padding: 72px 0 48px; }
.hero { text-align: center; margin-bottom: 34px; }
.badge, .eyebrow {
  display: inline-block;
  color: #ff98ad;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
}
h1 { font-size: clamp(38px, 7vw, 72px); line-height: .98; margin: 16px auto; max-width: 900px; letter-spacing: -.055em; }
.hero p { color: var(--muted); font-size: 18px; line-height: 1.65; max-width: 720px; margin: 0 auto; }
.panel, .notice {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px;
  margin-top: 20px;
  box-shadow: 0 22px 70px rgba(0,0,0,.28);
  backdrop-filter: blur(16px);
}
.dropzone {
  min-height: 260px;
  border: 1.5px dashed #4a5364;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  transition: .2s ease;
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01));
  text-align: center;
  padding: 24px;
}
.dropzone:hover, .dropzone.dragging { border-color: var(--accent); background: rgba(255,65,108,.055); transform: translateY(-1px); }
.drop-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-size: 34px; }
.dropzone strong { font-size: 21px; }
.dropzone span:not(.drop-icon), .dropzone small { color: var(--muted); }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.settings-grid label { display: grid; gap: 9px; color: var(--muted); font-size: 14px; }
input[type="number"] { width: 100%; border: 1px solid var(--border); background: #0d1118; color: var(--text); border-radius: 12px; padding: 15px; font: inherit; }
button, .secondary { border: 0; border-radius: 13px; padding: 15px 19px; font: inherit; font-weight: 800; cursor: pointer; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; }
.primary { width: 100%; color: white; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.primary:disabled { opacity: .55; cursor: wait; }
.secondary { color: var(--text); background: #222936; border: 1px solid #343d4e; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.section-heading h2, .section-heading h3 { margin: 6px 0 0; }
.section-heading.compact { margin-top: 8px; }
.progress-track { height: 12px; border-radius: 99px; background: #090c12; overflow: hidden; margin: 24px 0 13px; border: 1px solid #232a37; }
#progressBar { width: 0%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .3s ease; }
#progressNumber { font-size: 28px; }
#progressMessage, .muted { color: var(--muted); }

.progress-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.progress-stat {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(9, 12, 18, .56);
}
.progress-stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 7px;
}
.progress-stat strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 15px;
}
.estimate-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  margin: 14px 0 0;
}

.cards { display: grid; gap: 13px; margin-top: 20px; }
.card { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 17px; border: 1px solid var(--border); background: var(--panel-2); border-radius: 15px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.review-card { grid-template-columns: 160px 1fr auto; }
.review-card img { width: 160px; aspect-ratio: 16/9; object-fit: cover; border-radius: 11px; border: 1px solid var(--border); }
.confirm { background: var(--success); color: #06130e; }
.reject { background: #303746; color: white; }
.status-pill { font-size: 12px; border-radius: 99px; padding: 6px 9px; background: #2a3140; color: #c9d1df; }
.review-section { margin-top: 32px; border-top: 1px solid var(--border); padding-top: 24px; }
.notice { color: var(--muted); line-height: 1.6; box-shadow: none; }
.notice strong { color: var(--text); }
.hidden { display: none !important; }
.error { color: #ff8a96 !important; white-space: pre-wrap; }

@media (max-width: 850px) {
  .progress-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .shell { padding-top: 40px; }
  .settings-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .card, .review-card { grid-template-columns: 1fr; }
  .review-card img { width: 100%; }
  .card-actions { width: 100%; }
  .card-actions > * { flex: 1; }
}
@media (max-width: 480px) {
  .progress-stats { grid-template-columns: 1fr; }
}
