/* KurdKey website. One stylesheet for the Kurdish, Arabic and English pages.
   Colors follow the app: violet #534AB7 (#8B83E6 in dark mode), amber for Premium,
   and the keyboard's own key colors in the demos. */

:root {
  --paper: #f7f6f2;
  --paper-2: #efede6;
  --card: #ffffff;
  --ink: #17161c;
  --ink-2: #4f4d58;
  --ink-3: #7a7884;
  --rule: #dcd9d0;
  --brand: #534ab7;
  --brand-ink: #4239a3;
  --brand-tint: #eeedfe;
  --on-brand: #ffffff;
  --amber: #b26b00;
  --amber-tint: #fef3c7;
  --good: #1f7a45;
  --bad: #c0392b;
  --band: #1b1a22;
  --band-ink: #f1f0f5;
  --band-ink-2: #b4b2bf;
  --band-rule: #34323d;

  /* The keyboard: KurdKey's default light theme (assets/themes/current_theme.json) */
  --kb-board: #e9eaee;
  --kb-key: #ffffff;
  --kb-key-down: #eeeff1;
  --kb-special: #cdced3;
  --kb-special-down: #eeeff1;
  --kb-label: #000000;
  --kb-label-2: #3d3e43;
  --kb-hint: #595a61;
  --kb-hint-2: #3d3e43;
  --kb-icon: #3d3e43;
  --kb-pill: #cdced3;
  --kb-pill-down: #ffffff;
  --kb-divider: #b0b0b0;
  --kb-trail: #3d3e43;
  --kb-app: #ffffff;
  --kb-field: #f1f3f4;
  --kb-ink: #1f2937;
  --kb-pick: #534ab7;
  --kb-shadow: rgba(0, 0, 0, 0.28);
  --ai-bg: #e9eaee;
  --ai-surface: #ffffff;
  --ai-ink: #1f2937;
  --ai-ink-2: #6b7280;
  --ai-primary: #e9eaee;
  --ai-secondary: #88898a;
  --ai-on-secondary: #1f2937;
  --ai-outline: #d1d5db;
  --ai-tile: #f3f4f6;

  --radius: 14px;
  --gutter: 16px;
  --max: 1180px;
  --font: "IBM Plex Sans", "IBM Plex Sans Arabic", "Noto Sans Arabic", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121116;
    --paper-2: #18171d;
    --card: #1c1b22;
    --ink: #edecf2;
    --ink-2: #b9b7c3;
    --ink-3: #8c8a97;
    --rule: #2c2b33;
    --brand: #8b83e6;
    --brand-ink: #a59ff0;
    --brand-tint: rgba(83, 74, 183, 0.28);
    --on-brand: #120f2e;
    --amber: #f5b13d;
    --amber-tint: rgba(245, 158, 11, 0.18);
    --good: #4cc282;
    --bad: #ef6f61;
    --band: #1c1b23;
    --band-ink: #edecf2;
    --band-ink-2: #a6a4b2;
    --band-rule: #34323d;
    /* current_dark_theme.json */
    --kb-board: #121212;
    --kb-key: #2a2a2a;
    --kb-key-down: #3a3a3a;
    --kb-special: #1a1a1a;
    --kb-special-down: #3a3a3a;
    --kb-label: #e1e1e1;
    --kb-label-2: #e1e1e1;
    --kb-hint: #9e9e9e;
    --kb-hint-2: #9e9e9e;
    --kb-icon: #e1e1e1;
    --kb-pill: #1a1a1a;
    --kb-pill-down: #3a3a3a;
    --kb-divider: #404040;
    --kb-trail: #e85625;
    --kb-app: #1b1b1f;
    --kb-field: #2a2a2e;
    --kb-ink: #e1e1e1;
    --kb-pick: #8b83e6;
    --kb-shadow: rgba(0, 0, 0, 0.55);
    --ai-bg: #121212;
    --ai-surface: #171717;
    --ai-ink: #e1e1e1;
    --ai-ink-2: #9e9e9e;
    --ai-primary: #2a2a2a;
    --ai-secondary: #e85625;
    --ai-on-secondary: #e1e1e1;
    --ai-outline: #404040;
    --ai-tile: #2a2a2a;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #121116;
  --paper-2: #18171d;
  --card: #1c1b22;
  --ink: #edecf2;
  --ink-2: #b9b7c3;
  --ink-3: #8c8a97;
  --rule: #2c2b33;
  --brand: #8b83e6;
  --brand-ink: #a59ff0;
  --brand-tint: rgba(83, 74, 183, 0.28);
  --on-brand: #120f2e;
  --amber: #f5b13d;
  --amber-tint: rgba(245, 158, 11, 0.18);
  --good: #4cc282;
  --bad: #ef6f61;
  --band: #1c1b23;
  --band-ink: #edecf2;
  --band-ink-2: #a6a4b2;
  --band-rule: #34323d;
  /* current_dark_theme.json */
  --kb-board: #121212;
  --kb-key: #2a2a2a;
  --kb-key-down: #3a3a3a;
  --kb-special: #1a1a1a;
  --kb-special-down: #3a3a3a;
  --kb-label: #e1e1e1;
  --kb-label-2: #e1e1e1;
  --kb-hint: #9e9e9e;
  --kb-hint-2: #9e9e9e;
  --kb-icon: #e1e1e1;
  --kb-pill: #1a1a1a;
  --kb-pill-down: #3a3a3a;
  --kb-divider: #404040;
  --kb-trail: #e85625;
  --kb-app: #1b1b1f;
  --kb-field: #2a2a2e;
  --kb-ink: #e1e1e1;
  --kb-pick: #8b83e6;
  --kb-shadow: rgba(0, 0, 0, 0.55);
  --ai-bg: #121212;
  --ai-surface: #171717;
  --ai-ink: #e1e1e1;
  --ai-ink-2: #9e9e9e;
  --ai-primary: #2a2a2a;
  --ai-secondary: #e85625;
  --ai-on-secondary: #e1e1e1;
  --ai-outline: #404040;
  --ai-tile: #2a2a2a;
  color-scheme: dark;
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

:lang(en) body, body:lang(en) { line-height: 1.6; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
:lang(ckb) h1, :lang(ckb) h2, :lang(ar) h1, :lang(ar) h2 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.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;
}
.latin { font-family: "IBM Plex Sans", system-ui, sans-serif; direction: ltr; unicode-bidi: isolate; }
.mono { font-family: var(--font-mono); }
.kurdish { font-family: "IBM Plex Sans Arabic", "Noto Sans Arabic", system-ui, sans-serif; }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* ---------- The store banner on phones (data-store, set by the head script) ---------- */

.appbar {
  display: none; align-items: center; gap: 10px; padding: 10px 14px 10px 8px;
  background: var(--card); border-bottom: 1px solid var(--rule);
}
[dir="rtl"] .appbar { padding: 10px 8px 10px 14px; }
[data-store] .appbar { display: flex; }
[data-store="play"] .appbar .for-apple, [data-store="apple"] .appbar .for-play { display: none; }
.appbar-x {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink-3); cursor: pointer;
}
.appbar-x svg { width: 16px; height: 16px; }
.appbar img { flex: none; width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 0 0 1px var(--rule); }
.appbar-t { flex: 1; min-width: 0; display: grid; line-height: 1.35; }
.appbar-t b { font-size: 0.98rem; }
.appbar-rate { font-weight: 400; font-size: 0.8rem; color: var(--amber); margin-inline-start: 4px; }
.appbar-t > span { font-size: 0.8rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar-go {
  flex: none; padding: 8px 18px; border-radius: 999px; text-decoration: none;
  background: var(--brand); color: var(--on-brand); font-size: 0.9rem; font-weight: 600;
}

/* ---------- Key caps: buttons and section numbers look like keyboard keys ---------- */

.cap {
  display: inline-grid; place-items: center;
  min-width: 2.1em; height: 2.1em; padding: 0 0.45em;
  font-family: var(--font-mono); font-size: 0.82rem; font-weight: 600;
  background: var(--card); color: var(--ink);
  border-radius: 7px; box-shadow: 0 1px 0 var(--kb-shadow), 0 0 0 1px var(--rule);
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 8px 18px 8px 16px;
  border-radius: 12px; text-decoration: none; border: 0; cursor: pointer;
  background: var(--ink); color: var(--paper);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); }
.btn svg { width: 24px; height: 24px; flex: none; }
.btn small { display: block; font-size: 0.7rem; line-height: 1.1; opacity: 0.8; }
.btn strong { display: block; font-size: 1.05rem; line-height: 1.2; }
.btn .latin { text-align: start; }
.btn--light { background: var(--card); color: var(--ink); box-shadow: 0 2px 0 var(--kb-shadow), 0 0 0 1px var(--rule); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */

.top {
  position: sticky; top: 0; z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.top.is-stuck { border-bottom-color: var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.12rem; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand:hover { text-decoration: none; }
.nav { display: none; gap: 22px; margin-inline-start: 12px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--ink); }
.top-tools { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.langs { display: flex; gap: 2px; font-size: 0.9rem; }
.langs a { padding: 6px 9px; border-radius: 8px; color: var(--ink-2); text-decoration: none; }
.langs a[aria-current="page"] { color: var(--ink); background: var(--paper-2); font-weight: 600; }
.langs a:hover { color: var(--ink); }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 0; background: transparent; border-radius: 10px; cursor: pointer; color: var(--ink-2);
}
.icon-btn:hover { background: var(--paper-2); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.top .btn { min-height: 40px; padding: 6px 14px; font-size: 0.92rem; border-radius: 10px; display: none; }
@media (min-width: 980px) { .nav { display: flex; } }
@media (min-width: 640px) { .top .btn { display: inline-flex; } }
@media (max-width: 400px) { .langs a { padding: 6px 6px; } .brand span { display: none; } }

/* ---------- Hero ---------- */

.hero { padding: 36px 0 28px; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 940px) {
  .hero { padding: 64px 0 40px; }
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 56px; }
}
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ink-2); font-size: 0.92rem; margin-bottom: 18px; }
.eyebrow .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); }
.hero h1 { font-size: clamp(2.15rem, 5.4vw, 3.7rem); max-width: 16ch; }
:lang(en) .hero h1 { max-width: 18ch; }
.hero .lead { margin-top: 18px; font-size: 1.15rem; color: var(--ink-2); max-width: 46ch; }
.hero .stores { margin-top: 28px; }
.hero-note { margin-top: 14px; font-size: 0.88rem; color: var(--ink-3); }

