.topbar {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:16px;
  margin:0 -28px;
  padding:22px 28px 0;
  background:var(--navy);
  color:white;
  border-bottom:4px solid #2464ba;
}
.topbar > div:first-child { padding-left:0; }
.topbar > div:first-child::before { display:none; }
.brand-title .eyebrow {
  color:white;
  font-family:Arial,Helvetica,sans-serif;
  font-size:clamp(1.1rem,4.5vw,1.8rem);
  font-weight:900;
  letter-spacing:.025em;
  word-spacing:.18em;
  line-height:1.1;
}
.brand-title h1 {color:#d6e6fc;font-size:.85rem;font-weight:500;margin-top:9px;}
.brand-logo {width:170px;height:auto;display:block;}
.topbar .header-actions {
  grid-column:1/-1;
  justify-content:space-between;
  padding:9px 0;
  border-top:1px solid #416080;
}
.topbar .text-button {color:white;min-height:40px;}
.topbar .text-button:hover {text-decoration:underline;}
.topbar .text-button:focus-visible {outline:2px solid white;outline-offset:3px;}
.topbar .status {color:#c8efdb;}
.app-shell {position:relative;}
.window-label {position:absolute;top:7px;left:12px;z-index:100;font:700 13px system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;letter-spacing:.02em;color:#fff;background:#0e223d;border:1px solid #1f3d63;border-radius:4px;padding:3px 8px;pointer-events:none;box-shadow:0 2px 5px rgba(0,0,0,.3);}
#location-status {color:#b42318;}
#location-status[data-state="approved"] {color:#234e7b;}
html, body, textarea {scrollbar-width:none;}
html::-webkit-scrollbar, body::-webkit-scrollbar, textarea::-webkit-scrollbar {display:none;width:0;height:0;}
#welcome-screen {
  position:fixed;inset:0;z-index:100;background:radial-gradient(ellipse at 100% 0%,#123d68 0%,transparent 55%),radial-gradient(ellipse at 0% 100%,#123d68 0%,transparent 55%),#071726;
  color:white;display:flex;flex-direction:column;align-items:center;justify-content:center;
  transition:opacity .45s ease;min-height:100dvh;
}
#welcome-screen[hidden] {display:none;}
#welcome-screen {overflow:hidden;}
#welcome-screen .welcome-background-video {position:absolute;inset:-20px;width:calc(100% + 40px);height:calc(100% + 40px);object-fit:cover;filter:blur(12px) brightness(.5);pointer-events:none;z-index:0;}
#welcome-screen .welcome-brand {position:relative;z-index:1;}
#welcome-screen #welcome-continue {z-index:1;background:rgba(255,255,255,.06);border:1px solid rgba(220,237,255,.7);border-radius:12px;color:#fff;min-height:48px;backdrop-filter:blur(3px);}
@media(prefers-reduced-motion:reduce){#welcome-screen .welcome-background-video{display:none;}}
.welcome-brand {text-align:center;animation:welcome-in 1s ease both;}
.welcome-brand img {width:238px;max-width:70vw;height:auto;display:block;margin:auto auto -20px;transform:scaleX(.94);clip-path:inset(0 0 18% 0);}
.welcome-brand p {font:400 .65rem Arial,sans-serif;letter-spacing:.22em;color:#d1e1f4;margin:22px 0 0;}
.welcome-brand .welcome-name {font:600 1.25rem "Avenir Next",Arial,sans-serif;letter-spacing:.1em;color:#fff;margin:12px 0 0;}
#welcome-continue {position:absolute;bottom:48px;background:transparent;border:1px solid #547293;border-radius:24px;padding:12px 24px;color:white;font:400 .85rem Arial;cursor:pointer;}
#welcome-continue:focus-visible {outline:3px solid white;outline-offset:4px;}
@keyframes welcome-in {from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.welcome-brand{animation:none}#welcome-screen{transition:none}}
#role-screen.active {display:flex;flex-direction:column;min-height:calc(100dvh - 215px);padding-top:24px;}
.role-choices {width:100%;max-width:380px;margin:auto; text-align:center;padding:24px 0;}
.role-choices h2 {font-size:1.3rem;font-weight:400;margin-bottom:28px;}
.role-disclaimer {text-align:center;margin:20px auto 0;max-width:360px;line-height:1.5;}
body:has(#role-screen.active) .header-actions {display:none;}
body:has(#start-screen.active) .header-actions,
#start-screen .hero-card,
#start-screen .summary-card {display:none;}
body:has(#start-screen.active) .topbar {
  padding-top:42px;padding-bottom:26px;
}
#start-screen {padding-top:22px;}
#visit-screen #visit-back {display:inline-flex;align-items:center;min-height:48px;text-align:left;}
#visit-screen .stepper {display:none;}
body:has(#visit-screen.active) .topbar {
  padding-top:48px;padding-bottom:28px;
  grid-template-columns:auto auto;
  justify-content:center;align-items:center;gap:18px;
}
/* Quiet, regular-weight typography for operational controls. */
label, input, textarea, select, option,
.rating-group, .ratings button, .primary, .secondary,
.text-button, .topbar .text-button, .status,
.issue-label, .upload {
  font-family:Arial,Helvetica,sans-serif;
  font-weight:400;
  letter-spacing:0;
}
select, input, textarea {background:#fff;color:var(--ink);}
.rating-group, .upload, .summary-card {background:#e8f0fc;}
.ratings button.selected {background:var(--navy);color:#fff;}
@media(max-width:560px) {
  .topbar {margin:0 -18px;padding:20px 18px 0;gap:12px;}
  .brand-logo {width:125px;}
}
