/* =========================================================================
   OIZER CHAT — "SIGNAL" DESIGN SYSTEM
   -------------------------------------------------------------------------
   A single hand-authored stylesheet that carries the whole visual identity of
   the Oizer Chat website. Built from the brand mark: an electric-blue handset
   wrapped around a friendly robot, a violet speech bubble, circuit traces and
   a voice waveform — so the language here is deep navy space, aurora light,
   concentric signal rings, circuit lines and luminous glass.

   Structure
     1.  Tokens (light + dark)
     2.  Base & typography
     3.  Backdrops: aurora, grid, rings, noise
     4.  Layout primitives
     5.  Surfaces: glass panels, gradient borders, glow
     6.  Buttons, chips, badges
     7.  Site header + footer
     8.  Hero
     9.  Live-stats dashboard
    10.  Feature / step / capability modules
    11.  Panel chrome (the key / plus / connect / history tools)
    12.  Tailwind token bridge — makes the existing utility markup theme-aware
    13.  Motion: reveal, float, counters, reduced-motion
   ========================================================================= */

/* ------------------------------------------------------------------ 1. TOKENS */

:root {
  /* Brand ramp, read straight off the logo */
  --oz-blue-50:  #eef5ff;
  --oz-blue-100: #d9e8ff;
  --oz-blue-200: #b6d2ff;
  --oz-blue-300: #83b4ff;
  --oz-blue-400: #4a8dff;
  --oz-blue-500: #1e6bff;  /* electric blue — the handset */
  --oz-blue-600: #0f4fe0;
  --oz-blue-700: #0b3bb0;
  --oz-blue-800: #0a2c80;
  --oz-blue-900: #071d52;
  --oz-navy:     #050b22;  /* deep space */
  --oz-navy-2:   #0a1536;

  --oz-violet-300: #c4b2ff;
  --oz-violet-400: #a78bfa;
  --oz-violet-500: #8b5cf6;  /* the speech bubble */
  --oz-violet-600: #7430e8;

  --oz-cyan-300: #7ee8fa;
  --oz-cyan-400: #38d6f0;
  --oz-cyan-500: #14b8d4;   /* תכלת זוהר */

  --oz-mint-400: #34d399;
  --oz-amber-400: #fbbf24;
  --oz-rose-400: #fb7185;

  /* Signature gradients */
  --oz-grad-brand:  linear-gradient(135deg, var(--oz-violet-500) 0%, var(--oz-blue-500) 55%, var(--oz-cyan-400) 100%);
  --oz-grad-brand-r: linear-gradient(315deg, var(--oz-violet-500) 0%, var(--oz-blue-500) 55%, var(--oz-cyan-400) 100%);
  --oz-grad-soft:   linear-gradient(135deg, rgba(139,92,246,.16), rgba(30,107,255,.16) 55%, rgba(56,214,240,.16));
  --oz-grad-text:   linear-gradient(100deg, var(--oz-cyan-400), var(--oz-blue-400) 40%, var(--oz-violet-400));

  /* Semantic surface tokens — these are what everything else reads */
  --oz-bg:          #f5f8ff;
  --oz-bg-2:        #eaf0fe;
  --oz-bg-deep:     #0a1536;          /* always-dark sections, both themes */
  --oz-surface:     #ffffff;
  --oz-surface-2:   #f3f6fd;
  --oz-surface-3:   #e9eefb;
  --oz-surface-inset: #f7f9ff;
  --oz-glass:       rgba(255, 255, 255, .72);
  --oz-glass-strong: rgba(255, 255, 255, .9);
  --oz-line:        #dbe4f7;
  --oz-line-strong: #c3d1ee;
  --oz-text:        #0b1733;
  --oz-text-2:      #41527a;
  --oz-text-3:      #6b7b9e;
  --oz-text-inv:    #ffffff;
  --oz-accent:      var(--oz-blue-600);
  --oz-accent-soft: rgba(30, 107, 255, .1);
  --oz-on-accent:   #ffffff;

  --oz-ring:        rgba(30, 107, 255, .35);
  --oz-shadow-sm:   0 2px 8px rgba(10, 25, 70, .06);
  --oz-shadow:      0 14px 40px -16px rgba(10, 25, 70, .28);
  --oz-shadow-lg:   0 40px 90px -36px rgba(10, 25, 70, .45);
  --oz-glow:        0 0 0 1px rgba(30,107,255,.14), 0 18px 60px -20px rgba(30,107,255,.45);

  --oz-r-sm: 10px;
  --oz-r:    16px;
  --oz-r-lg: 24px;
  --oz-r-xl: 34px;
  --oz-r-pill: 999px;

  --oz-shell: 1200px;
  --oz-gutter: clamp(16px, 4vw, 40px);

  --oz-font: "Heebo", "Rubik", "Segoe UI", system-ui, -apple-system, sans-serif;
  --oz-font-display: "Rubik", "Heebo", "Segoe UI", system-ui, sans-serif;

  --oz-ease: cubic-bezier(.22, .68, 0, 1);
  --oz-dur: .5s;

  color-scheme: light;
}

[data-theme="dark"] {
  /* Night mode is built on warm-neutral dark greys rather than near-black navy.
     Heavy black backgrounds made cards, menus and buttons bleed into the page and
     pushed text contrast past comfortable into harsh; these greys keep every
     surface distinguishable from the one behind it while staying easy on the eye.
     Measured against WCAG: body text 14.6:1, secondary text 8.4:1, muted text
     5.2:1, and the accent 7.1:1 — all on the card surface, the worst case. */
  --oz-bg:          #171a21;   /* page */
  --oz-bg-2:        #1d212a;   /* alternating band */
  --oz-bg-deep:     #121419;   /* the always-dark sections */
  --oz-surface:     #232831;   /* cards, panels, menus */
  --oz-surface-2:   #2a3039;   /* raised / hovered card */
  --oz-surface-3:   #333a45;   /* chips, inset tiles */
  --oz-surface-inset: #1b1f27; /* wells, code, inputs */
  --oz-glass:       rgba(35, 40, 49, .74);
  --oz-glass-strong: rgba(29, 33, 42, .93);
  --oz-line:        rgba(180, 194, 219, .16);
  --oz-line-strong: rgba(180, 194, 219, .30);
  --oz-text:        #eef1f7;
  --oz-text-2:      #c2cbdb;
  --oz-text-3:      #9aa5b9;
  --oz-text-inv:    #0b1733;
  --oz-accent:      var(--oz-blue-300);
  --oz-accent-soft: rgba(131, 180, 255, .15);
  --oz-on-accent:   #0b1733;

  --oz-ring:        rgba(131, 180, 255, .45);
  /* Softer than before: on grey, a near-opaque black shadow reads as a smudge. */
  --oz-shadow-sm:   0 2px 8px rgba(0, 0, 0, .30);
  --oz-shadow:      0 16px 40px -18px rgba(0, 0, 0, .55);
  --oz-shadow-lg:   0 42px 90px -38px rgba(0, 0, 0, .68);
  --oz-glow:        0 0 0 1px rgba(131,180,255,.22), 0 22px 60px -26px rgba(56, 214, 240, .28);

  color-scheme: dark;
}

/* ------------------------------------------------------- 2. BASE & TYPOGRAPHY */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.oz {
  margin: 0;
  background: var(--oz-bg);
  color: var(--oz-text);
  font-family: var(--oz-font);
  font-size: 16px;
  line-height: 1.7;
  font-feature-settings: "liga" 1, "kern" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .45s var(--oz-ease), color .45s var(--oz-ease);
}

/* :where() keeps this at zero specificity, so every component below (the hero,
   the deep sections, the panel headers, the footer) can set its own colour with
   a plain class selector instead of fighting an element rule. */
:where(body.oz, body.oz-panel) :where(h1, h2, h3, h4) {
  font-family: var(--oz-font-display);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.015em;
  margin: 0 0 .4em;
  color: var(--oz-text);
}

