/* OMT (Old Man Tricks) landing page, on top of kdui's precompiled CSS.
   Colours come from the cap in the portrait: mustard patch, brown cap, sticker cream.
   Light = "Cream & Mustard", dark = "Espresso". Dark is the default (see base.html). */

@font-face { font-family: "Sora"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("fonts/sora-latin.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("fonts/jetbrains-mono-latin.woff2") format("woff2"); }

html:root {
  --background: #FBF6EA;
  --foreground: #2A1B14;
  --card: #FFFFFF;
  --card-foreground: #2A1B14;
  --popover: #FFFFFF;
  --popover-foreground: #2A1B14;
  --primary: #E3A63B;
  --primary-foreground: #2A1B14;
  --secondary: #F3E3BC;
  --secondary-foreground: #5A3A20;
  --muted: #F3EADA;
  --muted-foreground: #6E5A4B;
  --accent: #F3E3BC;
  --accent-foreground: #2A1B14;
  --border: #E8DCC3;
  --input: #E8DCC3;
  --ring: #8F6110;

  --omt-mustard: #E3A63B;
  --omt-ink: #7A4E2D;          /* accent text: brown on cream, mustard on espresso */
  --omt-alt: #F4ECDA;          /* alternate section ground */
  --omt-live: #B8261B;          /* 5.6:1 on cream */
  --omt-ok: #2F8A4C;
  --omt-shadow: 0 1px 2px rgb(42 27 20 / .06), 0 12px 32px -12px rgb(42 27 20 / .22);
  --omt-shot-shadow: 0 30px 60px -24px rgb(42 27 20 / .45);
  --omt-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --omt-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --omt-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --omt-ease: cubic-bezier(.16, 1, .3, 1);   /* expo out: quick start, soft landing */
  accent-color: var(--omt-mustard);
}
html.dark {
  --background: #1C1310;
  --foreground: #F6EEDC;
  --card: #251914;
  --card-foreground: #F6EEDC;
  --popover: #251914;
  --popover-foreground: #F6EEDC;
  --primary: #E3A63B;
  --primary-foreground: #1C1310;
  --secondary: #3A2A21;
  --secondary-foreground: #F6EEDC;
  --muted: #2B1E18;
  --muted-foreground: #C9B9A3;
  --accent: #3A2A21;
  --accent-foreground: #F6EEDC;
  --border: #3A2A21;
  --input: #3A2A21;
  --ring: #E3A63B;

  --omt-ink: #E3A63B;
  --omt-alt: #160F0C;
  --omt-live: #FF8075;          /* 6:1+ on espresso */
  --omt-ok: #5BC57E;
  --omt-shadow: 0 1px 2px rgb(0 0 0 / .3), 0 16px 40px -16px rgb(0 0 0 / .6);
  --omt-shot-shadow: 0 34px 70px -24px rgb(0 0 0 / .8);
}

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { font-family: var(--omt-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, .omt-display { font-family: var(--omt-display); letter-spacing: -0.025em; }
::selection { background: var(--omt-mustard); color: #2A1B14; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
.btn { font-weight: 600; }
.btn svg { flex: none; }

.omt-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.omt-skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--primary); color: var(--primary-foreground); font-weight: 600; }
.omt-skip:focus { left: 8px; }

.omt-kicker { font: 600 12px/1 var(--omt-body); letter-spacing: .12em; text-transform: uppercase; color: var(--omt-ink); }

/* ── Nav ───────────────────────────────────────────────────────── */
.omt-nav { position: sticky; top: 0; z-index: 50; background: color-mix(in oklab, var(--background) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.omt-nav-row { display: flex; align-items: center; gap: 24px; height: 76px; }
.omt-brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.omt-brand img { width: 42px; height: auto; transform: rotate(-6deg); transition: transform .3s var(--omt-ease); }
.omt-brand:hover img { transform: rotate(4deg) scale(1.08); }
.omt-brand span { display: flex; flex-direction: column; line-height: 1.05; }
.omt-brand b { font: 800 22px var(--omt-display); letter-spacing: -.02em; }
.omt-brand small { white-space: nowrap; font-size: 13px; color: var(--muted-foreground); }
.omt-nav-links { display: flex; gap: 26px; font-size: 15px; color: var(--muted-foreground); }
.omt-nav-links a { display: inline-flex; align-items: center; gap: 6px; transition: color .15s; }
.omt-nav-links a:hover { color: var(--foreground); }
.omt-nav-live { color: var(--omt-live) !important; font-weight: 600; }
.omt-nav-actions { display: flex; align-items: center; gap: 6px; }

/* ── Status dots ───────────────────────────────────────────────── */
.omt-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted-foreground); flex: none; }
.omt-dot.is-live { background: var(--omt-live); box-shadow: 0 0 0 0 var(--omt-live); animation: omt-pulse 1.8s ease-out infinite; }
.omt-dot.is-ok { background: var(--omt-ok); }
@keyframes omt-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--omt-live) 60%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }

/* ── Hero ──────────────────────────────────────────────────────── */
.omt-hero { position: relative; padding: 72px 0 88px; overflow: hidden; }
.omt-hero::before { /* soft mustard glow behind the stage */
  content: ""; position: absolute; left: 45%; top: 8%; width: 70%; aspect-ratio: 1;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--omt-mustard) 18%, transparent), transparent 100%);
  pointer-events: none; }
.omt-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.omt-hero h1 { font-size: clamp(40px, 6.2vw, 76px); font-weight: 800; line-height: 1.02; margin: 0 0 20px; text-wrap: balance; }
.omt-hero h1 em { font-style: normal; color: var(--omt-ink); }
.omt-lede { font-size: 18px; line-height: 1.6; color: var(--muted-foreground); max-width: 46ch; }
.omt-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.omt-pill { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; padding: 6px 12px 6px 10px; border-radius: 999px; font-size: 13px; background: color-mix(in oklab, var(--omt-live) 12%, var(--card)); border: 1px solid color-mix(in oklab, var(--omt-live) 35%, var(--border)); }
.omt-pill:hover { border-color: var(--omt-live); }

/* The stage: a fanned deck of real screenshots, the portrait in front, a speech bubble. */
.omt-stage { position: relative; aspect-ratio: 1.12; margin: 0; }
.omt-deck { position: absolute; inset: 2% 0 18% 14%; }
.omt-shot {
  --x: 0%; --y: 0%; --r: 0deg; --s: 1; --o: 1;
  position: absolute; inset: 0; display: flex; flex-direction: column;
  border-radius: 14px; overflow: hidden; background: var(--card); border: 1px solid var(--border);
  box-shadow: var(--omt-shot-shadow);
  transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(var(--s));
  opacity: var(--o); transform-origin: 50% 100%;
  transition: transform .75s cubic-bezier(.22,1,.36,1), opacity .5s ease, filter .5s ease;
  will-change: transform; }
.omt-shot-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; flex: none; background: var(--muted); border-bottom: 1px solid var(--border); font-size: 12px; color: var(--muted-foreground); }
.omt-shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: color-mix(in oklab, var(--muted-foreground) 35%, transparent); }
.omt-shot-bar i:first-child { background: var(--omt-mustard); }
.omt-shot-bar b { margin-left: 8px; font-weight: 600; color: var(--foreground); }
.omt-shot img { width: 100%; flex: 1; min-height: 0; object-fit: cover; object-position: top left; }
/* Depth positions, set by omt.js as data-k (0 = front). */
.omt-shot[data-k="0"] { --x: 0%; --y: 0%; --r: -2deg; --s: 1; z-index: 8; }
.omt-shot[data-k="1"] { --x: 5%; --y: -6%; --r: 3deg; --s: .93; z-index: 7; filter: brightness(.88); }
.omt-shot[data-k="2"] { --x: 10%; --y: -12%; --r: 7deg; --s: .86; z-index: 6; filter: brightness(.75); }
.omt-shot[data-k="3"] { --x: 14%; --y: -17%; --r: 10deg; --s: .8; --o: .55; z-index: 5; filter: brightness(.65); }
.omt-shot[data-k="back"] { --x: 14%; --y: -17%; --r: 10deg; --s: .8; --o: 0; z-index: 1; }
.omt-shot[data-k="out"] { --x: -42%; --y: 14%; --r: -16deg; --s: .9; --o: 0; z-index: 9; }
/* Before the intro: every card waits stacked behind the portrait. */
.omt-stage:not(.is-dealt) .omt-shot { --x: -30%; --y: 30%; --r: -8deg; --s: .5; --o: 0; transition: none; }

