/* /support/ only: "Talk to a person" banner, page jump links and the contact dialog.
   Same family as the homepage hero (assets/home.css): its tokens, primary button, gradient hairlines,
   glows, perspective floor and screenshot frame. Every rule is scoped to .sc-* or .cm-* so no other page changes. */

.sc-banner, .sc-hero, .sc-toc, .cm {
  --sc-bg-sunken: #070708;
  --sc-surface: #0f1011;
  --sc-surface-2: #141517;
  --sc-surface-3: #1a1b1e;
  --sc-line: #1f2023;
  --sc-line-strong: #2a2b2f;
  --sc-hair: rgba(255, 255, 255, .06);
  --sc-hair-2: rgba(255, 255, 255, .1);
  --sc-ink: #ececee;
  --sc-muted: #a1a2aa;
  --sc-soft: #8a8b95;
  --sc-accent: #7c85f5;
  --sc-accent-strong: #a3a9fa;
  --sc-accent-soft: rgba(124, 133, 245, .14);
  --sc-ok: #5fd39a;
  --sc-warn: #e8b54d;
  --sc-danger: #f06a6a;
  --sc-ease: cubic-bezier(.2, .8, .2, 1);
}
.sc-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
html.cm-locked { overflow: hidden; }

/* ---------- buttons (the homepage .button / .button-primary) ---------- */
.sc-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: 10px;
  font: 650 15px/1.2 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .25s var(--sc-ease), box-shadow .25s, background .2s, border-color .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.sc-button .sc-ico { width: 17px; height: 17px; flex: none; }