.oz-display {
  font-family: var(--oz-font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -.03em;
}
/* The H1 leads with the brand name and then states what it is. The second line
   steps down in size so the two read as one heading rather than two. */
.oz-display-sub {
  display: block;
  font-size: .56em;
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-top: .12em;
}

.oz-h2 { font-size: clamp(1.75rem, 3.8vw, 2.9rem); letter-spacing: -.025em; }
.oz-h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

.oz-lead { font-size: clamp(1.02rem, 1.7vw, 1.22rem); color: var(--oz-text-2); max-width: 62ch; }
.oz-muted { color: var(--oz-text-3); }
.oz-small { font-size: .84rem; }

.oz-gradient-text {
  background: var(--oz-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Hebrew diacritic-free display type can clip at the baseline when painted
     through a background clip — a hair of padding keeps descenders intact. */
  padding-block: .06em;
}

body.oz a { color: var(--oz-accent); text-decoration: none; }
body.oz a:hover { text-decoration: underline; }

:where(body.oz) :focus-visible {
  outline: 3px solid var(--oz-ring);
  outline-offset: 3px;
  border-radius: 6px;
}

.oz-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.oz-skip {
  position: absolute; inset-inline-start: 50%; top: -100px; z-index: 200;
  transform: translateX(50%);
  background: var(--oz-surface); color: var(--oz-text);
  padding: 12px 20px; border-radius: 0 0 var(--oz-r) var(--oz-r);
  box-shadow: var(--oz-shadow);
}
.oz-skip:focus { top: 0; }

/* --------------------------------------------------------- 3. BACKDROP LAYERS */

/* Aurora: three slow-drifting colour fields. Painted with radial gradients on a
   single element so it costs one composited layer, not a stack of blurred divs. */
.oz-aurora {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 150%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(42% 38% at 18% 22%, rgba(139, 92, 246, .50), transparent 70%),
    radial-gradient(46% 42% at 82% 18%, rgba(30, 107, 255, .52), transparent 72%),
    radial-gradient(40% 44% at 60% 82%, rgba(20, 184, 212, .40), transparent 70%);
  filter: blur(46px) saturate(118%);
  opacity: .55;
  animation: oz-drift 26s var(--oz-ease) infinite alternate;
  will-change: transform;
}
[data-theme="dark"] .oz-aurora { opacity: .42; filter: blur(64px) saturate(115%); }

@keyframes oz-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-3%, 2.5%, 0) scale(1.06); }
  100% { transform: translate3d(3%, -2%, 0) scale(1.03); }
}

/* Circuit grid — the board traces from the logo, laid flat in perspective. */
.oz-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to left, var(--oz-grid-line, rgba(30,107,255,.13)) 1px, transparent 1px),
    linear-gradient(to bottom, var(--oz-grid-line, rgba(30,107,255,.13)) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 35%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 35%, #000 20%, transparent 78%);
}
[data-theme="dark"] .oz-grid { --oz-grid-line: rgba(180, 194, 219, .10); }

/* Concentric signal rings — the "call reaching out" motif. */
.oz-rings {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  display: grid; place-items: center;
}
.oz-rings span {
  position: absolute;
  border: 1px solid rgba(30, 107, 255, .20);
  border-radius: 50%;
  aspect-ratio: 1;
  width: clamp(280px, 38vw, 560px);
  animation: oz-pulse-ring 7s var(--oz-ease) infinite;
}
[data-theme="dark"] .oz-rings span { border-color: rgba(180, 194, 219, .18); }
.oz-rings span:nth-child(2) { animation-delay: 1.75s; }
.oz-rings span:nth-child(3) { animation-delay: 3.5s; }
.oz-rings span:nth-child(4) { animation-delay: 5.25s; }

@keyframes oz-pulse-ring {
  0%   { transform: scale(.55); opacity: 0; }
  18%  { opacity: .9; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* Fine film grain so the big gradients never band on wide screens. */
.oz-noise {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='.6'/></svg>");
}

/* A section's art-directed photographic backdrop. The image is supplied through
   --oz-art (light) / --oz-art-dark; with no image set the section still reads
   correctly, because the aurora underneath carries the colour on its own. */
.oz-art {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: var(--oz-art, none);
  background-size: cover;
  background-position: var(--oz-art-pos, center);
  opacity: var(--oz-art-opacity, .5);
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
}
[data-theme="dark"] .oz-art {
  background-image: var(--oz-art-dark, var(--oz-art, none));
  opacity: var(--oz-art-opacity-dark, .38);
}

/* ------------------------------------------------------ 4. LAYOUT PRIMITIVES */

.oz-shell {
  width: min(var(--oz-shell), 100% - (var(--oz-gutter) * 2));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}
.oz-shell-wide { --oz-shell: 1380px; }

.oz-section {
  position: relative;
  padding-block: clamp(64px, 9vw, 128px);
  isolation: isolate;
}
.oz-section-tight { padding-block: clamp(44px, 6vw, 80px); }

/* A section rendered on the deep navy plate, in both themes. */
.oz-section-deep {
  background: var(--oz-bg-deep);
  color: #eaf0ff;
  overflow: hidden;
}
.oz-section-deep h2, .oz-section-deep h3 { color: #fff; }
.oz-section-deep .oz-lead, .oz-section-deep .oz-muted { color: #a9bbe4; }

.oz-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--oz-accent);
  background: var(--oz-accent-soft);
  border: 1px solid color-mix(in srgb, var(--oz-accent) 24%, transparent);
  padding: 7px 14px; border-radius: var(--oz-r-pill);
  margin-bottom: 18px;
}
.oz-section-deep .oz-eyebrow {
  color: var(--oz-cyan-300);
  background: rgba(56, 214, 240, .1);
  border-color: rgba(56, 214, 240, .28);
}

.oz-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 60px); }
.oz-head-center { margin-inline: auto; text-align: center; }
.oz-head-center .oz-lead { margin-inline: auto; }

.oz-cards {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
}
.oz-cards-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }

/* ---------------------------------------------------------- 5. GLASS SURFACES */

.oz-card {
  position: relative;
  background: var(--oz-glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--oz-line);
  border-radius: var(--oz-r-lg);
  padding: clamp(22px, 2.6vw, 32px);
  box-shadow: var(--oz-shadow-sm);
  transition: transform .45s var(--oz-ease), box-shadow .45s var(--oz-ease),
              border-color .45s var(--oz-ease), background-color .45s var(--oz-ease);
  overflow: hidden;
}
.oz-section-deep .oz-card {
  background: rgba(17, 31, 69, .55);
  border-color: rgba(125, 160, 235, .2);
}

/* The luminous hairline: a gradient painted into the border box only. */
.oz-card-lit::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--oz-grad-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .45;
  pointer-events: none;
  transition: opacity .45s var(--oz-ease);
}

/* The travelling sheen that follows the pointer across a card. */
.oz-card-hover::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit; pointer-events: none;
  background: radial-gradient(340px circle at var(--oz-mx, 50%) var(--oz-my, 0%),
              rgba(30, 107, 255, .16), transparent 62%);
  opacity: 0;
  transition: opacity .45s var(--oz-ease);
}
.oz-card-hover:hover { transform: translateY(-6px); box-shadow: var(--oz-glow); border-color: var(--oz-line-strong); }
.oz-card-hover:hover::after { opacity: 1; }
.oz-card-hover:hover.oz-card-lit::before { opacity: .95; }

a.oz-card { color: inherit; display: block; }
a.oz-card:hover { text-decoration: none; }

.oz-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 18px;
  font-size: 1.35rem;
  color: #fff;
  background: var(--oz-grad-brand);
  box-shadow: 0 14px 30px -12px rgba(30, 107, 255, .75);
  margin-bottom: 18px;
}
.oz-icon-ghost {
  background: var(--oz-accent-soft);
  color: var(--oz-accent);
  box-shadow: none;
  border: 1px solid color-mix(in srgb, var(--oz-accent) 22%, transparent);
}

/* ------------------------------------------------ 6. BUTTONS, CHIPS, BADGES */

.oz-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--oz-font-display);
  font-weight: 700; font-size: .98rem;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: var(--oz-r-pill);
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform .3s var(--oz-ease), box-shadow .3s var(--oz-ease),
              background-color .3s var(--oz-ease), color .3s var(--oz-ease);
  overflow: hidden;
}
.oz-btn:active { transform: translateY(1px) scale(.99); }

.oz-btn-primary {
  background: var(--oz-grad-brand);
  background-size: 200% 200%;
  color: #fff;
  box-shadow: 0 16px 40px -14px rgba(30, 107, 255, .8);
}
.oz-btn-primary:hover { transform: translateY(-3px); background-position: 100% 0; box-shadow: 0 24px 54px -16px rgba(124, 58, 237, .8); }
/* Sweeping highlight — travels right-to-left, with the reading direction. */
.oz-btn-primary::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.4) 50%, transparent 80%);
  transform: translateX(-130%);
  transition: transform .8s var(--oz-ease);
}
.oz-btn-primary:hover::before { transform: translateX(130%); }

.oz-btn-ghost {
  background: var(--oz-glass-strong);
  color: var(--oz-text);
  border-color: var(--oz-line-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.oz-btn-ghost:hover { transform: translateY(-3px); border-color: var(--oz-accent); color: var(--oz-accent); }
.oz-section-deep .oz-btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.26); }
.oz-section-deep .oz-btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; }

