/* AirTypes portal: sign-in pages and the signed-in panel.
   Loads after the homepage system (landing/home/home.css): same tokens, Kanit, Geist Mono, steel
   gradient headings, hairline rows. Amber only on the pill CTAs, focus and live signals. */

:root {
  --ok: #34D58A;
  --bad: #F2555A;
  --field: #121214;
  --px-max: 1200px;
}

/* ---------- Shared bits ---------- */
/* The pages toggle sections with the hidden attribute; component display rules must not win over it. */
[hidden] { display: none !important; }
.px-mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.px-kicker {
  font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3);
}
.px-muted { color: var(--ink-3); font-weight: 300; }
.px-link {
  color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong);
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer; transition: text-decoration-color .2s;
}
.px-link:hover { text-decoration-color: var(--ink); }
.pill:disabled, .ghost:disabled { opacity: .55; cursor: default; transform: none; filter: none; }
.pill svg, .ghost svg { flex: none; margin-right: 8px; }
.ghost { background: none; cursor: pointer; font-family: var(--font); }
.ghost--danger { border-color: rgba(242, 85, 90, .7); color: #FF8F8F; }
.ghost--danger:hover { background-color: rgba(242, 85, 90, .1); }

.spinner {
  display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: px-spin .7s linear infinite;
}
@keyframes px-spin { to { transform: rotate(360deg); } }

/* Status tags: mono caps with a dot. Green and red are semantic, never decoration. */
.tag {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2);
}
.tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.tag--ok { color: var(--ok); }
.tag--ok::before { background: var(--ok); }
.tag--bad { color: #FF8F8F; }
.tag--bad::before { background: var(--bad); }
.tag--live { color: var(--amber); }
.tag--live::before { background: var(--amber); box-shadow: 0 0 10px rgba(255, 178, 36, .6); }

/* Alerts */
.alert {
  display: none; margin-bottom: 20px; padding: 14px 18px; border-radius: 14px;
  font-weight: 300; line-height: 1.5; border: 1px solid var(--line-strong); color: var(--ink);
}
.alert.show { display: block; }
.alert-error { border-color: rgba(242, 85, 90, .45); background: rgba(242, 85, 90, .08); color: #FFB3B3; }
.alert-success { border-color: rgba(52, 213, 138, .4); background: rgba(52, 213, 138, .07); color: #9BEBC4; }
.alert-warning { border-color: rgba(255, 178, 36, .4); background: rgba(255, 178, 36, .07); color: #FFD58A; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field-label { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.field-hint { font-weight: 300; font-size: .85rem; color: var(--ink-3); line-height: 1.45; }
.input {
  width: 100%; min-height: 52px; padding: 0 18px; border-radius: 14px;
  background: var(--field); border: 1px solid var(--line-strong); color: var(--ink);
  font-family: var(--font); font-weight: 400; font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
textarea.input { padding: 14px 18px; min-height: 120px; resize: vertical; line-height: 1.5; }
.input::placeholder { color: var(--ink-3); font-weight: 300; }
.input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255, 178, 36, .18); }
.input[readonly] { color: var(--ink-2); font-family: var(--mono); font-size: .9rem; border-style: dashed; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 52px; }
.eye {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: none; border: 0; border-radius: 10px; color: var(--ink-3); cursor: pointer; transition: color .2s;
}
.eye:hover { color: var(--ink); }
.form-error { display: none; font-size: .85rem; color: #FF8F8F; }
.form-error.show { display: block; }

/* Live password checklist (portal/partials/password-rules) */
.pw-rules { list-style: none; margin: 2px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 5px 12px; }
.pw-rule { position: relative; padding-left: 20px; font-weight: 300; font-size: .85rem; line-height: 1.4; color: var(--ink-3); transition: color .15s ease; }
.pw-rule--wide { grid-column: 1 / -1; }
.pw-rule::before { content: ""; position: absolute; left: 0; top: .2em; width: 13px; height: 13px; box-sizing: border-box; border: 1px solid currentColor; border-radius: 50%; }
.pw-rule.is-met { color: var(--ok); }
.pw-rule.is-met::before { background: var(--ok); }
.pw-rule.is-met::after { content: ""; position: absolute; left: 4.5px; top: calc(.2em + 2px); width: 4px; height: 7px; box-sizing: border-box; border: solid #0C0C0C; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.pw-rule.is-missing { color: #FF8F8F; }
@media (prefers-reduced-motion: reduce) { .pw-rule { transition: none; } }

/* ---------- Sign-in pages: one centred card ---------- */
.auth { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: clip; }
.auth-top {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; max-width: 1440px; margin: 0 auto; padding: 18px var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: 1.1rem; letter-spacing: -.01em; }
.brand .mark { width: 20px; height: auto; }
.auth-back {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
  transition: color .2s;
}
.auth-back:hover { color: var(--ink); }
.auth-main { position: relative; z-index: 1; flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 16px 48px; }
.auth-card {
  width: 100%; max-width: 460px; padding: 36px 24px 28px;
  border: 2px solid var(--line); border-radius: 32px;
  background: rgba(12, 12, 12, .72);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
@media (min-width: 480px) { .auth-card { padding: 44px 40px 32px; } }
.auth-title {
  margin: 14px 0 12px;
  font-weight: 900; text-transform: uppercase; font-size: clamp(2.6rem, 11vw, 3.6rem); line-height: .9; letter-spacing: -.02em;
  padding-bottom: .1em;
}
.auth-sub { margin-bottom: 28px; font-weight: 300; font-size: 1.02rem; line-height: 1.55; color: var(--ink-2); }
.auth-card .pill { width: 100%; margin-top: 6px; }
.auth-row { display: flex; justify-content: flex-end; margin: -6px 0 18px; }
.auth-row a { font-weight: 300; font-size: .9rem; color: var(--ink-2); transition: color .2s; }
.auth-row a:hover { color: var(--ink); }
.auth-foot {
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line);
  font-weight: 300; text-align: center; color: var(--ink-2);
}
.auth-facts { display: grid; gap: 8px; margin: -8px 0 26px; }
.auth-facts li { display: flex; gap: 12px; align-items: baseline; font-weight: 300; color: var(--ink-2); line-height: 1.45; }
.auth-facts li::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); transform: translateY(-2px); }
.auth-legal { margin-top: 14px; font-weight: 300; font-size: .8rem; text-align: center; color: var(--ink-3); }
/* The wordmark behind the card: the footer's word, faint, the width of the screen. */
.auth-word {
  position: absolute; left: 0; right: 0; bottom: -.12em; z-index: 0; pointer-events: none;
  font-weight: 900; text-transform: uppercase; text-align: center; white-space: nowrap;
  font-size: 23vw; line-height: .8; letter-spacing: -.02em; opacity: .16;
}
@media (prefers-reduced-motion: no-preference) {
  .auth-card { animation: px-rise .6s var(--ease-out) both; }
}
@keyframes px-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Signed-in panel ---------- */
.px-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(12, 12, 12, .82); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
.px-nav-in {
  display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap;
  max-width: var(--px-max); margin: 0 auto; padding: 8px var(--gutter);
}
.px-nav .brand { margin-right: auto; }
.px-links {
  order: 3; flex: 1 0 100%; display: flex; gap: 4px; margin: 0 calc(var(--gutter) * -1);
  padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none;
}
.px-links::-webkit-scrollbar { display: none; }
.px-links a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; white-space: nowrap;
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); transition: color .2s;
}
.px-links a:first-child { padding-left: 0; }
.px-links a:hover, .px-links a[aria-current="page"] { color: var(--ink); }
.px-links a[aria-current="page"]::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--ink);
}
.px-links a:first-child[aria-current="page"]::after { left: 0; }
@media (min-width: 900px) {
  .px-nav-in { flex-wrap: nowrap; }
  .px-links { order: 0; flex: 0 1 auto; margin: 0; padding: 0; }
  .px-links a:first-child { padding-left: 12px; }
  .px-links a:first-child[aria-current="page"]::after { left: 12px; }
}
.px-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.px-avatar {
  flex: none; width: 34px; height: 34px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); font-weight: 500; font-size: .9rem; color: var(--ink);
}
.px-avatar img { width: 100%; height: 100%; object-fit: cover; }
.px-me { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 44px; border-radius: 999px; color: inherit; text-decoration: none; }
.px-me .px-avatar { transition: border-color .2s; }
.px-me:hover .px-avatar { border-color: var(--ink-2); }
.px-me:hover .px-name { color: var(--ink); }
.px-name { display: none; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 300; color: var(--ink-2); }
@media (min-width: 640px) { .px-name { display: block; } }
.px-out {
  min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: none;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
  cursor: pointer; transition: color .2s, border-color .2s;
}
.px-out:hover { color: var(--ink); border-color: var(--ink); }