.sc-button-primary {
  background: var(--sc-accent); color: #0b0c1a;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 10px 30px -8px rgba(124, 133, 245, .55);
}
.sc-button-primary:hover {
  background: var(--sc-accent-strong); color: #0b0c1a; transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 16px 40px -10px rgba(124, 133, 245, .7);
}
.sc-button-primary:active { transform: translateY(0); box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 6px 18px -8px rgba(124, 133, 245, .6); }
.sc-button-ghost {
  background: var(--sc-surface-2); color: #fff; border-color: var(--sc-line-strong);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset;
}
.sc-button-ghost:hover { background: var(--sc-surface-3); border-color: #3a3b41; color: #fff; }
.sc-button-ghost:active { background: var(--sc-surface-2); }
.sc-button:focus-visible { outline: 2px solid var(--sc-accent-strong); outline-offset: 3px; border-radius: 10px; }
.sc-button[hidden] { display: none; }

.sc-text-link {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 4px;
  color: #d9dae2; text-decoration: none; font-weight: 600; font-size: 15px;
}
.sc-text-link .sc-ico { width: 16px; height: 16px; color: var(--sc-accent-strong); transition: transform .25s var(--sc-ease); }
.sc-text-link:hover { color: #fff; }
.sc-text-link:hover .sc-ico { transform: translateX(4px); }
/* Without the dialog (no JS, accounts closed) the main button already is the email link. */
html:not(.sc-dialog-on) .sc-banner .sc-text-link { display: none; }

/* ---------- jump links under the intro ---------- */
.sc-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 6px; }
.sc-toc a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px;
  border: 1px solid var(--sc-hair-2); border-radius: 10px; background: rgba(255, 255, 255, .025);
  color: #b9bac3; font-size: 14px; text-decoration: none; transition: color .2s, background .2s, border-color .2s;
}
.sc-toc a:hover { color: #fff; background: var(--sc-hair); }
.sc-toc a svg { width: 16px; height: 16px; }
.sc-toc .sc-toc-contact { color: var(--sc-accent-strong); background: var(--sc-accent-soft); border-color: rgba(124, 133, 245, .4); font-weight: 600; }
.sc-toc .sc-toc-contact:hover { color: #fff; background: rgba(124, 133, 245, .22); }
@media (pointer: coarse) { .sc-toc a { min-height: 44px; } }

/* ---------- page top: the same card as the "Talk to a person" banner ---------- */
.sc-hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin: 40px 0 0; padding: clamp(36px, 4.6vw, 60px) clamp(24px, 5.2vw, 72px) clamp(32px, 4vw, 52px);
  border-radius: 28px;
  background:
    radial-gradient(ellipse 60% 90% at 88% 0%, rgba(124, 133, 245, .2), transparent 62%),
    linear-gradient(180deg, #0e0f12, #09090b 75%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 40px 100px -50px rgba(124, 133, 245, .45);
}
.sc-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .04) 30%, rgba(124, 133, 245, .28) 70%, rgba(255, 255, 255, .06));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.sc-hero > :not(.sc-banner-bg) { position: relative; z-index: 2; }
.sc-hero .sc-glow-a { top: -200px; right: -160px; }
.sc-hero .sc-glow-b { bottom: -260px; }
.sc-hero h1 {
  margin: 0 0 18px; font-size: clamp(42px, 5vw, 64px); font-weight: 680; line-height: 1; letter-spacing: -.05em; color: var(--sc-ink);
}
.sc-hero h1 em {
  font-style: normal; background: linear-gradient(100deg, #e3e5ff 0%, #a3a9fa 45%, #7c85f5 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em;
}
.sc-hero .sc-lede { max-width: 620px; margin-bottom: 26px; }
.sc-hero .sc-lede a { color: var(--sc-accent-strong); font-weight: 600; }
.sc-hero .sc-lede a:hover { color: #fff; }
.sc-hero .sc-toc { margin: 0; }
.sc-hero + .doc { padding-top: 16px; }
@media (max-width: 560px) {
  .sc-hero { margin: 24px -4px 0; padding: 32px 20px 24px; border-radius: 22px; }
  .sc-hero h1 { font-size: clamp(38px, 11.5vw, 50px); }
  .sc-hero .sc-lede { font-size: 16px; }
}

/* ---------- banner ---------- */
.sc-banner {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: 48px; align-items: center;
  margin: 8px 0 96px; padding: clamp(40px, 5.2vw, 72px) 0 clamp(40px, 5.2vw, 72px) clamp(28px, 5.2vw, 72px);
  min-height: 500px; border-radius: 28px; scroll-margin-top: 84px;
  background:
    radial-gradient(ellipse 60% 80% at 82% 0%, rgba(124, 133, 245, .2), transparent 62%),
    linear-gradient(180deg, #0e0f12, #09090b 70%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 40px 100px -50px rgba(124, 133, 245, .45);
}
.sc-banner::after {
  /* gradient hairline border, as on the homepage app frame */
  content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .04) 30%, rgba(124, 133, 245, .28) 70%, rgba(255, 255, 255, .06));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.sc-banner-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sc-glow { position: absolute; border-radius: 50%; filter: blur(70px); }
.sc-glow-a { width: 640px; height: 480px; right: -120px; top: -60px; background: radial-gradient(closest-side, rgba(124, 133, 245, .3), rgba(124, 133, 245, 0)); }
.sc-glow-b { width: 460px; height: 380px; left: -160px; bottom: -120px; background: radial-gradient(closest-side, rgba(92, 74, 190, .2), rgba(92, 74, 190, 0)); }
.sc-floor {
  position: absolute; left: -10%; right: -10%; bottom: -14%; height: 70%;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px; transform: perspective(700px) rotateX(64deg); transform-origin: 50% 100%;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 60% 100%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 60% 100%, #000 10%, transparent 70%);
}

.sc-banner-copy { position: relative; z-index: 2; }
.sc-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 12px 7px 10px;
  border: 1px solid var(--sc-hair-2); border-radius: var(--radius-pill, 999px); background: rgba(255, 255, 255, .025);
  font: 600 11px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--sc-accent-strong);
}
.sc-eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sc-accent); box-shadow: 0 0 0 3px rgba(124, 133, 245, .2); }
.sc-banner h2 {
  margin: 0 0 20px; font-size: clamp(42px, 5vw, 64px); font-weight: 680; line-height: 1; letter-spacing: -.05em; color: var(--sc-ink);
}
.sc-banner h2 em {
  font-style: normal; background: linear-gradient(100deg, #e3e5ff 0%, #a3a9fa 45%, #7c85f5 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em;
}
.sc-lede { margin: 0 0 30px; max-width: 440px; font-size: 17px; line-height: 1.6; color: #b4b5bf; }
.sc-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; }
.sc-note { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--sc-soft); }
.sc-note li { display: flex; align-items: center; gap: 8px; margin: 0; }
.sc-note svg { width: 15px; height: 15px; color: #6f74c8; }
.sc-note li:first-child { color: #c9cad3; }
.sc-note li:first-child svg { color: var(--sc-ok); }

/* the screenshot, framed and tilted like the hero */
.sc-visual { position: relative; z-index: 1; margin: 0; width: calc(100% + 140px); perspective: 2000px; perspective-origin: 20% 40%; }
.sc-tilt { position: relative; transform-style: preserve-3d; transform: rotateX(6deg) rotateY(14deg) rotateZ(-1deg); }
.sc-frame { position: relative; border-radius: 14px; background: var(--sc-bg-sunken); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9); }
.sc-frame img { display: block; width: 100%; height: auto; border-radius: 14px; }
.sc-frame::before {
  content: ""; position: absolute; inset: -1px; z-index: 2; border-radius: 15px; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .04) 30%, rgba(124, 133, 245, .25) 70%, rgba(255, 255, 255, .06));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.sc-frame::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: -9%; height: 22%; z-index: -1; background: radial-gradient(closest-side, rgba(124, 133, 245, .32), transparent); filter: blur(30px); }

