@font-face {
  font-family: "Devflow Sans";
  src: url("./FrameSans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #191d24;
  --surface: #232831;
  --raised: #2a303a;
  --input: #1b2028;
  --line: #393f4a;
  --line-soft: #303640;
  --ink: #e9edf4;
  --muted: #b6bfcc;
  --quiet: #9ea9b9;
  --accent: #a9b8ef;
  --primary: #5369ae;
  --primary-hover: #5b70b5;
  --green: #a1ccb7;
  --amber: #dec18e;
  --red: #e7a8a4;
  font-family: "Devflow Sans", "Malgun Gothic", sans-serif;
  font-size: 15px;
  font-synthesis: none;
}
:root[data-theme="light"] {
  color-scheme: light;
  --light-surface: #ffffff;
  --light-surface-inset: #f2f5fa;
  --light-surface-raised: #e9eef6;
  --light-surface-accent: #e7edfc;
  --light-surface-green: #e6f3ec;
  --light-surface-amber: #fbf1db;
  --light-surface-red: #fbe9e8;
  --light-highlight: #c5d2f2;
  --light-border: #cbd4e3;
  --light-border-strong: #7a8ba9;
  --light-ink: #1d293d;
  --light-ink-muted: #4d5e78;
  --light-ink-accent: #344d91;
  --light-ink-green: #246347;
  --light-ink-amber: #775012;
  --light-ink-red: #8b3638;
  --bg: #f3f5fa;
  --surface: var(--light-surface);
  --raised: var(--light-surface-raised);
  --input: #f8faff;
  --line: var(--light-border);
  --line-soft: #dce3ee;
  --ink: var(--light-ink);
  --muted: var(--light-ink-muted);
  --quiet: #526581;
  --accent: #4059a7;
  --primary: #4056a6;
  --primary-hover: #324689;
  --green: var(--light-ink-green);
  --amber: var(--light-ink-amber);
  --red: var(--light-ink-red);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, summary, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .43; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { border-radius: 7px; }
button { border: 0; background: none; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { line-height: 1.4; word-break: keep-all; }
h1 { font-size: 28px; font-weight: 680; letter-spacing: -.9px; }
h2 { font-size: 21px; font-weight: 640; letter-spacing: -.6px; }
h3 { font-size: 15px; font-weight: 620; letter-spacing: -.2px; }
small { font-size: 13px; }
svg.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; fill: none; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; clip: rect(0,0,0,0); overflow: hidden; white-space: nowrap; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.skip-link { position: absolute; top: -60px; left: 15px; padding: 9px 13px; z-index: 500; border: 1px solid var(--accent); border-radius: 6px; background: var(--surface); font-size: 13px; }
.skip-link:focus { top: 10px; }
.hidden { display: none !important; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 12px; }
.row.between, .between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.full { grid-column: 1 / -1; min-width: 0; }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.muted { color: var(--muted); }
.eyebrow { color: var(--quiet); font-size: 12px; font-weight: 600; letter-spacing: 1.1px; }
.divider { height: 1px; margin: 24px 0; background: var(--line); }

/* One quiet workspace; the four-step path is the main navigation. */
.app-shell { min-height: 100vh; }
/* 상단 바(피드백 버튼)와 홈·검토함 메뉴는 스크롤해도 화면 위에 남깁니다. */
.app-top { position: sticky; top: 0; z-index: 40; background: var(--light-surface, #1c2028); }
.delete-source { color: var(--danger, #d9706b); }
.topbar { height: 72px; display: flex; align-items: center; gap: 18px; padding: 0 36px; border-bottom: 1px solid var(--line-soft); background: var(--light-surface, #1c2028); }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand .brand-spark { width: 23px; height: 23px; color: var(--light-ink-accent, #a8b6ff); stroke-width: 1.8; }
.brand-word { font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 800; letter-spacing: -.8px; line-height: 1; color: var(--light-ink-accent, #e2e8fd); }
.agent-label { font-size: 12px; font-weight: 800; line-height: 1; padding: 6px 7px; letter-spacing: .25px; border-radius: 5px; background: var(--light-surface-accent, #30384d); color: var(--light-ink-accent, #b8c6ff); }
.prototype-tag { color: var(--light-ink-muted, #8e99ab); font-size: 12px; letter-spacing: 1.4px; padding-left: 17px; border-left: 1px solid var(--line); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.topbar-feedback {display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:33px;padding:6px 11px;border:1px solid var(--light-border-strong, #47536a);background:var(--light-surface-accent, #293244);color:var(--light-ink-accent, #c0cdec);font-size:12px;font-weight:550;white-space:nowrap;transition:background .15s,border-color .15s}
.topbar-feedback .icon {width:15px;height:15px}
.topbar-feedback:hover {background:var(--light-surface-accent, #333f56);border-color:var(--light-border-strong, #788cbb);color:var(--light-ink-accent, #e1e8ff)}
/* 상단 '업데이트 내역': 피드백 버튼과 같은 모양, 새 소식이 있으면 오른쪽 위에 작은 점 */
.topbar-updates {position:relative;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:33px;padding:6px 11px;border:1px solid var(--light-border-strong, #47536a);background:var(--light-surface-accent, #293244);color:var(--light-ink-accent, #c0cdec);font-size:12px;font-weight:550;white-space:nowrap;transition:background .15s,border-color .15s}
.topbar-updates .icon {width:15px;height:15px}
.topbar-updates:hover {background:var(--light-surface-accent, #333f56);border-color:var(--light-border-strong, #788cbb);color:var(--light-ink-accent, #e1e8ff)}
.topbar-updates-dot {position:absolute;top:-3px;right:-3px;width:8px;height:8px;border-radius:50%;background:var(--red, #e5484d);box-shadow:0 0 0 2px var(--bg, #111522)}
.topbar-updates-dot[hidden] {display:none}
.header-link:hover, .header-link.active { color: var(--ink); }
.mode-indicator { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); padding: 6px 0; }
.mode-indicator i { width: 6px; height: 6px; background: var(--light-highlight, #92baa5); border-radius: 50%; }
#page { width: min(1080px, 100%); padding: 37px 32px 20px; margin: 0 auto; outline: 0; }
.home-heading .eyebrow { margin-bottom: 9px; letter-spacing: .8px; color: var(--light-ink, #a2aec9); }
.stepper { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 0 0 27px; }
.stepper > button { min-width: 0; min-height: 91px; display: flex; align-items: center; gap: 12px; padding: 17px 15px; border: 1px solid var(--line); border-radius: 9px; text-align: left; background: var(--light-surface, #20252d); color: var(--muted); position: relative; }
.stepper > button.active { background: var(--light-surface-accent, #2d3549); border-color: var(--light-border-strong, #7e90c4); color: var(--light-ink-accent, #e0e7ff); box-shadow: 0 0 0 1px #7e90c415; }
.stepper > button:not(:disabled):hover { border-color: var(--light-border-strong, #7e8ba8); }
.stepper > button:disabled { opacity: .5; }
.overview-steps > button:disabled { opacity: 1; }
.step-no { display: grid; place-items: center; width: 32px; height: 32px; flex: none; font-size: 18px; font-weight: 550; font-variant-numeric: tabular-nums; color: var(--light-ink, #b8c1d4); border: 1px solid var(--light-border-strong, #4b5363); border-radius: 50%; }
.active .step-no { background: var(--light-highlight, #b0bff0); border-color: var(--light-border-strong, #b0bff0); color: var(--light-ink, #202b4c); font-weight: 700; }
.done .step-no { color: var(--green); border-color: var(--light-border-strong, #638674); }
.step-text { display: block; min-width: 0; }
.step-text b { font-size: 15px; font-weight: 620; display: block; white-space: nowrap; }
.step-text small { display: block; color: var(--quiet); font-size: 12px; margin-top: 5px; white-space: nowrap; letter-spacing: -.2px; }
.active .step-text small { color: var(--light-ink-accent, #b9c5e3); }
.step-check { position: absolute; right: 7px; top: 7px; color: var(--green); }
.step-check .icon { width: 12px; height: 12px; }

/* Inputs and primary action. */
.start-panel, .stage-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 30px 32px; }
.panel-heading, .section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.section-head h2 { font-size: 17px; }
.section-head h3 { font-size: 15px; }
.section-head .count { margin-left: 7px; color: var(--quiet); font-size: 13px; font-weight: 450; }
.form-stack { display: flex; flex-direction: column; gap: 19px; min-width: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; min-width: 0; }
.field-label { display: grid; gap: 8px; color: var(--light-ink, #c9d1df); font-size: 13px; font-weight: 550; min-width: 0; }
.optional { color: var(--quiet); font-size: 12px; font-weight: 400; }
.field-hint { font-size: 12px; color: var(--quiet); font-weight: 400; }
input:not([type="radio"]):not([type="checkbox"]), textarea, select { display: block; width: 100%; min-width: 0; border: 1px solid var(--light-border, #414957); background: var(--input); color: var(--ink); padding: 11px 13px; outline: 0; font-size: 15px; line-height: 1.65; transition: border-color .15s; }
input::placeholder, textarea::placeholder { color: var(--light-ink-muted, #7f8a9d); opacity: 1; }
input:focus, textarea:focus, select:focus { border-color: var(--light-border-strong, #93a5e1) !important; box-shadow: 0 0 0 3px #90a3e113; }
input[readonly] { color: var(--muted) !important; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--light-ink-accent, #8fa3e7); }
input[type="checkbox"] { width: 16px; height: 16px; flex: none; }
textarea { resize: vertical; min-height: 98px; }
.domain-options { display: flex; gap: 8px; }
.domain-option { position: relative; border: 1px solid var(--light-border, #414957); padding: 8px 16px; font-size: 13px; color: var(--muted); border-radius: 6px; cursor: pointer; display: flex; align-items: center; gap: 7px; }
.domain-option:has(input:checked) { color: var(--light-ink-accent, #dbe4ff); background: var(--light-surface-accent, #343f5b); border-color: var(--light-border-strong, #8094cd); }
.domain-option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.domain-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.domain-hint { margin: 6px 0 0; color: var(--muted); }
.domain-hint.warn { color: var(--amber); }
.domain-hint .text-button { margin-left: 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 9px 15px; min-height: 39px; line-height: 1.5; border: 1px solid var(--light-border, #48515f); border-radius: 7px; background: var(--light-surface-raised, #2a313d); color: var(--light-ink-accent, #d2d9e7); font-size: 13px; font-weight: 560; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--light-surface-raised, #343d4b); border-color: var(--light-border-strong, #647087); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; padding: 11px 18px; min-height: 43px; box-shadow: 0 2px 5px #00000010; }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn.primary:disabled { opacity: .5; }
.btn.danger { color: var(--red); border-color: var(--light-border-strong, #765553); background: var(--light-surface-raised, #392b2e); }
.btn.soft { background: var(--light-surface-accent, #303950); border-color: var(--light-border-strong, #4d5b7b); color: var(--light-ink-accent, #d3defc); }
.btn.plain { background: none; border-color: transparent; }
.btn.small { font-size: 12px; padding: 6px 10px; min-height: 32px; }
.btn .icon { width: 15px; height: 15px; }
.icon-button { display: inline-grid; place-items: center; border-radius: 6px; width: 32px; height: 32px; flex: none; color: var(--muted); border: 1px solid transparent; }
.icon-button:hover { color: var(--ink); background: var(--light-surface-raised, #343c4a); border-color: var(--light-border-strong, #465165); }
.text-button, .btn.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--light-ink-accent, #b5c2e3); font-size: 12px; font-weight: 500; padding: 4px 0; border: 0; min-height: 26px; background: transparent; white-space: nowrap; }
.text-button:hover { color: var(--light-ink-accent, #e1e8ff); background: transparent; }
.text-button .icon { width: 13px; height: 13px; }
.form-error { padding: 10px 13px; border: 1px solid var(--light-border-strong, #805957); background: var(--light-surface-red, #412f32); color: var(--light-ink-red, #efbebb); border-radius: 6px; font-size: 13px; }
.form-error:empty { display: none; }
.checkbox-line { display: flex; align-items: flex-start; gap: 10px; color: var(--light-ink, #c5cddd); font-size: 13px; line-height: 1.8; cursor: pointer; }
.checkbox-line input { margin: 3px 0 0; }
.form-section-label { font-size: 12px; color: var(--quiet); letter-spacing: 1px; }

/* Secondary information is intentionally collapsed. */
.simple-details { border-top: 1px solid var(--line); margin-top: 21px; }
.start-panel .simple-details { margin-top: 0; }
.simple-details summary { display: flex; align-items: center; gap: 11px; cursor: pointer; list-style: none; min-height: 50px; color: var(--light-ink, #b9c3d5); font-size: 13px; font-weight: 500; padding: 15px 0; }
.simple-details summary::-webkit-details-marker { display: none; }
.simple-details summary::before { content: "+"; color: var(--light-ink-accent, #aab8d6); font-size: 18px; line-height: 15px; width: 12px; flex: none; }
.simple-details[open] summary::before { content: "−"; }
.simple-details summary > span { color: var(--quiet); font-weight: 400; font-size: 12px; }
.details-body { padding: 5px 0 18px 23px; }
.details-body > section > h3 { margin-bottom: 10px; color: var(--light-ink-accent, #ced6e6); }
.detail-note { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.detail-note:last-child { border: 0; }
.detail-note b { font-size: 13px; font-weight: 550; }
.detail-note p, .detail-note small { font-size: 13px; color: var(--muted); line-height: 1.8; margin-top: 5px; display: block; white-space: pre-line; }
.mode-note { font-size: 12px; color: var(--quiet); margin-top: 13px; line-height: 1.9; }
.app-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 1px 3px; color: var(--light-ink-muted, #8792a4); font-size: 12px; }
.app-footer .text-button { font-size: 12px; color: var(--light-ink-accent, #9aa9c8); }

/* Saved projects, reduced to a readable list. */
.saved-section .section-head { margin-bottom: 13px; }
.saved-project > .icon { color: var(--light-ink-muted, #8997b7); width: 14px; height: 14px; }
.quiet-empty { font-size: 13px; padding: 26px; color: var(--muted); }

/* The four working stages share one consistent frame. */
.project-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 24px; }
.project-heading h1 { font-size: 26px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 10px; overflow-wrap: anywhere; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--quiet); }
.back-link .icon, .back-button > .icon { transform: rotate(180deg); width: 13px; height: 13px; }
.back-link:hover { color: var(--ink); }
.project-heading-actions { display: flex; align-items: center; gap: 15px; padding-bottom: 4px; flex: none; }
.save-status { font-size: 12px; color: var(--light-ink-muted, #9ba99f); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.save-status.dirty { color: var(--amber); }
.save-status .icon { height: 12px; width: 12px; }
.stage-kicker { color: var(--light-ink-accent, #aab9e2); font-size: 12px; font-weight: 650; letter-spacing: 1.4px; }
.stage-title { margin-bottom: 25px; }
.stage-title h2 { margin-top: 8px; font-size: 23px; }
.stage-title p { margin-top: 8px; color: var(--muted); font-size: 13px; }
.workflow-footer { position: sticky; bottom: 0; z-index: 4; margin-top: 26px; padding: 17px 0 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--surface); box-shadow: 0 -9px 18px var(--surface); }
.back-button { border: 0; background: transparent; color: var(--light-ink-accent, #b1bed9); min-height: 39px; font-size: 13px; padding-left: 0; }
.back-button:hover { background: transparent; color: var(--light-ink-accent, #e4ebff); border: 0; }
.foot-hint { font-size: 12px; color: var(--quiet); max-width: 390px; }
.notice-stale, .inline-warning, .ready-line, .search-receipt { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 1.8; }
.notice-stale { color: var(--light-ink-amber, #dec99e); background: var(--light-surface, #373329); border: 1px solid var(--light-border, #5c5440); padding: 11px 15px; border-radius: 7px; margin: -10px 0 18px; }
.notice-stale .icon, .inline-warning .icon, .ready-line .icon, .search-receipt .icon { width: 14px; height: 14px; }
.inline-warning { color: var(--amber); margin-top: 14px; }
.ready-line { color: var(--green); margin-top: 16px; }
.search-receipt { color: var(--light-ink-accent, #a7b8de); margin-top: 15px; }
.run-strip { display: flex; align-items: center; gap: 10px; padding: 12px 15px; border: 1px solid var(--light-border-strong, #56658a); background: var(--light-surface-accent, #30394d); color: var(--light-ink-accent, #d1dcfb); border-radius: 7px; font-size: 13px; margin-bottom: 23px; }
.run-strip .btn { margin-left: auto; }
.spinner { display: inline-block; border: 2px solid var(--light-border-strong, #657290); border-top-color: var(--light-border-strong, #c6d4ff); width: 15px; height: 15px; border-radius: 50%; animation: spin .8s linear infinite; flex: none; }

/* Benchmark: compare first, inspect evidence second. */
.brief-summary { display: grid; grid-template-columns: 68px 1fr auto; align-items: start; gap: 17px; padding: 14px 17px; background: var(--light-surface, #1d222b); border-radius: 7px; margin-bottom: 24px; }
.brief-summary > span { color: var(--light-ink, #a0acc4); font-size: 12px; padding-top: 2px; }
.brief-summary p { color: var(--light-ink, #c4cddd); font-size: 13px; line-height: 1.85; white-space: pre-line; }
.brief-summary .brief-edit { display: inline-flex; align-items: center; gap: 5px; margin: 0; padding: 5px 11px; min-height: 0; font-size: 12px; white-space: nowrap; align-self: center; }
.brief-summary .brief-edit svg { width: 13px; height: 13px; }
#content-domain-note[hidden] { display: none; }
.compare-heading { margin: 0 0 12px; }
.comparison-scroll { width: 100%; overflow-x: auto; border: 1px solid var(--light-border, #465061); border-radius: 8px; }
.comparison-table { border-collapse: collapse; width: 100%; min-width: 680px; table-layout: fixed; text-align: left; }
.comparison-table th { font-size: 12px; font-weight: 550; color: var(--light-ink, #adb9cf); background: var(--light-surface-raised, #292f3b); padding: 12px 15px; border-bottom: 1px solid var(--light-border, #465061); }
.comparison-table th:nth-child(1) { width: 25%; }
.comparison-table th:nth-child(2) { width: 30%; }
.comparison-table th:nth-child(3) { width: 29%; }
.comparison-table th:nth-child(4) { width: 16%; }
.comparison-table td { font-size: 13px; padding: 17px 15px; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.85; color: var(--light-ink, #c5cede); overflow-wrap: anywhere; word-break: keep-all; white-space: pre-line; }
.comparison-table tr:last-child td { border-bottom: 0; }
.comparison-table td b { color: var(--light-ink-accent, #e1e7f4); font-size: 13px; font-weight: 590; display: block; line-height: 1.7; }
.comparison-table td small { display: block; color: var(--quiet); font-size: 12px; margin-top: 6px; }
.comparison-table tr.our-candidate td { background: var(--light-surface-accent, #2d3547); color: var(--light-ink-accent, #cfdaff); }
.our-candidate td b { color: var(--light-ink-accent, #d3dfff); }
.our-candidate td small { color: var(--muted); }
.evidence-link { display: inline-flex; align-items: center; gap: 4px; color: var(--light-ink-accent, #b9cafd); padding: 0; font-size: 12px; white-space: nowrap; }
.evidence-link .icon { height: 12px; width: 12px; }
.evidence-link:hover { color: var(--light-ink, #fff); text-decoration: underline; }
.edit-comparison { display: block; font-size: 12px; margin-top: 8px; color: var(--light-ink, #9daac4); }
.comparison-table .comparison-empty { text-align: center; color: var(--quiet); padding: 35px 20px; white-space: normal; }
.candidate-tag { font-size: 12px; color: var(--light-ink-accent, #b4c4f3); white-space: nowrap; }
.comparison-takeaway { font-size: 12px; color: var(--muted); line-height: 1.9; margin-top: 11px; }
.comparison-takeaway b { color: var(--light-ink-accent, #c5d0e9); font-weight: 550; margin-right: 8px; }
.query-list { display: flex; flex-direction: column; gap: 10px; }
.query-chip { color: var(--light-ink-accent, #b2c2e9); font-size: 12px; overflow-wrap: anywhere; }
.query-chip .icon { height: 12px; width: 12px; margin-left: 7px; }

/* Questions: only one decision on screen at a time. */
.question-navigation { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 19px; }
.question-dots { display: flex; gap: 8px; }
.question-dots button { width: 32px; height: 32px; border: 1px solid var(--light-border-strong, #4a5364); border-radius: 50%; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.question-dots button.active { color: var(--light-ink, #233052); background: var(--light-highlight, #afc0f5); border-color: var(--light-border-strong, #afc0f5); font-weight: 650; }
.question-dots button.done { color: var(--light-ink-green, #a4d1bb); border-color: var(--light-border-strong, #608574); background: var(--light-surface-green, #293a34); }
.question-dots button.skipped { border-style: dashed; color: var(--light-ink-amber, #e1c68f); border-color: var(--light-ink-amber, #a08a5c); background: transparent; }
.question-dots button:not(.active):hover { border-color: var(--light-border-strong, #9eb1df); }
#question-count-label { font-size: 12px; color: var(--quiet); }
.question-card { border: 1px solid var(--light-border-strong, #475166); background: var(--light-surface, #202630); border-radius: 9px; padding: 28px; min-height: 300px; }
.question-position { font-size: 12px; color: var(--light-ink-accent, #a5b7e3); letter-spacing: .6px; margin-bottom: 15px; }
.question-card h3 { font-size: 20px; line-height: 1.6; font-weight: 570; letter-spacing: -.4px; max-width: 780px; }
.question-why { color: var(--muted); font-size: 13px; line-height: 1.9; margin: 8px 0 25px; }
/* Answer area: every question type uses the full card width and the same height rules. */
.question-input { width: 100%; }
.answer-field { display: flex; flex-direction: column; gap: 8px; width: 100%; min-width: 0; }
.answer-field input, .answer-field textarea { font-size: 15px; line-height: 1.7; }
.answer-field input { height: 48px; padding: 0 14px; }
.answer-textarea { min-height: calc(6.8em + 26px); max-height: 340px; padding: 12px 14px; resize: vertical; field-sizing: content; overflow-y: auto; }
.answer-control { display: flex; align-items: stretch; width: 100%; min-width: 0; border: 1px solid var(--light-border, #414957); border-radius: 7px; background: var(--input); overflow: hidden; transition: border-color .15s; }
.answer-control:focus-within { border-color: var(--light-border-strong, #93a5e1); box-shadow: 0 0 0 3px #90a3e113; }
.answer-control > input { flex: 1; min-width: 0; border: 0 !important; border-radius: 0; box-shadow: none !important; background: transparent; }
.answer-control > input:disabled + .answer-unit { opacity: .6; }
.answer-unit { flex: none; display: block; max-width: 45%; padding: 0 14px; border-left: 1px solid var(--light-border, #414957); background: var(--light-surface-inset, #20252e); color: var(--light-ink-accent, #b0bed9); font-size: 13px; font-weight: 550; line-height: 46px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.answer-hint { display: flex; align-items: flex-start; gap: 7px; margin: 0; color: var(--quiet); font-size: 12.5px; line-height: 1.7; }
.answer-hint > .icon { width: 13px; height: 13px; flex: none; margin-top: 3.5px; }
.answer-hint > span { min-width: 0; overflow-wrap: anywhere; }
.question-card-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.question-badge:empty { display: none; }
.question-extras { display: flex; justify-content: space-between; margin-top: 10px; }
.unknown-fields { font-size: 13px; color: var(--amber); padding: 12px 0 2px; }

/* Goals and milestones remain compact; supporting conditions are expandable. */
.compact-goals { border: 1px solid var(--light-border, #465061); border-radius: 8px; overflow: hidden; }
.goal-table-head { background: var(--light-surface-raised, #2b3240); color: var(--muted); font-size: 12px; padding: 11px 19px; display: grid; grid-template-columns: 1fr 1.05fr 32px; gap: 20px; }
.compact-goal { display: grid; grid-template-columns: 1fr 1.05fr 32px; align-items: center; gap: 20px; padding: 21px 19px; border-top: 1px solid var(--line); }
.compact-goal h3 { font-size: 14px; margin-top: 3px; font-weight: 560; }
.compact-goal > div > small { font-size: 12px; color: var(--quiet); letter-spacing: .6px; }
.compact-goal > p { font-size: 19px; font-weight: 550; color: var(--light-ink-accent, #c6d4ff); overflow-wrap: anywhere; line-height: 1.7; }
.compact-goal > p > small { color: var(--light-ink-accent, #a7b6d5); font-weight: 400; font-size: 12px; margin-left: 8px; }
.goal-method:not(:last-child) { border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.goal-method h3 { margin-bottom: 13px; }
.brief-fields { margin: 0; display: grid; gap: 13px; }
.brief-fields > div { display: grid; grid-template-columns: 80px 1fr; gap: 18px; font-size: 13px; line-height: 1.9; }
.brief-fields dt { color: var(--light-ink, #9eabc4); }
.brief-fields dd { color: var(--light-ink-accent, #c1cbde); margin: 0; white-space: pre-line; }
.plan-column-labels { display: flex; justify-content: space-between; align-items: center; margin-bottom: 11px; color: var(--quiet); font-size: 12px; }
.plan-column-labels span:first-child { font-size: 13px; color: var(--light-ink-accent, #c6cfe0); }
.milestone-list { display: grid; gap: 9px; }
.milestone-row { width: 100%; display: flex; align-items: center; gap: 17px; text-align: left; border: 1px solid var(--light-border, #414b5b); background: var(--light-surface, #202630); border-radius: 8px; padding: 17px 19px; position: relative; }
.milestone-row:hover:not(:disabled) { background: var(--light-surface-accent, #293242); border-color: var(--light-border-strong, #7b8dad); }
.milestone-row.feasibility { border-color: var(--light-border-strong, #697c9a); background: var(--light-surface-accent, #28313f); }
.milestone-no { color: var(--light-ink-accent, #afbee2); font-size: 20px; line-height: 1; font-variant-numeric: tabular-nums; font-weight: 450; min-width: 28px; }
.milestone-row b { display: block; font-size: 15px; font-weight: 580; }
.milestone-row small { display: block; font-size: 12px; color: var(--muted); line-height: 1.85; margin-top: 6px; }
.milestone-row em { font-style: normal; color: var(--light-ink-muted, #8899bc); margin-right: 9px; font-size: 12px; white-space: nowrap; }
.milestone-row > .icon { color: var(--light-ink-accent, #8798bc); height: 14px; width: 14px; }
.resource-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.resource-row:last-child { border-bottom: 0; }
.resource-row b { font-size: 13px; font-weight: 550; }
.resource-row p { color: var(--muted); font-size: 12px; margin-top: 3px; }
.resource-row small { display: block; color: var(--quiet); font-size: 12px; margin-top: 4px; }

/* On-demand dialogs, evidence and actual execution events. */
.modal-backdrop, .drawer-backdrop { position: fixed; inset: 0; z-index: 100; background: #0a0e16a6; backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 24px; animation: fade-in .15s ease-out; }
.modal { width: 100%; max-width: 660px; max-height: calc(100dvh - 48px); background: var(--light-surface, #242b35); border: 1px solid var(--light-border-strong, #4b566a); box-shadow: 0 22px 95px #0005; border-radius: 12px; display: flex; flex-direction: column; outline: none; overflow: hidden; animation: dialog-in .18s ease-out; }
.modal.wide { max-width: 800px; }
.modal.narrow { max-width: 490px; }
.modal-header, .drawer-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 25px 28px 22px; border-bottom: 1px solid var(--light-border, #414b5b); flex: none; }
.modal-eyebrow, .drawer-header .eyebrow { font-size: 12px; font-weight: 650; letter-spacing: 1.4px; color: var(--light-ink-accent, #99abd7); margin-bottom: 6px; }
.modal-header h2, .drawer-header h2 { color: var(--light-ink-accent, #e0e6f2); font-size: 20px; letter-spacing: -.5px; }
.modal-header p { color: var(--muted); font-size: 13px; line-height: 1.8; margin-top: 7px; }
.modal-body { padding: 25px 28px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.modal-footer, .drawer-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 17px 28px; border-top: 1px solid var(--light-border, #414b5b); background: var(--light-surface, #222832); flex: none; }
.feedback-tabs {display:flex;gap:4px;padding:4px;margin-bottom:25px;border:1px solid var(--light-border, #3b4555);background:var(--light-surface, #1b212b);border-radius:8px}
.feedback-tabs button {flex:1;display:flex;align-items:center;justify-content:center;gap:7px;padding:9px 14px;font-size:13px;color:var(--light-ink-muted, #96a4bc);border:1px solid transparent}
.feedback-tabs button.active {background:var(--light-surface-accent, #303b50);color:var(--light-ink-accent, #d6e1ff);border-color:var(--light-border-strong, #4a5d80);box-shadow:0 2px 7px #1116}
.feedback-tabs button>span {min-width:19px;padding:0 5px;border-radius:4px;background:#18213099;font-size:12px;color:var(--light-ink-accent, #a7b9e8)}
.feedback-kinds {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;border:0;padding:0;margin:0 0 3px}
.feedback-kinds legend {padding:0;margin-bottom:11px;color:var(--light-ink-accent, #b6c2d8);font-size:13px}
.feedback-kinds label {position:relative;cursor:pointer}
.feedback-kinds input {position:absolute;width:1px;height:1px;opacity:0}
.feedback-kinds label>span {display:flex;align-items:center;justify-content:center;gap:8px;padding:13px 8px;border:1px solid var(--light-border, #424e61);border-radius:7px;background:var(--light-surface-accent, #222936);color:var(--light-ink-muted, #97a8c3);font-size:13px}
.feedback-kinds input:checked+span {background:var(--light-surface-accent, #333e57);border-color:var(--light-border-strong, #92a6d8);color:var(--light-ink-accent, #d7e1ff)}
.feedback-kinds input:focus-visible+span {outline:2px solid var(--accent);outline-offset:3px}
.feedback-kinds .icon {width:16px;height:16px}
#feedback-form {gap:21px}
#feedback-form .field-label b {font-size:13px;font-weight:550}
#feedback-count {font-size:12px;font-weight:400;color:var(--light-ink-muted, #8697b3);white-space:nowrap}
#feedback-content {min-height:155px;resize:vertical;font-size:14px;line-height:1.85}
#feedback-content::placeholder {font-size:13px;color:var(--light-ink-muted, #8492a9)}
.feedback-context {display:flex;align-items:center;gap:12px;border:1px solid var(--light-border, #3f4959);border-radius:7px;padding:13px 14px;background:var(--light-surface-accent, #202733);cursor:pointer}
.feedback-context input {accent-color:var(--light-ink-accent, #a5b7ed);width:15px;height:15px;flex:none}
.feedback-context>span {flex:1;min-width:0}
.feedback-context b {display:block;font-size:12px;font-weight:550;color:var(--light-ink-accent, #bdcbe2)}
.feedback-context small {display:block;margin-top:3px;font-size:12px;color:var(--light-ink-muted, #899ab7);overflow-wrap:anywhere}
.feedback-context>.icon {width:15px;height:15px;color:var(--light-ink-muted, #8495b3)}
.feedback-privacy {position:relative;padding-left:23px;color:var(--light-ink-muted, #8291a8);font-size:12px;line-height:1.9;margin-top:-7px}
.feedback-privacy>.icon {position:absolute;left:0;top:3px;width:13px;height:13px}
.feedback-scope {color:var(--light-ink-muted, #8393ae);font-size:12px;line-height:1.8;margin-top:16px}
#feedback-form .feedback-scope {margin-top:-7px;padding-top:13px;border-top:1px solid var(--light-border, #394251)}
.feedback-success {padding:16px 5px 30px;text-align:center}
.feedback-success>span {display:inline-grid;place-items:center;width:58px;height:58px;border-radius:50%;border:1px solid var(--light-border-strong, #527c6c);background:#25423766;color:var(--light-ink-green, #a0d4bd);margin-bottom:20px}
.feedback-success>span .icon {width:27px;height:27px}
.feedback-success h3 {font-size:20px;letter-spacing:-.4px}
.feedback-success>p {font-size:13px;color:var(--light-ink, #9baac1);line-height:1.9;margin:12px 0}
.feedback-success>small {font-family:Consolas,monospace;color:var(--light-ink-muted, #8294b3);font-size:12px}
.feedback-success>.row {justify-content:center;flex-wrap:wrap;margin-top:25px}
.feedback-list-toolbar {display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 15px}
.feedback-list-toolbar>label {display:flex;align-items:center;gap:10px;font-size:12px;color:var(--light-ink-muted, #92a3bf)}
.feedback-list-toolbar select,.feedback-status-control select {background:var(--light-surface, #1d2532);color:var(--light-ink-accent, #c6d4f0);border:1px solid var(--light-border-strong, #4a5972);padding:7px 28px 7px 10px;font-size:12px;max-width:190px}
.feedback-list-toolbar .text-button {font-size:12px;display:flex;align-items:center;gap:5px}
.feedback-list-toolbar .icon {width:13px;height:13px}
.feedback-list {display:flex;flex-direction:column;gap:10px}
.feedback-item {border:1px solid var(--light-border, #414d60);border-radius:8px;background:var(--light-surface-accent, #202834);overflow:hidden}
.feedback-item summary {display:flex;align-items:center;gap:12px;padding:15px 14px;cursor:pointer;list-style:none}
.feedback-item summary::-webkit-details-marker {display:none}
.feedback-item summary>.icon {width:13px;height:13px;color:var(--light-ink-muted, #8292ad);transition:transform .15s}
.feedback-item[open] summary>.icon {transform:rotate(180deg)}
.feedback-item-icon {width:32px;height:32px;display:grid;place-items:center;border:1px solid var(--light-border-strong, #45526b);border-radius:7px;background:#303d554d;color:var(--light-ink-accent, #a3b8e7);flex:none}
.feedback-item-icon.bug {background:#54402b44;color:var(--light-ink-amber, #ddbf91);border-color:var(--light-border, #65563f)}
.feedback-item-icon .icon {width:16px;height:16px}
.feedback-item-heading {flex:1;min-width:0}
.feedback-item-heading>span {display:flex;align-items:center;gap:10px;color:var(--light-ink-accent, #8fa3c4);font-size:12px;flex-wrap:wrap}
.feedback-item-heading time {font-size:12px;color:var(--light-ink-muted, #7f90ab);white-space:nowrap}
.feedback-item-heading>b {display:block;margin-top:4px;font-size:13px;font-weight:550;color:var(--light-ink-accent, #d7e2f7);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.feedback-item summary>.badge {font-size:12px;padding:3px 7px;white-space:nowrap;flex:none}
.feedback-item-body {padding:0 17px 16px 58px}
.feedback-message {border-top:1px solid var(--light-border, #384559);padding-top:13px;font-size:13px;line-height:1.95;color:var(--light-ink-accent, #b8c6dd);white-space:pre-wrap;overflow-wrap:anywhere}
.feedback-item-meta {display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-top:17px;flex-wrap:wrap;color:var(--light-ink-muted, #7f94b5);font-size:12px}
.feedback-item-meta>span {display:inline-flex;align-items:center;gap:6px;overflow-wrap:anywhere}
.feedback-item-meta .icon {width:12px;height:12px}
.feedback-item-meta>small {font-family:Consolas,monospace;font-size:12px;color:var(--light-ink-muted, #6f83a5)}
.feedback-status-control {display:flex;justify-content:flex-end;align-items:center;gap:10px;border-top:1px solid var(--light-border, #354154);margin-top:16px;padding-top:13px;color:var(--light-ink-accent, #93a6c8);font-size:12px}
.feedback-status-control select {padding:6px 25px 6px 9px;font-size:12px}
.feedback-empty {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:240px;color:var(--light-ink-muted, #8a9cba);text-align:center}
.feedback-empty>.icon {width:34px;height:34px;color:var(--light-ink-accent, #829ac5);stroke-width:1.25;margin-bottom:3px}
.feedback-empty h3 {font-size:15px;font-weight:550;color:var(--light-ink-accent, #becce3)}
.feedback-empty p {font-size:12px;line-height:1.9}
.feedback-empty .btn {margin-top:8px}
.feedback-more {margin-top:16px;width:100%;justify-content:center;font-size:12px;color:var(--light-ink-accent, #a1b7dd);border-color:var(--light-border-strong, #465874)}
@media(max-width:620px){.topbar-feedback{width:32px;height:32px;padding:0}.topbar-feedback>span{display:none}.feedback-kinds{gap:6px}.feedback-kinds label>span{font-size:12px;gap:5px;padding:12px 5px}.feedback-kinds .icon{width:14px;height:14px}.feedback-item summary{gap:8px;padding:13px 10px}.feedback-item-heading time{font-size:12px}.feedback-item-body{padding:0 13px 15px}.feedback-item summary>.badge{font-size:12px;padding:3px 5px}}
.foot-note { margin-right: auto; color: var(--quiet); font-size: 12px; }
.drawer-backdrop { padding: 0; justify-content: flex-end; z-index: 90; }
.drawer { width: min(560px,100%); height: 100dvh; background: var(--light-surface, #242b35); border-left: 1px solid var(--light-border-strong, #4b566a); box-shadow: -20px 0 90px #0003; display: flex; flex-direction: column; outline: 0; animation: drawer-in .2s ease-out; }
.drawer-body { padding: 26px 28px; overflow-y: auto; overscroll-behavior: contain; flex: 1; min-height: 0; }
.drawer .detail-label { margin-bottom: 9px; color: var(--light-ink-accent, #9dadd0); font-size: 12px; font-weight: 550; }
.detail-block { white-space: pre-line; font-size: 14px; color: var(--light-ink-accent, #c0cadd); line-height: 1.9; overflow-wrap: anywhere; }
.source-excerpt { white-space: pre-wrap; color: var(--light-ink-accent, #bcc8dd); font-size: 13px; line-height: 1.9; background: var(--light-surface, #1d232d); border: 1px solid var(--line); border-radius: 7px; padding: 17px; max-height: 340px; overflow: auto; overflow-wrap: anywhere; }
.aside-key-value { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.aside-key-value span { color: var(--quiet); }
.aside-key-value strong { color: var(--light-ink-accent, #c7d1e5); font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.aside-caption { font-size: 12px; color: var(--quiet); line-height: 1.9; }
.run-status-hero { display: flex; align-items: center; gap: 14px; border-radius: 9px; border: 1px solid var(--light-border-strong, #526181); background: var(--light-surface-accent, #30394c); padding: 19px; margin-bottom: 15px; }
.run-status-symbol { width: 41px; height: 41px; background: var(--light-surface-accent, #3a4866); color: var(--light-ink-accent, #c3d4ff); display: grid; place-items: center; border: 1px solid var(--light-border-strong, #5b6f9c); border-radius: 9px; flex: none; }
.run-status-hero h3 { font-size: 15px; color: var(--light-ink-accent, #d6e0ff); }
.run-status-hero p { font-size: 12px; color: var(--light-ink-accent, #b0c0e1); margin-top: 4px; }
.run-status-hero > .badge { margin-left: auto; }
.run-event { position: relative; display: flex; align-items: flex-start; gap: 14px; padding-bottom: 29px; }
.run-event:not(:last-child)::after { content: ""; position: absolute; left: 13px; width: 1px; top: 32px; bottom: 7px; background: var(--light-surface-raised, #46536c); }
.event-dot { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--light-border-strong, #586c8f); background: var(--light-surface-accent, #2c384e); border-radius: 50%; color: var(--light-ink-accent, #b3c7f8); flex: none; }
.event-dot .icon { width: 13px; height: 13px; }
.run-event h3 { font-size: 13px; line-height: 1.8; }
.run-event time { font-size: 12px; font-weight: 400; color: var(--light-ink-accent, #8ea1c6); margin-left: 6px; }
.run-event p { font-size: 13px; line-height: 1.9; color: var(--light-ink-accent, #aebdd7); margin-top: 4px; }
.menu-list { display: flex; flex-direction: column; gap: 9px; }
.menu-list > .btn { justify-content: flex-start; }
.menu-list > p { margin-top: 7px; }
.page-note { display: flex; align-items: flex-start; gap: 11px; padding: 14px 16px; background: var(--light-surface-accent, #303a50); color: var(--light-ink-accent, #c4d0ef); font-size: 13px; line-height: 1.9; border: 1px solid var(--light-border-strong, #53617c); border-radius: 7px; }
.page-note > .icon { margin-top: 3px; width: 16px; height: 16px; }
.page-note.amber { background: var(--light-surface-amber, #3b352b); border-color: var(--light-border-strong, #6b5d43); color: var(--light-ink-amber, #ddc698); }
.page-note.green { background: var(--light-surface-green, #293a34); border-color: var(--light-border-strong, #4a6e5d); color: var(--light-ink-green, #b2d7c1); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border: 1px solid var(--light-border-strong, #56617a); color: var(--light-ink-accent, #c0cbe1); border-radius: 5px; font-size: 12px; font-weight: 500; line-height: 1.5; vertical-align: middle; white-space: nowrap; }
.badge.outline { color: var(--light-ink-accent, #a6b3ce); background: transparent; border-color: var(--light-border-strong, #53617a); }
.badge.green { color: var(--light-ink-green, #b4d9c6); background: var(--light-surface-green, #2d4038); border-color: var(--light-border-strong, #517361); }
.badge.amber { color: var(--light-ink-amber, #e1c68f); background: var(--light-surface-amber, #403929); border-color: var(--light-border-strong, #746543); }
.badge.purple { color: var(--light-ink-accent, #c7c9f5); background: var(--light-surface-raised, #373950); border-color: var(--light-border-strong, #61668a); }
.badge.red { color: var(--light-ink-red, #e7b4b0); background: var(--light-surface-red, #443033); border-color: var(--light-border-strong, #81595b); }
.badge i.dot { background: currentColor; width: 4px; height: 4px; border-radius: 50%; }
.check-list { display: flex; flex-direction: column; gap: 14px; font-size: 13px; color: var(--light-ink-accent, #cad3e4); }
.check-item { display: flex; align-items: flex-start; gap: 10px; line-height: 1.8; }
.check-item > .icon { color: var(--light-ink-green, #acc9b8); width: 16px; height: 16px; margin-top: 2px; }
.approval-risk { padding: 17px 19px; background: var(--light-surface-amber, #393328); border: 1px solid var(--light-border-strong, #6b5d43); border-radius: 7px; color: var(--light-ink-amber, #d9c496); font-size: 13px; }
.approval-risk h3 { font-size: 14px; color: var(--light-ink-amber, #e6cc98); display: flex; align-items: center; gap: 8px; }
.approval-risk ul { padding-left: 18px; margin: 10px 0 0; line-height: 2; }
.mode-card, .version-card { border: 1px solid var(--light-border-strong, #47536a); background: var(--light-surface-accent, #222a36); border-radius: 8px; padding: 18px; }
.mode-card h3 { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.mode-card p { font-size: 13px; color: var(--light-ink-accent, #adbcd6); margin-top: 11px; line-height: 1.9; }
.version-card { margin-bottom: 13px; }
.help-step { display: flex; align-items: flex-start; gap: 17px; }
.help-step p { margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.9; }
.domain-icon { width: 37px; height: 37px; background: var(--light-surface-accent, #35405b); color: var(--light-ink-accent, #b9cbf7); display: grid; place-items: center; border-radius: 8px; flex: none; }
.command-search-row { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; }
.command-item { display: flex; align-items: center; gap: 13px; padding: 12px; border-radius: 7px; }
.command-item:hover { background: var(--light-surface-accent, #323e54); }
.command-item b { font-size: 14px; display: block; }
.command-item small { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.command-item > .icon { width: 13px; height: 13px; color: var(--quiet); }

/* Ancillary views are reachable through the secondary menu only. */
.page-heading { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.page-heading h1 { margin-top: 7px; }
.page-heading p { font-size: 14px; color: var(--muted); margin-top: 10px; }
.settings-layout { display: grid; grid-template-columns: 1.5fr 1fr; align-items: start; gap: 23px; }
.settings-section, .settings-card, .card { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.settings-card { padding: 23px; }
.settings-card > h3 { margin: 9px 0 4px; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.card-body { padding: 6px 22px 19px; }
.settings-row { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.settings-row b { font-size: 13px; font-weight: 550; }
.settings-row p { font-size: 12px; line-height: 1.9; color: var(--muted); margin-top: 4px; }
.settings-row input { max-width: 75px; text-align: right; }
.settings-form-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 22px; border-top: 1px solid var(--line); }
.settings-form-footer > span { color: var(--quiet); font-size: 12px; }
.table-wrapper { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th, .data-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { background: var(--light-surface-raised, #2c3544); color: var(--light-ink-accent, #a9bbdc); font-weight: 500; }
.data-table td { color: var(--light-ink-accent, #c3cee2); }
.activity-item { display: flex; align-items: flex-start; gap: 12px; padding: 15px 21px; border-bottom: 1px solid var(--line); }
.activity-item strong { font-size: 13px; font-weight: 550; }
.activity-item p { font-size: 12px; color: var(--muted); margin-top: 3px; }
.activity-item time { font-size: 12px; color: var(--quiet); margin-left: auto; }
.activity-symbol { color: var(--light-ink-accent, #a0b1da); }
.review-list { display: grid; gap: 13px; }
.review-card { display: flex; align-items: center; gap: 16px; padding: 21px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; }
.review-card p, .review-meta { font-size: 12px; color: var(--muted); margin-top: 6px; }
.review-meta .icon { width: 12px; height: 12px; }
.empty-state, .not-found { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty-state h3, .not-found h2 { color: var(--light-ink-accent, #cfdbf4); margin: 12px 0 9px; }
.empty-state p, .not-found p { font-size: 13px; line-height: 1.9; margin-bottom: 21px; }
.empty-icon { display: inline-grid; place-items: center; width: 45px; height: 45px; border: 1px solid var(--light-border-strong, #526182); background: var(--light-surface-accent, #303b51); border-radius: 10px; color: var(--light-ink-accent, #bcccf8); }
.initial-loading { min-height: 65vh; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 15px; color: var(--muted); }
.loading-logo { background: var(--light-surface-accent, #333f58); color: var(--light-ink-accent, #b4c6fc); padding: 10px; font-family: Georgia,serif; font-size: 24px; border-radius: 9px; }
.initial-loading b { font-size: 13px; font-weight: 500; }
#toast-region { position: fixed; right: 24px; bottom: 23px; max-width: min(440px, calc(100vw - 32px)); z-index: 200; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 11px; padding: 14px 16px; background: var(--light-surface-raised, #303949); border: 1px solid var(--light-border-strong, #5d6c86); border-radius: 9px; color: var(--light-ink-accent, #d4deee); box-shadow: 0 9px 40px #0004; font-size: 13px; line-height: 1.8; pointer-events: auto; animation: dialog-in .15s ease-out; }
.toast > .icon { color: var(--light-ink-green, #b2d5c1); width: 15px; height: 15px; margin-top: 3px; }
.toast.error { border-color: var(--light-border-strong, #9c6a67); }
.toast.error > .icon { color: var(--light-ink-red, #e7b0ab); }
.toast .icon-button { width: 21px; height: 24px; margin-left: 7px; }
.toast .icon-button .icon { height: 12px; width: 12px; }
.noscript { position: fixed; inset: 0; background: var(--bg); padding: 50px; z-index: 300; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes drawer-in { from { transform: translateX(30px); opacity: .4; } to { transform: translateX(0); opacity: 1; } }
@media (max-width: 1000px) {
  .stepper { gap: 8px; }
  .stepper > button { padding: 15px 11px; gap: 9px; }
  .step-text small { font-size: 12px; }
  .step-no { width: 29px; height: 29px; font-size: 16px; }
  .step-text b { font-size: 14px; }
}
@media (max-width: 760px) {
  .topbar { height: 63px; padding: 0 22px; gap: 11px; }
  .prototype-tag { font-size: 12px; padding-left: 12px; letter-spacing: .9px; }
  .topbar-actions { gap: 14px; }
  .brand-word { font-size: 23px; }
  #page { padding: 27px 21px 17px; }
  .stepper { grid-template-columns: repeat(2,minmax(0,1fr)); margin-bottom: 21px; }
  .stepper > button { min-height: 73px; padding: 13px 17px; }
  .step-text small { font-size: 12px; }
  .step-text b { font-size: 15px; }
  .stage-panel, .start-panel { padding: 25px 23px; }
  .project-heading { align-items: flex-start; gap: 12px; }
  .project-heading h1 { font-size: 23px; }
  .project-heading-actions { gap: 5px; padding-top: 28px; }
  .save-status { font-size: 0; gap: 0; }
  .save-status .icon { height: 14px; width: 14px; }
  .stage-title h2 { font-size: 21px; }
  .stage-title p { font-size: 13px; line-height: 1.85; }
  .domain-options { flex: 1; }
  .domain-option { flex: 1; justify-content: center; padding: 8px 10px; white-space: nowrap; font-size: 12px; }
  .question-card { padding: 24px; }
  .question-navigation { gap: 10px; }
  #question-count-label { font-size: 12px; }
  .question-dots { gap: 7px; }
  .question-dots button { width: 30px; height: 30px; }
  .compact-goal, .goal-table-head { grid-template-columns: 1fr .9fr 29px; gap: 14px; }
  .compact-goal > p { font-size: 17px; }
  .foot-hint { max-width: 230px; font-size: 12px; }
  .settings-layout { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .topbar { padding: 0 17px; }
  .prototype-tag { display: none; }
  .topbar-actions { gap: 12px; }
  .mode-indicator { font-size: 12px; }
  #page { padding: 23px 14px 15px; }
  .stepper > button { padding: 12px; gap: 10px; }
  .step-text b { font-size: 14px; }
  .step-text small { font-size: 12px; }
  .stage-panel, .start-panel { padding: 23px 18px; border-radius: 9px; }
  .panel-heading .text-button { font-size: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .details-body { padding-left: 8px; }
  .app-footer { align-items: flex-start; font-size: 12px; }
  .app-footer .row { gap: 10px; flex: none; }
  .app-footer .text-button { font-size: 12px; min-height: auto; }
  .project-heading h1 { font-size: 22px; }
  .project-heading-actions { padding-top: 30px; }
  .stage-title h2 { font-size: 20px; }
  .brief-summary { display: block; padding: 12px; }
  .brief-summary > span { display: block; margin-bottom: 5px; }
  .brief-summary .brief-edit { margin: 8px 0 0; }
  .compare-heading { align-items: center; gap: 6px; }
  .compare-heading h3 { font-size: 13px; }
  .compare-heading .row { gap: 12px; }
  .compare-heading .text-button { font-size: 12px; }
  .comparison-table { min-width: 620px; }
  .comparison-table td { font-size: 12px; padding: 14px 12px; }
  .question-navigation { flex-wrap: wrap; }
  .question-card { padding: 20px 16px; }
  .question-card h3 { font-size: 18px; }
  .question-why { font-size: 12px; }
  .question-dots { gap: 9px; }
  .question-dots button { width: 29px; height: 29px; }
  .compact-goal, .goal-table-head { grid-template-columns: 1fr .8fr 26px; padding-left: 13px; padding-right: 9px; gap: 10px; }
  .compact-goal h3 { font-size: 13px; }
  .compact-goal > p { font-size: 15px; }
  .compact-goal > p > small { display: block; margin: 2px 0 0; }
  .brief-fields > div { grid-template-columns: 64px 1fr; gap: 10px; font-size: 12px; }
  .milestone-row { padding: 16px 12px; gap: 11px; }
  .milestone-row b { font-size: 14px; }
  .milestone-row small { font-size: 12px; }
  .milestone-no { font-size: 18px; min-width: 24px; }
  .workflow-footer { gap: 12px; flex-wrap: wrap; margin-top: 20px; padding-top: 18px; }
  .workflow-footer > .btn.primary { margin-left: auto; }
  .workflow-footer > .row { gap: 8px; margin-left: auto; }
  .workflow-footer .btn { padding: 9px 11px; font-size: 12px; }
  .workflow-footer .btn.primary { min-height: 40px; }
  .foot-hint { width: 100%; max-width: none; }
  .simple-details summary { font-size: 12px; flex-wrap: wrap; column-gap: 8px; }
  .simple-details summary > span { font-size: 12px; }
  .modal-backdrop { padding: 12px; }
  .modal { max-height: calc(100dvh - 24px); }
  .modal-header, .drawer-header { padding: 21px 20px 18px; }
  .modal-header h2, .drawer-header h2 { font-size: 19px; }
  .modal-body, .drawer-body { padding: 21px 20px; }
  .modal-footer, .drawer-footer { padding: 15px 20px; flex-wrap: wrap; }
  .modal-footer .foot-note { width: 100%; }
  .modal-footer .btn { font-size: 12px; padding: 9px 12px; }
  .run-status-hero { padding: 15px; gap: 11px; }
  .run-status-hero h3 { font-size: 13px; }
  .run-status-hero p { font-size: 12px; }
  .run-status-hero > .badge { font-size: 12px; }
  .settings-card { padding: 18px; }
  .settings-form-footer { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* The workspace home stays complete; task work remains deliberately focused. */
.workspace-nav { display:flex; gap:29px; padding:0 max(32px,calc((100% - 1016px)/2)); border-bottom:1px solid var(--line-soft); background:var(--light-surface, #1c2028); overflow-x:auto; }
.workspace-nav a { display:flex; align-items:center; gap:8px; flex:none; padding:14px 0 12px; font-size:13px; color:var(--light-ink-muted, #96a2b6); border-bottom:2px solid transparent; }
.workspace-nav a.active { color:var(--light-ink-accent, #c3d0f3); border-bottom-color:var(--light-border-strong, #93a5d5); }
.workspace-nav .icon { width:15px; height:15px; }
.dashboard-heading { align-items:center; margin-bottom:28px; }
.dashboard-heading h1 { font-size:29px; }
.dashboard-heading .btn { font-size:13px; }
.dashboard-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:13px; margin-bottom:36px; }
.dashboard-stats article { position:relative; border:1px solid var(--line); background:var(--light-surface, #222730); padding:18px 20px; border-radius:9px; }
.dashboard-stats article>.icon { position:absolute; right:18px; top:20px; color:var(--light-ink-muted, #7d8eac); width:17px; height:17px; }
.dashboard-stats article>span { color:var(--muted); font-size:12px; }
.dashboard-stats strong { display:block; font-size:28px; font-weight:580; line-height:1.4; margin-top:12px; }
.dashboard-stats strong small { font-size:12px; margin-left:9px; color:var(--light-ink-muted, #8e9bb0); font-weight:400; }
.dashboard-projects .section-head { margin-bottom:15px; }
.dashboard-projects h2 { font-size:18px; }
.count { color:var(--light-ink-muted, #95a3bd); font-size:13px; margin-left:6px; font-weight:500; }
.collection-tools { display:flex; gap:14px; align-items:center; }
.project-search { display:flex; align-items:center; border:1px solid var(--line); background:var(--light-surface, #20252d); border-radius:6px; padding-left:11px; }
.project-search>.icon { width:15px; height:15px; color:var(--light-ink-muted, #8d9bb1); }
.project-search input { border:0 !important; background:transparent !important; font-size:12px !important; width:164px !important; padding:8px 10px !important; }
.layout-toggle { display:flex; border:1px solid var(--line); border-radius:6px; padding:2px; gap:2px; }
.layout-toggle .icon-button { width:30px; height:29px; border-radius:4px; color:var(--light-ink-muted, #8896ae); }
.layout-toggle .active { background:var(--light-surface-raised, #343e51); color:var(--light-ink-accent, #c5d3f5); }
.layout-toggle .icon { width:15px; height:15px; }
.project-filters { display:flex; gap:7px; margin-bottom:20px; flex-wrap:wrap; }
.project-filters button { font-size:12px; color:var(--light-ink, #9facbf); border:1px solid transparent; padding:6px 12px; border-radius:6px; }
.project-filters .active { color:var(--light-ink-accent, #d2dcf4); border-color:var(--light-border-strong, #596984); background:var(--light-surface-accent, #2e3748); }
.projects-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.project-card { background:var(--light-surface, #222831); border:1px solid var(--line); border-radius:10px; padding:18px; display:flex; flex-direction:column; min-width:0; transition:border-color .15s; }
.project-card:hover { border-color:var(--light-border-strong, #626e85); }
.project-card-top { display:flex; align-items:center; gap:9px; margin-bottom:17px; }
.project-card-top .domain-icon { width:30px; height:30px; border-radius:7px; }
.project-card-top .domain-icon>.icon { width:16px; height:16px; }
.project-domain { color:var(--light-ink-muted, #96a5bc); font-size:12px; }
.favorite { margin-left:auto; color:var(--light-ink-muted, #66758c); width:27px; height:27px; }
.favorite.on { color:var(--light-ink-amber, #ddc58e); }
.favorite.on .icon { fill:#c1a75f28; }
.project-delete { width:27px; height:27px; color:var(--light-ink-muted, #7d8a9f); flex:none; }
.project-delete .icon { width:15px; height:15px; }
.project-delete:hover { color:var(--light-ink-red, #e7aaa8); background:var(--light-surface-red, #453035); }
.project-card h3 { font-size:16px; line-height:1.6; margin-bottom:7px; }
.project-card h3 a:hover { color:var(--light-ink-accent, #c1cff8); }
.project-card-body { flex:1; }
.project-card-body>p { color:var(--light-ink-muted, #98a5ba); font-size:12px; line-height:1.9; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:41px; }
.project-state { display:flex; align-items:center; gap:9px; margin:19px 0; }
.project-state>span:last-child:not(:first-child) { font-size:12px; color:var(--light-ink-muted, #8999b3); }
.project-card-progress { color:var(--light-ink-muted, #8d9db6); font-size:12px; display:flex; justify-content:space-between; flex-wrap:wrap; }
.project-card-progress small { font-size:12px; }
.progress-line { height:3px; width:100%; background:var(--light-surface-raised, #37404e); border-radius:5px; margin-top:9px; overflow:hidden; }
.progress-line i { height:100%; display:block; background:var(--light-highlight, #7d92c7); border-radius:5px; }
.project-card>footer { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:20px; padding-top:13px; border-top:1px solid var(--line-soft); font-size:12px; color:var(--light-ink-muted, #8e9db3); }
.project-card>footer a { color:var(--light-ink-accent, #bac8e9); font-size:12px; white-space:nowrap; }
.project-card>footer .icon { width:12px; height:12px; margin-left:3px; }
.projects-grid.list-view { grid-template-columns:1fr; gap:10px; }
.list-view .project-card { display:grid; grid-template-columns:150px 1fr 130px 160px; align-items:center; gap:20px; padding:18px; }
.list-view .project-card-top { margin:0; }
.list-view .project-card-body>p { min-height:0; -webkit-line-clamp:1; }
.list-view .project-card h3 { margin-bottom:3px; }
.list-view .project-state { margin:0; flex-wrap:wrap; }
.list-view .project-card-progress { display:none; }
.list-view .project-card>footer { border:0; padding:0; margin:0; flex-wrap:wrap; justify-content:flex-end; }
.collection-empty { grid-column:1/-1; text-align:center; padding:55px 20px; color:var(--muted); border:1px dashed var(--line); border-radius:9px; }
.collection-empty>.icon { width:26px; height:26px; color:var(--light-ink-accent, #90a2c7); margin-bottom:16px; }
.collection-empty p { font-size:13px; margin:10px 0 20px; }
.dashboard-lower { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-top:29px; }
.dashboard-box { border:1px solid var(--line); background:var(--light-surface, #20252d); border-radius:9px; padding:20px; min-width:0; }
.dashboard-box .section-head { margin-bottom:15px; }
.dashboard-box .text-button { font-size:12px; }
.next-item,.recent-event { display:flex; align-items:center; gap:12px; padding:14px 0; border-top:1px solid var(--line-soft); }
.next-item>.domain-icon { width:31px; height:31px; }
.next-item .domain-icon>.icon { width:15px; height:15px; }
.next-item>span:not(.domain-icon),.recent-event>span { flex:1; min-width:0; }
.next-item b,.recent-event b { display:block; font-size:12px; font-weight:550; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.next-item small,.recent-event small { display:block; color:var(--light-ink-muted, #899ab4); font-size:12px; margin-top:4px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.next-item>.icon,.recent-event>.icon { width:14px; height:14px; color:var(--light-ink-muted, #8b9bb6); }
.recent-event { padding:12px 0; }
.recent-event time { font-size:12px; color:var(--light-ink-muted, #8392aa); }
.workspace-journey { display:flex; gap:12px; align-items:center; flex-wrap:wrap; padding:21px 0 5px; color:var(--light-ink-muted, #94a4be); font-size:12px; }
.workspace-journey>span { padding:2px 6px; border:1px solid var(--light-border-strong, #4a566c); border-radius:4px; color:var(--light-ink-accent, #b2c2df); }
.workspace-journey b { font-weight:400; }
.workspace-journey i { font-style:normal; margin:0 5px; color:var(--light-ink-accent, #c3cfea); }

/* Unified planning and delivery navigation. */
.workflow-path { margin-bottom:24px; }
.workflow-path .stepper { margin-bottom:12px; }
.reference-toolbar { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:9px 1px 13px; font-size:12px; color:var(--light-ink-accent, #96a7c4); }
.reference-toolbar b { color:var(--light-ink-accent, #cedbfa); }
.reference-toolbar .text-button { font-size:12px; }
.selectable-comparison th:nth-child(1) { width:46px; padding:12px 9px; }
.selectable-comparison th:nth-child(2) { width:25%; }
.selectable-comparison th:nth-child(3) { width:65px; }
.selectable-comparison th:nth-child(4) { width:31%; }
.selectable-comparison th:nth-child(5) { width:19%; }
.selectable-comparison th:nth-child(6) { width:12%; }
.comparison-table .select-column { padding-left:13px; padding-right:9px; text-align:center; vertical-align:top; }
.reference-checkbox { display:flex; align-items:center; justify-content:center; min-height:24px; cursor:pointer; }
.reference-checkbox input { margin:3px 0 0; width:17px; height:17px; }
.selection-hint { display:flex; align-items:flex-start; gap:8px; font-size:12px; color:var(--light-ink-muted, #97a7c3); margin-top:12px; }
.selection-hint .icon { width:14px; height:14px; margin-top:2px; }
.question-evidence { border:1px solid var(--light-border-strong, #48566e); border-radius:7px; background:var(--light-surface-accent, #222c3b); padding:12px 14px; margin:18px 0; }
.question-evidence summary { cursor:pointer; color:var(--light-ink-accent, #afc2e8); font-size:12px; overflow-wrap:anywhere; }
.question-evidence summary>.icon { width:14px; height:14px; margin:0 6px 2px 0; }
.question-evidence p { font-size:12px; line-height:1.9; color:var(--light-ink-accent, #a9b7cf); margin:13px 0; white-space:pre-line; }
.question-evidence .row { flex-wrap:wrap; }
.development-calendar { margin:0 0 28px; }
.development-calendar>.section-head { margin-bottom:12px; }
.plan-milestones { padding-top:25px; border-top:1px solid var(--line); margin-bottom:22px; }
.schedule-settings { margin:0 0 26px;border:1px solid var(--light-border-strong, #46516a);border-radius:9px;background:var(--surface);overflow:hidden; }
.schedule-settings-main { display:flex;align-items:center;gap:15px;padding:19px 21px; }
.schedule-calendar-icon { display:flex;align-items:center;justify-content:center;width:38px;height:38px;flex:none;border:1px solid var(--light-border-strong, #46516b);border-radius:8px;background:var(--light-surface-accent, #2c354a);color:var(--light-ink-accent, #b7c6ed); }
.schedule-settings h3 { display:flex;align-items:center;gap:9px;font-size:13px; }
.schedule-settings h3 .badge { font-size:12px;font-weight:450; }
.schedule-settings-main p { font-size:12px;color:var(--quiet);line-height:1.8;margin-top:6px; }
.schedule-current { display:grid;gap:4px;text-align:right;font-variant-numeric:tabular-nums; }
.schedule-current strong { font-size:23px;font-weight:600;letter-spacing:-.5px;line-height:1.2; }
.schedule-current span { font-size:12px;color:var(--muted);white-space:nowrap; }
.schedule-current small { font-size:12px;color:var(--light-ink-accent, #b7c6e8);white-space:nowrap; }
.schedule-recommendation { display:flex;align-items:center;gap:13px;flex-wrap:wrap;padding:10px 21px;border-top:1px solid var(--line-soft);background:#1e26314d; }
.schedule-recommendation-label { display:flex;align-items:center;gap:6px;font-size:12px;color:var(--light-ink-accent, #aab9d4); }
.schedule-recommendation-label .icon { width:14px;height:14px;color:var(--light-ink-accent, #aabaff); }
.schedule-recommendation-label strong { color:var(--light-ink-accent, #d0daf0);font-weight:550;margin-left:2px; }
.schedule-recommendation-basis { font-size:12px;color:var(--quiet); }
.schedule-recommendation .text-button { font-size:12px;padding:4px 0; }
.schedule-recommendation .text-button:last-child { margin-left:auto; }
.schedule-caution { display:flex;gap:6px;padding:0 21px 12px;font-size:12px;line-height:1.8;color:var(--light-ink-amber, #b7ab8f);background:#1e26314d; }
.schedule-caution .icon { width:13px;height:13px;flex:none;margin-top:2px; }
.schedule-shortfall-options { display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px;padding:0 21px 14px;background:#1e26314d; }
.shortfall-option { display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:10px 12px;border:1px solid var(--line);border-radius:7px;background:var(--panel, transparent);color:inherit;text-align:left;cursor:pointer;font:inherit; }
.shortfall-option:hover:not(:disabled) { border-color:var(--light-border-strong, #74613d); }
.shortfall-option:disabled { opacity:.55;cursor:default; }
.shortfall-option b { font-size:13px; }
.shortfall-date { font-size:12px;font-weight:600; }
.shortfall-approx { font-style:normal;font-size:11px;padding:0 5px;border:1px solid currentColor;border-radius:9px;opacity:.8; }
.shortfall-option small { font-size:12px;line-height:1.6;opacity:.85; }
.schedule-shortfall-choice { display:flex;align-items:flex-start;gap:6px;padding:0 21px 12px;font-size:12px;line-height:1.8;background:#1e26314d; }
.schedule-shortfall-choice .icon { width:13px;height:13px;flex:none;margin-top:4px; }
.schedule-shortfall-choice .text-button { flex:none; }
.schedule-alignment { display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 21px;border-top:1px solid var(--light-border-strong, #74613d);background:#6a542426;color:var(--light-ink-amber, #d3c49e);font-size:12px;line-height:1.8; }
.schedule-alignment .btn { flex:none; }
.schedule-date-grid { display:grid;grid-template-columns:1fr 1fr 1fr;gap:13px; }
.sample-context { display:flex;align-items:flex-start;gap:9px;padding:12px 15px;margin:0 0 18px;border:1px solid var(--light-border, #414b62);border-radius:7px;background:#29324650;color:var(--light-ink, #99a8c3);font-size:12px;line-height:1.9; }
.sample-context .icon { width:14px;height:14px;flex:none;margin-top:3px; }
@media(max-width:760px){.schedule-settings-main{flex-wrap:wrap;gap:12px;padding:17px}.schedule-settings-main>.grow{min-width:calc(100% - 54px)}.schedule-current{margin-left:50px;text-align:left}.schedule-settings-main>.btn{margin-left:auto}.schedule-recommendation{gap:10px;padding:10px 17px}.schedule-caution{padding:0 17px 12px}.schedule-alignment{align-items:flex-start;padding:12px 17px}.schedule-date-grid{grid-template-columns:1fr 1fr}.schedule-date-grid>.field-label:last-child{grid-column:1/-1}}
@media(max-width:480px){.schedule-date-grid{grid-template-columns:1fr}.schedule-recommendation .text-button:last-child{margin-left:0}.schedule-alignment{flex-direction:column}}
.gantt-scroll { overflow-x:auto; }
.gantt { min-width:680px; margin:21px 0 0; border:1px solid var(--line); border-radius:7px; overflow:hidden; }
.gantt-header,.gantt-row { display:grid; grid-template-columns:240px 1fr; min-height:62px; }
.gantt-header { min-height:35px; background:var(--light-surface-raised, #2b3341); }
.task-column-label { padding:10px 14px; color:var(--light-ink, #a7b4cc); font-size:12px; }
.gantt-dates { display:flex; justify-content:space-between; padding:10px 15px; color:var(--light-ink-accent, #a3b2cd); font-size:12px; }
.gantt-row { border-top:1px solid var(--line-soft); }
.gantt-task { display:flex; align-items:center; gap:9px; text-align:left; padding:12px 14px; }
.gantt-task b { font-size:12px; font-weight:520; }
.gantt-task small { display:block; font-size:12px; color:var(--light-ink-muted, #8e9eb8); margin-top:4px; }
.phase-dot { width:5px; height:5px; background:var(--light-highlight, #96aad6); border-radius:50%; flex:none; }
.gantt-track { position:relative; margin:0 15px; border-left:1px solid var(--light-border, #3c475a); background:repeating-linear-gradient(to right,transparent 0%,transparent calc(20% - 1px),#39435470 calc(20% - 1px),#39435470 20%); }
.gantt-bar { position:absolute; top:22px; height:17px; min-width:7px; border:1px solid var(--light-border-strong, #8096c7); border-radius:4px; background:var(--light-highlight, #5f76ab); }
.gantt-bar.phase-3,.gantt-bar.phase-4,.gantt-bar.phase-5 { background:var(--light-surface-green, #4c716c); border-color:var(--light-border-strong, #749f94); }
.gantt-deadline-marker { position:absolute;width:0;top:0;bottom:0;border-right:1px dashed #a7b8d570;pointer-events:none; }
.implementation-mode { display:flex; align-items:flex-start; gap:13px; padding:16px; border:1px solid var(--light-border-strong, #4a5973); border-radius:7px; background:var(--light-surface-accent, #273142); margin-bottom:23px; }
.implementation-mode>.icon { color:var(--light-ink-accent, #b8c9ee); margin-top:3px; }
.implementation-mode>div { flex:1; }
.implementation-mode b { font-size:13px; font-weight:550; }
.implementation-mode p { font-size:12px; color:var(--light-ink-accent, #a7b6ce); margin-top:5px; line-height:1.8; }
.implementation-mode>.badge { align-self:center; }
.build-summary { display:grid; grid-template-columns:1.3fr .7fr 1fr 1fr; gap:12px; margin:25px 0; }
.build-summary>div { padding:13px 14px; border:1px solid var(--line); border-radius:7px; background:var(--light-surface, #202630); }
.build-summary span { display:block; font-size:12px; color:var(--light-ink-muted, #98a8c2); }
.build-summary b { display:block; font-size:13px; font-weight:520; margin-top:9px; }
.text-green { color:var(--light-ink-green, #b2d4c3); }.text-amber { color:var(--light-ink-amber, #d8bd87); }
.development-grid { display:grid; grid-template-columns:1fr 1fr; gap:22px; }
.build-files,.build-checks { padding:19px; border:1px solid var(--line); border-radius:8px; background:var(--light-surface, #20262f); min-width:0; }
.build-files>.section-head { margin-bottom:17px; }
.build-files>.section-head .text-button { font-size:12px; }
.build-files>button { display:flex; align-items:center; text-align:left; gap:9px; width:100%; border-radius:4px; padding:9px 2px; border-top:1px solid var(--light-border, #323c4a); color:var(--light-ink-accent, #b7c5de); }
.build-files>button:hover { background:var(--light-surface-accent, #303c51); }
.build-files>button>.icon { width:14px; height:14px; color:var(--light-ink-accent, #8ba3d0); }
.build-files>button>span { flex:1; overflow-wrap:anywhere; font-size:12px; }
.build-files>button>small { font-size:12px; color:var(--light-ink-muted, #8799b5); }
.check-result { margin-top:16px; border:1px solid var(--light-border-strong, #43516a); border-radius:6px; }
.check-result summary { display:flex; align-items:center; gap:8px; cursor:pointer; padding:11px 10px; }
.check-result summary>.icon { width:14px; height:14px; color:var(--light-ink-green, #abc9bd); }
.check-result summary>span:not(.badge) { flex:1; font-size:12px; }
.check-result pre,.source-code { font:11px/1.9 Consolas,"Malgun Gothic",monospace; color:var(--light-ink-accent, #bdcbe2); background:var(--light-surface-inset, #171d27); padding:16px; white-space:pre-wrap; overflow-wrap:anywhere; }
.check-result pre { font-size:12px; max-height:300px; overflow:auto; margin:0; }
.source-code { margin:0; min-height:60vh; border-radius:7px; }
.build-pending { padding-top:23px; margin-top:22px; border-top:1px solid var(--line); }
.build-pending h3 { font-size:12px; }
.build-pending p { color:var(--light-ink, #a3b2ca); font-size:12px; margin-top:8px; line-height:1.9; }
.build-empty { text-align:center; padding:43px 15px; border:1px dashed var(--light-border-strong, #4d5d78); border-radius:9px; margin:24px 0; }
.build-empty>span { display:grid; place-items:center; width:50px; height:50px; border:1px solid var(--light-border-strong, #5a6d91); background:var(--light-surface-accent, #303e57); color:var(--light-ink-accent, #b9cbef); border-radius:12px; margin:0 auto 19px; }
.build-empty>span>.icon { width:25px; height:25px; }
.build-empty>p { margin-top:12px; color:var(--light-ink-accent, #9eafc9); font-size:13px; line-height:1.9; }
.build-capabilities { display:flex; justify-content:center; gap:8px; flex-wrap:wrap; margin-top:24px; }
.limitation-list { margin:0; padding-left:19px; color:var(--light-ink, #a9b8ce); font-size:13px; line-height:2; }
.program-hero { display:flex; align-items:center; gap:18px; padding:24px; border:1px solid var(--light-border-strong, #51617e); border-radius:9px; background:var(--light-surface-accent, #283244); margin-bottom:20px; }
.program-symbol { display:grid; place-items:center; width:51px; height:51px; border:1px solid var(--light-border-strong, #758dbb); color:var(--light-ink-accent, #bfd3f7); border-radius:11px; background:var(--light-surface-accent, #354762); flex:none; }
.program-symbol>.icon { width:25px; height:25px; }
.program-hero h3 { font-size:18px; }
.program-hero p { font-size:12px; color:var(--light-ink-accent, #a8b9d2); margin-top:7px; }
.program-actions { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:29px; }
.program-preview iframe { display:block; width:100%; height:600px; border:1px solid var(--line); border-radius:7px; margin:17px 0; background:var(--light-surface-inset, #15191f); }
.live-program-frame { display:block; width:100%; height:65vh; min-height:400px; border:1px solid var(--line); border-radius:7px; background:var(--light-surface-inset, #15191f); }
#modal-root:has(.live-program-frame) .modal.wide { width:min(1120px,96vw); max-width:none; }
#modal-root:has(.live-program-frame) .modal-body { padding:12px; }
.release-checklist { margin:26px 0; border:1px solid var(--line); padding:20px; border-radius:8px; }
.release-checklist h3 { margin-bottom:17px; }
.release-checklist>div { display:flex; align-items:center; gap:9px; font-size:13px; color:var(--light-ink-accent, #b1c0d9); margin-top:12px; }
.release-checklist>div>.icon { width:15px; height:15px; color:var(--light-ink-green, #91b9a6); }
.release-checklist>p { margin-top:20px; font-size:12px; color:var(--light-ink-muted, #a59d8e); line-height:1.9; }
.release-note { display:flex; align-items:flex-start; gap:12px; padding:18px; border:1px solid var(--light-border-strong, #527568); border-radius:7px; background:var(--light-surface-green, #263831); color:var(--light-ink-green, #afd0bf); font-size:13px; }
.release-note p { margin-top:7px; color:var(--light-ink, #adc0b8); white-space:pre-line; }
.template-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.template-card { border:1px solid var(--line); background:var(--surface); border-radius:10px; overflow:hidden; min-width:0; }
.template-visual { padding:33px; background:var(--light-surface-accent, #293449); border-bottom:1px solid var(--line); }
.template-art { display:flex; align-items:center; gap:17px; justify-content:center; }
.template-art .domain-icon { width:48px; height:48px; background:var(--light-surface-accent, #3c5074); }
.art-lines { display:grid; gap:7px; width:54px; }
.art-lines i { height:4px; border-radius:4px; background:var(--light-highlight, #687eaa); }
.art-lines i:last-child { width:65%; }
.art-badge { display:none; }
.template-content { padding:22px; }
.template-content h3 { margin:10px 0; font-size:17px; }
.template-content>p { font-size:12px; color:var(--muted); line-height:1.9; min-height:63px; }
.wide-explainer { padding:25px; border:1px solid var(--line); border-radius:8px; background:var(--surface); display:flex; gap:30px; }
.wide-explainer h2 { font-size:20px; margin:12px 0; }
.wide-explainer p { font-size:13px; color:var(--muted); line-height:1.9; }
@media(max-width:1000px) {
  .projects-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .list-view .project-card { grid-template-columns:120px 1fr 115px; gap:14px; }
  .list-view .project-card>footer { display:none; }
  .template-grid { grid-template-columns:1fr; }
  .template-card { display:grid; grid-template-columns:160px 1fr; }
  .template-visual { display:grid; place-items:center; border-bottom:0; border-right:1px solid var(--line); }
  .template-content>p { min-height:0; }
}
@media(max-width:760px) {
  .workspace-nav { padding:0 20px; gap:25px; }
  .workspace-nav a { font-size:12px; }
  .dashboard-heading { flex-wrap:wrap; gap:18px; }
  .dashboard-stats { grid-template-columns:repeat(2,1fr); margin-bottom:26px; }
  .dashboard-stats article { padding:16px; }
  .dashboard-projects .section-head { align-items:center; flex-wrap:wrap; }
  .projects-grid { gap:12px; }
  .project-card { padding:15px; }
  .project-card h3 { font-size:15px; }
  .project-card>footer { flex-wrap:wrap; }
  .dashboard-lower { grid-template-columns:1fr; }
  .build-summary { grid-template-columns:1fr 1fr; }
  .development-grid { grid-template-columns:1fr; }
  .implementation-mode { flex-wrap:wrap; }
  .implementation-mode>.badge { margin-left:30px; }
  .program-hero { padding:18px; gap:13px; flex-wrap:wrap; }
  .program-hero>.badge { margin-left:64px; }
  .program-hero h3 { font-size:16px; }
  .program-actions .btn { font-size:12px; }
  .development-calendar>.section-head { flex-wrap:wrap; gap:10px; }
  .selectable-comparison { min-width:720px; }
  .list-view .project-card { display:flex; flex-direction:row; flex-wrap:wrap; }
  .list-view .project-card-top { width:100%; }
  .list-view .project-card-body { flex:1; }
}
@media(max-width:460px) {
  .projects-grid { grid-template-columns:1fr; }
  .project-search input { width:130px !important; }
  .template-card { display:block; }
  .template-visual { display:none; }
}

/* One continuous, equal-weight development journey. */
.unified-stepper { grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px; }
.unified-stepper>button { min-height:88px; padding:17px 12px; gap:10px; }
.unified-stepper .step-no { width:28px; height:28px; font-size:16px; }
.unified-stepper .step-text b { font-size:13px; }
.unified-stepper .step-text small { font-size:12px; white-space:normal; line-height:1.7; }
.unified-stepper>button:disabled { opacity:.65; }
.unified-stepper .step-check { right:9px; top:8px; }
.benchmark-ranking-line { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 12px; color:var(--light-ink-accent, #a2b3cf); font-size:12px; }
.benchmark-ranking-line>span { display:flex; gap:7px; align-items:center; line-height:1.8; }
.benchmark-ranking-line .icon { width:14px; height:14px; flex:none; }
.benchmark-ranking-line .text-button { font-size:12px; white-space:nowrap; }
.candidate-tabs { display:flex; gap:23px; border-bottom:1px solid var(--line); margin:18px 0 5px; }
.candidate-tabs button { color:var(--light-ink-accent, #96a8c7); font-size:12px; padding:0 0 12px; border-bottom:2px solid transparent; }
.candidate-tabs button.active { color:var(--light-ink-accent, #cbd9fa); border-bottom-color:var(--light-border-strong, #a8bceb); }
.candidate-tabs span { color:var(--light-ink-accent, #92a4c7); margin-left:4px; font-size:12px; }
.reference-toolbar small { color:var(--light-ink-muted, #94a4bd); font-size:12px; }
.comparison-table .benchmark-priority { display:flex; align-items:center; gap:8px; margin-bottom:8px; white-space:normal; line-height:1; }
.benchmark-priority>span { font-size:14px; color:var(--light-ink-accent, #b0c3ec); font-variant-numeric:tabular-nums; font-weight:650; }
.benchmark-priority>em { font-size:12px; color:var(--light-ink-green, #b3d8c5); font-style:normal; margin-left:auto; }
.benchmark-priority>.similar-label { font-size:12px; font-style:normal; color:var(--light-ink-amber, #d5bd94); margin-left:0; }
.similar-disclosure { margin:0 0 13px; color:var(--light-ink-amber, #c4b18e); font-size:12px; line-height:1.8; }
.selectable-comparison .score-column { text-align:center; padding-left:6px; padding-right:6px; white-space:nowrap; }
.benchmark-score { display:inline-flex; align-items:baseline; gap:2px; min-width:42px; justify-content:center; padding:5px 3px; color:var(--light-ink-accent, #c1d1f4); font-size:18px; font-weight:650; font-variant-numeric:tabular-nums; line-height:1.4; border-radius:5px; }
.benchmark-score>span { font-size:12px; font-weight:400; color:var(--light-ink-accent, #9aadc9); }
.benchmark-score:hover { color:var(--light-ink-accent, #e4edff); background:var(--light-surface-accent, #38445a); }
.score-empty { color:var(--light-ink-muted, #8190a6); }
.benchmark-highlights { margin:0; padding:0; list-style:none; display:grid; gap:7px; white-space:normal; }
.benchmark-highlights li { position:relative; padding-left:10px; font-size:12px; line-height:1.7; overflow:visible; text-overflow:clip; white-space:normal; word-break:keep-all; }
.benchmark-highlights li::before { content:""; position:absolute; top:.8em; left:0; width:3px; height:3px; border-radius:50%; background:var(--light-highlight, #92a6c9); }
/* 자료 제목을 눌러도 근거 상세가 열립니다. */
.benchmark-title { display:block; padding:0; text-align:left; color:var(--light-ink-accent, #e1e7f4); font-size:13px; font-weight:590; line-height:1.7; white-space:normal; word-break:keep-all; overflow-wrap:anywhere; cursor:pointer; }
.benchmark-title:hover, .benchmark-title:focus-visible { text-decoration:underline; text-underline-offset:3px; }
h3>.benchmark-title { font-size:inherit; font-weight:inherit; }
.benchmark-reason { display:block; margin-top:6px; color:var(--quiet, #8f9bb0); font-size:12px; line-height:1.7; white-space:normal; }
.comparison-table td .benchmark-reason b, .benchmark-reason b { display:inline; font-size:12px; font-weight:600; color:var(--light-ink-muted, #a4b0c4); margin-right:4px; }
.benchmark-summary-text { margin:0; font-size:12.5px; line-height:1.75; white-space:normal; word-break:keep-all; overflow-wrap:anywhere; }
.benchmark-summary-text.muted { color:var(--muted); }
.evidence-badge { display:inline-block; margin:0 0 5px; padding:0 6px; border:1px solid var(--light-border, #465061); border-radius:4px; font-size:10.5px; line-height:1.7; color:var(--light-ink-amber, #d5bd94); white-space:nowrap; vertical-align:middle; }
.evidence-badge.reviewed { color:var(--light-ink-green, #b3d8c5); }
.selection-basis { margin:0 0 13px; color:var(--muted); font-size:12px; line-height:1.8; }
.selection-basis b { color:var(--light-ink, #c5cede); font-weight:600; margin-right:6px; }
.reference-selected { background:var(--light-surface, #24302f); }
.reference-selected td { border-bottom-color:var(--light-border, #425853); }
.reference-unselected td b { color:var(--light-ink-accent, #ccd5e5); }
.search-shortfall { color:var(--light-ink-amber, #ccb68e); font-size:12px; line-height:1.9; margin-top:8px; }
.ranking-rules { display:grid; gap:12px; }
.ranking-rules>div { display:flex; align-items:center; gap:17px; padding:15px; border:1px solid var(--line); border-radius:7px; background:var(--light-surface-accent, #252e3e); }
.ranking-rules>div>b { color:var(--light-ink-accent, #b5c9f6); font-size:25px; font-variant-numeric:tabular-nums; width:40px; text-align:center; }
.ranking-rules strong { font-size:14px; font-weight:550; }
.ranking-rules small { display:block; font-size:12px; color:var(--light-ink-accent, #a7b6d1); line-height:1.8; margin-top:5px; }
.source-ranking { background:var(--light-surface-accent, #263144); padding:18px; border:1px solid var(--light-border-strong, #4b5d7d); border-radius:7px; }
.source-ranking>.row { margin-bottom:20px; }
.source-ranking>.row>b { color:var(--light-ink-accent, #c5d5fa); font-size:22px; }
.source-ranking>.row>b small { font-size:12px; color:var(--light-ink-accent, #93a7ce); }
.ranking-score-row { display:flex; align-items:center; gap:12px; margin:13px 0; font-size:12px; }
.ranking-score-row>span { width:105px; flex:none; color:var(--light-ink-accent, #b1bfda); }
.ranking-score-row>i { height:4px; flex:1; background:var(--light-surface-accent, #414e67); border-radius:5px; overflow:hidden; }
.ranking-score-row>i>b { display:block; height:100%; background:var(--light-highlight, #a1b8e8); }
.ranking-score-row>small { font-size:12px; color:var(--light-ink-accent, #c2cfeb); width:44px; text-align:right; }
.source-ranking>p,.source-ranking>small { color:var(--light-ink-accent, #a5b6d4); font-size:12px; line-height:1.9; }
.source-ranking>p { margin:18px 0 7px; }
.question-position { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.question-position>span { color:var(--light-ink-accent, #94a8ca); font-size:12px; letter-spacing:0; }
.question-dots { flex-wrap:wrap; }
.question-navigation>span { white-space:nowrap; color:var(--light-ink-accent, #a2b2cc); font-size:12px; }
.question-choice-hint { font-size:12px; color:var(--light-ink-accent, #a0b1cd); margin:0 0 10px; line-height:1.8; }
.answer-choices { display:grid; grid-template-columns:1fr 1fr; gap:10px; border:0; padding:0; margin:0 0 18px; min-width:0; }
.answer-option { display:flex; align-items:center; gap:10px; cursor:pointer; border:1px solid var(--light-border-strong, #495a76); background:var(--light-surface-accent, #252e3d); padding:16px 14px; border-radius:7px; color:var(--light-ink-accent, #bfcee7); font-size:13px; min-height:64px; position:relative; }
.answer-option:hover { border-color:var(--light-border-strong, #829bc9); background:var(--light-surface-accent, #29364b); }
.answer-option:has(input:checked) { color:var(--light-ink-accent, #e1eaff); border-color:var(--light-border-strong, #9ab1e3); background:var(--light-surface-accent, #344563); box-shadow:inset 0 0 0 1px #9ab1e32b; }
.answer-option:has(input:focus-visible) { outline:2px solid var(--light-border-strong, #c4d6ff); outline-offset:3px; }
.answer-option input { width:1px; height:1px; opacity:0; position:absolute; }
.answer-option>.option-letter { display:grid; place-items:center; width:24px; height:24px; border:1px solid var(--light-border-strong, #5a6c8d); color:var(--light-ink-accent, #b2c4e7); border-radius:5px; font-size:12px; flex:none; }
.answer-option:has(input:checked)>.option-letter { background:var(--light-highlight, #afc4f2); border-color:var(--light-border-strong, #afc4f2); color:var(--light-ink, #25324a); }
.answer-option>span:not(.option-letter) { flex:1; line-height:1.8; }
.answer-option>.icon { width:14px; height:14px; opacity:0; color:var(--light-ink-accent, #cbdcff); flex:none; }
.answer-option:has(input:checked)>.icon { opacity:1; }
.other-answer-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:8px; }
.other-answer-heading>label { font-size:13px; color:var(--light-ink-accent, #c5d1e7); }
.other-answer-heading>label>span { display:block; font-size:12px; color:var(--light-ink-accent, #8fA3c5); margin-top:5px; }
.other-answer-heading .text-button { font-size:12px; }
.essential-question-note { display:flex; gap:7px; color:var(--light-ink-accent, #8fa4c7); font-size:12px; line-height:1.9; margin:15px 0 22px; }
.essential-question-note>.icon { width:13px; height:13px; flex:none; margin-top:3px; }
.question-evidence-item { padding-top:14px; margin-top:15px; border-top:1px solid var(--light-border-strong, #42516d); }
.question-evidence-item>b { color:var(--light-ink-accent, #c0d0ed); font-size:12px; }
.question-evidence-item>p { margin:8px 0; }
.question-actions { flex:1; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px 20px; min-width:0; }
.question-actions-main { display:flex; flex-wrap:wrap; gap:8px; }
.question-actions-main:empty { display:none; }
.question-actions-main>.btn { min-height:34px; }
.question-actions-sub { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:2px 16px; margin-left:auto; }
.question-actions-sub>.text-button { font-size:12px; color:var(--quiet); }
.question-actions-sub>.text-button:hover:not(:disabled) { color:var(--ink); }
.question-actions .icon { width:13px; height:13px; }
.question-extras { gap:16px; }
.question-extras .text-button { font-size:12px; }
.replacement-options { border:0; padding:0; margin:0; min-width:0; }
.replacement-options>legend { color:var(--light-ink-accent, #b0c0db); font-size:12px; padding:0; margin-bottom:12px; }
.replacement-options>label { display:flex; align-items:flex-start; gap:12px; border:1px solid var(--light-border-strong, #485a79); border-radius:7px; padding:17px; margin-top:11px; cursor:pointer; background:var(--light-surface-accent, #252f40); }
.replacement-options>label:has(input:checked) { border-color:var(--light-border-strong, #97b0e1); background:var(--light-surface-accent, #344462); }
.replacement-options input { margin-top:4px; accent-color:var(--light-ink-accent, #aabfee); }
.replacement-options b { font-size:14px; font-weight:550; line-height:1.9; }
.replacement-options small { display:block; color:var(--light-ink-accent, #a2b5d5); font-size:12px; line-height:1.9; margin-top:7px; }
.replacing-question { border-left:2px solid var(--light-border-strong, #7b91b9); padding-left:14px; }
.replacing-question>small { font-size:12px; color:var(--light-ink-accent, #96a9c9); }
.replacing-question>p { color:var(--light-ink-accent, #c5d2e9); font-size:13px; margin-top:8px; line-height:1.9; }
.previous-question-answer { color:var(--light-ink-accent, #a6b8d5); font-size:12px; line-height:1.9; }
.previous-question-answer>summary { cursor:pointer; }
.previous-question-answer>section { margin-top:15px; padding-top:13px; border-top:1px solid var(--line); }
.previous-question-answer p { white-space:pre-line; margin:9px 0; }
@media(max-width:1120px) {
  .unified-stepper { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .unified-stepper>button { min-height:78px; padding:15px; }
  .unified-stepper .step-text b { font-size:14px; }
}
@media(max-width:620px) {
  .unified-stepper { gap:7px; }
  .unified-stepper>button { flex-direction:column; justify-content:center; text-align:center; min-height:92px; gap:8px; padding:11px 6px; }
  .unified-stepper .step-text b { font-size:12px; }
  .unified-stepper .step-text small { display:none; }
  .unified-stepper .step-no { width:25px; height:25px; font-size:14px; }
  .benchmark-ranking-line { align-items:flex-start; flex-wrap:wrap; gap:5px; }
  .compare-heading { flex-wrap:wrap; gap:10px; }
  .reference-toolbar { flex-wrap:wrap; gap:10px; }
  .answer-choices { grid-template-columns:1fr; }
  .answer-option { min-height:54px; padding:13px; }
  .question-dots { gap:6px; }
  .question-dots button { width:27px; height:27px; }
  .candidate-tabs { gap:15px; }
  .candidate-tabs button { font-size:12px; }
}

/* Release readability pass: denser data stays compact; prose and next actions do not. */
.app-shell { font-size: 16px; }
.page-heading p { font-size: 16px; line-height: 1.65; max-inline-size: 65ch; }
#page > .page-note { margin-bottom: 18px; }
.page-note, .sample-context { font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.workspace-nav a { font-size: 15px; min-height: 44px; }
.dashboard-stats article > span, .dashboard-stats strong small { font-size: 14px; color: var(--muted); }
.project-filters button { font-size: 14px; min-height: 38px; }
.project-search #project-filter { font-size: 15px !important; }
.project-card h3 { font-size: 18px; line-height: 1.45; overflow-wrap: anywhere; }
.project-card-body > p { color: var(--muted); font-size: 15px; line-height: 1.6; min-height: 3.2em; overflow-wrap: anywhere; }
.project-domain, .project-card-progress, .project-card-progress small,
.project-state > span:last-child:not(:first-child), .project-card > footer { font-size: 13px; color: var(--muted); }
.project-state { flex-wrap: wrap; margin-block: 15px; }
.project-state .badge, .settings-layout .badge, .data-table .badge { font-size: 13px; }
.project-card > footer a { font-size: 14px; font-weight: 650; color: var(--accent); padding-block: 4px; }
.dashboard-box .section-head h3 { font-size: 18px; }
.dashboard-box .text-button, .next-item small, .recent-event small, .recent-event time { font-size: 13px; }
.next-item b, .recent-event b { font-size: 15px; }
.next-item b, .next-item small, .recent-event b, .recent-event small { white-space: normal; overflow-wrap: anywhere; }
.workspace-journey, .app-footer, .app-footer .text-button, .app-footer .btn.text-button { font-size: 13px; }
.app-footer { flex-wrap: wrap; }
.unified-stepper .step-text small { font-size: 13px; line-height: 1.4; }
.unified-stepper .step-text b { white-space: normal; overflow-wrap: anywhere; }
.unified-stepper > button:disabled { opacity: .75; }
.stage-panel .panel-heading h2, .stage-panel .section-head h2 { font-size: 20px; }
.stage-panel .panel-heading + p, .stage-panel .selection-hint, .stage-panel .reference-toolbar { font-size: 14px; }
.data-table, .data-table .tiny, .activity-item p { font-size: 14px; }
.settings-layout .card-header h3, .settings-card > h3 { font-size: 18px; }
.settings-row > div { min-width: 0; }
.settings-row b { font-size: 15px; font-weight: 650; }
.settings-row p, .settings-card .aside-caption, .settings-form-footer span { font-size: 14px; line-height: 1.65; }
.appearance-row { border-bottom: 0; }
.appearance-row select { width: auto; min-height: 44px; flex-shrink: 0; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 44px; min-height: 44px; padding: 6px 10px; color: var(--ink); border: 1px solid var(--line); white-space: nowrap; font-size: 14px; }
.theme-toggle .icon { width: 17px; height: 17px; }
/* 상단 바의 화면 모드 버튼은 피드백 버튼과 같은 크기로 맞춥니다. */
.topbar-actions .theme-toggle { min-width: 0; min-height: 33px; padding: 6px 11px; gap: 7px; font-size: 12px; font-weight: 550; }
.topbar-actions .theme-toggle .icon { width: 15px; height: 15px; }
.theme-toggle:hover, .theme-toggle[aria-pressed="true"] { color: var(--accent); background: var(--raised); border-color: var(--accent); }
.app-shell ::selection { background: var(--light-highlight, #414f7b); color: var(--ink); }
:root[data-theme="light"] .progress-line i { background: var(--primary); }
:root[data-theme="light"] .service-flow li,
:root[data-theme="light"] .service-named-gate .service-login-card { background: var(--surface); }
:root[data-theme="light"] .service-named-gate .service-flow li:last-child,
:root[data-theme="light"] .feedback-tabs button > span { background: var(--light-surface-accent); }
:root[data-theme="light"] .service-account-info,
:root[data-theme="light"] .sample-context,
:root[data-theme="light"] .schedule-recommendation,
:root[data-theme="light"] .schedule-caution { background: var(--light-surface-inset); }
:root[data-theme="light"] .schedule-shortfall-options, :root[data-theme="light"] .schedule-shortfall-choice { background: var(--light-surface-inset); }
:root[data-theme="light"] .feedback-success > span { background: var(--light-surface-green); }
:root[data-theme="light"] .feedback-item-icon.bug,
:root[data-theme="light"] .schedule-alignment { background: var(--light-surface-amber); }
:root[data-theme="light"] .unified-stepper > button:disabled { opacity: .85; }

@media (max-width: 1000px) {
  .list-view .project-card > footer { display: flex; grid-column: 1 / -1; justify-content: space-between; }
}
@media (max-width: 760px) {
  .list-view .project-card > footer { flex: 0 0 100%; padding-top: 10px; border-top: 1px solid var(--line-soft); }
  .project-filters button { min-height: 44px; }
  .project-card-body > p, .page-heading p { font-size: 17px; }
  .theme-toggle { padding-inline: 8px; }
  .theme-toggle span { display: none; }
  .workspace-nav { gap: 18px; }
  .workspace-nav a { font-size: 14px; }
}
@media (max-width: 460px) {
  .settings-row { gap: 10px; }
  .settings-card .settings-row { flex-wrap: wrap; }
  .appearance-row { align-items: flex-start; flex-wrap: wrap; }
  .appearance-row select { max-width: 100%; }
  .project-card-body > p { -webkit-line-clamp: 3; }
}

/* Release checks: keep keyboard recovery and data within the narrow viewport. */
:is(#page, .build-outcome, .comparison-scroll):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.service-locked .skip-link { display: none; }
.comparison-navigation { display: none; }
.build-outcome {
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.build-outcome h3 { color: var(--ink); }
.build-outcome p { margin: 6px 0 12px; color: var(--muted); overflow-wrap: anywhere; }
.run-status-hero > div { min-width: 0; }
:is(.program-hero, .run-status-hero) :is(h3, p), .project-heading h1 { overflow-wrap: anywhere; }
.activity-runs { margin-top: 24px; }
.activity-table .run-name { overflow-wrap: anywhere; }
.run-name b, .run-name > span { display: block; }
.run-name > span { margin-top: 4px; }
.run-meta-label { display: none; }
.activity-table .activity-empty td { padding: 30px 18px; text-align: center; color: var(--muted); }
.settings-role-note {
  margin-bottom: 8px;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--raised);
  color: var(--ink);
  font-size: 14px;
}

@media (max-width: 760px) {
  .comparison-navigation { display: grid; gap: 8px; margin: 10px 0; }
  .comparison-navigation p { color: var(--muted); font-size: 14px; }
  .comparison-navigation .btn, .run-record .btn { min-height: 44px; }
}
@media (max-width: 620px) {
  .topbar { height: auto; min-height: 63px; flex-wrap: wrap; row-gap: 3px; padding-block: 8px; }
  .topbar-actions { min-width: 0; max-width: 100%; flex-wrap: wrap; gap: 4px; }
  .topbar-actions > :is(.icon-button, .mode-indicator, .topbar-feedback, .topbar-updates, .theme-toggle),
  .topbar-actions .service-account-button { min-width: 44px; min-height: 44px; justify-content: center; }
  .topbar-actions .mode-indicator { white-space: normal; text-align: left; overflow-wrap: anywhere; }
  .activity-runs { overflow: visible; }
  .activity-table, .activity-table tbody { display: block; }
  .activity-table thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
  .activity-table .activity-run {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    padding: 14px;
    border-bottom: 1px solid var(--line);
  }
  .activity-table .activity-run:last-child { border-bottom: 0; }
  .activity-table :is(.activity-run, .activity-empty) td { display: block; padding: 0; border: 0; min-width: 0; }
  .activity-table .run-name { grid-column: 1 / -1; font-size: 15px; }
  .activity-table .run-state { grid-column: 1; align-self: center; }
  .activity-table .run-record { grid-column: 2; grid-row: 2; justify-self: end; }
  .activity-table .run-time { grid-column: 1 / -1; }
  .run-meta-label { display: inline; margin-right: 6px; }
  .activity-table .activity-empty { display: block; }
  .activity-table .activity-empty td { padding: 24px 14px; }
}
@media (max-width: 460px) {
  .topbar .brand { padding-block: 5px; }
  .topbar-actions { flex: 1 0 100%; justify-content: flex-end; }
  .topbar-actions .mode-indicator { flex: 1 0 46px; justify-content: flex-start; }
  .program-hero > .badge { margin-left: 0; }
}

/* 기획안 5단계 중간 점검: 마일스톤 완료 조건별 판정·증거·진척률 */
/* 단계 표시줄 아래 '다음 할 일' 한 줄 */
.next-step-line { display:flex; align-items:center; gap:12px; margin:-12px 0 20px; padding:8px 8px 8px 14px; min-width:0; border:1px solid var(--light-border, #3c4556); border-left:3px solid var(--light-ink-accent, #8ea0d6); border-radius:7px; background:var(--light-surface, #20252d); }
.next-step-line.needs-action { border-left-color:var(--amber); }
.next-step-label { flex:none; font-size:12px; font-weight:650; color:var(--light-ink-accent, #b8c6ff); }
.next-step-line.needs-action .next-step-label { color:var(--amber); }
.next-step-line p { flex:1; min-width:0; margin:0; font-size:13px; line-height:1.6; color:var(--ink); overflow:hidden; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow-wrap:anywhere; }
.next-step-line p small { margin-left:8px; font-size:12px; color:var(--muted); white-space:nowrap; }
.next-step-line .btn.text-button { flex:none; padding:4px 8px; }

/* 홈 카드 · 4단계 마일스톤의 점검 상태 */
.checkpoint-card-progress.has-failed small b { color:var(--amber); font-weight:600; }
.milestone-check { flex:none; }
.milestone-row.checkpoint-failed { border-left:4px solid var(--amber); }

/* 개발 수행 · 중간 점검 섹션 */
.checkpoint-panel { margin:0 0 24px; scroll-margin-top:16px; outline:none; }
.checkpoint-panel:focus-visible { outline:2px solid var(--accent); outline-offset:4px; border-radius:10px; }
.checkpoint-summary { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.15fr); grid-template-areas:"head next" "progress next" "legend next"; gap:10px 24px; padding:18px 20px; margin-bottom:12px; border:1px solid var(--light-border, #414b5b); border-radius:10px; background:var(--light-surface, #20252d); }
.checkpoint-summary-head { grid-area:head; display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:4px 12px; }
.checkpoint-summary-head h3 { font-size:16px; }
.checkpoint-summary-head span { font-size:12px; color:var(--muted); }
.checkpoint-progress { grid-area:progress; display:flex; align-items:center; gap:14px; }
.checkpoint-progress > b { font-size:34px; line-height:1; font-weight:650; font-variant-numeric:tabular-nums; color:var(--ink); white-space:nowrap; }
.checkpoint-progress > b small { margin-left:2px; font-size:16px; font-weight:500; color:var(--muted); }
.checkpoint-progress .progress-line { flex:1; height:8px; margin:0; }
.checkpoint-progress.pending-approval { margin:0; font-size:13px; color:var(--muted); }
.checkpoint-legend { grid-area:legend; display:flex; flex-wrap:wrap; gap:6px 16px; margin:0; padding:0; list-style:none; font-size:12px; color:var(--muted); }
.checkpoint-legend li { display:inline-flex; align-items:center; gap:6px; }
.checkpoint-legend li::before { content:""; width:8px; height:8px; border-radius:50%; box-sizing:border-box; border:1px solid var(--quiet); }
.checkpoint-legend .passed::before { background:var(--green); border-color:var(--green); }
.checkpoint-legend .failed::before { background:var(--amber); border-color:var(--amber); }
.checkpoint-legend b { color:var(--ink); font-weight:600; font-variant-numeric:tabular-nums; }
.checkpoint-next { grid-area:next; display:flex; flex-direction:column; justify-content:center; gap:4px; min-width:0; margin:0; padding:12px 16px; border-left:3px solid var(--light-ink-accent, #8ea0d6); border-radius:8px; background:var(--light-surface-accent, #293242); font-size:13px; line-height:1.65; }
.checkpoint-next.needs-action { border-left-color:var(--amber); background:var(--light-surface-amber, #3a3222); }
.checkpoint-summary.done .checkpoint-next { border-left-color:var(--green); background:var(--light-surface-green, #293a34); }
.checkpoint-next strong { font-size:12px; font-weight:650; color:var(--light-ink-accent, #b8c6ff); }
.checkpoint-next.needs-action strong { color:var(--amber); }
.checkpoint-summary.done .checkpoint-next strong { color:var(--green); }
.checkpoint-next p { display:grid; gap:2px; margin:0; overflow-wrap:anywhere; }
.checkpoint-next p b { font-size:15px; font-weight:600; color:var(--ink); }
.checkpoint-next p span { color:var(--muted); }
.checkpoint-panel > .inline-warning { margin:0 0 12px; }

.checkpoint-list { display:grid; gap:9px; margin:0; padding:0; list-style:none; }
.checkpoint-row { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:start; gap:8px 16px; padding:15px 16px; border:1px solid var(--light-border, #414b5b); border-radius:8px; background:var(--light-surface, #202630); }
.checkpoint-row .milestone-no { padding-top:3px; }
.checkpoint-row.passed .milestone-no { color:var(--green); }
.checkpoint-row.failed { border-color:#6b5d43; border-left:4px solid var(--amber); background:#2a2720; }
.checkpoint-row.failed .milestone-no { color:var(--amber); }
.checkpoint-row.is-next:not(.failed) { border-color:var(--light-border-strong, #7e90c4); box-shadow:0 0 0 1px var(--light-highlight, #7e90c440); }
.checkpoint-main { display:grid; gap:6px; min-width:0; }
.checkpoint-meta { display:flex; align-items:center; flex-wrap:wrap; gap:6px 10px; font-size:12px; color:var(--muted); }
.checkpoint-next-tag { font-weight:650; color:var(--light-ink-accent, #b8c6ff); }
.checkpoint-row.failed .checkpoint-next-tag { color:var(--amber); }
.checkpoint-name { font-size:15px; font-weight:600; line-height:1.5; overflow-wrap:anywhere; }
.checkpoint-criterion, .checkpoint-note { margin:0; font-size:13px; line-height:1.7; color:var(--muted); overflow-wrap:anywhere; }
.checkpoint-row em { display:inline-block; margin-right:8px; font-size:12px; font-style:normal; font-weight:600; color:var(--light-ink-muted, #8899bc); }
.checkpoint-evidence { padding:9px 12px; border:1px solid var(--line-soft); border-radius:6px; background:var(--light-surface-inset, #1a1f27); font-size:13px; }
.checkpoint-evidence > em { display:block; margin-bottom:3px; }
.checkpoint-evidence-list { margin:0; padding-left:16px; line-height:1.7; color:var(--ink); overflow-wrap:anywhere; }
.checkpoint-evidence .checkpoint-note { margin-top:6px; padding-top:6px; border-top:1px dashed var(--line); color:var(--ink); }
.checkpoint-row.failed .checkpoint-note em { color:var(--amber); }
.checkpoint-history { font-size:12px; color:var(--muted); }
.checkpoint-history summary { width:fit-content; padding:2px 0; cursor:pointer; color:var(--light-ink-accent, #b5c2e3); }
.checkpoint-history ol { display:grid; gap:10px; margin:8px 0 0; padding:0 0 0 12px; border-left:2px solid var(--line); list-style:none; }
.checkpoint-history-head { display:flex; align-items:center; gap:8px; font-variant-numeric:tabular-nums; }
.checkpoint-history .checkpoint-evidence-list { margin-top:3px; color:var(--muted); }
.checkpoint-history .checkpoint-note { font-size:12px; }
.checkpoint-action { align-self:start; display:flex; flex-direction:column; align-items:stretch; gap:6px; }
.checkpoint-decision { margin:6px 0 0; padding-top:6px; border-top:1px dashed var(--line); font-size:13px; line-height:1.7; color:var(--ink); overflow-wrap:anywhere; }
.checkpoint-optional summary { width:fit-content; cursor:pointer; font-size:13px; color:var(--light-ink-accent, #b5c2e3); }
.checkpoint-optional[open] { display:grid; gap:12px; }
.checkpoint-decision-options { display:grid; gap:10px; }
.checkpoint-decision-option { display:grid; gap:4px; width:100%; padding:12px 14px; text-align:left; color:var(--ink); background:transparent; border:1px solid var(--line); border-radius:8px; cursor:pointer; font:inherit; }
.checkpoint-decision-option:hover, .checkpoint-decision-option:focus-visible { border-color:var(--light-border-strong, #7e90c4); }
.checkpoint-decision-option.primary { border-color:var(--light-border-strong, #7e90c4); }
.checkpoint-decision-option.chosen { box-shadow:0 0 0 1px var(--light-border-strong, #7e90c4); }
.checkpoint-decision-option b { font-size:14px; font-weight:600; }
.checkpoint-decision-option small { font-size:12px; color:var(--muted); line-height:1.6; }
.goal-check { display:inline-flex; align-items:center; gap:5px; margin-top:4px; font-size:12px; color:var(--muted); }
.goal-check i { width:7px; height:7px; border-radius:50%; background:var(--quiet, #7d879a); flex:none; }
.goal-check.passed { color:var(--green); }
.goal-check.passed i { background:var(--green); }
.goal-check.failed { color:var(--amber); }
.goal-check.failed i { background:var(--amber); }
:root[data-theme="light"] .checkpoint-row.failed { border-color:#dcc28e; border-left-color:var(--amber); background:var(--light-surface-amber); }

/* 판정 모달 */
.checkpoint-criteria { display:grid; gap:8px; margin:0; padding:14px 16px; border:1px solid var(--line); border-radius:8px; background:var(--light-surface-inset, #1d222a); }
.checkpoint-criteria > div { display:grid; grid-template-columns:64px minmax(0,1fr); gap:10px; font-size:13px; line-height:1.7; }
.checkpoint-criteria dt { font-size:12px; color:var(--muted); }
.checkpoint-criteria dd { margin:0; color:var(--ink); overflow-wrap:anywhere; }
.checkpoint-criteria .criterion dd { font-size:14px; font-weight:600; }
.checkpoint-choice { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:0; padding:0; border:0; min-width:0; }
.checkpoint-choice legend { margin-bottom:8px; padding:0; font-size:13px; font-weight:600; }
.checkpoint-choice label { display:flex; align-items:center; gap:10px; padding:12px 14px; border:1px solid var(--light-border, #48515f); border-radius:8px; background:var(--input); cursor:pointer; }
.checkpoint-choice label span { display:grid; line-height:1.45; }
.checkpoint-choice b { font-size:14px; }
.checkpoint-choice small { font-size:12px; color:var(--muted); }
.checkpoint-choice input { flex:none; width:16px; height:16px; margin:0; accent-color:var(--primary); }
.checkpoint-choice label.passed:has(input:checked) { border-color:var(--green); background:var(--light-surface-green, #293a34); }
.checkpoint-choice label.failed:has(input:checked) { border-color:var(--amber); background:var(--light-surface-amber, #3b352b); }
.checkpoint-choice label:has(input:focus-visible) { outline:2px solid var(--accent); outline-offset:2px; }
@media (max-width: 640px) {
  .checkpoint-summary { grid-template-columns:minmax(0,1fr); grid-template-areas:"head" "progress" "legend" "next"; padding:16px 14px; }
  .checkpoint-progress > b { font-size:28px; }
  .checkpoint-row { grid-template-columns:auto minmax(0,1fr); gap:8px 11px; padding:14px 12px; }
  .checkpoint-action { grid-column:1 / -1; }
  .checkpoint-action .btn { width:100%; }
  .checkpoint-criteria > div { grid-template-columns:minmax(0,1fr); gap:0; }
}
@media (max-width: 460px) {
  .next-step-line { flex-wrap:wrap; gap:2px 10px; padding:8px 10px 8px 12px; }
  .next-step-line p { flex-basis:100%; order:2; }
  .next-step-line .btn.text-button { margin-left:auto; }
  .checkpoint-choice { grid-template-columns:minmax(0,1fr); }
}

/* 가독성: PC 기준 단계 표시줄 줄바꿈을 단어 단위로 */
.unified-stepper .step-text b, .unified-stepper .step-text small { word-break: keep-all; }
@media (min-width: 1360px) {
  #page { width: min(1240px, 100%); }
  .workspace-nav { padding: 0 max(32px, calc((100% - 1176px) / 2)); }
}

/* 홈 첫 화면 '지금 할 일' 한 건 */
.home-focus { display:flex; align-items:center; gap:20px; margin:0 0 22px; padding:20px 22px; border:1px solid var(--light-border-strong, #56658a); border-left:4px solid var(--light-ink-accent, #8ea0d6); border-radius:10px; background:var(--light-surface-accent, #283045); }
.home-focus.needs-action { border-left-color:var(--amber); }
.home-focus-main { flex:1; min-width:0; display:grid; gap:6px; }
.home-focus-label { font-size:12px; font-weight:650; color:var(--light-ink-accent, #b8c6ff); }
.home-focus.needs-action .home-focus-label { color:var(--amber); }
.home-focus h2 { font-size:19px; line-height:1.45; font-weight:620; color:var(--ink); overflow-wrap:anywhere; }
.home-focus p { display:flex; align-items:center; flex-wrap:wrap; gap:6px 10px; margin:0; font-size:13px; color:var(--muted); }
.home-focus p b { color:var(--ink); font-weight:560; overflow-wrap:anywhere; }
.home-focus .domain-icon { width:26px; height:26px; border-radius:6px; }
.home-focus .domain-icon > .icon { width:14px; height:14px; }
.home-focus-where { font-weight:600; color:var(--light-ink-accent, #c3cff5); }
.home-focus > .btn { flex:none; }

/* 단계 표시줄 아래 한 줄: 진행 위치 · 상태 · 다음 할 일 */
.next-step-where { flex:none; font-size:13px; font-weight:650; color:var(--ink); white-space:nowrap; }
.next-step-line > .badge { flex:none; }
.next-step-line .next-step-label { margin-left:4px; padding-left:12px; border-left:1px solid var(--line); }
/* 잠긴 단계: 선행 조건을 읽을 수 있게 */
.unified-stepper > button:disabled { opacity:.8; }
.unified-stepper .step-text small.step-lock { color:var(--muted); }
/* 밝은 모드(기본): 흰 작업 영역 위에 흰 칸이 겹쳐 경계가 사라지지 않게 */
:root[data-theme="light"] .brief-summary { background:var(--light-surface-inset); border:1px solid var(--line-soft); }
:root[data-theme="light"] .brief-summary > span { color:var(--light-ink-muted); font-weight:600; }
:root[data-theme="light"] .reference-selected { background:var(--light-surface-accent); }
:root[data-theme="light"] .reference-selected td { border-bottom-color:var(--light-border); }

/* 품질 규칙 경고(로컬 개발 서버 devserver/quality-check.cjs) */
.quality-warnings { margin-top: 14px; padding: 10px 14px; border-left: 3px solid var(--amber); background: color-mix(in srgb, var(--amber) 8%, transparent); border-radius: 0 6px 6px 0; font-size: 12px; line-height: 1.7; }
.quality-warnings b { display: flex; align-items: center; gap: 6px; color: var(--amber); font-weight: 600; }
.quality-warnings .icon { width: 14px; height: 14px; }
.quality-warnings ul { margin: 4px 0 0; padding-left: 18px; }
.quality-warnings li span { font-weight: 600; }
.help-tip { position: relative; display: inline-flex; align-items: center; vertical-align: middle; margin-left: 4px; color: var(--quiet); cursor: help; border-radius: 50%; }
.help-tip .icon { width: 15px; height: 15px; }
.help-tip:hover, .help-tip:focus-visible { color: var(--ink, inherit); outline: none; }
.help-tip-text { display: none; position: absolute; left: -8px; top: calc(100% + 8px); z-index: 30; width: 320px; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface, #fff); color: var(--ink, inherit); box-shadow: 0 8px 24px rgba(0,0,0,.14); font-size: 12px; font-weight: 400; line-height: 1.7; text-align: left; white-space: normal; }
.help-tip:hover .help-tip-text, .help-tip:focus .help-tip-text, .help-tip:focus-within .help-tip-text { display: block; }
.help-tip-line { display: block; }
.help-tip-line + .help-tip-line { margin-top: 4px; }
.help-tip-line.muted { color: var(--quiet); }
/* 만드는 방식(생성 방식) 알림 */
.generation-notice { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding: 9px 14px; border-left: 3px solid var(--amber); background: color-mix(in srgb, var(--amber) 8%, transparent); border-radius: 0 6px 6px 0; font-size: 12px; line-height: 1.7; }
.generation-notice > .icon { width: 14px; height: 14px; color: var(--amber); flex: none; }
.generation-notice > span { flex: 1; min-width: 200px; }
.generation-option input[type=radio] { width: 18px; height: 18px; flex: none; accent-color: var(--accent, currentColor); }
.generation-fallback { display: flex; align-items: center; gap: 6px; margin-top: 14px; }
.generation-fallback .icon { width: 14px; height: 14px; }

/* 벤치마킹 → 새 과제로 이어 가기 */
.research-tracks { margin-top: 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.research-tracks-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.research-tracks-head h3 { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; }
.research-tracks-head .icon { width: 15px; height: 15px; }
.research-track { display: flex; align-items: flex-start; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.research-track:last-child { border-bottom: 0; }
.research-track b { font-size: 14px; font-weight: 600; }
.research-track p { margin-top: 5px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.research-track-refs { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 7px; }
.research-track-refs .text-button { font-size: 12px; text-align: left; white-space: normal; overflow-wrap: anywhere; min-width: 0; max-width: 100%; }
.idea-card { min-width: 0; }
.idea-card .research-track-refs { flex-direction: column; align-items: flex-start; gap: 6px; }
.research-track > .btn { flex: none; }
.new-project-origin { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); line-height: 1.6; }
.new-project-origin .icon { flex: none; width: 14px; height: 14px; margin-top: 3px; }
.new-project-origin b { color: inherit; font-weight: 600; }
@media (max-width: 640px) { .research-track { flex-direction: column; } }

/* 실행 중 표시(생각하는 중) */
.run-working h3 { display: flex; align-items: baseline; gap: 2px; }
.event-dot.run-spinner { border: 3px solid var(--light-border-strong, #586c8f); border-top-color: var(--light-ink-accent, #b3c7f8); border-radius: 50%; animation: run-spin .9s linear infinite; }
.run-dots::after { content: ""; animation: run-dots 1.4s steps(4, end) infinite; }
@keyframes run-spin { to { transform: rotate(360deg); } }
@keyframes run-dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
@media (prefers-reduced-motion: reduce) { .event-dot.run-spinner, .run-dots::after { animation: none; } }

/* 목표 수정·의견 */
.compact-goal, .goal-table-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) 176px; }
.goal-row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.goal-row-actions .btn { gap: 5px; white-space: nowrap; }
.goal-row-actions .icon { width: 14px; height: 14px; }
.goal-comment-count { min-width: 18px; margin-left: 2px; padding: 0 5px; border-radius: 9px; background: var(--light-surface-raised, #2b3240); font-size: 11px; font-weight: 600; text-align: center; }
.goal-comment-latest { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; min-width: 0; margin-top: -8px; padding: 8px 11px; border: 1px solid var(--line-soft); border-radius: 6px; background: transparent; color: var(--muted); font-size: 12px; text-align: left; }
.goal-comment-latest span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.goal-comment-latest time { color: var(--quiet); white-space: nowrap; }
.goal-comment-latest .icon { width: 13px; height: 13px; flex: none; }
.goal-comment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: 320px; overflow: auto; }
.goal-comment-list li { border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px; }
.goal-comment-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--quiet); }
.goal-comment-meta .text-button { margin-left: auto; }
.goal-comment-list p { margin-top: 6px; font-size: 13px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.goal-comment-empty { font-size: 13px; color: var(--muted); }
.goal-edit-notes { border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px; font-size: 12px; color: var(--muted); }
.goal-edit-notes b { display: flex; align-items: center; gap: 6px; color: var(--light-ink-accent, #c6d4ff); font-weight: 550; }
.goal-edit-notes ul { margin: 6px 0 0; padding-left: 18px; line-height: 1.8; overflow-wrap: anywhere; }
.goal-edit-notes time { color: var(--quiet); margin-right: 8px; }
@media (max-width: 760px) {
  .compact-goal, .goal-table-head { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
  .goal-table-head > span:last-child { display: none; }
  .goal-row-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* 피드백 이미지 첨부 */
.feedback-attach { display: grid; gap: 10px; margin-top: -7px; }
.feedback-attach-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.feedback-attach-head label.btn { cursor: pointer; gap: 5px; }
.feedback-attach-head label.btn.disabled { opacity: .5; cursor: not-allowed; }
.feedback-attach-head:focus-within label.btn { outline: 2px solid var(--accent); outline-offset: 2px; }
.feedback-attach-head small { font-size: 12px; color: var(--light-ink-muted, #8697b3); }
.feedback-previews { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.feedback-previews li { position: relative; border: 1px solid var(--light-border, #3f4959); border-radius: 7px; overflow: hidden; background: var(--light-surface-accent, #202733); }
.feedback-previews img { display: block; width: 100%; height: 96px; object-fit: cover; }
.feedback-previews span { display: block; padding: 6px 8px; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--light-ink-accent, #bdcbe2); }
.feedback-previews span small { margin-left: 6px; color: var(--light-ink-muted, #899ab7); }
.feedback-previews .icon-button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; background: #000a; color: #fff; }
.feedback-images { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.feedback-thumb { width: 112px; display: grid; gap: 4px; justify-items: center; padding: 6px; border: 1px solid var(--light-border, #3f4959); border-radius: 7px; background: var(--light-surface-accent, #202733); color: var(--light-ink-muted, #8697b3); font-size: 11px; }
.feedback-thumb img { width: 100%; height: 72px; object-fit: cover; border-radius: 4px; }
.feedback-thumb > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feedback-thumb > .icon { width: 22px; height: 22px; margin: 12px 0 4px; }
.feedback-viewer { margin-bottom: 16px; padding: 10px; border: 1px solid var(--light-border-strong, #4a5d80); border-radius: 8px; background: var(--light-surface, #1b212b); }
.feedback-viewer img { display: block; max-width: 100%; max-height: 60vh; margin: 0 auto 8px; object-fit: contain; }
.feedback-viewer span { font-size: 12px; color: var(--light-ink-muted, #8697b3); overflow-wrap: anywhere; }
@media (max-width: 620px) { .feedback-previews { grid-template-columns: repeat(2, minmax(0, 1fr)); } .feedback-thumb { width: 96px; } }

/* 피드백 처리 의견(답변) */
.feedback-reply-count { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 12px; color: var(--light-ink-accent, #a7b9e8); white-space: nowrap; }
.feedback-reply-count .icon { width: 12px; height: 12px; }
.feedback-replies { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.feedback-replies li { border-left: 3px solid var(--light-border-strong, #4a5d80); background: var(--light-surface-accent, #202733); border-radius: 0 6px 6px 0; padding: 9px 12px; }
.feedback-replies li > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--light-ink-muted, #8697b3); }
.feedback-replies b { color: var(--light-ink-accent, #c6d4f0); font-weight: 550; }
.feedback-replies span { padding: 1px 6px; border-radius: 4px; border: 1px solid var(--light-border, #3f4959); }
.feedback-replies p { margin-top: 4px; font-size: 13px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--light-ink-accent, #b8c6dd); }
.feedback-manage { display: flex; align-items: flex-start; gap: 12px; border-top: 1px solid var(--light-border, #354154); margin-top: 16px; padding-top: 13px; }
.feedback-manage .feedback-status-control { border-top: 0; margin-top: 0; padding-top: 1px; flex: none; white-space: nowrap; }
.feedback-reply-form { flex: 1; min-width: 0; display: flex; gap: 8px; align-items: flex-start; }
.feedback-reply-form textarea { flex: 1; min-width: 0; min-height: 34px; resize: vertical; font-size: 12px; line-height: 1.6; padding: 6px 9px; }
.feedback-reply-form .btn { flex: none; gap: 5px; white-space: nowrap; }
@media (max-width: 620px) { .feedback-manage { flex-direction: column; align-items: stretch; } .feedback-manage .feedback-status-control { justify-content: flex-start; } }
/* AI 추천 답변 선택 창 */
.suggestion-list { display:flex; flex-direction:column; gap:10px; }
.suggestion-option { display:flex; gap:12px; align-items:flex-start; padding:12px 14px; border:1px solid var(--line, #d9dee7); border-radius:10px; cursor:pointer; }
.suggestion-option:has(input:checked) { border-color:var(--accent, #2f6fed); background:rgba(47,111,237,.06); }
.suggestion-option input { margin-top:3px; }
.suggestion-option>span { display:flex; flex-direction:column; gap:4px; min-width:0; }
.suggestion-answer { white-space:pre-wrap; line-height:1.5; }

/* ── devflow v2 ─────────────────────────────────────────────────────────── */
.task-type-options { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.task-type-options legend { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.task-type-options>.row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 560px; }
@media (max-width: 560px) { .task-type-options>.row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.task-type-option { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line, #d9dee7); border-radius: 8px; cursor: pointer; font-size: 13px; }
.task-type-option:has(input:checked) { border-color: var(--accent, #6657df); background: rgba(102, 87, 223, .10); }
.v2-matrix { margin: 18px 0; display: flex; flex-direction: column; gap: 8px; }
.v2-matrix .section-head { display: flex; align-items: center; gap: 10px; }
.v2-matrix-table td, .v2-matrix-table th { min-width: 110px; }
.v2-tier { display: block; color: var(--muted, #7b8496); font-size: 11px; margin-top: 2px; }
.v2-unknown { color: var(--muted, #7b8496); font-size: 11px; }
.v2-best { color: var(--amber, #c98a14); }
.v2-value { all: unset; cursor: pointer; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.v2-value:hover, .v2-value:focus-visible { text-decoration: underline; outline: 2px solid var(--accent, #6657df); outline-offset: 2px; border-radius: 4px; }
.v2-check { font-size: 10px; padding: 1px 6px; }
.v2-value-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.v2-value-item { border: 1px solid var(--line, #d9dee7); border-radius: 8px; padding: 8px 10px; }
.v2-quote { margin: 6px 0; padding: 4px 10px; border-left: 3px solid var(--line, #d9dee7); font-size: 13px; }
.v2-axis-candidates { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px dashed var(--line, #d9dee7); border-radius: 10px; }
.v2-axis-candidates .query-chip, .v2-quality .query-chip { display: inline-flex; flex-direction: column; align-items: flex-start; padding: 5px 10px; border: 1px solid var(--line, #d9dee7); border-radius: 8px; background: transparent; cursor: default; }
.v2-quality .query-chip { cursor: pointer; }
.v2-quality .query-chip small, .v2-axis-candidates .query-chip small { color: var(--muted, #7b8496); font-size: 10px; }
.v2-quality { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--amber, #c98a14); background: rgba(201, 138, 20, .08); font-size: 12px; }
.v2-quality p { margin: 0 0 6px; }
.v2-quality .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.v2-axis-priority { margin-top: 10px; }
.v2-axis-priority select { margin-top: 4px; }
.goal-priority { display: inline-block; margin-top: 3px; font-size: 11px; color: var(--accent, #6657df); }
.goal-reference { display: block; font-size: 11px; color: var(--muted, #7b8496); margin-top: 2px; }
.v2-clarify-turn { display: flex; flex-direction: column; gap: 4px; }
.v2-clarify-turn p { margin: 0; padding: 7px 10px; border-radius: 8px; font-size: 13px; }
.v2-probe { background: rgba(102, 87, 223, .10); align-self: flex-start; }
.v2-reply { background: var(--raised, rgba(127, 127, 127, .10)); align-self: flex-end; white-space: pre-wrap; }

.v2-sense { margin: 10px 0; padding: 10px 12px; border: 1px solid var(--amber, #c98a14); border-radius: 10px; background: rgba(201, 138, 20, .08); font-size: 12px; display: flex; flex-direction: column; gap: 8px; }
.v2-sense.chosen { border-color: var(--green, #2e8b57); background: rgba(46, 139, 87, .07); }
.v2-sense p { margin: 0; display: flex; gap: 6px; align-items: flex-start; }
.v2-sense .query-chip { display: inline-flex; flex-direction: column; align-items: flex-start; padding: 6px 10px; border: 1px solid var(--line, #d9dee7); border-radius: 8px; background: transparent; cursor: pointer; }
.v2-sense .query-chip.active { border-color: var(--accent, #6657df); background: rgba(102, 87, 223, .12); }
.v2-sense .query-chip small { color: var(--muted, #7b8496); font-size: 10px; }
.v2-sense-label, .v2-other-sense { font-style: normal; font-size: 10px; padding: 1px 6px; border-radius: 6px; margin-left: 4px; border: 1px solid var(--line, #d9dee7); }
.v2-other-sense { color: var(--muted, #7b8496); text-decoration: line-through; }
.goal-proposal { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; font-size: 12px; }
.goal-proposal b { color: var(--accent, #6657df); }
.goal-proposal small { color: var(--muted, #7b8496); font-size: 11px; }
.v2-proposal-bar { display: flex; align-items: center; gap: 10px; margin: 8px 0 12px; padding: 10px 12px; border: 1px solid var(--accent, #6657df); border-radius: 10px; background: rgba(102, 87, 223, .08); font-size: 13px; }
.v2-proposal-bar span { flex: 1; }

/* 실행 중 떠 있는 버튼: 실행 상세 창을 닫아도 다시 열 수 있게 합니다. 드로어(z 90)와 알림(z 200)보다 아래. */
.run-dock { position: fixed; right: 24px; bottom: 92px; z-index: 60; display: flex; align-items: center; gap: 10px; max-width: min(420px, calc(100vw - 32px)); padding: 11px 16px; border: 1px solid var(--light-border-strong, #56658a); border-radius: 999px; background: var(--light-surface-accent, #30394d); color: var(--light-ink-accent, #d1dcfb); font-size: 13px; box-shadow: 0 8px 24px rgba(0,0,0,.22); cursor: pointer; }
.run-dock:hover, .run-dock:focus-visible { border-color: var(--accent); }
.run-dock { touch-action: none; user-select: none; } .run-dock.dragging { cursor: grabbing; opacity: .92; }
.run-dock-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.run-dock small { color: var(--accent); font-weight: 600; white-space: nowrap; }
@media (max-width: 760px) { .run-dock { right: 12px; bottom: 84px; } }

/* 연구 갈래 반영·차별화 목표 제안 */
.research-track-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.direction-on { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--green); }
.direction-on svg { width: 13px; height: 13px; }
.directions-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; font-size: 13px; color: var(--ink); }
.directions-line small { color: var(--muted); }
.idea-section { margin-top: 26px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.idea-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.idea-head h3 { display: flex; align-items: center; gap: 7px; font-size: 15px; }
.idea-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0; }
.idea-card { padding: 16px 18px; border-right: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 8px; }
.idea-card:last-child { border-right: 0; }
.idea-top b { display: block; font-size: 14px; margin-top: 4px; }
.idea-origin { font-size: 11px; font-weight: 600; color: var(--accent); }
.idea-card > p { font-size: 13px; line-height: 1.75; color: var(--ink); }
.idea-fields { display: grid; gap: 5px; margin: 0; font-size: 12px; }
.idea-fields dt { color: var(--muted); font-weight: 600; }
.idea-fields dd { margin: 0; color: var(--ink); line-height: 1.6; }
.idea-actions { margin-top: auto; padding-top: 6px; }
@media (max-width: 760px) { .idea-card { border-right: 0; border-bottom: 1px solid var(--line-soft); } }

/* 검색 전 용어 뜻 한 줄 */
.term-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; font-size: 13px; color: var(--ink); }
.term-line .icon { width: 14px; height: 14px; color: var(--green); }

.idea-head .btn { margin-left: auto; }
.idea-goal { display: grid; gap: 8px; }
.idea-goal .row { display: flex; gap: 6px; margin-top: 5px; }
.idea-goal input { flex: 1; min-width: 0; }

.goal-target-missing { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px dashed var(--amber, #c98a14); border-radius: 8px; background: rgba(201, 138, 20, .08); color: inherit; font: inherit; font-size: 14px; cursor: pointer; }
.goal-target-missing .icon { width: 14px; height: 14px; }
.v2-axis-priority { border: 1px solid var(--line, #d9dee7); border-radius: 7px; padding: 10px 14px 14px; margin: 0 0 18px; min-width: 0; }
.v2-axis-priority legend { font-size: 13px; padding: 0 4px; }
.v2-axis-priority.needs-choice { border-color: var(--amber, #c98a14); background: rgba(201, 138, 20, .06); }
.v2-axis-priority legend b { color: var(--amber, #c98a14); font-size: 11px; margin-left: 4px; }
.v2-axis-radios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.release-notes { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.release-heading { margin: 12px 0 6px; font-size: 13px; }
.release-history { margin-top: 12px; font-size: 13px; }
.release-history h4 { margin: 10px 0 4px; font-size: 13px; }
.release-history small { color: var(--muted, #7b8496); font-weight: normal; }
.release-history-list { display: flex; flex-direction: column; gap: 4px; }
.release-history-list .release-latest h4 { margin: 0 0 8px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.release-history-list .release-latest small { color: var(--muted, #7b8496); font-weight: normal; }
.release-history-list .release-history { margin-top: 0; padding: 8px 0; border-top: 1px solid var(--line, #2c3446); }
.release-history-list .release-history:first-of-type { margin-top: 12px; }
.release-history-list .release-history summary { cursor: pointer; font-weight: 600; }
.release-history-list .release-history .release-notes { margin-top: 8px; font-size: 13px; }
@media (max-width: 600px) { .topbar-updates { padding: 6px 8px; } .topbar-updates > span { display: none; } }
/* 사이드 채팅(AI 상담): 과제 화면 오른쪽 패널. 열려 있으면 본문을 왼쪽으로 비켜 줍니다. */
.chat-toggle.on { border-color: var(--accent); color: var(--accent); }
.side-chat { position: fixed; top: 0; right: 0; z-index: 60; width: min(380px, 100%); height: 100dvh; display: flex; flex-direction: column; background: var(--light-surface, #242b35); border-left: 1px solid var(--line); box-shadow: -12px 0 40px #0002; }
.side-chat[hidden] { display: none; }
body.chat-open .app-shell { padding-right: min(380px, 100%); }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.chat-head > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.chat-head small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-empty { color: var(--muted); font-size: 13px; line-height: 1.7; display: flex; flex-direction: column; gap: 8px; }
.chat-msg { max-width: 92%; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; line-height: 1.65; }
.chat-msg p { white-space: pre-wrap; word-break: break-word; margin: 0; }
.chat-msg.user { align-self: flex-end; background: var(--primary); color: #fff; }
.chat-msg.assistant { align-self: flex-start; background: var(--raised); border: 1px solid var(--line-soft); }
.chat-msg.assistant .text-button { margin-top: 6px; }
.chat-msg.pending { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.chat-msg.error { align-self: stretch; max-width: none; display: flex; gap: 8px; align-items: flex-start; background: var(--light-surface-amber, #3b352b); color: var(--light-ink-amber, #ddc698); }
.chat-form { display: flex; gap: 8px; align-items: flex-end; padding: 12px 16px 6px; border-top: 1px solid var(--line-soft); }
.chat-form textarea { flex: 1; resize: none; min-height: 64px; max-height: 160px; }
.chat-note { display: flex; align-items: center; gap: 6px; padding: 4px 16px 12px; margin: 0; color: var(--quiet); font-size: 12px; }
.chat-note .icon { width: 13px; height: 13px; }
@media (max-width: 900px) { body.chat-open .app-shell { padding-right: 0; } .side-chat { box-shadow: -20px 0 90px #0006; } }
.milestone-goals { display: block; margin-top: 4px; color: var(--muted, #667085); font-size: 12px; }
.notice-stale > span { flex: 1; min-width: 0; }
.notice-stale > .btn { flex-shrink: 0; margin-left: auto; white-space: nowrap; }
@media (max-width: 760px) { .notice-stale { flex-wrap: wrap; } .notice-stale > .btn { margin-left: 22px; } }
.idea-head > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.idea-count { font-size: 12px; font-weight: 500; color: var(--quiet); margin-left: 4px; }
.idea-list { display: flex; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.idea-list > .idea-card { flex: 0 0 min(320px, 86%); scroll-snap-align: start; }
.idea-card.unanswered .idea-origin { color: var(--amber, #b7791f); }
.idea-card.adopted { background: var(--surface-soft, rgba(102, 87, 223, .04)); }
@media (max-width: 760px) { .idea-list > .idea-card { border-bottom: 0; border-right: 1px solid var(--line-soft); } }
.goal-main-fields { margin-bottom: 4px; }
.goal-detail-fields { border: 1px solid var(--line-soft, #e3e7ef); border-radius: 8px; padding: 10px 14px; }
.goal-detail-fields > summary { cursor: pointer; font-weight: 600; font-size: 13px; }
.goal-detail-fields > summary small { font-weight: 400; color: var(--quiet); margin-left: 6px; }
.goal-detail-fields[open] > summary { margin-bottom: 12px; }
.goal-proposal { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; font-weight: 400; color: var(--quiet); }
.compact-goal > p > .goal-target-missing { margin-bottom: 0; }
.compact-goal { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) auto; }
.clarify-options { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.clarify-options .tiny { flex-basis: 100%; }
.idea-scroller { position: relative; }
.idea-arrow { position: absolute; top: 50%; z-index: 2; width: 40px; height: 40px; margin-top: -20px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface, #fff); color: var(--ink, #1f2a44); box-shadow: 0 4px 14px rgba(37, 48, 76, .18); cursor: pointer; }
.idea-arrow:hover { border-color: var(--accent, #6657df); color: var(--accent, #6657df); }
.idea-arrow[hidden] { display: none; }
.idea-arrow.prev { left: 8px; }
.idea-arrow.prev .icon { transform: rotate(180deg); }
.idea-arrow.next { right: 8px; }
.idea-scroller::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 48px; pointer-events: none; background: linear-gradient(to right, transparent, var(--surface, #fff)); opacity: .9; }
.goal-add-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 19px; border-top: 1px solid var(--line); }
/* AI 도우미: 창 오른쪽에 붙은 세로 탭(아이콘 위, 글자 세로), 위아래로만 움직입니다. */
.chat-fab { position: fixed; right: 0; top: 38vh; z-index: 55; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 7px 14px; border: 0; border-radius: 12px 0 0 12px; background: var(--primary, #6657df); color: #fff; font: inherit; font-size: 13px; font-weight: 600; line-height: 1.15; box-shadow: -4px 6px 18px rgba(37, 48, 76, .22); cursor: pointer; touch-action: none; user-select: none; }
.chat-fab span { writing-mode: vertical-rl; text-orientation: upright; letter-spacing: 1px; }
.chat-fab .icon { width: 18px; height: 18px; flex: none; }
.chat-fab:hover { filter: brightness(1.08); padding-right: 10px; }
.chat-fab:focus-visible { outline: 3px solid var(--accent, #6657df); outline-offset: 2px; }
.chat-fab.dragging { cursor: ns-resize; filter: brightness(1.08); }
.chat-fab[hidden] { display: none; }
@media (max-width: 600px) { .chat-fab { padding: 10px 6px; font-size: 12px; } }
.plan-column-labels > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.plan-column-labels .badge { margin: 0; line-height: 1.4; }
/* 0.9.6: top bar spacing. Bordered buttons sit together (8px); other items keep 16px. */
@media (min-width: 761px) {
  .topbar-actions { gap: 16px; }
  .topbar-actions > :is(.theme-toggle, .topbar-updates, .topbar-feedback) + :is(.theme-toggle, .topbar-updates, .topbar-feedback) { margin-left: -8px; }
}
.topbar-actions .mode-indicator { white-space: nowrap; }
/* 목표 충돌·중복 점검 */
.goal-check-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.goal-check-actions:empty { display: none; }
.goal-check-info { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.goal-check-info .icon { width: 14px; height: 14px; flex: none; }
/* 일정: 개발 구분 확인 한 줄, 단계별 시험·필요한 자료 */
.kind-check { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border: 1px solid var(--light-border, #414b5b); border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; font-size: 13px; }
.kind-check > .icon { width: 14px; height: 14px; color: var(--light-ink-accent, #8798bc); }
.kind-check .grow { min-width: 200px; }
.plan-fallback-missing { display: block; font-weight: 600; margin-bottom: 2px; }
.milestone-item { display: grid; }
.milestone-extra { margin: 4px 0 0 52px; font-size: 12px; }
.milestone-extra summary { cursor: pointer; color: var(--muted); padding: 4px 0; }
.milestone-extra-body { display: grid; gap: 6px; padding: 6px 0 4px; }
.milestone-extra-body p { margin: 0; line-height: 1.7; }
.milestone-extra-body em { font-style: normal; color: var(--light-ink-muted, #8899bc); margin-right: 8px; }
@media (max-width: 760px) { .milestone-extra { margin-left: 12px; } }
.gonogo-tag { display: inline-block; margin-left: 8px; padding: 1px 7px; border: 1px solid var(--light-border-strong, #697c9a); border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--light-ink-accent, #c6d4ff); vertical-align: 2px; }
.unset-criteria { margin-top: 14px; border: 1px solid var(--light-border, #e3d2a6); border-radius: 8px; background: var(--surface, #fff); }
.unset-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft, #eef0f4); }
.unset-head .icon { width: 15px; height: 15px; }
.unset-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line-soft, #eef0f4); }
.unset-row:first-of-type { border-top: 0; }
.unset-row .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.unset-proposal { font-size: 13px; color: var(--accent, #6657df); font-weight: 600; }
@media (max-width: 600px) {
  .answer-unit { max-width: 50%; padding: 0 10px; font-size: 12px; }
  .answer-textarea { max-height: 280px; }
  .question-card-footer { flex-direction: column; align-items: stretch; gap: 10px; }
  .question-badge { align-self: flex-start; }
  .question-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .question-actions-main>.btn { flex: 1 1 auto; }
  .question-actions-sub { justify-content: flex-start; margin-left: 0; gap: 0 14px; }
  .v2-axis-radios { grid-template-columns: 1fr; }
}
/* PC 연결 프로그램(Boim) 개발 */
.agent-jobs{border:1px solid var(--line,#d8dde5);border-radius:12px;padding:16px;margin:16px 0;display:grid;gap:10px}
.agent-jobs .section-head h3{display:flex;align-items:center;gap:6px;margin:0}
.agent-job-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.agent-events{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:4px;font-size:13px;max-height:220px;overflow:auto}
.agent-events small{color:var(--muted,#6b7280);margin-right:4px}
.agent-jobs .row{display:flex;gap:8px;flex-wrap:wrap}
.checkpoint-needs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; }
.checkpoint-needs > em { font-style: normal; color: var(--muted); margin-right: 2px; }
.need-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: 12px; cursor: pointer; }
.need-chip .icon { width: 12px; height: 12px; }
.need-chip small { color: var(--muted); }
.need-chip.missing { border-color: var(--amber-line, #d9b46a); background: var(--amber-soft, rgba(217, 180, 106, .12)); }
.need-chip.ready { border-color: var(--green-line, #8cc5a2); }
.need-chip.missing.quiet { border-color: var(--line); background: var(--surface); }
.need-chip.locked { color: var(--muted); background: transparent; border-style: dashed; }
.checkpoint-lock { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.checkpoint-lock .icon { width: 12px; height: 12px; }
.need-tips ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13px; }
.need-tips p { margin: 2px 0 0; color: var(--muted); }
/* 차별화 제안 카드: 남는 폭을 나눠 채우고, 넘길 카드가 있을 때만 오른쪽 흐림 */
.idea-list > .idea-card { flex: 1 0 300px; min-width: 0; }
.idea-list > .idea-card:last-child { border-right: 0; }
.idea-scroller::after { opacity: 0; transition: opacity .15s; }
.idea-scroller.has-more::after { opacity: .9; }
/* 1단계 보강(ECC 벤치마킹 방식): 조사 브리프, 편향 점검, 걸러낸 후보, 미개척 기준, 대체재 */
.scan-brief { margin: 10px 0; padding: 10px 12px; border: 1px solid var(--line, #d9dee7); border-radius: 10px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.scan-brief-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.scan-brief-head .btn { margin-left: auto; }
.scan-brief-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 6px 14px; margin: 0; }
.scan-brief-grid dt { color: var(--muted, #7b8496); font-size: 10px; }
.scan-brief-grid dd { margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 4px; }
.scan-brief-grid .query-chip { cursor: default; padding: 2px 8px; }
.scan-bias { margin: 10px 0; padding: 10px 12px; border: 1px solid var(--amber, #c98a14); border-radius: 10px; background: rgba(201, 138, 20, .08); font-size: 12px; }
.scan-bias ul, .scan-subs ul { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.scan-screened-list { margin: 6px 0 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.scan-reason { display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line, #d9dee7); color: var(--muted, #7b8496); }
.scan-gaps, .scan-subs { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px dashed var(--line, #d9dee7); border-radius: 10px; font-size: 12px; }
.scan-gap { cursor: default; border-color: var(--green, #2e8b57); }
.scan-gap small { color: var(--green, #2e8b57); font-size: 10px; }
.scan-sub-tag { color: var(--amber, #c98a14); }
/* 대안별 비교표는 열이 10개라 고정 너비(4열 기준 %)를 쓰지 않습니다. 그렇지 않으면 5번째 열부터 너비가 0이 됩니다. */
.v2-matrix-table { table-layout: auto; min-width: 1400px; }
.v2-matrix-table td, .v2-matrix-table th { min-width: 130px; }
.v2-matrix-table th:first-child, .v2-matrix-table td:first-child { min-width: 200px; }
.v2-matrix-table th:nth-child(n) { width: auto; }
.result-goals, .result-steps { margin-top: 22px; }
.result-goals h3, .result-steps h3 { font-size: 15px; margin-bottom: 10px; }
.result-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.result-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; }
.result-steps li small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.agent-install-steps { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
/* 새 후보 찾기: 검색 방향 선택 */
.scan-focus { border: 0; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.scan-focus legend { font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.scan-focus-option { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border: 1px solid var(--line, #d9dee7); border-radius: 999px; font-size: 12px; cursor: pointer; }
.scan-focus-option:has(input:checked) { border-color: var(--primary, #4b4fa8); background: rgba(75, 79, 168, .08); }
/* 벤치마크 목록: 자료 묶음 버튼 */
.scan-groups { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.scan-group { border: 1px solid var(--line, #d9dee7); background: transparent; border-radius: 999px; padding: 4px 12px; font-size: 12px; cursor: pointer; color: inherit; }
.scan-group span { color: var(--muted, #7b8496); margin-left: 2px; }
.scan-group.active { border-color: var(--primary, #4b4fa8); background: rgba(75, 79, 168, .08); font-weight: 600; }
/* 자료 표시를 누르면 뜻을 보여 주는 버튼 */
.label-info { border: 0; background: none; padding: 0; font-family: inherit; color: inherit; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.v2-tier.label-info { display: block; font-style: normal; }
.label-info-list { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.label-info-list div { padding: 8px 10px; border-radius: 8px; border: 1px solid transparent; }
.label-info-list div.active { border-color: var(--primary, #4b4fa8); background: rgba(75, 79, 168, .08); }
.label-info-list dt { font-weight: 600; margin-bottom: 2px; }
.label-info-list dd { margin: 0; font-size: 13px; }
/* 대안별 비교표: 대안 이름·출처 표시를 누르면 근거 상세 */
.v2-entity-name { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--accent, #4b4fa8); text-align: left; cursor: pointer; }
.v2-entity-name:hover, .v2-entity-name:focus-visible { text-decoration: underline; }
button.v2-check { cursor: pointer; font: inherit; }
.build-paused { display: inline-flex; cursor: not-allowed; }
.btn.paused { color: var(--muted); background: var(--surface); border-color: var(--line); pointer-events: none; }
.btn.paused small { margin-left: 6px; padding: 1px 6px; border-radius: 999px; border: 1px solid var(--line); font-size: 11px; }
/* 목록 줄의 자료 종류 표시 */
.benchmark-priority>.source-group-tag { margin-left: 0; font-size: 11px; font-style: normal; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--light-border, #48515f); color: var(--muted, #9aa3b5); }
.benchmark-priority>.source-group-tag.group-company { border-color: var(--accent, #4b4fa8); color: var(--accent, #4b4fa8); }
.benchmark-priority>.source-group-tag.group-trends { border-color: var(--light-ink-green, #5aa57f); color: var(--light-ink-green, #5aa57f); }
/* 조사 브리프 수정: 추천 평가 축 */
.brief-suggest { display: flex; flex-direction: column; gap: 6px; margin-top: -6px; padding: 8px 10px; border-radius: 8px; background: rgba(75, 79, 168, .05); }
.brief-suggest-head { display: flex; align-items: center; gap: 8px; font-size: 12px; white-space: nowrap; }
.brief-suggest-head .btn { margin-left: auto; }
.brief-axis { cursor: pointer; }
/* 차별화 목표 제안: 다른 제안 받는 중 */
.idea-section.ideas-busy .idea-list { opacity: .45; pointer-events: none; transition: opacity .2s; }
.idea-section [data-action="refresh-ideas"]:disabled { cursor: progress; opacity: 1; }
/* 템플릿 화면: 6단계 과정을 3×2 칸으로 */
.wide-explainer > div:first-child { flex: 0 0 300px; }
.process-grid { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-content: start; }
.process-step { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2, transparent); }
.process-step p { margin: 2px 0 0; line-height: 1.5; }
.process-note { grid-column: 1 / -1; margin: 2px 0 0; }
@media (max-width: 900px) { .wide-explainer { flex-direction: column; } .wide-explainer > div:first-child { flex: none; } .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 새 과제·과제 내용 수정: 세부 분야 칩 */
.subfield-options { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.subfield-options legend { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.subfield-note { margin: 0; min-height: 1em; }
/* 세부 분야·과제 유형: 체크 상자 없이 작은 둥근 버튼(고르면 강조) */
.subfield-options .row, .task-type-options .row { gap: 6px; }
.subfield-options .task-type-option, .task-type-options .task-type-option { position: relative; padding: 4px 12px; border-radius: 999px; font-size: 12px; gap: 4px; }
.subfield-options .task-type-option input, .task-type-options .task-type-option input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.subfield-options .task-type-option:has(input:checked)::before, .task-type-options .task-type-option:has(input:checked)::before { content: "✓"; font-weight: 700; color: var(--accent, #6657df); }
.subfield-options .task-type-option:has(input:focus-visible), .task-type-options .task-type-option:has(input:focus-visible) { outline: 2px solid var(--accent, #6657df); outline-offset: 2px; }
.subfield-options legend, .task-type-options legend { margin-bottom: 4px; }
/* 새 과제·과제 내용 수정: 유형 카드 → 안내 → 세부 분야 → 과제 유형 세로 간격 정리 */
#project-form .domain-hint, #content-form .domain-hint { margin: -13px 0 0; line-height: 1.5; }
#project-form .domain-hint:empty, #content-form .domain-hint:empty, #content-form .domain-hint[hidden] { display: none; }
#project-form .subfield-options, #content-form .subfield-options { margin-top: -7px; gap: 4px; }
#project-form .subfield-options + .task-type-options, #content-form .subfield-options + .task-type-options { margin-top: -7px; }
.task-type-options { gap: 4px; }
.subfield-note { margin: 2px 0 0; min-height: 0; line-height: 1.4; }
.subfield-note:empty { display: none; }
/* 창 아래 버튼: 취소는 글자 버튼처럼 가볍게, 주 버튼과 높이·모서리 맞춤 */
.modal-footer .btn { min-height: 40px; border-radius: 8px; }
.modal-footer .btn[data-action="close-modal"] { background: transparent; border-color: transparent; color: var(--muted, #8a93a6); padding-inline: 14px; }
.modal-footer .btn[data-action="close-modal"]:hover, .modal-footer .btn[data-action="close-modal"]:focus-visible { background: rgba(127, 127, 127, .10); color: inherit; }
.modal-footer .btn.primary { padding-inline: 18px; }
/* 새 과제 만들기 전 유형 확인 안내 */
.form-error.domain-confirm { color: var(--amber, #c98a14); border-color: var(--amber, #c98a14); background: rgba(201, 138, 20, .08); }
/* 질문 카드: 답변 상태는 위쪽 질문 번호 옆에 글자로, 아래 줄은 도움 버튼 · 질문 바꾸기 · 더보기 */
.question-position-main { display:inline-flex; align-items:center; gap:10px; font-weight:inherit; }
.question-position .question-badge .badge { padding:0; border:0; background:none; font-size:12px; letter-spacing:0; }
.question-position .question-badge .badge.green::before { content:"✓"; font-weight:700; }
.question-position .question-badge .badge.amber::before { content:"•"; }
.question-actions-sub { gap:2px 18px; }
.question-later { display:contents; }
.question-later[hidden] { display:none; }
/* 처음 따라 하기 튜토리얼(assets/tutorial.js): 어두운 막 4장으로 눌러야 할 요소만 뚫어 보여 줍니다. 창(100)보다 위, 알림(200)보다 아래. */
.tut-root { position:fixed; inset:0; z-index:150; pointer-events:none; }
.tut-root[hidden] { display:none; }
.tut-shade { position:fixed; background:rgba(6,9,15,.66); pointer-events:auto; }
.tut-ring { position:fixed; border:2px solid var(--accent); border-radius:10px; pointer-events:none; box-shadow:0 0 0 4px color-mix(in srgb, var(--accent) 28%, transparent); animation:tut-pulse 1.3s ease-in-out infinite; }
.tut-ring.calm { animation:none; box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.tut-ring.guard { border-color:#e0b354; box-shadow:0 0 0 4px rgba(224,179,84,.25); }
@keyframes tut-pulse { 0%,100% { box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); border-color:var(--accent); } 50% { box-shadow:0 0 0 9px color-mix(in srgb, var(--accent) 8%, transparent); border-color:color-mix(in srgb, var(--accent) 55%, #fff); } }
.tut-hand { position:fixed; width:34px; height:34px; pointer-events:none; animation:tut-tap 1.1s ease-in-out infinite; filter:drop-shadow(0 3px 6px rgba(0,0,0,.45)); }
.tut-hand svg { width:100%; height:100%; fill:#fff; stroke:#1b2130; stroke-width:1.4; stroke-linejoin:round; stroke-linecap:round; }
@keyframes tut-tap { 0%,100% { transform:translate(0,0); } 50% { transform:translate(-5px,-6px); } }
.tut-bar { position:fixed; top:10px; left:50%; transform:translateX(-50%); display:flex; align-items:center; gap:10px; max-width:calc(100vw - 20px); padding:7px 8px 7px 14px; border:1px solid var(--line); border-radius:999px; background:var(--surface); color:var(--ink); box-shadow:0 10px 30px rgba(0,0,0,.35); pointer-events:auto; font-size:13px; white-space:nowrap; }
.tut-bar.bottom { top:auto; bottom:10px; }
.tut-bar-label { font-weight:700; }
.tut-progress { font-variant-numeric:tabular-nums; color:var(--muted, #aab2c0); }
.tut-track { width:90px; height:4px; border-radius:4px; background:var(--line); overflow:hidden; }
.tut-track i { display:block; height:100%; background:var(--accent); transition:width .25s ease; }
.tut-skip { border:0; border-radius:999px; padding:5px 11px; background:transparent; color:inherit; font:inherit; cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
.tut-skip:hover, .tut-skip:focus-visible { background:var(--line); }
.tut-off { opacity:.8; font-size:12px; }
.tutorial-help { font-weight:700; font-size:15px; line-height:1; }
.tutorial-help.tut-help-hint { animation:tut-help-hint 1.2s ease-in-out 3; box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent); }
@keyframes tut-help-hint { 0%,100% { box-shadow:0 0 0 2px color-mix(in srgb, var(--accent) 40%, transparent); } 50% { box-shadow:0 0 0 8px color-mix(in srgb, var(--accent) 10%, transparent); } }
.tut-explore { display:block; margin-top:8px; padding-top:8px; border-top:1px solid var(--line); font-size:13px; }
.tut-bubble { position:fixed; width:min(340px, calc(100vw - 20px)); padding:15px 16px 14px; border:1px solid var(--accent); border-radius:12px; background:var(--surface); color:var(--ink); box-shadow:0 18px 44px rgba(0,0,0,.42); pointer-events:auto; transition:left .18s ease, top .18s ease; }
.tut-bubble.tut-quiet { visibility:hidden; }
.tut-kicker { font-size:11px; font-weight:700; letter-spacing:.06em; color:var(--accent); margin-bottom:4px; }
.tut-title { margin:0 0 6px; font-size:16px; line-height:1.35; }
.tut-text { margin:0; font-size:14px; line-height:1.6; }
.tut-note { display:block; margin-top:8px; color:#e0b354; font-size:13px; }
.tut-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:center; gap:8px; margin-top:12px; }
.tut-actions:empty { display:none; }
.tut-spinner { width:18px; height:18px; margin-right:auto; border:2px solid var(--line); border-top-color:var(--accent); border-radius:50%; animation:tut-spin .9s linear infinite; }
@keyframes tut-spin { to { transform:rotate(360deg); } }
.tut-arrow { position:absolute; width:14px; height:14px; background:var(--surface); border:1px solid var(--accent); transform:rotate(45deg); display:none; }
.tut-bubble[data-side="bottom"] .tut-arrow { display:block; top:-8px; border-right:0; border-bottom:0; }
.tut-bubble[data-side="top"] .tut-arrow { display:block; bottom:-8px; top:auto !important; border-left:0; border-top:0; }
.tut-bubble[data-side="right"] .tut-arrow { display:block; left:-8px !important; border-right:0; border-top:0; }
.tut-bubble[data-side="left"] .tut-arrow { display:block; right:-8px; left:auto !important; border-left:0; border-bottom:0; }
@media (max-width: 600px) {
  .tut-bar { gap:7px; padding:6px 6px 6px 11px; font-size:12px; }
  .tut-track { width:48px; }
  .tut-bubble { padding:13px 13px 12px; }
  .tut-text { font-size:13.5px; }
}

/* H/W 5·6단계 시범 운영 표시 */
.pilot-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--amber-line, #d9b46a); color: var(--amber, #c98a14); background: var(--amber-soft, rgba(217, 180, 106, .12)); font-size: 10px; font-weight: 600; vertical-align: middle; letter-spacing: 0; white-space: nowrap; }
.stage-title h2 .pilot-tag { font-size: 12px; margin-left: 10px; }
@media (prefers-reduced-motion: reduce) { .tut-ring, .tut-hand, .tut-spinner, .tutorial-help.tut-help-hint { animation:none; } .tut-bubble, .tut-track i { transition:none; } }
