/* Edition n10 in the Mira look (approved 12.10.2026; prototype mira-prototype/site/shared/site.css).
   Shared tokens, shell (header, drawer, footer, tab bar) and components for every /new page.
   Night sky #0b0f24, glass blocks, gold #e5c47e, Forum caps, Cormorant italic accents, Manrope text.
   Loaded after base.css, b.css and n10.css, only for html[data-edition=n10]; every rule carries that
   prefix so it beats base.css's html[data-design] rules (the last section settles the rest).
   How to build a page with it: docs/MIRA-DESIGN.md. Group pages add their own mira-*.css.
   Layers (z-index): header 50 · drawer 55 · tab bar 60 · sheet 70 · Mira splash 1000. */

/* ========== tokens ========== */
html[data-edition=n10] {
  --bg: #0b0f24;
  --bg-2: #121836;
  --bg-3: #1a2147;
  --ink: #f3ede4;
  --ink-2: #aeaac6;
  --ink-3: #7c7898;
  --line: rgba(233, 214, 170, .14);
  --line-2: rgba(233, 214, 170, .28);
  --gold: #e5c47e;
  --gold-2: #f6e7c4;
  --gold-fill: linear-gradient(135deg, #f3d99b 0%, #c89a4a 100%);
  --gold-ink: #1b1305;
  --gold-glow: 0 10px 30px -10px rgba(229, 180, 90, .55);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  --glass-solid: rgba(18, 24, 54, .92);
  --bubble: rgba(27, 35, 80, .78);
  --ok: #8fd6a6;
  --err: #f19a9a;
  --info: #9cc2f0;
  --violet: #b79cf0;
  --serif: "Cormorant Garamond", Georgia, serif;
  --display: "Forum", "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --gutter: 16px;
  --r: 18px;            /* blocks */
  --r-sm: 12px;         /* inputs */
  --bar-h: 60px;        /* header (68 at >=521px) */
  --tabbar-h: 64px;     /* phone tab bar, name kept from base.css */
  --max: 1160px;
  color-scheme: dark;
}
@media (min-width: 521px) { html[data-edition=n10] { --bar-h: 68px; } }
@media (min-width: 900px) { html[data-edition=n10] { --gutter: 24px; } }

/* ========== base ========== */
html[data-edition=n10] * { box-sizing: border-box; }
html[data-edition=n10], html[data-edition=n10] body { margin: 0; }
html[data-edition=n10] { background: var(--bg); -webkit-text-size-adjust: 100%; }
html[data-edition=n10] body {
  background:
    radial-gradient(1.2px 1.2px at 12% 22%, #fff 50%, transparent 51%) fixed,
    radial-gradient(1px 1px at 63% 82%, #fff 50%, transparent 51%) fixed,
    radial-gradient(1px 1px at 38% 58%, #fff 50%, transparent 51%) fixed,
    radial-gradient(1.4px 1.4px at 82% 30%, #f6e7c4 50%, transparent 51%) fixed,
    radial-gradient(60% 80% at 85% 10%, rgba(118, 74, 160, .35) 0%, transparent 70%) fixed,
    radial-gradient(50% 60% at 5% 100%, rgba(40, 90, 160, .22) 0%, transparent 70%) fixed,
    var(--bg);
  color: var(--ink);
  font: 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
html[data-edition=n10] .wrapper { flex: 1; display: flex; flex-direction: column; }   /* same wrappers as _Layout */
html[data-edition=n10] .content { flex: 1; }
html[data-edition=n10] a { color: inherit; }
html[data-edition=n10] a:not([class]) { color: var(--gold); text-underline-offset: 3px; text-decoration-color: rgba(229, 196, 126, .4); }
html[data-edition=n10] img, html[data-edition=n10] video, html[data-edition=n10] svg { max-width: 100%; }
html[data-edition=n10] button, html[data-edition=n10] input, html[data-edition=n10] select, html[data-edition=n10] textarea { font: inherit; color: inherit; }
html[data-edition=n10] button { cursor: pointer; }
html[data-edition=n10] :focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
html[data-edition=n10] ::selection { background: rgba(229, 196, 126, .35); }
html[data-edition=n10] [hidden] { display: none !important; }
/* anchors (#p-12, #plans, #yk-3, #faq…) stop below the sticky header */
html[data-edition=n10] :is(details, section, article)[id] { scroll-margin-top: calc(var(--bar-h) + 16px); }
html[data-edition=n10] body.nx-lock { overflow: hidden; }
html[data-edition=n10] .sr, html[data-edition=n10] .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* icons: Mira.Icon(name) = svg.mi (line, currentColor), N10.Icon(name) = svg.n-bold (gold drawing, needs
   @N10.Gradients, which the layout prints). Default sizes here; components below resize them. */
html[data-edition=n10] svg.mi { width: 20px; height: 20px; flex: none; vertical-align: middle; }
html[data-edition=n10] svg.n-bold { width: 24px; height: 24px; flex: none; vertical-align: middle; }
html[data-edition=n10] svg.mi-star { width: 18px; height: 18px; flex: none; }

/* ========== typography ========== */
html[data-edition=n10] .kicker { margin: 0 0 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
html[data-edition=n10] .display { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .03em; line-height: 1.08; margin: 0; }
html[data-edition=n10] h1, html[data-edition=n10] .h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .03em; line-height: 1.08; font-size: clamp(30px, 8vw, 48px); margin: 0 0 14px; }
html[data-edition=n10] h2, html[data-edition=n10] .h2 { font-family: var(--serif); font-weight: 600; text-transform: none; letter-spacing: normal; color: var(--ink); font-size: clamp(25px, 6.4vw, 34px); line-height: 1.15; margin: 0 0 14px; }
html[data-edition=n10] h3, html[data-edition=n10] .h3 { font-family: var(--sans); font-weight: 700; text-transform: none; letter-spacing: normal; color: var(--ink); font-size: 16.5px; line-height: 1.35; margin: 0 0 6px; }
html[data-edition=n10] p { margin: 0 0 12px; }
html[data-edition=n10] .accent { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--gold-2); }   /* Cormorant italic accent words */
html[data-edition=n10] .gold { color: var(--gold); }
html[data-edition=n10] .lead { font-size: 16.5px; color: var(--ink-2); max-width: 60ch; }
html[data-edition=n10] .muted { color: var(--ink-2); }
html[data-edition=n10] .small { font-size: 13px; }
html[data-edition=n10] .tiny { font-size: 11.5px; color: var(--ink-3); }
html[data-edition=n10] .num { font-family: var(--display); font-size: 32px; line-height: 1; color: var(--gold); }

/* ========== layout ========== */
html[data-edition=n10] .wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
html[data-edition=n10] .wrap-narrow { max-width: 720px; }
html[data-edition=n10] .narrow { max-width: 560px; }                 /* forms and single cards on desktop */
html[data-edition=n10] .center { text-align: center; margin-left: auto; margin-right: auto; }
html[data-edition=n10] .sec { padding: 36px 0; }
html[data-edition=n10] .sec-tight { padding: 20px 0; }
html[data-edition=n10] .sec-head { margin-bottom: 18px; }
html[data-edition=n10] .sec-head .lead { margin: 0; }
html[data-edition=n10] .stack > * + * { margin-top: 12px; }
html[data-edition=n10] .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
html[data-edition=n10] .row-between { justify-content: space-between; }
html[data-edition=n10] .grid { display: grid; gap: 12px; }
html[data-edition=n10] .g-2 { grid-template-columns: 1fr 1fr; }
@media (min-width: 760px) { html[data-edition=n10] .g-3 { grid-template-columns: repeat(3, 1fr); } html[data-edition=n10] .g-4 { grid-template-columns: repeat(2, 1fr); } html[data-edition=n10] .g-md-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { html[data-edition=n10] .g-4 { grid-template-columns: repeat(4, 1fr); } }
html[data-edition=n10] .split { display: grid; gap: 24px; }
@media (min-width: 900px) { html[data-edition=n10] .split { grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; } html[data-edition=n10] .split-aside { grid-template-columns: 1fr 360px; align-items: start; } }
html[data-edition=n10] .divider { height: 1px; background: var(--line); border: 0; margin: 20px 0; }

/* glass block: the main surface */
html[data-edition=n10] .card { position: relative; border: 1px solid var(--line); background: var(--glass); border-radius: var(--r); padding: 18px; }
html[data-edition=n10] .card-gold { border-color: var(--line-2); box-shadow: 0 30px 80px -40px rgba(229, 180, 90, .35); }
html[data-edition=n10] .card-pad-lg { padding: 24px; }
@media (min-width: 900px) { html[data-edition=n10] .card-pad-lg { padding: 32px; } }

/* ========== buttons ========== */
html[data-edition=n10] .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 1px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; transition: transform .15s, background .2s, opacity .2s; }
html[data-edition=n10] .btn:active { transform: scale(.98); }
html[data-edition=n10] .btn svg { width: 18px; height: 18px; flex: none; }
html[data-edition=n10] .btn-gold { background: var(--gold-fill); color: var(--gold-ink); box-shadow: var(--gold-glow); }
html[data-edition=n10] .btn-gold:hover { filter: brightness(1.05); }
html[data-edition=n10] .btn-ghost { border-color: var(--line-2); background: rgba(255, 255, 255, .04); color: var(--ink); }
html[data-edition=n10] .btn-ghost:hover { background: rgba(229, 196, 126, .1); }
html[data-edition=n10] .btn-link { min-height: 44px; padding: 0 4px; background: none; color: var(--gold); border: 0; }
html[data-edition=n10] .btn-link:hover { text-decoration: underline; text-underline-offset: 4px; }
html[data-edition=n10] .btn-sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
html[data-edition=n10] .btn-block { display: flex; width: 100%; }
html[data-edition=n10] .btn:disabled, html[data-edition=n10] .btn.is-disabled { opacity: .45; pointer-events: none; box-shadow: none; }
html[data-edition=n10] .btn.is-busy { pointer-events: none; opacity: .8; }
html[data-edition=n10] .btn.is-busy::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: m-spin .7s linear infinite; }
html[data-edition=n10] .btn-ic { width: 44px; height: 44px; padding: 0; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--line); background: rgba(11, 15, 36, .45); }
html[data-edition=n10] .btn-ic svg { width: 18px; height: 18px; }
@keyframes m-spin { to { transform: rotate(360deg); } }

/* ========== forms ========== */
html[data-edition=n10] .form { display: grid; gap: 14px; }
html[data-edition=n10] .field { display: grid; gap: 6px; }
html[data-edition=n10] .field > label, html[data-edition=n10] .label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
html[data-edition=n10] .input, html[data-edition=n10] .select, html[data-edition=n10] .textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2);
  background: rgba(11, 15, 36, .55); font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s; }
html[data-edition=n10] .input::placeholder, html[data-edition=n10] .textarea::placeholder { color: var(--ink-3); }
html[data-edition=n10] .input:focus, html[data-edition=n10] .select:focus, html[data-edition=n10] .textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(229, 196, 126, .15); }
html[data-edition=n10] .textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
html[data-edition=n10] .select { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background: rgba(11, 15, 36, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e5c47e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat; }
html[data-edition=n10] .select option { background: var(--bg-2); color: var(--ink); }
html[data-edition=n10] .input.code { letter-spacing: .4em; font-size: 22px; text-align: center; font-variant-numeric: tabular-nums; }
/* error / hint under a field */
html[data-edition=n10] .f-hint { font-size: 12.5px; color: var(--ink-3); margin: 0; }
html[data-edition=n10] .f-err { font-size: 12.5px; color: var(--err); margin: 0; }
html[data-edition=n10] .field.is-err .input, html[data-edition=n10] .field.is-err .select, html[data-edition=n10] .field.is-err .textarea { border-color: var(--err); box-shadow: 0 0 0 3px rgba(241, 154, 154, .12); }
/* date of birth: day · month (Russian names) · year */
html[data-edition=n10] .datefield { display: grid; grid-template-columns: 76px 1fr 96px; gap: 8px; }
html[data-edition=n10] .datefield .input, html[data-edition=n10] .datefield .select { text-align: left; }
/* checkbox consent */
html[data-edition=n10] .check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); cursor: pointer; line-height: 1.45; }
html[data-edition=n10] .check input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border-radius: 7px; border: 1px solid var(--line-2); background: rgba(11, 15, 36, .55); display: grid; place-items: center; cursor: pointer; }
html[data-edition=n10] .check input:checked { background: var(--gold-fill); border-color: transparent; }
html[data-edition=n10] .check input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--gold-ink); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
html[data-edition=n10] .check a { color: var(--gold); }
/* question input (chat / home) */
html[data-edition=n10] .ask { display: flex; gap: 8px; align-items: center; padding: 6px 6px 6px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(11, 15, 36, .6); }
html[data-edition=n10] .ask input, html[data-edition=n10] .ask textarea { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 16px; padding: 8px 0; resize: none; }
html[data-edition=n10] .ask input::placeholder, html[data-edition=n10] .ask textarea::placeholder { color: var(--ink-3); }
html[data-edition=n10] .send { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--gold-fill); color: var(--gold-ink); display: grid; place-items: center; box-shadow: var(--gold-glow); }
html[data-edition=n10] .send svg { width: 18px; height: 18px; }
html[data-edition=n10] .send:disabled { opacity: .45; box-shadow: none; }