.omt-me { position: absolute; left: -2%; bottom: -4%; width: 34%; z-index: 10; transform-origin: 50% 90%; }
.omt-me img { width: 100%; height: auto; filter: drop-shadow(0 18px 24px rgb(0 0 0 / .35)); }
.omt-bubble {
  position: absolute; left: 27%; bottom: 25%; z-index: 11; margin: 0;
  padding: 10px 16px; border-radius: 18px 18px 18px 4px;
  background: var(--omt-mustard); color: #2A1B14; font: 700 17px/1.2 var(--omt-display); letter-spacing: -.01em;
  box-shadow: 0 10px 24px -8px rgb(0 0 0 / .45); white-space: nowrap; }
.omt-bubble-what { display: inline-block; }
.omt-dots { position: absolute; right: 0; bottom: 4%; display: flex; gap: 4px; }
.omt-dotbtn { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; }
.omt-dotbtn::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: color-mix(in oklab, var(--muted-foreground) 45%, transparent); transition: all .3s; }
.omt-dotbtn[aria-current="true"]::before { width: 9px; height: 9px; background: var(--omt-mustard); }

/* Intro: portrait pops, bubble pops, cards are dealt (omt.js adds the classes). */
.omt-stage.is-intro .omt-me { animation: omt-pop .7s var(--omt-ease) both; }
.omt-stage.is-intro .omt-bubble { animation: omt-bubble .5s var(--omt-ease) 1s both; }
.omt-stage.is-intro .omt-dots { animation: omt-fade .4s ease 1.6s both; }
.omt-hero.is-intro .omt-hero-copy > * { animation: omt-rise .7s cubic-bezier(.22,1,.36,1) both; }
.omt-hero.is-intro .omt-hero-copy > :nth-child(2) { animation-delay: .05s; }
.omt-hero.is-intro .omt-hero-copy > :nth-child(3) { animation-delay: .12s; }
.omt-hero.is-intro .omt-hero-copy > :nth-child(4) { animation-delay: .22s; }
.omt-hero.is-intro .omt-hero-copy > :nth-child(5) { animation-delay: .32s; }
.omt-bubble.is-swap .omt-bubble-what { animation: omt-word .45s var(--omt-ease); }
.omt-me.is-nod { animation: omt-nod .5s var(--omt-ease); }
@keyframes omt-pop { from { transform: translateY(40%) scale(.4) rotate(-14deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes omt-bubble { from { transform: scale(.3) translateY(20px); transform-origin: 0 100%; opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes omt-fade { from { opacity: 0; } }
@keyframes omt-rise { from { transform: translateY(18px); opacity: 0; } }
@keyframes omt-word { from { transform: translateY(60%) scale(.9); opacity: 0; } }
@keyframes omt-nod { 40% { transform: rotate(-5deg) translateY(-4%); } }

/* ── Hero film: video behind the words, always dark ─────────────── */
/* The hero keeps the dark palette in both themes, so text and buttons read on the film. */
.omt-hero.is-film, .omt-nav.is-film:not(.is-solid) {
  --background: #1C1310; --foreground: #F6EEDC; --muted: #2B1E18; --muted-foreground: #D9CCB8;
  --card: #251914; --card-foreground: #F6EEDC; --border: rgb(246 238 220 / .22); --input: rgb(246 238 220 / .22);
  --secondary: #3A2A21; --secondary-foreground: #F6EEDC; --accent: rgb(246 238 220 / .1); --accent-foreground: #F6EEDC;
  --primary: #E3A63B; --primary-foreground: #1C1310; --omt-ink: #E3A63B;
  color: var(--foreground); }
.omt-hero.is-film { display: flex; align-items: center; min-height: clamp(600px, 100svh, 960px); margin-top: -77px; padding: 140px 0 96px; background: #120c0a; isolation: isolate; }
.omt-hero.is-film::before { content: none; }
.omt-hero.is-film .omt-hero-grid { grid-template-columns: minmax(0, 620px); width: 100%; }
.omt-onair:not([hidden]) + .omt-hero.is-film { margin-top: 0; padding-top: 96px; }
.omt-film { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.omt-film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.omt-film-intro { opacity: 0; transition: opacity .25s; }
.omt-film-intro.is-on { opacity: 1; }
.omt-film::after { /* readable left side, soft top for the menu, soft bottom edge */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgb(18 12 10 / .9) 0%, rgb(18 12 10 / .72) 32%, rgb(18 12 10 / .15) 62%, transparent 78%),
    linear-gradient(180deg, rgb(18 12 10 / .55) 0%, transparent 18%, transparent 78%, rgb(18 12 10 / .7) 100%); }
.omt-hero.is-film .omt-lede { color: var(--muted-foreground); text-shadow: 0 1px 12px rgb(0 0 0 / .5); }
.omt-hero.is-film .omt-tag { background: rgb(28 19 16 / .55); backdrop-filter: blur(6px); }
.omt-hero.is-film .btn[data-variant="outline"] { background: rgb(28 19 16 / .35); backdrop-filter: blur(8px); }
.omt-film-replay { position: absolute; right: 24px; bottom: 22px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--foreground); background: rgb(28 19 16 / .5); border: 1px solid var(--border); backdrop-filter: blur(8px); cursor: pointer; transition: border-color .15s; }
.omt-film-replay:hover { border-color: var(--primary); }
.omt-film-replay:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
/* The menu floats on the film, then turns solid once the page scrolls. */
.omt-nav.is-film { transition: background-color .3s, border-color .3s, backdrop-filter .3s; }
.omt-nav.is-film:not(.is-solid) { background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.omt-nav.is-film:not(.is-solid) .omt-brand small, .omt-nav.is-film:not(.is-solid) .omt-nav-links { color: rgb(246 238 220 / .78); }

/* ── Sections ──────────────────────────────────────────────────── */
.omt-sec { padding: 96px 0; }
.omt-sec-alt { background: var(--omt-alt); border-block: 1px solid var(--border); }
.omt-head { max-width: 640px; margin-bottom: 44px; }
.omt-head h2 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; line-height: 1.05; margin: 12px 0 14px; }
.omt-head p:last-child { color: var(--muted-foreground); font-size: 17px; line-height: 1.6; }
.omt-head.is-small { margin-bottom: 24px; }
.omt-head.is-small h2 { font-size: 28px; }

/* Trick cards */
.omt-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.omt-grid > .omt-card { grid-column: span 2; }
.omt-grid > .omt-card.is-half { grid-column: span 3; }
.omt-grid > .omt-card.is-full { grid-column: 1 / -1; }
.omt-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--omt-shadow); transition: transform .3s cubic-bezier(.22,1,.36,1), border-color .2s; scroll-margin-top: 90px; }
.omt-card:hover { transform: translateY(-4px); border-color: color-mix(in oklab, var(--omt-mustard) 55%, var(--border)); }
.omt-card:target { border-color: var(--omt-mustard); box-shadow: 0 0 0 3px color-mix(in oklab, var(--omt-mustard) 35%, transparent), var(--omt-shadow); }
.omt-card-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--muted); border-bottom: 1px solid var(--border); }
.omt-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .6s cubic-bezier(.22,1,.36,1); }
.omt-card:hover .omt-card-img img { transform: scale(1.04); }
.omt-card.is-soon .omt-card-img img { filter: blur(3px) saturate(.6); transform: scale(1.06); }
.omt-soon { position: absolute; inset: auto auto 14px 14px; padding: 6px 12px; border-radius: 999px; background: var(--omt-mustard); color: #2A1B14; font: 700 13px var(--omt-display); }
.omt-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.omt-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; }
.omt-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--secondary); color: var(--secondary-foreground); }
.omt-state { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--muted-foreground); }
.omt-state.is-live { color: var(--omt-live); }
.omt-state.is-ok { color: var(--omt-ok); }
.omt-card h3 { font-size: 22px; font-weight: 700; margin: 12px 0 6px; }
.omt-card-tag { color: var(--muted-foreground); line-height: 1.55; }
.omt-feats { display: grid; gap: 6px; margin: 16px 0; font-size: 14px; }
.omt-feats li { display: flex; gap: 8px; align-items: baseline; }
.omt-feats svg { color: var(--omt-ink); transform: translateY(2px); }
.omt-stack { font: 500 12px/1.5 var(--omt-mono); color: var(--muted-foreground); margin-top: auto; }
.omt-card-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.omt-note { margin-top: 16px; font-size: 13px; font-style: italic; color: var(--muted-foreground); }
.omt-card.is-wide { grid-column: span 2; flex-direction: row; }
.omt-card.is-full { grid-column: 1 / -1; }
.omt-card.is-wide .omt-card-img { flex: 1.25; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--border); }
.omt-card.is-wide .omt-card-body { flex: 1; padding: 28px; }
.omt-card.is-wide h3 { font-size: 30px; }

