#side > .logo { padding: 14px 8px 10px; }
#side > .logo .brand-logo.wm { width: auto !important; max-width: 100%; height: 40px !important; }
.side-close { display: none; }
.side-ext { margin-inline-start: auto; display: inline-flex; opacity: .55; }
[dir="rtl"] .side-ext .ic { transform: scaleX(-1); }
.side-grp > summary.side-cap { font-size: 12px; font-weight: 700; }
.side-foot { position: sticky; bottom: -18px; z-index: 2; margin-top: auto; margin-inline: -14px; margin-bottom: -18px; padding: 8px 14px calc(10px + env(safe-area-inset-bottom));
display: grid; gap: 4px; background: var(--panel-solid, var(--panel)); border-top: 1px solid var(--line); }
.sf-me { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 8px; border-radius: 12px; color: var(--fg); text-decoration: none; min-width: 0; }
.sf-me:hover, .sf-me:focus-visible, .sf-me.active { background: color-mix(in srgb, var(--primary) 9%, transparent); outline: none; }
.sf-me:focus-visible { box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 40%, transparent); }
.sf-av { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 800;
background: var(--primary-soft); color: var(--primary-2); }
.sf-who { display: grid; min-width: 0; line-height: 1.25; }
.sf-who b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-who small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-nav.sf-links { display: flex; flex-wrap: wrap; gap: 2px; }
.side-nav.sf-links a { flex: 0 1 auto; padding: 6px 10px; gap: 6px; font-size: 13.5px; min-height: 36px; }
.side-nav.sf-links a[hidden] { display: none; }
.side { height: 100vh; }
@supports (height: 100dvh) { .side { height: 100dvh; } #app.shelled { min-height: 100dvh; } }
@media (max-width: 860px) {
.side { width: min(300px, 86vw); }
.side-close { display: inline-grid; place-items: center; position: absolute; top: 10px; inset-inline-end: 8px; width: 44px; height: 44px; z-index: 3; }
#side > .logo { padding: 16px 56px 10px 8px; }
[dir="rtl"] #side > .logo { padding: 16px 8px 10px 56px; }
#side > .logo .brand-logo.wm { height: 28px !important; }
.side-nav a { min-height: 44px; }
.side-grp > summary.side-cap { min-height: 44px; }
}
.tabbar { display: none; }
@media (max-width: 860px) {
.tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; z-index: 60; inset-inline: 0; bottom: 0;
height: calc(56px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
background: var(--panel-solid, var(--panel)); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgb(0 0 0 / .06); }
.tb-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; min-height: 44px;
padding: 4px 2px 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 11.5px; font-weight: 600; line-height: 1.2;
text-decoration: none !important; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tb-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-item:hover { color: var(--fg); }
.tb-item[aria-current="page"], .tb-item[aria-expanded="true"] { color: var(--primary-2, var(--primary)); }
.tb-item[aria-current="page"]::before { content: ""; position: absolute; top: 0; inset-inline: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--primary); }
.tb-item:focus-visible { outline: 2px solid var(--primary); outline-offset: -4px; border-radius: 12px; }
#app.shelled .main { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
body.kb-open .tabbar { display: none; }
body.kb-open #app.shelled .main { padding-bottom: 0; }
:root:has(#tabbar) .toasts { bottom: calc(68px + env(safe-area-inset-bottom)); }
:root:has(#tabbar) .eye-rest { bottom: calc(68px + env(safe-area-inset-bottom)); }
:root:has(#tabbar) .net-dot { bottom: calc(64px + env(safe-area-inset-bottom)); }
:root:has(#tabbar) .utd-doc-grid.ol-open .utd-outline { bottom: calc(64px + env(safe-area-inset-bottom)); }
:root:has(#tabbar) body.kb-open :is(.eye-rest, .net-dot) { bottom: 10px; }
.side-toggle, #theme-toggle { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { .tb-item[aria-current="page"]::before { animation: none; } }
.bell-pop .bp-card { position: fixed; z-index: 90; width: min(360px, calc(100vw - 16px)); max-height: min(70vh, 520px); overflow: auto; overscroll-behavior: contain;
background: var(--panel-solid, var(--panel)); color: var(--fg); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow-lg); outline: none;
animation: pop .15s var(--ease); }
.bp-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 4px 16px; }
[dir="rtl"] .bp-head { padding: 8px 16px 4px 8px; }
.bp-head h2 { margin: 0; font-size: 16px; }
.bp-head .icon-btn { width: 40px; height: 40px; }
.bp-body { padding: 0 10px 12px; }
.bp-body .list-row { min-height: 44px; }
.bell-pop.out { opacity: 0; transition: opacity .15s; }
.bell-pop.sheet .bp-back { position: fixed; inset: 0; z-index: 89; background: rgb(2 6 23 / .45); animation: fade .15s; }
.bell-pop.sheet .bp-card { inset-inline: 0; bottom: 0; top: auto; width: 100%; max-height: 75vh; border-radius: 18px 18px 0 0; border-bottom: 0;
padding-bottom: env(safe-area-inset-bottom); animation: bp-up .2s var(--ease); }
@supports (height: 100dvh) { .bell-pop.sheet .bp-card { max-height: 75dvh; } }
.bell-pop.sheet .bp-head { padding-top: 16px; }
.bell-pop.sheet .bp-head .icon-btn { width: 44px; height: 44px; }
.bp-grip { position: absolute; top: 6px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--line-2); }
@keyframes bp-up { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .bell-pop .bp-card, .bell-pop .bp-back { animation: none; } }
@supports (height: 100dvh) {
.modal { max-height: calc(100dvh - 32px); }
.boot, .bare-outlet, .runner-loading, .auth-page { min-height: 100dvh; }
.vb-v-card { max-height: calc(100dvh - 32px); }
.utd-zoom img { max-height: calc(100dvh - 40px); }
.lx-nav, .utd-outline { max-height: calc(100dvh - var(--top) - 96px); }
.zoom-stage { height: min(72dvh, 760px); }
.media-view video { max-height: 76dvh; } .media-view img { max-height: 78dvh; }
@media (max-width: 860px) { .vb-v-card { max-height: 100dvh; } .utd-doc-grid.ol-open .utd-outline { max-height: 72dvh; } }
}
.refs-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.refs-head h1 { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 24px; }
.refs-head h1 .ic { color: var(--primary); }
.refs-search { display: grid; gap: 10px; padding: 14px; margin-bottom: 16px; }
.refs-q-row { display: flex; align-items: center; gap: 8px; }
.refs-q-ic { display: inline-flex; color: var(--muted); }
.refs-q-row .input { flex: 1; min-width: 0; min-height: 44px; }
.refs-q-row .btn { min-height: 44px; }
.refs-scope { display: flex; flex-wrap: wrap; gap: 6px; }
.refs-scope .chip { cursor: pointer; min-height: 36px; font: inherit; font-size: 13px; font-weight: 600; }
.refs-scope .chip.on { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-2); }
.refs-scope .chip:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.ref-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.ref-tile { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px;
background: var(--panel); color: var(--fg); text-decoration: none !important; }
.ref-tile:hover, .ref-tile:focus-visible { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px var(--primary-soft); }
.ref-tile-ic { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--primary-soft); color: var(--primary-2); }
.ref-tile-main { flex: 1; display: grid; min-width: 0; }
.ref-tile-main b { font-size: 15px; }
.ref-tile-main small { color: var(--muted); font-size: 12.5px; }
[dir="rtl"] .ref-tile > .ic:last-child { transform: scaleX(-1); }
@media (max-width: 860px) {
.refs-q-row .btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.refs-scope .chip { min-height: 44px; padding-inline: 14px; }
}
.d2-qs { display: grid; gap: 8px; margin: 4px 0 6px; }
.d2-qs-row { display: flex; gap: 6px; }
.d2-qs-row .input { flex: 1; min-width: 0; min-height: 40px; }
.d2-qs-row .btn { min-width: 40px; min-height: 40px; justify-content: center; }
.d2-qs-scope { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; border: 0; }
.d2-sc { position: relative; display: inline-flex; cursor: pointer; }
.d2-sc input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.d2-sc span { padding: 4px 11px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--fg-2); background: var(--card); }
.d2-sc input:checked + span { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-2); }
.d2-sc input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.d2-tool[hidden] { display: none; }
@media (max-width: 860px) { .d2-qs-row .input, .d2-qs-row .btn { min-height: 44px; } .d2-sc span { padding: 9px 14px; } }
@media (max-width: 860px) {
.utd-tools, .lx-tools { position: sticky; top: var(--top); z-index: 20; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none;
padding: 6px 8px; border-radius: 12px; overscroll-behavior-x: contain; }
.utd-tools::-webkit-scrollbar, .lx-tools::-webkit-scrollbar { display: none; }
.utd-tools > *, .lx-tools > * { flex: none; }
.utd-tools .btn, .lx-tools .btn { min-height: 44px; white-space: nowrap; }
.utd-find, .lx-find { flex: 1 0 160px !important; min-width: 160px; }
.utd-find .input, .lx-find .input, .lx-jump { min-height: 44px; }
.lx-jump { width: 150px; }
}
#runner:not(.split-on):not(.zen-done) .mr-body { grid-template-columns: minmax(0, 1fr); }
#runner.labs-open:not(.split-on):not(.zen-done) .mr-body { grid-template-columns: minmax(0, 1fr) 360px; }
@media (max-width: 1100px) { #runner.labs-open:not(.split-on):not(.zen-done) .mr-body { grid-template-columns: minmax(0, 1fr); } }
.mr-exit { display: none; }
button.mr-count { border: 0; background: none; color: inherit; font: inherit; font-weight: 700; cursor: pointer; padding: 4px 8px; min-height: 36px; border-radius: 8px; }
button.mr-count:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); }
button.mr-count:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.tool-more-pop .tmp-creator { flex-wrap: wrap; row-gap: 6px; padding-inline-end: 6px; }
.tool-more-pop .tmp-creator .tmp-lbl { flex: 1 0 100%; }
.tool-more-pop .tmp-creator select { flex: 1; min-width: 0; max-width: 220px; }
#runner .mr-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 12px; }
#runner .mr-foot .foot-lead, #runner .mr-foot .foot-end { flex: 1 1 0; min-width: 0; }
#runner .mr-foot .foot-end { justify-content: flex-end; flex-wrap: wrap; }
#runner .mr-foot .foot-end .back-menu-foot { display: inline-flex; }
@media (min-width: 1025px) { #runner.sim .mr-foot .foot-end .back-menu-foot { display: none; } }
.foot-cluster { flex: 0 1 auto; display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; }
#runner .mr-foot .qnav.foot { display: grid; width: 44px; height: 44px; border-radius: 12px; opacity: .7; }
#runner .mr-foot .qnav.foot .qnav-chev { width: 14px; height: 30px; }
#runner .mr-foot .qnav.foot:disabled { opacity: .2; }
#runner .qnav.side { display: none; }
#runner.zen-done .qnav.side { display: grid; }
#runner.zen-done .mr-foot .qnav.foot { display: none; }
#runner .foot-lead #show-expl { white-space: nowrap; }
[dir="rtl"] #foot-next .ic { transform: scaleX(-1); }
@media (min-width: 721px) {
#runner .mr-foot .foot-end::before { content: ""; flex: none; align-self: stretch; width: 1px; margin-inline-end: 4px; background: var(--line-2); }
}
@media (max-width: 720px) {
#runner .mr-top { flex-wrap: nowrap; gap: 6px; padding: 4px 8px; min-height: 48px; }
#runner .mr-top :is(.mr-brand, .mr-crumbs, .mr-mode, #zen, #map, #split, #me, .zen-hint) { display: none !important; }
#runner .mr-exit { display: grid; }
#runner .mr-top::after { display: none !important; }
#runner .mr-top > .mr-exit { order: -3; }
#runner .mr-top > button.mr-count { flex: 1 1 auto; min-width: 0; text-align: start; }
#runner .mr-top .mr-icon, #runner .mr-top .mr-status { min-width: 44px; min-height: 44px; }
#runner .mr-top .mr-icon { width: 44px; height: 44px; }
#runner .mr-top button.mr-count { margin-inline-end: auto; min-height: 44px; font-size: 14px; }
#runner .mr-tools { min-height: 52px; padding: 4px 8px; gap: 4px; }
#runner .mr-tools .tool { min-width: 44px; min-height: 44px; justify-content: center; }
#runner .mr-foot { padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
#runner .mr-foot .foot-end { display: none; }
#runner .mr-foot .foot-lead { flex: 0 0 auto; }
#runner .mr-foot .foot-lead:empty { display: none; }
#runner .mr-foot .foot-lead #show-expl { min-width: 44px; min-height: 48px; padding: 0 12px; }
#runner .mr-foot .foot-lead .fe-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#runner .mr-foot .foot-cluster { flex: 1; }
#runner .mr-foot #foot-actions { flex: 1; justify-content: center; }
#runner .mr-foot #foot-actions .btn { flex: 1; min-height: 48px; justify-content: center; }
#runner .mr-foot .qnav.foot { width: 44px; height: 48px; opacity: .85; }
#runner .mr-foot .qnav.foot:disabled { opacity: .25; }
.mr-exit-sheet { align-self: flex-end; width: 100%; border-radius: 18px 18px 0 0; }
.mr-exit-sheet .list-row { min-height: 48px; }
}