/* ========== chips ========== */
html[data-edition=n10] .chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter); }
html[data-edition=n10] .chips::-webkit-scrollbar { display: none; }
html[data-edition=n10] .chips-wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
html[data-edition=n10] .chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); border-radius: 999px; padding: 0 14px; font-size: 13.5px; white-space: nowrap; text-decoration: none; }
html[data-edition=n10] .chip:hover { background: rgba(229, 196, 126, .12); }
html[data-edition=n10] .chip.on, html[data-edition=n10] .chip[aria-pressed="true"], html[data-edition=n10] .chip[aria-current] { background: var(--gold-fill); color: var(--gold-ink); border-color: transparent; font-weight: 600; }

/* ========== tiles with gold icon ========== */
html[data-edition=n10] .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 900px) { html[data-edition=n10] .tiles { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
html[data-edition=n10] .tile { position: relative; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); background: var(--glass); border-radius: var(--r); padding: 14px; text-decoration: none; transition: border-color .2s, transform .2s; }
html[data-edition=n10] a.tile:hover { border-color: var(--line-2); transform: translateY(-2px); }
html[data-edition=n10] .tile b { font-size: 14.5px; }
html[data-edition=n10] .tile span { color: var(--ink-2); font-size: 12.5px; line-height: 1.4; }
html[data-edition=n10] .tile .badge { position: absolute; top: 12px; right: 12px; }
html[data-edition=n10] .ic { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px;   /* gold icon on a dark disc */
  background: radial-gradient(circle at 30% 25%, #2a3166, #10142e 70%); border: 1px solid var(--line-2); color: var(--gold); }
html[data-edition=n10] .ic svg { width: 20px; height: 20px; }
html[data-edition=n10] .tile-row { flex-direction: row; align-items: center; gap: 12px; }
html[data-edition=n10] .tile-row .ic { margin: 0; }
html[data-edition=n10] .tile-row .chev { margin-left: auto; color: var(--ink-3); width: 18px; height: 18px; }

/* ========== accordion (native details) ========== */
html[data-edition=n10] .acc { border: 1px solid var(--line); background: var(--glass); border-radius: var(--r); }
html[data-edition=n10] .acc + .acc { margin-top: 10px; }
html[data-edition=n10] .acc > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; font-weight: 600; }
html[data-edition=n10] .acc > summary::-webkit-details-marker { display: none; }
html[data-edition=n10] .acc > summary::after { content: ""; margin-left: auto; flex: none; width: 9px; height: 9px; border: solid var(--gold); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
html[data-edition=n10] .acc[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
html[data-edition=n10] .acc > summary .sum-sub { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-2); }
html[data-edition=n10] .acc-body { padding: 0 16px 16px; color: var(--ink-2); }
html[data-edition=n10] .acc-body > :last-child { margin-bottom: 0; }
html[data-edition=n10] .acc.locked > summary { color: var(--ink-3); }

/* ========== segmented switch (radio inputs inside labels) ========== */
html[data-edition=n10] .seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; border: 1px solid var(--line); background: rgba(11, 15, 36, .55); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
html[data-edition=n10] .seg label, html[data-edition=n10] .seg button { flex: 1 0 auto; position: relative; display: grid; place-items: center; min-height: 38px; padding: 0 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; border: 0; background: none; white-space: nowrap; }
html[data-edition=n10] .seg input { position: absolute; opacity: 0; pointer-events: none; }
html[data-edition=n10] .seg label:has(input:checked), html[data-edition=n10] .seg button[aria-pressed="true"], html[data-edition=n10] .seg .on { background: var(--gold-fill); color: var(--gold-ink); }
html[data-edition=n10] .seg-block { display: flex; width: 100%; }

/* ========== plan cards (tariffs) ========== */
html[data-edition=n10] .plans { display: grid; gap: 12px; margin: 0; }
@media (min-width: 760px) { html[data-edition=n10] .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
html[data-edition=n10] .plan { position: relative; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); background: var(--glass); border-radius: 22px; padding: 22px 18px 18px; }
html[data-edition=n10] .plan:first-child { border-color: var(--line); }   /* base.css marks the first plan */
html[data-edition=n10] .plan h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .06em; font-size: 20px; margin: 0; }
html[data-edition=n10] .plan-price { margin: 0; font-family: var(--display); font-weight: 400; font-variant-numeric: lining-nums tabular-nums; font-size: 40px; line-height: 1; color: var(--ink); }
html[data-edition=n10] .plan-price small { font-family: var(--sans); font-size: 13px; color: var(--ink-2); margin-left: 4px; }
html[data-edition=n10] .plan-old { color: var(--ink-3); text-decoration: line-through; font-size: 14px; }
html[data-edition=n10] .plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
html[data-edition=n10] .plan li { display: flex; gap: 8px; }
html[data-edition=n10] .plan li::before { content: "✦"; color: var(--gold); font-size: 11px; line-height: 1.9; }
html[data-edition=n10] .plan .btn { margin-top: auto; }
html[data-edition=n10] .plan.is-best { border-color: rgba(229, 196, 126, .55); box-shadow: 0 30px 80px -40px rgba(229, 180, 90, .55); background: linear-gradient(180deg, rgba(229, 196, 126, .12), rgba(255, 255, 255, .02)); }
/* labels come from the markup (localized): <div class="plan is-best" data-best="@L["Выгодно"]"> */
html[data-edition=n10] .plan.is-best[data-best]::before { content: attr(data-best); position: absolute; top: -11px; left: 18px; padding: 3px 10px; border-radius: 999px; background: var(--gold-fill); color: var(--gold-ink); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; }
html[data-edition=n10] .plan.is-current { border-color: rgba(143, 214, 166, .5); }
html[data-edition=n10] .plan.is-current[data-current]::after { content: attr(data-current); position: absolute; top: 14px; right: 14px; font-size: 11.5px; font-weight: 700; color: var(--ok); }

/* ========== chat ========== */
html[data-edition=n10] .msgs { display: flex; flex-direction: column; gap: 10px; }
html[data-edition=n10] .msg { max-width: 88%; padding: 12px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.5; animation: m-rise .35s ease both; }
html[data-edition=n10] .msg p { margin: 0; }
html[data-edition=n10] .msg p + p { margin-top: 6px; }
html[data-edition=n10] .msg.bot { align-self: flex-start; background: var(--bubble); border: 1px solid var(--line); border-top-left-radius: 6px; }
html[data-edition=n10] .msg.me { align-self: flex-end; background: var(--gold-fill); color: var(--gold-ink); border-top-right-radius: 6px; font-weight: 500; }
html[data-edition=n10] .msg .sig { display: block; margin-top: 6px; font-size: 11.5px; color: var(--ink-3); }
html[data-edition=n10] .msg-row { display: flex; gap: 8px; align-items: flex-end; }          /* bot bubble with a small Mira avatar */
html[data-edition=n10] .msg-row .mira-ava { --s: 28px; }
html[data-edition=n10] .typing { display: inline-flex; gap: 8px; align-items: center; color: var(--ink-2); font-size: 13px; }
html[data-edition=n10] .typing i { display: inline-flex; gap: 3px; }
html[data-edition=n10] .typing i b { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); opacity: .3; animation: m-dot 1.2s infinite; }
html[data-edition=n10] .typing i b:nth-child(2) { animation-delay: .15s; }
html[data-edition=n10] .typing i b:nth-child(3) { animation-delay: .3s; }
@keyframes m-dot { 30% { opacity: 1; transform: translateY(-2px); } }
@keyframes m-rise { from { opacity: 0; transform: translateY(6px); } }

/* ========== sheet: bottom sheet on phones, modal on desktop ========== */
html[data-edition=n10] .sheet { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; background: rgba(5, 7, 20, .6); animation: m-fade .2s ease both; }
html[data-edition=n10] .sheet-panel { position: relative; width: 100%; max-height: 88vh; overflow: auto; overscroll-behavior: contain; background: var(--glass-solid); border: 1px solid var(--line-2); border-bottom: 0;
  border-radius: 24px 24px 0 0; padding: 26px var(--gutter) calc(20px + env(safe-area-inset-bottom)); animation: m-up .28s cubic-bezier(.2, .8, .2, 1) both; }
html[data-edition=n10] .sheet-panel::before { content: ""; position: absolute; top: 9px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line-2); }
html[data-edition=n10] .sheet-title { font-family: var(--serif); font-weight: 600; font-size: 24px; margin: 0 40px 12px 0; }
html[data-edition=n10] .sheet-x { position: absolute; top: 14px; right: 12px; }
@media (min-width: 760px) {
  html[data-edition=n10] .sheet { align-items: center; padding: 24px; }
  html[data-edition=n10] .sheet-panel { max-width: 520px; border-radius: 24px; border-bottom: 1px solid var(--line-2); padding: 28px; animation-name: m-pop; }
  html[data-edition=n10] .sheet-panel::before { display: none; }
}
@keyframes m-fade { from { opacity: 0; } }
@keyframes m-up { from { transform: translateY(40px); opacity: 0; } }
@keyframes m-pop { from { transform: scale(.96); opacity: 0; } }