/* Downloads */
.omt-dl { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.omt-dl-card { min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--omt-shadow); }
.omt-dl-card.is-main { border-color: color-mix(in oklab, var(--omt-mustard) 60%, var(--border)); }
.omt-dl-top { display: flex; gap: 14px; align-items: center; }
.omt-dl-top h3 { font-size: 18px; font-weight: 700; }
.omt-dl-top p { font-size: 13px; color: var(--muted-foreground); }
.omt-dl-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--omt-mustard); color: #2A1B14; flex: none; }
.omt-dl-text { color: var(--muted-foreground); line-height: 1.55; font-size: 15px; }
.omt-steps { counter-reset: s; display: grid; gap: 12px; font-size: 15px; }
.omt-steps li { counter-increment: s; position: relative; padding-left: 34px; line-height: 1.5; }
.omt-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--secondary); color: var(--secondary-foreground); font: 700 12px var(--omt-display); }
.omt-addr { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 12px; border-radius: 10px; border: 1px dashed color-mix(in oklab, var(--omt-mustard) 70%, var(--border)); background: var(--muted); font: 600 14px var(--omt-mono); color: var(--foreground); cursor: copy; }
.omt-addr:hover { border-style: solid; }
.omt-dl-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.omt-notes { font-size: 14px; color: var(--muted-foreground); border-top: 1px solid var(--border); padding-top: 14px; }
.omt-notes summary { cursor: pointer; font-weight: 600; color: var(--foreground); }
.omt-notes p { margin-top: 8px; line-height: 1.55; }
.omt-code { position: relative; border-radius: 12px; background: #140D0A; border: 1px solid #3A2A21; }
.omt-code pre { margin: 0; padding: 44px 16px 16px; overflow-x: auto; font: 500 12.5px/1.7 var(--omt-mono); color: #F6EEDC; }
.omt-copy { position: absolute; top: 6px; right: 6px; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; background: #3A2A21; color: #F6EEDC; cursor: pointer; }
.omt-copy:hover { background: var(--omt-mustard); color: #2A1B14; }

/* Side tricks + blog */
.omt-bottom { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.omt-side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.omt-side-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 16px; border: 1px solid var(--border); background: var(--card); }
.omt-side-card h3 { font-size: 17px; font-weight: 700; }
.omt-side-card p { font-size: 14px; color: var(--muted-foreground); line-height: 1.55; }
.omt-blog { padding: 30px; border-radius: 20px; background: var(--omt-mustard); color: #2A1B14; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.omt-blog .omt-kicker { color: #5A3A20; }
.omt-blog h2 { font-size: 32px; font-weight: 800; }
.omt-blog p { line-height: 1.55; color: #3D2817; }
.omt-blog .omt-tag { background: #2A1B14; color: var(--omt-mustard); }

/* Footer */
.omt-foot { border-top: 1px solid var(--border); padding: 28px 0 36px; font-size: 13px; color: var(--muted-foreground); }
.omt-foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.omt-who { display: flex; align-items: center; gap: 10px; }
.omt-who img { width: 24px; height: auto; }
.omt-foot a { text-decoration: underline; text-underline-offset: 3px; }
.omt-foot a:hover { color: var(--foreground); }

.omt-toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translateX(-50%); padding: 10px 16px; border-radius: 10px; background: var(--foreground); color: var(--background); font-size: 14px; font-weight: 600; box-shadow: var(--omt-shadow); animation: omt-rise .3s ease both; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .omt-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .omt-stage { max-width: 600px; width: 100%; margin: 0 auto; }
  .omt-grid { grid-template-columns: 1fr 1fr; }
  .omt-grid > .omt-card, .omt-grid > .omt-card.is-half { grid-column: auto; }
  .omt-grid > .omt-card.is-full { grid-column: 1 / -1; }
  .omt-dl { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .omt-dl-card.is-main { grid-column: span 2; }
  .omt-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .omt-nav-links { display: none; }
  .omt-nav-row { gap: 10px; }
  .omt-hero { padding: 20px 0 56px; }
  /* Phones: the film sits as a full-width band under the menu, the words below it. */
  .omt-hero.is-film { min-height: 0; padding: calc(77px + 56.25vw + 8px) 0 48px; align-items: flex-start; }
  .omt-film video { top: 77px; bottom: auto; height: auto; aspect-ratio: 16 / 9; object-position: 50% 50%; }
  .omt-film::after { background: linear-gradient(180deg, rgb(18 12 10 / .55) 0, transparent 120px, transparent calc(77px + 56.25vw - 70px), #120c0a calc(77px + 56.25vw)); }
  .omt-film-replay { top: calc(77px + 56.25vw - 44px); bottom: auto; right: 12px; }
  .omt-stage { order: -1; aspect-ratio: 1.2; }
  .omt-hero h1 { font-size: 38px; margin: 10px 0 14px; }
  .omt-pill { margin-bottom: 12px; }
  .omt-lede { font-size: 16px; }
  .omt-cta .btn { flex: 1 1 auto; }
  /* "Get an app" right under the headline, so it shows on the first screen. */
  .omt-hero-copy { display: flex; flex-direction: column; }
  .omt-hero-copy .omt-cta { order: 1; margin: 4px 0 22px; }
  .omt-hero-copy .omt-lede, .omt-hero-copy .omt-skills { order: 2; }
  .omt-stage { margin-bottom: 40px; }
  .omt-dots { left: 0; bottom: -46px; justify-content: center; }
  .omt-me { pointer-events: none; }
  .omt-bubble { font-size: 14px; left: 26%; bottom: 23%; padding: 8px 12px; }
  .omt-shot-bar { height: 26px; font-size: 12px; }
  .omt-shot-bar i { width: 7px; height: 7px; }
  .omt-sec { padding: 64px 0; }
  .omt-grid, .omt-dl, .omt-side { grid-template-columns: minmax(0, 1fr); }
  .omt-dl-card.is-main { grid-column: auto; }
  .omt-card.is-wide { grid-column: auto; flex-direction: column; }
  .omt-card.is-wide .omt-card-img { aspect-ratio: 16 / 10; border-right: 0; border-bottom: 1px solid var(--border); }
  .omt-card.is-wide .omt-card-body { padding: 20px 22px 22px; }
  .omt-card.is-wide h3 { font-size: 22px; }
}

/* Reduced motion: nothing moves, but changes still show as short fades and colour shifts.
   The hero deck fades out and back in when it changes card (omt.js). */
.omt-deck { transition: opacity .16s ease; }
.omt-deck.is-swap { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-property: opacity, color, background-color, border-color !important; transition-duration: .16s !important; transition-delay: 0s !important; }
  .omt-card:hover, .omt-card:hover .omt-card-img img, .omt-fab:hover,
  .omt-strip-card:hover .omt-poster-img, .omt-poster summary:hover .omt-poster-img { transform: none; }
  .omt-brand:hover img { transform: rotate(-6deg); }
}

/* Icon sizes used here, in case kdui's precompiled CSS doesn't ship them. */
.size-3 { width: 12px; height: 12px; }
.size-3\.5 { width: 14px; height: 14px; }
.size-4 { width: 16px; height: 16px; }
.size-5 { width: 20px; height: 20px; }

/* ── What's New / What's Hot page ──────────────────────────────── */
.omt-whats { padding-top: 56px; }
.omt-whats h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; line-height: 1.04; margin: 12px 0 14px; }
.omt-whats h1 em { font-style: normal; color: var(--omt-ink); }
.omt-filters { position: sticky; top: 76px; z-index: 20; display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 0; margin-bottom: 18px; background: var(--background); }
.omt-seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 12px; background: var(--muted); border: 1px solid var(--border); }
.omt-seg-btn { padding: 8px 14px; min-height: 36px; display: inline-flex; align-items: center; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted-foreground); transition: background .15s, color .15s; }
.omt-seg-btn:hover { color: var(--foreground); }
.omt-seg-btn[aria-current="page"] { background: var(--omt-mustard); color: #2A1B14; }
.omt-posters { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 26px 20px; }
.omt-poster details { height: 100%; }
.omt-poster summary { list-style: none; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 4px; }
.omt-poster summary::-webkit-details-marker { display: none; }
.omt-poster-img { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: var(--muted); border: 1px solid var(--border); box-shadow: var(--omt-shadow); transition: transform .3s cubic-bezier(.22,1,.36,1); }
.omt-poster summary:hover .omt-poster-img { transform: translateY(-4px); }
.omt-poster-img img { width: 100%; height: 100%; object-fit: cover; }
.omt-rank { position: absolute; left: 8px; top: 8px; min-width: 28px; height: 28px; padding: 0 6px; display: grid; place-items: center; border-radius: 8px; background: rgb(28 19 16 / .82); color: #F6EEDC; font: 800 13px var(--omt-display); }
.omt-score { position: absolute; right: 8px; bottom: 8px; padding: 3px 8px; border-radius: 8px; background: var(--omt-mustard); color: #2A1B14; font: 700 12px var(--omt-display); }
.omt-poster-title, .omt-poster-meta { text-align: left; }
.omt-poster-title { margin-top: 8px; font: 600 14px/1.3 var(--omt-display); letter-spacing: -.01em; }
.omt-poster-meta { font-size: 12px; color: var(--muted-foreground); }
.omt-poster-more { margin-top: 8px; padding: 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--border); font-size: 13px; line-height: 1.5; color: var(--muted-foreground); }
.omt-poster-more a { display: inline-block; margin-top: 6px; font-weight: 600; color: var(--omt-ink); text-decoration: underline; text-underline-offset: 3px; }
.omt-orig { font-style: italic; margin-bottom: 4px; }
.omt-empty { padding: 48px 0; color: var(--muted-foreground); }
.omt-fine { margin-top: 40px; font-size: 12px; color: var(--muted-foreground); max-width: 70ch; }
@media (max-width: 720px) {
  .omt-whats { padding-top: 28px; }
  .omt-posters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .omt-filters { gap: 6px; }
  .omt-seg-btn { padding: 8px 10px; font-size: 13px; }
}

/* ── What's Hot teaser on the home page ────────────────────────── */
.omt-hot { padding-bottom: 72px; overflow: hidden; }
.omt-hot-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.omt-hot-head .omt-head { margin-bottom: 0; }
.omt-hot-links { display: flex; flex-wrap: wrap; gap: 8px; }
.omt-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 18px; overflow-x: auto; padding: 6px 2px 18px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.omt-strip li { scroll-snap-align: start; }
.omt-strip-card { display: flex; flex-direction: column; gap: 4px; }
.omt-strip-card:hover .omt-poster-img { transform: translateY(-4px); }
@media (max-width: 720px) { .omt-strip { grid-auto-columns: 138px; gap: 12px; } }

/* ── Nav pills: Live status + Jellyfin library ─────────────────── */
.omt-navpill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); font-size: 14px; font-weight: 600; color: var(--foreground); transition: border-color .2s, background .2s; white-space: nowrap; }
a.omt-navpill[href]:hover { border-color: color-mix(in oklab, var(--omt-mustard) 60%, var(--border)); }
.omt-navpill[data-state="off"] { color: var(--muted-foreground); background: transparent; cursor: default; }
.omt-navpill[data-state="on"] { color: var(--omt-live); border-color: color-mix(in oklab, var(--omt-live) 45%, var(--border)); }
.omt-jelly { width: 20px; height: 20px; flex: none; }
.omt-navpill.is-jelly .omt-dot { width: 7px; height: 7px; }

/* ── Live: one slim line above the hero (only while streaming) ──── */
.omt-onair[hidden], .omt-onair-peek[hidden] { display: none !important; }
.omt-onair { border-bottom: 1px solid color-mix(in oklab, var(--omt-live) 30%, var(--border)); background: color-mix(in oklab, var(--omt-live) 9%, var(--background)); }
.omt-onair.is-in .omt-onair-row { animation: omt-rise .5s cubic-bezier(.22,1,.36,1) both; }
.omt-onair-row { display: flex; align-items: center; gap: 14px; min-height: 48px; }
.omt-onair-text { flex: 1; min-width: 0; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.omt-onair-tag { font-weight: 700; color: var(--omt-live); }
.omt-onair-text b { font-weight: 600; }
.omt-onair-link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 6px; font-size: 14px; font-weight: 600; color: var(--muted-foreground); cursor: pointer; }
.omt-onair-link:hover { color: var(--foreground); }
.omt-onair-link.is-strong { color: var(--omt-live); }
.omt-onair-peek { padding-bottom: 14px; }
.omt-peek-frame { position: relative; max-width: 560px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; box-shadow: var(--omt-shadow); }
.omt-peek-frame video { width: 100%; height: 100%; object-fit: contain; display: block; }
.omt-peek-msg { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; font-size: 14px; color: #F6EEDC; }
.omt-peek-msg[hidden] { display: none; }
.omt-peek-msg a { text-decoration: underline; color: #E3A63B; }
.omt-onair-close { position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgb(0 0 0 / .6); color: #fff; cursor: pointer; }

/* ── KD.tv card: the one app people install, downloads inside ───── */
.omt-card.is-kdtv { flex-direction: row; }
.omt-card.is-kdtv .omt-card-img { flex: 1.1; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--border); }
.omt-card.is-kdtv .omt-card-body { flex: 1; padding: 28px; }
.omt-card.is-kdtv h3 { font-size: 30px; }
.omt-get { display: grid; gap: 10px; margin: 18px 0 14px; }
.omt-get > li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 12px; border-radius: 12px; background: var(--muted); border: 1px solid var(--border); }
.omt-get-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--card); color: var(--omt-ink); border: 1px solid var(--border); }
.omt-get-what { display: flex; flex-direction: column; line-height: 1.3; }
.omt-get-what b { font-size: 15px; }
.omt-get-what small { font-size: 12.5px; color: var(--muted-foreground); }
.omt-get-more { grid-column: 2 / -1; font-size: 14px; }
.omt-get-more summary { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; cursor: pointer; list-style: none; font-weight: 600; color: var(--omt-ink); }
.omt-get-more summary::-webkit-details-marker { display: none; }
.omt-get-more[open] summary svg { transform: rotate(180deg); }
.omt-get-more .omt-steps { margin: 8px 0; font-size: 14px; }
.omt-get-more .omt-code { margin-top: 8px; }
.omt-notes-text { font-size: 13px; color: var(--muted-foreground); line-height: 1.5; }
.omt-card-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: auto; padding-top: 6px; }
.omt-card-links a, .omt-textlink { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: 14px; font-weight: 600; color: var(--muted-foreground); }
.omt-card-links a:hover, .omt-textlink:hover { color: var(--foreground); }
.omt-card-acts { align-items: center; gap: 14px; }

/* Smaller side projects, under the apps */
.omt-side-wrap { margin-top: 40px; }
.omt-side-title { font-size: 18px; font-weight: 700; margin-bottom: 14px; color: var(--muted-foreground); }
.omt-side-card h4 { font: 700 16px var(--omt-display); }

/* What's Hot head: one link */
.omt-hot-head .btn { flex: none; }

/* ── The tricks band ───────────────────────────────────────────── */
.omt-tricks { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 28px; align-items: center; padding: 32px; border-radius: 22px; background: var(--card); border: 1px solid color-mix(in oklab, var(--omt-mustard) 55%, var(--border)); box-shadow: var(--omt-shadow); }
.omt-tricks-me { width: 120px; height: auto; transform: rotate(-6deg); filter: drop-shadow(0 12px 18px rgb(0 0 0 / .3)); }
.omt-tricks h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; line-height: 1.08; margin: 10px 0 10px; }
.omt-tricks p:not(.omt-kicker) { color: var(--muted-foreground); line-height: 1.6; max-width: 60ch; margin-bottom: 18px; }

.omt-foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 980px) {
  .omt-card.is-kdtv { flex-direction: column; }
  .omt-card.is-kdtv .omt-card-img { aspect-ratio: 16 / 10; border-right: 0; border-bottom: 1px solid var(--border); }
}
@media (max-width: 720px) {
  .omt-navpill { min-height: 40px; padding: 0 11px; }
  .omt-navpill[data-state="off"] { display: none; }
  .omt-card.is-kdtv .omt-card-body { padding: 20px; }
  .omt-card.is-kdtv h3 { font-size: 24px; }
  .omt-get > li { grid-template-columns: 36px minmax(0, 1fr); }
  .omt-get > li > .btn { grid-column: 2; justify-self: start; }
  .omt-onair-row { gap: 8px; }
  .omt-onair-text { font-size: 14px; }
  .omt-tricks { grid-template-columns: 1fr; padding: 24px; }
  .omt-tricks-me { width: 84px; }
}

/* ── /live page ────────────────────────────────────────────────── */
.omt-live { padding: 48px 0 80px; min-height: calc(100vh - 160px); }
.omt-live [hidden] { display: none !important; }
.omt-offair { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; align-items: center; max-width: 900px; margin: 40px auto; padding: 40px; border-radius: 24px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--omt-shadow); }
.omt-offair-me { width: 200px; height: auto; transform: rotate(-6deg); filter: grayscale(.35) drop-shadow(0 16px 24px rgb(0 0 0 / .35)); }
.omt-offair .omt-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--muted-foreground); }
.omt-offair h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; line-height: 1.05; margin: 12px 0 14px; }
.omt-offair p:not(.omt-kicker) { color: var(--muted-foreground); line-height: 1.6; font-size: 17px; max-width: 52ch; }
.omt-offair .btn .omt-jelly { width: 18px; height: 18px; }