.facts {
  margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.facts div { padding: 16px 4px 14px; border-bottom: 1px solid var(--rule); }
.facts div:nth-child(odd) { border-inline-end: 1px solid var(--rule); padding-inline-end: 16px; }
.facts div:nth-child(even) { padding-inline-start: 16px; }
.facts div:last-child { border-bottom: 0; grid-column: 1 / -1; border-inline-end: 0; padding-inline-start: 4px; }
.facts b { display: block; font-size: 1.7rem; line-height: 1.15; font-weight: 700; font-variant-numeric: tabular-nums; }
.facts span { font-size: 0.88rem; color: var(--ink-2); }
@media (min-width: 900px) {
  .facts { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 56px; }
  .facts div, .facts div:nth-child(odd), .facts div:nth-child(even), .facts div:last-child {
    grid-column: auto; border-bottom: 0; border-inline-end: 1px solid var(--rule); padding: 18px 20px 16px;
  }
  .facts div:first-child { padding-inline-start: 0; }
  .facts div:last-child { border-inline-end: 0; }
}

/* ---------- Sections ---------- */

.section { padding: 64px 0; border-top: 1px solid var(--rule); }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.hero + .section { border-top: 0; }
@media (min-width: 900px) { .hero + .section { padding-top: 72px; } }
.section-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 760px; }
.section-head .num { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 0.9rem; }
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
.section-head p { color: var(--ink-2); font-size: 1.08rem; max-width: 62ch; }

/* Typing: a ruled spec list, three columns on wide screens */
.specs { display: grid; gap: 0 40px; }
@media (min-width: 720px) { .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .specs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.spec { padding: 22px 0 26px; border-top: 1px solid var(--rule); }
.spec h3 { font-size: 1.12rem; margin-bottom: 8px; }
.spec p { color: var(--ink-2); font-size: 0.98rem; }
.sample {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px;
  font-size: 0.95rem; color: var(--ink);
}
.sample kbd, .sample .k {
  font-family: inherit; font-size: 0.95rem; padding: 3px 9px; border-radius: 7px;
  background: var(--card); box-shadow: 0 1px 0 var(--kb-shadow), 0 0 0 1px var(--rule);
}
.sample .arrow { color: var(--ink-3); }
.sample .pair { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }

/* ---------- Demo layouts (tips and AI) ---------- */

.tips { display: grid; gap: 28px; }
@media (min-width: 940px) { .tips { grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: 48px; align-items: start; } }

.tip-list { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin-inline: -2px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.tip-list button {
  flex: none; scroll-snap-align: start;
  display: grid; gap: 2px; text-align: start; cursor: pointer;
  border: 0; border-radius: 12px; padding: 10px 14px; min-width: 150px;
  background: var(--card); box-shadow: 0 1px 0 var(--kb-shadow), 0 0 0 1px var(--rule);
}
.tip-list button b { font-size: 0.98rem; }
.tip-list button span { font-size: 0.84rem; color: var(--ink-2); }
.tip-list button[aria-selected="true"] { background: var(--brand); color: var(--on-brand); box-shadow: 0 1px 0 rgba(0,0,0,.3); }
.tip-list button[aria-selected="true"] span { color: inherit; opacity: 0.85; }
@media (min-width: 940px) {
  .tip-list { flex-direction: column; overflow: visible; padding: 0; margin: 0; gap: 0; border-top: 1px solid var(--rule); }
  .tip-list button {
    min-width: 0; border-radius: 0; box-shadow: none; background: transparent; padding: 14px 4px 14px 0;
    border-bottom: 1px solid var(--rule); grid-template-columns: 2.4em 1fr; column-gap: 12px; align-items: baseline;
  }
  :dir(rtl) .tip-list button { padding: 14px 0 14px 4px; }
  .tip-list button::before {
    content: attr(data-n); grid-row: span 2; font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-3);
  }
  .tip-list button[aria-selected="true"] { background: transparent; color: var(--ink); box-shadow: none; }
  .tip-list button[aria-selected="true"] b { color: var(--brand-ink); }
  .tip-list button[aria-selected="true"]::before { color: var(--brand-ink); }
  .tip-list button[aria-selected="true"] span { color: var(--ink-2); opacity: 1; }
  .tip-list button:hover b { color: var(--brand-ink); }
}

.panel { display: grid; gap: 22px; }
.panel[hidden] { display: none; }
@media (min-width: 680px) { .panel { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); align-items: start; } }
@media (min-width: 940px) { .panel { grid-template-columns: 1fr; } }
@media (min-width: 1100px) { .panel { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); } }
.panel h3 { font-size: 1.3rem; margin-bottom: 8px; }
.panel .desc { color: var(--ink-2); }
.steps { list-style: none; margin-top: 16px; display: grid; gap: 8px; counter-reset: step; }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 1.9em 1fr; gap: 10px; align-items: start;
  color: var(--ink-2); transition: color 0.2s ease;
}
.steps li::before {
  content: counter(step); display: grid; place-items: center; height: 1.9em; border-radius: 6px;
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600;
  background: var(--card); box-shadow: 0 1px 0 var(--kb-shadow), 0 0 0 1px var(--rule);
  transition: background 0.2s ease, color 0.2s ease;
}
:lang(ckb) .steps li::before { content: counter(step, arabic-indic); }
:lang(ar) .steps li::before { content: counter(step, arabic-indic); }
.steps li.is-now { color: var(--ink); }
.steps li.is-now::before { background: var(--brand); color: var(--on-brand); box-shadow: none; }
.panel .setting { margin-top: 16px; font-size: 0.9rem; color: var(--ink-3); }

/* ---------- The drawn keyboard ----------
   KurdKey's own keyboard, measured on a phone. site.js sets --dp (one Android dp in
   pixels at this width) on each .device; every size below is a number of dp. */