.px { max-width: var(--px-max); margin: 0 auto; padding: 0 var(--gutter); }
.px-head { display: grid; gap: 18px; padding: 48px 0 40px; }
@media (min-width: 768px) { .px-head { padding: 72px 0 56px; } }
.px-crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
}
.px-title {
  font-weight: 900; text-transform: uppercase; font-size: clamp(2.8rem, 10vw, 128px); line-height: .88; letter-spacing: -.02em;
  padding-bottom: .12em; margin-bottom: -.1em; overflow-wrap: anywhere;
}
.px-lede { max-width: 60ch; font-weight: 300; font-size: 1.1rem; line-height: 1.55; color: var(--ink-2); }
.px-lede strong { font-weight: 500; color: var(--ink); }
.px-head-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

/* Numbered hairline sections, like /download's steps. */
.px-sec { display: grid; gap: 18px; padding: 36px 0; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.px-sec-h:focus { outline: none; }
@media (min-width: 900px) { .px-sec { grid-template-columns: 200px minmax(0, 1fr); gap: 32px; padding: 48px 0; } }
.px-sec-k { display: grid; gap: 6px; align-content: start; }
.px-sec-k .px-kicker { color: var(--ink-3); }
.px-sec-h { font-weight: 500; font-size: 1.35rem; line-height: 1.15; letter-spacing: -.005em; }
.px-sec-v { min-width: 0; }
.px-sec-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 20px; }