.omt-live-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.omt-live-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: #C62828; color: #fff; font: 800 12px var(--omt-display); letter-spacing: .1em; text-transform: uppercase; }
.omt-live-badge .omt-dot { background: #fff; animation: omt-pulse-w 1.6s ease-out infinite; }
@keyframes omt-pulse-w { 0% { box-shadow: 0 0 0 0 rgb(255 255 255 / .7); } 100% { box-shadow: 0 0 0 8px transparent; } }
.omt-live-head h1 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 800; line-height: 1.05; margin-top: 12px; text-transform: none; }
.omt-live-viewers { font-size: 15px; color: var(--muted-foreground); }
.omt-live-viewers b { font: 800 22px var(--omt-display); color: var(--foreground); margin-right: 4px; }

.omt-player { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; border: 1px solid var(--border); box-shadow: var(--omt-shot-shadow); }
.omt-player:fullscreen { border-radius: 0; border: 0; }
.omt-player video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.omt-player-msg { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; color: #F6EEDC; font-size: 16px; pointer-events: none; }
.omt-unmute { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 999px; background: var(--omt-mustard); color: #2A1B14; font: 700 16px var(--omt-display); box-shadow: 0 10px 24px -8px rgb(0 0 0 / .5); cursor: pointer; }
.omt-player-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; }
.omt-cast-wrap { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted-foreground); }
.omt-cast { display: inline-block; width: 28px; height: 28px; cursor: pointer; --connected-color: #E3A63B; --disconnected-color: currentColor; }
.omt-player-note { margin-left: auto; font-size: 13px; color: var(--muted-foreground); }
@media (max-width: 720px) {
  .omt-live { padding: 20px 0 56px; }
  .omt-offair { grid-template-columns: 1fr; gap: 20px; padding: 24px; margin: 8px 0; text-align: left; }
  .omt-offair-me { width: 110px; }
  .omt-player { border-radius: 12px; margin: 0 -4px; }
  .omt-player-note { margin-left: 0; width: 100%; }
}

/* ── Flip posters (What's Hot page) ────────────────────────────── */
.omt-poster { display: flex; flex-direction: column; gap: 4px; }
.omt-flip { perspective: 1200px; }
.omt-flip-inner { position: relative; display: grid; aspect-ratio: 2 / 3; transition: transform .6s cubic-bezier(.22,1,.36,1); transform-style: preserve-3d; }
.omt-flip.is-flipped .omt-flip-inner { transform: rotateY(180deg); }
.omt-flip-face { grid-area: 1 / 1; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
button.omt-flip-face { padding: 0; cursor: pointer; text-align: left; }
.omt-flip:hover .omt-poster-img { transform: none; }
.omt-flip-back { transform: rotateY(180deg); display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 12px; overflow: hidden; background: var(--card); border: 1px solid color-mix(in oklab, var(--omt-mustard) 55%, var(--border)); box-shadow: var(--omt-shadow); cursor: pointer; }
.omt-back-title { font: 700 15px/1.25 var(--omt-display); letter-spacing: -.01em; }
.omt-flip-back .omt-orig { font-size: 11px; color: var(--muted-foreground); font-style: italic; }
.omt-back-text { flex: 1; min-height: 0; overflow-y: auto; font-size: 13.5px; line-height: 1.5; color: var(--muted-foreground); scrollbar-width: thin; }
.omt-back-acts { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; border-top: 1px solid var(--border); }
.omt-back-acts a { display: inline-flex; align-items: center; min-height: 32px; font-size: 13px; font-weight: 700; color: var(--omt-ink); text-decoration: underline; text-underline-offset: 3px; }
.omt-back-close { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--muted); color: var(--foreground); font-size: 16px; cursor: pointer; }
.omt-poster > .omt-poster-title { margin-top: 8px; }
@media (prefers-reduced-motion: reduce) {
  .omt-flip-inner { transform: none !important; }
  .omt-flip-face { backface-visibility: visible; transition: opacity .2s; }
  .omt-flip-back { transform: none; opacity: 0; pointer-events: none; }
  .omt-flip.is-flipped .omt-flip-back { opacity: 1; pointer-events: auto; }
  .omt-flip.is-flipped [data-flip-front] { opacity: 0; }
}

/* ── JP (private agent page) ───────────────────────────────── */
.omt-login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.omt-login-card { width: min(380px, 100%); display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px; border-radius: 22px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--omt-shadow); text-align: center; }
.omt-login-card img { width: 96px; height: auto; transform: rotate(-6deg); }
.omt-login-card h1 { font-size: 32px; font-weight: 800; }
.omt-login-card p { color: var(--muted-foreground); }
.omt-login-card .input { width: 100%; min-height: 44px; }
.omt-login-card .btn { width: 100%; }
.omt-login-err { color: var(--omt-live) !important; font-weight: 600; }

