:root {
  color-scheme: light dark;
  --bg: #071b2e;
  --panel: #102f4a;
  --panel-strong: #173c5c;
  --text: #f8fbff;
  --muted: #b9cadd;
  --accent: #6ec6ff;
  --accent-ink: #062338;
  --line: rgba(255, 255, 255, 0.16);
  --good: #92df62;
  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 top left, #154b73 0, var(--bg) 38rem);
  color: var(--text);
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.page-header {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 6px;
}

.lede,
.section-heading p,
.status-label,
.boundary-note,
.field-help,
.result {
  color: var(--muted);
}

.status-grid,
.layout,
.field-grid {
  display: grid;
  gap: 16px;
}

.status-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.auth-panel {
  margin-bottom: 16px;
}

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

.status-grid article,
.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(16, 47, 74, 0.86);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.status-grid article {
  padding: 18px;
}

.status-label {
  display: block;
  margin-bottom: 6px;
}

.layout {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: start;
}

.panel {
  padding: clamp(18px, 3vw, 28px);
}

label {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #082238;
  color: var(--text);
  font: inherit;
}

textarea {
  resize: vertical;
}

.field-help {
  margin: 8px 0 0;
}

.field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.boundary-note {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(110, 198, 255, 0.32);
  border-radius: 12px;
  background: rgba(110, 198, 255, 0.08);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

button.secondary {
  background: var(--panel-strong);
  color: var(--accent);
  border: 1px solid rgba(110, 198, 255, 0.35);
}

.plan-card {
  display: grid;
  gap: 12px;
  min-height: 340px;
  border-radius: 20px;
  padding: 22px;
  background: linear-gradient(165deg, rgba(110, 198, 255, 0.24), rgba(7, 27, 46, 0.98));
  border: 1px solid rgba(110, 198, 255, 0.28);
}

.plan-image-preview {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #082238;
}

.sponsored-label {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--good);
  color: #09210f;
  font-weight: 900;
}

.card-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  margin: 0;
}

.card-meta {
  color: var(--muted);
  font-weight: 700;
}

.commercial-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.result {
  margin-top: 16px;
  min-height: 24px;
  font-weight: 800;
}

.result.error {
  color: #ffb3b3;
}

.result.success {
  color: var(--good);
}

@media (max-width: 800px) {
  .layout,
  .status-grid,
  .field-grid,
  .auth-form {
    grid-template-columns: 1fr;
  }
}
