/* v2: retain the original terminal shell, neon palette and signal instrumentation. */
:root{font-family:system-ui,-apple-system,'PingFang SC','Microsoft YaHei',sans-serif;color-scheme:dark}.mono,.eyebrow,.side-label,.footer,.noise-status{font-family:ui-monospace,'SFMono-Regular',Consolas,monospace}button,a{-webkit-tap-highlight-color:transparent}button{touch-action:manipulation}button:disabled{cursor:wait;opacity:.6}a{color:var(--blue)}h1:focus,h2:focus{outline:none}.shell{min-height:100svh}.main{min-height:100svh}.stage{padding:45px clamp(26px,4vw,66px);justify-content:center}.view{width:100%;max-width:740px;min-height:0;margin:auto}.intro-view h1{font-size:clamp(46px,5.7vw,78px);letter-spacing:-.055em}.intro-view .lede{font-size:18px}.intro-stats{display:flex;gap:24px;color:#b1a3c2;font-size:12px;border-top:1px solid #49354d;border-bottom:1px solid #49354d;padding:18px 0;margin:14px 0 24px}.actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:20px 0}.text-btn{color:#a99bbb;background:none;border:0;padding:10px 0;min-height:40px;font-size:13px;text-align:left}.text-btn:hover{color:var(--blue)}.tiny{color:#a095af;font-size:12px;line-height:1.7;margin:17px 0 0}.muted{color:#9c8499}.intro-view>.text-btn{align-self:flex-start}.primary,.ghost{font-size:14px;min-height:46px;padding:12px 20px}.primary span{padding-left:24px}.question-view{max-width:650px}.question-top{display:flex;align-items:center;justify-content:space-between;color:#ad94b6;font-size:11px;gap:12px}.question-top .text-btn{font-size:12px}.question-view .progress{margin:4px 0 25px}.question-view .eyebrow{font-size:10px;margin-bottom:13px}.q-title{font-size:36px;line-height:1.2;letter-spacing:-.04em;margin:0 0 20px;display:flex;justify-content:space-between;align-items:center}.q-title>span{font-size:40px;font-weight:500;color:#655175;letter-spacing:-.06em}.scene-copy{font-size:17px;line-height:1.9;color:#d5ccdf;margin:0 0 22px}.q-prompt{font-size:17px;font-weight:650;color:#fce8f7;margin:0 0 14px}.options{gap:11px}.option{font-size:15px;line-height:1.65;min-height:68px;padding:15px 18px;gap:13px}.option.selected{border-color:var(--pink);background:linear-gradient(90deg,#381a3f,#172332);box-shadow:inset 3px 0 var(--pink),0 0 20px #ff48bd12}.option:hover{transform:none}.confidence{height:67px;display:flex;gap:12px;align-items:center}.confidence button{flex:1}.confidence-hint{font-size:12px;color:#8f819e}.question-bottom{border-top:1px solid #352b43;display:flex;align-items:center;justify-content:space-between;color:#8f819e;font-size:12px;gap:10px}.question-bottom button{font-size:12px}.identity-card{border:1px solid #765070;padding:26px;background:radial-gradient(ellipse at 100% 0,#40204355,transparent 75%),linear-gradient(130deg,#151021,#0b1520);position:relative;box-shadow:0 0 45px #ff48bd0c}.identity-card:before{content:'';position:absolute;left:-1px;top:24px;height:40px;width:3px;background:var(--pink);box-shadow:0 0 15px var(--pink)}.card-meta{display:flex;justify-content:space-between;gap:12px;font-size:10px;letter-spacing:.12em;color:var(--blue)}.result-title{margin:25px 0 18px;gap:20px}.glyph-large{width:76px;height:76px}.result-head{font-size:clamp(30px,3.7vw,48px);margin:0;letter-spacing:-.04em;line-height:1.35}.profile-lead{font-size:15px;line-height:1.9;color:#d2c4dc;margin:0 0 20px}.axes{display:grid;gap:17px}.axis-row>div:first-child{display:flex;justify-content:space-between;font-size:12px;color:#a599b5}.axis-row .lit{color:#ff8bd1}.axis-row small{font:10px monospace;margin-left:5px}.axis-row .axis-status{font-size:10px;color:#94809d}.axis-track{position:relative;height:3px;background:linear-gradient(90deg,#ff48bd65,#554168,#47dff765);margin:9px 0 0}.axis-track:after{content:'';position:absolute;left:50%;top:-3px;height:9px;width:1px;background:#b399bb66}.axis-track i{position:absolute;z-index:1;top:-3px;width:9px;height:9px;border-radius:50%;background:#fff0fd;box-shadow:0 0 10px var(--pink);transform:translateX(-50%)}.card-foot{margin-top:22px;padding-top:14px;border-top:1px solid #594160;font-size:10px;color:#a592b0}.dossier{border-bottom:1px solid #49354e;padding:0;font-size:14px;color:#c8bcd4}.dossier summary{list-style:none;display:flex;justify-content:space-between;cursor:pointer;padding:20px 0;color:#c9b5d6;gap:15px;min-height:52px}.dossier summary::-webkit-details-marker{display:none}.dossier summary span{color:var(--pink)}.dossier[open]>summary span{transform:rotate(45deg)}.micro{font:11px ui-monospace,monospace;letter-spacing:.06em;color:var(--pink);margin-bottom:10px}.system-panel{border-left:2px solid var(--pink);background:#2a152644;padding:18px;margin:12px 0 20px}.system-panel p,.bypass p{font-size:16px;line-height:1.8;margin:0}.bypass{margin:20px 0 24px;padding-left:18px;border-left:2px solid var(--blue);color:#dceef3}.bypass .micro{color:var(--blue)}.evidence{margin:23px 0}.evidence h3{font-size:14px;color:#c9aedc}.evidence h3 small{font-size:10px;color:#91809b;margin-left:10px;font-weight:400}.evidence p{font-size:13px;line-height:1.8;margin:12px 0;color:#afa4c0}.evidence p b{display:block;color:#d4c7dc;font-size:12px}.end-line{font-size:14px;color:#cfbad7;margin-top:28px}.unknown-glyph{color:var(--pink);font-size:60px;width:76px;text-align:center}.mini-types{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:10px 0 22px}.mini-type{display:flex;align-items:center;gap:12px;border:1px solid #4b385a;background:#141120;padding:12px;text-align:left;color:#e2ceeb;font-size:13px}.mini-type small{display:block;color:var(--blue);font:10px monospace;margin-top:5px}.mini-type .glyph{width:32px;height:32px}.gallery-view .sub{font-size:14px}.type-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:15px 0}.type-tile{text-align:left;background:linear-gradient(135deg,#201329,#0c1722);border:1px solid #49384f;min-height:146px;color:#e8d7ee;padding:17px 13px;display:flex;flex-direction:column;gap:12px;transition:border-color .2s,background .2s}.type-tile:hover{border-color:var(--pink);background:#342039}.type-tile .glyph{width:42px;height:42px}.type-tile:nth-child(3n) .glyph{color:var(--blue)}.type-tile:nth-child(3n + 1) .glyph{color:var(--violet)}.type-tile small{font-size:9px;color:#aa89b8}.type-tile strong{font-size:14px}.back-link{margin-bottom:24px}.tags{display:flex;flex-wrap:wrap;gap:8px}.tags span{border:1px solid #5a3d66;padding:5px 12px;font-size:12px;color:var(--violet)}.footer{font-family:ui-monospace,monospace}.toast{position:fixed;bottom:max(20px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);max-width:calc(100vw - 32px);width:max-content;padding:13px 20px;border:1px solid #a36391;background:#170f22f5;color:#f7d9ef;font-size:13px;line-height:1.6;z-index:50;box-shadow:0 5px 35px #0008;pointer-events:none}.hidden{display:none!important}.export-dialog{background:#100d18;color:#eee1f3;border:1px solid #7d4b76;padding:22px;max-width:520px;width:calc(100% - 30px);max-height:90svh;overflow:auto}.export-dialog::backdrop{background:#020208dd;backdrop-filter:blur(8px)}.export-dialog img{display:block;width:100%;height:auto}.export-dialog p{font-size:13px;margin:15px 0}.download-link{text-decoration:none;display:inline-flex;align-items:center}.quiet *, .quiet *:before,.quiet *:after{animation:none!important;transition:none!important}.intro-view h1 em{animation:glitchText 9s steps(1,end) infinite}.profile-view{max-width:650px}
@media(min-width:1500px){.stage{padding-top:60px;padding-bottom:60px}}
@media(max-width:1190px){.workspace{grid-template-columns:minmax(0,1fr)}.side{display:none}.shell{grid-template-columns:200px minmax(0,1fr)}.rail{padding:24px 16px}.topbar>span:nth-child(2){display:none}.stage{padding:40px 7%}.question-view{max-width:650px}}
@media(max-width:760px){.shell{display:block;border:0}.rail{display:none}.topbar{height:48px;padding:0 20px;font-size:10px;flex-shrink:0}.workspace{display:flex;flex-direction:column;flex:1}.stage{padding:24px 22px;flex:1;width:100%}.stage:before{font-size:86px;top:22px}.view{min-height:0}.footer{min-height:40px;padding:13px 22px;font-size:9px}.footer span:last-child{display:none}.intro-view h1{font-size:clamp(41px,10.5vw,64px);line-height:1.19;margin-bottom:22px}.intro-view .eyebrow{font-size:10px;margin-bottom:24px}.intro-view .lede{font-size:15px;line-height:1.8;margin-bottom:14px}.intro-stats{gap:0;justify-content:space-between;font-size:11px;padding:15px 0;margin:8px 0 18px}.intro-view .actions{margin:8px 0}.intro-view .tiny{font-size:10px}.question-top{font-size:10px}.question-view .progress{margin:3px 0 19px}.question-view .eyebrow{font-size:9px;margin-bottom:12px}.q-title{font-size:29px;margin-bottom:16px}.q-title>span{font-size:33px}.scene-copy{font-size:15px;line-height:1.85;margin-bottom:18px}.q-prompt{font-size:15px;margin-bottom:12px}.option{font-size:14px;padding:13px 14px;min-height:65px;gap:10px;line-height:1.65}.option .letter{font:600 12px ui-monospace,monospace;padding-top:3px;min-width:15px}.confidence{height:62px;gap:10px}.confidence .primary,.confidence .ghost{min-height:43px;padding:10px;font-size:13px}.question-bottom{font-size:10px}.question-bottom .text-btn{font-size:11px}.question-view .text-btn{min-height:36px}.question-view{margin:auto}.question-view .options{gap:9px}.result-view>.eyebrow{font-size:10px;margin-bottom:22px}.identity-card{padding:21px 18px}.card-meta{font-size:8px;letter-spacing:.05em}.result-title{margin:22px 0 16px;gap:12px}.glyph-large{width:58px;height:58px}.result-head{font-size:30px}.profile-lead{font-size:14px;line-height:1.8;margin-bottom:22px}.axes{gap:17px}.type-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.type-tile{min-height:142px;padding:16px}.mini-types{grid-template-columns:1fr 1fr}.mini-type{font-size:12px;gap:7px;padding:10px}.mini-type .glyph{width:27px}.gallery-view .eyebrow{font-size:9px}.gallery-view .q-title{font-size:29px}.gallery-view .sub{font-size:13px}.toast{bottom:12px;font-size:12px;padding:10px 14px;max-width:calc(100vw - 24px)}.end-line{font-size:13px}.result-view .actions{gap:10px}.result-view .primary,.result-view .ghost{font-size:12px}.result-view .tiny{font-size:11px}.system-panel p,.bypass p{font-size:14px}}
@media(max-width:760px) and (max-height:740px){.stage{padding:14px 20px}.topbar{height:40px}.footer{min-height:31px;padding:9px 20px}.question-view .progress{margin-bottom:13px}.question-view .eyebrow{margin-bottom:9px}.q-title{font-size:26px;margin-bottom:13px}.scene-copy{font-size:14px;line-height:1.75;margin-bottom:14px}.q-prompt{font-size:14px;margin-bottom:10px}.option{padding:11px 12px;font-size:13px;min-height:61px}.confidence{height:57px}.intro-view h1{font-size:44px}.intro-view .eyebrow{margin-bottom:18px}.intro-view .lede{font-size:14px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Readability takes precedence over forcing an enlarged-text viewport to fit. */
.scene-copy,.profile-lead{font-size:1rem}.option{font-size:1rem}.q-prompt{font-size:1rem}
.confidence-hint,.question-bottom,.question-bottom .text-btn,.question-top .text-btn{font-size:.75rem}
@media(max-width:760px){.scene-copy{font-size:1rem;line-height:1.7}.option{font-size:.9375rem;line-height:1.55;min-height:65px}.q-prompt{font-size:1rem}.profile-lead{font-size:1rem;line-height:1.75}.confidence .primary,.confidence .ghost{font-size:.875rem}.question-view .text-btn{min-height:44px}.question-view .eyebrow{font-size:.75rem;letter-spacing:.06em}.question-top{font-size:.75rem}.type-tile strong{font-size:1rem}.system-panel p,.bypass p{font-size:1rem}}
@media(max-width:760px) and (max-height:740px){.stage{padding:10px 18px}.question-view .progress{margin-bottom:10px}.question-view .eyebrow{margin-bottom:8px}.q-title{margin-bottom:10px}.scene-copy{font-size:1rem;line-height:1.6;margin-bottom:12px}.option{font-size:.875rem;padding:10px 12px;line-height:1.55}.confidence{height:57px}.question-top .text-btn{min-height:36px}.question-bottom .text-btn{min-height:40px}}
/* v3: mechanical geometry below every terminal surface. */
#mechanical-field{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:0;opacity:.85}.mechanical-shade{position:fixed;inset:0;pointer-events:none;z-index:0;background:linear-gradient(90deg,#05050910,#050509b8 30%,#050509d4 55%,#05050918);background-size:100% 100%}.shell{background:transparent;box-shadow:none}.rail{background:linear-gradient(180deg,#0d0b18dc,#090a13cc 66%,#100b1bda)}.side{background:linear-gradient(180deg,#0e0c19b3,#0a0b14a8)}.topbar{gap:14px}.ambient-toggle{margin-left:auto;border:1px solid #533f62;background:#100c1c99;color:#b1cdd5;font:12px/1.4 ui-monospace,monospace;padding:7px 10px;min-height:34px;white-space:nowrap}.ambient-toggle:hover{color:var(--blue);border-color:var(--blue)}.identity-quote{color:#ff9ad9;font-size:1rem;line-height:1.65;margin:0 0 18px;padding-left:12px;border-left:2px solid var(--pink)}.axis-row .protocol-name{font-size:11px;color:#9d8bad;margin-bottom:7px;display:block}.axis-row .axis-labels{display:flex;justify-content:space-between;font-size:13px;color:#b9acc6;gap:8px}.axis-row small{font-size:9px;letter-spacing:.03em}.axes{gap:14px}.profile-view .identity-card{margin-bottom:8px}
@media(max-width:760px){#mechanical-field{opacity:.65}.mechanical-shade{background:linear-gradient(90deg,#05050950,#050509bd 22%,#050509c9 78%,#05050940)}.topbar{gap:8px}.topbar .live{display:none}.ambient-toggle{font-size:11px;padding:5px 8px;min-height:32px}.identity-quote{font-size:15px}.axis-row .axis-labels{font-size:12px}.axis-row .protocol-name{font-size:11px}.axis-row small{font-size:9px}.result-title{margin-top:19px}}

.result-export.actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0 8px}.result-export button{width:100%;min-height:48px}.export-hint{font-size:12px;line-height:1.5;color:#ad9abd;margin:0 0 14px}.export-dialog>.ghost{position:sticky;top:0;z-index:1}.export-dialog .actions{position:sticky;bottom:-22px;background:#100d18;padding:12px 0;margin-bottom:0}.export-dialog .download-link,.export-dialog #share-card{flex:1;justify-content:center;text-align:center}

/* Both intensity choices share geometry; stronger intent uses a slightly denser fill. */
.confidence{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:12px}
.confidence-hint{grid-column:1/-1}
.confidence .strength-button{display:flex;align-items:center;justify-content:center;align-self:center;width:100%;height:46px;min-height:46px;margin:0;padding:10px 14px;border:1px solid #9866ae;border-radius:0;clip-path:polygon(0 0,calc(100% - 12px) 0,100% 12px,100% 100%,12px 100%,0 calc(100% - 12px));background:linear-gradient(110deg,#24162e,#151522);box-shadow:none;color:#f0dff7;font:600 .875rem/1.4 system-ui,sans-serif;letter-spacing:0;transition:background .18s,border-color .18s}
.confidence .strength-button:hover{background:linear-gradient(110deg,#392241,#172734);border-color:var(--blue)}
.confidence .strength-button:active{background:#35213f}
#mechanical-field{opacity:1}.mechanical-shade{background:linear-gradient(90deg,#05050908,#05050999 30%,#050509b3 55%,#05050910)}
@media(max-width:760px){.confidence{gap:10px}.confidence .strength-button{height:44px;min-height:44px;padding:10px;font-size:.875rem}#mechanical-field{opacity:.84}.mechanical-shade{background:linear-gradient(90deg,#05050930,#050509a6 22%,#050509b0 78%,#05050930)}}

/* Subtle intensity hierarchy without changing size, typography or alignment. */
.confidence .strength-button[data-strength="1"]{background:linear-gradient(110deg,rgba(124,65,147,.12),rgba(74,48,96,.10));border-color:#80608f}
.confidence .strength-button[data-strength="2"]{background:linear-gradient(110deg,rgba(146,65,154,.35),rgba(92,58,125,.30));border-color:#a779b6}
.confidence .strength-button[data-strength="1"]:hover{background:linear-gradient(110deg,rgba(124,65,147,.25),rgba(74,48,96,.22));border-color:var(--blue)}
.confidence .strength-button[data-strength="2"]:hover{background:linear-gradient(110deg,rgba(146,65,154,.47),rgba(92,58,125,.42));border-color:var(--blue)}
.confidence .strength-button:active{filter:brightness(1.12)}
.session-actions.actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:22px 0 14px;max-width:500px}
.utility-button{display:flex;align-items:center;justify-content:center;gap:10px;min-height:46px;padding:12px 16px;border:1px solid #756184;background:linear-gradient(115deg,#23192e,#121522);color:#e2d2ee;font-size:.875rem;font-weight:500;border-radius:3px;transition:background .18s,border-color .18s,box-shadow .18s}
.utility-button svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.utility-button.reconnect svg{color:var(--blue)}.utility-button.erase{border-color:#6e4e64;background:linear-gradient(115deg,#21141f,#14121c);color:#cdb4c8}.utility-button.erase svg{color:#ca91b4}
.utility-button.reconnect:hover{background:#1d2934;border-color:var(--blue);box-shadow:0 0 15px #47dff714}.utility-button.erase:hover{background:#35202d;border-color:#d489b4;color:#f5d0e6}.utility-button:active{box-shadow:inset 0 0 15px #0006}
@media(max-width:760px){.session-actions.actions{gap:10px;max-width:none}.utility-button{min-height:46px;padding:11px 9px;gap:7px;font-size:.875rem}.utility-button svg{width:16px;height:16px}}

.share-dialog{max-width:540px;width:calc(100% - 32px);padding:24px}.share-dialog h2{font-size:30px;margin:20px 0}.link-preview{display:flex;gap:16px;align-items:center;padding:18px;border:1px solid #71476b;background:linear-gradient(120deg,#27152d,#0b202a);margin:20px 0}.link-preview .glyph{width:56px;height:56px;flex:none;color:var(--pink)}.link-preview p{font-size:14px;margin:6px 0;color:#cec3d7}.link-preview small{color:var(--blue)}.share-label{display:block;font-size:14px;color:#cdbbd9}.share-label input{display:block;width:100%;font:14px monospace;padding:13px;margin:8px 0;background:#0b0b14;border:1px solid #685070;color:#f3ddf3}.share-help{font-size:16px;line-height:1.7;margin-top:22px}.share-dialog .actions{display:flex}.share-dialog button{min-height:48px}.share-dialog::backdrop{background:#02020bd9}
