/* SARA-94: screen-only navigation presentation. */
@media screen{
 :root{--ui-page-max:1760px}
 :root .site-header{--control-height:44px}
 :root .menu-number{display:inline-block;margin-right:6px;font-size:.8em;font-weight:500;line-height:1;color:var(--ui-muted);white-space:nowrap}
 :root .site-header .primary-nav .menu-number,:root .site-header .account-menu>summary .menu-number{color:var(--ui-subtle)}
 :root .site-header .primary-nav .nav-dropdown .menu-number{color:var(--ui-muted)}
 :root .site-header .primary-nav a[aria-current=page] .menu-number,:root .site-header .primary-nav .nav-menu.is-current>summary .menu-number{color:var(--ui-muted)}
 :root .ui-icon{display:inline-block;flex:0 0 auto;vertical-align:middle;pointer-events:none}
 :root .header-inner,:root main.container{max-width:var(--ui-page-max);width:100%;margin-left:auto;margin-right:auto}
 :root .site-header .header-inner{display:block;padding-top:12px;padding-bottom:10px}
 :root .site-header .header-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 0 10px;min-width:0}
 :root .site-header .brand{display:inline-flex;align-items:center;gap:8px;flex-shrink:0}
 :root .site-header .account-menu.is-current>summary{background:var(--ui-tint);color:var(--ui-header)}
 :root .site-header .account-menu.is-current>summary .menu-number{color:var(--ui-muted)}
 :root .header-tools{display:flex;align-items:center;justify-content:flex-end;gap:16px;min-width:0;margin-left:auto}
 :root .site-header .header-top .branch-select{display:flex;align-items:center;gap:8px;margin:0;order:0;width:auto}
 :root .site-header .branch-select label{display:flex;flex-direction:row;align-items:center;gap:8px;margin:0;font-size:14px}
 :root .header-field-label,:root .header-branch{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
 :root .site-header .branch-select :is(select,button){height:44px;min-height:44px;max-height:44px;padding:6px 10px;box-sizing:border-box}
 :root .site-header .branch-select select{max-width:210px}
 :root .site-header .account-menu{margin:0;flex:0 1 auto;min-width:0}
 :root .site-header .account-menu>summary{height:44px;min-height:44px;padding:8px;gap:8px;font-size:14px}
 :root .site-header .account-name{display:block;min-width:0;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 :root .site-header .nav-row{display:flex;align-items:center;gap:12px;min-width:0;width:100%}
 :root .site-header .nav-row .primary-nav{display:flex;flex:1 1 auto;min-width:0;width:auto;align-items:center;flex-wrap:nowrap;gap:4px;overflow-x:auto;overflow-y:hidden;padding:3px 0;scrollbar-width:thin;overscroll-behavior-x:contain;order:0}
 :root .site-header .primary-nav>.nav-menu{flex:0 0 auto}
 :root .site-header .nav-row .primary-nav>a,:root .site-header .nav-row .primary-nav>.nav-menu>summary{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;gap:8px;height:44px;min-height:44px;max-height:44px;padding:8px 12px;box-sizing:border-box;border:0;border-radius:8px;background:transparent;color:var(--ui-surface);line-height:1.25;font-size:15px;font-weight:600;white-space:nowrap;text-decoration:none}
 :root .site-header .nav-row .primary-nav>a:hover,:root .site-header .nav-row .primary-nav>.nav-menu>summary:hover,:root .site-header .nav-row .primary-nav>.nav-menu[open]>summary{background:#ffffff20;color:var(--ui-surface)}
 :root .site-header .nav-row .primary-nav>a[aria-current=page],:root .site-header .nav-row .primary-nav>.nav-menu.is-current>summary{background:var(--ui-tint);color:var(--ui-header)}
 :root .nav-closing{display:flex;flex:0 0 auto;align-items:center;margin-left:auto}
 :root .site-header .nav-closing .closing-button{display:inline-flex;align-items:center;gap:8px;height:44px;min-height:44px;max-height:44px;padding:8px 12px;background:var(--ui-surface);color:var(--ui-header)!important;border:0;font-size:15px;line-height:1.25;white-space:nowrap}
 :root .site-header .nav-closing .closing-button.is-closed{background:var(--ui-line);color:var(--ui-ink)!important}
 :root .site-header .nav-closing .closing-button.is-warning{background:#ffd366;color:#35280c!important;box-shadow:inset 0 0 0 2px #9c6500}
 :root .site-header .nav-dropdown{position:fixed;top:var(--nav-menu-top,110px);left:var(--nav-menu-left,16px);right:auto;width:var(--nav-menu-width,300px);min-width:0;max-width:calc(100vw - 32px);max-height:var(--nav-menu-height,70dvh);overflow:auto;z-index:100}
 :root .site-header .nav-dropdown a,:root .site-header .account-dropdown button{display:flex;align-items:center;justify-content:flex-start;gap:10px;min-height:44px;padding:8px 12px;line-height:1.5}
 :root .site-header :is(a,summary,button):focus-visible{outline-color:var(--ui-surface);box-shadow:0 0 0 4px var(--ui-brand)}
 :root .site-header .nav-dropdown :is(a,button):focus-visible{outline-color:var(--ui-brand);box-shadow:none}
 :root .view-dashboard .dashboard-shortcuts>a{flex-direction:column;justify-content:center;gap:8px;min-height:100px;text-align:center}
 :root .closing-button{gap:8px}
 :root .view-dashboard .dashboard-shortcuts>a>.ui-icon{color:var(--shortcut-tone,var(--ui-brand));width:28px;height:28px}
 @media(max-width:720px){
  :root .site-header .header-tools{gap:8px}
  :root .site-header .header-top .branch-select{width:auto;order:0}
  :root .site-header .branch-select select{max-width:150px}
 }
 @media(max-width:600px){
  :root .site-header .header-top{flex-wrap:wrap;gap:8px}
  :root .site-header .header-tools{width:100%;justify-content:space-between;flex-wrap:wrap;margin-left:0}
  :root .site-header .header-tools .account-menu{margin-left:auto}
  :root .site-header .account-name{max-width:14ch}
  :root .site-header .branch-select select{max-width:125px}
  :root .site-header .nav-row{gap:8px}
  :root .site-header .nav-row .primary-nav>a,:root .site-header .nav-row .primary-nav>.nav-menu>summary,:root .site-header .nav-closing .closing-button{font-size:14px;padding:8px 10px}
 }
}
