/* No plugin, network, or arbitrary code execution; just safe prewritten commands. */
.terminal-toggle{position:fixed;right:23px;bottom:22px;z-index:90;display:flex;align-items:center;gap:8px;padding:9px 14px;background:var(--paper-white);border:2px solid var(--ink);border-radius:13px 9px 15px 7px;color:var(--ink);box-shadow:4px 4px 0 var(--shadow);font:600 14px/1.25 'Courier New',monospace;transform:rotate(1deg)}
.terminal-toggle:hover{transform:rotate(-1.5deg) translateY(-3px)}.terminal-toggle svg{width:28px;height:28px;stroke:currentColor;stroke-width:2.4}
.secret-terminal{position:fixed;right:20px;bottom:84px;z-index:110;width:min(430px,calc(100vw - 28px));max-height:min(540px,calc(100dvh - 130px));display:flex;flex-direction:column;background:#202925;color:#d9e8d1;border:2px solid #85a58b;border-radius:9px 15px 12px 7px;box-shadow:12px 17px 0 rgba(25,23,20,.25),0 20px 64px #0006;transform:rotate(-.5deg);font-family:'Courier New',monospace}
.secret-terminal[hidden]{display:none!important}.terminal-head{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1.5px dashed #728778;font-size:16px;color:#e2cea5}
.terminal-head button{border:1px solid #799385;color:#f6e5ca;background:#34463c;border-radius:50%;width:30px;height:30px;font-size:24px;line-height:1}
.terminal-body{overflow-y:auto;overflow-wrap:anywhere;min-height:190px;max-height:355px;flex:1;padding:16px;font:14px/1.5 'Courier New',monospace}
.terminal-body p{white-space:pre-wrap;margin:0 0 11px}.terminal-body .cmd{color:#e3c595}.terminal-body .result{color:#c5e0bf}
.terminal-form{display:flex;align-items:center;gap:8px;border-top:1px dashed #728778;padding:12px 13px}.terminal-form label{font:bold 18px 'Courier New',monospace;color:#f0cb89}.terminal-form input{min-width:0;flex:1;background:transparent;border:0;outline:none;color:#f5f0d9;font:14px/1.5 'Courier New',monospace}.terminal-form input::placeholder{color:#94a999}.terminal-form button{background:#34463c;color:#e9dcb9;border:1px dashed #acc2ae;border-radius:5px;padding:5px 9px;font:15px 'Courier New',monospace}
@media(max-width:920px){.arch-head{flex-direction:column;align-items:start}.arch-sheet{padding-left:35px;padding-right:20px}.arch-sheet:before{left:19px}.arch-nodes{gap:5px}.arch-arrow{flex-basis:26px;width:26px}.arch-node{padding:12px 7px;min-height:95px}.letter-workspace{gap:22px}}
@media(max-width:680px){.arch-workshop{padding-block:65px}.arch-mode{font-size:14px;padding:9px 11px}.arch-nodes{flex-direction:column;gap:11px}.arch-node{width:min(100%,300px);min-height:82px;max-width:300px;flex:none;font-size:20px}.arch-node svg{height:32px}.arch-arrow{transform:rotate(90deg);flex:0 0 29px;width:35px;height:24px}.arch-explain{margin-top:21px;padding:21px 18px}.arch-explain h3{font-size:27px}.arch-explain p{font-size:20px}.letter-workspace{grid-template-columns:minmax(0,1fr);margin:35px auto}.letter-envelope{min-height:300px}.coffee-break{gap:13px;margin-block:15px 75px}.coffee-stamp{flex-basis:90px;width:90px;height:90px}.terminal-toggle{font-size:0;right:12px;bottom:14px;padding:11px;border-radius:50%}.terminal-toggle svg{width:31px;height:31px}.secret-terminal{right:13px;bottom:77px;max-height:min(500px,calc(100dvh - 105px))}.mini-identity-card .formal-zoom{margin:-42px 0 0}.portrait-reveal-btn{font-size:14px}}
@media(prefers-reduced-motion:reduce){.portrait-stack img,.letter-paper,.envelope-flap{transition:none!important}.coffee-steam,.arch-sheet.is-playing .arch-arrow path,#case-content.page-flipping{animation:none!important}}
/* Keep the two fixed drawing/terminal controls in separate reachable corners. */
.terminal-toggle{bottom:103px;z-index:110}
.secret-terminal{bottom:166px;z-index:120}
@media(max-width:680px){.terminal-toggle{bottom:76px;right:13px}.secret-terminal{bottom:143px;right:13px;max-height:min(480px,calc(100dvh - 165px))}}