/* Stat strip: big numbers between hairlines. */
.px-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .px-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.px-stat { display: grid; gap: 10px; align-content: start; padding: 24px 16px 26px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.px-stat:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--line); }
@media (min-width: 900px) {
  .px-stat { padding: 28px 24px 30px; }
  .px-stat:first-child { padding-left: 0; }
  .px-stat + .px-stat { border-left: 1px solid var(--line); padding-left: 24px; }
}
.px-stat-v { font-weight: 500; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.px-stat-s { font-weight: 300; font-size: .9rem; color: var(--ink-3); }

/* Big rounded panel (balance, open-in-app). */
.px-panel {
  display: grid; gap: 24px; padding: 28px 22px; border: 2px solid var(--line); border-radius: 28px;
}
@media (min-width: 640px) { .px-panel { padding: 36px 40px; border-radius: 40px; } }
@media (min-width: 900px) { .px-panel--split { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; } }
.px-panel-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.px-balance { font-weight: 900; font-size: clamp(3.4rem, 12vw, 136px); line-height: .86; letter-spacing: -.03em; padding-bottom: .08em; font-variant-numeric: tabular-nums; }
.px-panel-t { font-weight: 500; font-size: 1.5rem; line-height: 1.15; }
.px-panel-d { margin-top: 8px; max-width: 58ch; font-weight: 300; line-height: 1.55; color: var(--ink-2); }

/* Hairline rows: lists, packs, sessions, ledger. */
.px-rows { border-top: 1px solid var(--line); }
.px-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.px-row-t { font-weight: 400; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; }
.px-row-d { grid-column: 1; font-weight: 300; font-size: .9rem; color: var(--ink-3); }
.px-row-end { grid-row: 1 / span 2; grid-column: 2; display: flex; align-items: center; gap: 12px; justify-self: end; text-align: right; }
a.px-row, button.px-row { width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
a.px-row:hover .px-row-t, button.px-row:hover .px-row-t { color: #fff; }
.px-empty { padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 300; color: var(--ink-2); }
.px-empty strong { display: block; margin-bottom: 4px; font-weight: 500; color: var(--ink); }

/* Credit packs (like /download's file rows). */
.px-pack { grid-template-columns: minmax(0, 1fr) auto; padding: 20px 0; }
.px-pack-price { font-weight: 500; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1; letter-spacing: -.02em; }
.px-pack-what { margin-top: 6px; font-weight: 300; color: var(--ink-2); }

/* Tables: hairline, mono numbers, scroll sideways on phones. */
.px-table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
.px-table { width: 100%; border-collapse: collapse; font-weight: 300; }
.px-table th {
  padding: 14px 16px 14px 0; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
.px-table td { padding: 15px 16px 15px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.px-table td.num, .px-table th.num { text-align: right; padding-right: 0; padding-left: 16px; }
.px-table .px-mono { font-size: .88rem; color: var(--ink); }
.px-plus { color: var(--ok); }

/* Segmented period switch. */
.px-seg { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.px-seg button {
  min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
  transition: color .2s, background-color .2s;
}
.px-seg button:hover { color: var(--ink); }
.px-seg button.active { background: var(--ink); color: var(--bg); }

/* Activity chart: steel bars, today at full ink. */
.chart-wrap { display: flex; gap: 3px; height: 180px; padding-top: 8px; }
.chart-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.chart-col-space { flex: 1; }
.chart-bar {
  width: 100%; min-height: 3px; border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, rgba(187, 204, 215, .5), rgba(100, 105, 115, .35));
  transform-origin: bottom center;
}
.chart-bar.today { background: linear-gradient(180deg, var(--steel-b), var(--steel-a)); }
.chart-lbl { max-width: 100%; overflow: hidden; white-space: nowrap; font-family: var(--mono); font-size: .62rem; color: var(--ink-3); }
.chart-empty { flex: 1; display: flex; align-items: center; justify-content: center; font-weight: 300; color: var(--ink-3); }
.chart-base { height: 1px; background: var(--line-strong); }
.px-totals { display: flex; flex-wrap: wrap; gap: 16px 40px; margin-top: 20px; }
.px-totals div { display: grid; gap: 4px; }
.px-totals .px-mono { font-size: 1.1rem; color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .chart-bar { animation: px-grow .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 25ms); }
}
@keyframes px-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* One-time sign-in link countdown. */
.px-clock { font-family: var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.px-meter { height: 3px; margin-top: 12px; max-width: 420px; border-radius: 3px; overflow: hidden; background: var(--line); }
.px-meter > span { display: block; height: 100%; background: var(--ink); transform-origin: left center; transition: transform .9s linear; }

/* Profile identity */
.px-id { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.px-id-av {
  position: relative; flex: none; width: 88px; height: 88px; border-radius: 50%; overflow: hidden; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--line-strong); font-weight: 500; font-size: 2rem;
}
.px-id-av img { width: 100%; height: 100%; object-fit: cover; }
.px-id-av-over {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(12, 12, 12, .7); opacity: 0; transition: opacity .2s; color: var(--ink);
}
.px-id-av:hover .px-id-av-over, .px-id-av:focus-within .px-id-av-over { opacity: 1; }
.px-id-name { font-weight: 500; font-size: 1.6rem; line-height: 1.1; }
.px-id-mail { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-family: var(--mono); font-size: .85rem; color: var(--ink-2); }
.px-form { max-width: 520px; }
.px-form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Support thread */
.px-thread { display: grid; gap: 18px; padding: 8px 0 24px; }
.msg { display: grid; gap: 6px; max-width: 78%; }
.msg--me { justify-self: end; }
.msg-meta { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.msg--me .msg-meta { text-align: right; }
.msg-body { padding: 14px 18px; border-radius: 20px; white-space: pre-wrap; font-weight: 300; line-height: 1.55; border: 1px solid var(--line); }
.msg--me .msg-body { border-color: var(--line-strong); background: rgba(215, 226, 234, .06); border-bottom-right-radius: 6px; }
.msg--them .msg-body { border-bottom-left-radius: 6px; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px;
  background: rgba(8, 8, 8, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.modal-overlay.show { display: flex; }
.modal-box { width: 100%; max-width: 480px; padding: 32px 26px; border: 2px solid var(--line); border-radius: 32px; background: var(--bg); }
.modal-title { margin-bottom: 10px; font-weight: 500; font-size: 1.5rem; line-height: 1.15; }
.modal-sub { margin-bottom: 26px; font-weight: 300; line-height: 1.6; color: var(--ink-2); }
.modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }

/* Panel footer */
.px-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--px-max) - 2 * var(--gutter));
  margin: 48px auto 0; padding: 28px 0 40px; border-top: 1px solid var(--line);
  font-weight: 300; font-size: .9rem; color: var(--ink-3);
}
.px-foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.px-foot a { transition: color .2s; }
.px-foot a:hover { color: var(--ink); }

/* ---------- Standalone result pages (payment, unsubscribe) ---------- */
.solo { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: clip; }
.solo-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 16px 64px; }
.solo-card { width: 100%; max-width: 560px; text-align: center; }
.solo-ring {
  position: relative; width: 84px; height: 84px; margin: 0 auto 28px; border-radius: 50%;
  border: 2px solid var(--line-strong); display: flex; align-items: center; justify-content: center; color: var(--ink);
}
.solo-ring--live { border-color: var(--amber); color: var(--amber); box-shadow: 0 0 24px rgba(255, 178, 36, .25); }
.solo-title { font-weight: 900; text-transform: uppercase; font-size: clamp(2.6rem, 10vw, 5rem); line-height: .9; letter-spacing: -.02em; padding-bottom: .1em; }
.solo-sub { margin: 18px auto 32px; max-width: 46ch; font-weight: 300; font-size: 1.08rem; line-height: 1.6; color: var(--ink-2); }
.solo-sub strong { font-weight: 500; color: var(--ink); }
.solo-note { margin: -12px auto 32px; max-width: 46ch; padding: 16px 20px; border: 1px solid var(--line); border-radius: 18px; font-weight: 300; font-size: .92rem; line-height: 1.55; color: var(--ink-3); text-align: left; }
.solo-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.solo-facts { margin: 0 auto 32px; max-width: 420px; text-align: left; }

@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 1.6s; }
  .px-meter > span { transition: none; }
}

/* ---------- Checkout: our summary beside Stripe's iframe ---------- */
.co { min-height: 100vh; display: flex; flex-direction: column; }
.co-main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 16px 20px 56px; display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .co-main { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 56px; padding-top: 32px; } .co-main:not(:has(.co-pay:not([hidden]))) { grid-template-columns: minmax(0, 520px); justify-content: center; } }
.co-title { margin-top: 10px; font-weight: 900; font-size: clamp(3rem, 8vw, 84px); line-height: .92; letter-spacing: -.03em; padding-bottom: .08em; }
.co-sub { margin: 10px 0 26px; font-weight: 300; color: var(--ink-2); line-height: 1.5; }
.co-mono { font-family: var(--mono); letter-spacing: .03em; }
.co-amounts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.co-amount { min-height: 56px; border-radius: 14px; background: var(--field); border: 1px solid var(--line-strong); color: var(--ink); font-family: var(--mono); font-size: 1.05rem; font-weight: 500; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s, transform .12s; }
.co-amount--other { font-family: var(--font); font-size: .9rem; font-weight: 400; color: var(--ink-2); }
.co-amount:hover { border-color: rgba(255, 178, 36, .55); }
.co-amount:active { transform: scale(.97); }
.co-amount[aria-pressed="true"] { border-color: var(--amber); background: rgba(255, 178, 36, .1); color: var(--amber); }
.co-amount:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.co-havecode { justify-self: start; font-size: .95rem; font-weight: 300; }
#coCodeField { display: grid; gap: 8px; }
#coCodeField[hidden] { display: none; }
.input--bad { border-color: rgba(242, 85, 90, .8); }
.co-ok { font-weight: 300; font-size: .9rem; color: var(--ok); }
.co-sum { margin: 8px 0 0; border-top: 1px solid var(--line); }
.co-sum div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 300; color: var(--ink-2); }
.co-sum dd { margin: 0; font-family: var(--mono); color: var(--ink); white-space: nowrap; }
.co-sum-bonus dt, .co-sum-bonus dd { color: var(--amber); }
.co-sum-total { font-weight: 500; }
.co-sum-total dt { color: var(--ink); font-weight: 500; }
.co-sum-total dd { font-size: 1.25rem; }
.co-mins { min-height: 1.4em; margin-top: 10px; font-weight: 300; font-size: .9rem; color: var(--ink-3); }
.co-go { width: 100%; margin-top: 16px; }
.co-change { display: block; margin-top: 16px; font-weight: 300; }
.co-fine { margin-top: 14px; }
.co-pay { min-width: 0; border-radius: 20px; overflow: hidden; background: #fff; }

/* ---------- Earn: referral code and affiliate program ---------- */
.er-code { font-family: var(--mono); font-weight: 500; font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.05; letter-spacing: .02em; color: var(--amber); overflow-wrap: anywhere; }
.er-link { font-size: .9rem; color: var(--ink-2); overflow-wrap: anywhere; }
.er-share { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 300; }
.er-check { display: flex; align-items: flex-start; gap: 10px; font-weight: 300; color: var(--ink-2); cursor: pointer; }
.er-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--amber); }
.er-form { margin-top: 28px; }
.er-area { min-height: 92px; padding: 14px 18px; resize: vertical; line-height: 1.45; }
.er-caption { font-weight: 300; line-height: 1.5; color: var(--ink-2); white-space: normal; }