.oz-btn-sm { padding: 10px 20px; font-size: .88rem; }

.oz-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.oz-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: var(--oz-r-pill);
  background: var(--oz-surface-2);
  border: 1px solid var(--oz-line);
  color: var(--oz-text-2);
  font-size: .86rem; font-weight: 600;
}
.oz-section-deep .oz-chip { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #c7d6f5; }

.oz-live {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .82rem; font-weight: 700; color: var(--oz-mint-400);
}
.oz-live i.oz-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--oz-mint-400);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, .7);
  animation: oz-beacon 2.4s ease-out infinite;
}
@keyframes oz-beacon {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); }
  70%  { box-shadow: 0 0 0 11px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* -------------------------------------------------- 7. SITE HEADER & FOOTER */

.oz-header {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--oz-bg) 72%, transparent);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--oz-ease), background-color .4s var(--oz-ease), box-shadow .4s var(--oz-ease);
}
.oz-header.is-stuck { border-bottom-color: var(--oz-line); box-shadow: var(--oz-shadow-sm); }

.oz-nav {
  display: flex; align-items: center; gap: 18px;
  min-height: 74px;
}
.oz-brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.oz-brand img {
  height: 42px; width: auto; display: block;
  border-radius: 11px;
  /* The asset carries its own light plate; rounding it turns that plate into a
     deliberate chip instead of a stray white rectangle on the dark theme. */
  box-shadow: 0 2px 10px rgba(10, 25, 70, .18);
}
[data-theme="dark"] .oz-brand img { box-shadow: 0 0 0 1px rgba(180,194,219,.22), 0 6px 16px rgba(0,0,0,.38); }
.oz-brand-name { font-family: var(--oz-font-display); font-weight: 800; font-size: 1.1rem; color: var(--oz-text); letter-spacing: -.02em; }
.oz-brand-sub { display: block; font-size: .7rem; font-weight: 600; color: var(--oz-text-3); letter-spacing: .02em; }
.oz-brand:hover { text-decoration: none; }

.oz-nav-links { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.oz-nav-links a {
  padding: 9px 14px; border-radius: var(--oz-r-pill);
  font-size: .92rem; font-weight: 600; color: var(--oz-text-2);
  transition: color .25s var(--oz-ease), background-color .25s var(--oz-ease);
}
.oz-nav-links a:hover, .oz-nav-links a[aria-current="page"] {
  color: var(--oz-accent); background: var(--oz-accent-soft); text-decoration: none;
}
.oz-nav-end { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

/* Theme switch — a real icon toggle, sun and moon crossfading in place. */
.oz-theme-toggle {
  position: relative;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 14px;
  border: 1px solid var(--oz-line);
  background: var(--oz-surface-2);
  color: var(--oz-text-2);
  cursor: pointer;
  transition: border-color .3s var(--oz-ease), color .3s var(--oz-ease), background-color .3s var(--oz-ease);
}
.oz-theme-toggle:hover { color: var(--oz-accent); border-color: var(--oz-accent); }
.oz-theme-toggle svg { position: absolute; width: 21px; height: 21px; transition: opacity .4s var(--oz-ease), transform .5s var(--oz-ease); }
.oz-theme-toggle .oz-ico-sun  { opacity: 0; transform: rotate(-70deg) scale(.4); }
.oz-theme-toggle .oz-ico-moon { opacity: 1; transform: rotate(0deg) scale(1); }
[data-theme="dark"] .oz-theme-toggle .oz-ico-sun  { opacity: 1; transform: rotate(0deg) scale(1); }
[data-theme="dark"] .oz-theme-toggle .oz-ico-moon { opacity: 0; transform: rotate(70deg) scale(.4); }

/* Notifications bell. Same 44px square as the theme switch so the two sit as a
   pair, with the unread badge pinned to its upper-inline-start corner. */
.oz-bell {
  position: relative;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 14px;
  border: 1px solid var(--oz-line);
  background: var(--oz-surface-2);
  color: var(--oz-text-2);
  text-decoration: none;
  transition: border-color .3s var(--oz-ease), color .3s var(--oz-ease), background-color .3s var(--oz-ease);
}
.oz-bell:hover { color: var(--oz-accent); border-color: var(--oz-accent); }
.oz-bell svg { width: 21px; height: 21px; }
.oz-bell.has-unread { color: var(--oz-accent); border-color: var(--oz-accent); }
.oz-bell-badge {
  position: absolute; inset-block-start: -6px; inset-inline-start: -6px;
  min-width: 19px; height: 19px; padding: 0 5px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--oz-rose-400); color: #fff;
  font-size: .68rem; font-weight: 800; line-height: 1;
  box-shadow: 0 0 0 2px var(--oz-bg);
}
@media (prefers-reduced-motion: no-preference) {
  .oz-bell.has-unread svg { animation: ozBellRing 4.5s var(--oz-ease) infinite; transform-origin: top center; }
}
@keyframes ozBellRing {
  0%, 88%, 100% { transform: rotate(0deg); }
  90% { transform: rotate(11deg); }
  93% { transform: rotate(-9deg); }
  96% { transform: rotate(5deg); }
}

.oz-nav-toggle { display: none; }

@media (max-width: 920px) {
  .oz-nav-links {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--oz-glass-strong);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--oz-line);
    padding: 14px var(--oz-gutter) 22px;
    transform: translateY(-14px);
    opacity: 0; visibility: hidden;
    transition: opacity .3s var(--oz-ease), transform .3s var(--oz-ease), visibility .3s;
    max-height: calc(100vh - 74px); overflow-y: auto;
  }
  .oz-nav-links.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .oz-nav-links a { padding: 13px 16px; font-size: 1rem; }
  .oz-nav-toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px; border-radius: 14px;
    border: 1px solid var(--oz-line); background: var(--oz-surface-2);
    color: var(--oz-text-2); cursor: pointer;
  }
  .oz-nav-end { margin-inline-start: auto; }
}

/* On the narrowest phones the header would otherwise run past the viewport:
   the call-to-action drops to its icon, and the brand keeps only the mark. */
@media (max-width: 560px) {
  .oz-nav { gap: 10px; min-height: 66px; }
  .oz-nav-links { inset-block-start: 66px; }
  .oz-nav-end { gap: 7px; }
  .oz-header .oz-btn { padding: 12px; gap: 0; }
  .oz-header .oz-btn .oz-label { display: none; }
  .oz-brand-name { font-size: .98rem; }
  .oz-brand-sub { display: none; }
  .oz-theme-toggle, .oz-nav-toggle { width: 40px; height: 40px; }
}
@media (max-width: 380px) {
  .oz-brand span:not(.oz-brand-name):not(.oz-brand-sub) { display: none; }
}

.oz-footer {
  position: relative;
  background: var(--oz-bg-deep);
  color: #a9bbe4;
  padding-block: clamp(48px, 6vw, 76px) 28px;
  overflow: hidden;
}
.oz-footer h3 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.oz-footer a { color: #a9bbe4; font-size: .92rem; }
.oz-footer a:hover { color: var(--oz-cyan-300); }
.oz-footer-grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.oz-footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.oz-footer-base {
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid rgba(125, 160, 235, .16);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .84rem; color: #9aa5b9;
}
.oz-footer-credit a { color: #b6d2ff; font-weight: 700; text-decoration: none; }
.oz-footer-credit a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ 8. HERO */

.oz-hero {
  position: relative;
  padding-block: clamp(56px, 8vw, 116px) clamp(64px, 9vw, 130px);
  background: var(--oz-bg-deep);
  color: #eaf0ff;
  overflow: hidden;
  isolation: isolate;
}
.oz-hero h1, .oz-hero h2 { color: #fff; }
.oz-hero .oz-lead { color: #b9c9ec; }

.oz-hero-grid {
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
}
@media (max-width: 980px) {
  .oz-hero-grid { grid-template-columns: 1fr; text-align: center; }
  .oz-hero-grid .oz-lead { margin-inline: auto; }
  .oz-hero-actions { justify-content: center; }
  .oz-hero-marks { justify-content: center; }
}

.oz-hero-logo { height: clamp(104px, 16vw, 168px); width: auto; display: block; margin-bottom: 26px; filter: drop-shadow(0 24px 50px rgba(30, 107, 255, .55)); }
@media (max-width: 980px) { .oz-hero-logo { margin-inline: auto; } }

.oz-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.oz-hero-marks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* The hero stage: the brand mark held inside a ring of orbiting UI fragments. */
.oz-stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 520px; margin-inline: auto; display: grid; place-items: center; }
/* The brand mark is supplied on a light plate, and its wordmark is dark blue —
   so the core is a luminous light disc rather than a saturated one. The mark
   stays exactly as designed, and the brand gradient does the glowing around it. */
.oz-stage-core {
  position: relative; z-index: 3;
  width: 66%; aspect-ratio: 1;
  border-radius: 50%;
  display: grid; place-items: center;
  padding: 7%;
  background: radial-gradient(circle at 34% 24%, #ffffff, #e9f0ff 62%, #d6e4ff 100%);
  box-shadow:
    0 0 0 10px rgba(30, 107, 255, .14),
    0 0 0 1px rgba(255, 255, 255, .55) inset,
    0 50px 110px -26px rgba(30, 107, 255, .85);
  animation: oz-breathe 7s var(--oz-ease) infinite;
}
/* The rotating gradient halo that reads as "signal going out". */
.oz-stage-core::before {
  content: ""; position: absolute; inset: -14px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--oz-cyan-400), var(--oz-blue-500), var(--oz-violet-500), var(--oz-cyan-400));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
  animation: oz-spin 9s linear infinite;
  opacity: .9;
}
.oz-stage-core img {
  position: relative; z-index: 1;
  width: 100%; height: auto; display: block;
  border-radius: 50%;
}
@keyframes oz-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.035); }
}

