/* 工作台视觉层：只改变呈现，沿用原有操作与状态。 */
:root {
  --bg: #0c0d14;
  --panel: #17151f;
  --soft: #211c2c;
  --text: #efedf7;
  --muted: #b0a8bd;
  --dim: #9690a5;
  --line: #ffffff10;
  --purple: #c5b1ee;
  --accent: #c9b2ed;
  --gold: #c9b2ed;
  --green: #a7c6b8;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

body { background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.8; }
button, input, textarea { font: inherit; }
button { transition: background .18s ease, border-color .18s ease, color .18s ease; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline-color: var(--accent); outline-offset: 4px; }
input, textarea { background: #14111c; border-color: #c7b0e82d; border-radius: 12px; }
input::placeholder, textarea::placeholder { color: #9c91a9; }
input:focus, textarea:focus { border-color: #c7a5f280; box-shadow: 0 0 0 3px #c0a4ec09; }
.app-shell { display: block; max-width: none; margin: 0; padding: 0; min-height: 100dvh; }
.workbench { min-width: 0; min-height: 100dvh; margin-left: 254px; display: flex; flex-direction: column; background: radial-gradient(ellipse at 53% 25%, #54407013, transparent 55%), var(--bg); }
.workspace { display: block; width: 100%; max-width: 1040px; padding: 34px 40px 36px; margin: 0 auto; flex: 1; }
.main { width: 100%; max-width: 820px; margin: 0 auto; min-width: 0; }
.view-home { max-width: 960px; }
.workspace:has(.view-home) { padding-top: 0; padding-bottom: 0; }

/* 侧栏与窄屏导航 */
.workspace-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; flex-direction: column; width: 254px; padding: 30px 18px 20px; margin: 0; border: 0; border-right: 1px solid #ffffff0d; background: #101017; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #b6a2d22a transparent; }
.workspace-sidebar > * { flex-shrink: 0; }
.brand { gap: 11px; padding: 0 6px; min-height: 48px; width: 100%; }
.brand img { width: 44px; height: 44px; border-radius: 14px; flex: none; box-shadow: 0 0 26px #a583f50a; }
.brand strong { font-size: 21px; line-height: 1.5; letter-spacing: -.5px; font-weight: 600; white-space: nowrap; }
.brand small { display: block; margin-top: 1px; font-size: 12px; letter-spacing: .08em; line-height: 1.7; color: #9791aa; }
.sidebar-new { display: flex; align-items: center; gap: 10px; min-height: 49px; margin: 32px 5px 28px; padding: 11px 13px; border: 1px solid #d5c8ff30; border-radius: 11px; background: #d2c0f2; color: #2b1c44; font-size: 16px; font-weight: 550; }
.sidebar-new:hover { background: #e0d1fb; border-color: #e8deff; }
.sidebar-new svg { width: 19px; height: 19px; flex: none; }
.sidebar-new .new-mark { margin-left: auto; font-size: 20px; color: #72578f; }
.sidebar-label { display: block; padding: 0 15px 10px; font-size: 13px; color: #8e859e; }
.sidebar-nav { display: flex; flex-direction: column; gap: 6px; }
.sidebar-link { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 11px 15px; border: 1px solid transparent; border-radius: 10px; color: #b0a9bf; background: transparent; text-align: left; font-size: 16px; }
.sidebar-link svg { flex: none; width: 21px; height: 21px; color: #9d91b0; }
.classroom-return { text-decoration: none; }
.sidebar-link:hover { color: #e3d8f2; background: #ffffff04; border-color: #ffffff08; }
.sidebar-link.is-current { color: #dac8f7; background: linear-gradient(100deg, #a17be218, #a17be209); border-color: #b391ed20; }
.sidebar-link.is-current svg { color: #c7a9f1; }
.sidebar-link i { margin-left: auto; height: 5px; width: 5px; border-radius: 50%; background: transparent; }
.sidebar-link.is-current i { background: #c7a8ed; box-shadow: 0 0 8px #c7a8fd40; }
.sidebar-privacy { margin-top: 16px; }
.sidebar-principle { margin: auto 14px 26px; padding-top: 36px; }
.sidebar-principle > span { display: block; margin-bottom: 13px; color: #7e768e; font-size: 12px; }
.sidebar-principle p { margin: 8px 0; color: #9d94ab; font-size: 13px; }
.sidebar-principle b { margin-right: 12px; color: #b6a0cf; font-weight: 500; }
.sidebar-bottom { display: flex; align-items: center; gap: 10px; margin: 0 6px; padding-top: 19px; border-top: 1px solid #ffffff0b; }
.workspace-mark { display: grid; place-items: center; width: 37px; height: 37px; flex: none; color: #cbb2e7; background: #bba0ec0d; border: 1px solid #cdb4fa20; border-radius: 50%; }
.workspace-mark svg { width: 21px; height: 21px; }
.sidebar-bottom strong { display: block; color: #c9c0d6; font-size: 13px; font-weight: 500; }
.sidebar-bottom small { display: block; font-size: 12px; color: #90859f; }
.mobile-menu { display: none; }
.workbench-topbar { position: sticky; top: 0; z-index: 20; width: 100%; height: 82px; min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 40px; background: #0c0d14ec; backdrop-filter: blur(14px); border-bottom: 1px solid #ffffff0b; }
.workspace-breadcrumb { display: flex; align-items: center; gap: 14px; color: #9e94ae; font-size: 14px; }
.workspace-breadcrumb > span:nth-child(2) { color: #6b617a; }
.workspace-breadcrumb strong { font-size: 15px; color: #d6cce2; font-weight: 500; }
.connection-status { display: flex; align-items: center; gap: 8px; color: #aba0bd; font-size: 12px; white-space: nowrap; }
.connection-status i { width: 5px; height: 5px; border-radius: 50%; background: #bd9ee8; }

/* 聚焦提问的首页 */
.home-stage { min-height: calc(100dvh - 152px); display: flex; flex-direction: column; }
.welcome { flex: 1; min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 36px 0 44px; text-align: center; }
.welcome-signature { padding: 8px; border: 1px solid #c9b5ff1a; border-radius: 24px; background: linear-gradient(140deg, #c8b0ff0b, #987add02); box-shadow: 0 0 56px #a779ed09; }
.welcome-signature img { display: block; width: 56px; height: 56px; border-radius: 16px; }
.welcome .eyebrow { margin: 21px 0 13px; font-size: 12px; color: #a79aba; letter-spacing: .19em; }
.home-title { margin: 0 0 17px; font-size: clamp(32px, 3.3vw, 44px); font-weight: 500; letter-spacing: -1.3px; line-height: 1.5; }
.home-title span { color: #c4b0ec; background: linear-gradient(100deg, #e2d4fb, #b59bd7 85%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.lead { font-size: 16px; line-height: 1.85; color: #aaa0ba; margin-bottom: 26px; }
.welcome .lead { max-width: 650px; margin: 0; font-size: 17px; color: #a89db7; }
.home-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 0 15px; }
.entry-card { min-height: 98px; display: flex; align-items: center; gap: 16px; text-align: left; padding: 19px 20px; border: 1px solid #b5a2d529; border-radius: 15px; background: linear-gradient(115deg, #39304460, #24212f60); box-shadow: inset 0 1px 0 #ffffff03; color: #eee6fa; }
.entry-card:nth-child(2) { border-color: #a8a2d025; background: linear-gradient(115deg, #2a293d70, #20202d60); }
.entry-card:hover { border-color: #c6ace766; background: linear-gradient(115deg, #4a36585c, #30263f80); }
.entry-icon { display: grid; place-items: center; width: 44px; height: 46px; flex: none; border: 1px solid #cbb0f11b; border-radius: 12px; color: #d0b5f1; background: #af85e40e; }
.entry-icon svg { width: 24px; height: 24px; }
.entry-card > span:nth-child(2) { flex: 1; min-width: 0; }
.entry-card strong { display: block; font-size: 20px; line-height: 1.5; font-weight: 500; }
.entry-title-short { display: none; }
.entry-card small { display: block; margin-top: 4px; color: #afa3bf; font-size: 14px; line-height: 1.65; }
.entry-arrow { flex: none; color: #a38bb8; font-size: 21px; }
.prompt-section { margin-bottom: 16px; }
.tabs { justify-content: center; gap: 6px; margin: 0 0 8px; }
.tab { min-height: 34px; padding: 3px 15px; color: #9587a5; font-size: 13px; border: 1px solid transparent; border-radius: 7px; background: none; }
.tab[aria-selected="true"] { color: #d0bcea; border-color: #b296d624; background: #ad86dd0b; }
.example-list { display: flex; gap: 9px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #cbb1ea25 transparent; }
.example { display: flex; align-items: center; justify-content: space-between; flex: 1; min-width: 0; min-height: 42px; padding: 7px 11px; border: 1px solid #ffffff0c; border-radius: 8px; background: #ffffff02; font-size: 14px; line-height: 1.6; color: #b7a9c6; gap: 8px; }
.example > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.example > span:last-child { color: #9983ad; }
.example:hover { color: #d9c5ef; background: #c2a3ee08; border-color: #c2a3ee3b; }
.input-wrap { padding: 16px 17px 13px; border: 1px solid #c4adde35; border-radius: 18px; background: linear-gradient(125deg, #24202e, #1b1924); box-shadow: 0 12px 50px #00000013, inset 0 1px 0 #e3d4ff07; }
.input-wrap:focus-within { border-color: #c1a1f377; box-shadow: 0 0 0 3px #bd96ed07, 0 12px 50px #00000013; }
.input-wrap textarea { min-height: 86px; max-height: 300px; padding: 3px 3px 9px; font-size: 18px; line-height: 1.75; resize: vertical; }
.input-wrap textarea::placeholder { color: #a99bb7; }
.input-bottom { margin-top: 9px; gap: 12px; }
.composer-mode { display: inline-flex; align-items: center; gap: 7px; flex: none; min-height: 35px; border: 1px solid #b8a5d020; background: #11101835; border-radius: 8px; padding: 4px 10px; color: #c6b6d9; font-size: 13px; }
.composer-mode i { width: 5px; height: 5px; border-radius: 50%; background: #bea1df; }
.composer-submit { display: flex; align-items: center; justify-content: flex-end; gap: 14px; min-width: 0; }
.input-counter { color: #94859f; font-size: 12px; white-space: nowrap; }
.primary { min-height: 47px; padding: 10px 20px; border-radius: 11px; border: 1px solid #e1c9ff33; background: #c9b1ec; color: #2c1b43; font-weight: 550; font-size: 16px; box-shadow: none; }
.primary:hover:not(:disabled) { background: #d9c4f4; }
.primary:active:not(:disabled) { background: #bfa4e3; }
.primary:disabled { opacity: .45; }
.secondary { min-height: 46px; border: 1px solid #c3a5e733; background: #c4a2eb0b; color: #d4bcec; border-radius: 11px; font-size: 15px; }
.secondary:hover { background: #c4a2eb17; border-color: #c3a5e759; }
.text-button { color: #b5a5c6; font-size: 14px; }
.text-button:hover { color: #e0cdee; background: #b898df0a; }
.home-privacy { text-align: center; margin: 13px 0 8px; color: #91859f; font-size: 12px; line-height: 1.8; }
.privacy button { color: #b49acb; }
.hint-box { margin: 0 0 17px; padding: 17px 20px; border-color: #b6a0d226; background: #1b1722; color: #c8b6d8; }
.hint-box p, .hint-box ol { color: #c8b6d8; font-size: 14px; }

/* 结果、依据、方向和行动沿用同一套卡片语言 */
.top-row { margin-bottom: 24px; }
.problem { font-size: 28px; line-height: 1.6; font-weight: 500; color: #f0eaf7; letter-spacing: -.5px; }
.summary { font-size: 18px; color: #c6bcd2; line-height: 1.9; margin: 18px 0 23px; }
.original { font-size: 14px; color: #a292b1; }
.original blockquote { padding: 15px 18px; border-color: #aa86d255; border-radius: 0 9px 9px 0; background: #b995e40a; color: #c3b1d4; }
.badge { border-color: #b79ad332; color: #c9aee4; background: #b190d70b; border-radius: 7px; padding: 3px 10px; font-size: 12px; }
.stage-track { padding: 15px 0; margin: 18px 0 7px; font-size: 13px; color: #8c809c; }
.stage-track .active { color: #c9b0e8; }
.compass-wrap { width: 100%; max-width: 360px; height: 224px; margin: 10px auto 17px; }
.compass-art { width: 100%; height: 100%; color: #81669e; opacity: .5; }
.compass-center { left: 33%; right: 33%; top: 99px; color: #ccbadc; font-size: 12px; line-height: 1.8; }
.compass-center small { color: #8e7ba2; font-size: 11px; letter-spacing: .06em; margin-bottom: 3px; }
.compass-node { width: 88px; height: 70px; gap: 2px; border: 1px solid #b39bce29; border-radius: 13px; background: #1d1726; color: #c9b5df; box-shadow: none; }
.compass-node > span { font-size: 23px; font-weight: 500; line-height: 1.2; }
.compass-node small { color: #a18bba; font-size: 11px; line-height: 1.5; }
.compass-node[aria-selected="true"] { background: linear-gradient(140deg, #443151, #2d233b); border-color: #bd9be076; color: #e3cff8; box-shadow: 0 0 24px #bd96ed08; }
.compass-node[aria-selected="true"] small { color: #c3a7dc; }
.compass-node[data-layer="heart"] { top: 0; left: calc(50% - 44px); }
.compass-node[data-layer="body"] { top: 140px; left: 9px; }
.compass-node[data-layer="brain"] { top: 140px; right: 9px; }
.observation { padding: 24px 26px; background: linear-gradient(120deg, #2620307a, #19161f); border-color: #c0a4d930; border-radius: 16px; animation: none; }
.card-heading h3 { color: #dcc6ee; font-size: 18px; font-weight: 500; }
.card-heading button { color: #b79ace; font-size: 13px; }
.observation p { font-size: 18px; color: #e1d7ea; line-height: 1.9; }
.evidence { border-color: #b995d969; background: #b797d20a; color: #cbb8db; padding: 13px 17px; font-size: 14px; }
.evidence small { color: #9f8db0; font-size: 12px; }
.uncertain { font-size: 14px !important; color: #a99ab7 !important; line-height: 1.85 !important; }
.card-actions button { font-size: 13px; }
.direction-box { border-color: #b897dc38; border-radius: 15px; padding: 23px 25px; background: linear-gradient(110deg, #30213e60, #201a29); }
.direction-box h3 { color: #c4a7e2; font-size: 14px; }
.direction-box p { color: #e4d7f0; font-size: 18px; line-height: 1.9; }
.direction-option { border-color: #c4a4e626; border-radius: 12px; background: #1a1522; padding: 17px 19px; }
.direction-option strong { font-size: 17px; color: #d9c8e8; }
.direction-option small { color: #a895b9; font-size: 14px; }
.direction-option[aria-pressed="true"] { border-color: #bc94e577; background: #2c2138; }
.direction-option[aria-pressed="true"] strong { color: #dfc7f5; }
.direction-option[aria-pressed="true"]:before { color: #c9ace4; }
.method { border-color: #ad89cf60; padding-left: 20px; margin: 25px 0; }
.method small { font-size: 13px; color: #b59ace; }
.method p { font-size: 18px; color: #cdbddb; line-height: 1.9; }
.action-card { border-color: #bca0df43; border-radius: 17px; padding: 26px; background: linear-gradient(130deg, #30253d, #1c1726); }
.action-card .eyebrow { color: #bba0d8; font-size: 12px; }
.action-card h3 { color: #eadcf8; font-size: 25px; line-height: 1.65; font-weight: 500; }
.action-detail { border-color: #c9a5e41c; color: #c6b8d4; font-size: 16px; }
.action-detail strong { color: #cfb6e3; font-size: 13px; }
.action-boundary { color: #a99ab6; font-size: 13px; line-height: 1.9; }
.theory-note { border-color: #c4a5df1c; border-radius: 14px; background: #15121b; padding: 20px 22px; }
.theory-note summary { color: #bea8d1; font-size: 15px; }
.theory-note p { color: #b3a5c1; font-size: 15px; line-height: 1.9; }
.theory-note small { color: #9684a7; font-size: 12px; }
.learn-invite { border-color: #b391d33d; border-radius: 16px; padding: 26px; background: linear-gradient(130deg, #30223e75, #1c1725); }
.learn-invite .eyebrow { color: #b69ccf; }
.learn-invite h3 { font-size: 23px; font-weight: 500; }
.learn-invite p { font-size: 16px; }
.result-footer { gap: 12px; }
.result-footer button { font-size: 14px; }
.demo-banner { border-color: #b895d53f; background: #a97fd011; color: #c6acd9; padding: 11px 15px; border-radius: 10px; font-size: 13px; }
.version-note { color: #8e7e9e; font-size: 12px; }
.plain-answer { border-color: #c4a2df2b; border-radius: 16px; padding: 27px; color: #e2d8eb; background: #1d1726; font-size: 18px; }

/* 记录和练习 */
.record { margin: 17px 0; padding: 24px; background: linear-gradient(110deg, #1e1928, #16131e); border-color: #b99bd025; border-radius: 15px; }
.record-meta { margin-bottom: 12px; font-size: 13px; color: #a291b2; }
.record h3 { font-size: 21px; font-weight: 500; }
.record .button-row button { font-size: 14px; }
.feedback-note { background: #a7c6b805; border-color: #a7c6b855; color: #bccac5; font-size: 16px; }
.empty { padding: 45px 24px; border-color: #b59dcc29; background: #ac90ca03; }
.empty h3 { color: #d0bbdf; font-size: 21px; }
.empty p { font-size: 15px; }
.exercise-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 25px; }
.exercise-card { height: 100%; margin: 0; padding: 23px; border-color: #bba0d629; background: linear-gradient(125deg, #29203370, #19151f); border-radius: 15px; }
.exercise-card:hover { border-color: #c7a7e45b; background: #292033; }
.exercise-card small { font-size: 12px; color: #bba0d2; }
.exercise-card h3 { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #e5d7ef; font-size: 21px; font-weight: 500; }
.exercise-card h3 span { color: #aa8cc0; font-size: 20px; }
.exercise-card p { font-size: 15px; line-height: 1.9; color: #b3a3c1; }
.exercise-scenario { background: #21182b; border-color: #b797d530; color: #d4c2e2; border-radius: 14px; font-size: 18px; line-height: 1.9; padding: 23px; }
.question-label { color: #dfcde9; font-size: 18px; }
.exercise-hint { background: #22192d; border-color: #ac8fcc; color: #cdb8dd; font-size: 16px; padding: 17px 20px; }
.feedback-list { font-size: 17px; color: #cfc0dc; line-height: 1.9; }
.compare-grid { gap: 18px; }
.compare-card { border-color: #bfa1da31; border-radius: 15px; padding: 24px; background: linear-gradient(125deg, #292034, #1c1724); }
.compare-card h3 { color: #dec8f0; font-size: 22px; line-height: 1.6; }
.compare-card .label { color: #b79ccf; font-size: 13px; }
.compare-card p { color: #c7b6d5; font-size: 16px; line-height: 1.85; }
.changed-note { border-color: #b89bd1; background: #b393d20a; color: #c9b3db; }
.wait-card { padding: 45px 26px; background: radial-gradient(ellipse at 50% 30%, #7d529519, transparent 65%), #18131f; border-color: #b79bd32e; border-radius: 18px; }
.wait-symbol { width: 72px; height: 72px; opacity: .95; }
.wait-card h2 { color: #e2d5ee; font-size: 24px; font-weight: 500; }
.wait-card p { font-size: 16px; }
.wait-stage { color: #c5a9df; font-size: 14px; }
.wait-stage:before { background: #c5a9df; }
.wait-card .text-button { font-size: 14px; }
.alert { background: #b6678010; border-color: #c8849947; color: #d8a6b7; font-size: 15px; padding: 18px 21px; }
.join { background: #241a2b; border-color: #b294d235; }
.join p { font-size: 16px; }
.legal-foot { display: flex; justify-content: space-between; gap: 20px; margin: 0; padding: 18px 40px 22px; border-top: 1px solid #ffffff08; color: #80738e; font-size: 11px; }
.legal-foot > div { display: flex; gap: 20px; }
.legal-foot button { font-size: 12px; color: #9783a9; min-height: 30px; }
dialog { color: #e9dff3; background: linear-gradient(145deg, #231b2d, #17121e); border-color: #c3a4df39; border-radius: 19px; padding: 28px; max-width: 540px; }
dialog::backdrop { background: #07060ebd; backdrop-filter: blur(8px); }
.dialog-top h2 { font-size: 23px; font-weight: 500; }
dialog p { color: #b8a7c8; font-size: 16px; }
.dialog-actions { gap: 11px; }
#toast { color: #2b1b3a; background: #e7d7f2; box-shadow: 0 12px 45px #0005; border-radius: 11px; font-size: 15px; }
.boot { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; background: var(--bg); }
.boot img { margin-bottom: 22px; }
.boot-mark { margin-bottom: 10px; color: #d3bcea; font-size: 24px; letter-spacing: .04em; }

@media (min-width: 1600px) {
  .workspace-sidebar { width: 274px; padding-inline: 24px; }
  .workbench { margin-left: 274px; }
  .workspace { max-width: 1080px; }
  .home-title { font-size: 48px; }
}
@media (max-width: 1100px) and (min-width: 801px) {
  .workspace-sidebar { width: 222px; padding-inline: 12px; }
  .workbench { margin-left: 222px; }
  .brand { padding-inline: 4px; gap: 9px; }
  .brand img { width: 38px; height: 38px; }
  .brand strong { font-size: 19px; }
  .workspace, .workbench-topbar { padding-inline: 28px; }
  .entry-card { padding: 16px; gap: 10px; }
  .entry-card strong { font-size: 18px; }
  .entry-arrow { display: none; }
  .entry-icon { width: 37px; height: 40px; }
  .example { font-size: 13px; }
}
@media (max-width: 800px) {
  .app-shell { padding: 0; }
  .workbench { margin-left: 0; min-height: calc(100svh - 66px); }
  .workspace-sidebar { position: sticky; inset: 0 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; width: 100%; height: auto; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; gap: 8px; border: 0; border-bottom: 1px solid #ffffff0d; overflow: visible; background: #101017f5; backdrop-filter: blur(12px); }
  .brand { padding: 0; min-height: 40px; gap: 10px; }
  .brand img { width: 36px; height: 36px; border-radius: 11px; }
  .brand strong { font-size: 21px; }
  .brand small, .desktop-navigation, .sidebar-principle, .sidebar-bottom { display: none; }
  .sidebar-new { min-height: 40px; height: 40px; width: 41px; padding: 9px; margin: 0; justify-content: center; color: #d0b9ee; background: #d6c8fa0a; border-color: #cdb0f527; border-radius: 9px; }
  .sidebar-new > span { display: none; }
  .sidebar-new svg { width: 21px; height: 21px; }
  .sidebar-new:hover { background: #d6c8fa17; border-color: #cdb0f550; }
  .mobile-menu { display: block; position: relative; }
  .mobile-menu > summary { display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 6px 10px; border: 1px solid #cbb0ef25; border-radius: 9px; color: #d4c0e8; background: #c1a3ee07; font-size: 15px; cursor: pointer; list-style: none; }
  .mobile-menu > summary::-webkit-details-marker { display: none; }
  .mobile-menu > summary svg { width: 18px; height: 18px; }
  .mobile-menu[open] > summary { border-color: #cbb0ef5a; background: #b995ec15; }
  .mobile-menu-panel { position: absolute; z-index: 40; top: calc(100% + 12px); right: -49px; width: 235px; max-height: calc(100dvh - 100px); overflow-y: auto; padding: 8px; border: 1px solid #c4a3ed36; border-radius: 13px; background: #1b1723; box-shadow: 0 16px 50px #0008; }
  .mobile-menu-panel .sidebar-link { min-height: 47px; font-size: 16px; }
  .mobile-menu-panel .sidebar-privacy { margin-top: 5px; border-top-color: #ffffff0a; border-radius: 0 0 9px 9px; }
  .workbench-topbar { display: none; }
  .workspace { max-width: 760px; padding: 25px 20px 26px; }
  .workspace:has(.view-home) { padding: 0 20px 12px; }
  .home-stage { min-height: calc(100svh - 130px); }
  .welcome { min-height: 220px; padding: 28px 0 32px; }
  .welcome-signature { padding: 6px; border-radius: 19px; }
  .welcome-signature img { width: 43px; height: 43px; border-radius: 13px; }
  .welcome .eyebrow { margin: 17px 0 12px; font-size: 11px; }
  .home-title { font-size: clamp(28px, 5vw, 36px); line-height: 1.55; letter-spacing: -.8px; margin-bottom: 13px; }
  .welcome .lead { font-size: 16px; max-width: 345px; line-height: 1.85; }
  .home-tools { gap: 10px; margin-bottom: 14px; }
  .entry-card { min-height: 88px; gap: 10px; padding: 15px; }
  .entry-card strong { font-size: 18px; }
  .entry-card small { font-size: 14px; line-height: 1.65; }
  .entry-arrow { display: none; }
  .entry-icon { width: 35px; height: 40px; }
  .tabs { margin-bottom: 8px; }
  .example-list { gap: 8px; }
  .example { flex: none; min-height: 41px; max-width: 88%; font-size: 15px; padding: 7px 10px; }
  .input-wrap { padding: 12px 13px; border-radius: 16px; }
  .input-wrap textarea { min-height: 82px; font-size: 18px; padding: 3px 1px 7px; }
  .input-bottom { gap: 8px; margin-top: 7px; }
  .composer-submit { gap: 10px; }
  .composer-mode { font-size: 12px; padding-inline: 8px; }
  .input-bottom .primary { min-height: 44px; padding: 8px 15px; font-size: 15px; }
  .input-counter { font-size: 11px; }
  .home-privacy { font-size: 11px; margin-top: 12px; }
  .legal-foot { padding: 10px 20px calc(12px + env(safe-area-inset-bottom)); justify-content: center; }
  .legal-foot > span { display: none; }
  .legal-foot > div { gap: 24px; }
  .legal-foot button { font-size: 12px; }
  .problem { font-size: 26px; line-height: 1.6; }
  .summary { font-size: 17px; }
  .stage-track { font-size: 12px; gap: 8px; }
  .observation { padding: 22px; }
  .observation p { font-size: 17px; }
  .card-heading h3 { font-size: 17px; }
  .card-heading button { font-size: 12px; }
  .direction-box { padding: 21px; }
  .direction-box p { font-size: 17px; }
  .method p { font-size: 17px; }
  .action-card { padding: 23px; }
  .action-card h3 { font-size: 23px; }
  .action-detail { font-size: 16px; }
  .exercise-grid { gap: 13px; }
  .exercise-card { padding: 20px; }
  .exercise-card h3 { font-size: 20px; }
  .exercise-scenario { font-size: 17px; padding: 21px; }
  .question-label { font-size: 17px; }
  .compare-grid { grid-template-columns: 1fr; }
  .learn-invite { padding: 23px; }
  .learn-invite h3 { font-size: 22px; }
  .record { padding: 21px; }
  .record h3 { font-size: 20px; }
  .result-footer button { font-size: 13px; }
}
@media (max-width: 520px) {
  .workspace, .workspace:has(.view-home) { padding-inline: 16px; }
  .home-tools { gap: 9px; }
  .entry-card { display: block; min-height: 86px; padding: 13px 14px; }
  .entry-card strong { font-size: 17px; }
  .entry-card small { margin-top: 5px; font-size: 13px; }
  .entry-icon { display: none; }
  .welcome .lead { max-width: 310px; }
  .primary { font-size: 15px; }
  .input-bottom .primary { padding-inline: 12px; }
  .compass-wrap { max-width: 344px; height: 224px; }
  .compass-center { top: 99px; }
  .compass-node[data-layer="body"] { left: 2px; }
  .compass-node[data-layer="brain"] { right: 2px; }
  .exercise-grid { grid-template-columns: 1fr; }
  .observation, .direction-box, .action-card, .learn-invite, .record { padding: 20px; }
  .theory-note { padding: 18px 19px; }
  .card-heading { gap: 8px; }
  .record-meta { align-items: flex-start; gap: 8px; font-size: 12px; }
  .record .badge { font-size: 11px; }
  .record .button-row button { font-size: 13px; }
  dialog { padding: 23px 21px; }
  .dialog-top h2 { font-size: 22px; }
}
@media (max-width: 380px) {
  .workspace-sidebar { padding-inline: 12px; gap: 7px; }
  .brand { gap: 8px; }
  .brand strong { font-size: 20px; }
  .brand img { width: 33px; height: 33px; }
  .mobile-menu > summary span { display: none; }
  .mobile-menu > summary { padding: 9px; }
  .home-title { font-size: 27px; }
  .composer-submit { gap: 7px; }
  .composer-mode { padding-inline: 6px; font-size: 11px; }
  .input-bottom .primary { font-size: 14px; padding-inline: 10px; gap: 6px; }
  .input-bottom .primary svg { width: 16px; }
  .input-bottom .input-counter { display: none; }
  .input-bottom .primary { white-space: nowrap; flex-shrink: 0; }
  .stage-track { font-size: 11px; gap: 6px; }
}
@media (max-height: 740px) {
  .welcome { min-height: 190px; padding-block: 23px; }
  .welcome-signature { display: none; }
  .welcome .eyebrow { margin-top: 0; }
  .home-title { margin-bottom: 11px; }
}
@media (max-height: 620px) {
  .sidebar-principle { display: none; }
  .sidebar-bottom { margin-top: auto; }
  .welcome { min-height: 150px; padding-block: 18px; }
  .welcome .eyebrow { display: none; }
  .home-title { font-size: 29px; }
}
@media (max-width: 380px) and (max-height: 740px) {
  .welcome { min-height: 160px; padding: 16px 0 20px; }
  .welcome .lead { display: none; }
  .entry-title-full { display: none; }
  .entry-title-short { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .workspace-sidebar, .workbench-topbar, .legal-foot, .home-tools, .prompt-section { display: none !important; }
  .workbench { margin: 0; background: white; }
  .workspace { display: block; padding: 0; }
  .main { max-width: none; }
  .observation, .action-card, .direction-box, .theory-note, .plain-answer { background: white; color: #211629; border-color: #b6a2c5; break-inside: avoid; }
  .observation p, .summary, .method p, .direction-box p, .action-card h3, .action-detail, .action-boundary { color: #332341; }
}