/* ========== alerts ========== */
html[data-edition=n10] .alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); font-size: 14px; }
html[data-edition=n10] .alert > svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
html[data-edition=n10] .alert b { display: block; margin-bottom: 2px; }
html[data-edition=n10] .alert p { margin: 0; color: var(--ink-2); }
html[data-edition=n10] .alert .btn { margin-top: 10px; }
html[data-edition=n10] .alert-ok { border-color: rgba(143, 214, 166, .35); background: rgba(143, 214, 166, .08); } html[data-edition=n10] .alert-ok > svg { color: var(--ok); }
html[data-edition=n10] .alert-err { border-color: rgba(241, 154, 154, .4); background: rgba(241, 154, 154, .08); } html[data-edition=n10] .alert-err > svg { color: var(--err); }
html[data-edition=n10] .alert-info { border-color: rgba(156, 194, 240, .3); background: rgba(156, 194, 240, .07); } html[data-edition=n10] .alert-info > svg { color: var(--info); }
html[data-edition=n10] .alert-gift { border-color: rgba(229, 196, 126, .45); background: linear-gradient(135deg, rgba(229, 196, 126, .16), rgba(183, 156, 240, .08)); } html[data-edition=n10] .alert-gift > svg { color: var(--gold); }
html[data-edition=n10] .alert-limit { border-color: rgba(229, 196, 126, .35); background: rgba(229, 196, 126, .07); } html[data-edition=n10] .alert-limit > svg { color: var(--gold); }
html[data-edition=n10] .alert-crisis { border-color: rgba(241, 154, 154, .55); background: rgba(70, 20, 30, .55); } html[data-edition=n10] .alert-crisis > svg { color: var(--err); }
html[data-edition=n10] .alert-crisis a { color: var(--ink); font-weight: 700; }