.oz-orbit {
  position: absolute; inset: 0; z-index: 2;
  border-radius: 50%;
  border: 1px dashed rgba(125, 160, 235, .3);
  animation: oz-spin 38s linear infinite;
}
.oz-orbit-2 { inset: 13%; border-style: solid; border-color: rgba(125, 160, 235, .18); animation-duration: 26s; animation-direction: reverse; }

@keyframes oz-spin { to { transform: rotate(360deg); } }

.oz-float {
  position: absolute; z-index: 4;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 16px;
  border-radius: 16px;
  background: rgba(13, 24, 56, .74);
  border: 1px solid rgba(125, 160, 235, .3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #e7eeff;
  font-size: .84rem; font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 20px 44px -20px rgba(0,0,0,.8);
  animation: oz-bob 6s var(--oz-ease) infinite;
}
.oz-float i { color: var(--oz-cyan-400); }
.oz-float-a { top: 6%;  inset-inline-start: -4%; animation-delay: 0s; }
.oz-float-b { top: 38%; inset-inline-end: -8%;  animation-delay: 1.3s; }
.oz-float-c { bottom: 12%; inset-inline-start: 2%; animation-delay: 2.6s; }
.oz-float-d { bottom: 2%; inset-inline-end: 6%;  animation-delay: 3.9s; }
@media (max-width: 620px) { .oz-float-a, .oz-float-d { display: none; } }

@keyframes oz-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-13px); }
}

/* Voice waveform — the bars from the logo's right-hand side, animated. */
.oz-wave { display: inline-flex; align-items: flex-end; gap: 3px; height: 20px; }
.oz-wave b {
  display: block; width: 3px; border-radius: 2px;
  background: currentColor; opacity: .85;
  animation: oz-bars 1.25s ease-in-out infinite;
}
.oz-wave b:nth-child(1) { height: 36%; animation-delay: 0s; }
.oz-wave b:nth-child(2) { height: 70%; animation-delay: .1s; }
.oz-wave b:nth-child(3) { height: 100%; animation-delay: .2s; }
.oz-wave b:nth-child(4) { height: 58%; animation-delay: .3s; }
.oz-wave b:nth-child(5) { height: 82%; animation-delay: .4s; }
.oz-wave b:nth-child(6) { height: 44%; animation-delay: .5s; }
@keyframes oz-bars { 0%, 100% { transform: scaleY(.42); } 50% { transform: scaleY(1); } }

/* ------------------------------------------------- 9. LIVE STATS DASHBOARD */