.omt-agent { padding: 28px 0 48px; }
.omt-agent-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.omt-chat { display: flex; flex-direction: column; height: calc(100vh - 152px); height: calc(100dvh - 152px); min-height: 480px; border-radius: 20px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--omt-shadow); overflow: hidden; }
.omt-chat-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.omt-chat-head[hidden], .omt-intro[hidden] { display: none; }
/* New chat: one JP, one sentence, suggestions under it, centred in the empty chat. */
.omt-intro { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 470px; padding: 24px 4px; text-align: center; }
.omt-intro img { width: 96px; height: auto; transform: rotate(-6deg); }
.omt-intro p { font: 600 18px/1.45 var(--omt-display); letter-spacing: -.01em; text-wrap: balance; }
.omt-intro .omt-chips { justify-content: center; padding: 6px 0 0; }
.omt-chat-head h1 { font-size: 22px; font-weight: 800; line-height: 1.15; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.omt-chat-head form { margin-left: auto; }
.omt-msgs { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 20px; overflow-y: auto; }
.omt-msg { display: flex; }
.omt-msg p { max-width: 78%; padding: 10px 14px; border-radius: 16px; line-height: 1.5; font-size: 15px; }
.omt-msg.is-bot p { background: var(--muted); border-bottom-left-radius: 4px; }
.omt-say { max-width: 78%; padding: 12px 16px; border-radius: 16px; border-bottom-left-radius: 4px; background: var(--muted); font-size: 15px; line-height: 1.55; display: grid; gap: 10px; min-width: 0; }
.omt-msg .omt-say p { max-width: none; padding: 0; border-radius: 0; background: none; }
.omt-say h4 { font: 700 15px/1.3 var(--omt-display); margin-top: 4px; }
.omt-say ul, .omt-say ol { display: grid; gap: 4px; padding-left: 20px; }
.omt-say ul { list-style: disc; }
.omt-say ol { list-style: decimal; }
.omt-say li::marker { color: var(--omt-ink); }
.omt-say code { font-size: 13px; padding: 1px 6px; border-radius: 6px; background: var(--background); }
.omt-tbl { overflow-x: auto; border-radius: 10px; border: 1px solid var(--border); background: var(--background); }
.omt-tbl table { width: 100%; border-collapse: collapse; font-size: 14px; }
.omt-tbl th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-foreground); padding: 8px 12px; border-bottom: 1px solid var(--border); }
.omt-tbl td { padding: 7px 12px; border-top: 1px solid color-mix(in oklab, var(--border) 60%, transparent); vertical-align: top; }
.omt-tbl tr:first-child td { border-top: 0; }
.omt-tbl td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.omt-msg.is-me { justify-content: flex-end; }
.omt-msg.is-me p { background: var(--omt-mustard); color: var(--primary-foreground); border-bottom-right-radius: 4px; }
.omt-msg.is-typing p { color: var(--muted-foreground); animation: omt-blink 1s ease-in-out infinite; }
.omt-msg.is-error .omt-say { background: color-mix(in oklab, var(--omt-live) 10%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--omt-live) 45%, transparent); }
@keyframes omt-blink { 50% { opacity: .4; } }
.omt-action { width: min(460px, 100%); padding: 14px 16px; border-radius: 14px; border: 1.5px dashed color-mix(in oklab, var(--omt-mustard) 70%, var(--border)); background: color-mix(in oklab, var(--omt-mustard) 8%, var(--card)); }
.omt-msg.is-card.is-ok .omt-action { border-style: solid; border-color: var(--omt-ok); background: color-mix(in oklab, var(--omt-ok) 8%, var(--card)); }
.omt-msg.is-card.is-off .omt-action { border-style: solid; opacity: .75; }
.omt-action p { max-width: none; padding: 0; background: none; }
.omt-action-kind { font-size: 11px !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--omt-ink); }
.omt-action-what { font: 600 16px/1.4 var(--omt-display) !important; margin: 4px 0 12px; }
.omt-action-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.omt-action-btns .btn { height: auto; min-height: 44px; min-width: 96px; }
.omt-action-btns + .omt-action-result { margin-top: 10px; }
.omt-action-result { font-size: 14px !important; color: var(--muted-foreground); }
.omt-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 12px; }
.omt-chip { flex: none; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--background); font-size: 13px; font-weight: 600; color: var(--muted-foreground); cursor: pointer; }
.omt-chip:hover { color: var(--foreground); border-color: var(--omt-mustard); }
.omt-compose { padding: 12px 16px 16px; border-top: 1px solid var(--border); }
/* The send arrow lives inside the message box, like ChatGPT or Claude. */
.omt-compose-box { display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 16px; border-radius: 16px; border: 1px solid var(--border); background: var(--background); transition: border-color .15s, box-shadow .15s; }
.omt-compose-box:focus-within { border-color: var(--omt-mustard); box-shadow: 0 0 0 3px color-mix(in oklab, var(--omt-mustard) 22%, transparent); }
.omt-compose textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 200px; padding: 11px 0; border: 0; background: none; resize: none; color: var(--foreground); font: inherit; font-size: 15px; line-height: 1.45; }
.omt-compose textarea:focus, .omt-compose textarea:focus-visible { outline: none; }
.omt-send { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--omt-mustard); color: var(--primary-foreground); cursor: pointer; transition: opacity .15s, transform .2s var(--omt-ease); }
.omt-send:hover { transform: translateY(-1px); }
.omt-send:disabled { cursor: progress; opacity: .5; }
.omt-compose textarea:placeholder-shown + .omt-send { background: var(--muted); color: var(--muted-foreground); }
.omt-chat-foot { padding: 0 20px 14px; }
.omt-side-panel { display: grid; gap: 16px; position: sticky; top: 96px; }
.omt-panel-card { padding: 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); }
.omt-panel-card h2 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.omt-panel-list { display: grid; gap: 10px; font-size: 14px; }
.omt-panel-list li { display: flex; flex-direction: column; gap: 2px; line-height: 1.4; }
.omt-panel-list small { font-size: 12px; color: var(--muted-foreground); }
.omt-muted { color: var(--muted-foreground); font-size: 14px; }
.omt-panel-card a:not(.btn) { color: var(--omt-ink); text-decoration: underline; text-underline-offset: 3px; }
[data-st-live] { display: flex; align-items: center; gap: 8px; min-height: 44px; }
[data-st-live] a { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-weight: 600; }
.omt-panel-list li.has-mark { flex-direction: row; align-items: flex-start; gap: 10px; }
.omt-panel-list li.has-mark > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.omt-mark { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: -1px; border-radius: 50%; background: var(--muted); color: var(--muted-foreground); }
.omt-mark svg { width: 13px; height: 13px; }
.omt-mark.is-ok { color: var(--omt-ok); background: color-mix(in oklab, var(--omt-ok) 15%, transparent); }
.omt-mark.is-bad { color: var(--omt-live); background: color-mix(in oklab, var(--omt-live) 15%, transparent); }
@media (max-width: 1180px) {
  .omt-agent-grid { grid-template-columns: 220px minmax(0, 1fr); }
  .omt-side-panel { grid-column: 2; position: static; }
}
@media (max-width: 900px) {
  .omt-agent-grid { grid-template-columns: 1fr; }
  .omt-side-panel { grid-column: auto; }
  .omt-history { position: static; order: 2; }
  .omt-side-panel { position: static; }
  .omt-msg p, .omt-say { max-width: 90%; }
  /* Phones and tablets: the chat fills one screen, messages scroll inside it,
     so the message box is always in view. Panels and past chats follow below. */
  .omt-agent { padding-top: 12px; }
  .omt-chat { min-height: 0; height: calc(100vh - 76px - 24px); height: calc(100dvh - 76px - 24px); }
  .omt-msgs { max-height: none; min-height: 0; padding: 16px; }
  .omt-compose { padding: 10px 12px 12px; }
}
@media (max-width: 720px) {
  .omt-chat-head { padding: 12px 16px; gap: 12px; }
  .omt-chat-head h1 { font-size: 19px; }
}