/* ---------- Email verification reminder and lock ---------- */
.px-verify { margin-bottom: 24px; }
.px-verify-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 24px; }
.px-verify strong { font-weight: 500; color: var(--ink); }

/* ---------- Have a code: right-aligned, with the amber neon edge ---------- */
.co-codewrap { display: flex; justify-content: flex-end; }
.co-havecode {
  padding: 9px 18px; border-radius: 999px; border: 1px solid rgba(255, 178, 36, .75); background: rgba(255, 178, 36, .06);
  color: var(--amber); font-family: var(--font); font-size: .9rem; font-weight: 400; text-decoration: none; cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 178, 36, .35), inset 0 0 8px rgba(255, 178, 36, .1); transition: box-shadow .2s, background-color .2s;
}
.co-havecode:hover { background: rgba(255, 178, 36, .12); box-shadow: 0 0 18px rgba(255, 178, 36, .55), inset 0 0 10px rgba(255, 178, 36, .16); }
.co-havecode:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* ---------- Payment beside the summary, from the moment the page opens ---------- */
@media (min-width: 960px) { .co-main { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); } }
.co-pay { min-height: 420px; position: relative; transition: opacity .15s; }
.co-pay.is-stale #coStripe { opacity: .35; pointer-events: none; }
.co-pay-note { display: flex; align-items: center; justify-content: center; min-height: 420px; padding: 32px; text-align: center; color: #5B6166; font-weight: 300; }
.co-pay-note[hidden] { display: none; }

/* ---------- Continue with Google ---------- */
.google-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 52px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: var(--field); color: var(--ink);
  font-family: var(--font); font-size: 1rem; font-weight: 400; text-decoration: none; transition: border-color .15s, background-color .15s;
}
.google-btn:hover { border-color: var(--ink-3); background: #18181A; }
.google-btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.google-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.google-or::before, .google-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.google-code { margin: 0 0 24px; font-family: var(--mono); font-size: clamp(1.5rem, 6vw, 2.2rem); font-weight: 500; letter-spacing: .06em; color: var(--amber); user-select: all; overflow-wrap: anywhere; }

/* ---------- After a download: sign-up and sign-in show the install steps ---------- */
.auth-card--wide { max-width: 560px; }
.dl-started { margin: 6px 0 28px; padding: 20px 20px 18px; border: 1px solid var(--line-strong); border-radius: 20px; background: rgba(255, 255, 255, .02); }
.dl-started-k { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
.dl-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px rgba(255, 178, 36, .6); }
.dl-started-t { margin: 10px 0 6px; font-size: 1.25rem; font-weight: 500; line-height: 1.25; }
.dl-started-d { font-weight: 300; line-height: 1.55; color: var(--ink-2); }
.dl-steps { margin: 14px 0 0; padding-left: 1.3em; list-style: decimal; display: grid; gap: 8px; font-weight: 300; line-height: 1.5; color: var(--ink-2); }
.dl-steps strong { font-weight: 500; color: var(--ink); }
.dl-steps code, .dl-cmd code { font-family: var(--mono); font-size: .84em; color: var(--ink); }
.dl-cmds { display: grid; gap: 8px; margin: 10px 0 0; }
.dl-cmd { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 8px 8px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); }
.dl-cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; }
.dl-copy { flex: none; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: none; color: var(--ink-2); font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.dl-copy:hover { color: var(--ink); border-color: var(--ink-3); }
.dl-started-links { margin-top: 14px; font-weight: 300; font-size: .9rem; color: var(--ink-3); }

/* ---------- Sign in to the app: the one-time code ---------- */
.app-code { margin-bottom: 10px; font-size: clamp(2rem, 9vw, 3rem); }
.app-code.is-expired { color: var(--ink-3); text-decoration: line-through; }
.app-code-time { font-weight: 300; color: var(--ink-2); }
.app-code-meter { margin: 12px auto 28px; }
.app-code-steps { margin: 36px auto 0; max-width: 420px; padding-left: 1.3em; list-style: decimal; display: grid; gap: 10px; text-align: left; font-weight: 300; line-height: 1.5; color: var(--ink-2); }
.app-code-steps strong { font-weight: 500; color: var(--ink); }
.app-code-fine { margin-top: 28px; font-size: .92rem; }

/* ---------- Dictate: Polished in the browser (portal/dictate, landing/portal/dictate.js) ----------
   One big mic on a panel. data-state on the panel (idle, starting, recording, working) drives it.
   Amber is the live signal only: the ring and halo while recording. The halo grows with the voice (--lvl). */
.dc { display: grid; gap: 20px; margin-bottom: 56px; }
/* The stage: a lit surface with a hairline that catches the light at the top, a soft pool of light
   behind the mic, and an amber wash while it records. */
.dc-stage {
  position: relative; isolation: isolate; overflow: hidden; gap: 28px;
  border: 1px solid transparent;
  background:
    radial-gradient(64% 58% at 50% 56%, rgba(215, 226, 234, .065), transparent 72%) padding-box,
    linear-gradient(180deg, #141518 0%, #0E0E10 100%) padding-box,
    linear-gradient(180deg, rgba(215, 226, 234, .34), rgba(215, 226, 234, .08) 42%, rgba(215, 226, 234, .14)) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 40px 90px -50px rgba(0, 0, 0, .9);
}
.dc-stage::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(50% 46% at 50% 56%, rgba(255, 178, 36, .11), transparent 70%);
  transition: opacity .4s var(--ease-out);
}
.dc-stage[data-state="recording"]::before { opacity: 1; }
.dc-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
.dc-credit { font-size: .85rem; color: var(--ink-2); }
.dc-credit strong { font-weight: 500; color: var(--ink); }
.dc-credit-out { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: #FF8F8F; }
.dc-credit-out::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); }