.sc-float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--sc-hair-2); border-radius: 14px; background: rgba(17, 18, 22, .86);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .07) inset, 0 24px 50px -18px rgba(0, 0, 0, .85), 0 0 0 1px rgba(0, 0, 0, .3);
  color: var(--sc-ink); font-size: 13px; line-height: 1.3; transform: translateZ(60px);
}
.sc-float b { display: block; font-weight: 650; font-size: 13px; white-space: nowrap; }
.sc-float small { display: block; color: var(--sc-soft); font-size: 11.5px; margin-top: 2px; }
.sc-float-ico { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--sc-accent-soft); border: 1px solid rgba(124, 133, 245, .35); color: var(--sc-accent-strong); }
.sc-float-ico.is-ok { background: rgba(95, 211, 154, .1); border-color: rgba(95, 211, 154, .35); color: var(--sc-ok); }
.sc-float-ico svg { width: 17px; height: 17px; }
.sc-float-msg { left: -10%; bottom: 12%; min-width: 280px; }
.sc-float-body { flex: 1; min-width: 0; }
.sc-float-body i { display: block; height: 5px; margin-top: 7px; border-radius: 3px; background: #2c2d33; }
.sc-float-body i.short { width: 62%; }
.sc-float-pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: var(--radius-pill, 999px); background: rgba(95, 211, 154, .12); color: var(--sc-ok); font: 600 11px/1 var(--mono); }
.sc-float-pill svg { width: 12px; height: 12px; }
.sc-float-time { left: 6%; top: -7%; }
@media (prefers-reduced-motion: no-preference) {
  .sc-float-msg { animation: scBob 7s ease-in-out infinite; }
  .sc-float-time { animation: scBob 8s ease-in-out -3s infinite; }
}
@keyframes scBob { 50% { transform: translateZ(60px) translateY(-6px); } }

