*{box-sizing:border-box}body{margin:0;background:#101112;color:#eee;font:16px/1.6 system-ui,sans-serif}main{max-width:1180px;margin:auto;padding:24px}a{color:#ff792f} .brand{display:flex;align-items:center;gap:12px;font-size:24px;text-decoration:none;color:white}.brand img{width:72px}.brand b,h2{color:#ff792f}.extra-nav{display:flex;gap:18px;flex-wrap:wrap;border-bottom:1px solid #444;padding:16px 0} .grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px}article{background:#1b1d20;border:1px solid #383a3d;border-radius:10px;padding:20px;margin-bottom:12px}label{display:block;margin:8px 0}input,select,button{font:inherit;background:#101112;color:#eee;border:1px solid #666;border-radius:5px;padding:8px;max-width:100%}input[type=number]{width:100%}button{cursor:pointer;border-color:#ff792f}output{display:block;color:#ff792f;font-size:20px;margin-top:12px}canvas{width:100%;height:380px;background:#17191b;touch-action:pan-y}small{color:#bbb}
/* v43: local technical background, only on technical pages */
body.technical-page{min-height:100vh;background:#101112;isolation:isolate}body.technical-page::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,rgba(8,9,10,.12),rgba(8,9,10,.48) 28%,rgba(8,9,10,.48) 72%,rgba(8,9,10,.12)),url('../assets/technical-bg.webp') center center / cover no-repeat}body.technical-page article{background:rgba(27,29,32,.94)}

/* v45 — shared technical interface */
body.technical-page{color-scheme:dark;font:16px/1.5 system-ui,sans-serif}
.technical-page main{max-width:1800px;padding:24px clamp(16px,4vw,76px) 48px}
.tech-header{display:flex;align-items:center;gap:24px;flex-wrap:wrap;padding:12px 18px;border:1px solid #6b3b23;border-bottom:2px solid #ff781f;border-radius:16px;background:linear-gradient(165deg,#303336,#101112 55%);box-shadow:0 4px 18px #ff650033,inset 0 1px #ffffff22;margin-bottom:32px}
.tech-header .brand{font-weight:800;white-space:nowrap;gap:10px;font-size:clamp(20px,2vw,28px)}.tech-header .brand img{width:64px;height:64px;object-fit:contain}
.tech-header .extra-nav{flex:1;justify-content:flex-end;gap:8px;padding:0;border:0}
.extra-nav a{display:flex;align-items:center;justify-content:center;gap:8px;color:#f5f5f5;text-decoration:none;font-weight:750;font-size:16px;padding:11px 15px;border:1px solid #525458;border-radius:12px;background:linear-gradient(#25282b,#101112);transition:box-shadow .2s,border-color .2s}
.extra-nav a:hover,.extra-nav a[aria-current=page]{color:#ff9b40;border-color:#ff781f;box-shadow:inset 0 0 16px #ff650033,0 0 10px #ff650055}.extra-nav svg,.technical-page h1 svg,.technical-page h2 svg{width:24px;height:24px;flex:none}
.technical-page h1{display:flex;align-items:center;gap:14px;font-size:clamp(26px,3vw,42px);line-height:1.2;margin:0 0 12px;padding-bottom:14px;border-bottom:1px solid #ff781f88;text-shadow:0 2px 6px #000}.technical-page h1 svg{color:#ff8b30;width:38px;height:38px}
.technical-page main>p{margin:0 0 24px;color:#f1f1f1;text-shadow:0 1px 5px #000}
.technical-page .grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:stretch}
body.technical-page article{display:flex;flex-direction:column;min-width:0;margin:0 0 18px;padding:18px;border:1px solid #e96c25;border-radius:18px;background:linear-gradient(145deg,#292c2ff5,#101214f5 65%);box-shadow:0 0 0 3px #24170f,0 0 15px #ff65003b,inset 0 1px 2px #ffffff25,0 8px 20px #0009}
.technical-page .grid article{margin:0}.technical-page h2{display:flex;align-items:center;gap:12px;color:#fff;font-size:clamp(18px,1.5vw,24px);line-height:1.25;margin:0 0 16px;padding:12px;border:1px solid #55585b;border-radius:12px;background:linear-gradient(#333639,#151719);min-height:60px}.technical-page h2 svg{color:#ff902f;width:30px;height:30px}
.technical-page label{display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,44%);align-items:center;gap:12px;margin:6px 0;font-size:15px}.technical-page input,.technical-page select,.technical-page button{min-width:0;border:1px solid #a95024;border-radius:8px;background:#0d0f11;color:#fff;padding:9px 10px}.technical-page input:focus,.technical-page select:focus,.technical-page a:focus-visible{outline:2px solid #ff9a45;outline-offset:2px}
.technical-page output{margin-top:auto;padding:13px 12px;color:#ff943b;font-weight:800;font-size:clamp(17px,1.4vw,22px);border:1px solid #b45b2a;border-radius:10px;background:linear-gradient(#2c211a,#101112);box-shadow:inset 0 0 12px #ff650020;overflow-wrap:anywhere}.technical-page label:last-of-type{margin-bottom:20px}
.technical-page article>a{margin-top:auto;display:block;text-align:center;padding:11px;border:1px solid #e96c25;border-radius:9px;text-decoration:none;font-weight:700;color:#ff9a45;background:#181310}.technical-page article>a:hover{background:#402318}.technical-page canvas{border:1px solid #555;border-radius:10px;max-width:100%}.technical-page #status{color:#ff9a45}.technical-page input[type=file]{width:100%}.technical-page small{margin-top:12px}
@media(max-width:1100px){.technical-page .grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tech-header .extra-nav{justify-content:flex-start}.tech-header{gap:12px}}
@media(max-width:650px){.technical-page main{padding:12px 12px 30px}.tech-header{justify-content:center;padding:12px;gap:10px;margin-bottom:22px}.tech-header .extra-nav{flex:0 0 100%;justify-content:center;gap:6px}.extra-nav a{font-size:13px;padding:9px;gap:5px}.extra-nav svg{width:17px;height:17px}.technical-page .grid{grid-template-columns:1fr;gap:16px}.technical-page article{padding:14px}.technical-page label{grid-template-columns:minmax(0,1fr) minmax(90px,44%);font-size:14px}.technical-page h1 svg{width:28px;height:28px}.technical-page canvas{height:250px}}

/* v57: desktop car cursor; preserve precision controls */
@media (hover:hover) and (pointer:fine) {
 body {cursor:url('../assets/cursor-normal.png') 10 6,auto;}
 a,button,summary,[role="button"],label[for] {cursor:url('../assets/cursor-hover.png') 10 6,pointer;}
 a:active,button:active,summary:active,[role="button"]:active {cursor:url('../assets/cursor-press.png') 10 6,pointer;}
 input:not([type]),input[type="text"],input[type="number"],input[type="search"],textarea,[contenteditable="true"] {cursor:text;}
 select,input[type="checkbox"],input[type="radio"],input[type="file"] {cursor:pointer;}
 input[type="range"] {cursor:ew-resize;}
 .map-scroll {cursor:grab;}
 .map-scroll:active {cursor:grabbing;}
 canvas {cursor:crosshair;}
}