/* Logged-in extras: nav user, floating "Ask JP" button */
.omt-nav-user, .omt-nav-login { display: inline-flex; align-items: center; }
.omt-nav-login, .omt-nav-user .omt-textlink { min-height: 40px; padding: 0 6px; font-size: 14px; }
/* "Ask JP": a speech bubble (one square corner = the tail), label on every screen, green "online" dot.
   Shrinks to the bubble while scrolling down, comes back on scroll up or when scrolling stops (omt.js). */
.omt-fab { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: inline-flex; align-items: center; gap: 8px; height: 56px; padding: 0 20px 0 6px; border-radius: 28px 28px 8px 28px; background: var(--omt-mustard); color: #2A1B14; font: 800 15px var(--omt-display); box-shadow: 0 14px 30px -10px rgb(0 0 0 / .55); transition: transform .2s var(--omt-ease), padding .3s var(--omt-ease), gap .3s var(--omt-ease); }
.omt-fab:hover { transform: translateY(-3px); }
.omt-fab-face { position: relative; flex: none; display: grid; place-items: center; width: 46px; height: 46px; }
.omt-fab-face img { width: 38px; height: auto; transform: rotate(-6deg); }
.omt-fab-face::after { content: ""; position: absolute; right: 1px; bottom: 4px; width: 11px; height: 11px; border-radius: 50%; background: #2F8A4C; box-shadow: 0 0 0 2.5px var(--omt-mustard); }
.omt-fab-label { max-width: 90px; overflow: hidden; white-space: nowrap; transition: max-width .3s var(--omt-ease), opacity .2s; }
.omt-fab.is-small { padding: 0 5px; gap: 0; }
.omt-fab.is-small .omt-fab-label { max-width: 0; opacity: 0; }
.omt-fab-peek { position: absolute; right: 0; bottom: calc(100% + 12px); width: max-content; max-width: min(240px, calc(100vw - 40px)); padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: var(--foreground); color: var(--background); font: 400 14px/1.4 var(--omt-body); box-shadow: 0 12px 26px -10px rgb(0 0 0 / .55); animation: omt-rise .4s var(--omt-ease) both; }
.omt-fab-peek[hidden] { display: none; }
/* Now and then (omt.js): JP waves once to say he's there. */
.omt-fab.is-nudge { animation: omt-fab-hop .9s var(--omt-ease); }
.omt-fab.is-nudge .omt-fab-face img { animation: omt-wave 1.1s ease-in-out; transform-origin: 50% 85%; }
@keyframes omt-fab-hop { 30% { transform: translateY(-6px); } 60% { transform: translateY(0); } }
@keyframes omt-wave { 0%, 100% { transform: rotate(-6deg); } 20% { transform: rotate(-18deg); } 40% { transform: rotate(6deg); } 60% { transform: rotate(-14deg); } 80% { transform: rotate(2deg); } }
.omt-fab-peek b { font: 700 14px var(--omt-display); }
@media (max-width: 720px) {
  .omt-fab { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); height: 52px; padding-right: 18px; }
  .omt-nav-user .omt-textlink { font-size: 0; }
  .omt-nav-user .omt-textlink::after { content: "Log out"; font-size: 13px; }
}

/* Hero skills + "what you can do here" doors */
.omt-skills { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 4px; padding: 0; list-style: none; }
.omt-doors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.omt-doors.is-family { gap: 14px; }
.omt-doors.is-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.omt-door-st { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; padding-top: 4px; font-size: 13px; font-weight: 700; color: var(--muted-foreground); }
.omt-door-st:has(.is-ok) { color: var(--omt-ok); }
.omt-door-st:has(.is-live) { color: var(--omt-live); }
.omt-doors h3 { display: flex; align-items: center; gap: 8px; }
a.omt-side-card { color: inherit; text-decoration: none; transition: border-color .2s; }
a.omt-side-card:hover { border-color: var(--omt-mustard); }
@media (max-width: 900px) { .omt-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .omt-doors { grid-template-columns: minmax(0, 1fr); } }
/* Family cards. Tablet: 2 + 3 (five cards) or 2 x 2 (four). Phone: a short tap list. */
@media (max-width: 1080px) {
  .omt-doors.is-5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .omt-doors.is-5 > :nth-child(-n+2) { grid-column: span 3; }
  .omt-doors.is-5 > :nth-child(n+3) { grid-column: span 2; }
  .omt-doors.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .omt-doors.is-family { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .omt-doors.is-family > :nth-child(n) { grid-column: auto; }
  a.omt-side-card { position: relative; gap: 4px; padding: 14px 44px 14px 16px; border-radius: 14px; }
  a.omt-side-card::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-top: 2px solid var(--muted-foreground); border-right: 2px solid var(--muted-foreground); transform: translateY(-50%) rotate(45deg); }
  .omt-doors.is-family h3 { font-size: 16px; }
  .omt-doors.is-family p { font-size: 13.5px; line-height: 1.45; }
  .omt-door-st { padding-top: 2px; }
}

/* JP: past chats (left column) */
.omt-history { position: sticky; top: 96px; display: grid; gap: 10px; }
.omt-history h2 { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-foreground); margin-top: 8px; }
.omt-new-chat { width: 100%; height: auto; min-height: 44px; justify-content: center; }
.omt-history-list { display: grid; gap: 2px; max-height: calc(100vh - 230px); overflow-y: auto; }
.omt-history-item { position: relative; display: flex; align-items: center; border-radius: 10px; }
.omt-history-item a { flex: 1; min-width: 0; display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; color: inherit; }
.omt-history-item a span { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.omt-history-item a small { font-size: 11px; color: var(--muted-foreground); }
.omt-history-item:hover, .omt-history-item.is-on { background: var(--muted); }
.omt-history-item.is-on a span { font-weight: 700; }
.omt-history-del { flex: none; display: grid; place-items: center; min-width: 44px; min-height: 44px; margin-right: 2px; border-radius: 8px; font-size: 12px; color: var(--muted-foreground); opacity: 0; }
.omt-history-item:hover .omt-history-del, .omt-history-item.is-on .omt-history-del, .omt-history-del:focus { opacity: 1; }
.omt-history-del:hover { color: var(--foreground); background: var(--background); }
.omt-history-del.is-sure { opacity: 1; padding: 0 10px; color: var(--background); background: var(--omt-live); font-weight: 700; }
@media (hover: none) { .omt-history-del { opacity: 1; } }

/* Logged-in menu (top bar) */
.omt-menu { position: relative; }
.omt-menu summary { list-style: none; cursor: pointer; }
.omt-menu summary::-webkit-details-marker { display: none; }
.omt-menu-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 70; min-width: 190px; display: grid; padding: 6px; border-radius: 14px; border: 1px solid var(--border); background: var(--card); box-shadow: var(--omt-shadow); }
.omt-menu-list a, .omt-menu-list button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--foreground); }
.omt-menu-list a:hover, .omt-menu-list button:hover { background: var(--muted); }
.omt-menu-list form { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 4px; }

