@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("https://cdn.nav.no/aksel/fonts/SourceSans3-normal.woff2") format("woff2");
}
:root {
  color-scheme: light;
  --ink: #172f3c;
  --muted: #526875;
  --subtle: #6d7e87;
  --brand: #176b62;
  --brand-dark: #10534c;
  --brand-pale: #e7f3f0;
  --page: #eef4f6;
  --line: #d5e0e5;
  --danger: #a33131;
  font-family: "Source Sans 3", "Source Sans Pro", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--page); color: var(--ink); font-size: 18px; line-height: 1.4; }
button, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
button:focus-visible, a:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #1977a6; outline-offset: 3px; }
[hidden] { display: none !important; }
svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: absolute; z-index: 10; left: 12px; top: 8px; transform: translateY(-150%); padding: 10px 14px; background: white; border: 2px solid var(--brand); border-radius: 6px; }
.skip-link:focus { transform: translateY(0); }
.topbar { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px max(20px, calc((100vw - 1160px) / 2)); border-bottom: 1px solid var(--line); background: #fff; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; color: var(--brand); background: var(--brand-pale); }
.brand-mark svg { width: 27px; height: 27px; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.plain-link { padding: 6px 2px; border: 0; color: #145e79; text-decoration: underline; text-underline-offset: 3px; background: transparent; font-weight: 600; }
.plain-link:hover { color: #0b4052; }
.page-shell { width: min(1160px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 16px; }
.tracker { padding: clamp(16px, 2.5vw, 28px); border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgb(23 47 60 / 5%); }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.eyebrow { margin: 0 0 4px; color: var(--brand); font-size: 13px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(25px, 3.2vw, 34px); line-height: 1.14; letter-spacing: -.025em; }
.subtitle { margin: 7px 0 0; color: var(--muted); font-size: 16px; }
.session-state { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 100px; background: #fafcfc; color: var(--muted); font-size: 14px; font-weight: 600; }
.state-dot { width: 8px; height: 8px; border-radius: 50%; background: #85949b; }
.session-state[data-state="running"] { color: var(--brand-dark); border-color: #b7d9d1; background: var(--brand-pale); }
.session-state[data-state="running"] .state-dot { background: #20846f; }
.session-state[data-state="paused"] .state-dot { background: #b77919; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(290px, .88fr); gap: 20px; align-items: stretch; }
.camera-column { min-width: 0; }
.camera-stage { position: relative; width: 100%; aspect-ratio: 4 / 3; min-height: 300px; overflow: hidden; border-radius: 10px; background: #152c39; color: #fff; }
#webcam { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); background: #152c39; }
.camera-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 24px; background: #152c39; text-align: center; }
.camera-placeholder { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 4px; border-radius: 50%; color: #c3dbd6; background: #223f4e; }
.camera-placeholder svg { width: 34px; height: 34px; }
.camera-overlay strong { font-size: 20px; }
.camera-overlay > span:last-child { max-width: 260px; color: #d1dce1; font-size: 15px; }
.live-badge { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 24px); padding: 7px 10px; border-radius: 6px; background: rgb(8 29 39 / 84%); color: #fff; font-size: 13px; }
.live-dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: #62d2a4; }
.calibration-row { display: flex; align-items: center; gap: 10px; padding: 12px 2px 0; }
.calibration-mark { display: grid; place-items: center; width: 31px; height: 31px; flex-shrink: 0; border-radius: 50%; background: var(--brand-pale); color: var(--brand); font-size: 14px; font-weight: 700; }
.calibration-copy { flex: 1; min-width: 0; }
.calibration-copy strong { display: block; font-size: 15px; }
.calibration-copy p { margin: 1px 0 0; color: var(--muted); font-size: 13px; }
.small-button { min-height: 36px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; }
.calibration-progress { display: grid; gap: 5px; margin-top: 9px; color: var(--muted); font-size: 13px; }
.progress-track { height: 8px; overflow: hidden; border-radius: 100px; background: #e4ecef; }
.progress-fill { width: 0; height: 100%; border-radius: inherit; background: var(--brand); transition: width .15s linear; }
.live-panel { display: flex; flex-direction: column; min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfc; }
.direction-card { min-height: 165px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px 10px; text-align: center; border-bottom: 1px solid var(--line); }
.field-label { display: block; color: var(--subtle); font-size: 12px; font-weight: 700; letter-spacing: .07em; }
.direction-glyph { display: grid; place-items: center; width: 52px; height: 52px; margin: 8px 0 3px; border-radius: 50%; background: var(--brand-pale); color: var(--brand); font-size: 34px; line-height: 1; }
.direction-card h2 { margin: 1px 0 2px; font-size: 24px; line-height: 1.15; }
.direction-card p { max-width: 265px; margin: 0; color: var(--muted); font-size: 14px; }
.metric-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 0 10px; }
.metric { display: flex; align-items: baseline; gap: 4px; margin: 1px 0 0; }
.metric strong { font-size: 36px; line-height: 1; letter-spacing: -.04em; }
.metric span { color: var(--muted); font-size: 16px; }
.time-metric { text-align: right; }
.time-metric strong { display: block; margin-top: 2px; font-size: 24px; font-weight: 650; font-variant-numeric: tabular-nums; }
.overall-track { height: 7px; margin-bottom: 14px; }
.session-controls { display: grid; gap: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 14px; border: 1px solid transparent; border-radius: 7px; font-weight: 650; font-size: 16px; }
.button-primary { color: #fff; background: var(--brand); }
.button-primary:hover:not(:disabled) { background: var(--brand-dark); }
.button-secondary { border-color: #bccbd2; color: var(--ink); background: #fff; }
.button-secondary:hover:not(:disabled), .small-button:hover:not(:disabled) { background: #f0f5f6; }
.control-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.icon-toolbar { display: flex; align-items: center; justify-content: space-around; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.icon-button { display: flex; min-width: 60px; align-items: center; justify-content: center; flex-direction: column; gap: 3px; padding: 5px 10px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #335866; }
.icon-button svg { width: 22px; height: 22px; }
.icon-button span { font-size: 12px; font-weight: 650; }
.icon-button:hover:not(:disabled) { background: #e9f2f3; border-color: #d5e5e7; }
.icon-button[aria-pressed="true"] { color: var(--brand-dark); background: var(--brand-pale); }
.voice-on-icon { display: none; }
.voice-off-icon { display: block; }
.icon-button[aria-pressed="true"] .voice-on-icon { display: block; }
.icon-button[aria-pressed="true"] .voice-off-icon { display: none; }
.status-message { min-height: 44px; margin: 9px 0 0; padding: 8px 10px; border-radius: 6px; background: #f0f5f6; color: #3c5866; font-size: 14px; }
.counts-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.counts-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.counts-heading h2, .manual-heading h2 { margin: 0; font-size: 20px; }
.counts-heading p, .manual-heading p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.goal-select { display: flex; flex-direction: column; flex-shrink: 0; gap: 3px; color: var(--muted); font-size: 12px; font-weight: 650; }
.goal-select select { min-height: 36px; min-width: 76px; padding: 5px 9px; border: 1px solid #bdcbd1; border-radius: 6px; background: #fff; color: var(--ink); font: inherit; font-size: 15px; }
.direction-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.direction-stat { display: flex; min-width: 0; align-items: center; gap: 9px; padding: 11px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.direction-stat.direction-active { border-color: #8fc8bb; background: #f1f9f6; }
.direction-stat.goal-reached { border-color: #b3d7ba; background: #f2faf3; }
.direction-symbol { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 7px; background: var(--brand-pale); color: var(--brand); font-size: 23px; }
.direction-stat > div { min-width: 0; }
.direction-stat > div > span { display: block; color: var(--muted); font-size: 13px; }
.direction-stat strong { display: block; white-space: nowrap; font-size: 20px; font-variant-numeric: tabular-nums; line-height: 1.15; }
.direction-stat small { color: var(--muted); font-size: 13px; font-weight: 500; }
.manual-panel { margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #f9fbfb; }
.manual-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 12px; }
.manual-pill { padding: 4px 8px; border-radius: 100px; background: var(--brand-pale); color: var(--brand-dark); font-size: 12px; font-weight: 700; white-space: nowrap; }
.manual-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.manual-grid button { display: flex; justify-content: center; align-items: center; gap: 7px; min-height: 46px; border: 1px solid #bdcbd1; border-radius: 7px; background: #fff; color: var(--ink); font-weight: 650; }
.manual-grid button:hover:not(:disabled) { background: var(--brand-pale); }
.manual-grid button span { font-size: 14px; }
.manual-note { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.bottom-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 15px; color: var(--subtle); font-size: 13px; }
.short-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 0 8px; }
.short-notes details { align-self: start; padding: 11px 13px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.short-notes summary { color: #145e79; font-weight: 650; cursor: pointer; }
.short-notes p { margin: 9px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.footer { display: flex; justify-content: space-between; gap: 12px; padding: 14px max(20px, calc((100vw - 1160px) / 2)); border-top: 1px solid var(--line); background: #fff; color: var(--subtle); font-size: 13px; }
@media (max-width: 860px) {
  .workspace { grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr); gap: 12px; }
  .camera-stage { min-height: 250px; }
  .live-panel { padding: 13px; }
  .direction-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  body { font-size: 16px; }
  .topbar { min-height: 56px; padding-inline: 14px; }
  .brand { gap: 7px; font-size: 15px; }
  .brand-mark { width: 31px; height: 31px; }
  .header-actions { gap: 11px; font-size: 14px; }
  .page-shell { width: calc(100% - 20px); padding-top: 12px; }
  .tracker { padding: 13px; border-radius: 10px; }
  .page-heading { gap: 9px; margin-bottom: 13px; align-items: start; }
  .eyebrow { font-size: 11px; }
  h1 { font-size: 25px; }
  .subtitle { font-size: 14px; }
  .session-state { padding: 5px 7px; font-size: 12px; }
  .workspace { grid-template-columns: 1fr; gap: 12px; }
  .camera-stage { min-height: 0; aspect-ratio: 4 / 3; }
  .calibration-row { gap: 7px; }
  .calibration-copy strong { font-size: 14px; }
  .calibration-copy p { font-size: 12px; }
  .small-button { padding-inline: 8px; font-size: 12px; }
  .live-panel { padding: 12px; }
  .direction-card { min-height: 124px; padding: 10px; }
  .direction-glyph { width: 39px; height: 39px; font-size: 27px; margin-top: 4px; }
  .direction-card h2 { font-size: 21px; }
  .metric-row { padding-top: 11px; }
  .metric strong { font-size: 32px; }
  .time-metric strong { font-size: 21px; }
  .session-controls { grid-template-columns: 1.4fr 1fr; align-items: stretch; }
  .control-pair { grid-template-columns: 1fr; }
  .button { min-height: 42px; padding: 8px 10px; font-size: 14px; }
  .icon-toolbar { margin-top: 8px; padding-top: 8px; }
  .status-message { font-size: 13px; min-height: 0; }
  .counts-section { margin-top: 14px; padding-top: 12px; }
  .counts-heading { align-items: start; }
  .counts-heading h2 { font-size: 18px; }
  .counts-heading p { max-width: 210px; font-size: 12px; }
  .direction-grid { gap: 7px; }
  .direction-stat { padding: 8px; gap: 7px; }
  .direction-symbol { width: 29px; height: 29px; font-size: 19px; }
  .direction-stat strong { font-size: 18px; }
  .manual-panel { padding: 11px; }
  .manual-grid { grid-template-columns: repeat(2, 1fr); }
  .short-notes { grid-template-columns: 1fr; gap: 8px; padding-top: 10px; }
  .bottom-actions { font-size: 12px; }
  .footer { flex-direction: column; text-align: center; align-items: center; gap: 3px; padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* v2.4: export control and concise, crawlable support pages */
.counts-tools { display: flex; align-items: end; justify-content: flex-end; gap: 9px; }
.export-button { white-space: nowrap; }
.footer-links { display: inline-flex; flex-wrap: wrap; gap: 12px; }
.footer-links a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.info-page-shell { width: min(820px, calc(100% - 32px)); margin: 24px auto 34px; }
.info-page-card { padding: clamp(20px, 4vw, 38px); border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.info-page-card h1 { margin: 3px 0 12px; font-size: clamp(28px, 4vw, 42px); line-height: 1.12; letter-spacing: -.035em; }
.info-page-card h2 { margin: 26px 0 8px; font-size: 22px; letter-spacing: -.02em; }
.info-page-card p, .info-page-card li { color: var(--muted); font-size: 16px; line-height: 1.65; }
.info-page-card p { margin-bottom: 10px; }
.info-page-card ul, .info-page-card ol { padding-left: 23px; }
.info-page-card li { padding-left: 3px; margin: 5px 0; }
.info-page-card a { color: var(--brand-dark); text-underline-offset: 3px; }
.info-page-kicker { margin: 0 0 7px; color: var(--brand); font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.info-page-lead { color: var(--ink) !important; font-size: 18px !important; }
.info-page-footer { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
@media (max-width: 650px) {
  .counts-tools { width: 100%; justify-content: space-between; align-items: end; }
  .counts-heading { flex-wrap: wrap; }
  .info-page-shell { width: calc(100% - 20px); margin-top: 12px; }
  .info-page-card { padding: 18px; }
  .info-page-card h1 { font-size: 28px; }
  .info-page-card h2 { font-size: 20px; }
  .footer-links { justify-content: center; }
}



/* Small homepage note. */
.no-login-note { display: inline-block; margin: 12px 0 0; padding: 8px 12px; border: 1px solid #b8d9d1; border-radius: 8px; background: #f0f8f5; color: #18584f; font-size: 14px; font-weight: 700; }

/* v2.7: user-controlled display settings */
.display-settings { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fbfdfd; }
.display-settings summary { color: var(--brand-dark); font-weight: 700; cursor: pointer; }
.display-settings p { margin: 9px 0 10px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.display-settings-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.display-settings-controls button[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-pale); color: var(--brand-dark); }
body.large-text { font-size: 20px; }
body.large-text :is(.subtitle, .no-login-note, .field-label, .direction-card p, .status-message, .counts-heading p, .manual-heading p, .manual-note, .bottom-actions, .short-notes p, .info-page-card p, .info-page-card li) { font-size: 1.1em; }
body.large-text :is(button, select, a, summary, label) { font-size: 1.05em; }
body.high-contrast {
  --ink: #061923;
  --muted: #203b49;
  --subtle: #294552;
  --brand: #00554d;
  --brand-dark: #003e38;
  --brand-pale: #e3f2ee;
  --page: #fff;
  --line: #637984;
}
body.high-contrast .status-message { background: #edf3f5; color: #071923; }
body.high-contrast button:focus-visible,
body.high-contrast a:focus-visible,
body.high-contrast select:focus-visible,
body.high-contrast summary:focus-visible { outline: 3px solid #004b8d; outline-offset: 3px; }
@media (max-width: 650px) {
  .display-settings { padding: 10px; }
  .display-settings-controls { display: grid; grid-template-columns: 1fr; }
  body.large-text { font-size: 19px; }
}
