:root {
  --bg: #0a1120;
  --bg-soft: #10192d;
  --panel: rgba(255,255,255,0.075);
  --panel-strong: rgba(255,255,255,0.1);
  --panel-border: rgba(255,255,255,0.12);
  --text: #eef4ff;
  --muted: #b7c3de;
  --primary: #7161ff;
  --primary-2: #00b9a3;
  --left-glow: rgba(113,97,255,0.18);
  --right-glow: rgba(0,185,163,0.16);
  --both-glow: rgba(255,255,255,0.14);
  --danger: #ff9d9d;
  --success: #bdfbd4;
  --radius: 24px;
  --radius-sm: 18px;
  --shadow: 0 24px 60px rgba(0,0,0,0.28);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(113,97,255,0.22), transparent 30%),
    radial-gradient(circle at top right, rgba(0,185,163,0.16), transparent 24%),
    linear-gradient(180deg, #08101d, #10182c 50%, #0c1426 100%);
}

.page-wrap {
  max-width: 1460px;
  margin: 0 auto;
  padding: 24px;
}

.hero-card,
.panel,
.notice {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-card {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-start;
  padding: 28px;
  margin-bottom: 20px;
}

.hero-copy { max-width: 760px; }

.eyebrow {
  display: inline-block;
  padding: 8px 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #dbd6ff;
  background: rgba(113,97,255,0.16);
  border: 1px solid rgba(113,97,255,0.3);
}

.hero-card h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.hero-card p,
.panel-head p,
small,
.notice li,
.notes-panel li {
  color: var(--muted);
}

.hero-card strong { color: #ffffff; }

.hero-badges,
.legend,
.quick-actions,
.download-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badges {
  max-width: 320px;
  justify-content: flex-end;
}

.hero-badges span,
.pill,
.sr-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.08);
  font-size: 13px;
}

.pill-accent {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(113,97,255,0.28), rgba(0,185,163,0.28));
  border-color: rgba(255,255,255,0.14);
}

.notice {
  padding: 18px 20px;
  margin-bottom: 18px;
}
.notice.error { border-color: rgba(255,157,157,0.35); }
.notice.success { border-color: rgba(189,251,212,0.3); }
.notice ul { margin: 10px 0 0 18px; }
.download-list { margin-top: 14px; }
.download-list a {
  text-decoration: none;
  color: #fff;
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.main-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.panel {
  padding: 22px;
}

.bulk-panel {
  position: sticky;
  top: 16px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}
.panel-head.compact { margin-bottom: 16px; }
.panel-head h2,
.notes-panel h2 {
  margin: 0 0 6px;
  font-size: 24px;
}
.panel-head p { margin: 0; }

.field-block { margin-bottom: 18px; }
.field-row.two-up {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

input[type="text"],
input[type="file"],
textarea,
select {
  width: 100%;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(7, 12, 24, 0.72);
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

input[type="text"]:focus,
input[type="file"]:focus,
textarea:focus,
select:focus {
  border-color: rgba(113,97,255,0.55);
  box-shadow: 0 0 0 4px rgba(113,97,255,0.12);
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.child-quote { min-height: 126px; }

.static-note {
  min-height: 110px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(7, 12, 24, 0.55);
  color: var(--muted);
  border-radius: 18px;
  padding: 14px 16px;
  line-height: 1.6;
}

.quick-actions {
  margin-top: 8px;
}

button {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 16px;
  padding: 13px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
button:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.22);
}
button.primary {
  border: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}
button.wide {
  width: 100%;
  padding: 16px 18px;
  font-size: 15px;
}
.submit-wrap { margin-top: 16px; }

.items-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.item-card {
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.045);
  padding: 16px;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.item-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.18);
}
.item-card.mode-left {
  box-shadow: inset 0 0 0 1px rgba(113,97,255,0.12);
  background: linear-gradient(180deg, var(--left-glow), rgba(255,255,255,0.04));
}
.item-card.mode-right {
  box-shadow: inset 0 0 0 1px rgba(0,185,163,0.12);
  background: linear-gradient(180deg, var(--right-glow), rgba(255,255,255,0.04));
}
.item-card.mode-both {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
  background: linear-gradient(180deg, var(--both-glow), rgba(255,255,255,0.04));
}

.item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.output-mode {
  max-width: 150px;
  padding-top: 11px;
  padding-bottom: 11px;
}

.notes-panel {
  margin-top: 20px;
}
.notes-panel ul {
  margin: 12px 0 0 18px;
}
.notes-panel li + li {
  margin-top: 8px;
}

@media (min-width: 1320px) {
  .items-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1180px) {
  .main-grid { grid-template-columns: 1fr; }
  .bulk-panel { position: static; }
  .hero-card { flex-direction: column; }
  .hero-badges { justify-content: flex-start; max-width: none; }
}

@media (max-width: 760px) {
  .page-wrap { padding: 16px; }
  .items-grid { grid-template-columns: 1fr; }
  .panel-head,
  .hero-card,
  .item-top { flex-direction: column; }
  .output-mode { max-width: none; }
}
