:root {
  color-scheme: dark;
  --bg: #08111f;
  --panel: rgba(17, 31, 51, .88);
  --field: rgba(5, 14, 27, .72);
  --line: rgba(183, 207, 236, .18);
  --text: #f3f7fc;
  --muted: #9fb1c8;
  --accent: #62d5a7;
  --accent-strong: #39b986;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font: 16px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 12% 12%, #1b3b58 0, transparent 30rem), radial-gradient(circle at 90% 90%, #173d37 0, transparent 28rem), var(--bg);
}

.app-shell { width: min(960px, calc(100% - 32px)); margin: 0 auto; padding: 68px 0; }
.app-header { margin-bottom: 30px; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.06; letter-spacing: -.045em; }
.subtitle, .panel-heading p { color: var(--muted); }
.subtitle { margin-bottom: 0; }

.tabs { display: flex; gap: 10px; margin-bottom: 18px; }
.tab { flex: 1; min-height: 74px; padding: 13px 18px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); background: rgba(255,255,255,.035); font: inherit; font-weight: 750; text-align: left; cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.tab span { display: block; margin-top: 2px; font-size: .82rem; font-weight: 500; }
.tab:hover { transform: translateY(-2px); border-color: rgba(98, 213, 167, .45); color: var(--text); }
.tab.is-active { border-color: var(--accent); color: #062017; background: var(--accent); }

.workspace { min-height: 560px; }
.form-panel { padding: clamp(22px, 5vw, 46px); border: 1px solid var(--line); border-radius: 20px; background: var(--panel); box-shadow: 0 24px 70px rgba(0,0,0,.25); animation: reveal .28s ease-out; }
.form-panel[hidden] { display: none; }
.panel-heading { padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin-bottom: 5px; font-size: 1.45rem; }
.panel-heading p { margin-bottom: 0; }

.upload-form, label { display: grid; gap: 8px; }
.upload-form { gap: 22px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
label { color: #dce8f6; font-size: .9rem; font-weight: 650; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; outline: none; color: var(--text); background: var(--field); font: inherit; transition: border-color .2s ease, box-shadow .2s ease; }
input, select { height: 46px; padding: 0 13px; }
textarea { min-height: 136px; padding: 12px 13px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(98, 213, 167, .16); }
select option { color: #0b1728; }
input[type="file"] { height: auto; padding: 9px; cursor: pointer; }
.file-field { padding: 14px; border: 1px dashed rgba(183, 207, 236, .35); border-radius: 12px; }
.submit-button { justify-self: start; padding: 13px 20px; border: 0; border-radius: 10px; color: #062017; background: var(--accent); font: inherit; font-weight: 800; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.submit-button:hover { background: var(--accent-strong); transform: translateY(-2px); }
.submit-button span { margin-left: 8px; font-size: 1.1em; }

@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 640px) { .app-shell { width: min(100% - 24px, 960px); padding: 32px 0; } .tabs, .field-grid { grid-template-columns: 1fr; display: grid; } .workspace { min-height: 0; } .form-panel { padding: 22px 18px; } .submit-button { width: 100%; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
