:root { --brow-h: 35px; }
@media (max-width: 700px) { :root { --brow-h: 56px; } }
@media (max-width: 360px) { :root { --brow-h: 52px; } }

.tott-brow {
    --tb-cur:      rgba(255, 255, 255, .55);
    --tb-ink:      rgba(255, 255, 255, .5);
    --tb-ink-hi:   #eef0f4;

    position: relative;
    z-index: 1100;
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2px 10px;
    margin: 0;
    padding: max(7px, env(safe-area-inset-top, 0px)) 14px 7px;
    background: rgba(5, 6, 10, .92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    font-family: "JetBrains Mono", ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
    font-size: 11px;
    line-height: 1.45;
    letter-spacing: .1em;
    text-align: center;
}

.tott-brow::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--tb-cur), transparent);
    opacity: .55;
    pointer-events: none;
}

.tott-brow a {
    color: var(--tb-ink);
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 2px 5px;
    border-radius: 3px;
    transition: color .15s ease, background-color .15s ease;
}
.tott-brow a:hover {
    color: var(--tb-node, var(--tb-ink-hi));
    background: rgba(255, 255, 255, .05);
    text-decoration: none;
}
.tott-brow a:focus-visible {
    color: var(--tb-node, var(--tb-ink-hi));
    outline: 1px solid var(--tb-node, var(--tb-ink-hi));
    outline-offset: 1px;
}

.tott-brow a.current {
    color: var(--tb-node, var(--tb-ink-hi));
    font-weight: 700;
    background: var(--tb-node-soft, rgba(255, 255, 255, .06));
    text-shadow: 0 0 14px var(--tb-node-glow, transparent);
}
.tott-brow a.current:hover { background: var(--tb-node-soft, rgba(255, 255, 255, .06)); }

.tott-brow .tb-sep {
    color: rgba(255, 255, 255, .16);
    -webkit-user-select: none;
    user-select: none;
}

.tott-brow .tb-tott    { --tb-node: #00E559; --tb-node-soft: rgba(0, 229, 89, .16);    --tb-node-glow: rgba(0, 229, 89, .5); }
.tott-brow .tb-private { --tb-node: #FFAD86; --tb-node-soft: rgba(255, 173, 134, .16); --tb-node-glow: rgba(255, 173, 134, .5); }
.tott-brow .tb-forum   { --tb-node: #B026FF; --tb-node-soft: rgba(176, 38, 255, .18);  --tb-node-glow: rgba(176, 38, 255, .55); }
.tott-brow .tb-soft    { --tb-node: #2A8CFF; --tb-node-soft: rgba(42, 140, 255, .18);  --tb-node-glow: rgba(42, 140, 255, .55); }
.tott-brow .tb-re      { --tb-node: #FF2A2A; --tb-node-soft: rgba(255, 42, 42, .16);   --tb-node-glow: rgba(255, 42, 42, .5); }
.tott-brow .tb-shop    { --tb-node: #00FF41; --tb-node-soft: rgba(0, 255, 65, .14);    --tb-node-glow: rgba(0, 255, 65, .45); }
.tott-brow .tb-box     { --tb-node: #00FF41; --tb-node-soft: rgba(0, 255, 65, .14);    --tb-node-glow: rgba(0, 255, 65, .45); }
.tott-brow .tb-drop    { --tb-node: #00E6D6; --tb-node-soft: rgba(0, 230, 214, .16);   --tb-node-glow: rgba(0, 230, 214, .5); }
.tott-brow .tb-sec     { --tb-node: #B026FF; --tb-node-soft: rgba(176, 38, 255, .18);  --tb-node-glow: rgba(176, 38, 255, .55); }
.tott-brow .tb-archive { --tb-node: #FFB020; --tb-node-soft: rgba(255, 176, 32, .16);  --tb-node-glow: rgba(255, 176, 32, .5); }

.tott-brow.is-tott    { --tb-cur: rgba(0, 229, 89, .55); }
.tott-brow.is-private { --tb-cur: rgba(255, 173, 134, .55); }
.tott-brow.is-forum   { --tb-cur: rgba(176, 38, 255, .55); }
.tott-brow.is-soft    { --tb-cur: rgba(42, 140, 255, .55); }
.tott-brow.is-re      { --tb-cur: rgba(255, 42, 42, .55); }
.tott-brow.is-shop    { --tb-cur: rgba(0, 255, 65, .5); }
.tott-brow.is-box     { --tb-cur: rgba(0, 255, 65, .5); }
.tott-brow.is-drop    { --tb-cur: rgba(0, 230, 214, .55); }
.tott-brow.is-sec     { --tb-cur: rgba(176, 38, 255, .55); }
.tott-brow.is-archive { --tb-cur: rgba(255, 176, 32, .55); }

@media (max-width: 700px) {
    .tott-brow {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1px 6px;
        padding: max(6px, env(safe-area-inset-top, 0px)) 8px 6px;
        font-size: 10px;
        letter-spacing: .06em;
    }
    .tott-brow a { padding: 3px 5px; }
    .tott-brow .tb-sep { display: none; }
}
@media (max-width: 360px) {
    .tott-brow { font-size: 9px; gap: 1px 4px; }
    .tott-brow a { padding: 3px 4px; }
}

@media (prefers-reduced-motion: reduce) {
    .tott-brow a { transition: none; }
}
@media print {
    .tott-brow { display: none; }
}