/* The two switches (translate, prompt) stack on the right of the credit line. */
.dc-switches { display: flex; flex-direction: column; align-items: flex-start; }
.dc-switch {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0;
  background: none; border: 0; color: var(--ink-2); font-family: var(--font); font-size: .95rem; font-weight: 300; cursor: pointer;
  transition: color .2s;
}
.dc-switch-k {
  position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--field); transition: background-color .2s, border-color .2s;
}
.dc-switch-k::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ink-3); transition: transform .2s var(--ease-out), background-color .2s;
}
.dc-switch:hover { color: var(--ink); }
.dc-switch[aria-checked="true"] { color: var(--ink); }
.dc-switch[aria-checked="true"] .dc-switch-k { background: var(--ink); border-color: var(--ink); }
.dc-switch[aria-checked="true"] .dc-switch-k::after { transform: translateX(18px); background: var(--bg); }
.dc-switch:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 10px; }

.dc-center { display: grid; justify-items: center; gap: 14px; padding: 8px 0 4px; text-align: center; }
/* The mic: a raised dial with a bevelled rim, inside two quiet rings that light up while recording. */
.dc-mic {
  --lvl: 0;
  position: relative; width: 136px; height: 136px; margin: 30px 0 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid transparent; color: var(--ink); cursor: pointer;
  background:
    radial-gradient(circle at 50% 28%, #23252A 0%, #141518 62%, #0F1012 100%) padding-box,
    linear-gradient(165deg, rgba(215, 226, 234, .62), rgba(215, 226, 234, .1) 48%, rgba(215, 226, 234, .3)) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), inset 0 -14px 28px rgba(0, 0, 0, .55), 0 22px 44px -20px rgba(0, 0, 0, .95);
  transition: border-color .2s, color .2s, opacity .3s var(--ease-out), transform .16s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.dc-mic::before, .dc-mic::after {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(215, 226, 234, .1); transition: border-color .3s var(--ease-out), transform .3s var(--ease-out);
}
.dc-mic::before { inset: -16px; }
.dc-mic::after { inset: -34px; border-color: rgba(215, 226, 234, .05); }
@media (min-width: 640px) { .dc-mic { width: 168px; height: 168px; } }
.dc-mic:hover::before { border-color: rgba(215, 226, 234, .22); }
.dc-mic:hover::after { border-color: rgba(215, 226, 234, .1); }
[data-state="recording"] .dc-mic::before { border-color: rgba(255, 178, 36, .35); transform: scale(calc(1 + var(--lvl) * .06)); }
[data-state="recording"] .dc-mic::after { border-color: rgba(255, 178, 36, .16); transform: scale(calc(1 + var(--lvl) * .1)); }
.dc-mic:active { transform: scale(.97); }
.dc-mic:focus-visible { outline: 2px solid var(--amber); outline-offset: 6px; }
.dc-mic:disabled { cursor: progress; }
.dc-mic svg { width: 42px; height: 42px; }
.dc-ico-stop, .dc-ico-wait { display: none; }
.dc-ico-wait {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: px-spin .8s linear infinite;
}
.dc-mic-halo {
  position: absolute; inset: -2px; border-radius: 50%; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 calc(var(--lvl) * 26px) rgba(255, 178, 36, .12), 0 0 calc(16px + var(--lvl) * 44px) rgba(255, 178, 36, .38);
  transition: opacity .2s;
}
[data-state="starting"] .dc-mic { border-color: var(--ink-3); }
[data-state="recording"] .dc-mic { border-color: var(--amber); color: var(--amber); }
[data-state="recording"] .dc-mic-halo { opacity: 1; }
[data-state="recording"] .dc-ico-mic, [data-state="working"] .dc-ico-mic { display: none; }
[data-state="recording"] .dc-ico-stop { display: block; }
[data-state="working"] .dc-ico-wait { display: block; }

.dc-clock { font-size: 1.5rem; letter-spacing: .02em; color: var(--ink-3); }
[data-state="recording"] .dc-clock { color: var(--ink); }
.dc-status { min-height: 1.5em; max-width: 46ch; font-weight: 400; font-size: 1.1rem; line-height: 1.4; color: var(--ink); }
/* While polishing: the step's name catches the light (as the extension's pill does), with what it is
   doing and four bars for how far along, in place of the key bubbles. */
.dc-work { display: none; flex-direction: column; align-items: center; gap: 12px; min-height: 40px; }
[data-state="working"] .dc-work { display: flex; }
[data-state="working"] .dc-hint { display: none; }
.dc-work-d { font-weight: 300; font-size: .9rem; color: var(--ink-2); }
.dc-work-bars { display: inline-flex; gap: 5px; }
.dc-work-bars i { display: block; width: 22px; height: 3px; border-radius: 2px; background: rgba(215, 226, 234, .16); transition: background-color .3s ease; }
.dc-work-bars i.is-done { background: rgba(215, 226, 234, .7); }
.dc-work-bars i.is-now { background: var(--amber); animation: dc-beat 1.2s ease-in-out infinite; }
/* The step's name catches the light; on the words themselves, so it travels with them as they swap. */
[data-state="working"] .dc-status .at-swap-in {
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 38%, #FFFFFF 50%, var(--ink) 62%, var(--ink) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: dc-shine 1.8s linear infinite;
}
@keyframes dc-shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@keyframes dc-beat { 50% { opacity: .45; } }

/* The words change with polish-steps.js swap(): its motion is in the script, the same everywhere. */
@media (prefers-reduced-motion: reduce) {
  [data-state="working"] .dc-status .at-swap-in { animation: none; background: none; color: var(--ink); }
  .dc-work-bars i.is-now { animation: none; }
}

/* Under the mic: three bubbles, each a key (or the mouse) and what it does. */
.dc-hint { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 4px 0 0; padding: 0; list-style: none; }
.dc-key {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 5px 16px 5px 5px;
  border: 1px solid var(--line); border-radius: 999px;
  background: linear-gradient(180deg, rgba(215, 226, 234, .055), rgba(215, 226, 234, .015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  font-weight: 300; font-size: .85rem; line-height: 1.2; color: var(--ink-2);
}
/* home.css draws kbd as a white key for the light chapter; on the dark panel it is a raised dark key. */
.dc-key-cap {
  display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 10px; box-sizing: border-box;
  border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 999px;
  background: linear-gradient(180deg, #23262A, #16181B);
  font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .04em; color: var(--ink);
}
.dc-key-cap--ico { width: 30px; padding: 0; }
.dc-key-cap--ico svg { width: 16px; height: 16px; }
/* While recording, the key that finishes it is the live one. */
[data-state="recording"] .dc-key:first-child .dc-key-cap,
[data-state="recording"] .dc-key:nth-child(2) .dc-key-cap { border-color: rgba(255, 178, 36, .55); color: var(--amber); }

/* A tool page: a shorter header, so the mic sits above the fold on a 720px laptop screen. */
.px--tool .px-head { gap: 12px; padding: 28px 0 24px; }
@media (min-width: 768px) { .px--tool .px-head { padding: 40px 0 32px; } }
.px--tool .px-title { font-size: clamp(2.4rem, 7vw, 76px); }
@media (hover: none) { .dc-hint { display: none; } }

.dc-note .px-panel-t { margin-top: 12px; }

/* ---------- Out of Polished credit: inside the stage, under the mic ---------- */
.dc-stage[data-credit="empty"] .dc-mic { opacity: .38; }
.dc-stage[data-credit="empty"] .dc-mic:hover::before { border-color: rgba(215, 226, 234, .1); }
.dc-stage[data-credit="empty"] .dc-clock,
.dc-stage[data-credit="empty"] .dc-hint { display: none; }
.dc-stage[data-credit="empty"] .dc-status { font-weight: 500; font-size: clamp(1.3rem, 2.6vw, 1.6rem); }
.dc-empty { display: grid; justify-items: center; gap: 22px; max-width: 600px; }
.dc-empty-d { max-width: 50ch; font-weight: 300; line-height: 1.55; color: var(--ink-2); }
.dc-empty-btns { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; }
.dc-empty-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dc-empty-facts li {
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
}
.dc-empty-fine { font-weight: 300; font-size: .9rem; line-height: 1.5; color: var(--ink-3); }

/* The neon Add credit button: the amber pill with a lit edge and a glow that breathes slowly. */
.dc-neon {
  --glow: 0 0 0 1px rgba(255, 178, 36, .45), 0 0 22px rgba(255, 178, 36, .5), 0 0 60px rgba(255, 178, 36, .24);
  box-shadow: var(--glow), inset 4px 4px 12px rgba(255, 228, 176, .9);
}
.dc-neon svg { margin-right: 10px; }
.dc-neon:hover { box-shadow: 0 0 0 1px rgba(255, 178, 36, .6), 0 0 30px rgba(255, 178, 36, .62), 0 0 80px rgba(255, 178, 36, .32), inset 4px 4px 12px rgba(255, 228, 176, .9); }
@media (prefers-reduced-motion: no-preference) {
  .dc-neon { animation: dc-breathe 2.8s ease-in-out infinite; }
  .dc-neon:hover { animation: none; }
  .dc-neon.is-nudged { animation: dc-nudge .5s var(--ease-out), dc-breathe 2.8s ease-in-out .5s infinite; }
}
@keyframes dc-breathe {
  0%, 100% { box-shadow: var(--glow), inset 4px 4px 12px rgba(255, 228, 176, .9); }
  50% { box-shadow: 0 0 0 1px rgba(255, 178, 36, .55), 0 0 30px rgba(255, 178, 36, .62), 0 0 76px rgba(255, 178, 36, .3), inset 4px 4px 12px rgba(255, 228, 176, .9); }
}
@keyframes dc-nudge { 0%, 100% { transform: scale(1); } 35% { transform: scale(1.06); } }

/* ---------- Copy buttons: the copy icon turns into a tick, the label into "Copied" ---------- */
.dc-copy { min-width: 9.5rem; }
.dc-copy-ico { position: relative; flex: none; width: 16px; height: 16px; margin-right: 9px; }
.dc-copy-ico .dc-copy-i {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), filter .2s var(--ease-out);
}
.dc-copy-i--ok { opacity: 0; transform: scale(.5); filter: blur(2px); }
[data-copied="true"] .dc-copy-i--copy { opacity: 0; transform: scale(.5); filter: blur(2px); }
[data-copied="true"] .dc-copy-i--ok { opacity: 1; transform: none; filter: none; }
.dc-copy-sm { display: inline-flex; align-items: center; transition: color .2s, border-color .2s; }
.dc-copy-sm .dc-copy-ico { width: 13px; height: 13px; margin-right: 6px; }
.dc-copy-sm[data-copied="true"] { color: var(--ok); border-color: rgba(52, 213, 138, .5); }
@media (prefers-reduced-motion: reduce) { .dc-copy-ico .dc-copy-i { transition: none; } }

.dc-result { display: grid; gap: 14px; padding: 24px 22px; border: 2px solid var(--line-strong); border-radius: 28px; transition: border-color .2s; }
@media (min-width: 640px) { .dc-result { padding: 28px 36px; border-radius: 32px; } }
.dc-result:focus-within { border-color: var(--ink-3); }
.dc-result-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dc-text {
  width: 100%; min-height: 2.9em; padding: 0; resize: none; overflow: hidden;
  background: none; border: 0; color: var(--ink);
  font-family: var(--font); font-weight: 300; font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.45;
}
.dc-text:focus { outline: none; }
.dc-kept { font-weight: 300; font-size: .9rem; line-height: 1.5; color: var(--ink-3); }
.dc-result-btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
/* Before and after: two columns on a wide screen, made to be screenshotted. */
.dc-ba { display: grid; gap: 20px; margin-top: 16px; padding: 24px; border: 1px solid var(--line-strong); border-radius: 24px; background: rgba(215, 226, 234, .03); }
@media (min-width: 760px) { .dc-ba { grid-template-columns: 1fr 1fr; gap: 28px; } }
.dc-ba-col { display: grid; gap: 8px; align-content: start; }
.dc-ba-said { font-weight: 300; font-style: italic; line-height: 1.55; color: var(--ink-2); overflow-wrap: anywhere; }
.dc-ba-wrote { font-size: 1.15rem; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.dc-ba-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.dc-next { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 300; font-size: .95rem; line-height: 1.5; color: var(--ink-2); }
/* Stacked offers (desktop app, Chrome extension) on Dictate and Overview. */
.dc-ways { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
/* Where else it works (Dictate, Overview): the platform's own mark beside its tag, and on each
   download button, so a Mac, Linux or Chrome user finds theirs at a glance. */
.way-marks { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; max-width: 100%; }
.way-mark { width: 22px; height: 22px; flex: none; color: var(--ink); }
.way-os-ico { width: 1.25em; height: 1.25em; margin-right: 9px; flex: none; }
.way-os[hidden] { display: none; }
/* Three buttons do not fit beside the copy: the desktop panel puts them under it. */
@media (min-width: 900px) { .px-panel--split[data-way="app"] { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 20px; } }
.dc-result-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  padding-top: 14px; border-top: 1px solid var(--line);
}
.dc-meta { font-size: .8rem; color: var(--ink-3); }
@media (prefers-reduced-motion: no-preference) {
  .dc-result.is-new { animation: px-rise .45s var(--ease-out) both; }
}

.dc-hist .px-row-t {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-weight: 300; line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
  .dc-mic, .dc-mic::before, .dc-mic::after, .dc-stage::before, .dc-switch-k, .dc-switch-k::after, .dc-mic-halo { transition: none; }
  .dc-mic-halo { box-shadow: 0 0 24px rgba(255, 178, 36, .3); }
  .dc-ico-wait { animation-duration: 1.6s; }
}
