/* OVM Intelligence: shared typography, colors and control primitives. */
@font-face {
  font-family: 'Dilna Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/dilna-sans-latin-ext-400.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Dilna Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/dilna-sans-latin-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Dilna Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/dilna-sans-latin-ext-600.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Dilna Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/dilna-sans-latin-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family:'OVM Display';
  font-style:normal;
  font-weight:600;
  font-display:swap;
  src:url(assets/barlow-condensed-latin-600.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+2191,U+2193;
}

@font-face {
  font-family:'OVM Display';
  font-style:normal;
  font-weight:600;
  font-display:swap;
  src:url(assets/barlow-condensed-latin-ext-600.woff2) format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  --ovm-paper: #f4f5fa;
  --ovm-surface: #fff;
  --ovm-ink: oklch(23% .019 257);
  --ovm-muted: oklch(45% .025 257);
  --ovm-accent: oklch(45% .17 264);
  --ovm-accent-dark: oklch(31% .09 264);
  --ovm-tint: oklch(94% .022 264);
  --ovm-accent-wash: #f4f6ff;
  --ovm-control-border: #b9c4d9;
  --ovm-wash: #f8f9fb;
  --ovm-line: #dfe3ec;
  --ovm-highlight: oklch(87% .115 91);
  --ovm-danger: #a33135;
  --ovm-danger-tint: #fff0ef;
  --ovm-sans: 'Dilna Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ovm-display: 'OVM Display', var(--ovm-sans);
  --ovm-radius: 12px;
  --ovm-control-radius: 6px;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ovm-ink); background: var(--ovm-paper); font: 400 14px/1.5 var(--ovm-sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
pre, code, kbd, samp { font-family: var(--ovm-sans); }
button, a, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; border: 0; }
button:disabled { opacity: .55; cursor: not-allowed; }
a { color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
strong { font-weight: 600; }
::selection { color: var(--ovm-surface); background: var(--ovm-accent); }
:focus-visible { outline: 3px solid var(--ovm-accent); outline-offset: 4px; }
input, select, textarea { min-width: 0; max-width: 100%; border: 1px solid var(--ovm-control-border); border-radius: var(--ovm-control-radius); background: var(--ovm-surface); }
input::placeholder, textarea::placeholder { color: var(--ovm-muted); opacity: .8; }
input[type=checkbox] { accent-color: var(--ovm-accent); width: 16px; height: 16px; flex-shrink: 0; }
.primary, .secondary, .stop-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 17px; border-radius: var(--ovm-control-radius); font-size: 14px; font-weight: 600; transition: background .15s, border-color .15s, box-shadow .15s; }
.primary { color: #fff; background: var(--ovm-accent); border: 1px solid var(--ovm-accent); box-shadow: 0 2px 4px #233e8f20; }
.primary:hover:not(:disabled) { background: var(--ovm-accent-dark); border-color: var(--ovm-accent-dark); }
.secondary { color: var(--ovm-accent); background: var(--ovm-accent-wash); border: 1px solid var(--ovm-control-border); }
.secondary:hover:not(:disabled) { background: var(--ovm-tint); border-color: var(--ovm-accent); }
.stop-button { color: #fff; background: var(--ovm-danger); }
.stop-button:hover:not(:disabled) { background: #81262a; }
.quiet { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 7px 10px; border: 1px solid var(--ovm-control-border); border-radius: var(--ovm-control-radius); font-size: 12px; font-weight: 600; color: var(--ovm-accent); background: var(--ovm-surface); }
.quiet:hover:not(:disabled) { background: var(--ovm-tint); border-color: var(--ovm-accent); }
.quiet:disabled, .secondary:disabled { opacity: 1; color: #8490a4; border-color: #d6dce7; background: #f2f4f8; }
.primary:active:not(:disabled), .secondary:active:not(:disabled), .quiet:active:not(:disabled) { box-shadow: inset 0 2px 3px #182e5b18; }
.text-button { min-height: 32px; padding: 4px 0; color: var(--ovm-accent); background: transparent; font-size: 12px; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover:not(:disabled) { color: var(--ovm-accent-dark); }
.danger { color: var(--ovm-danger); }
.icon { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.panel { background: var(--ovm-surface); border: 1px solid var(--ovm-line); border-radius: var(--ovm-radius); }
.eyebrow, .section-label { font-size: 12px; font-weight: 400; }
.eyebrow { color: var(--ovm-accent); }
.section-label { color: var(--ovm-muted); }
.muted { color: var(--ovm-muted); font-size: 12px; line-height: 1.65; }
.field-label { display: block; color: var(--ovm-muted); font-size: 12px; margin: 18px 0 7px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 5px; color: var(--ovm-accent); background: var(--ovm-tint); font-size: 11px; white-space: nowrap; }
.badge::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.badge.recording { color: var(--ovm-danger); background: var(--ovm-danger-tint); }
.badge[data-state=final] { color: #22674e; background: #e7f3ed; }
.badge[data-state=demo] { color: #70529b; background: #eee8f8; }
.notice { border: 1px solid #d9c682; border-left: 3px solid var(--ovm-highlight); background: #fffbed; border-radius: 6px; padding: 12px 16px; font-size: 12px; line-height: 1.7; margin-bottom: 20px; overflow-wrap: anywhere; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 10; padding: 12px 18px; border-radius: 6px; background: var(--ovm-accent); color: #fff; }
.skip-link:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
