[hidden] { display: none !important; }
.app-shell { grid-template-columns: 64px minmax(0, 1fr); }
.rail { background: #252838; border-color: #484e64; }
.rail-button { position: relative; width: 64px; height: 66px; color: #8491ab; border-color: #484e64; transition: background .15s, color .15s; }
.rail-button svg { width: 26px; height: 26px; stroke-width: 1.65; }
.rail-button:hover { color: #d5dff0; background: #30364b; }
.rail-button.active { background: #1461ff; color: #fff; }
.rail-button--expandable::after { content: ''; position: absolute; right: 9px; bottom: 9px; width: 0; height: 0; border-left: 6px solid transparent; border-bottom: 6px solid currentColor; opacity: .85; }
.sidebar-menu { position: absolute; z-index: 6; left: 12px; width: 272px; max-width: calc(100% - 24px); padding: 5px; border: 1px solid #4e566f; border-radius: 6px; background: #1c1f2d; box-shadow: 0 14px 36px #0008; }
.sidebar-menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 49px; border: 0; border-radius: 3px; padding: 10px 13px; background: transparent; color: #d7e1f1; text-align: left; font-size: 14px; }
.sidebar-menu button:hover,.sidebar-menu button:focus-visible { background: #2b3852; color: #fff; outline: none; }
.sidebar-menu button span { margin-left: auto; color: #8a9eba; }
.sidebar-menu small { margin-left: auto; color: #8e9bb1; font-size: 10px; white-space: nowrap; }
.entity-panel,.layers-panel { left: 12px; right: auto; top: 16px; width: 288px; }
.entity-panel__note { padding: 0 18px 15px; color: #91a1b8; line-height: 1.6; font-size: 11px; }
.factory-list { left: 12px; top: 16px; max-height: calc(100% - 32px); width: min(330px, calc(100% - 24px)); }
.factory-list .panel-heading { padding-bottom: 12px; }
.factory-layer-row { margin-bottom: 12px; border-bottom: 1px solid #2a3547; }
.layer-row { cursor: default; }
.map-switch { display: inline-flex; align-items: center; flex-shrink: 0; width: 40px; height: 24px; padding: 3px; border: 0; border-radius: 20px; background: #51596d; transition: background .18s; cursor: pointer; }
.map-switch span { width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0005; transform: translateX(0); transition: transform .18s; }
.map-switch[aria-checked="true"] { background: #34c759; }
.map-switch[aria-checked="true"] span { transform: translateX(16px); }
.map-switch:focus-visible { outline: 2px solid #87b0ff; outline-offset: 3px; }
.factory-directory-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.factory-directory-actions button { padding: 0; border: 0; color: #a9b9cf; background: transparent; font-size: 11px; }
.factory-list-note { font-size: 10px; }
.point-popup.factory-preview { width: 246px; border-color: #495872; border-radius: 9px; background: #182335f7; box-shadow: 0 10px 32px #0007; }
.factory-preview__link { padding: 13px 29px 11px 13px; border-radius: 9px; }
.factory-preview__link strong { font-size: 12px; margin-bottom: 3px; line-height: 1.4; }
.factory-preview__link > span { font-size: 10px; }
.factory-preview__metrics { gap: 7px 8px; margin: 12px 0 9px; font-size: 11px; }
.factory-preview__metrics dt { color: #9aadc5; }
.factory-preview__metrics dd { color: #edf3fd; }
.factory-preview__metrics dd:last-child { color: #ffce78; }
.factory-preview__close { top: 5px; right: 5px; font-size: 20px; }
.factory-preview__status { margin-top: 10px; color: #91a4bd; font-size: 10px; }
.factory-preview__position { margin-top: 5px; color: #91a4bd; }
.point-popup.factory-preview { max-height: calc(100% - 16px); overflow: auto; }
.quotes-page { position: absolute; inset: 0; display: grid; place-items: center; z-index: 5; background: #0e1522; cursor: default; }
.quotes-page__content { max-width: 420px; padding: 28px; text-align: center; }
.quotes-page__icon { display: block; width: 64px; margin: 0 auto 25px; padding: 11px; border: 1px solid #354a6c; border-radius: 16px; color: #6c9fff; font-size: 34px; background: #172843; }
.quotes-page h1 { margin: 10px 0; color: #edf3fd; font-size: 27px; }
.quotes-page p { color: #98a9c0; font-size: 14px; line-height: 1.7; }
.quotes-page button { margin-top: 17px; padding: 10px 17px; border: 1px solid #45699f; border-radius: 5px; background: #1b365c; color: #d9e9ff; font-size: 12px; }
@media(max-width:560px) { .app-shell { grid-template-columns: 54px minmax(0, 1fr); } .rail-button { width: 54px; height: 59px; } .rail-button svg { width: 24px; height: 24px; } }
@media(prefers-reduced-motion:reduce) { .map-switch,.map-switch span { transition: none; } }
