/* Small persistent history controls, directly under the existing header. */
#mas-nav{display:flex;justify-content:flex-end;gap:5px;padding:3px clamp(10px,3vw,28px);background:var(--sb-bg,#f4f5f7);border-bottom:1px solid var(--sb-line,#e0e4eb);direction:ltr}
#mas-nav button{display:grid;place-items:center;width:32px;height:30px;min-width:32px;border:1px solid var(--sb-line,#d5dbe4);border-radius:7px;padding:0;color:var(--sb-dark,#202b38);background:#fff;cursor:pointer}
#mas-nav button svg{width:17px;height:17px;pointer-events:none}
#mas-nav button:disabled{opacity:.38;cursor:default}
#mas-nav button:focus-visible{outline:2px solid var(--sb-accent,#0b3fa8);outline-offset:1px}
@media print{#mas-nav{display:none!important}}

#mas-shell-head{position:sticky;top:0;z-index:20;background:var(--sb-bg,#f4f5f7)}
#mas-shell-head .top{position:static;box-shadow:none}
.section-head{top:var(--mas-shell-height,100px)!important}
@media print{#mas-shell-head{display:none!important}}
