.skip-link {
    position: absolute; left: 12px; top: -48px; z-index: 10000;
    background: #111; color: #fff; padding: 8px 12px; border-radius: 6px;
    text-decoration: none; font: 600 14px/1.2 system-ui, sans-serif;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid #58a6ff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
.qol-toast-wrap {
    position: fixed; right: 16px; bottom: 16px; z-index: 10001;
    display: flex; flex-direction: column; gap: 8px; max-width: min(360px, 92vw);
    pointer-events: none;
}
.qol-toast {
    pointer-events: auto; background: rgba(15, 20, 25, 0.94); color: #e6edf3;
    border: 1px solid rgba(88, 166, 255, 0.45); border-radius: 8px;
    padding: 10px 12px; font: 14px/1.4 system-ui, sans-serif;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.qol-top {
    position: fixed; right: 18px; bottom: 72px; z-index: 9998;
    display: none; width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.28); background: rgba(12,12,16,0.82);
    color: #fff; cursor: pointer; font-size: 18px;
}
.qol-top.is-on { display: inline-flex; align-items: center; justify-content: center; }
.qol-palette {
    display: none; position: fixed; inset: 0; z-index: 10002;
    background: rgba(0,0,0,0.55); padding: 12vh 16px 16px;
}
.qol-palette.is-open { display: block; }
.qol-palette-box {
    max-width: 560px; margin: 0 auto; background: #11161c; color: #e6edf3;
    border: 1px solid #30363d; border-radius: 10px; overflow: hidden;
    font: 15px/1.4 system-ui, sans-serif;
}
.qol-palette-box input {
    width: 100%; border: 0; background: #0d1117; color: inherit;
    padding: 14px 16px; font: inherit; outline: none;
}
.qol-palette-box ul { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow: auto; }
.qol-palette-box li button {
    width: 100%; text-align: left; background: transparent; color: inherit;
    border: 0; padding: 10px 12px; cursor: pointer; border-radius: 6px;
}
.qol-palette-box li button:hover, .qol-palette-box li button.is-on { background: #21262d; }
.qol-hint { font-size: 0.78rem; opacity: 0.72; margin: 6px 0 0; }
.qol-recent { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.qol-recent a {
    text-decoration: none; font-size: 0.78rem; padding: 5px 8px;
    border: 1px solid currentColor; opacity: 0.88;
}
.ext-mark { font-size: 0.72em; opacity: 0.7; margin-left: 4px; }
button[data-qol-busy], .btn[data-qol-busy] { opacity: 0.65; pointer-events: none; }
.map-resize-l, .map-resize-r {
    position: absolute; top: 0; bottom: 0; width: 10px; z-index: 45;
    cursor: ew-resize; background: linear-gradient(90deg, rgba(255,210,0,0.08), rgba(255,210,0,0.35), rgba(255,210,0,0.08));
}
.map-resize-l { left: 0; }
.map-resize-r { right: 0; }
.map-resize-l:hover, .map-resize-r:hover { background: rgba(255, 210, 0, 0.45); }
.map-resize-hint { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); z-index: 46;
    background: rgba(0,0,0,0.72); color: #ffe8b0; font: 12px/1.3 system-ui, sans-serif;
    padding: 4px 8px; border-radius: 4px; pointer-events: none; white-space: nowrap; }
.qol-help {
    display: none; position: fixed; inset: 0; z-index: 10003;
    background: rgba(0,0,0,0.55); padding: 14vh 16px 16px;
}
.qol-help.is-open { display: block; }
.qol-help-box {
    max-width: 420px; margin: 0 auto; background: #11161c; color: #e6edf3;
    border: 1px solid #30363d; border-radius: 10px; padding: 18px 20px;
    font: 15px/1.5 system-ui, sans-serif;
}
.qol-help-box h3 { margin: 0 0 10px; }
.qol-help-box ul { margin: 0 0 12px; padding-left: 18px; }
.qol-help-box kbd {
    display: inline-block; border: 1px solid #8b949e; border-radius: 4px;
    padding: 0 5px; font: 12px/1.6 ui-monospace, monospace;
}
.qol-offline {
    display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 10004;
    background: #8a1f1f; color: #fff; text-align: center;
    padding: 8px 12px; font: 14px/1.3 system-ui, sans-serif;
}
.qol-offline.is-on { display: block; }
.qol-crumbs {
    font: 13px/1.4 system-ui, sans-serif; opacity: 0.8; margin: 0 0 10px;
}
.qol-crumbs a { color: inherit; }
a.qol-last { box-shadow: inset 0 0 0 1px rgba(88,166,255,0.45); }
.qol-count {
    display: inline-block; margin-left: 8px; font: 12px/1.4 system-ui, sans-serif; opacity: 0.7;
}
.qol-keys {
    position: fixed; left: 12px; bottom: 10px; z-index: 9990;
    font: 11px/1.3 system-ui, sans-serif; opacity: 0.55; pointer-events: none;
    color: inherit;
}
@media print {
    .global-nav-section, .it-top, .qol-top, .qol-keys, .qol-palette, .qol-help, .live-art-root, .skip-link { display: none !important; }
}
@media (max-width: 720px) {
    .qol-keys { display: none; }
}
body:has(.mf-card) .qol-keys {
    display: none;
}
