:root {
  --ink: #2a2033;
  --paper: #fffaf0;
  --paper2: #f3e9d2;
  --muted: #7a6f80;
  --red: #e2574c;
  --mustard: #f0b93a;
  --teal: #3aa676;
  --blue: #3d7dd8;
  --night: #121730;
  --edge: 0 0 0 2px var(--ink), 4px 4px 0 2px rgba(10, 8, 20, .45);
  --font: Galmuri11, 'Apple SD Gothic Neo', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--night); color: var(--ink); font-family: var(--font); font-size: 13px; overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }
small { color: var(--muted); font-family: Galmuri9, var(--font); font-size: 11px; }

#globe { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; cursor: grab; touch-action: none; }

/* ---------- controls ---------- */
button { cursor: pointer; border: 0; background: none; }
.primary, .ghost, .chip-btn {
  padding: 8px 14px; background: var(--paper); box-shadow: var(--edge); transition: transform .05s;
}
.primary { background: var(--red); color: #fff; }
.primary:active, .ghost:active, .chip-btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 2px var(--ink); }
.primary:disabled { background: #b9aeb8; cursor: not-allowed; }
input, select, textarea {
  width: 100%; padding: 8px 10px; background: #fff; border: 0; box-shadow: inset 0 0 0 2px var(--ink); outline: none; border-radius: 0;
}
input:focus, select:focus, textarea:focus { box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 4px var(--mustard); }
textarea { resize: vertical; }
.inline { display: flex; gap: 10px; align-items: center; }
.inline > input, .inline > select { flex: 1; }
.inline > button { white-space: nowrap; }

.seg { display: inline-flex; box-shadow: var(--edge); background: var(--paper); }
.seg button { padding: 7px 14px; border-right: 2px solid var(--ink); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--mustard); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.chip { padding: 6px 10px; background: #fff; box-shadow: 0 0 0 2px var(--ink); }
.chip.on { background: var(--ink); color: var(--paper); }
.chip .x { margin-left: 6px; opacity: .6; }

/* ---------- setup ---------- */
.setup { position: fixed; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) 560px; align-items: center; padding: 40px 6vw; gap: 40px; pointer-events: none; }
.setup > * { pointer-events: auto; }
.brand { color: var(--paper); align-self: start; padding-top: 2vh; pointer-events: none; }
.brand h1 { font-family: Galmuri14, var(--font); font-size: 44px; margin: 0 0 12px; letter-spacing: 1px; text-shadow: 3px 3px 0 var(--ink); }
.stats-link { display: inline-block; margin-top: 16px; padding: 6px 12px; background: var(--paper); color: var(--ink); text-decoration: none; box-shadow: var(--edge); pointer-events: auto; }
.chip-btn { text-decoration: none; color: inherit; }
.brand p { font-size: 15px; max-width: 420px; line-height: 1.6; color: #d9dcf2; text-shadow: 2px 2px 0 var(--ink); margin: 0; }
.setup-card { background: var(--paper); box-shadow: var(--edge); display: flex; flex-direction: column; max-height: calc(100vh - 80px); }
.steps { display: flex; border-bottom: 2px solid var(--ink); background: var(--paper2); }
.steps button { flex: 1; padding: 11px 0; border-right: 2px solid var(--ink); color: var(--muted); }
.steps button:last-child { border-right: 0; }
.steps button.on { background: var(--paper); color: var(--ink); }
.steps button.done { color: var(--teal); }
.pane { display: none; padding: 20px 24px 8px; overflow-y: auto; }
.pane.on { display: block; }
.pane h2 { font-family: Galmuri14, var(--font); font-size: 20px; margin: 0 0 16px; }
.pane h3 { font-size: 14px; margin: 18px 0 4px; }
.field { margin-bottom: 14px; }
.field > label { display: block; margin-bottom: 6px; }
.field > label small { margin-left: 6px; }
.mode-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.mode { display: flex; flex-direction: column; gap: 4px; padding: 12px; background: #fff; box-shadow: 0 0 0 2px var(--ink); cursor: pointer; }
.mode input { display: none; }
.mode:has(input:checked) { background: var(--mustard); box-shadow: var(--edge); }
.mode b { font-size: 14px; }
.pane h3.role { font-size: 14px; margin: 4px 0 10px; padding-top: 4px; }
.pane h3.role small { display: block; margin: 3px 0 0; }
.pane h3.role ~ h3.role { margin-top: 20px; padding-top: 16px; border-top: 2px dashed #d8ccb2; }
.hint-line { font-size: 12px; color: var(--muted); margin: -4px 0 10px; }
.mode-row.four { grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mode-row.four .mode { padding: 10px; }
.test-row { display: flex; gap: 12px; align-items: center; margin: 4px 0 12px; }
#pingOut { font-size: 12px; }
#pingOut.ok { color: var(--teal); }
#pingOut.bad { color: var(--red); }
.setup-foot { display: flex; justify-content: space-between; padding: 14px 24px 18px; border-top: 2px dashed #d8ccb2; }

.ladder { display: flex; flex-direction: column-reverse; gap: 6px; }
.rung { display: grid; grid-template-columns: 120px 1fr 74px; align-items: center; gap: 10px; padding: 9px 12px; background: #fff; box-shadow: 0 0 0 2px var(--ink); text-align: left; }
.rung b { font-size: 14px; }
.rung span { color: var(--muted); font-size: 12px; }
.rung i { font-style: normal; text-align: right; font-size: 12px; }
.rung.on { background: var(--ink); color: var(--paper); box-shadow: var(--edge); }
.rung.on span { color: #cfc6d6; }
.tier-detail { margin-top: 14px; padding: 12px 14px; background: var(--paper2); box-shadow: 0 0 0 2px var(--ink); line-height: 1.6; font-size: 12px; }
.tier-detail .bars { display: flex; gap: 16px; margin-top: 6px; }
.tier-detail .bars b { color: var(--red); }

.team-preview { display: flex; gap: 14px; flex-wrap: wrap; margin: 4px 0 16px; }
.team-preview .who { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; }
.team-preview canvas { width: 42px; height: 63px; image-rendering: pixelated; }
.summary { padding: 12px 14px; background: var(--paper2); box-shadow: 0 0 0 2px var(--ink); line-height: 1.7; font-size: 12px; }

/* ---------- HUD ---------- */
.hud { position: fixed; inset: 0; pointer-events: none; }
.hud > * { pointer-events: auto; }
.topbar { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; align-items: center; gap: 18px; padding: 8px 14px; background: var(--paper); box-shadow: var(--edge); }
.logo { font-family: Galmuri14, var(--font); font-size: 16px; white-space: nowrap; }
.phases { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; flex: 1; justify-content: center; }
.phases li { padding: 4px 10px; color: var(--muted); font-size: 12px; position: relative; }
.phases li + li::before { content: '›'; position: absolute; left: -4px; color: #c9bfae; }
.phases li.on { background: var(--mustard); color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.phases li.past { color: var(--teal); }
.meta { display: flex; gap: 10px; align-items: center; font-size: 12px; white-space: nowrap; }
.meta #metaTier { padding: 3px 8px; background: var(--ink); color: var(--paper); }
.chip-btn { padding: 4px 10px; font-size: 12px; }
.chip-btn.on { background: var(--teal); color: #fff; }
.chip-btn.danger { background: #fff; color: var(--red); }

.board { position: absolute; top: 74px; left: 12px; bottom: 12px; width: 268px; background: var(--paper); box-shadow: var(--edge); display: flex; flex-direction: column; }
.board h2, .side h2 { font-size: 13px; margin: 0; padding: 10px 12px; border-bottom: 2px solid var(--ink); background: var(--paper2); }
#npcs { overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.npc-group { font-size: 11px; color: var(--muted); margin: 8px 2px 2px; font-family: Galmuri9, var(--font); }
.npc { display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 6px 8px; background: #fff; box-shadow: 0 0 0 2px var(--ink); cursor: pointer; text-align: left; width: 100%; }
.npc.sel { background: #fff2b8; }
.npc canvas { width: 28px; height: 42px; image-rendering: pixelated; align-self: center; }
.npc .nm { font-size: 13px; }
.npc .nm small { margin-left: 4px; }
.npc .st { display: flex; gap: 6px; align-items: center; margin-top: 3px; font-size: 11px; }
.npc .pill { padding: 1px 6px; background: var(--paper2); box-shadow: 0 0 0 1px var(--ink); white-space: nowrap; }
.npc .pill.walk { background: #d7e9ff; }
.npc .pill.talk, .npc .pill.speak { background: #fff2b8; }
.npc .pill.search { background: #e3d7ff; }
.npc .pill.discover, .npc .pill.happy, .npc .pill.gavel { background: #c9f0d6; }
.npc .pill.sad { background: #ffd6d2; }
.npc .loc { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: Galmuri9, var(--font); }
.npc .prog { display: flex; gap: 3px; margin-top: 5px; }
.npc .prog i { flex: 1; height: 4px; background: #e6dcc8; }
.npc .prog i.on { background: var(--teal); }
.npc .prog i.fail { background: var(--red); }

.side { position: absolute; top: 74px; right: 12px; bottom: 12px; width: 400px; background: var(--paper); box-shadow: var(--edge); display: flex; flex-direction: column; }
.tabs { display: flex; border-bottom: 2px solid var(--ink); background: var(--paper2); }
.tabs button { flex: 1; padding: 10px 0; border-right: 2px solid var(--ink); color: var(--muted); }
.tabs button:last-child { border-right: 0; }
.tabs button.on { background: var(--paper); color: var(--ink); }
.tabs b { background: var(--red); color: #fff; padding: 0 5px; margin-left: 4px; font-weight: normal; }
.tabs b:empty { display: none; }
.filter { padding: 6px 10px; font-size: 12px; border-bottom: 2px dashed #d8ccb2; display: flex; gap: 8px; align-items: center; }
.filter:empty { display: none; }
.filter button { text-decoration: underline; color: var(--blue); }
.tab { display: none; flex: 1; overflow-y: auto; padding: 12px; }
.tab.on { display: block; }

#log { display: flex; flex-direction: column; gap: 10px; }
.msg { display: grid; grid-template-columns: 30px 1fr; gap: 8px; }
.msg canvas { width: 28px; height: 42px; image-rendering: pixelated; }
.msg .who { font-size: 12px; margin-bottom: 3px; }
.msg .who small { margin-left: 4px; }
.msg .txt { background: #fff; padding: 8px 10px; box-shadow: 0 0 0 2px var(--ink); line-height: 1.6; white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; }
.msg.note .txt { background: var(--paper2); box-shadow: none; border-left: 3px solid var(--muted); font-size: 12px; }
.msg.insight .txt { background: #fff7d1; box-shadow: 0 0 0 2px var(--ink), 3px 3px 0 2px var(--mustard); }
.msg.insight .txt::before { content: '인사이트'; display: inline-block; font-size: 10px; background: var(--mustard); padding: 0 5px; margin-bottom: 4px; }
.msg.review .txt { background: #eef4ff; }
.msg.verdict .txt { background: #1f2a44; color: #fff6dc; }
.scores { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.scores span { font-size: 11px; padding: 1px 6px; background: #fff; box-shadow: 0 0 0 1px var(--ink); }
.scores span.pass { background: #c9f0d6; }
.scores span.fail { background: #ffd6d2; }
.prior { margin-top: 6px; font-size: 11px; color: var(--muted); }
.stamp { display: inline-block; padding: 2px 8px; margin-bottom: 6px; border: 2px solid currentColor; transform: rotate(-3deg); font-size: 14px; }
.stamp.ok { color: #7ee2a0; }
.stamp.no { color: #ff9a8f; }
.sep { text-align: center; font-size: 11px; color: var(--muted); margin: 6px 0; }

.posters { display: flex; flex-direction: column; gap: 12px; }
.posters.wide { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); max-height: 46vh; overflow-y: auto; padding: 4px 6px 8px; }
.poster { background: #f7e8c4; padding: 12px 14px; box-shadow: 0 0 0 2px var(--ink), 3px 3px 0 2px rgba(0,0,0,.25); position: relative; }
.poster .wanted { font-family: Galmuri14, var(--font); font-size: 11px; letter-spacing: 3px; color: #8a5a2a; }
.poster h4 { margin: 4px 0 6px; font-size: 14px; line-height: 1.4; }
.poster .reward { position: absolute; right: 10px; top: 10px; background: var(--mustard); padding: 1px 6px; box-shadow: 0 0 0 2px var(--ink); font-size: 12px; }
.poster p { margin: 4px 0; font-size: 12px; line-height: 1.55; }
.poster .lbl { font-size: 10px; color: #8a5a2a; display: block; margin-top: 6px; }
.poster details { font-size: 11px; margin-top: 6px; }
.poster details li { margin: 3px 0; }
.poster .diff { color: var(--red); letter-spacing: 1px; }
.poster .who-tags { display: flex; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.poster .who-tags span { font-size: 11px; background: #fff; padding: 0 5px; box-shadow: 0 0 0 1px var(--ink); }
.poster.solved::after { content: '해결'; position: absolute; right: 14px; bottom: 12px; color: var(--red); border: 3px solid var(--red); padding: 2px 10px; font-size: 18px; transform: rotate(-12deg); opacity: .85; }

#reports .empty { color: var(--muted); line-height: 1.7; }
.report { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; box-shadow: 0 0 0 2px var(--ink); margin-bottom: 10px; }
.report a { color: var(--ink); background: var(--mustard); padding: 4px 10px; box-shadow: 0 0 0 2px var(--ink); text-decoration: none; white-space: nowrap; }

.phase-banner { position: absolute; left: 50%; top: 80px; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 8px 18px; font-size: 13px; pointer-events: none; transition: opacity .4s; }
.phase-banner:empty { opacity: 0; }
.hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); color: #aab1d8; font-size: 11px; pointer-events: none; font-family: Galmuri9, var(--font); }

.modal { position: fixed; inset: 0; background: rgba(10, 8, 20, .55); display: grid; place-items: center; z-index: 10; }
.modal-card { width: min(980px, 94vw); max-height: 92vh; overflow: auto; background: var(--paper); box-shadow: var(--edge); padding: 20px 24px; }
.modal-card h2 { font-family: Galmuri14, var(--font); margin: 0 0 4px; }
.modal-card .sub { color: var(--muted); margin: 0 0 14px; }
.assign-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin-top: 16px; }
.assign-row { display: grid; grid-template-columns: 30px 70px 1fr; gap: 8px; align-items: center; }
.assign-row canvas { width: 28px; height: 42px; image-rendering: pixelated; }
.modal-card footer { display: flex; justify-content: flex-end; margin-top: 16px; }

.toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); background: var(--red); color: #fff; padding: 10px 16px; box-shadow: var(--edge); z-index: 20; max-width: 70vw; }

@media (max-width: 1200px) {
  .side { width: 340px; }
  .board { width: 230px; }
  .setup { grid-template-columns: 1fr; justify-items: center; }
  .brand { display: none; }
  .setup-card { width: min(560px, 94vw); }
}

/* ---------- lab (연구 진행) ---------- */
.report .acts { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.report button.run { background: var(--teal); color: #fff; padding: 4px 10px; box-shadow: 0 0 0 2px var(--ink); white-space: nowrap; }
.report button.run:disabled { background: #b9aeb8; cursor: not-allowed; }
.lab-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.lab-pick button { padding: 3px 8px; font-size: 11px; background: #fff; box-shadow: 0 0 0 2px var(--ink); }
.lab-pick button.on { background: var(--ink); color: var(--paper); }
.lab-head { background: #fff; box-shadow: 0 0 0 2px var(--ink); padding: 10px 12px; margin-bottom: 12px; }
.lab-head h4 { margin: 0 0 6px; font-size: 13px; line-height: 1.4; }
.lab-head .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 11px; color: var(--muted); }
.lab-head .st { padding: 1px 6px; box-shadow: 0 0 0 1px var(--ink); color: var(--ink); }
.lab-head .st.running { background: #fff2b8; }
.lab-head .st.done { background: #c9f0d6; }
.lab-head .st.stopped, .lab-head .st.interrupted { background: #ffd6d2; }
.lab-head .links { display: flex; gap: 8px; margin-top: 8px; }
.lab-head .links a, .lab-head .links button { font-size: 11px; padding: 2px 8px; background: var(--mustard); color: var(--ink); text-decoration: none; box-shadow: 0 0 0 2px var(--ink); }
.lab-head .links button.stop { background: #fff; color: var(--red); }
#labFeed { display: flex; flex-direction: column; gap: 8px; }
.lf-tool { font-family: ui-monospace, Menlo, monospace; font-size: 11px; background: #1f1a24; color: #e8e2d4; padding: 6px 8px; overflow-wrap: anywhere; }
.lf-tool .tn { color: var(--mustard); margin-right: 6px; }
.lf-tool .ds { display: block; color: #a9a0b4; margin-top: 2px; font-family: var(--font); }
.lf-tool details { margin-top: 4px; }
.lf-tool summary { color: #a9a0b4; cursor: pointer; }
.lf-tool pre { margin: 4px 0 0; white-space: pre-wrap; max-height: 220px; overflow: auto; color: #cfe8d4; }
.lf-tool.err pre { color: #ffb4a9; }
.lf-status { font-size: 11px; color: var(--muted); text-align: center; }
.lf-error { font-size: 12px; color: #fff; background: var(--red); padding: 6px 8px; }
.msg.labreport .txt { background: #e9f7ee; box-shadow: 0 0 0 2px var(--ink), 3px 3px 0 2px var(--teal); }
.msg.labreport .txt::before { content: '보고'; display: inline-block; font-size: 10px; background: var(--teal); color: #fff; padding: 0 5px; margin-bottom: 4px; }
.lf-verdict { background: #1f2a44; color: #fff6dc; padding: 12px 14px; line-height: 1.6; }
.lf-verdict .stamp { font-size: 18px; }
.lf-verdict .stamp.supported { color: #7ee2a0; }
.lf-verdict .stamp.falsified { color: #ff9a8f; }
.lf-verdict .stamp.inconclusive { color: #ffd84a; }
.lf-verdict ul { margin: 6px 0 0; padding-left: 18px; font-size: 12px; }

.tour-rule { margin-top: 6px; line-height: 1.6; }

/* effort selector: buttons wrap onto the next line instead of overflowing the card */
#effort { display: flex; flex-wrap: wrap; gap: 8px; box-shadow: none; background: none; }
#effort button { flex: 1 1 auto; min-width: 72px; padding: 7px 10px; border-right: 0; background: var(--paper); box-shadow: var(--edge); white-space: nowrap; }
#effort button.on { background: var(--mustard); }
.effort-note { display: block; margin-top: 8px; line-height: 1.6; overflow-wrap: anywhere; }

/* live model activity */
.activity { padding: 8px 12px; background: var(--paper2); border-bottom: 2px solid var(--ink); display: flex; flex-direction: column; gap: 5px; max-height: 120px; overflow-y: auto; }
.activity .act { display: flex; gap: 6px; align-items: baseline; font-size: 12px; }
.activity .act b small { margin-left: 4px; color: var(--blue); }
.activity .act .what { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity .act i { font-style: normal; color: var(--muted); font-family: Galmuri9, var(--font); }

/* 진행 중인 원정 */
.runs { margin-top: 18px; max-width: 460px; pointer-events: auto; display: flex; flex-direction: column; gap: 8px; max-height: 40vh; overflow-y: auto; }
.runs h3 { margin: 0; color: var(--paper); font-family: Galmuri14, var(--font); text-shadow: 2px 2px 0 var(--ink); }
.run { background: var(--paper); box-shadow: var(--edge); padding: 9px 12px; display: flex; flex-direction: column; gap: 5px; color: var(--ink); }
.run .top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.run .pill { padding: 2px 8px; font-size: 11px; background: var(--paper2); box-shadow: 0 0 0 2px var(--ink); white-space: nowrap; }
.run .pill.run { background: var(--teal); color: #fff; }
.run .pill.stop { background: #d9d2c4; }
.run .acts { display: flex; gap: 8px; margin-top: 2px; }
.run .acts .chip-btn { padding: 4px 10px; }

/* log modes: 사람 대화 shows chat rewrites, 모델 응답 shows the raw reports */
body.mode-human .msg.narr { display: none !important; }
body.mode-raw .msg.chat { display: none !important; }
.logmode { position: sticky; top: 0; z-index: 2; padding: 8px 12px; background: var(--paper); border-bottom: 2px solid var(--ink); }
.logmode .seg { display: flex; }
.logmode .seg button { flex: 1; }
.logmode { margin: -12px -12px 10px; }

/* topbar: back-to-menu button is always visible; the phase list gives way when the window is narrow */
#toMenu { flex-shrink: 0; }
.phases { min-width: 0; overflow: hidden; }
.meta { flex-shrink: 0; }
/* "생각하는 중" rows at the bottom of the conversation log */
.typing { position: sticky; bottom: -12px; margin: 0 -12px -12px; padding: 6px 12px; background: var(--paper2); border-top: 2px solid var(--ink); display: flex; flex-direction: column; gap: 4px; }
.typing:empty { display: none; }
.typing .row { display: flex; gap: 8px; align-items: center; font-size: 12px; }
.typing .row canvas { width: 18px; height: 24px; image-rendering: pixelated; flex: none; }
.typing .row b { white-space: nowrap; }
.typing .row .what { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.typing .row i { font-style: normal; color: var(--muted); font-family: Galmuri9, var(--font); }
.typing .dots::after { content: ''; animation: dots 1.2s steps(4, end) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

/* scene header in the conversation log */
.msg.convdiv { display: block; margin: 14px 0 6px; padding: 4px 8px; font-size: 11px; color: var(--muted); border-top: 2px dashed #c9bfae; background: none; box-shadow: none; }

/* "생각 중 / 검색 중" bubbles live inside the conversation, after the last message */
#live { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.msg.live .txt { color: var(--muted); }
.msg.live .liveico { margin-right: 2px; }
.msg.live .livedots::after { content: ''; animation: dots 1.2s steps(4, end) infinite; }
.msg.live .livesec { margin-left: 8px; color: var(--muted); }

/* interview script shown as one model response (모델 응답 mode) */
.msg.script .scripttxt { display: flex; flex-direction: column; gap: 4px; }
.msg.script .scriptrow b { color: var(--blue); }