/* ========== badge / progress / ring ========== */
html[data-edition=n10] .badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; border: 1px solid var(--line-2); color: var(--gold); background: rgba(229, 196, 126, .08); white-space: nowrap; }
html[data-edition=n10] .badge-gold { background: var(--gold-fill); color: var(--gold-ink); border-color: transparent; }
html[data-edition=n10] .badge-ok { color: var(--ok); border-color: rgba(143, 214, 166, .4); background: rgba(143, 214, 166, .08); }
html[data-edition=n10] .badge-muted { color: var(--ink-2); border-color: var(--line); background: rgba(255, 255, 255, .04); }
html[data-edition=n10] .badge-lock::before { content: ""; width: 9px; height: 10px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 10V7a6 6 0 0112 0v3h1v12H5V10zm2 0h8V7a4 4 0 00-8 0z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 10V7a6 6 0 0112 0v3h1v12H5V10zm2 0h8V7a4 4 0 00-8 0z'/%3E%3C/svg%3E") center / contain no-repeat; }
/* progress: <div class="progress" style="--p:40"><i></i></div> */
html[data-edition=n10] .progress { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; }
html[data-edition=n10] .progress > i { display: block; height: 100%; width: calc(var(--p, 0) * 1%); background: var(--gold-fill); border-radius: inherit; transition: width .4s; }
/* ring: <div class="ring" style="--p:72"><b>72%</b><span>совместимость</span></div> */
html[data-edition=n10] .ring { --s: 120px; position: relative; width: var(--s); height: var(--s); border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: conic-gradient(var(--gold) calc(var(--p, 0) * 1%), rgba(255, 255, 255, .08) 0); }
html[data-edition=n10] .ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--bg-2); }
html[data-edition=n10] .ring > * { position: relative; }
html[data-edition=n10] .ring b { font-family: var(--display); font-weight: 400; font-size: calc(var(--s) * .27); line-height: 1; color: var(--gold); }
html[data-edition=n10] .ring span { font-size: 11px; color: var(--ink-2); }

