:root {
  --bg: #08080a;
  --panel: #15151a;
  --panel-raised: #1c1c22;
  --text: #fff;
  --muted: #b8b7c0;
  --line: rgba(255, 255, 255, .14);
  --dark: #f51b88;
  --accent: #f51b88;
  --good: #79dcaa;
  --warn: #ffd167;
  --bad: #ff8d9d;
}

html { background: #08080a; }
body {
  min-height: 100vh;
  background: radial-gradient(circle at 85% -10%, rgba(245, 27, 136, .22), transparent 28rem), #08080a;
  color: var(--text);
  letter-spacing: .005em;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: .42;
  background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}
a { color: inherit; }
.shell { max-width: 1540px; padding: 24px clamp(18px, 3vw, 46px) 52px; }
.top {
  min-height: 102px;
  gap: 18px;
  margin: 0 0 30px;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--line);
}
.luminal-brand { display: block; flex: 0 0 auto; width: 210px; }
.luminal-logo { display: block; width: 100%; height: auto; }
.top-copy { display: grid; gap: 4px; }
.top h1 { margin: 0; font-size: 22px; line-height: 1.1; letter-spacing: -.025em; }
.eyebrow,
.login-kicker { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.top .small { color: var(--muted); }
.btn {
  min-height: 42px;
  border-color: var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
  color: var(--text);
  box-shadow: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.btn:hover { border-color: rgba(245, 27, 136, .7); background: rgba(245, 27, 136, .14); }
.btn:focus-visible,
input:focus-visible,
select:focus-visible { outline: 3px solid rgba(245, 27, 136, .42); outline-offset: 2px; }
.btn.primary { border-color: var(--accent); background: var(--accent); color: #0a0a0c; }
.btn.primary:hover { background: #ff4ba3; border-color: #ff4ba3; transform: translateY(-1px); }
.btn.danger { color: #ff9baa; }
.login {
  width: min(100% - 36px, 500px);
  max-width: none;
  margin: 9vh auto;
  padding: 34px;
  border-color: var(--line);
  border-radius: 24px;
  background: rgba(21, 21, 26, .94);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .5), 0 0 0 1px rgba(245, 27, 136, .07);
}
.luminal-logo--login { width: 230px; margin: -4px 0 26px; }
.login h1 { margin: 6px 0 10px; font-size: 28px; letter-spacing: -.04em; }
.login p { color: var(--muted); line-height: 1.55; }
.login .field { margin-top: 24px; }
.field input,
.new input,
.brand-fields input,
.brand-fields select,
.share-row input {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .28);
  color: var(--text);
}
.field input::placeholder,
.new input::placeholder { color: #8a8994; }
.new {
  position: relative;
  overflow: hidden;
  margin-bottom: 26px;
  padding: clamp(28px, 4vw, 54px);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 26px;
  background: linear-gradient(130deg, #18181e, #101014 60%, #21101d);
  box-shadow: 0 28px 75px rgba(0, 0, 0, .25);
}
.new::after {
  position: absolute;
  right: -7rem;
  bottom: -9rem;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 27, 136, .46), transparent 66%);
  content: "";
  pointer-events: none;
}
.new > * { position: relative; z-index: 1; }
.new h2 { max-width: 620px; font-size: clamp(30px, 4vw, 50px); line-height: 1; letter-spacing: -.055em; }
.new p { max-width: 640px; color: #d1d0d8; line-height: 1.6; }
.new .row { align-items: stretch; }
.new input { min-height: 48px; border-radius: 12px; }
.new .row .btn { flex: 0 0 auto; border-radius: 12px; }
.new .row .btn:not(.primary) { background: var(--accent); border-color: var(--accent); color: #0a0a0c; }
.new .row .btn:not(.primary):hover { background: #ff4ba3; }
.small,
.preview-note,
td .small,
.check span,
th { color: var(--muted); }
.card,
.panel,
.check,
.table-wrap,
details.audit {
  border-color: var(--line);
  background: rgba(21, 21, 26, .88);
}
.card { padding: 22px; border-radius: 20px; box-shadow: 0 14px 42px rgba(0, 0, 0, .18); }
.card h3 { color: var(--text); font-size: 18px; }
.grid { gap: 18px; }
.status { background: rgba(255, 255, 255, .07); color: #ecebf1; }
.status.generated { background: rgba(121, 220, 170, .15); color: var(--good); }
.status.checked,.status.ready,.status.polishing { background: rgba(255, 209, 103, .13); color: var(--warn); }
.status.failed { background: rgba(255, 141, 157, .14); color: var(--bad); }
.panel { border-radius: 24px; background: #15151a; }
.panel-head { padding: 22px 26px; border-color: var(--line); background: rgba(255,255,255,.018); }
.panel-head h2 { color: var(--text); }
.panel-body { padding: 26px; }
.checks { gap: 12px; }
.check { border-radius: 15px; }
.check strong { color: var(--accent); }
table { color: var(--text); }
th, td { border-color: var(--line); }
.notice { border: 1px solid rgba(245, 27, 136, .26); background: rgba(245, 27, 136, .10); color: #ffe5f1; }
.notice p { color: inherit; }
.error-box { color: var(--bad); }
.preview-frame { padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: #0a0a0d; }
.preview { border-color: var(--line); border-radius: 12px; }
.brand-fields input,.brand-fields select { border-radius: 10px; }
.brand-fields select option { background: #18181d; color: #fff; }
.logo-preview { background: #fff; }
input[type=checkbox] { accent-color: var(--accent); }
.completed-banner {
  display: flex;
  align-items: end;
  min-height: 132px;
  margin-bottom: 20px;
  padding: 28px;
  border: 1px solid rgba(245, 27, 136, .38);
  border-radius: 20px;
  background: linear-gradient(110deg, rgba(245, 27, 136, .26), rgba(245, 27, 136, .07) 60%, rgba(255, 255, 255, .035));
}
.completed-banner > div { display: grid; gap: 4px; }
.completed-banner strong { font-size: 28px; letter-spacing: -.04em; }
.completed-banner p { margin: 0; color: #f6dce9; }
.controls--proposal { margin: 0 0 18px; }
.design-adjustment {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
  padding: 22px;
  border: 1px solid rgba(245, 27, 136, .30);
  border-radius: 20px;
  background: linear-gradient(120deg, rgba(245, 27, 136, .13), rgba(255, 255, 255, .025));
}
.design-adjustment h3 { margin: 4px 0 6px; font-size: 21px; }
.design-adjustment p { max-width: 720px; margin: 0; color: #d8d6de; line-height: 1.55; }
.design-adjustment label { color: var(--text); font-size: 13px; font-weight: 750; }
.design-adjustment textarea {
  width: 100%;
  min-height: 108px;
  resize: vertical;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #101014;
  color: var(--text);
  font: inherit;
  line-height: 1.5;
}
.design-adjustment textarea:focus { outline: 2px solid rgba(245, 27, 136, .55); outline-offset: 2px; }
.design-adjustment-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.design-adjustment-actions .btn:disabled { cursor: not-allowed; opacity: .48; }
.design-adjustment-result { margin-top: -6px; }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 12px; }
.preview-toolbar label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.preview-toolbar select { min-height: 42px; max-width: 340px; padding: 0 28px 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #1a1a20; color: #fff; }
.device-controls { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) {
  .shell { padding-inline: 18px; }
  .top { min-height: auto; flex-wrap: wrap; padding-bottom: 18px; }
  .luminal-brand { width: 170px; }
  .top-copy { display: none; }
  .top .spacer { flex: 1; }
  .new { padding: 28px 22px; border-radius: 20px; }
  .new .row { flex-direction: column; }
  .new .row .btn { width: 100%; }
  .preview-toolbar { align-items: stretch; flex-direction: column; }
  .preview-toolbar label { align-items: stretch; flex-direction: column; }
  .preview-toolbar select { max-width: none; }
  .design-adjustment { padding: 18px; }
  .design-adjustment-actions { align-items: stretch; flex-direction: column; }
  .design-adjustment-actions .btn { width: 100%; }
  .panel-head { padding: 18px; }
  .panel-body { padding: 18px; }
}
