:root {
  --bg: #080b10;
  --panel: #0d1118;
  --panel-2: #111720;
  --panel-3: #151c27;
  --line: #222b39;
  --line-bright: #334156;
  --text: #ecf2fa;
  --muted: #8e9caf;
  --dim: #5c6878;
  --accent: #69e0c0;
  --accent-2: #67a7ff;
  --warn: #ffb45d;
  --danger: #ff6f83;
  --topbar: 72px;
  --left: 294px;
  --detail: 520px;
  font-family: Inter, "Noto Sans KR", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: var(--bg); color: var(--text); }
button, input { font: inherit; }
button { color: inherit; }
a { color: #7eb7ff; text-decoration: none; }
a:hover { color: #a8d0ff; text-decoration: underline; }
kbd { font: 500 10px/1 "IBM Plex Mono", monospace; color: #b6c2d2; background: #202938; border: 1px solid #344154; border-radius: 4px; padding: 3px 5px; }

.boot-screen { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; gap: 20px; background: radial-gradient(circle at 50% 40%, #121a26, var(--bg) 58%); z-index: 30; }
.boot-screen strong { display: block; font-size: 16px; }
.boot-screen p { margin: 5px 0 0; color: var(--muted); font: 12px "IBM Plex Mono", monospace; }
.boot-mark, .brand-glyph { display: flex; gap: 3px; align-items: flex-end; }
.boot-mark span, .brand-glyph span { display: block; width: 5px; border-radius: 5px; background: var(--accent); animation: pulse 1.1s infinite alternate; }
.boot-mark span { height: 34px; }
.boot-mark span:nth-child(2), .brand-glyph span:nth-child(2) { animation-delay: .25s; height: 23px; }
.boot-mark span:nth-child(3), .brand-glyph span:nth-child(3) { animation-delay: .5s; height: 14px; }
@keyframes pulse { from { opacity: .35; transform: scaleY(.6); } to { opacity: 1; transform: scaleY(1); } }

.app-shell { width: 100%; height: 100%; grid-template-columns: var(--left) 1fr; grid-template-rows: var(--topbar) 1fr; }
.app-shell:not([hidden]) { display: grid; }
.topbar { grid-column: 1 / -1; grid-row: 1; display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); background: rgba(9, 13, 19, .96); padding: 0 18px 0 20px; z-index: 10; }
.brand { min-width: 330px; display: flex; align-items: center; gap: 12px; }
.brand-glyph { width: 23px; }
.brand-glyph span { width: 4px; height: 29px; animation: none; }
.eyebrow { color: var(--accent); font: 600 9px/1.2 "IBM Plex Mono", monospace; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 4px 0 0; font-size: 17px; line-height: 1; letter-spacing: -.02em; }
h1 em { margin-left: 7px; color: var(--dim); font: 400 10px "IBM Plex Mono", monospace; }
.top-stats { flex: 1; display: flex; justify-content: center; gap: 5px; min-width: 0; }
.stat-chip { display: flex; align-items: baseline; gap: 6px; padding: 7px 10px; background: #101620; border: 1px solid #1d2734; border-radius: 6px; white-space: nowrap; }
.stat-chip b { font: 600 13px "IBM Plex Mono", monospace; color: #d8e6f7; }
.stat-chip span { color: var(--muted); font-size: 10px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-button, .primary-button, .export-button, .text-button, .canvas-toolbar button { border: 1px solid var(--line-bright); background: #121924; cursor: pointer; }
.icon-button { width: 32px; height: 32px; border-radius: 7px; color: var(--muted); font-size: 16px; }
.icon-button:hover { color: white; border-color: #52627a; }
.primary-button { height: 34px; padding: 0 13px; border-radius: 7px; background: #17322e; border-color: #28554a; color: #c8fff0; font-size: 11px; font-weight: 600; }
.primary-button:hover { background: #1c4039; }
.export-button { height: 34px; padding: 0 12px; border-radius: 7px; color: #c5d6ea; font-size: 11px; font-weight: 600; white-space: nowrap; }
.export-button:hover { border-color: #49617e; background: #172131; color: white; }
.export-button:disabled { cursor: wait; opacity: .64; }
.button-icon { margin-right: 5px; font-size: 14px; }

.left-panel { grid-column: 1; grid-row: 2; background: var(--panel); border-right: 1px solid var(--line); overflow-y: auto; z-index: 5; scrollbar-width: thin; scrollbar-color: #263244 transparent; }
.panel-section { padding: 15px 16px; border-bottom: 1px solid #19212c; }
.compact-section { padding-bottom: 12px; }
.field-label, .section-heading { display: flex; align-items: center; justify-content: space-between; color: #a8b5c5; font-size: 10px; font-weight: 600; letter-spacing: .03em; }
.search-box { margin-top: 8px; height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 8px 0 11px; background: #080c12; border: 1px solid #263142; border-radius: 7px; transition: border .15s, box-shadow .15s; }
.search-box:focus-within { border-color: #4f876f; box-shadow: 0 0 0 2px rgba(93, 225, 190, .08); }
.search-box > span { color: var(--dim); font-size: 17px; }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 11px; }
.search-box input::placeholder { color: #4f5b6b; }
.search-box button { border: 0; background: transparent; color: #556173; cursor: pointer; font-size: 18px; }
.search-summary { margin-top: 7px; color: var(--dim); font: 10px "IBM Plex Mono", monospace; }
.text-button { border: 0; background: transparent; padding: 0; color: #648fb9; font-size: 10px; }
.text-button:disabled { color: #46515f; cursor: default; }
.text-button:not(:disabled):hover { color: #9fc9ed; }
.segmented-control { margin-top: 9px; display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 3px; gap: 3px; border-radius: 7px; background: #090d13; border: 1px solid #202938; }
.segment { height: 29px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; font-size: 10px; }
.segment.active { background: #202a38; color: white; box-shadow: inset 0 0 0 1px #303d50; }
.phase-filters { display: grid; gap: 4px; margin-top: 9px; }
.phase-filter { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 8px; width: 100%; min-height: 28px; padding: 4px 7px; border: 1px solid transparent; border-radius: 5px; background: transparent; text-align: left; color: #8593a6; cursor: pointer; }
.phase-filter:hover { background: #131a24; }
.phase-filter.active { color: #d8e3f0; background: #131a24; border-color: #212c3b; }
.phase-dot { width: 7px; height: 7px; border-radius: 2px; box-shadow: 0 0 10px currentColor; }
.phase-filter b { font-size: 10px; font-weight: 500; }
.phase-filter em { color: #566274; font: normal 9px "IBM Plex Mono", monospace; }
.filter-row { display: flex; flex-wrap: wrap; gap: 4px; margin: 9px 0 10px; }
.filter-pill { padding: 5px 7px; border-radius: 5px; border: 1px solid #242f3e; background: transparent; color: #626f80; cursor: pointer; font: 9px "IBM Plex Mono", monospace; }
.filter-pill.active { color: #bdc9d8; background: #18212c; border-color: #344156; }
.toggle-row { display: flex; align-items: center; gap: 8px; min-height: 25px; color: #8795a7; font-size: 10px; cursor: pointer; }
.toggle-row input { display: none; }
.toggle-ui { position: relative; width: 25px; height: 14px; border-radius: 10px; background: #242d3a; border: 1px solid #344052; transition: .15s; }
.toggle-ui::after { content: ""; position: absolute; width: 8px; height: 8px; left: 2px; top: 2px; border-radius: 50%; background: #718095; transition: .15s; }
.toggle-row input:checked + .toggle-ui { background: #245f50; border-color: #347e6a; }
.toggle-row input:checked + .toggle-ui::after { left: 13px; background: #b5ffe9; }
.module-section { padding-bottom: 8px; }
.module-list { max-height: 278px; margin: 8px -5px 0; overflow-y: auto; scrollbar-width: thin; }
.module-item { display: flex; align-items: center; gap: 7px; width: 100%; padding: 5px; border: 0; border-radius: 4px; background: transparent; color: #758398; text-align: left; cursor: pointer; }
.module-item:hover { background: #141c27; color: #b9c7d8; }
.module-item code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 9px "IBM Plex Mono", monospace; }
.module-item b { min-width: 16px; color: #4f5e72; font: 9px "IBM Plex Mono", monospace; text-align: right; }
.active-module { margin-top: 8px; padding: 7px; border: 1px solid #315748; background: #11231e; color: #b8eedf; border-radius: 5px; overflow-wrap: anywhere; font: 9px/1.4 "IBM Plex Mono", monospace; }
.panel-footer { display: flex; flex-direction: column; gap: 5px; padding: 13px 16px 18px; color: #536073; font: 9px/1.4 "IBM Plex Mono", monospace; }

.canvas-stage { grid-column: 2; grid-row: 2; position: relative; min-width: 0; overflow: hidden; background-color: var(--bg); background-image: radial-gradient(circle, rgba(100, 126, 158, .15) 1px, transparent 1px); background-size: 24px 24px; }
#cy { position: absolute; inset: 0; outline: none; }
.canvas-toolbar { position: absolute; left: 17px; top: 17px; display: grid; overflow: hidden; border: 1px solid #2a3545; border-radius: 7px; box-shadow: 0 8px 25px rgba(0,0,0,.25); }
.canvas-toolbar button { width: 31px; height: 30px; border: 0; border-bottom: 1px solid #2a3545; border-radius: 0; color: #93a2b5; background: #111721; cursor: pointer; }
.canvas-toolbar button:last-child { border-bottom: 0; }
.canvas-toolbar button:hover { color: white; background: #1b2532; }
.canvas-status { position: absolute; top: 18px; left: 62px; padding: 6px 9px; border: 1px solid #1f2937; background: rgba(10, 14, 20, .86); color: #637186; border-radius: 5px; font: 9px "IBM Plex Mono", monospace; backdrop-filter: blur(8px); }
.edge-legend { position: absolute; left: 18px; right: 18px; bottom: 15px; display: flex; align-items: center; gap: 15px; pointer-events: none; color: #69778a; font-size: 9px; }
.edge-legend > span { display: flex; align-items: center; gap: 6px; }
.edge-sample { display: inline-block; width: 22px; height: 0; border-top: 1px solid; }
.edge-sample.dependency { border-color: #69778a; }
.edge-sample.control { border-color: #5bb7e8; border-top-style: dashed; }
.edge-sample.data { border-color: #55d7b4; }
.edge-sample.record { border-color: #ff9f5d; border-top-style: dotted; }
.decision-legend { color: #e7b45e; }
.parallel-legend { color: #78b4ff; }
.gesture-hint { margin-left: auto; }
.empty-state { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; color: #7b899b; }
.empty-state strong { display: block; margin-bottom: 12px; font-size: 13px; }
.empty-state button { border: 1px solid #344156; border-radius: 5px; background: #151d28; color: #b8c6d7; padding: 7px 10px; cursor: pointer; font-size: 10px; }

.detail-panel { position: fixed; z-index: 20; top: var(--topbar); right: 0; bottom: 0; width: min(var(--detail), calc(100vw - var(--left) - 40px)); display: flex; flex-direction: column; background: rgba(12, 17, 24, .985); border-left: 1px solid #2a3545; box-shadow: -18px 0 50px rgba(0,0,0,.38); transform: translateX(102%); transition: transform .22s ease; }
.detail-panel.open { transform: translateX(0); }
.detail-head { position: relative; padding: 18px 22px 14px; background: linear-gradient(145deg, #111824, #0c1118); border-bottom: 1px solid var(--line); }
.detail-head > .icon-button { position: absolute; right: 16px; top: 15px; }
.detail-breadcrumb { margin-right: 38px; color: #6f7e91; font: 9px "IBM Plex Mono", monospace; }
.detail-title { margin: 12px 40px 0 0; font-size: 20px; letter-spacing: -.035em; }
.detail-pipeline-id { margin-top: 6px; color: #93a7bf; font: 11px "IBM Plex Mono", monospace; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 6px; border: 1px solid #2a3546; border-radius: 4px; color: #8797aa; background: #111925; font: 9px "IBM Plex Mono", monospace; }
.badge i { width: 6px; height: 6px; border-radius: 2px; background: currentColor; }
.badge.active { color: #6ed7b9; border-color: #285848; background: #10251f; }
.badge.deprecated, .badge.removed { color: #ff9d78; border-color: #634132; background: #251915; }
.detail-tabs { display: flex; padding: 0 15px; border-bottom: 1px solid var(--line); background: #0c1118; }
.detail-tabs button { position: relative; flex: 1; height: 42px; padding: 0 5px; border: 0; background: transparent; color: #718095; cursor: pointer; font-size: 10px; }
.detail-tabs button::after { content: ""; position: absolute; height: 2px; left: 8px; right: 8px; bottom: -1px; background: transparent; }
.detail-tabs button.active { color: #e4edf7; }
.detail-tabs button.active::after { background: var(--accent); }
.detail-tabs span { margin-left: 2px; color: #607087; font: 9px "IBM Plex Mono", monospace; }
.detail-content { flex: 1; overflow-y: auto; padding: 18px 22px 42px; scrollbar-width: thin; scrollbar-color: #263244 transparent; }
.detail-section { margin-bottom: 24px; }
.detail-section h3 { margin: 0 0 10px; color: #91a0b3; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.detail-section p { margin: 0; color: #c0cad7; font-size: 12px; line-height: 1.75; white-space: pre-wrap; }
.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.kv { min-width: 0; padding: 9px; background: #101720; border: 1px solid #202a37; border-radius: 6px; }
.kv span { display: block; color: #637186; font-size: 9px; margin-bottom: 5px; }
.kv b, .kv code { display: block; overflow-wrap: anywhere; color: #c9d5e3; font: 500 10px/1.45 "IBM Plex Mono", monospace; }
.connection-list { display: grid; gap: 5px; }
.connection-item { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 7px; width: 100%; padding: 7px 8px; border: 1px solid #222d3c; border-radius: 5px; background: #101720; text-align: left; cursor: pointer; }
.connection-item:hover { border-color: #3f5067; background: #141e2a; }
.connection-item i { width: 8px; height: 8px; border-radius: 2px; justify-self: center; }
.connection-item b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.connection-item code { color: #66768c; font: 9px "IBM Plex Mono", monospace; }
.method-card, .prompt-pack, .runtime-card { margin-bottom: 8px; border: 1px solid #222d3c; border-radius: 6px; background: #101720; overflow: hidden; }
.method-head, .pack-head { padding: 9px 10px; border-bottom: 1px solid #202a37; }
.method-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.method-head code, .pack-head code { color: #81c3ff; font: 10px "IBM Plex Mono", monospace; }
.method-head code { min-width: 0; overflow-wrap: anywhere; }
.method-head span { flex: none; color: var(--accent); font: 8px "IBM Plex Mono", monospace; letter-spacing: .08em; }
.method-meta { display: flex; flex-wrap: wrap; gap: 10px; padding: 7px 10px; border-bottom: 1px solid #1c2531; color: #66778b; font-size: 9px; }
.method-meta code { color: #9fb2c8; font: 9px "IBM Plex Mono", monospace; }
.method-card p, .pack-note { padding: 9px 10px; color: #8493a5; font-size: 10px; line-height: 1.55; }
.model-grid, .io-list { display: grid; gap: 7px; }
.model-card, .io-card, .example-card { border: 1px solid #253142; border-radius: 6px; background: #101720; overflow: hidden; }
.model-card-head, .io-card-head, .example-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border-bottom: 1px solid #202a37; }
.model-card-head b { color: #b9c9db; font-size: 10px; }
.model-card-head span, .example-head span { color: #5e7086; font: 8px "IBM Plex Mono", monospace; text-transform: uppercase; }
.model-route { display: grid; grid-template-columns: minmax(0, auto) 14px minmax(0, 1fr); align-items: center; gap: 6px; padding: 11px 10px 6px; }
.model-route code { color: #79b8ff; font: 10px "IBM Plex Mono", monospace; overflow-wrap: anywhere; }
.model-route i { color: #53657a; font-style: normal; text-align: center; }
.model-route strong { color: #8be4c8; font: 500 10px/1.4 "IBM Plex Mono", monospace; overflow-wrap: anywhere; }
.model-card > p { margin: 0; padding: 0 10px 10px; color: #637388; font-size: 9px; line-height: 1.5; }
.model-card > p code { color: #8da0b7; font: 9px "IBM Plex Mono", monospace; }
.evidence-note, .example-kind { margin-top: 8px; padding: 8px 9px; border-left: 2px solid #32465d; background: #0d141d; color: #6f8095; font: 9px/1.55 "IBM Plex Mono", monospace; }
.io-card-head code { color: #9fc7f1; font: 10px "IBM Plex Mono", monospace; overflow-wrap: anywhere; }
.io-kind { flex: none; padding: 3px 5px; border: 1px solid #334158; border-radius: 4px; color: #7f91a6; font: 8px "IBM Plex Mono", monospace; }
.io-kind.input { border-color: #385279; color: #82b8ef; }
.io-kind.output { border-color: #2d6657; color: #75d9bc; }
.io-type { padding: 8px 10px 2px; color: #b9c7d7; font: 10px "IBM Plex Mono", monospace; overflow-wrap: anywhere; }
.io-card p { margin: 0; padding: 4px 10px; color: #78889b; font-size: 9px; line-height: 1.5; }
.io-card small { display: block; padding: 2px 10px 9px; color: #536478; font: 8px "IBM Plex Mono", monospace; overflow-wrap: anywhere; }
.io-card > a { display: inline-block; margin: 0 10px 9px; font: 8px "IBM Plex Mono", monospace; }
.logic-timeline { position: relative; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: flow; }
.logic-timeline::before { content: ""; position: absolute; left: 15px; top: 20px; bottom: 20px; width: 1px; background: #2b3a4d; }
.logic-timeline li { position: relative; display: grid; grid-template-columns: 31px minmax(0,1fr) auto; gap: 9px; align-items: start; padding: 8px 0; }
.logic-index { position: relative; z-index: 1; display: grid; place-items: center; width: 31px; height: 25px; border: 1px solid #365066; border-radius: 5px; background: #111b26; color: #73cdb2; font: 8px "IBM Plex Mono", monospace; }
.logic-timeline b { color: #c2cfdd; font-size: 10px; }
.logic-timeline p { margin: 4px 0 0; color: #708095; font-size: 9px; line-height: 1.5; overflow-wrap: anywhere; }
.logic-timeline p code { color: #8da0b5; font: 9px "IBM Plex Mono", monospace; }
.logic-timeline a { padding-top: 3px; color: #5f8fb9; font: 8px "IBM Plex Mono", monospace; white-space: nowrap; }
.example-grid { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 9px; }
.example-head b { color: #b8c6d7; font-size: 10px; }
.example-code { max-height: 360px; margin: 0; border: 0; border-radius: 0; color: #9fb4ca; }
.symbol-details { border: 1px solid #253142; border-radius: 6px; background: #101720; }
.symbol-details summary { padding: 9px 10px; color: #8292a6; cursor: pointer; font-size: 10px; }
.symbol-details .call-cloud { padding: 0 10px 10px; }
.plain-guide { display: grid; gap: 11px; }
.plain-lead { margin: 0; padding: 13px 14px; border: 1px solid #2c4e48; border-radius: 7px; background: linear-gradient(145deg, #11241f, #101a1c); color: #d2eee6 !important; font-size: 13px !important; line-height: 1.75 !important; }
.plain-why { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 10px; align-items: start; padding: 10px 11px; border-left: 3px solid #d4a24f; background: #211b12; }
.plain-why b, .plain-example b { color: #e5bd73; font-size: 10px; }
.plain-why span { color: #c8bda8; font-size: 11px; line-height: 1.6; }
.plain-flow { display: grid; grid-template-columns: 1fr 14px 1fr 14px 1fr; gap: 5px; align-items: stretch; }
.plain-flow > div { min-width: 0; padding: 10px; border: 1px solid #283547; border-radius: 6px; background: #101720; }
.plain-flow > i { align-self: center; color: #4f687d; font-style: normal; text-align: center; }
.plain-flow small { display: block; margin-bottom: 7px; color: #69c8aa; font: 8px "IBM Plex Mono", monospace; }
.plain-flow p { color: #aebbc9; font-size: 10px; line-height: 1.6; }
.plain-how { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.plain-how li { display: grid; grid-template-columns: 23px minmax(0,1fr); gap: 8px; align-items: center; padding: 7px 9px; background: #0f151e; border: 1px solid #202b39; border-radius: 5px; }
.plain-how li b { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: #19332c; color: #8de1c8; font: 9px "IBM Plex Mono", monospace; }
.plain-how li span { color: #9baabc; font-size: 10px; line-height: 1.5; }
.plain-example { padding: 11px 12px; border: 1px solid #30445b; border-radius: 6px; background: #101925; }
.plain-example p { margin-top: 6px; color: #bac7d5; font-size: 11px; line-height: 1.7; }
.plain-example small { display: block; margin-top: 7px; color: #65758a; font: 8px "IBM Plex Mono", monospace; }
.term-details { border: 1px solid #273547; border-radius: 6px; background: #0e151e; }
.term-details summary { padding: 9px 10px; color: #8294a9; cursor: pointer; font-size: 9px; }
.term-details > div { border-top: 1px solid #202c3a; }
.term-row { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 9px; padding: 8px 10px; border-bottom: 1px solid #1c2734; }
.term-row:last-child { border-bottom: 0; }
.term-row code { color: #84bcf1; font: 9px "IBM Plex Mono", monospace; overflow-wrap: anywhere; }
.term-row span { color: #8292a5; font-size: 9px; line-height: 1.5; }
.call-cloud { display: flex; flex-wrap: wrap; gap: 5px; }
.call-cloud code, .selector-chip { padding: 4px 6px; border-radius: 4px; background: #151e2a; color: #8ea0b6; border: 1px solid #253244; font: 9px "IBM Plex Mono", monospace; }
.source-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border: 1px solid #263449; border-radius: 6px; background: #101925; }
.source-link code { min-width: 0; overflow-wrap: anywhere; color: #84baff; font: 10px/1.5 "IBM Plex Mono", monospace; }
.source-link span { flex: none; color: #56677e; font-size: 11px; }
.code-block { position: relative; max-height: 460px; overflow: auto; margin: 9px 0 0; padding: 13px; background: #070b10; border: 1px solid #202a37; border-radius: 6px; color: #aab9ca; font: 9px/1.6 "IBM Plex Mono", monospace; white-space: pre; tab-size: 4; scrollbar-width: thin; }
.copy-button { position: absolute; right: 7px; top: 7px; border: 1px solid #344156; border-radius: 4px; background: #141c27; color: #8d9caf; padding: 4px 7px; cursor: pointer; font-size: 9px; }
.prompt-pack { margin-bottom: 12px; }
.pack-head { display: flex; align-items: center; justify-content: space-between; }
.pack-head b { font-size: 11px; }
.pack-version { color: var(--accent); font: 9px "IBM Plex Mono", monospace; }
.selector-list { display: flex; flex-wrap: wrap; gap: 5px; padding: 9px 10px; border-bottom: 1px solid #202a37; }
.prompt-file { border-top: 1px solid #1e2835; }
.prompt-file summary { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 8px; padding: 9px 10px; color: #9aa9bc; cursor: pointer; list-style: none; }
.prompt-file summary::-webkit-details-marker { display: none; }
.prompt-file summary code { overflow: hidden; text-overflow: ellipsis; color: #9ab8d7; font: 9px "IBM Plex Mono", monospace; }
.prompt-file summary span { color: #59687b; font: 8px "IBM Plex Mono", monospace; }
.prompt-file-body { padding: 0 10px 10px; }
.runtime-card { padding: 12px; }
.runtime-status { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.runtime-status b { color: #7ce2c3; font: 11px "IBM Plex Mono", monospace; }
.runtime-status code { color: #708298; font: 9px "IBM Plex Mono", monospace; }
.notice { padding: 11px; border: 1px solid #2d3a4d; border-radius: 6px; background: #111925; color: #8998aa; font-size: 10px; line-height: 1.6; }
.notice.warn { border-color: #614d2e; background: #241d12; color: #d8b878; }

.help-dialog { width: min(720px, calc(100vw - 40px)); border: 1px solid #35445a; border-radius: 10px; padding: 26px; background: #101721; color: var(--text); box-shadow: 0 24px 90px rgba(0,0,0,.65); }
.help-dialog::backdrop { background: rgba(3, 5, 8, .8); backdrop-filter: blur(5px); }
.help-dialog > .icon-button { position: absolute; right: 16px; top: 16px; }
.help-dialog h2 { margin: 8px 0 21px; font-size: 25px; }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.help-grid article { padding: 15px; border: 1px solid #273346; border-radius: 7px; background: #0c121a; }
.help-grid b { color: var(--accent); font: 10px "IBM Plex Mono", monospace; }
.help-grid h3 { margin: 6px 0; font-size: 12px; }
.help-grid p, .help-note { margin: 0; color: #8998aa; font-size: 10px; line-height: 1.6; }
.help-note { margin-top: 16px; padding-top: 15px; border-top: 1px solid #263142; }

@media (max-width: 1080px) {
  :root { --left: 250px; --detail: 470px; }
  .brand { min-width: 260px; }
  .top-stats .stat-chip:nth-child(n+4) { display: none; }
  h1 em { display: none; }
}

@media (max-width: 760px) {
  :root { --left: 0px; --topbar: 62px; }
  .app-shell { grid-template-columns: 1fr; }
  .left-panel { display: none; }
  .canvas-stage { grid-column: 1; }
  .brand { min-width: 0; }
  .top-stats { display: none; }
  .export-button { width: 34px; padding: 0; }
  .export-button .button-icon { margin: 0; }
  .export-button .button-label { display: none; }
  .detail-panel { width: 100vw; }
  .help-grid { grid-template-columns: 1fr; }
  .plain-flow { grid-template-columns: 1fr; }
  .plain-flow > i { transform: rotate(90deg); }
}
