.preference-controls{display:flex;gap:7px;align-items:center;flex-wrap:wrap;min-width:0}.preference-controls select{background:transparent;color:inherit;border:1px solid var(--line,#d9ddd4);padding:8px 6px;font:12px Arial,sans-serif;max-width:155px;min-height:36px}.viewer-preferences{padding:8px 0;font:11px Arial,sans-serif}.viewer-preferences select{font-size:10px;max-width:120px;padding:4px;min-height:28px}.viewer-dimensions{color:#616b75;font-size:10px}.preference-controls select:focus-visible{outline:2px solid #b8452c;outline-offset:2px}header nav{flex-wrap:wrap;justify-content:flex-end}@media(max-width:850px){header{align-items:flex-start;gap:15px}header nav{gap:10px}.preference-controls select{max-width:140px}}@media(max-width:600px){header{flex-wrap:wrap}header nav{width:100%;justify-content:space-between}.preference-controls select{font-size:13px;min-height:40px;max-width:150px}.viewer-preferences select{font-size:10px;min-height:28px}}
/* Single-row navigation: the middle track scrolls on compact screens, cart stays at the right edge. */
body>header.rivet-header,body.is-admin>header.rivet-header{display:flex;align-items:center;flex-wrap:nowrap;gap:20px;padding:20px 24px;min-height:84px}
body>header.rivet-header>.brand,body>header.rivet-header>.admin-header-identity{flex:0 0 auto;white-space:nowrap}
body>header.rivet-header .admin-header-identity{flex-wrap:nowrap;gap:10px}
body>header.rivet-header .brand{font-size:24px}
body>header.rivet-header .admin-role-badge{font-size:8px;padding:5px 7px}
body>header.rivet-header>nav,body.is-admin>header.rivet-header>nav{display:flex;flex:1 1 0;min-width:0;width:auto;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:18px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;white-space:nowrap;padding:5px 2px}
body>header.rivet-header>nav>*{flex-shrink:0}
body>header.rivet-header .preference-controls{flex-wrap:nowrap;gap:8px;order:-1}
body>header.rivet-header .preference-controls select{width:62px;max-width:62px;min-height:38px;padding:7px 4px;font-size:12px}
body>header.rivet-header>.cart-trigger{position:static;flex:0 0 auto;margin:0 0 0 auto;align-self:center;min-height:42px;padding:9px 12px;border-radius:4px;box-shadow:none;background:transparent!important;color:inherit!important;border:1px solid currentColor!important;z-index:auto}
body>header.rivet-header .language-fallback{display:none}
@media(max-width:1250px){body>header.rivet-header>nav,body.is-admin>header.rivet-header>nav{justify-content:flex-start;gap:14px}body>header.rivet-header,body.is-admin>header.rivet-header{gap:14px}body>header.rivet-header .admin-role-badge{display:none}}
@media(max-width:850px){body>header.rivet-header,body.is-admin>header.rivet-header{padding:14px 16px;gap:12px;min-height:72px}body>header.rivet-header>nav a{display:inline-flex}body>header.rivet-header>nav .account-cta,body>header.rivet-header>nav>.admin-panel-link{padding:9px 12px}body:has(>header.rivet-header>.cart-trigger) footer{padding-bottom:25px!important}}
@media(max-width:600px){body>header.rivet-header,body.is-admin>header.rivet-header{padding:10px 12px;gap:8px;min-height:64px}body>header.rivet-header .brand{font-size:17px;letter-spacing:-.8px}body>header.rivet-header .brand:has(.brand-symbol){font-size:0;gap:0}body>header.rivet-header .brand-symbol{font-size:23px;padding:0 8px}body>header.rivet-header>.cart-trigger{padding:8px;gap:5px;min-height:40px}body>header.rivet-header>.cart-trigger .cart-trigger-label{display:none}body>header.rivet-header>nav,body.is-admin>header.rivet-header>nav{gap:12px}}

body>header.rivet-header>.settings-trigger{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;padding:0;border:1px solid currentColor;border-radius:4px;background:transparent;color:inherit;cursor:pointer}
.settings-trigger[aria-expanded=true]{background:#80808020!important}
.settings-panel[popover]{position:fixed;margin:0;width:260px;max-width:calc(100vw - 20px);padding:20px;border:1px solid #cbd2c7;border-radius:8px;background:#f6f4ee;color:#262b27;box-shadow:0 12px 40px #17201930;overflow:visible;font:14px/1.4 Arial,sans-serif}
.settings-panel:not(:popover-open){display:none}.settings-panel:popover-open{display:grid;gap:16px}
.settings-panel .settings-title{font:700 16px/1.3 Arial,sans-serif;margin:0;padding:0}
.settings-panel label{display:grid;gap:7px;font-size:12px;font-weight:600}
.settings-panel select{width:100%;max-width:none;min-height:42px;font-size:14px;background:white;color:#262b27;border:1px solid #bdc7b8;padding:9px}
@media(max-width:600px){body>header.rivet-header>.settings-trigger{width:38px;height:40px}}

body>header.rivet-header>.navigation-trigger{display:none}
@media(max-width:1100px){
 body>header.rivet-header>.navigation-trigger{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;width:42px;height:42px;padding:0;margin-left:auto;border:1px solid currentColor;border-radius:4px;background:transparent;color:inherit}
 body>header.rivet-header>.cart-trigger{margin-left:0}
 body>header.rivet-header>nav[popover]:not(:popover-open){display:none!important}
 body>header.rivet-header>nav[popover]:popover-open,body.is-admin>header.rivet-header>nav[popover]:popover-open{position:fixed;inset:76px 12px auto auto;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:5px;width:min(320px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 100px);margin:0;padding:12px;background:#f6f4ee;color:#262b27;border:1px solid #cbd2c7;border-radius:8px;box-shadow:0 12px 40px #17201930;overflow:auto;white-space:normal}
 body>header.rivet-header>nav[popover]>a,body.is-admin>header.rivet-header>nav[popover]>a{display:flex;padding:12px 14px;color:#262b27;white-space:normal;overflow-wrap:anywhere}
 body>header.rivet-header>nav[popover]>.account-cta{color:white}
 body>header.rivet-header>nav[popover]>.language-fallback{display:none!important}
}
@media(max-width:600px){body>header.rivet-header>.navigation-trigger{width:38px;height:40px}body>header.rivet-header>nav[popover]:popover-open,body.is-admin>header.rivet-header>nav[popover]:popover-open{top:64px}}

.settings-panel[popover]{max-height:calc(100dvh - 20px);overflow-y:auto}