/* ========== breadcrumbs / table / empty ========== */
html[data-edition=n10] .crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 16px 0 10px; padding: 0; list-style: none; font-size: 12.5px; color: var(--ink-3); }
html[data-edition=n10] .crumbs a { color: var(--ink-2); text-decoration: none; }
html[data-edition=n10] .crumbs a:hover { color: var(--gold); }
html[data-edition=n10] .crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--ink-3); }
html[data-edition=n10] .table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--glass); -webkit-overflow-scrolling: touch; }
html[data-edition=n10] .tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
html[data-edition=n10] .tbl th, html[data-edition=n10] .tbl td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
html[data-edition=n10] .tbl th { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
html[data-edition=n10] .tbl tr:last-child td { border-bottom: 0; }
html[data-edition=n10] .tbl tr.on td { background: rgba(229, 196, 126, .08); }
html[data-edition=n10] .empty { text-align: center; padding: 36px 20px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--ink-2); }
html[data-edition=n10] .empty .ic { margin: 0 auto 12px; width: 56px; height: 56px; }
html[data-edition=n10] .empty h3 { color: var(--ink); }

/* playing card image from assets/cards */
html[data-edition=n10] .pcard { display: block; width: 100%; max-width: 220px; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .45)); }

/* ========== Mira ========== */
/* round living avatar with gold ring: <span class="mira-ava"><video class="live" data-src="../../media/mira-avatar.mp4" poster="../../media/mira-avatar.jpg" muted playsinline loop autoplay></video></span> */
html[data-edition=n10] .mira-ava { --s: 44px; position: relative; flex: none; width: var(--s); height: var(--s); border-radius: 50%; padding: 2px; background: var(--gold-fill); box-shadow: 0 0 0 3px rgba(229, 196, 126, .12), 0 8px 24px -8px rgba(229, 180, 90, .6); }
html[data-edition=n10] .mira-ava > video, html[data-edition=n10] .mira-ava > img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #2a1d15; }
html[data-edition=n10] .mira-ava.is-online::after { content: ""; position: absolute; right: 0; bottom: 0; width: calc(var(--s) * .24); height: calc(var(--s) * .24); min-width: 8px; min-height: 8px; border-radius: 50%; background: var(--ok); border: 2px solid var(--bg); }
html[data-edition=n10] .mira-ava-sm { --s: 32px; } html[data-edition=n10] .mira-ava-lg { --s: 72px; } html[data-edition=n10] .mira-ava-xl { --s: 112px; }
/* small Mira header row: avatar + name + status */
html[data-edition=n10] .mira-head { display: flex; align-items: center; gap: 12px; }
html[data-edition=n10] .mira-head .mh-name { font-family: var(--display); text-transform: uppercase; letter-spacing: .1em; font-size: 18px; line-height: 1.1; }
html[data-edition=n10] .mira-head .mh-role { display: block; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--gold-2); }
html[data-edition=n10] .online { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
html[data-edition=n10] .online::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: m-ping 2.4s infinite; }
@keyframes m-ping { 0% { box-shadow: 0 0 0 0 rgba(143, 214, 166, .55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(143, 214, 166, 0); } }
/* hero stage: living video that melts into the night (from variant A) */
html[data-edition=n10] .mira-stage { position: relative; height: min(62svh, 600px); min-height: 400px; overflow: hidden; background: #120d0a; }
html[data-edition=n10] .mira-stage .live { object-position: 50% 28%; transition: filter 1.2s ease, transform 6s ease; }
html[data-edition=n10].mira-thinking .mira-stage .live { filter: brightness(1.08) saturate(1.06); transform: scale(1.04); }
html[data-edition=n10] .mira-stage::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 120px; z-index: 1; background: linear-gradient(180deg, rgba(11, 15, 36, .55), transparent); }
html[data-edition=n10] .mira-stage::after { content: ""; position: absolute; inset: auto 0 0 0; height: 58%; z-index: 1; background: linear-gradient(180deg, transparent 0%, rgba(11, 15, 36, .55) 45%, rgba(11, 15, 36, .92) 78%, var(--bg) 100%); }
html[data-edition=n10] .mira-stage .sparkles { z-index: 2; }
html[data-edition=n10] .mira-stage-id { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: 20px; }
html[data-edition=n10] .mira-stage-id .display { font-size: clamp(46px, 13vw, 64px); text-shadow: 0 2px 30px rgba(0, 0, 0, .45); }
html[data-edition=n10] .mira-stage-id .accent { display: block; margin: 6px 0 8px; font-size: 19px; }
@media (min-width: 900px) {
  html[data-edition=n10] .mira-stage { height: auto; aspect-ratio: 4 / 5; min-height: 0; border-radius: 28px; border: 1px solid var(--line-2); box-shadow: 0 40px 120px -40px rgba(229, 180, 90, .45), 0 0 0 8px rgba(255, 255, 255, .02); }
  html[data-edition=n10] .mira-stage::after { height: 42%; background: linear-gradient(180deg, transparent, rgba(11, 15, 36, .85)); }
  html[data-edition=n10] .mira-stage .live { object-position: 50% 35%; }
}
html[data-edition=n10] .live { display: block; width: 100%; height: 100%; object-fit: cover; }
html[data-edition=n10] .sparkles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ========== shell: header (.mainheader > header.nx-header > .nx-bar, drawer #nx-drawer) ========== */
/* The header is exactly --bar-h tall (the line under it is a shadow, not a border), so the chat can
   take calc(100dvh - var(--bar-h) - var(--tabbar-h) - env(safe-area-inset-bottom)). */
html[data-edition=n10] .mainheader { position: sticky; top: 0; z-index: 50; background: rgba(11, 15, 36, .92); box-shadow: inset 0 -1px 0 var(--line); }
html[data-edition=n10] .mainheader.over { position: absolute; left: 0; right: 0; background: linear-gradient(180deg, rgba(11, 15, 36, .7), transparent); box-shadow: none; }
html[data-edition=n10] .nx-header { background: none; border: 0; }
html[data-edition=n10] .nx-bar { display: flex; align-items: center; gap: 16px; width: 100%; height: var(--bar-h); max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
html[data-edition=n10] .nx-logo { display: flex; flex: none; align-items: center; gap: 8px; font-family: var(--display); letter-spacing: .32em; font-size: 15px; line-height: 1; text-decoration: none; color: var(--ink); margin-right: auto; }
html[data-edition=n10] .nx-logo svg { width: 18px; height: 18px; color: var(--gold); filter: drop-shadow(0 0 6px rgba(243, 217, 155, .5)); }
html[data-edition=n10] .nx-logo span { display: inline; font: inherit; font-style: normal; letter-spacing: inherit; color: inherit; }   /* base.css: italic gold, hidden on phones */
html[data-edition=n10] .nx-nav { display: none; flex: none; justify-content: flex-end; align-items: center; gap: 4px; }
html[data-edition=n10] .nx-nav > a, html[data-edition=n10] .nx-nav-item > a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 999px; text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
html[data-edition=n10] .nx-nav a:hover, html[data-edition=n10] .nx-nav a.on { color: var(--ink); background: rgba(255, 255, 255, .05); }
html[data-edition=n10] .nx-nav .mira-ava { --s: 26px; padding: 1.5px; }
html[data-edition=n10] .nx-nav-item { position: relative; }
html[data-edition=n10] .nx-nav-item > a::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); }
html[data-edition=n10] .nx-drop { position: absolute; top: 100%; left: -8px; min-width: 260px; padding: 8px; margin-top: 6px; border-radius: 16px; background: var(--glass-solid); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s; }
html[data-edition=n10] .nx-drop::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
html[data-edition=n10] .nx-nav-item:hover .nx-drop, html[data-edition=n10] .nx-nav-item:focus-within .nx-drop { opacity: 1; visibility: visible; transform: none; }
html[data-edition=n10] .nx-nav-item.nx-drop-off .nx-drop { opacity: 0; visibility: hidden; }   /* Escape (mira.js) */
html[data-edition=n10] .nx-drop a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; text-decoration: none; font-size: 14px; color: var(--ink); }
html[data-edition=n10] .nx-drop a:hover, html[data-edition=n10] .nx-drop a.on { background: rgba(229, 196, 126, .1); }
html[data-edition=n10] .nx-drop a svg { width: 16px; height: 16px; color: var(--gold); }
html[data-edition=n10] .nx-actions { display: flex; flex: none; align-items: center; gap: 10px; margin-left: 0; }
html[data-edition=n10] .nx-account { display: none; max-width: 220px; height: 40px; line-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; font-size: 14px; font-weight: 600; color: var(--ink); }
html[data-edition=n10] .nx-account span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-edition=n10] .nx-account:hover { background: rgba(229, 196, 126, .1); }
html[data-edition=n10] .nx-account.is-guest { background: var(--gold-fill); color: var(--gold-ink); border-color: transparent; }
html[data-edition=n10] .nx-burger { width: 40px; height: 40px; border-radius: 50%; display: grid; place-content: center; gap: 4px; border: 1px solid var(--line); background: rgba(11, 15, 36, .45); padding: 0; }
html[data-edition=n10] .nx-burger span { display: block; width: 16px; height: 1.5px; border-radius: 0; background: var(--ink); transition: transform .2s, opacity .2s; }
html[data-edition=n10] .nx-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
html[data-edition=n10] .nx-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
html[data-edition=n10] .nx-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
html[data-edition=n10] .nx-drawer { display: block; position: fixed; z-index: 55; top: var(--bar-h); left: 0; right: 0; bottom: 0; max-height: none; overflow: auto; overscroll-behavior: contain; background: rgba(11, 15, 36, .98);
  border-top: 1px solid var(--line); padding: 8px var(--gutter) calc(var(--tabbar-h) + 24px + env(safe-area-inset-bottom)); animation: m-fade .2s ease both; }
