:root {
  --bg: #0d1014;
  --panel: #151a21;
  --panel2: #1b222b;
  --line: #26303c;
  --ink: #e6ebf2;
  --dim: #8b98a9;
  --accent: #6d28d9;
  --accent2: #7c3aed;
  --ok: #4caf7d;
  --warn: #d9a441;
  --bad: #e0625f;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 900px; margin: 0 auto; padding: 0 20px; }

/* ---- header ---- */
.top {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #11161d, #0d1014);
  position: sticky; top: 0; z-index: 5;
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 12px; }
.mark { font-size: 30px; color: var(--accent); line-height: 1; }
.top h1 { font-size: 19px; margin: 0; letter-spacing: .3px; }
.tag { margin: 0; font-size: 12px; color: var(--dim); letter-spacing: .12em; text-transform: uppercase; }
.ghost { color: var(--dim); font-size: 14px; text-decoration: none; border-bottom: 1px dotted var(--line); }
.ghost:hover { color: var(--ink); }

/* ---- hero ---- */
.hero { padding: 48px 0 8px; }
.hero h2 { font-size: 30px; line-height: 1.25; margin: 0 0 14px; letter-spacing: -.4px; }
.hero p { color: #c3ccd8; margin: 0 0 12px; max-width: 68ch; }
.fineprint {
  font-size: 13px; color: var(--dim); border-left: 2px solid var(--line);
  padding-left: 12px; margin-top: 18px !important;
}

/* ---- steps ---- */
.step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  margin: 22px 0;
}
.stephead { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.stephead h3 { margin: 0; font-size: 18px; font-weight: 600; }
.num {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
}

.row { display: flex; gap: 10px; }
.row input { flex: 1; }

input[type=text], input[type=password], input[type=number], select, textarea {
  background: #0e1319; border: 1px solid var(--line); color: var(--ink);
  border-radius: 8px; padding: 11px 13px; font: inherit; width: 100%;
}
textarea { font: 14px/1.5 var(--mono); resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent2); }
input::placeholder, textarea::placeholder { color: #5d6a7a; }

button {
  background: var(--panel2); border: 1px solid var(--line); color: var(--ink);
  border-radius: 8px; padding: 11px 18px; font: inherit; cursor: pointer;
  transition: background .15s, border-color .15s;
}
button:hover { background: #232c37; border-color: #35414f; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
button.primary:hover { background: #7c3aed; border-color: #7c3aed; }
button.big { width: 100%; margin-top: 18px; padding: 14px; font-size: 16px; }
button:disabled { opacity: .5; cursor: default; }

.hint { font-size: 13px; color: var(--dim); margin: 12px 0 0; max-width: 72ch; }
.dim { color: var(--dim); }
.hidden { display: none !important; }

.err {
  margin-top: 14px; padding: 11px 14px; border-radius: 8px;
  background: rgba(224,98,95,.1); border: 1px solid rgba(224,98,95,.35);
  color: #f0a5a3; font-size: 14px;
}

/* ---- profile ---- */
.movie { margin: 0 0 16px; font-size: 14px; color: var(--dim); }
.movie strong { color: var(--ink); }

.profile { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.prow { display: grid; grid-template-columns: 190px 1fr; gap: 14px; background: var(--panel2); padding: 11px 15px; }
.prow b { color: var(--dim); font-weight: 500; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.prow span { font-size: 15px; }

.dropped { margin-top: 16px; }
.dropped summary { cursor: pointer; color: var(--accent2); font-size: 14px; }
.dropped ul { margin: 10px 0 0; padding-left: 18px; font-size: 13px; color: var(--dim); }
.dropped li { margin-bottom: 4px; }
.dropped li code { color: #c3ccd8; font-family: var(--mono); font-size: 12px; }

button.linkish {
  background: none; border: none; padding: 0; color: var(--accent2);
  font-size: 13px; text-decoration: underline; text-underline-offset: 3px;
}
button.linkish:hover { background: none; color: #9cc6e6; }

.note {
  margin-top: 14px; padding: 11px 14px; border-radius: 8px;
  background: rgba(111,168,214,.08); border: 1px solid rgba(111,168,214,.3);
  color: #b6d3ea; font-size: 14px;
}

/* ---- chips ---- */
.fieldlabel {
  display: block; font-size: 13px; color: var(--dim);
  margin: 20px 0 9px; letter-spacing: .03em;
}
.fieldlabel:first-of-type { margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  padding: 7px 13px; font-size: 13.5px; border-radius: 20px;
  background: var(--panel2); border: 1px solid var(--line); color: #b9c4d1;
}
.chip:hover { border-color: #46545f; color: var(--ink); }
.chip.on { background: var(--accent2); border-color: var(--accent2); color: #fff; font-weight: 600; }
.chip.on[data-rank="primary"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.row.tight { margin-top: 10px; }
.row.tight button { flex: none; }

.profwrap { margin-bottom: 18px; }
.profwrap summary { cursor: pointer; color: var(--accent2); font-size: 14px; margin-bottom: 12px; }
.profwrap ul { margin: 10px 0 0; padding-left: 18px; font-size: 13px; color: var(--dim); }
.profwrap li { margin-bottom: 4px; }
.profwrap li code { color: #c3ccd8; font-family: var(--mono); font-size: 12px; }

/* ---- picks ---- */
.picks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pick {
  display: flex; gap: 11px; align-items: flex-start; cursor: pointer;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px;
}
.pick:hover { border-color: #35414f; }
.pick input { margin-top: 3px; accent-color: var(--accent); }
.pick strong { display: block; font-size: 14px; font-weight: 600; }
.pick em { display: block; font-style: normal; font-size: 12px; color: var(--dim); margin-top: 2px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.grid label { font-size: 13px; color: var(--dim); display: grid; gap: 6px; }
.grid label.wide { grid-column: 1 / -1; }

.art { margin-top: 18px; }
.art summary { cursor: pointer; color: var(--accent2); font-size: 14px; }

/* ---- output ---- */
.safe {
  background: rgba(76,175,125,.08); border: 1px solid rgba(76,175,125,.3);
  border-radius: 8px; padding: 12px 15px; font-size: 14px; color: #a9d9c1; margin: 0 0 18px;
}
.safe strong { color: #d3f0e2; }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tabs button { padding: 8px 13px; font-size: 13px; }
.tabs button.on { background: var(--accent2); border-color: var(--accent2); color: #fff; font-weight: 600; }

.outbar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; }
.outbar .spacer { flex: 1; }
.outbar button { padding: 7px 14px; font-size: 13px; }

.out {
  background: #0a0e12; border: 1px solid var(--line); border-radius: 10px;
  padding: 18px; max-height: 560px; overflow: auto;
  font: 13px/1.65 var(--mono); white-space: pre-wrap; word-break: break-word;
  color: #cbd5e1; margin: 0;
}

/* ---- checker ---- */
#checkOut { margin-top: 14px; }
#check { margin-top: 12px; }
.verdict { padding: 12px 15px; border-radius: 8px; font-size: 14px; margin-bottom: 10px; }
.verdict.ok { background: rgba(76,175,125,.1); border: 1px solid rgba(76,175,125,.35); color: #a9d9c1; }
.verdict.bad { background: rgba(224,98,95,.1); border: 1px solid rgba(224,98,95,.35); color: #f0a5a3; }
.verdict.warn { background: rgba(217,164,65,.1); border: 1px solid rgba(217,164,65,.35); color: #e8c98a; }
.hitlist { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.hitlist li { padding: 9px 13px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; background: var(--panel2); }
.hitlist code { font-family: var(--mono); color: var(--ink); }
.pill { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; padding: 2px 7px; border-radius: 20px; margin-right: 8px; }
.pill.block { background: rgba(224,98,95,.2); color: #f0a5a3; }
.pill.warn { background: rgba(217,164,65,.2); color: #e8c98a; }

/* ---- footer ---- */
footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 26px 0 50px; }
footer p { font-size: 12.5px; color: var(--dim); margin: 0 0 8px; max-width: 78ch; }

@media (max-width: 720px) {
  .hero h2 { font-size: 24px; }
  .picks, .grid { grid-template-columns: 1fr; }
  .prow { grid-template-columns: 1fr; gap: 4px; }
  .row { flex-direction: column; }
  .step { padding: 18px; }
}

/* ===== HOUSE UI adoption (studio theme) 2026-08-02 ===== */
/* Additive override block — remaps PlotShift's own tokens to the light studio
   surfaces. The app KEEPS its gold #d9a441 / blue #6fa8d6 accent pair.
   Generated prompt-pack OUTPUT text is untouched (it's plain text). */
:root {
  --bg: #f5f8fd;
  --panel: #ffffff;
  --panel2: #f5f8fd;
  --line: #e2e8f3;
  --ink: #1b1f2e;
  --dim: #5a6478;
  /* --accent / --accent2 stay: the app's own scheme */
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-optical-sizing: auto;
}
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.021em; }
.hero h2 { font-weight: 800; letter-spacing: -.032em; }
button, .fieldlabel { font-weight: 600; }
/* topbar = house topbar: white surface, 1px line */
.top { background: var(--panel); border-bottom: 1px solid var(--line); }
.topnav { display: flex; align-items: center; gap: 18px; }
.ghost { border-bottom: none; font-weight: 600; }
.ghost:hover { color: var(--accent2); }
/* steps become floating white cards w/ the soft studio shadow */
.step {
  box-shadow: 0 8px 28px rgba(27,31,46,.07);
  border-color: #edf1f8;
}
.hero p { color: var(--dim); }
/* fields: white with visible edges, house focus ring */
input[type=text], input[type=password], input[type=number], select, textarea {
  background: #ffffff;
}
input::placeholder, textarea::placeholder { color: #7d8698; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px rgba(124,58,237,.18); }
button { background: var(--panel2); }
button:hover { background: #eef2fa; border-color: #c9d4e8; }
button.primary { box-shadow: 0 8px 18px -6px rgba(109,40,217,.5); }
button.primary:hover { box-shadow: 0 10px 22px -6px rgba(109,40,217,.6); }
/* chips / picks on the light surface */
.chip { color: var(--dim); }
.chip:hover { border-color: var(--accent2); color: var(--ink); }
.pick:hover { border-color: var(--accent2); }
/* link-styled text needs darker purple for contrast on white */
button.linkish, .dropped summary, .profwrap summary, .art summary { color: #56209f; }
button.linkish:hover { color: #6d28d9; }
/* semantic blocks re-inked for a light surface */
.err { background: rgba(194,38,31,.07); border-color: rgba(194,38,31,.3); color: #c2261f; }
.note { background: rgba(111,168,214,.1); border-color: rgba(111,168,214,.4); color: #2e5f86; }
.safe { background: rgba(18,128,90,.07); border-color: rgba(18,128,90,.3); color: #12805a; }
.safe strong { color: #0d5e42; }
.verdict.ok { background: rgba(18,128,90,.08); border-color: rgba(18,128,90,.35); color: #12805a; }
.verdict.bad { background: rgba(194,38,31,.08); border-color: rgba(194,38,31,.35); color: #c2261f; }
.verdict.warn { background: rgba(154,98,7,.08); border-color: rgba(154,98,7,.35); color: #9a6207; }
.pill.block { background: rgba(194,38,31,.12); color: #c2261f; }
.pill.warn { background: rgba(154,98,7,.12); color: #9a6207; }
/* output pane: light raised surface, dark mono ink */
.out { background: #f5f8fd; border-color: var(--line); color: #333c4e; }
.dropped li code, .profwrap li code { color: #45506a; }
/* ===== end HOUSE UI adoption ===== */