.device {
  --dp: 0.97px;
  position: relative; width: 100%; max-width: 400px; overflow: hidden;
  background: var(--kb-app); border-radius: 22px;
  box-shadow: 0 0 0 1px var(--rule), 0 24px 48px -28px rgba(20, 16, 60, 0.35);
  user-select: none; -webkit-user-select: none;
  direction: ltr;
  font-family: Roboto, "Noto Naskh Arabic", var(--font);
}
.hero .device { margin-inline: auto; }
@media (min-width: 940px) { .hero .device { max-width: 420px; } }
.device .app { padding: 14px 14px 12px; }
.device .field {
  position: relative; display: flex; align-items: center;
  min-height: 46px; padding: 8px 14px; border-radius: 24px;
  background: var(--kb-field); color: var(--kb-ink);
  font-family: Roboto, "Noto Naskh Arabic", sans-serif;
  font-size: 1.05rem; line-height: 1.55; white-space: pre-wrap; overflow: hidden;
}
.device .field.is-block { align-items: flex-start; min-height: 104px; border-radius: 16px; font-size: 0.98rem; }
.device .field .txt { flex: 1; min-width: 0; }
.caret {
  display: inline-block; width: 2px; height: 1.25em; margin-inline: 1px; vertical-align: -0.25em;
  background: var(--kb-pick); border-radius: 1px; animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.field .fix-old { text-decoration: underline wavy #e53935; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }

.kb { position: relative; background: var(--kb-board); }
.kb .ic {
  position: absolute; display: block; background: var(--kb-icon);
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat;
}

/* The toolbar and the word bar: a 40dp pill, 6dp in from the sides */
.kb .strip { position: absolute; left: 0; right: 0; top: 0; height: calc(48 * var(--dp)); }
.kb .pill {
  position: absolute; left: calc(6 * var(--dp)); right: calc(6 * var(--dp)); top: calc(4 * var(--dp));
  height: calc(40 * var(--dp)); border-radius: calc(10 * var(--dp)); background: var(--kb-pill);
}
.kb .tb { position: absolute; top: 0; width: calc(44 * var(--dp)); height: 100%; }
.kb .tb .ic { left: calc(9 * var(--dp)); top: calc(7 * var(--dp)); width: calc(26 * var(--dp)); height: calc(26 * var(--dp)); }
.kb .tb .logo { position: absolute; left: calc(8 * var(--dp)); top: calc(6 * var(--dp)); width: calc(28 * var(--dp)); height: calc(28 * var(--dp)); opacity: 0.7; }
.kb .tb.ai { right: 0; }
.kb .tb.is-down::before, .kb .cell.is-down::before {
  content: ""; position: absolute; inset: calc(4 * var(--dp)); border-radius: calc(8 * var(--dp));
  background: var(--kb-pill-down); opacity: 0.8; z-index: -1;
}
.kb .sb { position: absolute; top: 0; width: calc(40 * var(--dp)); height: 100%; }
.kb .sb.back { left: 0; }
.kb .sb.back::before {
  content: ""; position: absolute; inset: calc(4 * var(--dp)); border-radius: calc(8 * var(--dp)); background: var(--kb-key);
}
.kb .sb.gram { right: 0; }
.kb .sb .ic { left: calc(8 * var(--dp)); top: calc(8 * var(--dp)); width: calc(24 * var(--dp)); height: calc(24 * var(--dp)); }
.kb .words {
  position: absolute; left: calc(40 * var(--dp)); right: calc(40 * var(--dp)); top: 0; height: 100%;
  display: flex; overflow: hidden; color: var(--kb-label-2);
  font-family: "Noto Naskh Arabic", Roboto, sans-serif; font-size: calc(17.5 * var(--dp)); line-height: 1;
}
.kb .words .cell {
  position: relative; flex: none; display: grid; place-items: center; height: 100%;
  padding: 0 calc(19.5 * var(--dp)); white-space: nowrap; z-index: 0;
}
.kb .words .cell + .cell { border-inline-start: 1px solid var(--kb-divider); }

/* Keys: the theme's 8dp corners, 3dp and 4dp inside each cell */
.key {
  position: absolute; background: var(--kb-key); border-radius: calc(8 * var(--dp));
  transition: background 0.1s ease;
}
.key.is-special { background: var(--kb-special); }
.key.is-down { background: var(--kb-key-down); }
.key.is-special.is-down { background: var(--kb-special-down); }
.key .kt { position: absolute; overflow: visible; pointer-events: none; max-width: none; max-height: none; }
.key .lbl { fill: var(--kb-label); }
.key.is-special .lbl { fill: var(--kb-label-2); }
.key .hnt { fill: var(--kb-hint); }
.key.is-special .hnt { fill: var(--kb-hint-2); }
.key .ic { background: var(--kb-icon); }
.key.is-gone { transform: scale(0.3); opacity: 0; transition: transform 0.5s ease, opacity 0.5s ease; }

/* Popups: the theme's popup, popup_language and key_layouts (gray, 10dp; the pick white, 8dp, 4dp in) */
.pop, .list, .preview, .bubble {
  position: absolute; z-index: 3; background: var(--kb-pill); border-radius: calc(10 * var(--dp));
}
.pop { display: flex; animation: rise 0.12s ease-out; }
.pop span {
  position: relative; flex: 1; display: grid; place-items: center; color: var(--kb-label);
  font-family: "Noto Naskh Arabic", Roboto, serif; font-size: calc(26 * var(--dp)); line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.38);
}
.pop span.is-on::before, .list span.is-on::before, .preview::before {
  content: ""; position: absolute; inset: calc(4 * var(--dp)); border-radius: calc(8 * var(--dp));
  background: var(--kb-key); z-index: -1;
}
.pop span { z-index: 0; }
.preview { display: grid; place-items: center; z-index: 3; }
.preview span {
  position: relative; color: var(--kb-label); font-size: calc(34 * var(--dp)); line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.38);
}
.list { display: flex; flex-direction: column; animation: rise 0.12s ease-out; }
.list span {
  position: relative; z-index: 0; flex: 1; display: flex; align-items: center; justify-content: center;
  gap: calc(6 * var(--dp)); color: var(--kb-label-2); white-space: nowrap;
  font-family: Roboto, "Noto Naskh Arabic", sans-serif; font-size: calc(20 * var(--dp)); line-height: 1;
}
.list .add .ic { position: relative; width: calc(22 * var(--dp)); height: calc(22 * var(--dp)); background: var(--kb-label-2); }
.bubble {
  padding: calc(8 * var(--dp)) calc(14 * var(--dp)); white-space: nowrap; color: var(--kb-label-2);
  font-family: "Noto Naskh Arabic", Roboto, sans-serif; font-size: calc(15 * var(--dp)); line-height: 1.2;
  animation: rise 0.18s ease-out;
}
@keyframes rise { from { opacity: 0; transform: translateY(6px) scale(0.96); } }

.trail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 2; }
.trail line { stroke: var(--kb-trail); stroke-linecap: round; transition: stroke-dashoffset 0.3s linear; }

.finger {
  position: absolute; left: 0; top: 0; z-index: 6; width: calc(36 * var(--dp)); height: calc(36 * var(--dp));
  border-radius: 50%; background: rgba(0, 0, 0, 0.2); border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3); pointer-events: none; opacity: 0;
  transition-property: transform, opacity; transition-timing-function: ease-in-out;
}
.finger.is-on { opacity: 1; }
.device.is-still, .device.is-still * { transition: none !important; animation: none !important; }
.finger i { position: absolute; inset: -2px; border-radius: 50%; transition: transform 0.12s ease, background 0.12s ease; }
.finger.is-down i { transform: scale(0.85); background: rgba(0, 0, 0, 0.16); }

