.portal-history-nav,html[data-theme] body .portal-history-nav{--nav-ink:#ddd9f3;--nav-line:#514975;--nav-active:#2c2857;--nav-accent:#c6ff75;display:flex;justify-content:space-between;align-items:center;gap:12px;max-width:1240px;margin:0 auto;padding:5px 24px;border-bottom:1px solid var(--nav-line);font:13px/1.4 Arial,Helvetica,sans-serif;color:var(--nav-ink);box-sizing:border-box}
html[data-theme=light] body .portal-history-nav{--nav-ink:#444866;--nav-line:#cdcee6;--nav-active:#eae4ff;--nav-accent:#5437b5}
.portal-history-nav[hidden]{display:none!important}
.portal-history-nav a{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:0 12px;color:inherit;text-decoration:none;border-radius:10px;box-sizing:border-box;font-weight:700;white-space:nowrap}
.portal-nav-shortcuts{display:flex;align-items:center;gap:4px;min-width:0}
.portal-history-nav svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.portal-history-nav a:hover,html[data-theme] body .portal-history-nav a:hover,.portal-history-nav a[aria-current=page]{background:var(--nav-active);color:var(--nav-accent)}
.portal-history-nav a:focus-visible{outline:2px solid var(--nav-accent);outline-offset:2px}
@media(max-width:600px){.portal-history-nav,html[data-theme] body .portal-history-nav{padding:4px 12px;font-size:12px;gap:8px}.portal-history-nav a{padding:0 8px;gap:5px}.portal-nav-shortcuts{gap:2px}}
@media(max-width:440px){.portal-history-nav,html[data-theme] body .portal-history-nav{padding:4px 10px;gap:5px}.portal-nav-shortcuts a{flex-direction:column;gap:2px;padding:4px 7px;min-width:43px;min-height:44px;font-size:10px}.portal-history-nav .portal-nav-back{padding:0 7px;font-size:12px;min-height:44px}}
@media print{.portal-history-nav{display:none!important}}