/* Admin */
.omt-admin { padding: 28px 0 60px; }
.omt-admin .omt-wrap { display: grid; gap: 18px; }
.omt-admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.omt-admin-head h1 { font-size: 32px; font-weight: 800; }
.omt-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); }
.omt-tabs a { padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted-foreground); }
.omt-tabs a[aria-current="page"] { background: var(--omt-mustard); color: #2A1B14; }
.omt-flash { padding: 12px 16px; border-radius: 12px; font-weight: 600; border: 1px solid var(--border); }
.omt-flash.is-ok { border-color: var(--omt-ok); color: var(--omt-ok); }
.omt-flash.is-err { border-color: var(--omt-live); color: var(--omt-live); }
.omt-form-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.omt-form-row .input { flex: 1 1 160px; min-height: 44px; }
.omt-form-row .select { min-height: 44px; }
.omt-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.omt-inline { display: inline-flex; gap: 6px; align-items: center; }
.omt-inline .input { width: 150px; min-height: 36px; font-size: 13px; }
.omt-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.omt-admin .omt-tbl td:first-child { white-space: normal; }
.omt-admin tr.is-off { opacity: .55; }
.omt-admin-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.omt-admin .omt-panel-list a { text-decoration: none; }
.omt-log-chat { display: grid; gap: 12px; margin-top: 14px; }
.omt-log-chat li { display: grid; gap: 4px; padding: 10px 14px; border-radius: 12px; background: var(--muted); }
.omt-log-chat li.is-me { background: color-mix(in oklab, var(--omt-mustard) 18%, var(--card)); }
.omt-log-chat li.is-action { border: 1px dashed var(--omt-mustard); background: none; }
.omt-log-chat small { font-size: 12px; color: var(--muted-foreground); font-weight: 600; }
.omt-log-chat div { white-space: pre-wrap; font-size: 14px; line-height: 1.5; }
.omt-chat-head > div { min-width: 0; }
.omt-chat-head h1 { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* People's photos: initials underneath, the picture on top (removed if it fails) */
.omt-av { --s: 32px; position: relative; flex: none; display: inline-grid; place-items: center; width: var(--s); height: var(--s); border-radius: 999px; overflow: hidden; background: color-mix(in oklab, var(--omt-mustard) 30%, var(--muted)); color: var(--foreground); font: 700 calc(var(--s) * .38)/1 var(--omt-display); }
.omt-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.omt-av.is-jp { width: 42px; height: 56px; border-radius: 0; overflow: visible; background: none; }
.omt-av.is-jp img { object-fit: contain; transform: rotate(-6deg); }
.omt-navpill-me { padding-left: 5px; }
.omt-menu summary.omt-navpill-me { gap: 8px; }
@media (max-width: 720px) { .omt-navpill-me > span { display: none; } }

/* Chat: photo next to each message */
.omt-msg { gap: 10px; align-items: flex-end; }
.omt-msg.is-card { padding-left: 42px; }
.omt-jp-mini { display: inline-block; width: 22px; height: auto; }
.omt-log-chat small { display: flex; align-items: center; gap: 6px; }

/* Admin: people list + person form */
.omt-narrow { max-width: 720px; width: 100%; }
.omt-card-top { display: flex; align-items: center; gap: 14px; justify-content: space-between; margin-bottom: 14px; }
.omt-card-top > div { flex: 1; min-width: 0; }
.omt-card-top h2 { margin-bottom: 2px; }
.omt-people { display: grid; }
.omt-people li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; align-items: center; gap: 14px; padding: 12px 4px; border-top: 1px solid var(--border); }
.omt-people li:first-child { border-top: 0; }
.omt-people li.is-off { opacity: .55; }
.omt-people-who { display: grid; min-width: 0; }
.omt-people-who b { font-weight: 700; }
.omt-people-who small, .omt-people-seen { font-size: 13px; color: var(--muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.omt-people-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.omt-tag.is-you { background: var(--omt-mustard); color: #2A1B14; }
.omt-tag.is-off { background: color-mix(in oklab, var(--omt-live) 20%, var(--card)); color: var(--omt-live); }
@media (max-width: 720px) {
  .omt-people li { grid-template-columns: auto minmax(0, 1fr) auto; }
  .omt-people-tags { grid-column: 2; grid-row: 2; }
  .omt-people-seen { display: none; }
}
.omt-form { display: grid; gap: 14px; }
.omt-form > label, .omt-form-2 > label:not(.omt-check) { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted-foreground); }
.omt-form .input, .omt-form .select { min-height: 44px; width: 100%; color: var(--foreground); }
.omt-form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
@media (max-width: 560px) { .omt-form-2 { grid-template-columns: 1fr; } }
.omt-form .omt-check { color: var(--foreground); }
.omt-danger { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--border); }
.omt-danger summary { cursor: pointer; color: var(--omt-live); font-weight: 600; font-size: 14px; }
.omt-danger form { display: grid; gap: 10px; justify-items: start; margin-top: 10px; }
.omt-photo-card { display: flex; gap: 20px; align-items: flex-start; }
.omt-photo-card > div { display: grid; gap: 8px; }
.omt-photo-card a { color: var(--omt-ink); text-decoration: underline; }
.omt-photo-card .btn { cursor: pointer; }

/* ── Touch targets: 44px minimum (PRODUCT.md) ───────────────────── */
.omt-nav-links a, .omt-card-links a, .omt-textlink, .omt-nav-login, .omt-get-more summary,
.omt-addr, .omt-onair-link, .omt-copy, .omt-seg-btn { min-height: 44px; }
.omt-navpill { min-height: 44px; }
.omt-iconbtn { width: 44px; height: 44px; }
.omt-onair-close { width: 44px; height: 44px; }
.omt-dots { gap: 0; }
.omt-dotbtn { width: 44px; height: 44px; }
.omt-get .btn, .omt-card-acts .btn, .omt-hot-head .btn { height: 44px; }
.omt-cta .btn { height: 48px; padding-inline: 22px; }
.omt-code pre { padding-top: 58px; }
.omt-foot-links a { display: inline-flex; align-items: center; min-height: 44px; }

/* ── Phone menu (section links + Log in) ───────────────────────── */
.omt-nav-more { display: none; }
.omt-iconbtn { display: grid; place-items: center; border-radius: 999px; color: var(--foreground); cursor: pointer; }
.omt-nav-more summary:hover, .omt-nav-more[open] summary { background: var(--muted); }
.omt-menu-list .omt-menu-sep { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 14px; border-radius: 0 0 8px 8px; }
.omt-menu-list a, .omt-menu-list button { min-height: 44px; }
.omt-nav-menubtn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--foreground); }
.omt-nav-menubtn:has(.omt-av) { padding-left: 6px; }
.omt-nav-more[open] .omt-nav-menubtn { background: var(--muted); }
.omt-menu-me { display: flex; align-items: center; gap: 10px; padding: 8px 12px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.omt-menu-me b { display: block; font: 700 15px var(--omt-display); }
.omt-menu-me small { display: block; font-size: 12px; color: var(--muted-foreground); }
.omt-menu-theme { display: flex; align-items: center; justify-content: space-between; min-height: 60px; margin-top: 4px; padding: 0 12px; border-top: 1px solid var(--border); font-size: 14px; font-weight: 600; }
.omt-seg2 { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--border); background: var(--background); }
.omt-menu-list .omt-seg2 button { width: auto; min-height: 44px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted-foreground); }
.omt-menu-list .omt-seg2 button:hover { background: none; color: var(--foreground); }
.omt-menu-list .omt-seg2 button[aria-pressed="true"] { background: var(--omt-mustard); color: #2A1B14; }
@media (max-width: 720px) {
  .omt-nav-more { display: block; }
  .omt-nav-login, .omt-nav-me, .omt-nav-theme { display: none; }
  .omt-nav-actions { gap: 8px; }
  /* The nav's backdrop blur makes it the frame for this fixed sheet: it drops just under the bar. */
  .omt-nav-more .omt-menu-list { position: fixed; top: 70px; left: 12px; right: 12px; min-width: 0; max-height: calc(100dvh - 86px); overflow-y: auto; padding: 8px; }
}
@media (max-width: 360px) { .omt-brand small { display: none; } }
