.shell{width:min(100%,1140px)}header{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:.85rem;margin-bottom:18px}a{color:#8fd8ff}h1{font-size:clamp(1.6rem,4vw,2.3rem);margin:18px 0 6px}.goal{margin:0 0 18px;color:var(--muted)}button{font:inherit;padding:10px 14px;min-height:44px;border:1px solid #35516d;border-radius:12px;background:#13253a;color:#f5f8fb;cursor:pointer;margin:3px}button:disabled{opacity:.4;cursor:default}.primary,button[aria-pressed=true]{background:#16494e;border-color:#35d0c8}button:focus-visible,a:focus-visible,summary:focus-visible,[role=button]:focus-visible{outline:3px solid #fbbf24;outline-offset:3px}.stage{border:1px solid var(--line);border-radius:22px;background:#0d1b2b;padding:16px}#scene{position:relative}#scene svg{display:block;width:100%;height:auto;overflow:visible}.region{fill:#35d0c80a;stroke:#35d0c855;stroke-dasharray:5 5}.region.second{fill:#5da9ff0a;stroke:#5da9ff55}.wire{stroke:#41617d;stroke-width:3;fill:none}.wire.active{stroke:#35d0c8}.device-icon{fill:#102b40;stroke:#a4bed4;stroke-width:2}.active .device-icon{stroke:#35d0c8;fill:#16494e}.stopped .device-icon{stroke:#fb7185;fill:#431d30}.device-choice{cursor:pointer}.device-choice .device-icon{stroke:#fbbf24;stroke-dasharray:4 3}.scene-label{fill:#e7f2fc;font-size:13px}.small{fill:#a8b7c7;font-size:11px}.network{fill:#7ce8d4;font-size:12px}.bubble{fill:#153d43;stroke:#35d0c8}.bubble-text{fill:#e6fffc;font-size:12px}.cache{fill:#a6e4c8;font-size:10px}.packet{fill:#35d0c8;stroke:#07111f;stroke-width:2}.packet.request{fill:#fbbf24}.packet.reply{fill:#a5a2ff}.packet-label{fill:#07111f;font-size:10px;font-weight:800}.compare{fill:#fbbf24;font-size:12px}.controls{display:flex;align-items:center;flex-wrap:wrap;gap:4px;margin-top:10px}#position{font-size:.8rem;color:var(--muted);margin-left:auto}#prompt:empty{display:none}#prompt{padding:12px;border-left:3px solid #fbbf24;background:#fbbf240a;margin:8px 0}#frame{border:1px solid var(--line);border-radius:18px;padding:16px;margin-top:16px}.frame-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.field{min-width:0;font-size:.85rem}.field strong{display:block;color:var(--muted);font-size:.75rem;margin-bottom:7px}.field span{display:block;overflow-wrap:anywhere}.change{color:#fbbf24}.change small{display:block}.same{color:#7ee4bd}.routing{display:flex;flex-wrap:wrap;gap:12px;padding:12px;background:#35d0c80b;border-radius:12px;margin-bottom:14px}.routing b{color:#fbbf24}.model-card{border:1px solid var(--line);border-radius:14px;padding:14px;margin-top:14px}summary{cursor:pointer}details p{font-size:.85rem;line-height:1.6;color:var(--muted)}dl{display:grid;grid-template-columns:1fr 2fr;gap:8px}dd{margin:0;overflow-wrap:anywhere}#terms{margin-top:14px}#terms button{font-size:.8rem;padding:5px 10px;min-height:36px}#definition{padding:12px;background:#13253a;border-radius:10px}#save{font-size:.75rem;color:var(--muted)}#repair{margin-top:14px}#repair p{line-height:1.5}#repair .checks{border-left:2px solid #5da9ff;padding-left:12px}[hidden]{display:none!important}@media(max-width:600px){.shell{padding:14px}.stage{padding:10px}.controls{position:relative}#scene svg{max-height:none}h1{font-size:1.65rem}header{font-size:.72rem}.frame-grid{grid-template-columns:1fr 1fr}.field:last-child{grid-column:1/-1}.controls button{padding:9px 11px;font-size:.85rem}#position{width:100%;margin:6px 0 0}.routing{font-size:.8rem}dl{grid-template-columns:1fr}dd{margin-bottom:8px}#modes button{font-size:.82rem;padding:9px 11px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
#scene text,#scene .region,#scene .wire{pointer-events:none}
