:root {
  --ink: #20201d;
  --muted: #6f6b62;
  --paper: #f2efe7;
  --paper-deep: #e8e2d6;
  --white: #fffdf8;
  --line: rgba(32, 32, 29, 0.14);
  --accent: #b96832;
  --accent-dark: #7a351c;
  --shadow: 0 28px 80px rgba(53, 44, 31, 0.12);
  --serif: Georgia, "Times New Roman", "Noto Serif KR", serif;
  --sans: Pretendard, "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, textarea, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.site-header {
  position: relative;
  z-index: 20;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  padding: 0 32px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; letter-spacing: .16em; }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--white); background: var(--ink); font-family: var(--serif); font-size: 14px; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 13px; }
.site-nav a { transition: opacity .2s ease; }
.site-nav a:hover { opacity: .55; }
.site-nav .nav-signup { padding: 7px 12px; color: var(--white); background: var(--ink); }
.nav-logout { margin: 0; }
.nav-logout button { padding: 0; color: var(--muted); border: 0; background: transparent; cursor: pointer; font-size: inherit; }
.quiet-link { color: var(--muted); }
.site-footer { display: flex; justify-content: space-between; gap: 20px; max-width: 1180px; margin: 80px auto 0; padding: 30px 0 42px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; letter-spacing: .04em; }

.section-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.eyebrow { margin: 0 0 15px; color: var(--accent-dark); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.primary-button, .secondary-button, .text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  font-weight: 750;
  transition: transform .2s ease, background .2s ease, opacity .2s ease;
}
.primary-button { color: var(--white); background: var(--ink); }
.primary-button:hover, .secondary-button:hover { transform: translateY(-2px); }
.primary-button:disabled { cursor: wait; opacity: .55; }
.primary-button.wide { width: 100%; }
.secondary-button { color: var(--ink); border: 1px solid var(--line); background: transparent; }
.text-button { color: var(--muted); background: transparent; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  min-height: 650px;
  max-width: 1240px;
  padding: 72px 70px 96px;
  margin: 0 auto;
  overflow: hidden;
}
.hero-grain { position: absolute; inset: 0; opacity: .34; pointer-events: none; background-image: radial-gradient(rgba(47, 43, 36, .12) .6px, transparent .6px); background-size: 7px 7px; mask-image: linear-gradient(to right, black, transparent 75%); }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(46px, 5vw, 68px); font-weight: 500; line-height: 1.16; letter-spacing: -.055em; word-break: keep-all; }
.hero h1 .hero-title-line,
.hero h1 em { display: block; }
.hero h1 .hero-title-line { white-space: nowrap; }
.hero h1 em { color: var(--accent-dark); font-style: italic; font-weight: 400; }
.hero-description { margin: 30px 0 38px; color: var(--muted); font-size: 16px; line-height: 1.9; }
.hero-scene { position: relative; display: grid; place-items: center; min-height: 440px; }
.preview-card { position: relative; z-index: 2; width: min(390px, 90%); padding: 38px 36px 30px; color: #f4ebdb; background: #303d38; box-shadow: var(--shadow); transform: rotate(2.4deg); }
.preview-card::before { content: ""; position: absolute; inset: 11px; border: 1px solid rgba(255,255,255,.18); pointer-events: none; }
.preview-label { margin: 0 0 48px; font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; opacity: .7; }
.preview-quote { margin: 0 0 58px; font-family: var(--serif); font-size: 31px; line-height: 1.45; letter-spacing: -.04em; }
.preview-meta { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); font-size: 11px; opacity: .8; }
.scene-orbit { position: absolute; border: 1px solid rgba(108, 78, 52, .2); border-radius: 50%; }
.orbit-one { width: 470px; height: 470px; }
.orbit-two { width: 340px; height: 340px; border-style: dashed; transform: translate(50px, -20px); }