.oz-stats {
  display: grid;
  gap: clamp(14px, 1.8vw, 22px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.oz-stat {
  position: relative;
  padding: clamp(26px, 3vw, 38px) clamp(22px, 2.4vw, 30px);
  border-radius: var(--oz-r-lg);
  background: linear-gradient(165deg, rgba(23, 40, 90, .9), rgba(10, 21, 54, .92));
  border: 1px solid rgba(125, 160, 235, .22);
  overflow: hidden;
  text-align: center;
  transition: transform .45s var(--oz-ease), box-shadow .45s var(--oz-ease), border-color .45s var(--oz-ease);
}
.oz-stat:hover { transform: translateY(-6px); border-color: rgba(125, 160, 235, .42); box-shadow: 0 40px 80px -36px rgba(30, 107, 255, .9); }

/* Each tile carries its own colour wash, so the row reads as a set, not a stripe. */
.oz-stat::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: var(--oz-stat-accent, var(--oz-grad-brand));
}
.oz-stat::after {
  content: ""; position: absolute; top: -45%; inset-inline-end: -25%;
  width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: var(--oz-stat-glow, rgba(30, 107, 255, .3));
  filter: blur(46px);
  pointer-events: none;
}

.oz-stat-icon {
  position: relative; z-index: 1;
  width: 54px; height: 54px; margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 17px; font-size: 1.3rem; color: #fff;
  background: var(--oz-stat-accent, var(--oz-grad-brand));
  box-shadow: 0 16px 34px -14px rgba(0,0,0,.8);
}

.oz-stat-value {
  position: relative; z-index: 1;
  font-family: var(--oz-font-display);
  font-weight: 900;
  font-size: clamp(2.9rem, 6.2vw, 4.3rem);
  line-height: 1;
  letter-spacing: -.045em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  direction: ltr;                 /* digits and the "+" suffix stay LTR */
  display: flex; align-items: baseline; justify-content: center; gap: 2px;
  min-height: 1em;
}
.oz-stat-value .oz-suffix { font-size: .42em; font-weight: 800; color: var(--oz-cyan-300); }
.oz-stat-value.is-counting { color: var(--oz-cyan-300); }

.oz-stat-label {
  position: relative; z-index: 1;
  margin-top: 14px;
  font-family: var(--oz-font-display);
  font-weight: 700; font-size: 1.04rem; color: #fff;
}
.oz-stat-note { position: relative; z-index: 1; margin-top: 6px; font-size: .86rem; color: #93a7d4; line-height: 1.6; }

.oz-stat-bar { position: relative; z-index: 1; margin-top: 18px; height: 5px; border-radius: 999px; background: rgba(125, 160, 235, .2); overflow: hidden; }
.oz-stat-bar i {
  display: block; height: 100%; width: 0; border-radius: 999px;
  background: var(--oz-stat-accent, var(--oz-grad-brand));
  transition: width 2.2s var(--oz-ease);
}

.oz-stats-meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 26px;
  font-size: .85rem; color: #93a7d4;
}

/* --------------------------------- 10. FEATURE / STEP / CAPABILITY MODULES */

.oz-feature h3 { margin-bottom: 8px; font-size: 1.16rem; }
.oz-feature p { margin: 0; color: var(--oz-text-2); font-size: .96rem; }
.oz-section-deep .oz-feature p { color: #a9bbe4; }

/* Numbered flow, with the connector drawn along the inline axis (RTL-safe). */
.oz-steps { display: grid; gap: clamp(18px, 2.4vw, 28px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: ozstep; }
.oz-step { position: relative; padding-top: 10px; }
.oz-step-num {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 50%;
  font-family: var(--oz-font-display); font-weight: 900; font-size: 1.15rem;
  color: #fff; background: var(--oz-grad-brand);
  box-shadow: 0 14px 30px -12px rgba(30, 107, 255, .8);
  margin-bottom: 16px; position: relative; z-index: 2;
}
.oz-step::before {
  content: ""; position: absolute; top: 36px;
  inset-inline-start: 52px; inset-inline-end: -28px;
  height: 2px;
  background: linear-gradient(to left, var(--oz-line-strong), transparent);
  z-index: 1;
}
.oz-step:last-child::before { display: none; }
@media (max-width: 760px) { .oz-step::before { display: none; } }
.oz-step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.oz-step p { margin: 0; color: var(--oz-text-2); font-size: .94rem; }
.oz-section-deep .oz-step p { color: #a9bbe4; }

/* Tidy two-column "benefit" list with check marks. */
.oz-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.oz-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--oz-text-2); }
.oz-list li > i:first-child {
  flex: 0 0 auto; width: 26px; height: 26px; margin-top: 2px;
  display: grid; place-items: center; border-radius: 9px;
  font-size: .72rem; color: #fff; background: var(--oz-grad-brand);
}
.oz-section-deep .oz-list li { color: #b9c9ec; }

/* Split module: copy on one side, an illustrated plate on the other. */
.oz-split { display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: center; }

.oz-plate {
  position: relative;
  border-radius: var(--oz-r-xl);
  overflow: hidden;
  min-height: 330px;
  background: linear-gradient(150deg, rgba(139,92,246,.2), rgba(30,107,255,.22) 50%, rgba(20,184,212,.2)), var(--oz-bg-deep);
  border: 1px solid var(--oz-line);
  box-shadow: var(--oz-shadow-lg);
  display: grid; place-items: center;
  padding: 30px;
}
.oz-plate img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

/* Marquee of capability pills — pure CSS, pauses on hover and when reduced. */
.oz-marquee { position: relative; overflow: hidden; mask-image: linear-gradient(to left, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(to left, transparent, #000 8%, #000 92%, transparent); }
.oz-marquee-track { display: flex; gap: 12px; width: max-content; animation: oz-marquee 42s linear infinite; }
.oz-marquee:hover .oz-marquee-track { animation-play-state: paused; }
@keyframes oz-marquee { to { transform: translateX(50%); } }

/* Q&A disclosure used by the guides section. */
.oz-qa { border: 1px solid var(--oz-line); border-radius: var(--oz-r); background: var(--oz-surface); overflow: hidden; transition: border-color .3s var(--oz-ease); }
.oz-qa + .oz-qa { margin-top: 12px; }
.oz-qa[open] { border-color: var(--oz-accent); }
.oz-qa summary {
  cursor: pointer; list-style: none;
  padding: 18px 22px;
  font-family: var(--oz-font-display); font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.oz-qa summary::-webkit-details-marker { display: none; }
.oz-qa summary::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .78rem; color: var(--oz-accent); transition: transform .3s var(--oz-ease); }
.oz-qa[open] summary::after { transform: rotate(180deg); }
.oz-qa-body { padding: 0 22px 20px; color: var(--oz-text-2); font-size: .95rem; }
.oz-qa-body p:first-child { margin-top: 0; }

/* Big closing call-to-action plate. */
.oz-cta {
  position: relative; overflow: hidden;
  border-radius: var(--oz-r-xl);
  padding: clamp(40px, 6vw, 76px) clamp(26px, 5vw, 64px);
  background: linear-gradient(135deg, #1b1253 0%, #0c2a86 48%, #0a5f8e 100%);
  color: #fff; text-align: center;
  box-shadow: var(--oz-shadow-lg);
}
.oz-cta h2 { color: #fff; }
.oz-cta p { color: #c3d4f5; }
.oz-cta .oz-actions { justify-content: center; margin-top: 30px; }

/* Dial-pad glyph used beside the phone number. */
.oz-dial {
  display: inline-grid; grid-template-columns: repeat(3, 1fr); gap: 5px;
  padding: 10px; border-radius: 14px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
}
.oz-dial b { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.65); display: block; }

.oz-phone-number {
  font-family: var(--oz-font-display); font-weight: 900;
  font-size: clamp(1.7rem, 4.6vw, 2.8rem);
  letter-spacing: .04em; direction: ltr; color: #fff;
}

/* -------------------------------------------------------- 11. PANEL CHROME */

/* The self-service tools (keys / plus / connect / history / admin) keep their
   original markup and behaviour; this gives them the new shell around it. */
body.oz-panel {
  min-height: 100vh;
  background:
    radial-gradient(60% 46% at 88% -4%, rgba(139, 92, 246, .16), transparent 62%),
    radial-gradient(56% 42% at 6% 2%, rgba(30, 107, 255, .16), transparent 60%),
    var(--oz-bg);
  background-attachment: fixed;
}

.oz-panel-wrap { width: min(var(--oz-panel-w, 760px), 100% - 32px); margin-inline: auto; padding-block: 20px 56px; position: relative; z-index: 2; }
.oz-panel-wrap-wide { --oz-panel-w: 1180px; }

.oz-panel-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.oz-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .88rem; font-weight: 600; color: var(--oz-text-2);
  padding: 9px 15px; border-radius: var(--oz-r-pill);
  border: 1px solid var(--oz-line); background: var(--oz-surface);
  transition: color .25s var(--oz-ease), border-color .25s var(--oz-ease), transform .25s var(--oz-ease);
}
.oz-back:hover { color: var(--oz-accent); border-color: var(--oz-accent); text-decoration: none; transform: translateX(-3px); }
.oz-panel-bar-end { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }

.oz-panel-card {
  position: relative;
  border-radius: var(--oz-r-xl);
  background: var(--oz-surface);
  border: 1px solid var(--oz-line);
  box-shadow: var(--oz-shadow);
  overflow: hidden;
}
.oz-panel-head {
  position: relative; overflow: hidden;
  padding: clamp(28px, 4vw, 42px) clamp(22px, 3vw, 38px);
  background: linear-gradient(135deg, #1b1253 0%, #0c2a86 52%, #0a5f8e 100%);
  color: #fff; text-align: center;
}
.oz-panel-head::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to left, rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(70% 80% at 50% 0%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 80% at 50% 0%, #000, transparent 75%);
  pointer-events: none;
}
.oz-panel-head > * { position: relative; z-index: 1; }
.oz-panel-head h1 { color: #fff; font-size: clamp(1.4rem, 3.4vw, 1.95rem); margin-bottom: 6px; }
.oz-panel-head p { margin: 0; color: #bed0f3; font-size: .95rem; }
.oz-panel-icon {
  width: 62px; height: 62px; margin: 0 auto 18px;
  display: grid; place-items: center; border-radius: 20px;
  font-size: 1.5rem; color: #fff;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.26);
  backdrop-filter: blur(10px);
}
.oz-panel-body { padding: clamp(22px, 3vw, 36px); }

/* ------------------------------------------- 12. TAILWIND TOKEN BRIDGE
   The tool pages are built from Tailwind utilities. Rather than rewrite every
   form field in six screens (and risk the behaviour that hangs off those IDs),
   the handful of colour utilities they actually use are re-pointed at the theme
   tokens here. One consequence worth having: dark mode reaches every existing
   panel without touching a line of their markup. Loaded after tailwind.css, so
   these win at equal specificity.                                          */

body.oz-panel .bg-white { background-color: var(--oz-surface) !important; }
body.oz-panel .bg-gray-50,
body.oz-panel .bg-slate-50 { background-color: var(--oz-surface-inset) !important; }
body.oz-panel .bg-gray-100,
body.oz-panel .bg-slate-100 { background-color: var(--oz-surface-2) !important; }
body.oz-panel .bg-gray-200,
body.oz-panel .bg-slate-200 { background-color: var(--oz-surface-3) !important; }
body.oz-panel .bg-gray-900 { background-color: #0b1733 !important; }
/* The deep plate must follow the night-mode greys, not stay navy-black. */
[data-theme="dark"] body.oz-panel .bg-gray-900 { background-color: var(--oz-bg-deep) !important; }

body.oz-panel .text-gray-900,
body.oz-panel .text-gray-800 { color: var(--oz-text) !important; }
body.oz-panel .text-gray-700,
body.oz-panel .text-slate-600,
body.oz-panel .text-gray-600 { color: var(--oz-text-2) !important; }
body.oz-panel .text-gray-500,
body.oz-panel .text-gray-400 { color: var(--oz-text-3) !important; }

body.oz-panel .border,
body.oz-panel .border-t,
body.oz-panel .border-b,
body.oz-panel .border-gray-100,
body.oz-panel .border-gray-200,
body.oz-panel .border-gray-300 { border-color: var(--oz-line) !important; }

body.oz-panel .bg-indigo-50 { background-color: var(--oz-accent-soft) !important; }
body.oz-panel .bg-indigo-100 { background-color: color-mix(in srgb, var(--oz-accent) 18%, transparent) !important; }
body.oz-panel .text-indigo-600,
body.oz-panel .text-indigo-700,
body.oz-panel .text-indigo-800,
body.oz-panel .text-indigo-900 { color: var(--oz-accent) !important; }
/* On the dark plate the mid-blue accent sits too close to its own tinted
   background, so link and label text moves up the ramp for real contrast. */
[data-theme="dark"] body.oz-panel .text-indigo-600,
[data-theme="dark"] body.oz-panel .text-indigo-700,
[data-theme="dark"] body.oz-panel .text-indigo-800,
[data-theme="dark"] body.oz-panel .text-indigo-900 { color: #a9c9ff !important; }
body.oz-panel .border-indigo-100,
body.oz-panel .border-indigo-200 { border-color: color-mix(in srgb, var(--oz-accent) 30%, transparent) !important; }
body.oz-panel .hover\:bg-indigo-100:hover { background-color: color-mix(in srgb, var(--oz-accent) 20%, transparent) !important; }
body.oz-panel .hover\:bg-gray-200:hover { background-color: var(--oz-surface-3) !important; }
body.oz-panel .hover\:text-indigo-600:hover { color: var(--oz-accent) !important; }

/* Status colours keep their meaning but gain a dark-mode-legible form. */
[data-theme="dark"] body.oz-panel .bg-green-50,
[data-theme="dark"] body.oz-panel .bg-green-100 { background-color: rgba(52, 211, 153, .16) !important; }
[data-theme="dark"] body.oz-panel .text-green-600,
[data-theme="dark"] body.oz-panel .text-green-700,
[data-theme="dark"] body.oz-panel .text-green-800 { color: #6ee7b7 !important; }
[data-theme="dark"] body.oz-panel .bg-red-50,
[data-theme="dark"] body.oz-panel .bg-red-100 { background-color: rgba(251, 113, 133, .16) !important; }
[data-theme="dark"] body.oz-panel .text-red-500,
[data-theme="dark"] body.oz-panel .text-red-600,
[data-theme="dark"] body.oz-panel .text-red-700,
[data-theme="dark"] body.oz-panel .text-red-800 { color: #fda4af !important; }
[data-theme="dark"] body.oz-panel .bg-blue-50 { background-color: rgba(74, 141, 255, .14) !important; }
[data-theme="dark"] body.oz-panel .text-blue-800,
[data-theme="dark"] body.oz-panel .text-blue-900 { color: #93c5fd !important; }
[data-theme="dark"] body.oz-panel .border-blue-100 { border-color: rgba(74, 141, 255, .3) !important; }
[data-theme="dark"] body.oz-panel .bg-amber-50,
[data-theme="dark"] body.oz-panel .bg-yellow-50 { background-color: rgba(251, 191, 36, .14) !important; }
[data-theme="dark"] body.oz-panel .text-amber-800,
[data-theme="dark"] body.oz-panel .text-amber-900,
[data-theme="dark"] body.oz-panel .text-yellow-700 { color: #fcd34d !important; }
[data-theme="dark"] body.oz-panel .border-amber-100,
[data-theme="dark"] body.oz-panel .border-amber-300 { border-color: rgba(251, 191, 36, .3) !important; }

/* The legacy brand gradient class, re-pointed at the new ramp so any markup
   still asking for `.gradient-bg` picks up the new identity automatically. */
body.oz-panel .gradient-bg,
.gradient-bg { background: var(--oz-grad-brand) !important; }

/* Form controls inside the panels. */
body.oz-panel input,
body.oz-panel textarea,
body.oz-panel select {
  background-color: var(--oz-surface-inset) !important;
  color: var(--oz-text) !important;
  border-color: var(--oz-line) !important;
  border-radius: 13px !important;
  transition: border-color .25s var(--oz-ease), box-shadow .25s var(--oz-ease);
}
body.oz-panel input::placeholder,
body.oz-panel textarea::placeholder { color: var(--oz-text-3) !important; opacity: 1; }
body.oz-panel input:focus,
body.oz-panel textarea:focus,
body.oz-panel select:focus {
  border-color: var(--oz-accent) !important;
  box-shadow: 0 0 0 4px var(--oz-accent-soft) !important;
  outline: none;
}
body.oz-panel input[type="checkbox"],
body.oz-panel input[type="radio"] { accent-color: var(--oz-accent); width: 16px; height: 16px; }

body.oz-panel button:not(.oz-theme-toggle):not(.oz-nav-toggle) { border-radius: 13px; }
body.oz-panel table { border-color: var(--oz-line) !important; }
body.oz-panel table th, body.oz-panel table td { border-color: var(--oz-line) !important; }

/* Overlays sit on the deep plate in dark mode rather than a flat black wash. */
[data-theme="dark"] body.oz-panel .bg-black\/50 { background-color: rgba(3, 8, 24, .72) !important; }

/* ---------------------------------------------------------------- 13. MOTION */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--oz-ease), transform .8s var(--oz-ease);
  transition-delay: var(--oz-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="right"] { transform: translateX(34px); }
[data-reveal="left"]  { transform: translateX(-34px); }
[data-reveal="zoom"]  { transform: scale(.94); }

/* Everything above degrades to a static, legible page when the visitor has
   asked their system for less motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .oz-aurora, .oz-orbit, .oz-float, .oz-stage-core { animation: none !important; }
}

/* ------------------------------------------------------------------ PRINT */
@media print {
  .oz-header, .oz-footer, .oz-aurora, .oz-grid, .oz-rings, .oz-noise { display: none !important; }
  body.oz, body.oz-panel { background: #fff !important; color: #000 !important; }
}

/* ------------------------------------------- LEGACY CLASS COMPATIBILITY
   Two class names survive from the previous design in markup that was kept
   as-is. They are redefined here, on the new tokens, so nothing is left
   unstyled after the page-level <style> blocks were removed.               */

.hub-card { transition: transform .35s var(--oz-ease), box-shadow .35s var(--oz-ease), border-color .35s var(--oz-ease); }
.hub-card:hover { transform: translateY(-6px); box-shadow: var(--oz-glow); border-color: var(--oz-accent); text-decoration: none; }

.chat-card { transition: box-shadow .25s var(--oz-ease), border-color .25s var(--oz-ease); }
.chat-card:hover { box-shadow: var(--oz-shadow); border-color: var(--oz-line-strong); }

.otp-input { letter-spacing: .5em; font-variant-numeric: tabular-nums; }

/* Tailwind's `hidden` is an element-level utility toggled by every panel script
   (`classList.add/remove('hidden')`). Because this stylesheet loads after the
   compiled Tailwind, a component class with equal specificity would otherwise
   win and leave a "hidden" element on screen — so the utility is made
   authoritative. Showing still works, since every call site shows by removing
   the class rather than by adding a competing display. */
.hidden { display: none !important; }

/* ------------------------------------------------------------ 14. CREDITS */
/* Given the weight of a real section, not a footnote: its own tinted band, a
   monogram per person, and a name large enough to be the thing you read. */
.oz-credits-band {
  background: var(--oz-bg-2);
  border-block: 1px solid var(--oz-line);
}
.oz-credits { display: grid; gap: 20px; }
.oz-credit {
  position: relative;
  padding: 30px 28px 28px;
  background: var(--oz-surface);
  border: 1px solid var(--oz-line);
  border-radius: var(--oz-r-lg);
  box-shadow: var(--oz-shadow);
  text-align: center;
  overflow: hidden;
}
.oz-credit::before {
  content: ''; position: absolute; inset-block-start: 0; inset-inline: 0;
  height: 4px; background: var(--oz-grad-brand);
}
.oz-credit-avatar {
  display: grid; place-items: center;
  width: 70px; height: 70px; margin: 4px auto 18px;
  border-radius: 24px;
  background: var(--oz-grad-brand);
  color: #fff;
  font-family: var(--oz-font-display);
  font-size: 1.9rem; font-weight: 900; line-height: 1;
  box-shadow: var(--oz-glow);
}
.oz-credit-role {
  margin: 0 0 10px;
  font-size: .9rem; font-weight: 700; letter-spacing: .01em;
  color: var(--oz-text-3);
}
.oz-credit-name {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--oz-font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  font-weight: 900; line-height: 1.25;
  color: var(--oz-accent);
  text-decoration: none;
  padding: 4px 2px;
  border-radius: var(--oz-r-sm);
}
.oz-credit-name:hover span { text-decoration: underline; text-underline-offset: 5px; }
.oz-credit-name:focus-visible { outline: 2px solid var(--oz-ring); outline-offset: 3px; }
.oz-credit-name i { font-size: .52em; opacity: .75; }
.oz-credit-note {
  margin: 12px auto 0; max-width: 34ch;
  font-size: .93rem; line-height: 1.75; color: var(--oz-text-2);
}
@media (min-width: 760px) { .oz-credits { grid-template-columns: 1fr 1fr; gap: 24px; } }

/* ============================================================================
   15. WORKSPACE  (.ozw-*)
   ----------------------------------------------------------------------------
   The design system for the signed-in management pages: API keys, Plusniks,
   the connect wizard, the chat archive and the tools hub.  These pages used to
   be a narrow card floating on an empty page, built out of raw Tailwind utility
   classes.  They are now laid out on a full-width workspace built from the same
   tokens as the public site, so the whole product reads as one piece of design.

   Everything here is namespaced .ozw-* and is intentionally independent of the
   Tailwind utility layer: no page should need both.
   ========================================================================== */

body.ozw {
  background:
    radial-gradient(1100px 620px at 88% -8%, rgba(139, 92, 246, .13), transparent 62%),
    radial-gradient(900px 540px at 6% 4%, rgba(30, 107, 255, .13), transparent 60%),
    var(--oz-bg);
  min-height: 100vh;
}
[data-theme="dark"] body.ozw {
  background:
    radial-gradient(1100px 620px at 88% -8%, rgba(139, 92, 246, .16), transparent 62%),
    radial-gradient(900px 540px at 6% 4%, rgba(30, 107, 255, .14), transparent 60%),
    var(--oz-bg);
}

.ozw-shell { max-width: 1440px; margin: 0 auto; padding: 22px var(--oz-gutter) 86px; }

/* -- back / breadcrumb row ------------------------------------------------ */
.ozw-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.ozw-back {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: var(--oz-r-pill);
  background: var(--oz-surface); border: 1px solid var(--oz-line);
  color: var(--oz-text-2); font-weight: 700; font-size: .87rem;
  text-decoration: none; transition: all .2s var(--oz-ease);
}
.ozw-back:hover { background: var(--oz-surface-2); color: var(--oz-text); transform: translateX(3px); }
.ozw-bar-spacer { flex: 1 1 auto; }

/* -- page hero ------------------------------------------------------------ */
.ozw-hero {
  position: relative; overflow: hidden;
  border-radius: var(--oz-r-lg); border: 1px solid var(--oz-line);
  background: var(--oz-grad-brand); color: #fff;
  padding: 30px clamp(20px, 3.4vw, 40px);
  box-shadow: var(--oz-shadow);
  margin-bottom: 22px;
}
.ozw-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(620px 300px at 92% -40%, rgba(255,255,255,.3), transparent 70%);
}
.ozw-hero-main { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.ozw-hero-icon {
  width: 62px; height: 62px; flex: none; border-radius: 20px;
  display: grid; place-items: center; font-size: 1.6rem;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.34);
  backdrop-filter: blur(6px);
}
.ozw-hero-text { flex: 1 1 280px; min-width: 0; }
.ozw-hero h1 { margin: 0; font-family: var(--oz-font-display); font-size: clamp(1.4rem, 2.6vw, 1.95rem); font-weight: 900; letter-spacing: -.01em; }
.ozw-hero p { margin: 7px 0 0; font-size: .95rem; line-height: 1.7; color: rgba(255,255,255,.88); max-width: 62ch; }
.ozw-hero-tools { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.ozw-hero-btn {
  width: 42px; height: 42px; border-radius: 14px; border: 1px solid rgba(255,255,255,.34);
  background: rgba(255,255,255,.18); color: #fff; font-size: 1rem; cursor: pointer;
  display: grid; place-items: center; transition: all .2s var(--oz-ease);
}
.ozw-hero-btn:hover { background: rgba(255,255,255,.34); transform: translateY(-2px); }
.ozw-hero-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* hero stat strip */
.ozw-hero-stats {
  position: relative; z-index: 1;
  display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 24px;
}
.ozw-hs {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.26);
  border-radius: var(--oz-r-sm); padding: 13px 15px;
}
.ozw-hs b { display: block; font-size: 1.5rem; font-weight: 900; line-height: 1.2; }
.ozw-hs span { display: block; font-size: .8rem; color: rgba(255,255,255,.85); margin-top: 3px; }

/* -- layout --------------------------------------------------------------- */
.ozw-layout { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1060px) {
  .ozw-layout.split { grid-template-columns: minmax(0, 1fr) 378px; }
  .ozw-layout.halves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ozw-layout.thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.ozw-col { display: grid; gap: 20px; align-content: start; min-width: 0; }
.ozw-full { grid-column: 1 / -1; }
.ozw-sticky { position: sticky; top: 92px; }

/* -- card ----------------------------------------------------------------- */
.ozw-card {
  background: var(--oz-surface); border: 1px solid var(--oz-line);
  border-radius: var(--oz-r); box-shadow: var(--oz-shadow-sm);
  overflow: hidden; min-width: 0;
}
.ozw-card-head {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  padding: 17px clamp(16px, 2.2vw, 24px);
  border-bottom: 1px solid var(--oz-line);
  background: var(--oz-surface-2);
}
.ozw-card-head .ozw-ci {
  width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: var(--oz-accent-soft); color: var(--oz-accent); font-size: .98rem;
}
.ozw-card-head h2 { margin: 0; font-size: 1.03rem; font-weight: 800; color: var(--oz-text); }
.ozw-card-head p { margin: 3px 0 0; font-size: .83rem; color: var(--oz-text-3); line-height: 1.6; }
.ozw-card-head .ozw-ht { flex: 1 1 200px; min-width: 0; }
.ozw-card-body { padding: clamp(16px, 2.2vw, 24px); }
.ozw-card-body > * + * { margin-top: 16px; }
.ozw-card-foot {
  padding: 14px clamp(16px, 2.2vw, 24px);
  border-top: 1px solid var(--oz-line); background: var(--oz-surface-2);
  display: flex; flex-wrap: wrap; gap: 10px;
}

/* -- form elements -------------------------------------------------------- */
.ozw-field { min-width: 0; }
.ozw-field + .ozw-field { margin-top: 15px; }
.ozw-label { display: block; font-size: .88rem; font-weight: 700; color: var(--oz-text); margin-bottom: 7px; }
.ozw-input, .ozw-textarea, .ozw-select {
  width: 100%; font: inherit; font-size: .94rem;
  padding: 12px 14px; color: var(--oz-text);
  background: var(--oz-surface-inset);
  border: 1px solid var(--oz-line); border-radius: 13px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.ozw-textarea { min-height: 112px; resize: vertical; line-height: 1.7; }
.ozw-input:focus, .ozw-textarea:focus, .ozw-select:focus {
  outline: none; background: var(--oz-surface);
  border-color: var(--oz-accent); box-shadow: 0 0 0 4px var(--oz-ring);
}
.ozw-input:disabled, .ozw-textarea:disabled { opacity: .55; cursor: not-allowed; }
.ozw-input::placeholder, .ozw-textarea::placeholder { color: var(--oz-text-3); opacity: .75; }
.ozw-ico { position: relative; }
.ozw-ico > i { position: absolute; inset-inline-start: 15px; top: 50%; transform: translateY(-50%); color: var(--oz-text-3); pointer-events: none; font-size: .95rem; }
.ozw-ico .ozw-input { padding-inline-start: 42px; }
.ozw-help { margin: 7px 0 0; font-size: .8rem; line-height: 1.65; color: var(--oz-text-3); }
.ozw-check { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; font-weight: 600; color: var(--oz-text); cursor: pointer; }
.ozw-check input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--oz-accent); flex: none; }

/* -- buttons -------------------------------------------------------------- */
.ozw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 13px; border: 1px solid var(--oz-line);
  background: var(--oz-surface); color: var(--oz-text);
  font: inherit; font-size: .91rem; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: all .2s var(--oz-ease);
}
.ozw-btn:hover { background: var(--oz-surface-2); transform: translateY(-1px); }
.ozw-btn:active { transform: translateY(0); }
.ozw-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.ozw-btn.primary { background: var(--oz-grad-brand); color: #fff; border-color: transparent; box-shadow: 0 10px 26px -12px rgba(30,107,255,.65); }
.ozw-btn.primary:hover { filter: brightness(1.06); }
.ozw-btn.soft { background: var(--oz-accent-soft); color: var(--oz-accent); border-color: transparent; }
.ozw-btn.soft:hover { background: var(--oz-accent-soft); filter: brightness(.97); }
.ozw-btn.danger { background: rgba(239, 68, 68, .1); color: #c42b2b; border-color: rgba(239, 68, 68, .28); }
[data-theme="dark"] .ozw-btn.danger { color: #ff9b9b; }
.ozw-btn.ghost { background: transparent; }
.ozw-btn.sm { padding: 8px 14px; font-size: .83rem; border-radius: 11px; }
.ozw-btn.block { width: 100%; }
.ozw-btn.lg { padding: 15px 26px; font-size: 1rem; }
.ozw-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ozw-actions.end { justify-content: flex-end; }
.ozw-link {
  background: none; border: 0; padding: 0; font: inherit; font-size: .83rem; font-weight: 700;
  color: var(--oz-accent); cursor: pointer; text-decoration: none;
}
.ozw-link:hover { text-decoration: underline; }

/* -- rows / lists --------------------------------------------------------- */
.ozw-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ozw-row {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  padding: 14px 16px; border-radius: 14px;
  background: var(--oz-surface-2); border: 1px solid var(--oz-line);
  transition: border-color .18s, background .18s;
}
.ozw-row:hover { border-color: var(--oz-line-strong); }
.ozw-row-main { flex: 1 1 220px; min-width: 0; }
.ozw-row-title { font-weight: 800; font-size: .93rem; color: var(--oz-text); word-break: break-word; }
.ozw-row-sub { margin-top: 4px; font-size: .8rem; color: var(--oz-text-3); line-height: 1.6; }
.ozw-row-end { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ozw-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; direction: ltr; unicode-bidi: embed; font-size: .86rem; }

/* -- chips / badges ------------------------------------------------------- */
.ozw-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: var(--oz-r-pill);
  font-size: .76rem; font-weight: 800; white-space: nowrap;
  background: var(--oz-surface-3); color: var(--oz-text-2); border: 1px solid var(--oz-line);
}
.ozw-chip.ok { background: rgba(16,185,129,.13); color: #0f7a5a; border-color: rgba(16,185,129,.3); }
.ozw-chip.warn { background: rgba(245,158,11,.14); color: #a86405; border-color: rgba(245,158,11,.32); }
.ozw-chip.bad { background: rgba(239,68,68,.12); color: #c42b2b; border-color: rgba(239,68,68,.3); }
.ozw-chip.info { background: var(--oz-accent-soft); color: var(--oz-accent); border-color: transparent; }
[data-theme="dark"] .ozw-chip.ok { color: #6ee7b7; }
[data-theme="dark"] .ozw-chip.warn { color: #fcd34d; }
[data-theme="dark"] .ozw-chip.bad { color: #ff9b9b; }

/* -- notes / alerts ------------------------------------------------------- */
.ozw-note {
  padding: 13px 16px; border-radius: 13px; font-size: .86rem; line-height: 1.75;
  background: var(--oz-surface-2); border: 1px solid var(--oz-line); color: var(--oz-text-2);
}
.ozw-note.info { background: var(--oz-accent-soft); border-color: transparent; color: var(--oz-text-2); }
.ozw-alert {
  padding: 13px 16px; border-radius: 13px; font-size: .88rem; font-weight: 700;
  text-align: center; line-height: 1.6;
}
.ozw-alert.ok { background: rgba(16,185,129,.13); color: #0f7a5a; border: 1px solid rgba(16,185,129,.3); }
.ozw-alert.err { background: rgba(239,68,68,.12); color: #c42b2b; border: 1px solid rgba(239,68,68,.3); }
.ozw-alert.info { background: var(--oz-accent-soft); color: var(--oz-accent); border: 1px solid transparent; }
[data-theme="dark"] .ozw-alert.ok { color: #6ee7b7; }
[data-theme="dark"] .ozw-alert.err { color: #ff9b9b; }
.ozw-hide { display: none !important; }

/* -- empty state ---------------------------------------------------------- */
.ozw-empty { text-align: center; padding: 34px 18px; color: var(--oz-text-3); }
.ozw-empty i { font-size: 1.9rem; opacity: .4; display: block; margin-bottom: 11px; }
.ozw-empty p { margin: 0; font-size: .9rem; line-height: 1.7; }

/* -- table ---------------------------------------------------------------- */
.ozw-tablewrap { overflow-x: auto; border-radius: 13px; border: 1px solid var(--oz-line); }
.ozw-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 520px; }
.ozw-table th, .ozw-table td { padding: 12px 14px; text-align: start; }
.ozw-table thead th {
  background: var(--oz-surface-2); color: var(--oz-text-3);
  font-size: .78rem; font-weight: 800; letter-spacing: .02em;
  border-bottom: 1px solid var(--oz-line); white-space: nowrap;
}
.ozw-table tbody tr + tr td { border-top: 1px solid var(--oz-line); }
.ozw-table tbody tr:hover td { background: var(--oz-surface-2); }
.ozw-table td { color: var(--oz-text-2); vertical-align: middle; }
.ozw-table td b { color: var(--oz-text); }

/* -- modal ---------------------------------------------------------------- */
.ozw-modal {
  position: fixed; inset: 0; z-index: 120; display: none;
  align-items: center; justify-content: center; padding: 18px;
  background: rgba(5, 11, 34, .62); backdrop-filter: blur(4px);
}
.ozw-modal.is-open { display: flex; }
.ozw-modal-card {
  width: 100%; max-width: 560px; max-height: 90vh; display: flex; flex-direction: column;
  background: var(--oz-surface); border: 1px solid var(--oz-line);
  border-radius: var(--oz-r-lg); box-shadow: var(--oz-shadow-lg); overflow: hidden;
}
.ozw-modal-card.wide { max-width: 760px; }
.ozw-modal-head {
  position: relative; padding: 20px 24px; color: #fff; background: var(--oz-grad-brand); flex: none;
}
.ozw-modal-head h2 { margin: 0; font-size: 1.1rem; font-weight: 900; }
.ozw-modal-head p { margin: 5px 0 0; font-size: .86rem; color: rgba(255,255,255,.86); line-height: 1.6; }
.ozw-modal-x {
  position: absolute; inset-inline-end: 16px; top: 16px;
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3);
  color: #fff; cursor: pointer; font-size: .95rem; transition: background .2s;
}
.ozw-modal-x:hover { background: rgba(255,255,255,.34); }
.ozw-modal-body { padding: 22px 24px; overflow-y: auto; }
.ozw-modal-body > * + * { margin-top: 15px; }
.ozw-modal-foot {
  padding: 16px 24px; border-top: 1px solid var(--oz-line);
  background: var(--oz-surface-2); display: grid; gap: 10px; flex: none;
}
.ozw-modal-foot .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* -- misc ----------------------------------------------------------------- */
.ozw-split-h { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.ozw-grid-2 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.ozw-sep { height: 1px; background: var(--oz-line); border: 0; margin: 4px 0; }

/* hub tiles — whole card is the link */
.ozw-hub { display: block; text-decoration: none; color: inherit; transition: transform .22s var(--oz-ease), box-shadow .22s var(--oz-ease), border-color .22s; }
.ozw-hub:hover { transform: translateY(-4px); box-shadow: var(--oz-shadow); border-color: var(--oz-accent); }
.ozw-hub:hover .ozw-ci { background: var(--oz-grad-brand); color: #fff; }
.ozw-hub .ozw-ci { transition: background .22s, color .22s; }
.ozw-hub-go { color: var(--oz-text-3); font-size: .95rem; transition: transform .22s var(--oz-ease), color .22s; }
.ozw-hub:hover .ozw-hub-go { color: var(--oz-accent); transform: translateX(-5px); }

/* segmented control */
.ozw-seg { display: flex; border: 1px solid var(--oz-line); border-radius: 13px; overflow: hidden; background: var(--oz-surface-2); }
.ozw-seg button {
  flex: 1 1 0; padding: 11px 10px; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: .87rem; font-weight: 700; color: var(--oz-text-3);
  transition: background .2s, color .2s;
}
.ozw-seg button:hover { color: var(--oz-text); }
.ozw-seg button.is-on { background: var(--oz-grad-brand); color: #fff; }
.ozw-hs b.txt { font-size: 1.02rem; line-height: 1.45; }

/* toolbar row (search + sort + export) */
.ozw-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* conversation cards in the chat archive */
.ozw-chat { background: var(--oz-surface-2); border: 1px solid var(--oz-line); border-radius: 14px; overflow: hidden; }
.ozw-chat + .ozw-chat { margin-top: 10px; }
.ozw-chat > summary {
  cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between; padding: 14px 16px;
  transition: background .18s;
}
.ozw-chat > summary::-webkit-details-marker { display: none; }
.ozw-chat > summary:hover { background: var(--oz-surface-3); }
.ozw-chat-title { font-weight: 800; font-size: .93rem; color: var(--oz-text); min-width: 0; flex: 1 1 200px; }
.ozw-chat-meta { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--oz-text-3); }
.ozw-chat-date { white-space: nowrap; }
@media (max-width: 560px) { .ozw-chat-date { display: none; } }
.ozw-chat-caret { transition: transform .22s var(--oz-ease); }
.ozw-chat[open] > summary { background: var(--oz-surface-3); }
.ozw-chat[open] .ozw-chat-caret { transform: rotate(180deg); }
.ozw-chat-body { padding: 4px 16px 16px; background: var(--oz-surface); border-top: 1px solid var(--oz-line); }
.ozw-turn { padding: 14px 0; }
.ozw-turn + .ozw-turn { border-top: 1px solid var(--oz-line); }
.ozw-turn-line { display: flex; align-items: flex-start; gap: 10px; }
.ozw-turn-line + .ozw-turn-line { margin-top: 9px; }
.ozw-turn-line p { margin: 0; font-size: .91rem; line-height: 1.8; color: var(--oz-text); white-space: pre-wrap; }
.ozw-turn-line p.muted { color: var(--oz-text-2); }
.ozw-turn-line .ozw-chip { margin-top: 2px; flex: none; }