html[data-edition=n10] .nx-drawer[hidden] { display: none; }
html[data-edition=n10] .mainheader.over .nx-drawer { top: var(--bar-h); }
html[data-edition=n10] .nx-drawer-group { padding: 14px 0; border-bottom: 1px solid var(--line); }
html[data-edition=n10] .nx-drawer-group:last-child { border: 0; }
html[data-edition=n10] .nx-drawer-group p { margin: 0 0 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
html[data-edition=n10] .nx-drawer-group a { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0; border: 0; text-decoration: none; font-size: 16px; color: var(--ink); }
html[data-edition=n10] .nx-drawer-group a svg { width: 20px; height: 20px; color: var(--gold); }
html[data-edition=n10] .nx-drawer-group a.is-main { font-family: var(--serif); font-size: 22px; font-weight: 600; }
html[data-edition=n10] .nx-drawer-group a.on { color: var(--gold); }
@media (min-width: 1100px) {
  html[data-edition=n10] .nx-nav { display: flex; }
  html[data-edition=n10] .nx-account { display: block; }
  html[data-edition=n10] .nx-burger, html[data-edition=n10] .nx-drawer { display: none !important; }
}

/* ========== shell: footer ========== */
html[data-edition=n10] .footermain { margin-top: 40px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(11, 15, 36, 0), rgba(6, 8, 22, .6));
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
html[data-edition=n10] .nx-footer { background: none; border: 0; padding: 0; color: var(--ink); }
html[data-edition=n10] .nx-footer-inner { width: 100%; max-width: var(--max); margin: 0 auto; padding: 32px var(--gutter) 20px; display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
html[data-edition=n10] .nx-footer-brand { grid-column: 1 / -1; }
html[data-edition=n10] .nx-footer-brand .nx-logo { margin-bottom: 10px; }
html[data-edition=n10] .nx-footer-brand p { margin: 0 0 14px; color: var(--ink-2); font-size: 14px; max-width: 34ch; }
html[data-edition=n10] .nx-social { display: flex; gap: 10px; }
html[data-edition=n10] .nx-social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--gold); }
html[data-edition=n10] .nx-social a:hover { background: rgba(229, 196, 126, .1); }
html[data-edition=n10] .nx-social svg { width: 19px; height: 19px; }
html[data-edition=n10] .nx-footer-col p { margin: 0 0 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
html[data-edition=n10] .nx-footer-col a { display: flex; align-items: center; min-height: 44px; padding: 0; text-decoration: none; color: var(--ink-2); font-size: 14px; }
html[data-edition=n10] .nx-footer-col a:hover { color: var(--ink); }
html[data-edition=n10] .nx-copy { max-width: var(--max); margin: 0 auto; padding: 16px var(--gutter) 24px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
@media (min-width: 760px) {
  html[data-edition=n10] .nx-footer-inner { grid-template-columns: 2fr 1fr 1fr; }
  html[data-edition=n10] .nx-footer-brand { grid-column: auto; }
  html[data-edition=n10] .nx-footer-col a { min-height: 34px; }
}
@media (min-width: 1100px) { html[data-edition=n10] .footermain { padding-bottom: 0; } }

/* ========== shell: phone tab bar ========== */
html[data-edition=n10] .nx-tabbar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(9, 12, 30, .96); border-top: 1px solid var(--line); }
html[data-edition=n10] .nx-tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; text-decoration: none; font-size: 11px; font-weight: 600; line-height: 1.2; color: var(--ink-3); }
html[data-edition=n10] .nx-tabbar .nx-tab-t { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-edition=n10] .nx-tabbar svg { width: 22px; height: 22px; }
html[data-edition=n10] .nx-tabbar a.on { color: var(--gold); }
html[data-edition=n10] .nx-tabbar .mira-ava { --s: 28px; padding: 1.5px; opacity: .8; }
html[data-edition=n10] .nx-tabbar a.on .mira-ava { opacity: 1; box-shadow: 0 0 0 3px rgba(229, 196, 126, .25), 0 0 18px rgba(229, 180, 90, .55); }
@media (min-width: 1100px) { html[data-edition=n10] .nx-tabbar { display: none; } }

