:root{--ink:#15283e;--muted:#728296;--blue:#1267ab;--line:#e5eaf0;--pale:#f6f8fa}*{box-sizing:border-box}html,body{margin:0;width:100%;min-height:100%;background:#fff;color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}body{min-width:280px}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{color:inherit;cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,.marker:focus-visible{outline:3px solid #75b9ef;outline-offset:4px}[hidden]{display:none!important}
.app{min-height:100svh;display:flex;flex-direction:column;padding:24px 38px 20px;max-width:1920px;margin:auto}.header{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:48px;flex-wrap:wrap}.brand{margin:0;display:flex;align-items:baseline;gap:8px;font-size:21px;line-height:1;letter-spacing:.035em;white-space:nowrap}.brand strong{font-weight:850}.brand span{font-weight:350;letter-spacing:.17em;font-size:15px}.header-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}.chip,.model-link{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:20px;background:#fff;padding:8px 12px;color:var(--ink);text-decoration:none;font-size:12px;white-space:nowrap}.chip:hover,.model-link:hover{border-color:#a9c9e2}.chip[aria-pressed=true],.chip.primary:not(:disabled){color:#fff;background:#173e63;border-color:#173e63}.chip:disabled{opacity:.4;cursor:default}.model-link{color:var(--muted)}
.scene-layout{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 106px;gap:12px;align-items:center}.viewport{position:relative;width:100%;height:calc(100svh - 145px);min-height:390px;overflow:hidden;touch-action:none;isolation:isolate}.viewport.zoomed{cursor:grab}.viewport.dragging{cursor:grabbing}.image-plane{position:absolute;inset:0;transform-origin:50% 50%;will-change:transform}.floor-image{position:absolute;width:100%;height:100%;object-fit:contain;user-select:none;-webkit-user-drag:none;opacity:0;transition:opacity .2s ease}.floor-image.visible{opacity:1}.overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:hidden}.marker{pointer-events:all;cursor:pointer;touch-action:none}.editing .marker{cursor:grab}.editing .marker:active{cursor:grabbing}.marker.selected .marker-white{stroke:#173e63;stroke-width:5}.error{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:14px;padding:24px;text-align:center;pointer-events:none}
.levels{justify-self:center;display:flex;flex-direction:column;align-items:center;gap:5px;padding:9px;border:1px solid var(--line);border-radius:54px;background:var(--pale)}.level{display:flex;flex-direction:column;justify-content:center;align-items:center;width:76px;height:88px;border:1px solid transparent;border-radius:46px;background:transparent}.level:hover{background:#edf2f7}.level[aria-pressed=true]{color:var(--blue);border-color:#7bb4dc;background:#fff}.level span{font-size:31px;line-height:1;font-weight:550}.level small{margin-top:8px;font-size:9px;font-weight:550;white-space:nowrap}
.footer{min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding-right:118px}.zoom-controls{display:flex;align-items:center;gap:4px}.zoom-button{display:grid;place-items:center;width:38px;height:38px;border:1px solid var(--line);background:#fff;border-radius:50%;font-size:22px;line-height:1;font-weight:350}.zoom-button:disabled{opacity:.35;cursor:default}.reset{border:0;background:none;font-size:11px;color:var(--muted);padding:12px 11px}.download{border:0;background:none;font-size:12px;font-weight:550;white-space:nowrap}.edit-tools{position:absolute;left:12px;bottom:12px;display:flex;gap:7px;flex-wrap:wrap;z-index:3}.edit-tools button,.delete-marker{border:1px solid #dce5ee;background:#fff;color:#294464;border-radius:10px;padding:9px 12px;font-size:12px;box-shadow:0 3px 16px #18365110}.edit-tools button:disabled{opacity:.5;cursor:default}.editor-panel{position:absolute;right:12px;top:12px;z-index:4;width:235px;padding:14px;border:1px solid #dce5ee;border-radius:14px;background:#fffffff5;box-shadow:0 8px 30px #18365120}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;font-size:13px}.panel-head button{border:0;background:none;color:var(--muted);font-size:22px}.editor-panel label{display:block;margin-top:9px;font-size:11px;color:var(--muted)}.editor-panel input,.editor-panel select{display:block;width:100%;min-width:0;margin-top:5px;padding:8px;border:1px solid #dbe4ef;border-radius:8px;background:#f8fafc;color:var(--ink);font-size:13px}.coordinates{display:grid;grid-template-columns:1fr 1fr;gap:8px}.delete-marker{margin-top:14px;color:#aa4250;box-shadow:none}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:10;max-width:90%;padding:10px 16px;border-radius:10px;background:#173e63;color:#fff;font-size:12px;box-shadow:0 4px 20px #18365122}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:680px){.app{padding:16px 16px 14px}.header{gap:10px}.brand{font-size:18px}.brand span{font-size:12px}.header-actions{gap:5px;justify-content:flex-start}.chip,.model-link{font-size:10px;padding:7px 9px}.scene-layout{grid-template-columns:minmax(0,1fr);gap:7px}.viewport{height:calc(100svh - 242px);min-height:300px}.levels{flex-direction:row;gap:3px;padding:6px;border-radius:45px}.level{width:66px;height:68px}.level span{font-size:25px}.level small{font-size:8px;margin-top:6px}.footer{padding-right:0;margin-top:8px}.zoom-button{width:36px;height:36px}.editor-panel{top:8px;right:8px;width:190px;padding:10px}.edit-tools{left:8px;bottom:8px;right:8px}.edit-tools button{font-size:10px;padding:8px}.toast{bottom:12px}}
@media(max-width:350px){.app{padding-left:10px;padding-right:10px}.level{width:58px}.chip,.model-link{padding:6px}.editor-panel{width:170px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important}}
.three-container{position:absolute;inset:0;touch-action:none}.three-container canvas{display:block;width:100%;height:100%}.three-loading{position:absolute;top:12px;left:50%;transform:translateX(-50%);z-index:3;padding:9px 13px;border:1px solid var(--line);border-radius:10px;background:#fffffff2;color:var(--muted);font-size:12px;pointer-events:none}
.stairs-filter{max-width:155px;cursor:pointer}.stair-outline{fill:#419de855;stroke:#1267ab;stroke-width:3;pointer-events:all;cursor:pointer}.stair-outline.highlighted{fill:#1989ec80;stroke:#004b95;stroke-width:5}.stair-outline.selected{fill:#ffcc338c;stroke:#df8a00;stroke-width:6}.marker.muted{opacity:.3}.stair-info{position:absolute;right:12px;top:12px;z-index:4;width:225px;padding:14px;border:1px solid #dce5ee;border-radius:14px;background:#fffffff5;box-shadow:0 8px 30px #18365120;color:#294464;font-size:12px}.stair-nearby{margin-top:12px;color:var(--muted);font-size:11px}.stair-nearby div{display:flex;gap:6px;margin-top:8px}.stair-nearby button{min-width:34px;height:34px;border:1px solid #dce5ee;border-radius:9px;background:#f5f8fc;color:#1267ab;font-weight:700}@media(max-width:680px){.stairs-filter{max-width:130px}.stair-info{top:8px;right:8px;width:185px;padding:10px}}

.stair-outline{fill:#e2f2fc;stroke:#125c91;stroke-width:4}.stair-outline.highlighted{fill:#b6ddff;stroke:#004b95}.stair-outline.selected{fill:#ffe59e;stroke:#a96400}.stair-step{stroke:#125c91;stroke-width:3;pointer-events:none}.stair-run.selected .stair-step{stroke:#a96400}

/* Объёмные проступи и подступёнки на планах */
.stair-run .stair-outline{fill:transparent;stroke:none;pointer-events:all}
.stair-run .stair-tread,.stair-run .stair-riser,.stair-run .stair-side{stroke:#8b9da5;stroke-width:1.3;stroke-linejoin:round;pointer-events:all}
.stair-run .stair-tread{fill:#f5f8fa}.stair-run .stair-riser{fill:#9dabb1}.stair-run .stair-side{fill:#ccd6d9}
.stair-run.highlighted .stair-tread{fill:#daefff}.stair-run.highlighted .stair-riser{fill:#5f96bb}.stair-run.highlighted .stair-side{fill:#a0c9e2}
.stair-run.selected .stair-tread{fill:#fff4ce}.stair-run.selected .stair-riser{fill:#c39d5b}.stair-run.selected .stair-side{fill:#d9be86}

.marker.selected .poi-badge circle:nth-child(2){stroke:#ffcf55;stroke-width:5}

/* Оформление виджета для матчдэя «Торпедо». */
:root{--ink:#f4f7ff;--muted:#b2c6e2;--blue:#b7d5ff;--line:#ffffff33;--pale:#102a50}
html,body{background:#081d3d;color:var(--ink)}
.app{padding:16px 20px 14px}.brand{color:#fff}.chip,.model-link,.zoom-button{background:#102a50;color:#f5f8ff;border-color:#ffffff38}.chip:hover,.model-link:hover,.zoom-button:hover{background:#193e75;border-color:#8fbfff}.chip[aria-pressed=true],.chip.primary:not(:disabled){background:#2055a0;border-color:#6999de}.model-link{color:#ccddf7}
.viewport{background:#fff;border-radius:4px}.levels{background:#102a50;border-color:#ffffff24}.level:hover{background:#193e75}.level[aria-pressed=true]{color:#fff;background:#2055a0;border-color:#8bb9f6}.footer .reset,.footer .download{color:#d4e2f5}.editor-panel{color:#15283e}.editor-panel input,.editor-panel select{color:#15283e}.three-loading{color:#243c5b}
@media(max-width:680px){.app{padding:12px 12px 10px}.header{gap:6px}.viewport{height:calc(100svh - 220px)}}
@font-face{font-family:MatchdayPlay;src:url('../../assets/Play-Regular.woff2') format('woff2');font-display:swap}
@font-face{font-family:MatchdayRodchenko;src:url('../../assets/Rodchenko.woff2') format('woff2');font-display:swap}
html,body{font-family:MatchdayPlay,Arial,sans-serif}.brand svg{display:block;width:92px;height:46px}.level span{font-family:MatchdayRodchenko,Arial,sans-serif}.chip,.model-link,.level small,.footer{font-family:MatchdayPlay,Arial,sans-serif}
@media(max-width:680px){.brand svg{width:74px;height:37px}}
@media(max-width:680px){.viewport{height:calc(100svh - 340px)}}
html,body{background:#071631}
/* Общая светлая подложка охватывает схему и переключатель этажей. */
.scene-layout{background:#fff;border-radius:4px;padding-right:12px}
@media(max-width:680px){.scene-layout{padding:0 0 10px}.levels{margin-top:2px}}

/* Логотип на светлой подложке карты. */
.header{position:relative;z-index:2;height:0;overflow:visible;pointer-events:none}
.header .brand{position:absolute;top:20px;left:20px;margin:0;z-index:4}
.header .brand img{display:block;width:100px;height:auto}
.header-actions{display:none}.footer[hidden]{display:none}
@media(max-width:680px){.header .brand{top:10px;left:10px}.header .brand img{width:70px}}

.scene-layout{position:relative}.scene-layout .brand{position:absolute;top:18px;left:20px;margin:0;z-index:4;pointer-events:none}.scene-layout .brand img{display:block;width:100px;height:auto}@media(max-width:680px){.scene-layout .brand{top:10px;left:10px}.scene-layout .brand img{width:70px}}
/* Виджет занимает всю высоту без пустых полос над схемой и под ней. */
.app{padding:0 20px;min-height:100svh}.header{min-height:0}.viewport{height:100%;min-height:0}
@media(max-width:680px){.app{padding:0 12px}.scene-layout{grid-template-rows:minmax(0,1fr) auto}.viewport{height:100%;min-height:0}}