.library { padding: 100px 0 70px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 44px; }
.section-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(35px, 4vw, 52px); font-weight: 500; letter-spacing: -.045em; }
.section-heading > p { max-width: 320px; margin: 0 0 7px; color: var(--muted); font-size: 13px; text-align: right; }
.section-heading.compact { margin-bottom: 35px; }
.simulation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.simulation-card { overflow: hidden; background: var(--white); border: 1px solid rgba(32,32,29,.08); transition: transform .25s ease, box-shadow .25s ease; }
.simulation-card:hover { transform: translateY(-7px); box-shadow: 0 22px 60px rgba(53,44,31,.13); }
.card-art { position: relative; height: 196px; overflow: hidden; color: rgba(255,255,255,.82); background: var(--card-bg, #a9663f); }
.accent-amber { --card-bg: #ad623b; --accent: #b96832; --accent-dark: #79371f; }
.accent-sage { --card-bg: #4c6b60; --accent: #557a6b; --accent-dark: #315347; }
.accent-plum { --card-bg: #6f536c; --accent: #765776; --accent-dark: #523653; }
.art-number { position: absolute; top: 22px; left: 26px; font-family: var(--serif); font-size: 14px; }
.art-line { position: absolute; width: 130%; height: 1px; top: 50%; left: -15%; background: rgba(255,255,255,.5); transform: rotate(-14deg); }
.art-disc { position: absolute; width: 156px; height: 156px; right: 42px; bottom: -78px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; box-shadow: 0 0 0 34px rgba(255,255,255,.055), 0 0 0 70px rgba(255,255,255,.04); }
.card-body { padding: 27px 28px 24px; }
.card-topline { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .09em; }
.card-body h3 { min-height: 61px; margin: 17px 0 12px; font-family: var(--serif); font-size: 25px; line-height: 1.3; letter-spacing: -.035em; }
.card-body > p { min-height: 50px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 11px; }
.card-arrow { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; font-size: 13px; }

.how-it-works { padding: 100px 0 50px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.steps article { min-height: 220px; padding: 28px 34px; border-right: 1px solid var(--line); }
.steps article:first-child { padding-left: 0; }
.steps article:last-child { border-right: 0; }
.steps span { color: var(--accent-dark); font-family: var(--serif); font-size: 13px; }
.steps h3 { margin: 46px 0 8px; font-family: var(--serif); font-size: 24px; font-weight: 500; }
.steps p { max-width: 280px; margin: 0; color: var(--muted); font-size: 13px; }

.detail-shell { width: min(1100px, calc(100% - 48px)); min-height: calc(100vh - 160px); margin: 0 auto; padding: 46px 0 80px; }
.back-link { display: inline-block; margin-bottom: 42px; color: var(--muted); font-size: 12px; }
.detail-layout { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 540px; background: var(--white); box-shadow: var(--shadow); }
.detail-art { position: relative; min-height: 540px; overflow: hidden; color: var(--white); background: var(--card-bg); }
.detail-series { position: absolute; top: 34px; left: 38px; z-index: 2; font-size: 12px; font-weight: 800; letter-spacing: .15em; }
.detail-disc { position: absolute; width: 330px; height: 330px; left: 50%; top: 50%; border: 1px solid rgba(255,255,255,.48); border-radius: 50%; transform: translate(-50%,-42%); box-shadow: 0 0 0 70px rgba(255,255,255,.05), 0 0 0 140px rgba(255,255,255,.035); }
.detail-lines { position: absolute; inset: 0; background: linear-gradient(125deg, transparent 48%, rgba(255,255,255,.38) 48.1%, rgba(255,255,255,.38) 48.3%, transparent 48.4%); }
.detail-copy { display: flex; flex-direction: column; justify-content: center; padding: 62px 70px; }
.detail-copy h1 { max-width: 530px; margin: 0; font-family: var(--serif); font-size: clamp(39px, 4vw, 58px); font-weight: 500; line-height: 1.17; letter-spacing: -.05em; }
.detail-summary { max-width: 530px; margin: 25px 0 32px; color: var(--muted); font-size: 15px; }
.role-note { margin-bottom: 32px; padding: 20px 22px; border-left: 3px solid var(--accent); background: var(--paper); }
.role-note span { color: var(--accent-dark); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.role-note p { margin: 7px 0 0; font-size: 13px; }
.detail-fineprint { margin: 15px 0 0; color: var(--muted); font-size: 11px; text-align: center; }

.play-page { background: #e9e5dc; }
.play-page .site-footer { margin-top: 40px; }
.play-shell { width: min(920px, calc(100% - 36px)); min-height: calc(100vh - 140px); margin: 0 auto; padding: 42px 0 20px; }
.play-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.play-heading h1 { margin: 0; font-family: var(--serif); font-size: 27px; font-weight: 500; }
.play-status-group { display: grid; justify-items: end; gap: 5px; }
.story-status { display: flex; align-items: center; gap: 9px; padding-bottom: 5px; color: var(--muted); font-size: 11px; }
.play-model-status { display: flex; align-items: center; gap: 8px; font-size: 9px; }
.play-model-status span { color: var(--ink); font-weight: 700; }
.play-model-status small { color: var(--muted); font-size: 8px; }
.play-model-status details { position: relative; color: var(--muted); font-size: 8px; }
.play-model-status details summary { cursor: pointer; }
.play-model-status details small { position: absolute; z-index: 5; top: 20px; right: 0; width: max-content; max-width: 260px; padding: 8px 10px; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.access-page { min-height: 100vh; background: #ede9df; }
.access-page .site-header { display: none; }
.access-shell { display: grid; min-height: 100vh; place-items: center; padding: 24px; }
.access-card { width: min(440px, 100%); padding: clamp(34px, 6vw, 58px); border-top: 4px solid var(--ink); background: var(--white); box-shadow: var(--shadow); }
.access-card h1 { margin: 14px 0 20px; font-family: var(--serif); font-size: clamp(38px, 8vw, 58px); font-weight: 500; line-height: .98; }
.access-card > p:not(.eyebrow) { margin-bottom: 28px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.access-card form { display: grid; gap: 10px; }
.access-card label { font-size: 10px; font-weight: 700; }
.access-card input[type="password"] { min-height: 50px; padding: 0 14px; border: 1px solid var(--line); background: #faf9f5; font: inherit; }
.access-card input[type="password"]:focus { border-color: var(--ink); outline: 2px solid rgba(29,31,28,.1); }
.status-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 16%, transparent); }
.story-stage { position: relative; overflow: hidden; padding: 64px clamp(28px, 7vw, 82px); background: var(--white); box-shadow: var(--shadow); }
.story-ambient { position: absolute; top: -160px; right: -180px; width: 410px; height: 410px; border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); border-radius: 50%; box-shadow: 0 0 0 70px color-mix(in srgb, var(--accent) 4%, transparent), 0 0 0 140px color-mix(in srgb, var(--accent) 3%, transparent); pointer-events: none; }
.story-feed { position: relative; z-index: 2; }
.story-beat { max-width: 690px; margin: 0 auto; }
.story-beat + .story-beat { margin-top: 68px; padding-top: 62px; border-top: 1px solid var(--line); }
.scene-time { margin: 0 0 31px; color: var(--accent-dark); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.narration { margin: 0; color: #45433e; font-family: var(--serif); font-size: 18px; line-height: 2; }
.story-beat blockquote { position: relative; margin: 36px 0; padding: 28px 34px; color: var(--ink); border: 0; border-left: 2px solid var(--accent); background: var(--paper); font-family: var(--serif); font-size: clamp(21px, 3vw, 28px); line-height: 1.65; letter-spacing: -.03em; }
.awaiting, .reaction { margin: 0; color: var(--muted); font-size: 12px; text-align: center; }
.reaction { font-style: italic; }
.your-choice { margin-bottom: 36px; padding: 18px 21px; border: 1px solid var(--line); }
.your-choice span { color: var(--accent-dark); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.your-choice p { margin: 8px 0 0; font-size: 13px; }
.newly-added { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.newly-added.visible { opacity: 1; transform: none; }
.judgement-panel { position: relative; z-index: 2; max-width: 690px; margin: 62px auto 0; padding-top: 36px; border-top: 1px solid var(--ink); }
.judgement-panel > label { display: block; margin-bottom: 16px; font-family: var(--serif); font-size: 18px; font-weight: 600; }
.judgement-panel textarea { width: 100%; min-height: 126px; padding: 19px 20px; resize: vertical; color: var(--ink); border: 1px solid var(--line); border-radius: 0; outline: none; background: #faf8f2; line-height: 1.75; }
.judgement-panel textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 11%, transparent); }
.input-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 14px; }
.input-hint { color: var(--muted); font-size: 10px; }
kbd { padding: 2px 5px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); font-size: 9px; }
.form-error { min-height: 20px; margin: 10px 0 0; color: #9b392e; font-size: 11px; }
.thinking { position: relative; z-index: 3; max-width: 690px; margin: 44px auto 0; padding: 28px; text-align: center; border: 1px solid var(--line); background: var(--paper); }
.thinking span { display: inline-block; width: 6px; height: 6px; margin: 0 3px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s infinite ease-in-out; }
.thinking span:nth-child(2) { animation-delay: .12s; }
.thinking span:nth-child(3) { animation-delay: .24s; }
.thinking p { margin: 9px 0 0; color: var(--muted); font-size: 11px; }
@keyframes pulse { 0%, 70%, 100% { opacity: .25; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-4px); } }
.ending-gate { position: relative; z-index: 2; max-width: 690px; margin: 58px auto 0; padding: 35px; color: var(--white); background: var(--ink); text-align: center; }
.ending-gate p { margin: 0 0 20px; font-family: var(--serif); font-size: 20px; }
.ending-gate .primary-button { color: var(--ink); background: var(--white); }
.play-note { margin: 18px 0 0; color: var(--muted); font-size: 10px; text-align: center; }

.result-shell { width: min(880px, calc(100% - 36px)); margin: 0 auto; padding: 74px 0 40px; }
.result-intro { text-align: center; }
.time-jump { display: inline-block; margin: 4px 0 22px; padding: 7px 13px; color: var(--accent-dark); border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent); font-family: var(--serif); font-size: 13px; }
.result-intro h1 { max-width: 700px; margin: 0 auto; font-family: var(--serif); font-size: clamp(42px, 6vw, 67px); font-weight: 500; line-height: 1.16; letter-spacing: -.05em; }
.ending-card { position: relative; margin-top: 52px; padding: clamp(45px, 7vw, 76px); overflow: hidden; background: var(--white); box-shadow: var(--shadow); }
.ending-mark { position: absolute; right: 40px; top: 2px; color: color-mix(in srgb, var(--accent) 15%, transparent); font-family: var(--serif); font-size: 180px; line-height: 1; }
.ending-narrative { position: relative; margin: 0; font-family: var(--serif); font-size: clamp(20px, 2.7vw, 26px); line-height: 2; letter-spacing: -.018em; }
.impact-block { position: relative; margin-top: 49px; padding-top: 27px; border-top: 1px solid var(--ink); }
.impact-block span { color: var(--accent-dark); font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.impact-block p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.decision-trace { margin-top: 78px; }
.trace-list { border-top: 1px solid var(--ink); }
.trace-list article { display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.trace-list article > span { color: var(--accent-dark); font-family: var(--serif); font-size: 12px; }
.trace-list strong { font-family: var(--serif); font-size: 16px; }
.trace-list p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.feedback-card { margin-top: 80px; padding: clamp(30px, 6vw, 58px); border: 1px solid var(--line); background: var(--white); }
.feedback-heading { margin-bottom: 36px; text-align: center; }
.feedback-heading h2 { margin: 0; font-family: var(--serif); font-size: 33px; font-weight: 500; }
.feedback-heading > p:last-child { color: var(--muted); font-size: 12px; }
.score-field { margin: 0; padding: 22px 0; border: 0; border-top: 1px solid var(--line); }
.score-field legend { padding: 0; font-family: var(--serif); font-size: 16px; font-weight: 600; }
.score-row { display: grid; grid-template-columns: 75px 1fr 75px; align-items: center; gap: 15px; margin-top: 14px; }
.score-row > span { color: var(--muted); font-size: 10px; }
.score-row > span:last-child { text-align: right; }
.score-buttons { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.score-buttons input { position: absolute; opacity: 0; pointer-events: none; }
.score-buttons span { display: grid; place-items: center; height: 38px; border: 1px solid var(--line); cursor: pointer; font-size: 12px; transition: background .15s ease, color .15s ease, border .15s ease; }
.score-buttons input:checked + span { color: var(--white); border-color: var(--ink); background: var(--ink); }
.score-buttons input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.comment-field { display: block; margin: 22px 0; font-family: var(--serif); font-size: 16px; font-weight: 600; }
.comment-field > span { color: var(--muted); font-family: var(--sans); font-size: 10px; font-weight: 400; }
.comment-field textarea { display: block; width: 100%; margin-top: 10px; padding: 15px; border: 1px solid var(--line); resize: vertical; background: #faf8f2; font-family: var(--sans); font-size: 12px; }
.feedback-thanks { padding: 30px 0; text-align: center; }
.feedback-thanks > span { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 20px; color: var(--white); border-radius: 50%; background: var(--accent); }
.feedback-thanks h2 { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 500; }
.feedback-thanks p { color: var(--muted); font-size: 12px; }
.result-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 42px; }
.result-actions form { margin: 0; }

.insights-shell { width: min(1100px, calc(100% - 48px)); margin: 0 auto; padding: 70px 0; }
.insights-heading h1 { margin: 0; font-family: var(--serif); font-size: 60px; font-weight: 500; letter-spacing: -.05em; }
.insights-heading > p:last-child { color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 45px 0; }
.metric-grid article { padding: 25px; border: 1px solid var(--line); background: var(--white); }
.metric-grid span, .metric-grid small { display: block; color: var(--muted); font-size: 10px; }
.metric-grid strong { display: block; margin: 13px 0 5px; font-family: var(--serif); font-size: 40px; font-weight: 500; }
.insight-panel { margin-top: 20px; padding: 30px; background: var(--white); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.panel-heading h2 { margin: 0; font-family: var(--serif); font-size: 24px; font-weight: 500; }
.panel-heading span { color: var(--muted); font-size: 10px; }
.insight-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.insight-table th { padding: 11px 14px; color: var(--muted); border-bottom: 1px solid var(--ink); font-size: 10px; text-align: left; }
.insight-table td { padding: 17px 14px; border-bottom: 1px solid var(--line); }
.insight-table td strong, .insight-table td span { display: block; }
.insight-table td span { color: var(--muted); font-size: 9px; }
.comment-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.comment-list article { padding: 20px; border: 1px solid var(--line); }
.comment-list span, .comment-list small { color: var(--muted); font-size: 9px; }
.comment-list p { margin: 8px 0 15px; font-family: var(--serif); font-size: 15px; }
.empty-state { padding: 50px 20px; color: var(--muted); border: 1px dashed var(--line); text-align: center; font-size: 12px; }

.admin-shell, .editor-shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 70px 0; }
.admin-heading, .editor-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.admin-heading h1, .editor-heading h1 { margin: 0; font-family: var(--serif); font-size: clamp(42px, 6vw, 64px); font-weight: 500; line-height: 1.1; letter-spacing: -.05em; }
.admin-heading > div:first-child > p:last-child { margin: 15px 0 0; color: var(--muted); font-size: 13px; }
.engine-badge { min-width: 220px; padding: 17px 20px; color: var(--white); background: var(--ink); }
.engine-badge span, .engine-badge small { display: block; color: rgba(255,255,255,.55); font-size: 9px; letter-spacing: .09em; }
.engine-badge strong { display: block; margin: 5px 0 2px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; }
.prototype-notice { display: grid; grid-template-columns: 250px 1fr; gap: 30px; margin: 42px 0 24px; padding: 24px 28px; border-left: 3px solid var(--accent); background: var(--white); }
.prototype-notice strong { font-family: var(--serif); font-size: 17px; }
.prototype-notice p { margin: 0; color: var(--muted); font-size: 12px; }
.prompt-list { border-top: 1px solid var(--ink); }
.prompt-list-item { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 25px; padding: 30px 5px; border-bottom: 1px solid var(--line); }
.prompt-list-actions { display: flex; align-items: center; gap: 12px; }
.prompt-list-actions > a:first-child { color: var(--muted); font-size: 9px; text-decoration: underline; text-underline-offset: 4px; }
.prompt-index { color: var(--accent-dark); font-family: var(--serif); font-size: 13px; }
.prompt-list-copy > span, .prompt-list-copy > p { color: var(--muted); font-size: 10px; }
.prompt-list-copy h2 { margin: 4px 0; font-family: var(--serif); font-size: 23px; font-weight: 500; }
.prompt-list-copy p { margin: 0; }
.editor-shell > .back-link { margin-bottom: 30px; }
.editor-actions { display: flex; align-items: stretch; gap: 10px; }
.model-label { display: flex; flex-direction: column; justify-content: center; min-width: 175px; padding: 8px 15px; color: var(--white); background: var(--ink); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.model-label small { color: rgba(255,255,255,.5); font-family: var(--sans); font-size: 8px; letter-spacing: .1em; }
.save-notice, .editor-errors { margin-top: 28px; padding: 17px 20px; font-size: 12px; }
.save-notice { color: #315347; border: 1px solid rgba(49,83,71,.25); background: rgba(85,122,107,.09); }
.editor-errors { color: #7b3027; border: 1px solid rgba(155,57,46,.25); background: rgba(155,57,46,.06); }
.editor-errors ul { margin: 8px 0 0; padding-left: 20px; }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); align-items: start; gap: 22px; margin-top: 35px; }
.editor-main { min-width: 0; }
.editor-form, .advanced-editor, .compiled-panel, .restore-panel, .creator-editor-panel { border: 1px solid var(--line); background: var(--white); }
.editor-form { padding: 34px; }
.editor-section + .editor-section { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.editor-section-heading { display: flex; justify-content: space-between; gap: 25px; margin-bottom: 25px; }
.editor-section-heading > div { display: flex; align-items: center; gap: 12px; }
.editor-section-heading span { color: var(--accent-dark); font-family: var(--serif); font-size: 11px; }
.editor-section-heading h2 { margin: 0; font-family: var(--serif); font-size: 23px; font-weight: 500; }
.editor-section-heading > p { max-width: 250px; margin: 0; color: var(--muted); font-size: 10px; text-align: right; }
.editor-field { display: block; margin-bottom: 18px; }
.editor-field > span { display: block; margin-bottom: 7px; font-size: 11px; font-weight: 750; }
.editor-field input, .editor-field textarea, .editor-field select { width: 100%; padding: 13px 14px; color: var(--ink); border: 1px solid var(--line); border-radius: 0; outline: 0; background: #faf8f2; line-height: 1.65; }
.editor-field textarea { resize: vertical; }
.editor-field input:focus, .editor-field textarea:focus, .editor-field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent); }
.editor-field small { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; }
.model-detail { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line); background: #faf8f2; }
.model-detail summary { cursor: pointer; color: var(--accent-dark); font-size: 9px; font-weight: 800; }
.model-detail p { display: flex; justify-content: space-between; gap: 15px; margin: 10px 0 0; color: var(--muted); font-size: 9px; }
.model-detail p strong { color: var(--ink); }
.model-detail p span { text-align: right; }
.verification-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.verification-summary article { padding: 18px; border: 1px solid var(--line); background: var(--paper); }
.verification-summary span { display: block; color: var(--muted); font-size: 8px; }
.verification-summary strong { display: block; margin-top: 8px; font-family: var(--serif); font-size: 18px; font-weight: 500; }
.verification-note { margin: 16px 0 0; color: var(--muted); font-size: 9px; }
.price-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; margin-top: 18px; }
.price-form .editor-field { margin: 0; }
.creator-economy { display: flex; flex-wrap: wrap; gap: 5px 14px; margin: 10px 0; color: var(--accent-dark); font-size: 9px; font-weight: 750; }
.test-economy-bar { display: flex; justify-content: space-between; gap: 20px; padding: 12px 20px; color: var(--white); background: var(--ink); font-size: 9px; }
.test-economy-bar strong { font-size: 11px; }
.service-grade { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 5px 12px; margin-bottom: 22px; padding: 14px 16px; border: 1px solid var(--line); }
.service-grade > span { color: var(--muted); font-size: 9px; }
.service-grade > strong { font-family: var(--serif); font-size: 18px; font-weight: 500; }
.service-grade details { grid-column: 1 / -1; font-size: 9px; }
.service-grade details p { margin: 7px 0 0; color: var(--muted); }
.pass-price { margin: -10px 0 20px; color: var(--accent-dark); font-size: 11px; font-weight: 800; text-align: center; }
.editor-two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.episode-settings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.advanced-editor { margin-top: 18px; }
.advanced-editor summary { display: flex; align-items: center; justify-content: space-between; padding: 24px 28px; cursor: pointer; list-style: none; }
.advanced-editor summary::-webkit-details-marker { display: none; }
.advanced-editor summary > div span, .advanced-editor summary > div strong { display: block; }
.advanced-editor summary > div span { color: var(--accent-dark); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.advanced-editor summary > div strong { margin-top: 3px; font-family: var(--serif); font-size: 18px; }
.advanced-editor[open] summary > span { transform: rotate(45deg); }
.advanced-body { padding: 0 28px 28px; }
.advanced-body > p { color: var(--muted); font-size: 11px; }
.code-field textarea { min-height: 620px; color: #d9e2dc; border-color: #303a36; background: #202623; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; tab-size: 2; }
.compiled-panel { position: sticky; top: 20px; overflow: hidden; }
.compiled-heading { display: flex; justify-content: space-between; align-items: center; padding: 20px; color: var(--white); background: var(--ink); }
.compiled-heading span, .compiled-heading strong { display: block; }
.compiled-heading span { color: rgba(255,255,255,.55); font-size: 8px; letter-spacing: .1em; }
.compiled-heading strong { margin-top: 2px; font-family: var(--serif); font-size: 16px; font-weight: 500; }
.compiled-heading button { padding: 6px 10px; color: var(--white); border: 1px solid rgba(255,255,255,.3); background: transparent; cursor: pointer; font-size: 9px; }
.compiled-panel pre { max-height: 690px; margin: 0; padding: 20px; overflow: auto; color: #d9e2dc; background: #202623; white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; line-height: 1.65; }
.compiled-panel > p { margin: 0; padding: 16px 20px; color: var(--muted); font-size: 9px; }
.restore-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; padding: 23px 26px; }
.restore-panel strong { font-family: var(--serif); font-size: 16px; }
.restore-panel p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.creator-editor-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; margin-top: 18px; padding: 28px; }
.creator-editor-panel > div { display: grid; align-content: start; }
.creator-editor-panel > div > span { color: var(--accent-dark); font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.creator-editor-panel > div > strong { margin-top: 8px; font-family: var(--serif); font-size: 20px; font-weight: 500; line-height: 1.3; }
.creator-editor-panel > div > p { color: var(--muted); font-size: 9px; }
.creator-editor-panel form { display: grid; gap: 12px; }
.creator-editor-panel .secondary-button { justify-self: start; min-height: 42px; font-size: 9px; }
.danger-button { padding: 9px 13px; color: #8f362c; border: 1px solid rgba(143,54,44,.35); background: transparent; cursor: pointer; font-size: 10px; white-space: nowrap; }

.model-lab-shell, .comparison-shell, .comparison-result-shell { width: min(1160px, calc(100% - 48px)); margin: 0 auto; padding: 70px 0; }
.lab-heading, .result-lab-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.lab-heading h1, .comparison-heading h1, .result-lab-heading h1 { margin: 0; font-family: var(--serif); font-size: clamp(43px, 6vw, 66px); font-weight: 500; line-height: 1.12; letter-spacing: -.052em; }
.lab-heading > div > p:last-child, .comparison-heading > p:last-child { margin: 15px 0 0; color: var(--muted); font-size: 13px; }
.security-note { display: grid; grid-template-columns: 285px 1fr; gap: 30px; margin: 40px 0 22px; padding: 24px 28px; border-left: 3px solid #557a6b; background: var(--white); }
.security-note strong { font-family: var(--serif); font-size: 17px; }
.security-note p { margin: 0; color: var(--muted); font-size: 11px; }
.security-note code { padding: 2px 5px; background: var(--paper); }
.model-lab-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.model-connection-card { padding: 27px; border: 1px solid var(--line); background: var(--white); }
.model-connection-card.is-connected { border-top: 3px solid #557a6b; }
.model-card-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.provider-name { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.connection-state { padding: 4px 8px; color: #8b4a31; background: rgba(185,104,50,.09); font-size: 8px; font-weight: 800; }
.is-connected .connection-state { color: #315347; background: rgba(85,122,107,.11); }
.model-connection-card h2 { margin: 22px 0 2px; font-family: var(--serif); font-size: 25px; font-weight: 500; }
.model-connection-card > code { color: var(--accent-dark); font-size: 10px; }
.model-connection-card > p { min-height: 43px; margin: 15px 0; color: var(--muted); font-size: 11px; }
.model-card-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.model-card-metrics > div { padding: 14px 9px; border-right: 1px solid var(--line); }
.model-card-metrics > div:last-child { border-right: 0; }
.model-card-metrics span, .model-card-metrics strong { display: block; }
.model-card-metrics span { color: var(--muted); font-size: 8px; }
.model-card-metrics strong { margin-top: 3px; font-family: var(--serif); font-size: 18px; }
.model-test-button { width: 100%; min-height: 39px; color: var(--ink); border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 10px; }
.model-test-button:disabled { opacity: .5; cursor: wait; }
.env-instruction { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 39px; padding: 0 12px; color: var(--muted); border: 1px dashed var(--line); font-size: 8px; }
.env-instruction code { color: var(--ink); font-size: 9px; }
.connection-result { min-height: 18px !important; margin: 9px 0 0 !important; font-size: 9px !important; }
.connection-result.is-success { color: #315347; }
.connection-result.is-error { color: #8f362c; }

.comparison-heading { max-width: 780px; margin: 30px 0 48px; }
.comparison-form { border-top: 1px solid var(--ink); }
.comparison-step { display: grid; grid-template-columns: 330px 1fr; gap: 40px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.comparison-step-label { display: grid; grid-template-columns: 40px 1fr; gap: 15px; }
.comparison-step-label > span { color: var(--accent-dark); font-family: var(--serif); font-size: 12px; }
.comparison-step-label strong { font-family: var(--serif); font-size: 18px; }
.comparison-step-label p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.comparison-step > select, .comparison-step > textarea { width: 100%; padding: 14px 16px; color: var(--ink); border: 1px solid var(--line); border-radius: 0; outline: 0; background: var(--white); resize: vertical; }
.model-checkbox-grid { display: grid; gap: 8px; }
.model-checkbox { position: relative; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 13px; min-height: 65px; padding: 12px 16px; border: 1px solid var(--line); background: var(--white); cursor: pointer; }
.model-checkbox input { position: absolute; opacity: 0; }
.check-mark { width: 18px; height: 18px; border: 1px solid var(--line); }
.model-checkbox input:checked + .check-mark { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 4px var(--white); }
.model-checkbox strong, .model-checkbox small { display: block; }
.model-checkbox strong { font-family: var(--serif); font-size: 15px; }
.model-checkbox small { color: var(--muted); font-size: 8px; }
.model-checkbox em { color: #315347; font-size: 8px; font-style: normal; }
.model-checkbox.is-disabled { opacity: .47; cursor: not-allowed; }
.comparison-submit { margin-top: 24px; }
.comparison-error { min-height: 22px; color: #8f362c; font-size: 10px; text-align: center; }
.comparison-loading { margin-top: 28px; padding: 45px; text-align: center; background: var(--white); box-shadow: var(--shadow); }
.comparison-loading span { display: inline-block; width: 7px; height: 7px; margin: 0 3px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s infinite ease-in-out; }
.comparison-loading span:nth-child(2) { animation-delay: .12s; }
.comparison-loading span:nth-child(3) { animation-delay: .24s; }
.comparison-loading strong { display: block; margin-top: 15px; font-family: var(--serif); font-size: 19px; }
.comparison-loading p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.recent-comparisons { margin-top: 70px; padding: 30px; background: var(--white); }
.recent-run-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.recent-run-list a { padding: 17px; border: 1px solid var(--line); }
.recent-run-list span, .recent-run-list small { display: block; color: var(--muted); font-size: 8px; }
.recent-run-list strong { display: block; margin: 5px 0 12px; font-family: var(--serif); font-size: 14px; }

.result-lab-heading { margin: 30px 0 35px; }
.benchmark-input { margin-bottom: 24px; padding: 24px 28px; color: var(--white); background: var(--ink); }
.benchmark-input span { color: rgba(255,255,255,.55); font-size: 8px; letter-spacing: .1em; }
.benchmark-input p { margin: 8px 0 0; font-family: var(--serif); font-size: 18px; }
.blind-output-grid { display: grid; grid-template-columns: repeat(2, 1fr); align-items: start; gap: 14px; }
.blind-output { overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.blind-output > header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 20px; color: var(--white); background: var(--card-bg, #4c5d56); }
.blind-output > header span { font-family: var(--serif); font-size: 15px; }
.hidden-model { max-width: 70%; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; text-align: right; }
.candidate-story { padding: 29px 26px 20px; }
.candidate-story .narration { font-size: 16px; }
.candidate-story blockquote { margin: 25px 0; padding: 20px; border-left: 2px solid var(--accent); background: var(--paper); font-family: var(--serif); font-size: 20px; line-height: 1.65; }
.candidate-story .reaction { text-align: left; }
.next-prompt { margin-top: 23px; padding-top: 17px; border-top: 1px solid var(--line); }
.next-prompt span { color: var(--accent-dark); font-size: 8px; font-weight: 800; }
.next-prompt p { margin: 5px 0 0; font-size: 11px; }
.candidate-metrics { display: flex; flex-wrap: wrap; gap: 15px; padding: 12px 24px; color: var(--muted); border-top: 1px solid var(--line); background: #faf8f2; font-size: 8px; }
.candidate-rating { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 22px 24px; border-top: 1px solid var(--line); }
.candidate-rating label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 9px; }
.candidate-rating select, .candidate-rating input { padding: 7px 9px; border: 1px solid var(--line); border-radius: 0; background: var(--white); font-size: 9px; }
.candidate-rating .rating-note { grid-column: span 2; }
.candidate-rating .rating-note input { flex: 1; }
.candidate-error { padding: 50px 25px; color: #8f362c; text-align: center; }
.candidate-error p { color: var(--muted); font-size: 10px; }
.rating-submit { margin-top: 22px; }

/* Live prompt playground */
.prompt-playground-page { overflow-anchor: none; }
.playground-shell { width: min(1320px, calc(100% - 48px)); margin: 0 auto; padding: 64px 0 24px; }
.playground-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 30px; }
.playground-heading h1 { margin: 0; font-family: var(--serif); font-size: clamp(42px, 6vw, 72px); font-weight: 500; line-height: .98; letter-spacing: -.04em; }
.playground-heading > div:first-child > p:last-child { max-width: 640px; margin: 22px 0 0; color: var(--muted); font-size: 12px; }
.playground-rule { display: grid; max-width: 310px; padding: 16px 19px; border-left: 3px solid #507366; background: rgba(255,255,255,.5); }
.playground-rule strong { font-size: 10px; letter-spacing: .08em; }
.playground-rule span { margin-top: 4px; color: var(--muted); font-size: 9px; }
.prompt-workbench { display: grid; grid-template-columns: minmax(360px, .85fr) minmax(500px, 1.35fr); min-height: 720px; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.prompt-console { display: flex; flex-direction: column; padding: 26px; border-right: 1px solid var(--line); background: #e9e4d9; }
.console-heading, .live-chat-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 43px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.console-heading > div { display: grid; }
.console-heading span, .live-chat-heading span { color: var(--muted); font-size: 8px; letter-spacing: .06em; }
.console-heading strong { font-family: var(--serif); font-size: 16px; font-weight: 500; }
.draft-state { text-align: right; }
.console-field { display: grid; gap: 7px; margin-top: 18px; }
.console-field > span { font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.console-field select { min-height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 0; color: var(--ink); background: var(--white); font-size: 10px; }
.episode-control-panel { margin: 18px 0 0; padding: 14px; border: 1px solid rgba(49,83,71,.2); background: rgba(85,122,107,.06); }
.episode-control-panel legend { padding: 0 6px; color: #315347; font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.episode-control-panel > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.episode-control-panel label { display: grid; gap: 5px; }
.episode-control-panel label > span { color: var(--muted); font-size: 8px; }
.episode-control-panel select { min-width: 0; min-height: 38px; padding: 0 8px; border: 1px solid var(--line); background: var(--white); font-size: 9px; }
.episode-control-panel > small { display: block; margin-top: 9px; color: var(--muted); font-size: 8px; line-height: 1.55; }
.engine-control-panel { border-color: rgba(151,93,42,.24); background: rgba(183,116,51,.07); }
.engine-control-panel legend { color: #7b4a25; }
.engine-control-panel > div { grid-template-columns: 1fr; }
.engine-control-panel .engine-custom-field { display: grid; gap: 6px; margin-top: 10px; }
.engine-control-panel .engine-custom-field[hidden], .editor-field[hidden] { display: none; }
.engine-control-panel textarea { width: 100%; min-height: 105px; resize: vertical; padding: 10px; border: 1px solid var(--line); color: var(--ink); background: #fffdf8; font-family: ui-monospace, SFMono-Regular, Consolas, "Malgun Gothic", monospace; font-size: 9px; line-height: 1.6; }
.engine-control-panel .engine-custom-field > small { color: var(--muted); font-size: 8px; text-align: right; }
.prompt-textarea-field { flex: 1; min-height: 0; }
.prompt-textarea-field textarea { width: 100%; height: 100%; min-height: 390px; resize: vertical; padding: 18px; border: 1px solid var(--line); border-radius: 0; color: #2e2d29; background: #fffdf8; font-family: ui-monospace, SFMono-Regular, Consolas, "Malgun Gothic", monospace; font-size: 11px; line-height: 1.75; }
.prompt-count { display: flex; justify-content: end; gap: 3px; margin-top: 6px; color: var(--muted); font-size: 8px; }
.console-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.console-actions .primary-button, .console-actions .secondary-button { min-height: 48px; padding: 0 12px; gap: 0; font-size: 9px; }
.console-note { margin: 12px 0 0; color: var(--muted); font-size: 8px; text-align: center; }
.showcase-manage-link { display: block; margin-top: 13px; color: var(--accent-dark); font-size: 9px; font-weight: 800; text-align: center; text-decoration: underline; text-underline-offset: 4px; }

/* Member accounts and creator studio */
.member-auth-shell { display: grid; grid-template-columns: 1fr minmax(360px, 480px); gap: 80px; width: min(1060px, calc(100% - 48px)); min-height: 680px; margin: 0 auto; padding: 90px 0 60px; align-items: center; }
.member-auth-intro h1, .creator-heading h1, .creator-form-shell > header h1 { margin: 0; font-family: var(--serif); font-size: clamp(48px, 6vw, 76px); font-weight: 500; line-height: 1.02; letter-spacing: -.04em; }
.member-auth-intro > p:last-child, .creator-heading > div > p:last-child, .creator-form-shell > header > p:last-child { max-width: 570px; margin: 24px 0 0; color: var(--muted); font-size: 13px; }
.member-auth-form { padding: 34px; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.member-auth-form header { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.member-auth-form header span { color: var(--accent-dark); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.member-auth-form h2 { margin: 4px 0 0; font-family: var(--serif); font-size: 29px; font-weight: 500; }
.member-auth-form label { display: grid; gap: 7px; margin-top: 18px; font-size: 10px; font-weight: 750; }
.member-auth-form input { width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid var(--line); background: #faf8f2; outline: none; }
.member-auth-form input:focus { border-color: var(--accent); }
.member-auth-form .primary-button { margin-top: 24px; }
.member-auth-form > p:last-child { margin: 17px 0 0; color: var(--muted); font-size: 10px; text-align: center; }
.member-auth-form > p:last-child a { color: var(--accent-dark); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.member-auth-form .form-error { margin: 18px 0 0; color: #8f362c; font-size: 11px; }
.oauth-login-list { display: grid; gap: 9px; margin-top: 22px; }
.oauth-login-button { display: flex; align-items: center; justify-content: center; gap: 11px; min-height: 48px; padding: 0 16px; border: 1px solid var(--line); font-size: 11px; font-weight: 800; transition: transform .15s ease, opacity .15s ease; }
.oauth-login-button:hover { transform: translateY(-1px); opacity: .88; }
.oauth-login-button > span { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; font-size: 10px; font-weight: 900; }
.oauth-kakao { color: #191919; border-color: #fee500; background: #fee500; }
.oauth-kakao > span { background: rgba(25,25,25,.1); }
.oauth-naver { color: #fff; border-color: #03c75a; background: #03c75a; }
.oauth-naver > span { background: rgba(255,255,255,.18); }
.oauth-google { color: #3c4043; background: #fff; }
.oauth-google > span { color: #4285f4; border: 1px solid rgba(60,64,67,.18); }
.auth-divider { display: flex; align-items: center; gap: 13px; margin: 22px 0 2px; color: var(--muted); font-size: 9px; text-align: center; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.hashtag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.hashtag-list span { padding: 3px 8px; color: var(--accent-dark); background: color-mix(in srgb, var(--accent) 10%, transparent); font-size: 9px; font-weight: 750; }
.detail-hashtags { margin: -18px 0 28px; }

.creator-shell, .creator-form-shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 75px 0; }
.creator-heading { display: flex; align-items: end; justify-content: space-between; gap: 45px; margin-bottom: 42px; }
.creator-heading h1 { font-size: clamp(48px, 6vw, 72px); }
.creator-work-list { display: grid; gap: 14px; }
.creator-work-list article { display: grid; grid-template-columns: 130px minmax(0, 1fr) 155px; gap: 25px; align-items: center; padding: 25px; border: 1px solid var(--line); background: var(--white); }
.creator-work-status { display: grid; gap: 8px; align-self: stretch; align-content: start; padding-right: 20px; border-right: 1px solid var(--line); }
.creator-work-status > span { width: max-content; padding: 4px 8px; font-size: 8px; font-weight: 850; letter-spacing: .08em; }
.creator-work-status .is-public { color: #315347; background: rgba(85,122,107,.12); }
.creator-work-status .is-draft { color: #7b4a25; background: rgba(183,116,51,.12); }
.creator-work-status small, .creator-work-copy > span, .creator-work-copy small { color: var(--muted); font-size: 9px; }
.creator-work-copy h2 { margin: 4px 0 6px; font-family: var(--serif); font-size: 25px; font-weight: 500; }
.creator-work-copy p { margin: 0 0 8px; color: var(--muted); font-size: 11px; }
.creator-work-actions { display: grid; gap: 6px; }
.creator-work-actions a, .creator-work-actions button { display: block; width: 100%; padding: 8px 10px; color: var(--ink); border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 9px; text-align: center; }
.creator-work-actions form { margin: 0; }
.creator-work-actions form button { color: var(--white); border-color: var(--ink); background: var(--ink); }
.creator-empty { display: grid; min-height: 430px; place-items: center; place-content: center; padding: 55px; border: 1px dashed rgba(32,32,29,.25); text-align: center; }
.creator-empty > span { color: var(--accent); font-family: var(--serif); font-size: 13px; }
.creator-empty h2 { margin: 12px 0; font-family: var(--serif); font-size: 38px; font-weight: 500; line-height: 1.08; }
.creator-empty p { max-width: 500px; margin: 0 0 25px; color: var(--muted); font-size: 11px; }
.creator-form-shell > .back-link { display: inline-block; margin-bottom: 34px; }
.creator-form-shell > header { margin-bottom: 38px; }
.creator-build-form { display: grid; gap: 18px; }
.creator-build-form > section { padding: 34px; border: 1px solid var(--line); background: var(--white); }
.creator-submit-bar { position: sticky; z-index: 5; bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 18px 20px; color: var(--white); background: rgba(32,32,29,.96); box-shadow: 0 14px 50px rgba(0,0,0,.2); }
.creator-submit-bar p { max-width: 650px; margin: 0; color: rgba(255,255,255,.65); font-size: 10px; }
.creator-submit-bar .primary-button { color: var(--ink); background: var(--white); white-space: nowrap; }
.live-chat-panel { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; min-width: 0; padding: 26px 30px 28px; }
.live-chat-heading > div { display: flex; align-items: center; gap: 9px; }
.live-chat-heading strong { font-size: 10px; }
.live-chat-heading > span { max-width: 60%; text-align: right; }
.live-chat-feed { overflow-y: auto; overflow-anchor: none; min-height: 430px; max-height: 690px; padding: 34px 4px; scroll-behavior: smooth; }
.chat-empty { display: grid; min-height: 100%; place-content: center; max-width: 470px; margin: 0 auto; text-align: center; }
.chat-empty > span { color: var(--accent); font-family: var(--serif); font-size: 12px; }
.chat-empty h2 { margin: 13px 0 17px; font-family: var(--serif); font-size: 36px; font-weight: 500; line-height: 1.08; }
.chat-empty p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.live-message { display: grid; gap: 7px; max-width: 86%; margin-bottom: 26px; }
.live-message > span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.live-message > p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.live-message.is-user { margin-left: auto; justify-items: end; }
.live-message.is-user > p { padding: 13px 17px; color: var(--white); background: var(--ink); font-size: 11px; }
.live-message.is-assistant { padding-left: 17px; border-left: 2px solid #b96832; }
.live-message.is-assistant > p { font-family: var(--serif); font-size: 17px; line-height: 1.85; }
.new-message-button { position: absolute; z-index: 3; right: 42px; bottom: 210px; min-height: 34px; padding: 0 14px; color: var(--white); border: 0; border-radius: 18px; background: var(--ink); box-shadow: 0 8px 24px rgba(32,32,29,.22); cursor: pointer; font-size: 9px; }
.chat-thinking { display: flex; align-items: center; gap: 5px; padding: 10px 0; color: var(--muted); font-size: 9px; }
.chat-thinking i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s infinite ease-in-out; }
.chat-thinking i:nth-child(2) { animation-delay: .15s; }
.chat-thinking i:nth-child(3) { animation-delay: .3s; }
.chat-thinking span { margin-left: 7px; }
.live-chat-composer { padding-top: 18px; border-top: 1px solid var(--line); }
.continue-scene-button { display: flex; align-items: center; justify-content: space-between; gap: 22px; width: 100%; min-height: 50px; margin-bottom: 14px; padding: 10px 15px; color: #315347; border: 1px solid rgba(49,83,71,.28); background: rgba(85,122,107,.07); cursor: pointer; text-align: left; }
.continue-scene-button strong { font-family: var(--serif); font-size: 15px; font-weight: 500; }
.continue-scene-button span { color: var(--muted); font-size: 8px; }
.continue-scene-button:disabled { opacity: .45; cursor: not-allowed; }
.live-chat-composer > label { display: block; margin-bottom: 7px; font-size: 9px; font-weight: 800; }
.live-chat-composer textarea { width: 100%; resize: vertical; padding: 13px 14px; border: 1px solid var(--line); border-radius: 0; background: #faf8f2; font-size: 11px; }
.live-chat-composer > div { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 9px; }
.live-chat-composer > div > span { color: var(--muted); font-size: 8px; }
.live-chat-composer .primary-button { min-height: 42px; padding: 0 20px; font-size: 9px; }
.conversation-capacity { margin-top: 11px; }
.conversation-capacity > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 8px; }
.capacity-track { overflow: hidden; height: 3px; margin-top: 7px; background: var(--paper-deep); }
.capacity-track i { display: block; width: 0; height: 100%; background: #557a6b; transition: width .25s ease, background .25s ease; }
.capacity-track i.is-warning { background: #b96832; }
.conversation-capacity p { margin: 6px 0 0; color: var(--muted); font-size: 8px; }
.conversation-capacity p.is-limit { color: #8f362c; font-weight: 700; }

/* Actual play showcases */
.showcase-manager-shell, .showcase-detail-shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 64px 0; }
.showcase-manager-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin: 30px 0 38px; }
.showcase-manager-heading h1 { margin: 0; font-family: var(--serif); font-size: clamp(42px, 6vw, 68px); font-weight: 500; line-height: 1; }
.showcase-manager-heading > div:first-child > p:last-child { margin: 15px 0 0; color: var(--muted); }
.publish-readiness { display: grid; min-width: 180px; padding: 17px 20px; color: var(--white); background: #7d4539; }
.publish-readiness.is-ready { background: #315347; }
.publish-readiness span, .publish-readiness small { color: rgba(255,255,255,.7); font-size: 8px; }
.publish-readiness strong { font-family: var(--serif); font-size: 25px; font-weight: 500; }
.showcase-principle { display: grid; grid-template-columns: 310px 1fr; gap: 28px; padding: 24px 28px; border-left: 3px solid var(--accent); background: var(--white); }
.showcase-principle p { margin: 0; color: var(--muted); font-size: 11px; }
.registered-showcases, .eligible-conversations { margin-top: 40px; padding: 30px; background: var(--white); }
.registered-showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.registered-showcase-grid article { display: flex; flex-direction: column; min-height: 250px; padding: 23px; border: 1px solid var(--line); }
.registered-showcase-grid article > span { color: var(--accent-dark); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.registered-showcase-grid h3 { margin: 24px 0 10px; font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.25; }
.registered-showcase-grid p { flex: 1; color: var(--muted); font-size: 10px; }
.registered-showcase-grid small { color: var(--muted); font-size: 8px; }
.registered-showcase-grid article > div { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); }
.registered-showcase-grid article a, .registered-showcase-grid article button { padding: 0; color: var(--accent-dark); border: 0; background: none; cursor: pointer; font-size: 8px; text-decoration: underline; text-underline-offset: 3px; }
.showcase-empty { padding: 50px 20px; border: 1px dashed var(--line); text-align: center; }
.showcase-empty strong { font-family: var(--serif); font-size: 20px; font-weight: 500; }
.showcase-empty p { color: var(--muted); font-size: 10px; }
.showcase-empty .primary-button { margin-top: 12px; }
.eligible-list { display: grid; gap: 9px; }
.eligible-list details { border: 1px solid var(--line); }
.eligible-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 20px; cursor: pointer; list-style: none; }
.eligible-list summary::-webkit-details-marker { display: none; }
.eligible-list summary div { display: grid; }
.eligible-list summary strong { font-family: var(--serif); font-size: 15px; }
.eligible-list summary span { color: var(--muted); font-size: 8px; }
.eligible-list form { display: grid; gap: 13px; padding: 20px; border-top: 1px solid var(--line); background: #faf8f2; }
.eligible-list form label { display: grid; gap: 6px; }
.eligible-list form label span { font-size: 9px; font-weight: 800; }
.eligible-list form input { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); background: var(--white); font-size: 10px; }
.eligible-list form p { margin: 0; color: var(--muted); font-size: 8px; }
.eligible-list form .primary-button { justify-self: start; min-height: 44px; font-size: 9px; }
.showcase-limit-note { padding: 25px; color: var(--muted); border: 1px dashed var(--line); text-align: center; font-size: 10px; }
.showcase-detail-shell > header { max-width: 850px; margin: 30px auto 50px; text-align: center; }
.showcase-detail-shell > header h1 { margin: 12px 0 18px; font-family: var(--serif); font-size: clamp(39px, 6vw, 68px); font-weight: 500; line-height: 1.08; }
.showcase-detail-shell > header > p:not(.eyebrow) { color: var(--muted); }
.showcase-detail-shell > header > div { display: flex; justify-content: center; gap: 18px; color: var(--muted); font-size: 8px; }
.showcase-transcript { max-width: 780px; margin: 0 auto; padding: 40px; background: var(--white); box-shadow: var(--shadow); }
.showcase-message { max-width: 88%; margin-bottom: 28px; }
.showcase-message > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.showcase-message p { margin: 0; white-space: pre-wrap; }
.showcase-message.is-user { margin-left: auto; text-align: right; }
.showcase-message.is-user p { display: inline-block; padding: 12px 16px; color: var(--white); background: var(--ink); font-size: 11px; text-align: left; }
.showcase-message.is-assistant { padding-left: 17px; border-left: 2px solid var(--accent); }
.showcase-message.is-assistant p { font-family: var(--serif); font-size: 17px; line-height: 1.85; }
.showcase-cta { max-width: 780px; margin: 20px auto 0; padding: 30px; color: var(--white); background: var(--ink); text-align: center; }
.showcase-cta p { font-family: var(--serif); font-size: 20px; }
.showcase-cta form { display: inline-block; }
.showcase-preview-section { margin-top: 65px; }
.showcase-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.showcase-preview-grid a { display: flex; flex-direction: column; min-height: 230px; padding: 25px; border: 1px solid var(--line); background: var(--white); }
.showcase-preview-grid span { color: var(--accent-dark); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.showcase-preview-grid h3 { margin: 28px 0 10px; font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.25; }
.showcase-preview-grid p { flex: 1; color: var(--muted); font-size: 10px; }
.showcase-preview-grid strong { font-size: 9px; }
.creator-note-section { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 30px; margin-top: 30px; padding: 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.creator-note-section > span { color: var(--accent-dark); font-size: 9px; font-weight: 800; }
.creator-note-section blockquote { margin: 0; font-family: var(--serif); font-size: 18px; }
.creator-note-section p { color: var(--muted); font-size: 9px; }

/* Origin story */
.origin-story { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 9vw, 120px); margin-top: 120px; padding-top: 80px; padding-bottom: 70px; border-top: 1px solid var(--line); }
.origin-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(40px, 5vw, 64px); font-weight: 500; line-height: 1.05; }
.origin-copy { max-width: 680px; }
.origin-copy > p { color: var(--muted); font-size: 13px; line-height: 2; }
.origin-copy .origin-lead { margin-top: 0; color: var(--ink); font-family: var(--serif); font-size: 24px; line-height: 1.55; }
.origin-copy blockquote { margin: 40px 0; padding: 25px 0 25px 25px; border-left: 3px solid var(--accent); font-family: var(--serif); font-size: 22px; }
.origin-copy > strong { display: block; font-family: var(--serif); font-size: 18px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 65px 40px 80px; }
  .hero h1 .hero-title-line { white-space: normal; }
  .hero-scene { min-height: 400px; }
  .simulation-grid { grid-template-columns: 1fr 1fr; }
  .simulation-card:last-child { grid-column: span 2; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-art { min-height: 300px; }
  .detail-copy { padding: 45px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .editor-layout { grid-template-columns: 1fr; }
  .episode-settings-grid { grid-template-columns: 1fr; }
  .compiled-panel { position: static; }
  .compiled-panel pre { max-height: 480px; }
  .model-lab-grid, .blind-output-grid { grid-template-columns: 1fr; }
  .prompt-workbench { grid-template-columns: 1fr; }
  .prompt-console { border-right: 0; border-bottom: 1px solid var(--line); }
  .prompt-textarea-field textarea { min-height: 350px; }
  .episode-control-panel > div { grid-template-columns: 1fr; }
  .comparison-step { grid-template-columns: 1fr; gap: 18px; }
  .recent-run-list { grid-template-columns: 1fr 1fr; }
  .registered-showcase-grid, .showcase-preview-grid { grid-template-columns: 1fr 1fr; }
  .registered-showcase-grid article:last-child, .showcase-preview-grid a:last-child { grid-column: span 2; }
  .origin-story { grid-template-columns: 1fr; }
  .member-auth-shell { grid-template-columns: 1fr; gap: 35px; padding-top: 55px; }
  .creator-work-list article { grid-template-columns: 110px minmax(0, 1fr); }
  .creator-work-actions { grid-column: 2; grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 620px) {
  .site-header { height: 64px; padding: 0 18px; }
  .site-nav { gap: 15px; }
  .quiet-link { display: none; }
  .site-footer { margin: 50px 18px 0; padding-bottom: 26px; }
  .hero { padding: 56px 24px 60px; }
  .hero h1 { font-size: 44px; }
  .hero-scene { min-height: 350px; margin-top: 20px; }
  .preview-card { padding: 31px 27px 24px; }
  .preview-quote { font-size: 27px; }
  .section-shell { width: min(100% - 32px, 1180px); }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 12px; text-align: left; }
  .simulation-grid { grid-template-columns: 1fr; }
  .simulation-card:last-child { grid-column: auto; }
  .steps { grid-template-columns: 1fr; }
  .steps article, .steps article:first-child { min-height: auto; padding: 25px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .steps h3 { margin-top: 18px; }
  .detail-shell { width: calc(100% - 24px); padding-top: 24px; }
  .back-link { margin-bottom: 24px; }
  .detail-copy { padding: 36px 25px; }
  .detail-copy h1 { font-size: 39px; }
  .play-heading { display: block; }
  .play-status-group { justify-items: start; margin-top: 9px; }
  .story-status { margin-top: 9px; }
  .story-stage { padding: 42px 21px; }
  .story-beat blockquote { padding: 22px 20px; font-size: 21px; }
  .input-footer { display: block; }
  .input-hint { display: none; }
  .input-footer .primary-button { width: 100%; margin-top: 12px; }
  .result-shell { padding-top: 48px; }
  .ending-card { padding: 38px 25px; }
  .score-row { grid-template-columns: 1fr; }
  .score-row > span { display: none; }
  .result-actions { align-items: stretch; flex-direction: column; }
  .result-actions > *, .result-actions button { width: 100%; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid article { padding: 18px; }
  .insight-panel { padding: 20px; }
  .insight-table-wrap { overflow-x: auto; }
  .insight-table { min-width: 620px; }
  .comment-list { grid-template-columns: 1fr; }
  .admin-shell, .editor-shell { width: calc(100% - 28px); padding-top: 45px; }
  .admin-heading, .editor-heading { display: block; }
  .engine-badge { margin-top: 25px; }
  .prototype-notice { grid-template-columns: 1fr; gap: 8px; }
  .prompt-list-item { grid-template-columns: 36px 1fr; }
  .prompt-list-item .secondary-button { grid-column: 2; width: 100%; }
  .prompt-list-actions { grid-column: 2; align-items: stretch; flex-direction: column; }
  .editor-actions { margin-top: 22px; flex-direction: column; }
  .editor-form { padding: 24px 18px; }
  .editor-section-heading { display: block; }
  .editor-section-heading > p { margin-top: 8px; text-align: left; }
  .editor-two-column { grid-template-columns: 1fr; }
  .advanced-editor summary, .advanced-body { padding-left: 18px; padding-right: 18px; }
  .restore-panel { align-items: stretch; flex-direction: column; }
  .creator-editor-panel { grid-template-columns: 1fr; }
  .site-nav .nav-library { display: none; }
  .member-auth-shell, .creator-shell, .creator-form-shell { width: calc(100% - 28px); padding-top: 42px; }
  .member-auth-intro h1, .creator-heading h1, .creator-form-shell > header h1 { font-size: 43px; }
  .member-auth-form, .creator-build-form > section { padding: 24px 18px; }
  .creator-heading { display: block; }
  .creator-heading > .primary-button { width: 100%; margin-top: 24px; }
  .creator-work-list article { grid-template-columns: 1fr; }
  .creator-work-status { display: flex; align-items: center; justify-content: space-between; padding: 0 0 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .creator-work-actions { grid-column: 1; grid-template-columns: 1fr 1fr; }
  .creator-submit-bar { align-items: stretch; flex-direction: column; }
  .verification-summary { grid-template-columns: 1fr 1fr; }
  .price-form, .model-detail p { grid-template-columns: 1fr; display: grid; }
  .model-detail p span { text-align: left; }
  .test-economy-bar { align-items: flex-start; flex-direction: column; gap: 3px; }
  .playground-shell { width: calc(100% - 20px); padding-top: 38px; }
  .playground-heading { display: block; }
  .playground-rule { max-width: none; margin-top: 22px; }
  .prompt-console, .live-chat-panel { padding: 20px 16px; }
  .console-actions { grid-template-columns: 1fr; }
  .live-chat-heading { align-items: flex-start; flex-direction: column; }
  .live-chat-heading > span { max-width: none; text-align: left; }
  .live-chat-feed { min-height: 390px; max-height: 560px; }
  .live-message { max-width: 95%; }
  .continue-scene-button { align-items: flex-start; flex-direction: column; gap: 3px; }
  .showcase-manager-shell, .showcase-detail-shell { width: calc(100% - 24px); padding-top: 42px; }
  .showcase-manager-heading { align-items: stretch; flex-direction: column; }
  .showcase-principle { grid-template-columns: 1fr; gap: 8px; }
  .registered-showcases, .eligible-conversations { padding: 20px 15px; }
  .registered-showcase-grid, .showcase-preview-grid { grid-template-columns: 1fr; }
  .registered-showcase-grid article:last-child, .showcase-preview-grid a:last-child { grid-column: auto; }
  .showcase-transcript { padding: 30px 18px; }
  .creator-note-section { grid-template-columns: 1fr; gap: 10px; }
  .origin-story { margin-top: 80px; padding-top: 60px; }
  .model-lab-shell, .comparison-shell, .comparison-result-shell { width: calc(100% - 28px); padding-top: 44px; }
  .lab-heading, .result-lab-heading { display: block; }
  .lab-heading .primary-button, .result-lab-heading .secondary-button { width: 100%; margin-top: 22px; }
  .security-note { grid-template-columns: 1fr; gap: 8px; }
  .model-card-metrics { grid-template-columns: 1fr; }
  .model-card-metrics > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .model-card-metrics > div:last-child { border-bottom: 0; }
  .model-checkbox { grid-template-columns: 22px 1fr; }
  .model-checkbox em { grid-column: 2; }
  .recent-run-list { grid-template-columns: 1fr; }
  .candidate-rating { grid-template-columns: 1fr; }
  .candidate-rating .rating-note { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