/* ========== page frame ========== */
/* Pages rewritten in this look call Mira.Page(Context).Full = true: .content gets .mira-full, has no
   padding and no legacy .container, and the page sets its own widths with .wrap. Repainted legacy
   pages keep .container (width and gutter of this look). */
html[data-edition=n10] .content { flex: 1 0 auto; }
html[data-edition=n10] .content.mira-full { padding: 0; }
html[data-edition=n10] .content > .container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
/* n10.css gives .content its own tokens; keep the ones of this look */
html[data-edition=n10] .content, html[data-edition=n10] .n-hero { --bubble: rgba(27, 35, 80, .78); --surface: #151c3d; --line: rgba(233, 214, 170, .14); }

/* ========== base.css fights: form fields ========== */
/* base.css dresses every .content input[type=text|email|…], select and textarea (specificity 0,3,2).
   The element-qualified selectors below are at least as specific and come later, so they win. */
html[data-edition=n10] .content input.input, html[data-edition=n10] .content select.select, html[data-edition=n10] .content textarea.textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background-color: rgba(11, 15, 36, .55);
  font: 400 16px/1.4 var(--sans); letter-spacing: normal; color: var(--ink); box-shadow: none; outline: none; -webkit-appearance: none; appearance: none; }
html[data-edition=n10] .content select.select { padding-right: 36px;
  background: rgba(11, 15, 36, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e5c47e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat; }
html[data-edition=n10] .content textarea.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
html[data-edition=n10] .content input.input:focus, html[data-edition=n10] .content select.select:focus, html[data-edition=n10] .content textarea.textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(229, 196, 126, .15); }
html[data-edition=n10] .content input.input.code { letter-spacing: .4em; font-size: 22px; text-align: center; font-variant-numeric: tabular-nums; }
html[data-edition=n10] .content .field.is-err input.input, html[data-edition=n10] .content .field.is-err select.select, html[data-edition=n10] .content .field.is-err textarea.textarea,
html[data-edition=n10] .content input.input[aria-invalid="true"], html[data-edition=n10] .content select.select[aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 3px rgba(241, 154, 154, .12); }
html[data-edition=n10] .content .ask input, html[data-edition=n10] .content .ask textarea { width: auto; min-height: 0; flex: 1; min-width: 0; padding: 8px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; font: 400 16px/1.4 var(--sans); }
html[data-edition=n10] .content .ask input:focus, html[data-edition=n10] .content .ask textarea:focus { box-shadow: none; }
html[data-edition=n10] .ask:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(229, 196, 126, .15); }
html[data-edition=n10] .content .check input { width: 22px; min-height: 0; height: 22px; padding: 0; }
/* the browser's autofill (main.min.css paints it white) */
html[data-edition=n10] input:-webkit-autofill, html[data-edition=n10] input:-webkit-autofill:hover, html[data-edition=n10] input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #151a3a inset !important; -webkit-text-fill-color: var(--ink) !important; caret-color: var(--ink); }