@media (max-width: 1080px) {
  .sc-banner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .sc-float-msg { min-width: 250px; left: -6%; }
}
@media (max-width: 860px) {
  .sc-banner { grid-template-columns: 1fr; gap: 44px; min-height: 0; padding: 44px 32px 0; margin-bottom: 72px; }
  .sc-lede { max-width: 560px; }
  .sc-visual { width: 100%; height: clamp(250px, 56vw, 430px); overflow: hidden; margin: 0 -32px -2px 0; padding-top: 22px; perspective: 1400px; perspective-origin: 50% 0; }
  .sc-tilt { width: min(150%, 900px); transform: rotateX(12deg) rotateZ(-1deg); transform-origin: 0 0; }
  .sc-frame { border-radius: 12px 12px 0 0; -webkit-mask-image: linear-gradient(90deg, #000 48%, rgba(0, 0, 0, .4) 62%, transparent 74%), linear-gradient(#000 60%, transparent); mask-image: linear-gradient(90deg, #000 48%, rgba(0, 0, 0, .4) 62%, transparent 74%); }
  .sc-float-msg { left: 4%; bottom: auto; top: 44%; }
  .sc-float-time { left: 46%; top: 6%; }
}
@media (max-width: 560px) {
  .sc-banner { margin: 8px -4px 56px; padding: 36px 20px 0; border-radius: 22px; gap: 40px; }
  .sc-banner h2 { font-size: clamp(38px, 11.5vw, 50px); }
  .sc-lede { font-size: 16px; margin-bottom: 26px; }
  .sc-actions { gap: 4px 18px; }
  .sc-actions .sc-button { width: 100%; min-height: 52px; }
  .sc-note { flex-direction: column; gap: 8px; margin-top: 18px; }
  .sc-tilt { width: 190%; }
  .sc-frame { -webkit-mask-image: linear-gradient(90deg, #000 40%, rgba(0, 0, 0, .4) 50%, transparent 58%); mask-image: linear-gradient(90deg, #000 40%, rgba(0, 0, 0, .4) 50%, transparent 58%); }
  .sc-visual { margin-right: -20px; }
  .sc-float-msg { min-width: 0; width: 230px; left: 0; top: 36%; padding: 10px 12px; }
  .sc-float-time { left: 14%; top: 3%; }
}

/* ---------- contact dialog ---------- */
.cm {
  padding: 0; border: 0; background: transparent; color: var(--sc-ink);
  width: min(1000px, calc(100vw - 48px)); max-width: none; max-height: none; overflow: visible;
}
.cm::backdrop { background: rgba(4, 4, 7, .66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cm-shell {
  position: relative; display: grid; grid-template-columns: minmax(0, 370px) minmax(0, 1fr);
  max-height: min(820px, calc(100vh - 48px)); max-height: min(820px, calc(100dvh - 48px));
  border-radius: 24px; overflow: hidden; background: var(--sc-surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .07) inset, 0 0 0 1px rgba(255, 255, 255, .08), 0 60px 120px -30px rgba(0, 0, 0, .9), 0 40px 120px -50px rgba(124, 133, 245, .55);
}
.cm-shell:focus { outline: none; }
.cm-shell::after {
  content: ""; position: absolute; inset: 0; z-index: 4; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .03) 30%, rgba(124, 133, 245, .3) 75%, rgba(255, 255, 255, .05));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
@media (prefers-reduced-motion: no-preference) {
  .cm[open] .cm-shell { animation: cmIn .34s var(--sc-ease) both; }
  .cm[open]::backdrop { animation: cmFade .3s ease both; }
  .cm.is-closing .cm-shell { animation: cmOut .17s ease-in both; }
  .cm.is-closing::backdrop { animation: cmFadeOut .17s ease-in both; }
}
@keyframes cmIn { from { opacity: 0; transform: translateY(14px) scale(.975); } }
@keyframes cmOut { to { opacity: 0; transform: translateY(8px) scale(.985); } }
@keyframes cmFade { from { opacity: 0; } }
@keyframes cmFadeOut { to { opacity: 0; } }

.cm-close {
  position: absolute; top: 14px; right: 14px; z-index: 5; display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0; border: 1px solid var(--sc-hair-2); border-radius: 12px;
  background: rgba(255, 255, 255, .03); color: var(--sc-muted); cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.cm-close svg { width: 18px; height: 18px; }
.cm-close:hover { background: var(--sc-hair-2); color: #fff; }
.cm-close:focus-visible { outline: 2px solid var(--sc-accent-strong); outline-offset: 2px; }

/* left: information */
.cm-info {
  position: relative; overflow: auto; padding: 32px 32px 30px; border-right: 1px solid var(--sc-hair);
  background:
    radial-gradient(ellipse 90% 50% at 50% 0%, rgba(124, 133, 245, .22), transparent 70%),
    linear-gradient(180deg, #121320, #0c0c10 60%);
}
.cm-info::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(163, 169, 250, .16) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 80% 45% at 50% 12%, #000, transparent 80%); mask-image: radial-gradient(ellipse 80% 45% at 50% 12%, #000, transparent 80%);
}
.cm-info > * { position: relative; }
.cm-art { width: 100%; max-width: 250px; margin: 0 auto 14px; }
.cm-art svg { width: 100%; height: auto; overflow: visible; }
@media (prefers-reduced-motion: no-preference) {
  .cm[open] .cm-art-letter { animation: cmLetter 1s var(--sc-ease) .15s both; }
  .cm[open] .cm-art-badge { animation: cmBadge .6s var(--sc-ease) .55s both; transform-origin: 190px 52px; }
}
@keyframes cmLetter { from { transform: translateY(26px); opacity: 0; } }
@keyframes cmBadge { from { transform: scale(.4); opacity: 0; } }
.cm-kicker { margin: 0 0 10px; font: 600 11.5px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sc-accent-strong); }
.cm-info h2 { margin: 0 0 10px; font-size: 30px; font-weight: 680; line-height: 1.08; letter-spacing: -.035em; color: #fff; }
.cm-desc { margin: 0 0 18px; font-size: 14.5px; line-height: 1.55; color: var(--sc-muted); }
.cm-badge {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 7px 12px 7px 10px;
  border: 1px solid rgba(95, 211, 154, .32); border-radius: var(--radius-pill, 999px); background: rgba(95, 211, 154, .09);
  color: #a6e9c6; font-size: 13px; font-weight: 600; line-height: 1.2;
}
.cm-badge svg { width: 16px; height: 16px; color: var(--sc-ok); flex: none; }
.cm-tips { margin: 0 0 18px; padding: 16px 16px 6px; border: 1px solid var(--sc-hair); border-radius: 14px; background: rgba(255, 255, 255, .02); }
.cm-tips-h { margin: 0 0 10px; font: 600 11px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--sc-soft); }
.cm-tips ul { margin: 0; padding: 0; list-style: none; }
.cm-tips li { display: flex; gap: 10px; margin: 0 0 10px; font-size: 13.5px; line-height: 1.45; color: #c4c5cd; }
.cm-tips li svg { flex: none; width: 18px; height: 18px; padding: 3px; border-radius: 6px; background: var(--sc-accent-soft); color: var(--sc-accent-strong); }
.cm-safe, .cm-mail { display: flex; gap: 10px; margin: 0 0 10px; font-size: 13px; line-height: 1.45; color: var(--sc-muted); }
.cm-safe svg, .cm-mail svg { flex: none; width: 18px; height: 18px; color: #6f74c8; margin-top: 1px; }
.cm-mail { margin: 0; }
.cm-mail a, .cm-fail-alt a, .cm-state-note a, .cm-state-extra a { color: var(--sc-accent-strong); font-weight: 600; }
.cm-mail a:hover, .cm-fail-alt a:hover, .cm-state-note a:hover, .cm-state-extra a:hover { color: #fff; }

/* right: form and states */
.cm-main { position: relative; overflow: auto; padding: 34px 40px 32px; container: cmmain / inline-size; overscroll-behavior: contain; }
.cm-view { padding: 0; border: 0; }
.cm-view[hidden] { display: none; }
.cm-view-title { margin: 0 0 22px; padding-right: 48px; font-size: 22px; font-weight: 650; letter-spacing: -.02em; color: #fff; }

.cm-skeleton i { display: block; height: 46px; margin: 0 0 16px; border-radius: 12px; background: linear-gradient(100deg, var(--sc-surface-2) 30%, var(--sc-surface-3) 50%, var(--sc-surface-2) 70%) 0 0 / 300% 100%; animation: shimmer 1.6s linear infinite; }
.cm-skeleton i:first-child { width: 70%; height: 38px; }
.cm-skeleton i.tall { height: 170px; }

.cm-form { position: relative; margin: 0; }
.cm-form .field { display: grid; gap: 8px; margin: 0 0 18px; }
.cm-form .field[hidden] { display: none; }
.cm-form .field > label, .cm-topic legend { font-size: 13.5px; font-weight: 600; color: #d9dae2; letter-spacing: -.005em; }
.cm-form .field input, .cm-form .field textarea {
  width: 100%; min-height: 48px; margin: 0; padding: 12px 14px; border: 1px solid var(--sc-line-strong); border-radius: 12px;
  background: var(--sc-bg-sunken); color: var(--sc-ink); font: 450 15px/1.5 var(--font);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset; transition: border-color .2s, box-shadow .2s, background .2s;
}
.cm-form .field textarea { min-height: 150px; resize: vertical; }
.cm-form .field input::placeholder, .cm-form .field textarea::placeholder { color: #6e6f78; opacity: 1; }
.cm-form .field input:hover, .cm-form .field textarea:hover { border-color: #3a3b41; }
.cm-form .field input:focus, .cm-form .field textarea:focus {
  outline: none; border-color: var(--sc-accent); background: #0a0a0e;
  box-shadow: 0 0 0 4px rgba(124, 133, 245, .2), 0 1px 0 rgba(255, 255, 255, .03) inset;
}
.cm-form .field.is-invalid input, .cm-form .field.is-invalid textarea { border-color: rgba(240, 106, 106, .75); }
.cm-form .field.is-invalid input:focus, .cm-form .field.is-invalid textarea:focus { box-shadow: 0 0 0 4px rgba(240, 106, 106, .18); }
.cm-form .hint { font-size: 12.5px; line-height: 1.45; color: var(--sc-soft); }
.cm-form .field-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; }
.cm-form .field-foot .hint:last-child { font: 500 12px/1.4 var(--mono); color: var(--sc-soft); font-variant-numeric: tabular-nums; margin-left: auto; }
.cm-form .field-foot .hint.is-near { color: var(--sc-warn); }
.cm-err { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; font-size: 13px; line-height: 1.4; color: #f4928a; }
.cm-err[hidden] { display: none; }
.cm-err-ico { display: grid; place-items: center; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--sc-danger); color: #190909; font: 800 11px/1 var(--font); }
@media (prefers-reduced-motion: no-preference) { .cm-err:not([hidden]) { animation: cmErr .25s var(--sc-ease); } }
@keyframes cmErr { from { opacity: 0; transform: translateY(-3px); } }

.cm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: start; }
.cm-row .field { align-content: start; }
@container cmmain (max-width: 520px) { .cm-row { grid-template-columns: 1fr; } }

/* topic chips (radios that drive the hidden select) */
.cm-topic { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.cm-topic legend { padding: 0; margin: 0 0 10px; }
.cm-chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.cm-chip { position: relative; }
.cm-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cm-chip label {
  display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; min-height: 40px; padding: 0 8px; white-space: nowrap;
  border: 1px solid var(--sc-line-strong); border-radius: 10px; background: var(--sc-surface-2);
  color: #b9bac3; font-size: 14px; font-weight: 550; cursor: pointer; user-select: none;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.cm-chip label::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid #4a4b52; transition: background .2s, border-color .2s, box-shadow .2s;
}
.cm-chip input:hover + label { color: #fff; border-color: #3a3b41; background: var(--sc-surface-3); }
.cm-chip input:checked + label {
  color: #fff; border-color: rgba(124, 133, 245, .65); background: linear-gradient(180deg, rgba(124, 133, 245, .22), rgba(124, 133, 245, .12));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 8px 22px -12px rgba(124, 133, 245, .7);
}
.cm-chip input:checked + label::before { background: var(--sc-accent-strong); border-color: var(--sc-accent-strong); box-shadow: 0 0 0 3px rgba(124, 133, 245, .25); }
.cm-chip input:focus-visible + label { outline: 2px solid var(--sc-accent-strong); outline-offset: 2px; }
@media (pointer: coarse) { .cm-chip label { min-height: 44px; } }
@media (max-width: 480px) { .cm-chips { gap: 4px; } .cm-chip label { gap: 0; padding: 0 4px; font-size: 13px; } .cm-chip label::before { display: none; } }

/* actions, sending state */
.cm-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 18px; margin: 6px 0 0; }
.cm-actions-note { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--sc-soft); }
.cm-actions-note svg { width: 15px; height: 15px; color: var(--sc-ok); }
.cm-send { min-width: 170px; }
.cm-send[aria-disabled='true'] { cursor: progress; transform: none; background: var(--sc-accent); opacity: 1; }
.cm-send[aria-disabled='true']::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(11, 12, 26, .25); border-top-color: #0b0c1a;
  animation: cmSpin .7s linear infinite;
}
@keyframes cmSpin { to { transform: rotate(360deg); } }
.cm-form .field, .cm-topic { transition: opacity .25s; }
.cm-form.is-sending .field, .cm-form.is-sending .cm-topic { opacity: .55; pointer-events: none; }
.cm-form .status { margin: 12px 0 0; min-height: 0; font-size: 13.5px; color: var(--sc-muted); }
.cm-form .status.bad { color: #f4928a; }

/* success + failure */
.cm-state { padding: 18px 0 4px; text-align: center; }
.cm-state-title { margin: 0 0 10px; font-size: 30px; font-weight: 680; line-height: 1.1; letter-spacing: -.035em; color: #fff; }
.cm-state-title:focus { outline: none; }
.cm-state-lede { margin: 0 auto 18px; max-width: 420px; font-size: 15px; line-height: 1.55; color: var(--sc-muted); }
.cm-state-note, .cm-state-extra { margin: 0 auto 10px; max-width: 440px; font-size: 14.5px; line-height: 1.6; color: #c4c5cd; }
.cm-state-note strong { color: #fff; overflow-wrap: anywhere; }
.cm-state-extra { color: var(--sc-muted); font-size: 13.5px; }
.cm-state-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }

.cm-check { position: relative; width: 96px; height: 96px; margin: 6px auto 22px; }
.cm-check::before { content: ""; position: absolute; inset: -26px; border-radius: 50%; background: radial-gradient(closest-side, rgba(95, 211, 154, .3), transparent); }
.cm-check svg { position: relative; width: 100%; height: 100%; }
.cm-check-ring { fill: rgba(95, 211, 154, .1); stroke: var(--sc-ok); stroke-width: 3; stroke-dasharray: 214; stroke-dashoffset: 0; transform: rotate(-90deg); transform-origin: 50% 50%; }
.cm-check-tick { fill: none; stroke: var(--sc-ok); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 44; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .cm-done:not([hidden]) .cm-check-ring { animation: cmRing .6s var(--sc-ease) both; }
  .cm-done:not([hidden]) .cm-check-tick { animation: cmTick .4s var(--sc-ease) .45s both; }
  .cm-done:not([hidden]) .cm-check { animation: cmPop .5s var(--sc-ease) both; }
  .cm-done:not([hidden]) > :not(.cm-check) { animation: cmRise .5s var(--sc-ease) .25s both; }
  .cm-fail:not([hidden]) > * { animation: cmRise .4s var(--sc-ease) both; }
}
@keyframes cmRing { from { stroke-dashoffset: 214; fill: rgba(95, 211, 154, 0); } }
@keyframes cmTick { from { stroke-dashoffset: 44; } }
@keyframes cmPop { from { transform: scale(.7); opacity: 0; } }
@keyframes cmRise { from { opacity: 0; transform: translateY(8px); } }

.cm-ref {
  display: inline-flex; align-items: center; gap: 14px; max-width: 100%; margin: 0 0 20px; padding: 8px 8px 8px 18px;
  border: 1px solid rgba(124, 133, 245, .38); border-radius: 14px;
  background: linear-gradient(180deg, rgba(124, 133, 245, .14), rgba(124, 133, 245, .06));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset;
}
.cm-ref-label { font: 600 10.5px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sc-accent-strong); }
.cm-ref-code { padding: 0; background: none; font: 650 21px/1.2 var(--mono); letter-spacing: .06em; color: #fff; user-select: all; }
.cm-copy {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px; border: 1px solid var(--sc-line-strong);
  border-radius: 10px; background: var(--sc-surface-2); color: #e4e5ea; font: 600 13.5px/1 var(--font); cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.cm-copy svg { width: 16px; height: 16px; }
.cm-copy:hover { background: var(--sc-surface-3); border-color: #3a3b41; }
.cm-copy:focus-visible { outline: 2px solid var(--sc-accent-strong); outline-offset: 2px; }
.cm-copy.is-copied { color: var(--sc-ok); border-color: rgba(95, 211, 154, .45); }
.cm-copy[hidden] { display: none; }

.cm-fail-ico {
  display: grid; place-items: center; width: 72px; height: 72px; margin: 6px auto 20px; border-radius: 22px;
  border: 1px solid rgba(240, 106, 106, .38); background: radial-gradient(circle at 50% 0%, rgba(240, 106, 106, .22), rgba(240, 106, 106, .06));
  color: #f4928a; box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 18px 50px -18px rgba(240, 106, 106, .55);
}
.cm-fail-ico svg { width: 32px; height: 32px; }
.cm-signin-ico {
  display: grid; place-items: center; width: 72px; height: 72px; margin: 6px auto 20px; border-radius: 22px;
  border: 1px solid rgba(124, 133, 245, .42); background: radial-gradient(circle at 50% 0%, rgba(124, 133, 245, .26), rgba(124, 133, 245, .06));
  color: var(--sc-accent-strong); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 18px 50px -18px rgba(124, 133, 245, .6);
}
.cm-signin-ico svg { width: 32px; height: 32px; }
@media (prefers-reduced-motion: no-preference) { .cm-signin:not([hidden]) > * { animation: cmRise .4s var(--sc-ease) both; } }
.cm-fail[data-kind='rate'] .cm-fail-ico, .cm-fail[data-kind='offline'] .cm-fail-ico {
  border-color: rgba(232, 181, 77, .4); background: radial-gradient(circle at 50% 0%, rgba(232, 181, 77, .22), rgba(232, 181, 77, .05));
  color: #f0c86e; box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 18px 50px -18px rgba(232, 181, 77, .5);
}
.cm-safe-note {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 auto; padding: 10px 14px; max-width: 440px; text-align: left;
  border: 1px solid rgba(95, 211, 154, .25); border-radius: 12px; background: rgba(95, 211, 154, .07);
  font-size: 13.5px; line-height: 1.45; color: #b9e8cf;
}
.cm-safe-note svg { flex: none; width: 18px; height: 18px; color: var(--sc-ok); }
.cm-fail-alt { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 22px 0 0; font-size: 14px; color: var(--sc-muted); }
.cm-fail-alt svg { width: 16px; height: 16px; color: #6f74c8; }

/* ---------- dialog on tablets and phones ---------- */
@media (max-width: 900px) {
  .cm-shell { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
  .cm-info { padding: 28px 24px; }
  .cm-main { padding: 30px 28px 28px; }
}
@media (max-width: 720px) {
  .cm { width: 100%; margin: auto 0 0; }
  .cm-shell {
    display: flex; flex-direction: column; max-height: calc(100vh - 12px); max-height: calc(100dvh - 12px);
    border-radius: 22px 22px 0 0;
  }
  .cm-shell::after { border-radius: 22px 22px 0 0; }
  .cm-info { flex: none; overflow: visible; padding: 22px 20px 16px; border-right: 0; border-bottom: 1px solid var(--sc-hair); }
  .cm-art, .cm-tips, .cm-safe, .cm-desc { display: none; }
  .cm-kicker { margin-bottom: 6px; }
  .cm-info h2 { font-size: 24px; margin: 0 56px 12px 0; }
  .cm-badge { margin: 0 0 10px; font-size: 12.5px; }
  .cm-mail { font-size: 13px; }
  .cm-main { flex: 1 1 auto; min-height: 0; padding: 22px 20px calc(24px + env(safe-area-inset-bottom)); }
  .cm-view-title { font-size: 19px; margin-bottom: 18px; padding-right: 0; }
  .cm-close { top: 12px; right: 12px; }
  .cm-actions { flex-direction: column-reverse; align-items: stretch; }
  .cm-actions-note { display: none; }
  .cm-send { width: 100%; min-height: 52px; }
  .cm-state-title { font-size: 26px; }
  .cm-ref { flex-wrap: wrap; justify-content: center; gap: 8px 12px; padding: 12px; }
  .cm-state-actions .sc-button { width: 100%; }
  .cm-fail-alt { flex-wrap: wrap; }
  @media (prefers-reduced-motion: no-preference) {
    .cm[open] .cm-shell { animation-name: cmSheetIn; animation-duration: .38s; }
    .cm.is-closing .cm-shell { animation-name: cmSheetOut; }
  }
}
@keyframes cmSheetIn { from { transform: translateY(60px); opacity: 0; } }
@keyframes cmSheetOut { to { transform: translateY(40px); opacity: 0; } }
