/* Entity Anchor IV — an optical reliquary for a living presence. */
@font-face { font-family:'Anchor Serif'; src:url('/fonts/anchor-serif.woff2') format('woff2'); font-style:normal; font-weight:400; font-display:swap; }
:root {
  --accent: #ef3154;
  --accent-text: #ffafbd;
  --opposite: #29bde9;
  --ink: #f0eae4;
  --muted: #a5a6af;
  --surface: #0a0d12;
  --edge: #34343e;
  --faint: color-mix(in srgb, var(--accent) 9%, #0a0d12);
  --display: 'Anchor Serif', 'SimSun', 'Songti SC', serif;
  --ease: cubic-bezier(.16,1,.3,1);
  color: var(--ink);
  background: #05070b;
  font: 14px/1.65 'Microsoft YaHei UI','PingFang SC',sans-serif;
}
body {
  position: relative;
  padding-bottom: max(22px, env(safe-area-inset-bottom));
  background: radial-gradient(ellipse at 32% 44%, #31122629, transparent 48%),
    radial-gradient(ellipse at 85% 15%, #10263130, transparent 43%), #05070b;
}
body::before { content:''; position:fixed; inset:20px; border-inline:1px solid #35374055; pointer-events:none; z-index:-1; }
body::after { content:''; position:absolute; left:17px; right:17px; bottom:12px; height:7px; border-inline:1px solid #bab3ad; border-bottom:1px solid #34343e; pointer-events:none; }
button, input, select, textarea { font:inherit; }
button, select, input::file-selector-button { min-height:44px; border-radius:0; transition:border-color 180ms ease,background-color 180ms ease,color 180ms ease; }
button:disabled, input:disabled, select:disabled { opacity:.45; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline:2px solid var(--ink); outline-offset:4px; }
.wrap { width:min(1536px,calc(100% - 112px)); }
.mast { min-height:94px; border-bottom:1px solid #34343e; position:relative; }
.mast::after { content:''; position:absolute; height:1px; width:180px; left:0; bottom:-1px; background:linear-gradient(90deg,var(--ink),var(--accent),transparent); }
.brand { gap:16px; }
.brand img { width:40px; height:40px; opacity:.85; }
.wordmark { border-left:1px solid #5e4a53; padding-left:18px; gap:7px; }
.wordmark strong { font-family:var(--display); font-size:26px; letter-spacing:.14em; }
.wordmark small { font-size:8px; letter-spacing:.38em; color:#c1b8bf; }
.mast-actions { display:flex; align-items:center; gap:34px; }
.mast-nav { display:flex; gap:29px; align-items:center; }
.mast-nav a { position:relative; padding:14px 0; font-size:12px; color:var(--muted); letter-spacing:.1em; }
.mast-nav a[aria-current='page'],.mast-nav a:hover { color:var(--ink); }
.mast-nav a[aria-current='page']::after { content:''; position:absolute; bottom:4px; left:calc(50% - 2px); width:4px; height:4px; background:var(--accent); }
.edition { font:10px/1.4 'GNU Unifont',monospace; color:#99939e; letter-spacing:.14em; border-left:1px solid #353740; padding-left:27px; }
.edition b { color:var(--accent-text); font-weight:400; }
.settings-link { width:44px; height:44px; border-radius:0; color:#c6c1c5; }
.settings-link svg { width:29px; height:29px; }
.page-head { min-height:125px; padding:25px 0 23px; gap:20px; }
.page-head > div { display:flex; align-items:center; gap:24px; }
.page-head .section-en { order:2; margin:5px 0 0; padding-left:22px; border-left:1px solid #5b424c; color:#b1a5b1; font-size:9px; letter-spacing:.22em; }
h1 { font-family:var(--display); font-size:46px; font-weight:400; color:var(--ink); letter-spacing:.1em; line-height:1.2; }
#companion-title { position:relative; text-shadow:1px 0 #ef315461,-1px 0 #29bde944; }
#companion-title::before,#companion-title::after { content:attr(data-text); position:absolute; inset:0; pointer-events:none; opacity:0; }
#companion-title::before { color:var(--opposite); clip-path:inset(16% 0 58%); animation:title-interference 10.7s steps(1,end) infinite; }
#companion-title::after { color:var(--accent); clip-path:inset(58% 0 16%); animation:title-interference 10.7s steps(1,end) infinite reverse; }
.title-fragments { position:absolute; width:60px; height:1px; right:-22px; top:53%; background:linear-gradient(90deg,transparent,var(--opposite),transparent); opacity:.7; box-shadow:14px 5px 0 -0.1px #ef31545c; }
.brand-raven { width:100px; height:86px; margin:-15px auto -12px 10px; object-fit:contain; filter:grayscale(1) brightness(1.35) contrast(1.06); opacity:.85; }
.header-signal { display:none; }
.service { gap:10px; border:1px solid #43404a; padding:9px 15px; margin-left:auto; font-size:11px !important; letter-spacing:.03em; background:#0c0d13; }
.service i { width:6px; height:6px; border-radius:0; }
.service.live i { box-shadow:0 0 10px color-mix(in srgb,var(--accent) 55%,transparent); }
.dashboard { display:grid; grid-template-columns:minmax(0,1.12fr) minmax(0,1fr); gap:26px; align-items:stretch; }
.preview-panel { position:relative; min-width:0; border:1px solid #5c4553; border-radius:0; padding:0 24px; background:radial-gradient(ellipse at 50% 48%,#26132255,transparent 63%),#07090e; isolation:isolate; }
.preview-panel::before,.preview-panel::after { content:''; position:absolute; pointer-events:none; }
.preview-panel::before { inset:7px; border:1px solid #5a566345; clip-path:polygon(0 0,33% 0,33% 1%,1% 1%,1% 38%,0 38%,0 100%,100% 100%,100% 63%,99% 63%,99% 99%,67% 99%,67% 100%,100% 100%,100% 0); }
.preview-panel::after { inset:-1px; background:linear-gradient(var(--accent),var(--accent)) left top/76px 2px no-repeat,linear-gradient(var(--opposite),var(--opposite)) right bottom/76px 2px no-repeat; }
.screen { height:515px; background:transparent; overflow:visible; }
.display-bar { position:relative; z-index:3; min-height:56px; border-bottom:1px solid #45323d; gap:10px; }
.display-bar h2 { font:12px/1.4 'Microsoft YaHei UI',sans-serif; }
#screen-name { font-family:var(--display); font-size:17px; letter-spacing:.1em; color:var(--accent-text); }
#footer-state,#link-label { font-size:10px; color:#a4a0aa; }
#link-label { max-width:45%; text-align:right; }
.art { margin:0 -23px; overflow:hidden; isolation:isolate; }
.art::after { content:''; position:absolute; inset:0; background:linear-gradient(transparent 49.5%,#a8e2e408 50%,transparent 50.5%); pointer-events:none; z-index:2; }
.art > img,.art > #idle-art { width:62%; height:76%; inset:12% auto auto 19%; object-fit:contain; z-index:1; mix-blend-mode:screen; filter:contrast(1.08) brightness(1.12); mask-image:radial-gradient(circle, #000 1.05px, #0006 1.4px, transparent 1.65px); mask-size:3.5px 3.5px; }
.art .blank { z-index:2; max-width:60%; font-size:13px; text-align:center; }
.optical-caption { position:absolute; z-index:2; top:25px; left:18px; font:9px/1.8 'GNU Unifont',monospace; letter-spacing:.12em; color:#b3a6b8; }
.optical-caption::before { content:''; display:block; width:20px; height:1px; margin-bottom:12px; background:var(--accent); }
.optical-coordinate { position:absolute; bottom:30px; right:18px; writing-mode:vertical-rl; font:9px/1.6 'GNU Unifont',monospace; letter-spacing:.17em; color:#9698a5; }
.display-foot { min-height:60px; margin:4px 0 0; padding:10px 24px; border:1px solid #80515f; border-radius:0; background:linear-gradient(90deg,#100c13,var(--faint),#0b0e14); clip-path:polygon(12px 0,calc(100% - 12px) 0,100% 12px,100% calc(100% - 12px),calc(100% - 12px) 100%,12px 100%,0 calc(100% - 12px),0 12px); }
.display-foot::after { content:''; position:absolute; left:15%; bottom:0; width:70%; height:1px; background:linear-gradient(90deg,transparent,var(--accent-text),transparent); }
#empty-message { color:var(--ink); font-family:var(--display); font-size:23px; letter-spacing:.3em; line-height:1.3; }
#empty-message::after { content:'AWAITING RESONANCE'; display:block; margin-top:5px; font:8px/1.1 'GNU Unifont',monospace; color:#b5a0b0; letter-spacing:.34em; }
.pixel-flower { width:3px; height:3px; background:var(--accent-text); box-shadow:0 -7px #7c4055,0 7px #7c4055,-7px 0 #7c4055,7px 0 #7c4055; }
.preview-meta { min-height:49px; gap:18px; font-size:10px; color:#a5a3b0; }
.preview-meta > span { min-width:0; }
.preview-meta > span:first-child { max-width:52%; }
.preview-meta svg { color:#b7a8b8; }
.motion-controls { gap:3px; margin-left:auto; }
.motion-controls button { min-width:42px; min-height:44px; font-size:10px; }
.motion-controls button[aria-pressed='true'] { text-decoration:none; border-bottom:1px solid var(--accent); }
.current-message { border-top:1px solid #483642; padding:18px 0; }
.face .art { margin:0 -12px; }
.face .art > img { width:82%; height:80%; inset:10% auto auto 9%; mask:none; filter:none; }
.face .optical-caption,.face .optical-coordinate { opacity:.4; }
#event-dot { right:9px; top:12px; z-index:4; background:#0e1019; }
.side { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:1fr 1fr; min-width:0; padding:0; border:0; gap:18px; }
.console-module { position:relative; display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start; gap:0; min-width:0; padding:24px 23px 18px; border:1px solid #3c3945; background:linear-gradient(135deg,#101019 0%,#080b10 60%); isolation:isolate; }
.console-module::before { content:''; position:absolute; right:8px; top:8px; width:12px; height:12px; border-top:1px solid #69727c; border-right:1px solid #69727c; pointer-events:none; }
.console-module::after { content:''; position:absolute; bottom:-1px; left:22px; width:30px; height:1px; background:var(--opposite); opacity:.7; }
.module-heading { position:relative; display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:4px 10px; padding-bottom:17px; border-bottom:1px solid #3e3542; }
.module-heading h2 { order:-1; font:23px/1.25 var(--display); letter-spacing:.09em; }
.module-heading .section-en { font:9px/1.5 'GNU Unifont',monospace; color:#b3a5b5; letter-spacing:.1em; }
.module-heading::after { content:''; width:4px; height:4px; background:var(--accent); position:absolute; left:0; bottom:-2px; }
.target-status { display:flex; align-items:center; gap:15px; padding:23px 0 19px; }
.target-status svg { width:39px; height:39px; stroke:#c7bbc9; stroke-width:.9; }
.target-status span { font:22px/1.4 var(--display); color:var(--accent-text); letter-spacing:.06em; overflow-wrap:anywhere; }
.role-picker { width:100%; flex:0 0 auto; max-width:none; }
.role-picker select { width:100%; min-height:45px; font-size:12px; padding:9px 32px 9px 12px; color:var(--ink); border:1px solid #605160; background:#090c12; }
.role-picker > span { right:12px; }
.role-picker svg { width:13px; height:13px; }
.module-detail { display:flex; align-items:center; justify-content:space-between; gap:6px; min-height:36px; padding:7px 0 0; font-size:11px; color:var(--muted); }
.module-detail:hover { color:var(--accent-text); }
.module-detail svg { width:12px; height:12px; }
.mode-slider { display:grid; grid-template-columns:1fr 1fr; border:0; border-radius:0; gap:8px; padding:0; margin-top:28px; }
.mode-slider-thumb { display:none; }
.mode-slider button { position:relative; min-height:86px; gap:7px; padding:16px 3px; border:1px solid #4b4754; border-radius:0; color:var(--muted); background:#0a0e15; }
.mode-slider button > span { font:23px/1.3 var(--display); letter-spacing:.13em; }
.mode-slider button small { font:8px/1.3 'GNU Unifont',monospace; letter-spacing:.12em; }
.mode-slider button[aria-pressed='true'] { color:var(--ink); border-color:var(--accent); background:linear-gradient(145deg,color-mix(in srgb,var(--accent) 20%,#100c15),#120d16); box-shadow:inset 0 -2px var(--accent); }
.mode-slider button::after { content:''; position:absolute; top:6px; left:6px; width:4px; height:4px; border:1px solid #645c6b; }
.mode-slider button[aria-pressed='true']::after { background:var(--accent-text); border-color:var(--accent-text); }
.mode-slider button:hover:enabled { background:var(--faint); color:var(--ink); }
.mode-description { color:#dfd4dc; font-size:12px; margin-top:19px; }
.mode-control .hint { color:#a4a1ad; font-size:10px; margin-top:4px; }
.dual-dials { display:flex; justify-content:space-around; gap:15px; margin-top:22px; }
.dial-group { display:grid; justify-items:center; gap:8px; min-width:0; }
.dial-group label { color:#b7aebb; font-size:11px; }
.dial { position:relative; display:grid; place-items:center; width:90px; height:90px; border-radius:50%; background:radial-gradient(circle,#11121b 0 53%,transparent 54%),repeating-conic-gradient(from 225deg,var(--accent) 0deg 1.3deg,transparent 1.3deg 5.5deg); isolation:isolate; }
.dial::before { content:''; position:absolute; inset:9px; border:1px solid #695064; border-radius:50%; background:radial-gradient(circle at 40% 30%,#23202e,#080b11 70%); box-shadow:0 3px 12px #0008; z-index:-1; }
.dial::after { content:''; position:absolute; inset:16px; border:1px solid #3f3645; border-radius:50%; }
.dial output { color:var(--ink); font:22px/1 'GNU Unifont',monospace; pointer-events:none; }
#sound-dial output { font-size:19px; }
#sound-dial { background:radial-gradient(circle,#11121b 0 53%,transparent 54%),repeating-conic-gradient(from 225deg,var(--opposite) 0deg 1.3deg,transparent 1.3deg 5.5deg); }
.dial-indicator { position:absolute; inset:4px; border-radius:50%; transform:rotate(var(--dial-angle,54deg)); pointer-events:none; }
.dial-indicator::before { content:''; position:absolute; width:3px; height:10px; top:0; left:calc(50% - 1.5px); background:var(--ink); box-shadow:0 0 8px var(--accent); }
.dial input[type='range'] { position:absolute; inset:0; width:100%; height:100%; opacity:.001; touch-action:none; z-index:2; border-radius:50%; }
.dial:has(input:focus-visible) { outline:2px solid var(--ink); outline-offset:5px; }
.sound-toggle { display:flex; gap:10px; margin:13px 0 0; }
#sound-status { width:auto; font-size:11px; }
#sound-label { font-size:10px; }
.led-switch { width:52px; }
.led-switch::before { inset:11px 0; border:1px solid #5d485b; border-radius:0; background:#0d0d16; }
.led-switch i { top:16px; left:5px; width:15px; height:12px; background-size:3px 3px; }
.led-switch[aria-checked='true'] i { transform:translateX(27px); }
.led-switch[aria-checked='true']::before { border-color:var(--accent); }
.local-audio-note { color:#a5a0ad; font-size:10px; margin-top:auto; }
.archive-status { position:relative; flex:1; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; padding:20px 0 17px; min-height:120px; gap:13px; }
.archive-status svg { width:38px; height:38px; stroke:#bcb0c0; stroke-width:.9; }
.archive-status::after { content:''; position:absolute; width:58px; height:34px; right:0; top:27px; opacity:.35; background:radial-gradient(circle,var(--opposite) .8px,transparent 1px) 0 0/6px 6px; mask-image:linear-gradient(90deg,transparent,#000); }
#home-history-summary { color:#c8bdca; font-size:12px; line-height:1.7; }
.archive-note { font:13px/1.6 var(--display); color:#aaa1af; }
.console-link { display:flex; justify-content:space-between; align-items:center; min-height:44px; padding:8px 12px; border:1px solid #605160; font-size:13px; color:var(--ink); }
.console-link svg { width:14px; height:14px; }
.console-link:hover { background:var(--faint); border-color:var(--accent); }
.slogan { position:relative; padding:31px 0 18px; margin-top:29px; border-top:1px solid #38323e; }
.slogan p:first-of-type { font:21px/1.6 var(--display); letter-spacing:.17em; }
.slogan p[lang='en'] { font:9px/1.5 'GNU Unifont',monospace; letter-spacing:.27em; color:#aa9eaf; margin-top:9px; }
.footer-trace { position:absolute; top:48px; width:16%; height:1px; background:linear-gradient(90deg,transparent,#6f455b,var(--accent)); }
.footer-trace.left { left:0; }
.footer-trace.right { right:0; transform:rotate(180deg); }
.footer-trace::after { content:''; width:4px; height:4px; border:1px solid #a78399; position:absolute; right:0; top:-2px; background:#05070b; }
.slogan .edition-foot { display:flex; align-items:center; justify-content:space-between; color:#a097a6; margin-top:26px; font:9px/1.5 'GNU Unifont',monospace; letter-spacing:.17em; }
.slogan .edition-foot i { width:4px; height:4px; border:1px solid var(--opposite); }
.back-link { min-height:44px; margin-top:22px; font-size:12px; }
.view:not(#companion) > .page-head { padding-top:14px; min-height:100px; }
.view:not(#companion) h1 { font-size:37px; }
.panel { border:1px solid #3e3847; border-radius:0; background:#090c12; }
.card-head { padding:20px 24px; border-bottom:1px solid #3d3443; }
.card-head h2,.settings-entry h2 { font:22px/1.4 var(--display); letter-spacing:.08em; }
.card-head > span { font-size:11px; }
.body { padding:24px; }
.body p { line-height:1.8; }
.body label { font-size:13px; }
.body select,.body input:not([type='checkbox']):not([type='range']):not([type='file']),.body textarea { border:1px solid #5b5061; background:#080a10; border-radius:0; }
.body textarea { min-height:100px; }
.body button,.records button { font-size:12px; }
.body dl { grid-template-columns:100px 1fr; font-size:13px; }
.two-col { gap:22px; align-items:start; }
.settings-gateways { gap:22px; }
.settings-entry { padding:22px; border:1px solid #3e3847; background:#090c12; }
.settings-entry .section-en { display:none; }
.settings-entry + .settings-entry { border-top:1px solid #3e3847; }
.settings-entry h2 { color:var(--ink); }
.settings-entry p { color:#b7aaba; }
.theme-picker { display:flex; gap:10px; }
.theme-picker button { display:flex; gap:8px; align-items:center; color:var(--ink); }
.theme-picker i { display:block; width:6px; height:6px; background:#ef3154; }
.theme-picker [data-theme='blue'] i { background:#36c3ed; }
.records li { padding:22px 24px; border-bottom:1px solid #38313e; }
.records .empty { min-height:145px; display:flex; align-items:center; justify-content:center; }
.role-note { border-top:1px solid #38313e; padding:17px 24px; }
.records p { font-size:14px; line-height:1.8; }
.records small { font-size:11px; }
.record-actions button { min-height:40px; }
.device-controls-grid { margin-top:22px; }
#feedback { z-index:10; padding:13px 18px; border:1px solid var(--accent-text); background:#15101c; border-radius:0; box-shadow:0 8px 28px #0008; font-size:13px; }
@keyframes title-interference { 0%,90%,94%,100% { opacity:0; transform:none; } 91% { opacity:.8; transform:translateX(-4px); } 92% { opacity:.65; transform:translateX(3px); } 93% { opacity:.5; transform:translateX(-1px); } }
@keyframes materialize-portrait { 0% { opacity:.4; filter:brightness(2); transform:translateX(-3px); clip-path:inset(22% 0 12%); } 18% { opacity:.9; transform:translateX(3px); clip-path:inset(0); } 28% { transform:translateX(-1px); } 48%,100% { opacity:1; transform:none; filter:contrast(1.08) brightness(1.12); clip-path:inset(0); } }
.screen.materializing .art > img:not([hidden]) { animation:materialize-portrait 1.35s var(--ease); }
:root[data-decoration-motion='paused'] #companion-title::before,:root[data-decoration-motion='paused'] #companion-title::after { animation:none; opacity:0; }
@media (min-width:1550px) { .screen { height:555px; } .console-module { padding:27px 26px 21px; } .dual-dials { margin-top:24px; } .dial { width:100px; height:100px; } .mode-slider { margin-top:33px; } .target-status { padding-block:27px 23px; } }
@media (max-width:1250px) { .wrap { width:calc(100% - 76px); } .dashboard { gap:18px; grid-template-columns:minmax(0,1.03fr) minmax(0,1fr); } .side { gap:12px; } .console-module { padding:20px 17px 16px; } .module-heading h2 { font-size:21px; } .module-heading .section-en { font-size:8px; } .screen { height:515px; } .dial { width:78px; height:78px; } .dual-dials { gap:9px; } .page-head .section-en { display:none; } .footer-trace { width:12%; } .slogan p:first-of-type { font-size:19px; } .preview-meta { gap:9px; } }
@media (max-width:1000px) and (orientation:landscape) { .wrap { width:calc(100% - 48px); } .mast { min-height:76px; } .mast-nav { gap:18px; } .edition { display:none; } .page-head { min-height:106px; } h1 { font-size:38px; } .dashboard { grid-template-columns:minmax(0,1fr) minmax(0,1.08fr); gap:14px; } .console-module { padding:19px 12px 13px; } .module-heading { gap:5px; } .module-heading h2 { font-size:19px; } .module-heading .section-en { font-size:7px; } .preview-panel { padding-inline:17px; } .art { margin-inline:-16px; } .screen { height:493px; } .dial { width:64px; height:64px; } .dial output { font-size:19px; } #sound-dial output { font-size:16px; } .mode-slider button > span { font-size:20px; } .mode-slider button small { font-size:7px; } .preview-meta { flex-wrap:wrap; padding:5px 0; } .motion-controls { margin-left:0; } .optical-caption { display:none; } .optical-coordinate { display:none; } .slogan p:first-of-type { font-size:18px; } }
@media (max-width:760px),(orientation:portrait) {
  .wrap { width:calc(100% - 36px); max-width:650px; }
  body { padding-bottom:max(16px,env(safe-area-inset-bottom)); }
  body::before { inset:8px; } body::after { left:6px; right:6px; bottom:6px; }
  .mast { min-height:83px; } .brand { gap:12px; } .brand img { width:32px; height:32px; }
  .wordmark { padding-left:12px; gap:6px; } .wordmark strong { font-size:23px; } .wordmark small { font-size:7px; letter-spacing:.26em; }
  .mast-actions { gap:8px; } .mast-nav,.edition { display:none; }
  .settings-link svg { width:27px; height:27px; }
  .page-head { min-height:102px; padding:22px 0; gap:8px; position:relative; }
  .page-head > div { gap:0; } .page-head .section-en { display:none; }
  h1 { font-size:33px; letter-spacing:.08em; }
  .brand-raven { position:absolute; width:69px; height:65px; top:6px; left:52%; margin:0; opacity:.65; }
  .service { font-size:9px !important; border:0; padding:9px 0 9px 10px; gap:6px; background:transparent; }
  .service i { width:4px; height:4px; }
  .title-fragments { width:33px; right:-16px; }
  .dashboard { grid-template-columns:1fr; gap:16px; }
  .preview-panel { padding:0 16px; }
  .screen { height:clamp(345px,90vw,510px); }
  .display-bar { min-height:45px; gap:5px; } #screen-name { font-size:15px; }
  #footer-state,#link-label { font-size:9px; }
  .art { margin:0 -15px; }
  .art > img,.art > #idle-art { width:65%; height:78%; left:17.5%; top:11%; }
  .optical-caption { top:19px; left:13px; font-size:7px; } .optical-coordinate { right:10px; bottom:19px; font-size:7px; }
  .display-foot { min-height:55px; margin:0; padding-inline:18px; }
  #empty-message { font-size:20px; letter-spacing:.26em; } #empty-message::after { font-size:7px; }
  .preview-meta { min-height:45px; padding:0; flex-wrap:wrap; gap:2px 13px; font-size:9px; }
  .motion-controls { margin-left:auto; gap:0; } .motion-controls button { min-width:35px; font-size:9px; }
  .side { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; grid-template-rows:auto auto; }
  .console-module { padding:19px 14px 15px; }
  .module-heading { min-height:43px; flex-direction:column; align-items:flex-start; gap:5px; padding-bottom:12px; }
  .module-heading h2 { font-size:21px; } .module-heading .section-en { font-size:8px; letter-spacing:.13em; }
  .target-status { padding:20px 0 17px; gap:10px; } .target-status svg { width:27px; height:27px; }
  .target-status span { font-size:19px; }
  .role-picker { max-width:none; } .role-picker select { font-size:11px; padding-left:9px; padding-right:24px; }
  .role-picker > span { right:9px; }
  .module-detail { font-size:10px; min-height:36px; }
  .mode-slider { gap:6px; margin-top:20px; }
  .mode-slider button { min-height:72px; padding:14px 1px; gap:5px; }
  .mode-slider button > span { font-size:20px; letter-spacing:.05em; }
  .mode-slider button small { font-size:7px; letter-spacing:0; }
  .mode-description { font-size:11px; margin-top:16px; } .mode-control .hint { font-size:9px; }
  .dual-dials { gap:10px; margin-top:21px; }
  .dial { width:66px; height:66px; }
  .dial::before { inset:7px; } .dial::after { inset:12px; }
  .dial output { font-size:19px; } #sound-dial output { font-size:16px; }
  .dial-indicator { inset:3px; } .dial-indicator::before { height:8px; width:2px; }
  .dial-group { gap:8px; } .dial-group label { font-size:10px; }
  .sound-toggle { gap:5px; margin-top:8px; } #sound-status { font-size:10px; } #sound-label { font-size:9px; }
  .led-switch { width:39px; } .led-switch i { width:12px; left:4px; } .led-switch[aria-checked='true'] i { transform:translateX(19px); }
  .local-audio-note { font-size:9px; }
  .archive-status { min-height:130px; padding:20px 0 15px; gap:10px; }
  #home-history-summary { font-size:11px; } .archive-note { font-size:11px; }
  .archive-status svg { width:32px; height:32px; }
  .archive-status::after { width:36px; }
  .console-link { font-size:12px; padding:8px 10px; }
  .slogan { margin-top:23px; padding:25px 0 0; }
  .slogan p:first-of-type { font-size:16px; letter-spacing:.03em; }
  .slogan p[lang='en'] { font-size:7px; letter-spacing:.14em; }
  .footer-trace { display:none; }
  .slogan .edition-foot { margin-top:23px; font-size:8px; }
  .view:not(#companion) h1 { font-size:31px; }
  .view:not(#companion) > .page-head { min-height:86px; }
  .two-col,.settings-gateways { grid-template-columns:1fr; gap:16px; }
  .settings-entry { padding:18px; }
  .card-head { padding:18px; } .card-head h2,.settings-entry h2 { font-size:20px; }
  .body { padding:18px; } .body dl { grid-template-columns:86px 1fr; font-size:12px; }
  .records li { padding:18px; } .role-note { padding:14px 18px; }
}
@media (max-width:390px) {
  .wrap { width:calc(100% - 28px); }
  h1 { font-size:29px; } .brand-raven { left:50%; width:59px; }
  .service { font-size:8px !important; }
  .console-module { padding:17px 11px 13px; } .module-heading h2 { font-size:19px; }
  .dial { width:58px; height:58px; } .dual-dials { gap:6px; }
  .dial output { font-size:17px; } #sound-dial output { font-size:15px; }
  .mode-slider button small { font-size:6px; }
  .side { gap:10px; } .target-status span { font-size:17px; }
  .preview-meta { gap:2px 8px; } .preview-meta > span:first-child { max-width:48%; }
  .optical-caption { font-size:6px; } .slogan p:first-of-type { font-size:14px; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
  #companion-title::before,#companion-title::after { opacity:0; }
}

/* Machined outlines remain independent from content and optical motion. */
.preview-panel,.console-module { border:0; clip-path:polygon(16px 0,calc(100% - 16px) 0,100% 16px,100% calc(100% - 16px),calc(100% - 16px) 100%,16px 100%,0 calc(100% - 16px),0 16px); }
.preview-panel { display:flex; flex-direction:column; background:radial-gradient(ellipse at 50% 48%,#31192b55,transparent 66%),#07090e; }
.preview-panel::before,.preview-panel::after,.console-module::before,.console-module::after,.display-foot::after { display:none; }
.screen { flex:1; }
.console-module { background:radial-gradient(ellipse at 0 0,color-mix(in srgb,var(--accent) 6%,#111019),transparent 75%),#080b10; }
.instrument-frame { position:absolute; inset:0; width:100%; height:100%; overflow:visible; pointer-events:none; fill:none; stroke:none; z-index:4; }
.instrument-frame path,.instrument-frame rect { vector-effect:non-scaling-stroke; }
.frame-outline { stroke:#695364; stroke-width:1; }
.frame-circuit { stroke:#657580; stroke-width:.65; opacity:.65; }
.frame-circuit-0 { stroke:var(--accent-text); }
.frame-circuit-1 { stroke:var(--opposite); }
.frame-light-haze { stroke:var(--accent); stroke-width:3; opacity:.25; filter:blur(2px); }
.frame-light { stroke:var(--accent-text); stroke-width:1; opacity:.85; }
.frame-return { stroke:var(--opposite); stroke-width:1.2; opacity:.8; }
.frame-terminal { fill:#080b10; stroke:#b39baa; stroke-width:.6; }
.frame-data { stroke:var(--accent); stroke-width:1.3; }
.console-module .frame-light { opacity:.45; }
.display-foot { border:0; background:radial-gradient(ellipse at 50% 100%,color-mix(in srgb,var(--accent) 12%,transparent),transparent 70%),#120c14; }
.display-foot .frame-outline { stroke:#97677c; }
.display-foot .frame-light { stroke:#f5d4df; }
.display-foot .frame-return { stroke:var(--accent-text); }
.display-foot .frame-circuit-1 { stroke:var(--accent); }
.module-heading .section-en,.mode-slider button small,#empty-message::after,.page-head .section-en,.slogan p[lang='en'] { font-family:'Arial',sans-serif; font-weight:400; }
.module-heading .section-en { letter-spacing:.17em; }
.mode-slider button small { font-size:9px; letter-spacing:.12em; }
#empty-message::after { font-size:8px; letter-spacing:.31em; }
.art > img,.art > #idle-art { filter:contrast(1.35) brightness(1.16); mask-image:radial-gradient(ellipse at 50% 50%,#000 42%,transparent 72%),radial-gradient(circle,#000 1.1px,#0008 1.35px,transparent 1.65px); mask-size:100% 100%,3.5px 3.5px; mask-composite:intersect; }
.face .art > img { mask:none; filter:none; }
.service { font-size:12px !important; }
.module-detail { font-size:12px; }
.mode-description { font-size:13px; }
.mode-control .hint { font-size:11px; }
.preview-meta { font-size:11px; }
.local-audio-note { font-size:11px; }
.console-link { font-size:14px; }
:root[data-page-visibility='hidden'] #companion-title::before,:root[data-page-visibility='hidden'] #companion-title::after { animation-play-state:paused; }
@media (min-width:1001px) and (orientation:landscape) {
  .console-module { padding:23px 23px 18px; }
  .module-heading { padding-bottom:15px; }
  .module-heading h2 { font-size:24px; }
  .side { grid-template-rows:repeat(2,minmax(0,1fr)); }
  .screen { height:auto; min-height:500px; }
  .dual-dials { margin-top:18px; }
  .dial { width:86px; height:86px; }
  .dial-group { gap:7px; }
  .sound-toggle { margin:3px 0 0; }
  .target-status { padding:23px 0 20px; }
  .mode-slider { margin-top:25px; }
  .local-audio-note { margin-top:0; }
  .slogan { margin-top:24px; padding-top:27px; }
  .slogan .edition-foot { margin-top:22px; }
}
@media (max-width:760px),(orientation:portrait) {
  .preview-panel,.console-module { clip-path:polygon(10px 0,calc(100% - 10px) 0,100% 10px,100% calc(100% - 10px),calc(100% - 10px) 100%,10px 100%,0 calc(100% - 10px),0 10px); }
  .screen { flex:auto; }
  .service { font-size:9px !important; }
  .module-detail { font-size:10px; }
  .mode-description { font-size:11px; }
  .mode-control .hint { font-size:10px; }
  .mode-slider button small { font-size:7px; letter-spacing:0; }
  .local-audio-note { font-size:9px; }
  .preview-meta { font-size:9px; }
  .console-link { font-size:12px; }
  #empty-message::after { font-size:7px; }
}
@media (max-width:390px) { .mode-slider button small { font-size:6px; } .service { font-size:8px !important; } }

.art > img,.art > #idle-art { width:72%; height:90%; left:14%; top:5%; }
.mode-slider button,.console-link { position:relative; clip-path:polygon(8px 0,calc(100% - 8px) 0,100% 8px,100% calc(100% - 8px),calc(100% - 8px) 100%,8px 100%,0 calc(100% - 8px),0 8px); border:0; }
.role-picker select { clip-path:polygon(8px 0,calc(100% - 8px) 0,100% 8px,100% calc(100% - 8px),calc(100% - 8px) 100%,8px 100%,0 calc(100% - 8px),0 8px); border-color:transparent; }
.mode-slider button .frame-circuit,.console-link .frame-circuit,.role-picker .frame-circuit { opacity:.3; }
.mode-slider button .frame-light,.console-link .frame-light,.role-picker .frame-light { opacity:.3; }
.mode-slider button .frame-return,.console-link .frame-return,.role-picker .frame-return { opacity:.45; }
.mode-slider button[aria-pressed='true'] .frame-outline,.mode-slider button[aria-pressed='true'] .frame-light { stroke:var(--accent-text); opacity:1; }
.mode-slider button[aria-pressed='true'] .frame-light-haze { stroke-width:5; opacity:.4; }
.mode-slider button[aria-pressed='true'] { box-shadow:inset 0 -2px color-mix(in srgb,var(--accent) 75%,transparent); }
.console-link:hover .frame-outline,.role-picker:focus-within .frame-outline { stroke:var(--accent-text); }
.console-link .instrument-frame { width:100%; height:100%; }
.role-picker > .instrument-frame { width:100%; height:100%; transform:none; }
.mode-slider button:focus-visible,.console-link:focus-visible { outline-offset:-4px; }
.face .art > img { width:82%; height:80%; top:10%; left:9%; }
@media (min-width:1001px) and (orientation:landscape) {
  .mast { min-height:84px; }
  .page-head { min-height:109px; padding-block:22px; }
  .screen { min-height:545px; }
  .slogan { margin-top:22px; padding-top:24px; }
  .slogan .edition-foot { margin-top:18px; }
}
@media (max-width:760px),(orientation:portrait) {
  .service { font-size:11px !important; }
  #footer-state,#link-label { font-size:11px; }
  #screen-name { font-size:15px; }
  .preview-meta { font-size:11px; }
  .module-detail,.mode-control .hint,.local-audio-note { font-size:11px; }
  #sound-status { font-size:11px; }
  #sound-label { font-size:10px; }
  .sound-toggle { flex-wrap:wrap; gap:0 6px; }
  .dial-group label { font-size:11px; }
  .mode-description { font-size:12px; }
  .art > img,.art > #idle-art { width:75%; height:92%; top:4%; left:12.5%; }
  .face .art > img { width:82%; height:80%; top:10%; left:9%; }
  .module-detail { min-height:42px; }
  .brand-raven { left:48%; width:63px; }
}
@media (max-width:390px) {
  .page-head { align-items:flex-start; padding-top:23px; padding-bottom:35px; }
  .service { position:absolute; right:0; bottom:4px; padding:5px 0; }
  .brand-raven { left:auto; right:0; top:3px; width:64px; }
  .preview-meta { font-size:11px; gap:2px 8px; }
  #link-label { max-width:39%; }
  #footer-state { font-size:11px; }
}
