/* Shared navigation for the landing page and every check-in. */
:root { --site-header-height:76px; --h4-topbar-height:76px; }
.histi-header {
  position:fixed!important; inset:0 0 auto!important; z-index:70!important;
  width:100%!important; height:calc(var(--site-header-height) + env(safe-area-inset-top))!important;
  min-height:0!important; margin:0!important; padding:env(safe-area-inset-top) 0 0!important;
  background:var(--suite-surface)!important; border:0!important; border-bottom:1px solid var(--suite-line)!important;
  box-shadow:none!important; backdrop-filter:none!important; -webkit-backdrop-filter:none!important;
  animation:none!important; transform:none!important;
}
.histi-header-inner {
  width:min(calc(100% - 64px),1200px)!important; height:var(--site-header-height)!important;
  min-height:0!important; margin:0 auto!important; padding:0!important;
  display:grid!important; grid-template-columns:1fr auto 1fr!important; align-items:center!important; gap:28px!important;
}
.histi-header .histi-brand { justify-self:start; width:max-content; display:block; line-height:0; }
.histi-header .histi-brand::after { display:none!important; }
.histi-header .histi-brand img { width:90px!important; height:auto!important; max-width:none!important; border-radius:0!important; margin:0!important; object-fit:contain; transform:none!important; }
.histi-header .histi-nav { display:flex!important; align-items:center; justify-content:center; gap:24px!important; margin:0; }
.histi-header .histi-nav a { padding:10px 0; color:var(--suite-muted)!important; font-size:13px!important; font-weight:650!important; text-decoration:none; white-space:nowrap; transition:color 180ms ease; }
.histi-header .histi-nav a:hover { color:var(--palette-sun-ink)!important; }
.histi-header .histi-nav a::after { display:none!important; }
.histi-header-actions { display:flex; align-items:center; justify-content:flex-end; gap:12px; min-width:0; }
.histi-header .histi-proof { display:inline-flex!important; align-items:center; justify-content:center; gap:8px; min-height:40px!important; width:auto!important; max-width:none!important; margin:0!important; padding:0 6px!important; border:0!important; border-radius:8px!important; background:transparent!important; box-shadow:none!important; color:var(--suite-muted)!important; font-family:inherit; font-size:12px!important; font-weight:650!important; line-height:1.3; cursor:pointer; white-space:nowrap; }
.histi-header .histi-proof:hover { color:var(--suite-ink)!important; }
.histi-header .privacy-live-dot { width:6px!important; height:6px!important; flex:none; border-radius:50%; background:#e9dcff; box-shadow:0 0 0 3px #31445c12!important; }
.histi-header .histi-start { display:inline-flex; align-items:center; justify-content:center; gap:12px; min-height:40px; padding:0 16px; border:1px solid #b38b26; border-radius:9px; background:#ffd15c; color:var(--suite-ink); text-decoration:none; font-size:12px; font-weight:800; white-space:nowrap; transition:background 180ms ease; }
.histi-header .histi-start:hover { background:#ffd15c; }
.histi-header :is(a,button):focus-visible { outline:2px solid #f2ce78; outline-offset:5px; }
.app-shell:has(> .histi-header) { padding-top:calc(var(--site-header-height) + env(safe-area-inset-top) + 4px)!important; }
.app-shell:has(> .histi-header) > .progress-track { position:fixed!important; top:calc(var(--site-header-height) + env(safe-area-inset-top))!important; left:0; right:0; z-index:69; }
body:has(> .histi-header) { padding-top:calc(var(--site-header-height) + env(safe-area-inset-top)); }
body:has(> .histi-header):has(> main > .selector) { display:flex; flex-direction:column; }
body:has(> .histi-header) > main:has(> .selector) { flex:1; }
.histi-header .topbar-left, .histi-header .topbar-right { display:contents!important; }
.footer-links #accessibility-btn { width:auto!important; min-width:0!important; min-height:0!important; padding:5px 7px!important; border:0!important; background:none!important; box-shadow:none!important; color:inherit!important; font-size:12px!important; }
.footer-links #accessibility-btn::before { display:none!important; }

/* The same live privacy dialog is available from the landing-page header. */
.h4-proof-dialog { width:min(650px,calc(100% - 28px)); max-height:calc(100svh - 28px); margin:auto; padding:30px; overflow-y:auto; overscroll-behavior:contain; border:1px solid var(--suite-line); border-radius:22px; background:var(--suite-surface); color:var(--suite-ink); font-family:"Public Sans",system-ui,sans-serif; box-shadow:0 30px 100px #31445c12; }
.h4-proof-dialog::backdrop { background:var(--suite-surface); }
.h4-proof-head { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.h4-proof-head .eyebrow { color:var(--palette-sun-ink); font-size:11px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.h4-proof-dialog h2 { margin:20px 0 14px; font-size:clamp(28px,5vw,38px); line-height:1.12; letter-spacing:-.04em; }
.h4-proof-close,.h4-proof-run { min-height:40px; padding:9px 14px; border:1px solid var(--suite-line); border-radius:9px; background:var(--suite-raised); color:var(--suite-ink); font:inherit; font-size:12px; font-weight:750; cursor:pointer; }
.h4-proof-intro,.h4-proof-caveat { color:var(--suite-muted); font-size:14px; line-height:1.65; }
.h4-proof-policy { display:grid; gap:9px; margin:22px 0; padding:18px; border:1px solid var(--suite-line); border-radius:12px; background:var(--suite-raised); font-size:13px; line-height:1.5; }
.h4-proof-policy strong { color:var(--suite-ink); }
.h4-proof-policy code { width:max-content; padding:5px 9px; border-radius:6px; background:var(--suite-surface); color:var(--suite-ink); }
.h4-proof-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.h4-proof-grid article { min-width:0; display:grid; gap:7px; padding:15px; border:1px solid var(--suite-line); border-radius:11px; }
.h4-proof-grid strong { color:var(--suite-ink); font-size:18px; overflow-wrap:anywhere; }
.h4-proof-grid span { color:var(--suite-muted); font-size:12px; line-height:1.4; }
.h4-proof-result { padding:14px; border-radius:10px; background:var(--suite-raised); color:var(--suite-ink); font-size:13px; line-height:1.6; }
.h4-proof-result[data-state=fail] { background:var(--suite-raised); color:var(--palette-sun-ink); }
.h4-proof-actions { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px; margin-top:22px; }
.h4-proof-actions a { color:var(--palette-sun-ink); font-size:13px; font-weight:700; }
@media(max-width:1100px) { .histi-header-inner { grid-template-columns:1fr auto!important; } .histi-header .histi-nav { display:none!important; } }
@media(max-width:680px) {
  :root { --site-header-height:68px; --h4-topbar-height:68px; }
  .histi-header-inner { width:calc(100% - 32px)!important; gap:14px!important; }
  .histi-header .histi-brand img { width:76px!important; }
  .histi-header-actions { gap:10px; }
  .histi-header .histi-start { min-height:38px; padding:0 12px; font-size:11px; }
  .histi-header .histi-proof { width:auto!important; min-height:38px!important; padding:0!important; gap:6px; }
  .histi-header #privacy-live-label { display:inline!important; font-size:10px; }
  .histi-start-label { font-size:0; }
  .histi-start-label::after { content:"Check-ins"; font-size:11px; }
  .histi-header .privacy-live-dot { width:8px!important; height:8px!important; }
  .h4-proof-dialog { padding:22px; }
}
@media(max-width:360px) { .histi-header-actions { gap:8px; } .histi-header .histi-start { padding:0 9px; } .histi-start > span[aria-hidden] { display:none; } }
@media(prefers-reduced-motion:reduce) { .histi-header :is(a,button) { transition:none; } }