/* ========== base.css fights: submit buttons ========== */
/* base.css makes every .content button[type=submit] a big gold pill with !important. Buttons of this
   look keep their own shape: these rules are more specific and !important too. */
html[data-edition=n10] .content :is(button, input).btn[type=submit] { min-height: 48px; padding: 0 22px !important; border-radius: 999px !important; border: 1px solid transparent !important;
  font: 600 15px/1.1 var(--sans) !important; letter-spacing: normal !important; text-transform: none !important; box-shadow: none !important; }
html[data-edition=n10] .content :is(button, input).btn-gold[type=submit] { background: var(--gold-fill) !important; color: var(--gold-ink) !important; box-shadow: var(--gold-glow) !important; }
html[data-edition=n10] .content :is(button, input).btn-ghost[type=submit] { background: rgba(255, 255, 255, .04) !important; color: var(--ink) !important; border-color: var(--line-2) !important; }
html[data-edition=n10] .content :is(button, input).btn-link[type=submit] { min-height: 44px; padding: 0 4px !important; background: none !important; color: var(--gold) !important; border: 0 !important; }
html[data-edition=n10] .content :is(button, input).btn-sm[type=submit] { min-height: 36px; padding: 0 14px !important; font-size: 13.5px !important; }
html[data-edition=n10] .content :is(button, input).btn[type=submit]:disabled, html[data-edition=n10] .content :is(button, input).btn.is-disabled[type=submit] { box-shadow: none !important; }
html[data-edition=n10] .content button.send[type=submit] { width: 42px; height: 42px; min-height: 0; padding: 0 !important; border-radius: 50% !important; border: 0 !important;
  background: var(--gold-fill) !important; color: var(--gold-ink) !important; box-shadow: var(--gold-glow) !important; }
html[data-edition=n10] .content button.send[type=submit]:disabled { box-shadow: none !important; }
html[data-edition=n10] .content button.btn-ic[type=submit] { width: 44px; height: 44px; min-height: 0; padding: 0 !important; border-radius: 50% !important; border: 1px solid var(--line) !important;
  background: rgba(11, 15, 36, .45) !important; color: var(--ink) !important; box-shadow: none !important; }
html[data-edition=n10] .content button.chip[type=submit] { min-height: 38px; padding: 0 14px !important; border-radius: 999px !important; border: 1px solid var(--line-2) !important;
  background: rgba(255, 255, 255, .04) !important; color: var(--ink) !important; font: 400 13.5px/1.1 var(--sans) !important; letter-spacing: normal !important; text-transform: none !important; box-shadow: none !important; }
html[data-edition=n10] .content button.chip.on[type=submit], html[data-edition=n10] .content button.chip[type=submit][aria-pressed="true"] { background: var(--gold-fill) !important; color: var(--gold-ink) !important; border-color: transparent !important; font-weight: 600 !important; }
html[data-edition=n10] .content :is(button, input)[type=submit]:is(.btn, .send, .btn-ic, .chip):hover { transform: none; }

/* ========== legacy main.min.css: names this look shares ========== */
/* .card turns gold on hover and shrinks its text on phones there; .empty is tinted. :where keeps
   these resets weak, so a group's own rule always wins. */
:where(html[data-edition=n10]) .card { font-size: inherit; }
:where(html[data-edition=n10]) .card:hover { font-size: inherit; background-color: transparent; }
@media (max-width: 390px) { :where(html[data-edition=n10]) .card { font-size: inherit !important; } }
:where(html[data-edition=n10]) .empty { background-color: transparent; }

@media (prefers-reduced-motion: reduce) {
  html[data-edition=n10] *, html[data-edition=n10] *::before, html[data-edition=n10] *::after { animation: none !important; transition: none !important; }
}


/* ---- shell fixes found by the page groups ---- */
/* a header over the hero: the transparent 1px border let the header gradient repeat into a dark hairline */
html[data-edition=n10] .mainheader.over { background-repeat: no-repeat; border-bottom-width: 0; }
/* Mira's avatar shows its poster even before the loop loads */
html[data-edition=n10] .mira-ava > video { background: #2a1d15 url("../../media/mira/mira-avatar.jpg") center / cover no-repeat; }