/* The AI panel: AIAssistantController and the tool screens, over the whole keyboard (theme "ai") */
.ai-panel {
  position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column;
  background: var(--ai-bg); color: var(--ai-ink); animation: slide 0.3s ease-out;
  font-family: "Noto Naskh Arabic", Roboto, sans-serif;
}
@keyframes slide { from { opacity: 0; transform: translateY(18px); } }
.ai-bar {
  flex: none; display: flex; align-items: center; gap: calc(12 * var(--dp));
  height: calc(48 * var(--dp)); padding: 0 calc(16 * var(--dp)); border-bottom: 1px solid var(--ai-outline);
}
.ai-back { position: relative; flex: none; width: calc(20 * var(--dp)); height: calc(20 * var(--dp)); }
.ai-back .ic { inset: 0; background: var(--ai-ink); }
.ai-panel[dir="rtl"] .ai-back .ic { transform: scaleX(-1); }
.ai-title { font-size: calc(16.5 * var(--dp)); line-height: 1.2; white-space: nowrap; }
.ai-home { flex: 1; min-height: 0; overflow: hidden; padding-top: calc(22 * var(--dp)); }
.ai-cards {
  display: flex; gap: calc(8 * var(--dp)); padding: calc(4 * var(--dp)) calc(16 * var(--dp));
  transition: transform 0.35s ease;
}
.ai-tile {
  flex: none; width: calc(117 * var(--dp)); height: calc(117 * var(--dp));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(5 * var(--dp));
  padding: calc(8 * var(--dp)) calc(6 * var(--dp)); border-radius: calc(16 * var(--dp)); text-align: center;
  background: var(--ai-surface); box-shadow: 0 calc(1 * var(--dp)) calc(3 * var(--dp)) rgba(0, 0, 0, 0.14);
  transition: transform 0.1s ease;
}
.ai-tile.is-down { transform: scale(0.96); }
.ai-tile .tile {
  position: relative; flex: none; width: calc(40 * var(--dp)); height: calc(40 * var(--dp));
  border-radius: calc(12 * var(--dp)); background: var(--ai-tile);
}
.ai-tile .tile .ic { left: calc(8 * var(--dp)); top: calc(8 * var(--dp)); width: calc(24 * var(--dp)); height: calc(24 * var(--dp)); background: currentColor; }
.ai-tile b { font-weight: 400; font-size: calc(15.5 * var(--dp)); line-height: 1.25; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-tile small { font-size: calc(11 * var(--dp)); line-height: 1.3; color: var(--ai-ink-2); }
.ai-dots { display: flex; justify-content: center; gap: calc(8 * var(--dp)); margin-top: calc(14 * var(--dp)); }
.ai-dots i { width: calc(7 * var(--dp)); height: calc(7 * var(--dp)); border-radius: 50%; background: var(--ai-outline); }
.ai-dots i.is-on { background: var(--ai-ink-2); }
.ai-sec {
  display: flex; align-items: center; gap: calc(8 * var(--dp)); margin: calc(26 * var(--dp)) calc(16 * var(--dp)) 0;
  font-size: calc(16 * var(--dp)); line-height: 1;
}
.ai-sec .ic { position: relative; flex: none; width: calc(22 * var(--dp)); height: calc(22 * var(--dp)); background: var(--ai-ink); }
.ai-sec .i-info { width: calc(18 * var(--dp)); height: calc(18 * var(--dp)); background: var(--ai-ink-2); }
.ai-sec .plus { margin-inline-start: auto; }
.ai-langs { display: flex; gap: calc(8 * var(--dp)); padding: calc(14 * var(--dp)) calc(8 * var(--dp)) 0; }
.ai-langs span {
  flex: 1; display: flex; align-items: center; justify-content: space-between; gap: calc(6 * var(--dp));
  height: calc(56 * var(--dp)); padding: 0 calc(10 * var(--dp)); border-radius: calc(12 * var(--dp));
  background: var(--ai-surface); font-size: calc(14 * var(--dp)); white-space: nowrap; overflow: hidden;
}
.ai-langs b { font-weight: 400; overflow: hidden; text-overflow: ellipsis; }
.ai-langs i { flex: none; width: calc(28 * var(--dp)); height: calc(28 * var(--dp)); border-radius: calc(8 * var(--dp)); background: var(--ai-tile); }
.chips { display: flex; gap: calc(8 * var(--dp)); overflow: hidden; flex: 1; min-width: 0; }
.chip {
  flex: none; display: grid; place-items: center; height: calc(32 * var(--dp)); padding: 0 calc(12 * var(--dp));
  border-radius: calc(16 * var(--dp)); font-size: calc(14 * var(--dp)); line-height: 1; white-space: nowrap;
  background: var(--ai-primary); color: var(--ai-ink); border: 1px solid color-mix(in srgb, var(--ai-ink) 10%, transparent);
  transition: background 0.15s ease, color 0.15s ease;
}
.chip.is-on {
  background: color-mix(in srgb, var(--ai-secondary) 20%, transparent); color: var(--ai-secondary);
  border-color: color-mix(in srgb, var(--ai-secondary) 20%, transparent);
}
.ai-body { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0 calc(16 * var(--dp)); }
.ai-body .res {
  flex: 1; min-height: 0; overflow: hidden; padding-top: calc(12 * var(--dp));
  font-size: calc(16 * var(--dp)); line-height: 1.6; animation: fade 0.3s ease;
}
@keyframes fade { from { opacity: 0; } }
.ai-load { position: absolute; inset: 0; display: grid; place-items: center; }
.ai-load .spin {
  width: calc(36 * var(--dp)); height: calc(36 * var(--dp)); border-radius: 50%;
  border: calc(4 * var(--dp)) solid color-mix(in srgb, var(--ai-secondary) 25%, transparent);
  border-top-color: var(--ai-secondary); animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ai-body .old { color: #e53935; text-decoration: line-through; }
.ai-body .new, .ai-body .accepted { color: #518453; font-weight: 600; }
.ai-foot {
  flex: none; display: flex; align-items: center; justify-content: flex-end; gap: calc(16 * var(--dp));
  padding: calc(8 * var(--dp)) 0 calc(16 * var(--dp));
}
.ai-foot .again { color: var(--ai-secondary); font-size: calc(14 * var(--dp)); }
.ai-apply {
  display: grid; place-items: center; height: calc(40 * var(--dp)); padding: 0 calc(24 * var(--dp));
  border-radius: 999px; background: var(--ai-secondary); color: var(--ai-on-secondary);
  font-size: calc(14 * var(--dp)); font-weight: 600; transition: filter 0.1s ease;
}
.ai-apply.is-down { filter: brightness(0.9); }
.ai-accept {
  position: absolute; z-index: 5; display: grid; gap: calc(8 * var(--dp)); padding: calc(10 * var(--dp));
  border-radius: calc(10 * var(--dp)); background: var(--ai-surface); color: var(--ai-ink);
  border: 0.5px solid var(--ai-outline); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  font-family: "Noto Naskh Arabic", Roboto, sans-serif; font-size: calc(14 * var(--dp)); white-space: nowrap;
  animation: rise 0.15s ease-out;
}
.ai-accept p { margin: 0; }
.ai-accept .old { color: #e53935; text-decoration: line-through; }
.ai-accept .new { color: #518453; font-weight: 700; }
.ai-accept div { display: flex; align-items: center; gap: calc(8 * var(--dp)); }
.ai-accept .yes {
  display: grid; place-items: center; height: calc(30 * var(--dp)); padding: 0 calc(12 * var(--dp));
  border-radius: 999px; background: var(--ai-secondary); color: var(--ai-on-secondary); font-size: calc(12.5 * var(--dp)); font-weight: 600;
}
.ai-accept .no { font-size: calc(12.5 * var(--dp)); color: var(--ai-ink-2); padding: 0 calc(8 * var(--dp)); }
.ai-speech {
  flex: 1; display: grid; place-items: center; align-content: center; gap: calc(14 * var(--dp)); text-align: center;
}
.ai-speech .mic {
  position: relative; width: calc(64 * var(--dp)); height: calc(64 * var(--dp)); border-radius: 50%;
  background: var(--ai-secondary); transition: transform 0.25s ease;
  box-shadow: 0 0 0 calc(10 * var(--dp)) color-mix(in srgb, var(--ai-secondary) 18%, transparent);
}
.ai-speech .mic .ic { left: calc(18 * var(--dp)); top: calc(18 * var(--dp)); width: calc(28 * var(--dp)); height: calc(28 * var(--dp)); background: var(--ai-on-secondary); }
.ai-speech small { font-size: calc(13 * var(--dp)); color: var(--ai-ink-2); }

.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; min-height: 32px; }
.demo-bar .now { font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.demo-toggle {
  display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; flex: none;
  background: transparent; color: var(--ink-2); font-size: 0.82rem; padding: 6px 8px; border-radius: 8px;
}
.demo-toggle:hover { background: var(--paper-2); color: var(--ink); }
.demo-toggle svg { width: 14px; height: 14px; }

/* ---------- The AI band ---------- */

.band { background: var(--band); color: var(--band-ink); border-top: 0; }
.band .section-head .num, .band .section-head p, .band .panel .desc, .band .steps li { color: var(--band-ink-2); }
.band .steps li.is-now { color: var(--band-ink); }
.band .cap, .band .steps li::before { background: #2a2933; color: var(--band-ink); box-shadow: 0 1px 0 #000, 0 0 0 1px var(--band-rule); }
.band .steps li.is-now::before { background: #8b83e6; color: #120f2e; box-shadow: none; }
.band .tip-list button { background: #24232c; color: var(--band-ink); box-shadow: 0 1px 0 #000, 0 0 0 1px var(--band-rule); }
.band .tip-list button span { color: var(--band-ink-2); }
.band .tip-list button[aria-selected="true"] { background: #8b83e6; color: #120f2e; }
.band .tip-list button[aria-selected="true"] span { color: #120f2e; }
@media (min-width: 940px) {
  .band .tip-list { border-top-color: var(--band-rule); }
  .band .tip-list button { background: transparent; box-shadow: none; border-bottom-color: var(--band-rule); }
  .band .tip-list button[aria-selected="true"] { background: transparent; color: var(--band-ink); }
  .band .tip-list button[aria-selected="true"] b, .band .tip-list button[aria-selected="true"]::before, .band .tip-list button:hover b { color: #b3adf5; }
  .band .tip-list button[aria-selected="true"] span { color: var(--band-ink-2); }
}
.band .demo-bar .now { color: var(--band-ink); }
.band .demo-toggle { color: var(--band-ink-2); }
.band .demo-toggle:hover { background: #2a2933; color: var(--band-ink); }
.band .device { box-shadow: 0 0 0 1px var(--band-rule), 0 24px 48px -24px rgba(0, 0, 0, 0.6); }
.band a { color: #b3adf5; }
.ai-note { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--band-rule); color: var(--band-ink-2); font-size: 0.95rem; max-width: 70ch; }
.band .reply { margin-top: 36px; display: grid; gap: 8px; max-width: 70ch; }
.band .reply h3 { font-size: 1.12rem; color: var(--band-ink); }
.band .reply p { color: var(--band-ink-2); }

/* ---------- Look & feel ---------- */

.look { display: grid; gap: 40px; }
@media (min-width: 940px) { .look { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 64px; align-items: start; } }
.look .specs { grid-template-columns: 1fr; }
@media (min-width: 640px) { .look .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lab { display: grid; gap: 14px; position: sticky; top: 90px; }
.lab .device { max-width: none; }
.lab-controls { display: grid; gap: 10px; }
.seg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.seg > span { font-size: 0.86rem; color: var(--ink-2); min-width: 7.5em; }
.seg button {
  border: 0; cursor: pointer; padding: 7px 14px; border-radius: 9px; font-size: 0.9rem;
  background: var(--card); box-shadow: 0 1px 0 var(--kb-shadow), 0 0 0 1px var(--rule);
}
.seg button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); box-shadow: none; }
.lab-note { font-size: 0.86rem; color: var(--ink-3); }
.lab .device.is-dark { --kb-board: #121212; --kb-key: #2a2a2a; --kb-key-down: #3a3a3a; --kb-special: #1a1a1a; --kb-special-down: #3a3a3a; --kb-label: #e1e1e1; --kb-label-2: #e1e1e1; --kb-hint: #9e9e9e; --kb-hint-2: #9e9e9e; --kb-icon: #e1e1e1; --kb-pill: #1a1a1a; --kb-pill-down: #3a3a3a; --kb-divider: #404040; --kb-trail: #e85625; --kb-app: #1b1b1f; --kb-field: #2a2a2e; --kb-ink: #e1e1e1; --kb-pick: #8b83e6; --kb-shadow: rgba(0, 0, 0, 0.55); --ai-bg: #121212; --ai-surface: #171717; --ai-ink: #e1e1e1; --ai-ink-2: #9e9e9e; --ai-primary: #2a2a2a; --ai-secondary: #e85625; --ai-on-secondary: #e1e1e1; --ai-outline: #404040; --ai-tile: #2a2a2a; }
.lab .device.is-light { --kb-board: #e9eaee; --kb-key: #ffffff; --kb-key-down: #eeeff1; --kb-special: #cdced3; --kb-special-down: #eeeff1; --kb-label: #000000; --kb-label-2: #3d3e43; --kb-hint: #595a61; --kb-hint-2: #3d3e43; --kb-icon: #3d3e43; --kb-pill: #cdced3; --kb-pill-down: #ffffff; --kb-divider: #b0b0b0; --kb-trail: #3d3e43; --kb-app: #ffffff; --kb-field: #f1f3f4; --kb-ink: #1f2937; --kb-pick: #534ab7; --kb-shadow: rgba(0, 0, 0, 0.28); --ai-bg: #e9eaee; --ai-surface: #ffffff; --ai-ink: #1f2937; --ai-ink-2: #6b7280; --ai-primary: #e9eaee; --ai-secondary: #88898a; --ai-on-secondary: #1f2937; --ai-outline: #d1d5db; --ai-tile: #f3f4f6; }

/* ---------- Themes: the showcase ----------
   One theme large at the center, its neighbours stepping back and turning toward it, over a
   glow in the theme's own color (--tc, from make_themes.py). A click opens it full size. */

@property --tc { syntax: "<color>"; inherits: true; initial-value: #b9b2e8; }
.tsec { overflow-x: clip; }
.tshow { --cw: min(540px, 46vw); }
@media (max-width: 939px) { .tshow { --cw: min(78vw, 460px); } }
.tshow-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tshow-tabs button {
  border: 0; cursor: pointer; padding: 10px 18px; border-radius: 999px; font: inherit; font-size: 0.95rem;
  background: var(--card); color: var(--ink-2); box-shadow: 0 1px 0 var(--kb-shadow), 0 0 0 1px var(--rule);
  transition: background 0.2s ease, color 0.2s ease;
}
.tshow-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.tshow-desc { margin: 14px 0 0; text-align: center; color: var(--ink-3); font-size: 0.95rem; }

.tshow-stage {
  --tc: #b9b2e8;
  position: relative; margin-inline: calc(50% - 50vw); margin-top: 6px;
  height: calc(var(--cw) * 0.84 + 92px);
  outline: none; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  transition: --tc 0.8s ease;
}
.tshow-stage:focus-visible .tcard.is-center a { outline: 3px solid var(--brand); }
.tshow-glow {
  position: absolute; left: 50%; top: calc(46px + var(--cw) * 0.4); width: calc(var(--cw) * 2.1); height: calc(var(--cw) * 1.25);
  transform: translate(-50%, -50%); pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--tc) 60%, transparent), transparent);
  opacity: 0.75; filter: blur(24px);
}
.tshow-track { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.tcard {
  position: absolute; left: 50%; top: 46px; width: var(--cw);
  transition: transform 0.65s cubic-bezier(0.2, 0.75, 0.2, 1), opacity 0.45s ease;
  will-change: transform;
}
.tcard a { display: block; border-radius: 18px; -webkit-tap-highlight-color: transparent; }
.tcard img {
  display: block; width: 100%; height: auto; border-radius: 18px; background: var(--paper-2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 0 28px 50px -30px rgba(0, 0, 0, 0.6);
  transition: filter 0.45s ease, box-shadow 0.45s ease;
}
.tcard:not(.is-center) img { filter: brightness(0.86) saturate(0.85); }
.tcard.is-center a { cursor: zoom-in; }
.tcard.is-center img {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 0 36px 70px -26px color-mix(in srgb, var(--tc) 55%, #000);
}
.tcard.is-far { opacity: 0; pointer-events: none; }
.tshow-stage.no-anim .tcard { transition: none; }
.tshow-nav {
  position: absolute; z-index: 20; top: calc(46px + var(--cw) * 0.4); transform: translateY(-50%);
  display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--card); color: var(--ink); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--rule);
  transition: transform 0.15s ease;
}
.tshow-nav:hover { transform: translateY(-50%) scale(1.06); }
.tshow-nav svg { width: 22px; height: 22px; }
.tshow-nav.is-prev { inset-inline-start: max(10px, calc(50% - var(--cw) / 2 - 24px)); }
.tshow-nav.is-next { inset-inline-end: max(10px, calc(50% - var(--cw) / 2 - 24px)); }
[dir="ltr"] .tshow-nav.is-prev svg, [dir="ltr"] .tbox-nav.is-prev svg,
[dir="rtl"] .tshow-nav.is-next svg, [dir="rtl"] .tbox-nav.is-next svg { transform: scaleX(-1); }
.tshow-meta { display: flex; justify-content: center; align-items: baseline; gap: 12px; min-height: 1.6em; }
.tshow-name { font-size: 1.3rem; font-weight: 600; }
.tshow-hint { margin: 4px 0 0; text-align: center; color: var(--ink-3); font-size: 0.88rem; }

/* Without the script: a row of screenshots to scroll */
.tshow:not(.is-ready) .tshow-stage { height: auto; }
.tshow:not(.is-ready) .tshow-track {
  position: static; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 32px 16px;
}
.tshow:not(.is-ready) .tcard { position: static; flex: 0 0 var(--cw); scroll-snap-align: center; transform: none; }
.tshow:not(.is-ready) .tshow-meta, .tshow:not(.is-ready) .tshow-hint, .tshow:not(.is-ready) .tshow-glow { display: none; }
@media (prefers-reduced-motion: reduce) { .tcard, .tcard img, .tshow-stage { transition: none; } }

/* A theme full size */
.tbox {
  --tc: #333;
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: #fff; overflow: hidden;
}
.tbox:focus { outline: none; }
.tbox::backdrop {
  background: rgba(10, 10, 14, 0.88); background: color-mix(in srgb, var(--tc) 22%, rgba(8, 8, 12, 0.9));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: tfade 0.3s ease;
}
.tbox[open] .tbox-in { animation: tfade 0.25s ease; }
.tbox.is-closing .tbox-in, .tbox.is-closing::backdrop { opacity: 0; transition: opacity 0.2s ease; }
@keyframes tfade { from { opacity: 0; } }
.tbox-in {
  position: absolute; inset: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  gap: 16px; padding: 64px 20px 28px;
}
.tbox-fig { margin: 0; display: grid; justify-items: center; gap: 16px; min-width: 0; }
.tbox-img {
  --ar: 1080 / 860;
  display: block; aspect-ratio: var(--ar); height: auto; border-radius: 22px; background: rgba(255, 255, 255, 0.06);
  width: min(100%, 1040px, calc((100dvh - 200px) * (var(--ar))));
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08);
  user-select: none; -webkit-user-drag: none; touch-action: pan-y;
}
.tbox figcaption { display: flex; align-items: baseline; gap: 14px; }
.tbox-name { font-size: 1.25rem; font-weight: 600; }
.tbox-nav, .tbox-close {
  display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, 0.12); color: #fff; transition: background 0.15s ease;
}
.tbox-nav:hover, .tbox-close:hover { background: rgba(255, 255, 255, 0.24); }
.tbox-nav svg, .tbox-close svg { width: 24px; height: 24px; }
.tbox-close { position: absolute; z-index: 2; top: 14px; inset-inline-end: 14px; width: 46px; height: 46px; }
@media (max-width: 700px) {
  .tbox-in { grid-template-columns: minmax(0, 1fr); padding: 64px 12px 96px; }
  .tbox-nav { position: absolute; bottom: 24px; }
  .tbox-nav.is-prev { inset-inline-start: 24px; }
  .tbox-nav.is-next { inset-inline-end: 24px; }
  .tbox-img { width: min(100%, calc((100dvh - 230px) * (var(--ar)))); border-radius: 16px; }
}

/* ---------- Languages ---------- */

.langs-grid { display: grid; gap: 40px; }
@media (min-width: 940px) { .langs-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: 64px; } }
table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
th, td { text-align: start; padding: 12px 10px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
:dir(rtl) th, :dir(rtl) td { padding: 12px 0 12px 10px; }
thead th { font-size: 0.82rem; font-weight: 600; color: var(--ink-3); border-bottom-color: var(--ink); }
tbody th { font-weight: 600; white-space: nowrap; }
td { color: var(--ink-2); }
tr.is-kurdish th::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-inline-start: 8px; vertical-align: middle; }
.aside { display: grid; gap: 18px; align-content: start; }
.aside h3 { font-size: 1.12rem; }
.aside p { color: var(--ink-2); font-size: 0.98rem; }
.aside .big-n { font-size: 3.4rem; font-weight: 700; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; margin-bottom: 6px; }
[dir="rtl"] td[dir="auto"] { text-align: right; }

/* ---------- Reviews ---------- */

.rv-head { display: grid; gap: 24px; margin-bottom: 36px; }
.rv-head .section-head { margin-bottom: 0; }
@media (min-width: 900px) { .rv-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 48px; } }
.rv-score {
  justify-self: start; display: flex; align-items: center; gap: 16px; padding: 14px 22px 14px 18px;
  border-radius: var(--radius); background: var(--card); box-shadow: 0 1px 0 var(--kb-shadow), 0 0 0 1px var(--rule);
}
:dir(rtl) .rv-score { padding: 14px 18px 14px 22px; }
.rv-score > b { font-size: 2.8rem; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.rv-score > div > span:last-child { display: block; margin-top: 6px; font-size: 0.86rem; color: var(--ink-2); }
/* Five stars: a star mask over a fill that stops at --r (0..1), from the reading side. */
.stars {
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.6 2.9 6 6.5.8-4.8 4.5 1.2 6.5L12 17.3l-5.8 3.1 1.2-6.5-4.8-4.5 6.5-.8z'/%3E%3C/svg%3E");
  display: block; width: 90px; height: 18px; flex: none;
  background: linear-gradient(to right, #f4a51c calc(var(--r, 1) * 100%), var(--rule) 0);
  -webkit-mask: var(--star) 0 0 / 18px 18px repeat-x; mask: var(--star) 0 0 / 18px 18px repeat-x;
}
:dir(rtl) .stars { background: linear-gradient(to left, #f4a51c calc(var(--r, 1) * 100%), var(--rule) 0); }
.rv-grid { display: grid; gap: 16px; }
@media (min-width: 680px) { .rv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .rv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
/* Phones: one row to swipe through, the next card peeking in. */
@media (max-width: 679px) {
  .rv-grid {
    grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 10px;
  }
  .rv-grid::-webkit-scrollbar { display: none; }
  .rv { scroll-snap-align: start; }
}
.rv {
  margin: 0; display: flex; flex-direction: column; gap: 14px; padding: 22px 22px 18px;
  border-radius: var(--radius); background: var(--card); box-shadow: 0 1px 0 var(--kb-shadow), 0 0 0 1px var(--rule);
}
.rv blockquote { margin: 0; flex: 1; font-size: 1.04rem; line-height: 1.75; overflow-wrap: anywhere; }
.rv-tr { margin-top: -6px; font-size: 0.8rem; color: var(--ink-3); }
.rv figcaption { display: flex; align-items: center; gap: 11px; padding-top: 14px; border-top: 1px solid var(--rule); }
.rv figcaption b { display: block; font-size: 0.95rem; line-height: 1.3; }
.rv-av {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: var(--brand-tint); color: var(--brand-ink); font-weight: 700; font-size: 0.95rem;
}
.rv-src { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--ink-3); }
.rv-src svg { width: 13px; height: 13px; flex: none; }
.rv-more { margin-top: 24px; font-size: 0.95rem; }
.rv-more a { font-weight: 600; }
.rv-more a::after { content: " →"; }
:dir(rtl) .rv-more a::after { content: " ←"; }

/* ---------- Privacy ---------- */

.two { display: grid; gap: 32px; }
@media (min-width: 820px) { .two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; } }
.ticks { list-style: none; display: grid; gap: 12px; margin-top: 14px; }
.ticks li { position: relative; padding-inline-start: 28px; color: var(--ink-2); }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 2px; top: 0.55em; width: 12px; height: 7px;
  border-left: 2px solid var(--good); border-bottom: 2px solid var(--good); transform: rotate(-45deg);
}
.ticks.is-out li::before { border-color: var(--brand); width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--brand); transform: none; top: 0.45em; }
.two h3 { font-size: 1.2rem; }

/* ---------- Plans ---------- */

.plans td, .plans th { text-align: center; }
.plans tbody th { white-space: normal; }
@media (max-width: 560px) { .plans { font-size: 0.9rem; } .plans td, .plans th { padding-inline: 4px; } }
.plans th:first-child, .plans td:first-child { text-align: start; }
.plans .yes { color: var(--good); font-weight: 600; }
.plans .no { color: var(--ink-3); }
.plans thead th:last-child { color: var(--amber); }
.pay { margin-top: 18px; color: var(--ink-2); font-size: 0.95rem; max-width: 70ch; }

/* ---------- Setup ---------- */

.setup ol { list-style: none; counter-reset: s; display: grid; gap: 12px; margin-top: 16px; }
.setup li { counter-increment: s; display: grid; grid-template-columns: 2em 1fr; gap: 12px; align-items: baseline; color: var(--ink-2); }
.setup li::before {
  content: counter(s); display: grid; place-items: center; height: 2em; border-radius: 7px;
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600;
  background: var(--card); color: var(--ink); box-shadow: 0 1px 0 var(--kb-shadow), 0 0 0 1px var(--rule);
}
:lang(ckb) .setup li::before, :lang(ar) .setup li::before { content: counter(s, arabic-indic); }
.setup .path { margin-top: 18px; font-size: 0.92rem; color: var(--ink-3); }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; display: flex; justify-content: space-between; gap: 18px;
  font-weight: 600; font-size: 1.06rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--ink-3); font-weight: 400; font-size: 1.3rem; line-height: 1.2; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 70ch; }

/* ---------- Closing and footer ---------- */

.closing { padding: 72px 0; border-top: 1px solid var(--rule); }
.closing .wrap { display: grid; gap: 24px; }
@media (min-width: 900px) { .closing .wrap { grid-template-columns: 1fr auto; align-items: end; } }
.closing h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); max-width: 22ch; }
.closing p { margin-top: 10px; color: var(--ink-2); max-width: 52ch; }

.foot { border-top: 1px solid var(--rule); padding: 40px 0 48px; font-size: 0.92rem; color: var(--ink-2); }
.foot .wrap { display: grid; gap: 28px; }
@media (min-width: 820px) { .foot .wrap { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot h3 { font-size: 0.8rem; font-weight: 600; color: var(--ink-3); margin-bottom: 10px; }
.foot ul { list-style: none; display: grid; gap: 6px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .about p { margin-top: 10px; max-width: 34ch; }
.foot .langs { margin-inline-start: -9px; }
.foot .legal { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 0.85rem; color: var(--ink-3); }

/* ---------- Legal pages: /privacy-policy, /terms, /delete-account (src/legal) ---------- */

.doc { padding: 36px 0 64px; }
@media (min-width: 900px) { .doc { padding: 64px 0 96px; } }
.doc-grid { display: grid; }
@media (min-width: 1000px) {
  .doc-grid.has-toc { grid-template-columns: minmax(200px, 250px) minmax(0, 760px); column-gap: 72px; }
  .has-toc .doc-head, .has-toc .doc-body { grid-column: 2; }
}
.doc-head { display: grid; gap: 14px; max-width: 760px; padding-bottom: 28px; border-bottom: 1px solid var(--rule); }
.doc-head .num { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 0.9rem; }
.doc-head h1 { font-size: clamp(2rem, 5vw, 3.1rem); max-width: 20ch; }
.doc-date { color: var(--ink-3); font-size: 0.95rem; }
.doc-lead { color: var(--ink-2); font-size: 1.12rem; max-width: 60ch; }
.doc-body a { color: var(--brand); }
.doc-body .path { white-space: normal; flex-wrap: wrap; max-width: 100%; }
.guide-link { margin-top: 16px; font-weight: 600; }
.guide-link a { color: var(--brand); text-decoration: none; }
.guide-link a::after { content: " →"; }
[dir="rtl"] .guide-link a::after { content: " ←"; }

.doc-toc { display: none; }
@media (min-width: 1000px) {
  .doc-toc { display: block; grid-column: 1; grid-row: 1 / span 2; align-self: start; position: sticky; top: 88px; font-size: 0.92rem; }
}
.doc-toc h2 { font-size: 0.8rem; font-weight: 600; color: var(--ink-3); margin-bottom: 10px; }
.doc-toc ol { list-style: none; display: grid; border-inline-start: 1px solid var(--rule); }
.doc-toc a {
  display: block; padding: 6px 14px; margin-inline-start: -1px; border-inline-start: 2px solid transparent;
  color: var(--ink-2); text-decoration: none; line-height: 1.4;
}
.doc-toc a:hover { color: var(--ink); border-inline-start-color: var(--ink-3); }
.doc-toc a[aria-current="true"] { color: var(--ink); border-inline-start-color: var(--brand); font-weight: 600; }

.doc-body { max-width: 760px; }
.doc-body section { padding: 30px 0 32px; border-bottom: 1px solid var(--rule); }
.doc-body section:last-child { border-bottom: 0; padding-bottom: 0; }
.doc-body h2 { font-size: 1.32rem; margin-bottom: 12px; }
.doc-body p, .doc-body li { color: var(--ink-2); }
.doc-body * + p, .doc-body * + ul, .doc-body * + table { margin-top: 12px; }
.doc-body strong { color: var(--ink); font-weight: 600; }
.doc-body strong.danger { color: var(--bad); }
.doc-body ul:not(.ticks) { display: grid; gap: 6px; padding-inline-start: 1.3em; }
.doc-body ul:not(.ticks) li::marker { color: var(--ink-3); }
.doc-body .ticks { margin-top: 0; }

/* Numbered steps, the numbers drawn as key caps like the home page's setup steps. */
.doc-steps { list-style: none; counter-reset: s; display: grid; gap: 14px; margin-top: 16px; }
.doc-steps li { counter-increment: s; position: relative; min-height: 2em; padding-inline-start: 2.6em; }
.doc-steps li::before {
  content: counter(s); position: absolute; inset-inline-start: 0; top: 0.12em;
  display: grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: 7px;
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600;
  background: var(--card); color: var(--ink); box-shadow: 0 1px 0 var(--kb-shadow), 0 0 0 1px var(--rule);
}
:lang(ckb) .doc-steps li::before, :lang(ar) .doc-steps li::before { content: counter(s, arabic-indic); }

.callout {
  margin-top: 18px; padding: 14px 18px; border-radius: 12px; font-size: 0.97rem;
  border-inline-start: 3px solid var(--brand); background: var(--brand-tint); color: var(--ink);
}
.callout.is-warn { border-inline-start-color: var(--amber); background: var(--amber-tint); }
.callout.is-ok { border-inline-start-color: var(--good); background: color-mix(in srgb, var(--good) 12%, transparent); }

.path {
  display: inline-flex; align-items: center; gap: 5px; margin-inline-start: 4px; padding: 1px 8px; border-radius: 6px;
  font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.7; white-space: nowrap; vertical-align: 1px;
  background: var(--card); color: var(--ink); box-shadow: 0 1px 0 var(--kb-shadow), 0 0 0 1px var(--rule);
  direction: ltr; unicode-bidi: isolate;
}
.path .pi {
  width: 1.15em; height: 1.15em; background: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat;
}
.doc-table { margin-top: 12px; }
.doc-table td:last-child, .doc-table th:last-child { width: 1%; white-space: nowrap; }
.badge {
  display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; white-space: nowrap;
  color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent);
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .caret { animation: none; }
}

/* Keyboard icons, generated by build.py from src/assets/kb */
.i-add{--m:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2224%22 height=%2224%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22/%3E%3C/svg%3E")}
.i-add_circle{--m:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2224%22 height=%2224%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z%22/%3E%3C/svg%3E")}
.i-ai{--m:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2224%22 height=%2224%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M17.001,1.208 L18.319,3.681 20.792,5 18.319,6.319 17.001,8.792 15.682,6.319 13.209,5 15.682,3.681 17.001,1.208ZM10.667,9.333 L15.667,12 10.667,14.667 8.001,19.667 5.334,14.667 0.334,12 5.334,9.333 8.001,4.333 10.667,9.333ZM11.417,12 L9.189,10.811 8.001,8.583 6.812,10.811 4.584,12 6.812,13.188 8.001,15.417 9.189,13.188 11.417,12ZM19.667,16.333 L18.001,13.208 16.334,16.333 13.209,18 16.334,19.667 18.001,22.792 19.667,19.667 22.792,18 19.667,16.333Z%22 fill=%22%23000000%22/%3E%3C/svg%3E")}
.i-ai_grammar{--m:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2224%22 height=%2224%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M12.45 16h2.09L9.43 3H7.57L2.46 16h2.09l1.12-3h5.64l1.14 3zm-6.02-5L8.5 5.48 10.57 11H6.43zm15.16.59-8.09 8.09L9.83 16l-1.41 1.41 5.09 5.09L23 13l-1.41-1.41z%22/%3E%3C/svg%3E")}
.i-ai_reply{--m:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2224%22 height=%2224%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M22 4c0-1.1-.9-2-2-2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h9v-2H5.17L4 17.17V4h16v8h2V4z%22/%3E%3Cpath d=%22M22.5 16h-2.2l1.7-4h-5v6h2v5z%22/%3E%3C/svg%3E")}
.i-ai_translate{--m:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2224%22 height=%2224%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22m12.87 15.07-2.54-2.51.03-.03A17.52 17.52 0 0 0 14.07 6H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7 1.62-4.33L19.12 17h-3.24z%22/%3E%3C/svg%3E")}
.i-ai_user{--m:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2224%22 height=%2224%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2%22/%3E%3Ccircle cx=%2212%22 cy=%227%22 r=%224%22/%3E%3C/svg%3E")}
.i-ai_wand{--m:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2224%22 height=%2224%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72%22/%3E%3Cpath d=%22m14 7 3 3%22/%3E%3Cpath d=%22M5 6v4%22/%3E%3Cpath d=%22M19 14v4%22/%3E%3Cpath d=%22M10 2v2%22/%3E%3Cpath d=%22M7 8H3%22/%3E%3Cpath d=%22M21 16h-4%22/%3E%3Cpath d=%22M11 3H9%22/%3E%3C/svg%3E")}
.i-arrow_back{--m:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2224%22 height=%2224%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z%22/%3E%3C/svg%3E")}
.i-back{--m:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2224%22 height=%2224%22 viewBox=%220 0 960 960%22%3E%3Cpath d=%22M313,520L509,716Q521,728 520.5,744Q520,760 508,772Q496,783 480,783.5Q464,784 452,772L188,508Q182,502 179.5,495Q177,488 177,480Q177,472 179.5,465Q182,458 188,452L452,188Q463,177 479.5,177Q496,177 508,188Q520,200 520,216.5Q520,233 508,245L313,440L760,440Q777,440 788.5,451.5Q800,463 800,480Q800,497 788.5,508.5Q777,520 760,520L313,520Z%22 fill=%22%23ffffff%22/%3E%3C/svg%3E")}
.i-clipboard{--m:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2224%22 height=%2224%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M9,5h-2a2,2 0 0,0 -2,2v12a2,2 0 0,0 2,2h10a2,2 0 0,0 2,-2v-12a2,2 0 0,0 -2,-2h-2%22 fill=%22none%22 stroke=%22%23000000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M9,3m0,2a2,2 0 0,1 2,-2h2a2,2 0 0,1 2,2v0a2,2 0 0,1 -2,2h-2a2,2 0 0,1 -2,-2Z%22 fill=%22none%22 stroke=%22%23000000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M9,12h6%22 fill=%22none%22 stroke=%22%23000000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M9,16h6%22 fill=%22none%22 stroke=%22%23000000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E")}
.i-cursor{--m:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2224%22 height=%2224%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M8,21V19H11V5H8V3H16V5H13V19H16V21H8ZM18.05,7.05L23,12L18.05,16.95L16.636,15.535L20.172,12L16.636,8.464L18.05,7.05ZM5.95,7.05L7.364,8.464L3.828,12L7.364,15.535L5.95,16.95L1,12L5.95,7.05Z%22 fill=%22%23000000%22/%3E%3C/svg%3E")}
.i-delete{--m:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2224%22 height=%2224%22 viewBox=%220 0 24 24%22%3E%3Cg transform=%22scale%280.025,0.025%29%22%3E%3Cpath d=%22M560,536L636,612Q647,623 664,623Q681,623 692,612Q703,601 703,584Q703,567 692,556L616,480L692,404Q703,393 703,376Q703,359 692,348Q681,337 664,337Q647,337 636,348L560,424L484,348Q473,337 456,337Q439,337 428,348Q417,359 417,376Q417,393 428,404L504,480L428,556Q417,567 417,584Q417,601 428,612Q439,623 456,623Q473,623 484,612L560,536ZM360,800Q341,800 324,791.5Q307,783 296,768L116,528Q100,507 100,480Q100,453 116,432L296,192Q307,177 324,168.5Q341,160 360,160L800,160Q833,160 856.5,183.5Q880,207 880,240L880,720Q880,753 856.5,776.5Q833,800 800,800L360,800ZM360,720L800,720Q800,720 800,720Q800,720 800,720L800,240Q800,240 800,240Q800,240 800,240L360,240Q360,240 360,240Q360,240 360,240L180,480Q180,480 180,480Q180,480 180,480L360,720Q360,720 360,720Q360,720 360,720ZM490,480Q490,480 490,480Q490,480 490,480L490,480Q490,480 490,480Q490,480 490,480L490,480Q490,480 490,480Q490,480 490,480L490,480Q490,480 490,480Q490,480 490,480L490,480Q490,480 490,480Q490,480 490,480Z%22/%3E%3C/g%3E%3C/svg%3E")}
.i-emoji{--m:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2224%22 height=%2224%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M15.5,9.5m-1.5,0a1.5,1.5 0,1 1,3 0a1.5,1.5 0,1 1,-3 0%22 fill=%22%23ffffff%22/%3E%3Cpath d=%22M8.5,9.5m-1.5,0a1.5,1.5 0,1 1,3 0a1.5,1.5 0,1 1,-3 0%22 fill=%22%23ffffff%22/%3E%3Cpath d=%22M12,18c2.28,0 4.22,-1.66 5,-4H7C7.78,16.34 9.72,18 12,18z%22 fill=%22%23ffffff%22/%3E%3Cpath d=%22M11.99,2C6.47,2 2,6.48 2,12c0,5.52 4.47,10 9.99,10C17.52,22 22,17.52 22,12C22,6.48 17.52,2 11.99,2zM12,20c-4.42,0 -8,-3.58 -8,-8c0,-4.42 3.58,-8 8,-8s8,3.58 8,8C20,16.42 16.42,20 12,20z%22 fill=%22%23ffffff%22/%3E%3C/svg%3E")}
.i-enter{--m:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2296%22 height=%2296%22 viewBox=%220 0 96 96%22%3E%3Cpath d=%22M76 30h8v24h-8z%22/%3E%3Cpath d=%22M14 44h70v9H14z%22/%3E%3Cpath d=%22M35 25.5 12.5 48.5 35 71.5%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%228.5%22/%3E%3C/svg%3E")}
.i-grammar{--m:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2224%22 height=%2224%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M12.45,16h2.09L9.43,3L7.57,3L2.46,16h2.09l1.12,-3h5.64l1.14,3zM6.43,11L8.5,5.48 10.57,11L6.43,11zM21.59,11.59l-8.09,8.09L9.83,16l-1.41,1.41 5.09,5.09L23,13l-1.41,-1.41z%22 fill=%22%23000000%22/%3E%3C/svg%3E")}
.i-info{--m:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2224%22 height=%2224%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z%22/%3E%3C/svg%3E")}
.i-language{--m:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2232%22 height=%2232%22 viewBox=%220 0 32 32%22%3E%3Cg transform=%22translate%284.0,4.0%29%22%3E%3Cg transform=%22scale%281.0,1.0%29%22%3E%3Cpath d=%22M11.99,2C6.47,2 2,6.48 2,12s4.47,10 9.99,10C17.52,22 22,17.52 22,12S17.52,2 11.99,2zM18.92,8h-2.95c-0.32,-1.25 -0.78,-2.45 -1.38,-3.56 1.84,0.63 3.37,1.91 4.33,3.56zM12,4.04c0.83,1.2 1.48,2.53 1.91,3.96h-3.82c0.43,-1.43 1.08,-2.76 1.91,-3.96zM4.26,14C4.1,13.36 4,12.69 4,12s0.1,-1.36 0.26,-2h3.38c-0.08,0.66 -0.14,1.32 -0.14,2 0,0.68 0.06,1.34 0.14,2L4.26,14zM5.08,16h2.95c0.32,1.25 0.78,2.45 1.38,3.56 -1.84,-0.63 -3.37,-1.9 -4.33,-3.56zM8.03,8L5.08,8c0.96,-1.66 2.49,-2.93 4.33,-3.56C8.81,5.55 8.35,6.75 8.03,8zM12,19.96c-0.83,-1.2 -1.48,-2.53 -1.91,-3.96h3.82c-0.43,1.43 -1.08,2.76 -1.91,3.96zM14.34,14L9.66,14c-0.09,-0.66 -0.16,-1.32 -0.16,-2 0,-0.68 0.07,-1.35 0.16,-2h4.68c0.09,0.65 0.16,1.32 0.16,2 0,0.68 -0.07,1.34 -0.16,2zM14.59,19.56c0.6,-1.11 1.06,-2.31 1.38,-3.56h2.95c-0.96,1.65 -2.49,2.93 -4.33,3.56zM16.36,14c0.08,-0.66 0.14,-1.32 0.14,-2 0,-0.68 -0.06,-1.34 -0.14,-2h3.38c0.16,0.64 0.26,1.31 0.26,2s-0.1,1.36 -0.26,2h-3.38z%22/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")}
.i-layouts{--m:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2228%22 height=%2228%22 viewBox=%220 0 28 28%22%3E%3Cg transform=%22translate%282.0,2.0%29%22%3E%3Cg transform=%22scale%280.025,0.025%29%22%3E%3Cpath d=%22M560,600L640,600L640,200L480,200L480,280L560,280L560,600ZM320,720Q287,720 263.5,696.5Q240,673 240,640L240,160Q240,127 263.5,103.5Q287,80 320,80L800,80Q833,80 856.5,103.5Q880,127 880,160L880,640Q880,673 856.5,696.5Q833,720 800,720L320,720ZM320,640L800,640Q800,640 800,640Q800,640 800,640L800,160Q800,160 800,160Q800,160 800,160L320,160Q320,160 320,160Q320,160 320,160L320,640Q320,640 320,640Q320,640 320,640ZM160,880Q127,880 103.5,856.5Q80,833 80,800L80,240L160,240L160,800Q160,800 160,800Q160,800 160,800L720,800L720,880L160,880ZM320,160L320,160Q320,160 320,160Q320,160 320,160L320,640Q320,640 320,640Q320,640 320,640L320,640Q320,640 320,640Q320,640 320,640L320,160Q320,160 320,160Q320,160 320,160Z%22/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")}
.i-mic{--m:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2232%22 height=%2232%22 viewBox=%220 0 32 32%22%3E%3Cg transform=%22scale%280.03333333333333333,0.03333333333333333%29%22%3E%3Cpath d=%22M480,560Q430,560 395,525Q360,490 360,440L360,200Q360,150 395,115Q430,80 480,80Q530,80 565,115Q600,150 600,200L600,440Q600,490 565,525Q530,560 480,560ZM480,320Q480,320 480,320Q480,320 480,320L480,320Q480,320 480,320Q480,320 480,320Q480,320 480,320Q480,320 480,320L480,320Q480,320 480,320Q480,320 480,320ZM440,840L440,717Q336,703 268,624Q200,545 200,440L280,440Q280,523 338.5,581.5Q397,640 480,640Q563,640 621.5,581.5Q680,523 680,440L760,440Q760,545 692,624Q624,703 520,717L520,840L440,840ZM480,480Q497,480 508.5,468.5Q520,457 520,440L520,200Q520,183 508.5,171.5Q497,160 480,160Q463,160 451.5,171.5Q440,183 440,200L440,440Q440,457 451.5,468.5Q463,480 480,480Z%22/%3E%3C/g%3E%3C/svg%3E")}
.i-mic_fill{--m:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2224%22 height=%2224%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72h-1.7z%22/%3E%3C/svg%3E")}
.i-settings{--m:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2224%22 height=%2224%22 viewBox=%220 0 24 24%22%3E%3Cg transform=%22scale%280.025,0.025%29%22%3E%3Cpath d=%22M433,880Q406,880 386.5,862Q367,844 363,818L354,752Q341,747 329.5,740Q318,733 307,725L245,751Q220,762 195,753Q170,744 156,721L109,639Q95,616 101,590Q107,564 128,547L181,507Q180,500 180,493.5Q180,487 180,480Q180,473 180,466.5Q180,460 181,453L128,413Q107,396 101,370Q95,344 109,321L156,239Q170,216 195,207Q220,198 245,209L307,235Q318,227 330,220Q342,213 354,208L363,142Q367,116 386.5,98Q406,80 433,80L527,80Q554,80 573.5,98Q593,116 597,142L606,208Q619,213 630.5,220Q642,227 653,235L715,209Q740,198 765,207Q790,216 804,239L851,321Q865,344 859,370Q853,396 832,413L779,453Q780,460 780,466.5Q780,473 780,480Q780,487 780,493.5Q780,500 778,507L831,547Q852,564 858,590Q864,616 850,639L802,721Q788,744 763,753Q738,762 713,751L653,725Q642,733 630,740Q618,747 606,752L597,818Q593,844 573.5,862Q554,880 527,880L433,880ZM440,800L519,800L533,694Q564,686 590.5,670.5Q617,655 639,633L738,674L777,606L691,541Q696,527 698,511.5Q700,496 700,480Q700,464 698,448.5Q696,433 691,419L777,354L738,286L639,328Q617,305 590.5,289.5Q564,274 533,266L520,160L441,160L427,266Q396,274 369.5,289.5Q343,305 321,327L222,286L183,354L269,418Q264,433 262,448Q260,463 260,480Q260,496 262,511Q264,526 269,541L183,606L222,674L321,632Q343,655 369.5,670.5Q396,686 427,694L440,800ZM482,620Q540,620 581,579Q622,538 622,480Q622,422 581,381Q540,340 482,340Q423,340 382.5,381Q342,422 342,480Q342,538 382.5,579Q423,620 482,620ZM480,480L480,480Q480,480 480,480Q480,480 480,480L480,480L480,480L480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480L480,480L480,480L480,480Q480,480 480,480Q480,480 480,480L480,480L480,480L480,480Q480,480 480,480Q480,480 480,480L480,480L480,480L480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480L480,480L480,480L480,480Q480,480 480,480Q480,480 480,480L480,480Z%22/%3E%3C/g%3E%3C/svg%3E")}
.i-shift{--m:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2224%22 height=%2224%22 viewBox=%220 0 24 24%22%3E%3Cg transform=%22scale%280.025,0.025%29%22%3E%3Cpath d=%22M320,800L320,520L204,520Q178,520 167.5,497.5Q157,475 173,455L449,118Q461,103 480,103Q499,103 511,118L787,455Q803,475 792.5,497.5Q782,520 756,520L640,520L640,800Q640,817 628.5,828.5Q617,840 600,840L360,840Q343,840 331.5,828.5Q320,817 320,800ZM400,760L560,760L560,440L671,440L480,206L289,440L400,440L400,760ZM480,440L480,440L480,440L480,440L480,440L480,440L480,440Z%22/%3E%3C/g%3E%3C/svg%3E")}
.i-sticker{--m:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2224%22 height=%2224%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M17.75,3C19.5449,3 21,4.45507 21,6.25V13.1287C21,13.7254 20.7629,14.2977 20.341,14.7197L14.7197,20.341C14.2977,20.7629 13.7254,21 13.1287,21H6.25C4.45507,21 3,19.5449 3,17.75V6.25C3,4.45507 4.45507,3 6.25,3H17.75ZM17.75,4.5H6.25C5.2835,4.5 4.5,5.2835 4.5,6.25V17.75C4.5,18.7165 5.2835,19.5 6.25,19.5H13L13.0009,16.4365C12.7798,16.4695 12.555,16.4914 12.3268,16.502L12.0009,16.5096C10.6524,16.5096 9.41985,16.1277 8.32333,15.3693C7.98266,15.1337 7.89751,14.6665 8.13314,14.3259C8.36876,13.9852 8.83594,13.9 9.1766,14.1357C10.0214,14.72 10.9562,15.0096 12.0009,15.0096C12.4632,15.0096 12.904,14.9529 13.325,14.839C13.8209,13.8102 14.8412,13.0847 16.0382,13.0069L16.2512,13H19.5V6.25C19.5,5.2835 18.7165,4.5 17.75,4.5ZM18.439,14.5H16.2514C15.3332,14.5003 14.58,15.2074 14.5066,16.1066L14.5007,16.2501L14.5,18.439L18.439,14.5ZM9.00045,7.75116C9.69041,7.75116 10.2497,8.31048 10.2497,9.00045C10.2497,9.69041 9.69041,10.2497 9.00045,10.2497C8.31048,10.2497 7.75116,9.69041 7.75116,9.00045C7.75116,8.31048 8.31048,7.75116 9.00045,7.75116ZM15.0004,7.75116C15.6904,7.75116 16.2497,8.31048 16.2497,9.00045C16.2497,9.69041 15.6904,10.2497 15.0004,10.2497C14.3105,10.2497 13.7512,9.69041 13.7512,9.00045C13.7512,8.31048 14.3105,7.75116 15.0004,7.75116Z%22 fill=%22%23000000%22 stroke=%22%23000000%22 stroke-width=%220.5%22/%3E%3C/svg%3E")}
.i-theme{--m:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2224%22 height=%2224%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M12,22C6.49,22 2,17.51 2,12S6.49,2 12,2s10,4.04 10,9c0,3.31 -2.69,6 -6,6h-1.77c-0.28,0 -0.5,0.22 -0.5,0.5 0,0.12 0.05,0.23 0.13,0.33 0.41,0.47 0.64,1.06 0.64,1.67 0,1.38 -1.12,2.5 -2.5,2.5zM12,4c-4.41,0 -8,3.59 -8,8s3.59,8 8,8c0.28,0 0.5,-0.22 0.5,-0.5 0,-0.16 -0.08,-0.28 -0.14,-0.35 -0.41,-0.46 -0.63,-1.05 -0.63,-1.65 0,-1.38 1.12,-2.5 2.5,-2.5L16,15c2.21,0 4,-1.79 4,-4 0,-3.86 -3.59,-7 -8,-7z%22 fill=%22%23ffffff%22/%3E%3Cpath d=%22M6.5,11.5m-1.5,0a1.5,1.5 0,1 1,3 0a1.5,1.5 0,1 1,-3 0%22 fill=%22%23ffffff%22/%3E%3Cpath d=%22M9.5,7.5m-1.5,0a1.5,1.5 0,1 1,3 0a1.5,1.5 0,1 1,-3 0%22 fill=%22%23ffffff%22/%3E%3Cpath d=%22M14.5,7.5m-1.5,0a1.5,1.5 0,1 1,3 0a1.5,1.5 0,1 1,-3 0%22 fill=%22%23ffffff%22/%3E%3Cpath d=%22M17.5,11.5m-1.5,0a1.5,1.5 0,1 1,3 0a1.5,1.5 0,1 1,-3 0%22 fill=%22%23ffffff%22/%3E%3C/svg%3E")}
