/* ==========================================================================
   3CX Training — site styles
   ========================================================================== */

:root {
  --brand: #0597d4;
  --brand-600: #0485bc;
  --brand-700: #036b99;
  --brand-50: #e7f5fc;
  --navy: #0d2340;
  --navy-2: #13304f;

  --ink: #132033;
  --ink-2: #44546a;
  --ink-3: #6b7b90;
  --bg: #f3f6fa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --line: #e0e7ef;

  --ok: #1f9d55;
  --warn: #e69a12;
  --bad: #e5484d;
  --hint: #ffb020;

  --st-available: #36b213;
  --st-away: #ff9a0c;
  --st-dnd: #e05b4a;
  --st-lunch: #2fbbb3;
  --st-trip: #1d8fd2;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 6px 20px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 10px 40px rgba(16, 24, 40, 0.16);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --ink: #e6edf6;
    --ink-2: #b3c0d0;
    --ink-3: #8697ab;
    --bg: #0a1220;
    --surface: #111b2b;
    --surface-2: #0e1726;
    --line: #22324a;
    --brand-50: #0b2a3e;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --ink: #e6edf6;
  --ink-2: #b3c0d0;
  --ink-3: #8697ab;
  --bg: #0a1220;
  --surface: #111b2b;
  --surface-2: #0e1726;
  --line: #22324a;
  --brand-50: #0b2a3e;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.25);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--brand-600);
}
h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0;
}
button {
  font: inherit;
}
kbd {
  display: inline-block;
  padding: 0 0.45em;
  border-radius: 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  background: var(--surface);
  font: 600 0.82em/1.6 var(--font);
  color: var(--ink);
  white-space: nowrap;
}
code {
  font: 600 0.9em ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  background: var(--brand-50);
  color: var(--brand-700);
  padding: 0.05em 0.4em;
  border-radius: 5px;
}
:root[data-theme='dark'] code,
:root:not([data-theme='light']) code {
  color: inherit;
}
.ic {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.wrap {
  width: min(1240px, 100% - 32px);
  margin-inline: auto;
}
.noscript {
  padding: 40px;
  text-align: center;
}

/* ---------- Buttons / chips / segmented ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:active {
  transform: translateY(1px);
}
.btn.sm {
  height: 34px;
  padding: 0 12px;
  font-size: 14px;
}
.btn.primary {
  background: var(--brand);
  color: #fff;
}
.btn.primary:hover {
  background: var(--brand-600);
}
.btn.ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn.ghost:hover {
  border-color: var(--brand);
  color: var(--brand-600);
}
.btn .ic {
  font-size: 18px;
}
.link {
  background: none;
  border: 0;
  color: var(--brand-600);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.icon-btn .ic {
  font-size: 17px;
}
.icon-btn.primary {
  width: 46px;
  height: 46px;
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.icon-btn.primary .ic {
  font-size: 20px;
}

.seg {
  display: inline-flex;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  gap: 2px;
}
.seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
.seg-btn .ic {
  font-size: 16px;
}
.seg-btn.is-on {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(5, 151, 212, 0.35);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 14px;
}
.chip .ic {
  font-size: 15px;
  opacity: 0.85;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

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

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-row {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
  flex-wrap: wrap;
  padding-block: 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  height: 36px;
  padding: 0 10px;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
}
.brand-text {
  font-weight: 700;
  font-size: 18px;
}
.head-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.head-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.head-links a:hover,
.head-links a.is-on {
  background: var(--brand-50);
  color: var(--brand-600);
}
.dev-pref {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px 0 10px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink-2);
}
.dev-pref select {
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 600 14px var(--font);
  height: 36px;
  cursor: pointer;
}
.site-foot {
  margin-top: 64px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 14px;
}
.foot-row {
  display: grid;
  gap: 6px;
}
.foot-row .tm {
  font-size: 12px;
}

/* ---------- Home ---------- */

.hero {
  background: radial-gradient(1200px 400px at 85% -10%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(120deg, var(--brand-700), var(--brand) 55%, #20b3ea);
  color: #fff;
  padding: 44px 0 52px;
}
.hero-eng {
  background: radial-gradient(1200px 400px at 85% -10%, rgba(5, 151, 212, 0.35), transparent 60%),
    linear-gradient(120deg, #081a31, var(--navy) 50%, #12406a);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}
.hero h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero .lead {
  max-width: 640px;
  font-size: 18px;
  margin: 12px 0 0;
  opacity: 0.95;
}
.hero-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 15px;
}
.hero-card small {
  opacity: 0.8;
}
.ring {
  --p: 0;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#fff calc(var(--p) * 1%), rgba(255, 255, 255, 0.22) 0);
}
.ring span {
  display: flex;
  align-items: baseline;
  justify-content: center;
  padding-top: 18px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--brand-700);
  font-weight: 800;
  font-size: 18px;
}
.hero-eng .ring span {
  background: var(--navy);
}
.ring small {
  font-size: 11px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: -24px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 320px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--ink-3);
}
.search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-50);
}
.search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font: 16px var(--font);
  color: var(--ink);
  min-width: 0;
}
.how {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-3);
  font-size: 14px;
  flex-wrap: wrap;
}
.how span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.how b {
  color: var(--ink);
}
.how .ic {
  color: var(--brand);
}

.group {
  margin-top: 36px;
}
.group h2,
.tier-split {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  margin-bottom: 14px;
}
.group h2 .ic {
  color: var(--brand);
}
.tier-split {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 2px dashed var(--line);
  flex-wrap: wrap;
}
.tier-split small {
  font-weight: 500;
  color: var(--ink-3);
  font-size: 14px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}
.card {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  box-shadow: var(--shadow-lg);
}
.card-ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand-600);
  font-size: 22px;
}
.card.is-done .card-ic {
  background: color-mix(in srgb, var(--ok) 14%, transparent);
  color: var(--ok);
}
.card-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.card-body b {
  font-size: 16px;
}
.card-body small {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.45;
}
.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-3);
}
.dev-badge {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 15px;
}
.dev-badge.is-pref {
  color: var(--brand-600);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
}
.dur,
.tick {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.dur {
  margin-left: 4px;
}
.tick {
  margin-left: auto;
  color: var(--ok);
  font-weight: 700;
}
.tick.soft {
  color: var(--brand-600);
}
.empty {
  padding: 40px 0;
  color: var(--ink-3);
  text-align: center;
}

/* ---------- Lesson ---------- */

.lesson {
  padding-top: 18px;
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-3);
}
.crumbs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
}
.crumbs span::before {
  content: '/';
  margin-right: 10px;
  color: var(--line);
}
.lesson-head {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  justify-content: space-between;
  margin: 10px 0 18px;
  flex-wrap: wrap;
}
.lesson-head h1 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.015em;
}
.lesson-head .lead {
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: 17px;
  max-width: 760px;
}
.lesson-actions {
  display: flex;
  gap: 8px;
}
.dev-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.dev-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}
.dev-tab .ic {
  font-size: 19px;
}
.dev-tab .sm {
  display: none;
}
.dev-tab.is-on {
  border-color: var(--brand);
  background: var(--brand-50);
  color: var(--brand-700);
  box-shadow: inset 0 0 0 1px var(--brand);
}
:root[data-theme='dark'] .dev-tab.is-on {
  color: #8fd6f7;
}
.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff6e5;
  color: #6b4a00;
  border: 1px solid #f7deaa;
  font-size: 15px;
}
.notice .ic {
  margin-top: 3px;
}
.notice.soft {
  background: var(--brand-50);
  border-color: color-mix(in srgb, var(--brand) 25%, transparent);
  color: var(--ink);
}
.notice.soft .ic {
  color: var(--brand);
}

.player {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}
.player-main {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 12px;
  min-width: 0;
}
.mode-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.transport {
  display: flex;
  align-items: center;
  gap: 8px;
}
.speed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  font-size: 14px;
  color: var(--ink-3);
}
.speed select {
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: 600 14px var(--font);
  padding: 0 6px;
}
.stage-mount {
  position: relative;
  border-radius: 14px;
  background: radial-gradient(900px 400px at 50% 0%, #ffffff, transparent 70%), linear-gradient(180deg, #e9eef5, #dfe6ef);
  overflow: hidden;
  min-height: 240px;
}
:root[data-theme='dark'] .stage-mount {
  background: radial-gradient(900px 400px at 50% 0%, #1d2c42, transparent 70%), linear-gradient(180deg, #121d2e, #0c1522);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .stage-mount {
    background: radial-gradient(900px 400px at 50% 0%, #1d2c42, transparent 70%), linear-gradient(180deg, #121d2e, #0c1522);
  }
}
.caption {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 6px 4px;
  font-size: 17px;
}
.cap-n {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 700;
  font-size: 13px;
}
:root[data-theme='dark'] .cap-n {
  color: #8fd6f7;
}
.cap-t {
  flex: 1;
}
.caption.is-event .cap-t {
  color: var(--ink-2);
  font-style: italic;
}
.your-turn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--hint);
  color: #3d2800;
  font-size: 12px;
  font-weight: 800;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: 2px;
}
.feedback {
  display: none;
  gap: 10px;
  align-items: flex-start;
  margin: 6px 6px 4px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 15px;
}
.feedback.show {
  display: flex;
  animation: pop 0.25s ease-out;
}
.feedback .ic {
  margin-top: 3px;
}
.feedback.wrong {
  background: #fdecee;
  color: #8a1c23;
}
.feedback.hint {
  background: #fff5df;
  color: #6b4a00;
}
.feedback.info {
  background: var(--brand-50);
  color: var(--ink);
}

.steps-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
  max-height: calc(100vh - 110px);
  overflow: auto;
  position: sticky;
  top: 84px;
}
.steps-panel h2 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 18px;
  margin-bottom: 10px;
}
.steps-panel h2 small {
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 600;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.steps li {
  display: flex;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 15px;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.2s;
}
.steps li:hover {
  background: var(--surface-2);
}
.steps .n {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-3);
  margin-top: 1px;
}
.steps li.is-event .t {
  font-style: italic;
}
.steps li.is-past .n {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}
.steps li.is-on {
  background: var(--brand-50);
  color: var(--ink);
}
.steps li.is-on .n {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}
.tips {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.tips h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  margin-bottom: 8px;
}
.tips h3 .ic {
  color: var(--warn);
}
.tips ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--ink-2);
}
.codes-mini dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  margin: 0;
  font-size: 14px;
}
.codes-mini dd {
  margin: 0;
  color: var(--ink-2);
}
.codes-mini h3 .ic {
  color: var(--brand);
}
.next-lesson {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
}
.next-lesson small {
  color: var(--ink-3);
}
.next-lesson b {
  flex: 1;
}
.next-lesson:hover {
  border-color: var(--brand);
}

/* done overlay */
.done-card {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  backdrop-filter: blur(3px);
  animation: fade 0.3s ease-out;
  z-index: 5;
}
.done-inner {
  max-width: 460px;
  text-align: center;
  padding: 26px 24px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  animation: pop 0.35s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.done-inner h3 {
  font-size: 22px;
  margin: 10px 0 6px;
}
.done-inner p {
  margin: 0 0 16px;
  color: var(--ink-2);
}
.done-ic {
  display: inline-grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand);
  font-size: 30px;
}
.done-ic.ok {
  background: color-mix(in srgb, var(--ok) 15%, transparent);
  color: var(--ok);
}
.done-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 6;
}
.confetti i {
  position: absolute;
  top: -12px;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  animation: fall 2.2s cubic-bezier(0.25, 0.6, 0.5, 1) forwards;
}

/* ---------- Stage / pointer ---------- */

.stage {
  display: flex;
  justify-content: center;
  padding: 20px 10px;
}
.stage-fit {
  position: relative;
}
.stage-scale {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
}
.stage-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
.pointer {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transition-property: transform, opacity;
  transition-timing-function: cubic-bezier(0.45, 0, 0.2, 1);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
  will-change: transform;
}
.pointer.show {
  opacity: 1;
}
.pointer svg {
  display: block;
  transition: transform 0.12s;
  transform-origin: 40% 10%;
}
.pointer.tap svg {
  transform: scale(0.88);
}
.pointer-finger svg {
  width: 38px;
  margin-left: -16px;
  margin-top: -3px;
}
.pointer-mouse svg {
  width: 22px;
  margin-left: -2px;
  margin-top: -2px;
}
.ripple {
  position: absolute;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  border: 3px solid var(--brand);
  animation: ripple 0.6s ease-out forwards;
}
.hint-ring {
  position: absolute;
  border-radius: 12px;
  border: 3px solid var(--hint);
  box-shadow: 0 0 0 4px rgba(255, 176, 32, 0.3);
  opacity: 0;
  transition: opacity 0.2s;
}
.hint-ring.show {
  opacity: 1;
  animation: pulse 1.1s ease-in-out infinite;
}
.is-wrong {
  animation: shake 0.4s;
}

/* ==========================================================================
   Devices — shared
   ========================================================================== */

.dev {
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--font);
}
.dev button,
.dev [data-target] {
  cursor: pointer;
}
.anim-in {
  animation: screenIn 0.28s ease-out;
}

/* ---------- Desk phone ---------- */

.dev-desk {
  width: 800px;
  height: 500px;
}
.dp-cradle {
  position: absolute;
  left: 18px;
  top: 34px;
  width: 108px;
  height: 438px;
  border-radius: 34px;
  background: linear-gradient(90deg, #121418, #1e2227);
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.6);
}
.dp-handset {
  position: absolute;
  left: 8px;
  top: 22px;
  width: 128px;
  height: 462px;
  z-index: 2;
  transition: transform 0.45s cubic-bezier(0.3, 1.2, 0.4, 1), filter 0.3s;
  filter: drop-shadow(4px 8px 10px rgba(0, 0, 0, 0.35));
}
.dp-handset svg {
  width: 100%;
  height: 100%;
}
.dev-desk.offhook .dp-handset {
  transform: translate(-30px, -40px) rotate(-10deg);
  filter: drop-shadow(16px 26px 22px rgba(0, 0, 0, 0.35));
}
.dp-chassis {
  position: absolute;
  left: 150px;
  top: 0;
  width: 650px;
  height: 500px;
  padding: 18px 22px 12px;
  border-radius: 30px;
  background: linear-gradient(165deg, #42484f 0%, #2d3238 45%, #23272c 100%);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #e9edf2;
}
.dp-brand {
  position: absolute;
  top: 8px;
  left: 26px;
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 11px;
  color: #98a2ad;
  letter-spacing: 0.08em;
}
.dp-brand b {
  color: #c9d1da;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.dp-power {
  position: absolute;
  top: 12px;
  right: 24px;
}
.dp-top {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.dp-linecol {
  display: flex;
  flex-direction: column;
  padding-top: 34px;
}
.dev-desk button {
  appearance: none;
  border: 0;
  color: #e9edf2;
  background: linear-gradient(#41474f, #2c3137);
  box-shadow: 0 2px 0 #14171a, inset 0 1px 0 rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  padding: 0;
  transition: transform 0.08s, box-shadow 0.08s, filter 0.08s;
}
.dev-desk button:hover {
  filter: brightness(1.12);
}
.dev-desk button.is-pressed {
  transform: translateY(2px);
  box-shadow: 0 0 0 #14171a, inset 0 2px 5px rgba(0, 0, 0, 0.45);
  filter: brightness(1.3);
}
.dev-desk button.is-wrong,
.dev-dect button.is-wrong {
  box-shadow: 0 0 0 3px var(--bad);
}
.dp-line {
  position: relative;
  width: 34px;
  height: 26px;
  margin: 11px 0;
}
.dp-line .led {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -3px 0 0 -3px;
}
.led {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #15181c;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.6);
}
.led.green {
  background: #3ef08a;
  box-shadow: 0 0 8px #3ef08a;
}
.led.red {
  background: #ff4d5a;
  box-shadow: 0 0 8px #ff4d5a;
}
.led.orange {
  background: #ffb020;
  box-shadow: 0 0 8px #ffb020;
}
.led.blink-green {
  background: #3ef08a;
  box-shadow: 0 0 8px #3ef08a;
  animation: blink 0.8s steps(1) infinite;
}
.led.blink-red {
  background: #ff4d5a;
  box-shadow: 0 0 8px #ff4d5a;
  animation: blink 0.8s steps(1) infinite;
}
.dp-bezel {
  padding: 8px;
  border-radius: 12px;
  background: #0a0c0f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 1px 0 rgba(255, 255, 255, 0.08);
}
.dp-screen {
  width: 440px;
  height: 250px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 4px;
  background: radial-gradient(500px 220px at 50% 0%, #17406b, transparent), linear-gradient(180deg, #0d2747, #071628);
  color: #fff;
  font-size: 13px;
}
.dp-head {
  height: 26px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
}
.dp-acct {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}
.dp-flags {
  display: inline-flex;
  gap: 6px;
  margin-left: auto;
  align-items: center;
}
.dp-flags sup {
  font-size: 9px;
  margin-left: -3px;
}
.dp-flags .ic {
  color: #ffd166;
}
.dp-clock {
  font-variant-numeric: tabular-nums;
}
.dp-mid {
  flex: 1;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 92px;
  min-height: 0;
}
.dp-mid.full {
  grid-template-columns: 0 minmax(0, 1fr) 0;
}
.dp-mid.full .dp-labels {
  visibility: hidden;
}
.dp-labels {
  display: grid;
  grid-template-rows: repeat(4, 48px);
  background: rgba(0, 0, 0, 0.18);
}
.dp-lbl {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  font-size: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  white-space: nowrap;
}
.dp-lbl span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.dp-labels-r .dp-lbl {
  flex-direction: row-reverse;
  text-align: right;
}
.dp-lbl::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
}
.dp-lbl:empty::before {
  display: none;
}
.dp-lbl.led-green::before {
  background: #3ef08a;
}
.dp-lbl.led-red::before {
  background: #ff4d5a;
}
.dp-lbl.led-blink-red::before {
  background: #ff4d5a;
  animation: blink 0.8s steps(1) infinite;
}
.dp-lbl.led-blink-green::before {
  background: #3ef08a;
  animation: blink 0.8s steps(1) infinite;
}
.dp-lbl.led-orange::before {
  background: #ffb020;
}
.dp-lbl .ic {
  font-size: 12px;
  opacity: 0.8;
}
.dp-body {
  position: relative;
  padding: 10px 12px;
  overflow: hidden;
}
.dp-softbar {
  height: 32px;
  flex: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
}
.dp-softbar span {
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  overflow: hidden;
}
.dp-softbar span:first-child {
  border-left: 0;
}
.dp-softkeys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 440px;
  margin: 10px auto 0;
}
.dp-soft {
  height: 18px;
  border-radius: 9px !important;
}
.dp-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 14px;
  padding: 0 4px;
}
.dp-navcol {
  width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.dp-nav {
  position: relative;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #454b53, #2a2e34 70%);
  box-shadow: 0 3px 0 #14171a, inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.dev-desk .dp-arrow {
  position: absolute;
  width: 38px;
  height: 30px;
  display: grid;
  place-items: center;
  background: transparent;
  box-shadow: none;
  font-size: 16px;
  color: #c9d1da;
}
.dp-arrow.up {
  top: 4px;
  left: 40px;
}
.dp-arrow.down {
  bottom: 4px;
  left: 40px;
}
.dp-arrow.left {
  left: 2px;
  top: 44px;
  width: 30px;
  height: 30px;
}
.dp-arrow.right {
  right: 2px;
  top: 44px;
  width: 30px;
  height: 30px;
}
.dev-desk .dp-ok {
  position: absolute;
  left: 35px;
  top: 35px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}
.dp-navrow {
  display: flex;
  gap: 10px;
}
.dp-fn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 30px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.dp-fn .ic {
  font-size: 14px;
}
.dp-fn .led {
  position: absolute;
  top: 4px;
  right: 5px;
  width: 5px;
  height: 5px;
}
.dp-fn.sm {
  width: 52px;
}
.dp-msg .led {
  top: 5px;
  right: 6px;
}
.dp-padcol {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dp-keypad {
  display: grid;
  grid-template-columns: repeat(3, 58px);
  gap: 6px 9px;
}
.dp-key {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 8px !important;
}
.dp-key b {
  font-size: 15px;
}
.dp-key small {
  font-size: 8px;
  color: #9aa6b2;
  letter-spacing: 0.04em;
}
.dp-vol {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 9px;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 2px 0 #14171a;
}
.dev-desk .dp-vol button {
  width: 66px;
  height: 24px;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  place-items: center;
}
.dp-vol span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 24px;
  background: #2a2e34;
  color: #8e99a5;
  font-size: 13px;
}
.dp-fncol {
  width: 180px;
}
.dp-fngrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.dp-spk {
  width: 100%;
  height: 34px !important;
  margin-top: 7px;
}

/* ---------- DECT handset (Yealink W56H layout) ---------- */

.dev-dect {
  --dh-metal: linear-gradient(90deg, #9aa0a7 0%, #d6dade 5%, #f1f3f5 18%, #ffffff 50%, #eceef1 82%, #cfd3d8 95%, #979da4 100%);
  --dh-key-bg: linear-gradient(180deg, #ffffff, #e1e4e8);
  --dh-key-ink: #15181c;
  --dh-key-sub: #3d434a;
  --dh-key-edge: #8c939b;
  width: 320px;
  height: 770px;
}
.dev-dect.skin-dark {
  --dh-metal: linear-gradient(90deg, #1f2225 0%, #3d4248 6%, #4b5157 22%, #555b62 50%, #4b5157 78%, #3d4248 94%, #1f2225 100%);
  --dh-key-bg: linear-gradient(180deg, #454b52, #2e3237);
  --dh-key-ink: #eef1f4;
  --dh-key-sub: #a9b1ba;
  --dh-key-edge: #1b1e22;
}
.dev-dect button {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  transition: transform 0.08s, box-shadow 0.08s, filter 0.08s, background 0.12s;
}
.dh-shell {
  position: absolute;
  left: 10px;
  top: 0;
  width: 300px;
  height: 730px;
  padding: 8px;
  border-radius: 30px 30px 24px 24px;
  background: var(--dh-metal);
  box-shadow: 0 26px 50px rgba(15, 23, 42, 0.35), inset 0 0 0 1px rgba(0, 0, 0, 0.28), inset 0 2px 0 rgba(255, 255, 255, 0.7);
}
.dh-panel {
  position: relative;
  height: 474px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 14px;
  border-radius: 24px 24px 34px 34px;
  background: linear-gradient(180deg, #1c1e21 0%, #0c0d0f 55%, #15171a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 rgba(255, 255, 255, 0.08), 0 1px 0 rgba(255, 255, 255, 0.6);
  color: #fff;
}
.dh-logo {
  font: 700 19px/1 var(--font);
  letter-spacing: 0.01em;
}
.dh-led {
  position: absolute;
  top: 18px;
  right: 26px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1f2226;
}
.dh-led.red {
  background: #ff4d5a;
  box-shadow: 0 0 8px #ff4d5a;
}
.dh-led.blink-red {
  background: #ff4d5a;
  box-shadow: 0 0 8px #ff4d5a;
  animation: blink 0.8s steps(1) infinite;
}
.dh-led.green,
.dh-led.blink-green {
  background: #3ef08a;
  box-shadow: 0 0 8px #3ef08a;
}
.dh-led.blink-green {
  animation: blink 0.8s steps(1) infinite;
}
.dh-screen {
  width: 236px;
  height: 232px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 3px;
  background: linear-gradient(180deg, #1d6c97 0%, #155982 55%, #0e4467 100%);
  box-shadow: 0 0 0 2px #050607;
  color: #fff;
  font-size: 13px;
}
.dh-screen.is-idle {
  background: linear-gradient(168deg, #86e3ee 0%, #46bbd5 34%, #2190bd 66%, #145f8e 100%);
}
.dh-screen.is-idle .ps-idle {
  text-shadow: 0 1px 3px rgba(0, 30, 60, 0.45);
}
.dh-status {
  height: 22px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  font-size: 11px;
}
.dh-screen:not(.is-idle) .dh-status {
  background: rgba(0, 0, 0, 0.18);
}
.dh-flags {
  display: inline-flex;
  gap: 4px;
  margin-left: auto;
}
.dh-flags .ic {
  color: #ffd166;
}
.dh-clock {
  font-variant-numeric: tabular-nums;
}
.dh-sig .ic,
.dh-bat .ic {
  font-size: 13px;
}
.dh-body {
  flex: 1;
  position: relative;
  padding: 8px 10px;
  overflow: hidden;
  min-height: 0;
}
.dh-softbar {
  height: 28px;
  flex: none;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  background: linear-gradient(180deg, transparent, rgba(0, 20, 40, 0.35));
  font-size: 13px;
  font-weight: 600;
}
.dh-softbar .r {
  text-align: right;
}
.dh-softbar .c {
  text-align: center;
  font-size: 11px;
  opacity: 0.85;
}
.dev-dect .ps-list li.is-sel,
.dev-dect .ps-grid li.is-sel,
.dev-dect .ps-matches li.is-sel {
  background: linear-gradient(90deg, #08304d, #0b416a);
}
.dh-softrow {
  width: 100%;
  height: 36px;
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: linear-gradient(180deg, #2d3136, #1e2125);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(0, 0, 0, 0.7);
}
.dev-dect .dh-soft {
  display: grid;
  place-items: center;
}
.dh-soft.l {
  border-right: 1px solid rgba(0, 0, 0, 0.6);
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.05);
}
.dh-soft i {
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: #e9edf2;
}
.dh-controls {
  position: relative;
  width: 100%;
  flex: 1;
}
.dev-dect .dh-side {
  position: absolute;
  display: grid;
  place-items: center;
  width: 58px;
  height: 40px;
  border-radius: 12px;
  color: #f2f4f6;
  font-size: 20px;
}
.dh-side.speaker {
  left: 18px;
  top: 12px;
}
.dh-side.msg {
  right: 18px;
  top: 12px;
}
.dh-side.call {
  left: 18px;
  top: 70px;
}
.dh-side.end {
  right: 18px;
  top: 70px;
}
.dev-dect .dh-side.call {
  color: #2fd06b;
}
.dev-dect .dh-side.end {
  color: #ff3b3b;
}
.dev-dect .dh-soft:hover,
.dev-dect .dh-side:hover {
  background: rgba(255, 255, 255, 0.07);
}
.dh-nav {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 112px;
  height: 112px;
  margin-left: -56px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 28%, #fdfdfe, #d9dde1 55%, #a9afb6 100%);
  box-shadow: 0 0 0 2px #050607, 0 3px 6px rgba(0, 0, 0, 0.6), inset 0 1px 0 #fff;
}
.skin-dark .dh-nav {
  background: radial-gradient(circle at 50% 28%, #6b727a, #474d54 55%, #2c3035 100%);
}
.dev-dect .dh-arrow {
  position: absolute;
  display: grid;
  place-items: center;
  width: 36px;
  height: 28px;
  border-radius: 8px;
}
.dh-arrow i {
  width: 0;
  height: 0;
  border: 5px solid transparent;
}
.dh-arrow.up {
  top: 1px;
  left: 38px;
}
.dh-arrow.up i {
  border-top: 0;
  border-bottom: 7px solid #2c3136;
}
.dh-arrow.down {
  bottom: 1px;
  left: 38px;
}
.dh-arrow.down i {
  border-bottom: 0;
  border-top: 7px solid #2c3136;
}
.dh-arrow.left {
  left: 0;
  top: 42px;
  width: 28px;
}
.dh-arrow.left i {
  border-left: 0;
  border-right: 7px solid #2c3136;
}
.dh-arrow.right {
  right: 0;
  top: 42px;
  width: 28px;
}
.dh-arrow.right i {
  border-right: 0;
  border-left: 7px solid #2c3136;
}
.skin-dark .dh-arrow i {
  border-color: transparent;
}
.skin-dark .dh-arrow.up i {
  border-bottom-color: #dfe4e9;
}
.skin-dark .dh-arrow.down i {
  border-top-color: #dfe4e9;
}
.skin-dark .dh-arrow.left i {
  border-right-color: #dfe4e9;
}
.skin-dark .dh-arrow.right i {
  border-left-color: #dfe4e9;
}
.dev-dect .dh-ok {
  position: absolute;
  left: 29px;
  top: 29px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #ffffff, #e2e5e9 68%, #c4c9ce);
  box-shadow: 0 0 0 2px #31363c, 0 2px 4px rgba(0, 0, 0, 0.45);
  color: #1a1d21;
  font-size: 15px;
  font-weight: 600;
}
.skin-dark .dh-ok {
  background: radial-gradient(circle at 50% 30%, #5b6168, #3a3f45 70%);
  box-shadow: 0 0 0 2px #15181b, 0 2px 4px rgba(0, 0, 0, 0.45);
  color: #f1f3f5;
}
.dh-keypad {
  display: grid;
  grid-template-columns: repeat(3, 78px);
  justify-content: center;
  gap: 9px 13px;
  margin-top: 12px;
}
.dev-dect .dh-key {
  position: relative;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 7px;
  background: var(--dh-key-bg);
  border: 1px solid var(--dh-key-edge);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  color: var(--dh-key-ink);
}
.skin-dark .dh-key {
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.dh-key b {
  font-size: 18px;
  font-weight: 500;
}
.dh-key small {
  font-size: 9px;
  color: var(--dh-key-sub);
  letter-spacing: 0.02em;
}
.dh-key > .ic {
  font-size: 12px;
  color: var(--dh-key-sub);
}
.dh-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding: 0 11px;
}
.dev-dect .dh-tran,
.dev-dect .dh-mute {
  width: 78px;
}
.dh-tran {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.dh-mute .ic {
  font-size: 15px;
}
.dh-mic {
  width: 14px;
  height: 4px;
  border-radius: 2px;
  background: #23262a;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.8);
}
.dev-dect .dh-key:hover {
  filter: brightness(1.04);
}
.dev-dect button.is-pressed {
  transform: translateY(2px);
  filter: brightness(1.15);
}
.dev-dect .dh-key.is-pressed {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  filter: brightness(0.93);
}
.dev-dect .dh-side.is-pressed,
.dev-dect .dh-soft.is-pressed {
  background: rgba(255, 255, 255, 0.16);
}
.dh-cradle {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 320px;
  height: 64px;
  z-index: 2;
  display: grid;
  place-items: end center;
  padding-bottom: 12px;
  border-radius: 12px 12px 20px 20px;
  background: linear-gradient(180deg, #2c2f33 0%, #141618 40%, #050606 100%);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: #fff;
  font: 700 17px/1 var(--font);
}

/* ---------- Phone screen views (desk + DECT) ---------- */

.ps-idle {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.ps-time {
  font-size: 44px;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
}
.dev-dect .ps-time {
  font-size: 40px;
}
.ps-date {
  margin-top: 4px;
  font-size: 13px;
  opacity: 0.8;
}
.ps-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 600;
}
.ps-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.18);
  color: #ffd166;
  font-size: 12px;
  font-weight: 600;
}
.ps-call {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}
.dev-desk .ps-call {
  flex-direction: row;
  justify-content: flex-start;
  text-align: left;
  gap: 14px;
  padding-left: 4px;
}
.ps-avatar {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  font-weight: 700;
  font-size: 19px;
}
.ps-avatar > .ic {
  font-size: 26px;
}
.ps-badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #22b35e;
  font-size: 12px;
  border: 2px solid #0b2140;
}
.ps-ringing .ps-badge,
.ps-calling .ps-badge {
  background: #0096d6;
}
.ps-ringing .ps-avatar {
  animation: ringPulse 1.2s ease-out infinite;
}
.ps-hold .ps-badge,
.ps-held .ps-badge {
  background: #e69a12;
}
.ps-ended .ps-badge {
  background: #e5484d;
}
.ps-parked .ps-badge {
  background: #7a5cff;
}
.ps-state {
  font-size: 12px;
  opacity: 0.8;
  font-weight: 600;
}
.ps-timer {
  font-variant-numeric: tabular-nums;
  opacity: 0.9;
}
.ps-name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}
.ps-number {
  font-size: 12px;
  opacity: 0.75;
}
.ps-call:has(.ps-held) {
  padding-bottom: 22px;
}
.ps-held {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(230, 154, 18, 0.22);
  color: #ffd38a;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
}
.ps-dial {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
}
.ps-dtitle {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.85;
}
.ps-input {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 22px;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.ps-caret {
  width: 2px;
  height: 22px;
  margin-left: 2px;
  background: #9fdcff;
  animation: blink 1s steps(1) infinite;
}
.ps-hint {
  font-size: 11px;
  opacity: 0.7;
}
.ps-matches {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
}
.ps-matches li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 4px;
}
.ps-matches li.is-sel {
  background: rgba(5, 151, 212, 0.55);
}
.ps-matches em {
  margin-left: auto;
  font-style: normal;
  opacity: 0.8;
}
.ps-mi {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 9px;
  font-weight: 700;
}
.ps-list,
.ps-grid {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.ps-ltitle {
  font-size: 12px;
  font-weight: 700;
  padding-bottom: 5px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0.9;
}
.ps-list ul,
.ps-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ps-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.25;
}
.ps-list li.is-sel {
  background: linear-gradient(90deg, #0096d6, #0a7fb8);
}
.ps-li-n {
  width: 16px;
  opacity: 0.6;
  font-size: 11px;
}
.ps-li-l {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ps-li-l small {
  display: block;
  font-size: 10px;
  opacity: 0.7;
}
.ps-list em {
  font-style: normal;
  font-size: 11px;
  opacity: 0.85;
}
.ps-radio {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
}
.ps-radio.on {
  background: #3ef08a;
  border-color: #3ef08a;
}
.ps-grid ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  flex: 1;
}
.ps-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 6px;
  font-size: 10px;
  text-align: center;
}
.ps-gi {
  font-size: 22px;
  color: #9fdcff;
}
.ps-grid li.is-sel {
  background: rgba(5, 151, 212, 0.6);
}
.ps-grid li.is-sel .ps-gi {
  color: #fff;
}
.ps-msg {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  animation: pop 0.3s ease-out;
}
.ps-msg-ic {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #22b35e;
  font-size: 24px;
}
.ps-tone-warn .ps-msg-ic {
  background: #e69a12;
}
.ps-tone-info .ps-msg-ic {
  background: #0096d6;
}
.ps-tone-bad .ps-msg-ic {
  background: #e5484d;
}
.ps-msg-t {
  font-weight: 700;
  font-size: 16px;
}
.ps-msg-x {
  font-size: 12px;
  opacity: 0.8;
  max-width: 240px;
}

/* ---------- Web Client / Admin Console (V20 Update 9+ dark UI) ---------- */

.dev-web {
  --w-rail: #27292b;
  --w-bg: #3d3f42;
  --w-card: #34363a;
  --w-panel: #303a49;
  --w-pop: #151e2e;
  --w-modal: #2c2f33;
  --w-input: #2a2c2f;
  --w-input-line: #55595f;
  --w-line: rgba(255, 255, 255, 0.08);
  --w-text: #eef2f6;
  --w-muted: #a8b1bb;
  --w-hover: rgba(255, 255, 255, 0.06);
  --w-sel: rgba(5, 151, 212, 0.22);
  --w-blue: #0597d4;
  --w-green: #00b548;
  --w-red: #e22831;
  width: 1000px;
  height: 620px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--w-bg);
  color: var(--w-text);
  font-size: 13px;
  line-height: 1.35;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(15, 23, 42, 0.2);
  color-scheme: dark;
}
.w-chrome {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 12px;
  background: #1c1e20;
  border-bottom: 1px solid #000;
}
.w-dots {
  display: flex;
  gap: 6px;
}
.w-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}
.w-dots i:nth-child(2) {
  background: #febc2e;
}
.w-dots i:nth-child(3) {
  background: #28c840;
}
.w-url {
  flex: 1;
  max-width: 560px;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 10px;
  border-radius: 11px;
  background: #2e3134;
  color: #c5ccd4;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
}
.w-url .ic {
  color: #3ec26f;
  font-size: 11px;
}
.w-app {
  position: relative;
  display: flex;
  height: 586px;
}
.w-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.dev-web button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  padding: 0;
  transition: transform 0.08s, background 0.15s, box-shadow 0.15s;
}
.dev-web .is-pressed {
  transform: scale(0.95);
  box-shadow: 0 0 0 3px rgba(5, 151, 212, 0.55) !important;
}
.dev-web .is-wrong {
  box-shadow: 0 0 0 2px var(--bad) !important;
}

/* client rail */
.w-rail {
  width: 76px;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 10px 6px;
  background: var(--w-rail);
  color: #b9c1ca;
  border-right: 1px solid #1d1f21;
}
.w-logo {
  margin: 0 auto 10px;
  font-weight: 800;
  font-size: 17px;
  color: #fff;
  letter-spacing: 0.01em;
}
.w-logo b,
.w-side-logo i {
  color: var(--w-blue);
  font-style: normal;
}
.w-nav {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 2px !important;
  border-radius: 9px;
  font-size: 10px !important;
  font-weight: 600;
}
.w-nav .ic {
  font-size: 18px;
}
.w-nav:hover {
  background: var(--w-hover) !important;
}
.w-nav.is-on {
  background: var(--w-blue) !important;
  color: #fff;
}
.w-nav-badge {
  position: absolute;
  top: 3px;
  right: 12px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--w-red);
  color: #fff;
  font-style: normal;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}
.w-rail-foot {
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid var(--w-line);
}
.w-top {
  position: relative;
  height: 54px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  background: var(--w-rail);
  border-bottom: 1px solid #1d1f21;
}
.w-top h2 {
  font-size: 17px;
  font-weight: 700;
}
.w-top-r {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.w-topic {
  position: relative;
  display: grid !important;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: #c9d1da !important;
}
.w-topic .ic {
  font-size: 18px;
}
.w-topic:hover {
  background: var(--w-hover) !important;
}
.w-topic.dial {
  background: var(--w-blue) !important;
  color: #fff !important;
}
.w-topic i {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 8px;
  background: var(--w-red);
  color: #fff;
  font-style: normal;
  font-size: 9px;
  line-height: 15px;
}
.w-me {
  display: grid !important;
  place-items: center;
  padding: 3px !important;
  border-radius: 50%;
  margin-left: 4px;
}
.w-me.is-on {
  box-shadow: 0 0 0 2px var(--w-blue);
}
.w-help {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--w-muted);
  font-size: 12px;
  margin-left: 6px;
}
.w-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--w-input);
  color: #8e98a3;
  flex: 1;
  max-width: 320px;
}
.w-search.sm {
  height: 28px;
}
.w-search span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.w-av {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #4d6a87;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
}
.w-av .ic {
  font-size: 16px;
}
.w-av.lg {
  width: 44px;
  height: 44px;
  font-size: 15px;
}
.w-av.xl {
  width: 76px;
  height: 76px;
  font-size: 24px;
  background: linear-gradient(135deg, #4d6a87, #2f4b67);
}
.w-av.pulse {
  animation: ringPulse 1.2s ease-out infinite;
}
.w-pres {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--pc);
  border: 2px solid var(--w-rail);
}
.w-av.lg .w-pres {
  width: 13px;
  height: 13px;
}
.w-pres.inline {
  position: static;
  flex: none;
  border: 0;
  width: 11px;
  height: 11px;
}
.w-pop {
  position: absolute;
  top: 50px;
  right: 12px;
  z-index: 6;
  width: 260px;
  padding: 6px;
  border-radius: 12px;
  background: var(--w-pop);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
  animation: pop 0.2s ease-out;
}
.w-pop-me {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--w-line);
  margin-bottom: 4px;
}
.w-pop-me div {
  display: grid;
}
.w-pop-me small {
  color: var(--w-muted);
  font-size: 11px;
}
.w-pop-t {
  padding: 6px 10px 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--w-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.w-mi {
  width: 100%;
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 7px 10px !important;
  border-radius: 8px;
  text-align: left;
}
.w-mi .ic {
  font-size: 15px;
  color: var(--w-muted);
}
.w-mi:hover {
  background: var(--w-hover) !important;
}
.w-mi span {
  flex: 1;
}
.w-mi.is-on {
  font-weight: 700;
}
.w-mi .w-mi-check {
  color: var(--w-blue);
}
.w-mi .w-mi-edit {
  opacity: 0.5;
  font-size: 12px;
}
.w-body {
  flex: 1;
  display: flex;
  min-height: 0;
}
.w-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  overflow: hidden;
  background: var(--w-bg);
}

/* admin */
.w-side {
  width: 196px;
  flex: none;
  display: flex;
  flex-direction: column;
  background: var(--w-rail);
  color: #c3cad2;
  border-right: 1px solid #1d1f21;
}
.w-side-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px 10px;
}
.w-side-logo b {
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}
.w-side-logo span {
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 600;
  font-size: 11px;
}
.w-side-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 4px 8px;
}
.w-anav {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 6px 10px !important;
  border-radius: 8px;
  font-size: 12.5px !important;
  text-align: left;
}
.w-anav .ic {
  font-size: 15px;
  opacity: 0.85;
}
.w-anav:hover {
  background: var(--w-hover) !important;
}
.w-anav.is-on {
  background: var(--w-blue) !important;
  color: #fff;
  font-weight: 600;
}
.w-admin-main {
  padding: 16px 20px;
}

/* blocks */
.w-hdr {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.w-hdr > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.w-hdr h3 {
  font-size: 18px;
  font-weight: 700;
}
.w-hdr p {
  margin: 0;
  color: var(--w-muted);
  font-size: 12.5px;
}
.w-hdr-act {
  display: flex;
  gap: 8px;
}
.w-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.w-toolbar .w-search {
  margin-left: auto;
  max-width: 220px;
}
.w-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px !important;
  border-radius: 7px;
  font-weight: 600 !important;
  font-size: 13px !important;
  white-space: nowrap;
}
.w-btn.sm {
  height: 28px;
  padding: 0 10px !important;
  font-size: 12px !important;
}
.w-btn.block {
  width: 100%;
  justify-content: center;
  height: 38px;
}
.w-btn .ic {
  font-size: 14px;
}
.w-btn-primary {
  background: var(--w-blue) !important;
  color: #fff !important;
}
.w-btn-primary:hover {
  filter: brightness(1.1);
}
.w-btn-ghost {
  background: rgba(255, 255, 255, 0.06) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.w-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}
.w-btn-danger,
.w-btn-red {
  background: var(--w-red) !important;
  color: #fff !important;
}
.w-btn-green {
  background: var(--w-green) !important;
  color: #fff !important;
}
.w-btn-white {
  background: #fff !important;
  color: #1c2838 !important;
}
.w-iconbtn {
  display: grid !important;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: var(--w-muted) !important;
}
.w-iconbtn:hover {
  background: var(--w-hover) !important;
  color: #fff !important;
}
.w-iconbtn.green {
  color: var(--w-green) !important;
}
.w-iconbtn.red {
  color: var(--w-red) !important;
}
.w-iconbtn .ic {
  font-size: 16px;
}
.w-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--w-line);
  flex-wrap: wrap;
}
.w-tab {
  padding: 8px 12px !important;
  font-weight: 600 !important;
  color: var(--w-muted) !important;
  border-bottom: 2px solid transparent !important;
  margin-bottom: -1px;
  font-size: 12.5px !important;
}
.w-tab.is-on {
  color: #fff !important;
  border-bottom-color: var(--w-blue) !important;
}
.w-sub {
  padding: 8px 12px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--w-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.w-form .w-sub {
  grid-column: 1 / -1;
  padding: 0;
}
.w-list {
  background: var(--w-card);
  border-radius: 10px;
  overflow: hidden;
}
.w-li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-top: 1px solid var(--w-line);
}
.w-list .w-sub + .w-li,
.w-li:first-child {
  border-top: 0;
}
.w-li.is-sel {
  background: var(--w-sel);
}
.w-list.has-select {
  overflow: visible;
}
.w-li-select {
  width: 190px;
  flex: none;
}
.w-li-select .w-input {
  height: 28px;
}
.w-li.is-unread b::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--w-blue);
  vertical-align: 1px;
}
.w-li-main {
  flex: 1;
  min-width: 0;
  display: grid;
}
.w-li-main small {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--w-muted);
  font-size: 12px;
}
.w-li-main small.red {
  color: #ff7a7f;
}
.w-li-right {
  color: var(--w-muted);
  font-size: 12px;
}
.w-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--w-sel);
  color: #8fd6f7;
  font-size: 11px;
  font-weight: 700;
}
.w-badge.ok {
  background: rgba(54, 178, 19, 0.2);
  color: #7ee05d;
}
.w-badge.warn {
  background: rgba(255, 154, 12, 0.2);
  color: #ffc370;
}
.w-badge.bad {
  background: rgba(226, 40, 49, 0.22);
  color: #ff8a8f;
}
.w-team {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.w-tcard {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 10px;
  padding: 12px;
  border-radius: 10px;
  background: var(--w-card);
}
.w-tcard.is-sel {
  box-shadow: inset 0 0 0 1px var(--w-blue);
}
.w-tc-main {
  display: grid;
  min-width: 0;
}
.w-tc-main small {
  color: var(--w-muted);
}
.w-tc-main em {
  font-style: normal;
  font-size: 11px;
  color: var(--pc);
}
.w-tc-act {
  grid-column: 1 / -1;
  display: flex;
  gap: 4px;
  color: var(--w-muted);
}
.w-tc-act span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}
.w-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  padding: 14px;
  background: var(--w-card);
  border-radius: 10px;
}
.w-form.one {
  grid-template-columns: 1fr;
}
.w-form.three {
  grid-template-columns: 1fr 1fr 1fr;
}
.w-field {
  position: relative;
  display: grid;
  gap: 4px;
  min-width: 0;
  align-content: start;
}
.w-field.wide {
  grid-column: 1 / -1;
}
.w-field > label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--w-muted);
}
.w-input {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid var(--w-input-line);
  background: var(--w-input);
  white-space: nowrap;
  overflow: hidden;
}
.w-input .ph {
  color: #7f8995;
}
.w-input em {
  margin-left: auto;
  color: var(--w-muted);
  font-style: normal;
  font-size: 12px;
}
.w-input > .ic {
  color: var(--w-muted);
}
.w-textarea {
  height: 54px;
  align-items: flex-start;
  padding-top: 7px;
  white-space: normal;
}
.w-field.is-focus .w-input,
.w-ph-input.is-focus {
  border-color: var(--w-blue);
  box-shadow: 0 0 0 3px rgba(5, 151, 212, 0.3);
}
.w-field.is-err .w-input {
  border-color: var(--w-red);
}
.w-select {
  justify-content: space-between;
}
.w-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 5;
  margin: 4px 0 0;
  padding: 4px;
  list-style: none;
  border-radius: 9px;
  background: var(--w-pop);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: pop 0.18s ease-out;
}
.w-options.up {
  top: auto;
  bottom: 100%;
  margin: 0 0 4px;
}
.w-options li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
}
.w-options li:hover {
  background: var(--w-hover);
}
.w-options li.is-sel {
  background: var(--w-sel);
  font-weight: 600;
}
.w-hint {
  color: var(--w-muted);
  font-size: 11px;
}
.w-static {
  padding: 6px 0;
  font-weight: 600;
}
.w-caret {
  display: inline-block;
  width: 1.5px;
  height: 16px;
  margin-left: 1px;
  background: var(--w-blue);
  animation: blink 1s steps(1) infinite;
}
.w-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
}
.w-toggle-row span {
  display: grid;
  font-weight: 600;
}
.w-toggle-row small {
  font-weight: 400;
  color: var(--w-muted);
  font-size: 11.5px;
}
.w-toggle {
  position: relative;
  flex: none;
  width: 38px;
  height: 22px;
  border-radius: 11px !important;
  background: #5a5f66 !important;
}
.w-toggle i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s;
}
.w-toggle.on {
  background: var(--w-blue) !important;
}
.w-toggle.on i {
  transform: translateX(16px);
}
.w-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}
.w-checks.stack {
  flex-direction: column;
}
.w-check {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  padding: 4px 2px !important;
  text-align: left;
}
.w-check i {
  display: grid;
  place-items: center;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid #8e98a3;
  color: transparent;
  font-size: 11px;
}
.w-check.radio i {
  border-radius: 50%;
}
.w-check.on i {
  background: var(--w-blue);
  border-color: var(--w-blue);
  color: #fff;
}
.w-table {
  background: var(--w-card);
  border-radius: 10px;
  overflow: hidden;
}
.w-table table {
  width: 100%;
  border-collapse: collapse;
}
.w-table th {
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.18);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--w-muted);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.w-table td {
  padding: 8px 12px;
  border-top: 1px solid var(--w-line);
  white-space: nowrap;
}
.w-table tr.is-sel td {
  background: var(--w-sel);
}
.w-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 2px;
  background: #7d858e;
}
.w-dot.ok {
  background: #36b213;
}
.w-dot.warn {
  background: #ff9a0c;
}
.w-dot.err {
  background: var(--w-red);
}
.w-empty {
  padding: 16px;
  text-align: center;
  color: var(--w-muted);
}
.w-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.w-card {
  display: grid;
  gap: 2px;
  padding: 12px;
  border-radius: 10px;
  background: var(--w-card);
}
.w-card.is-on {
  box-shadow: inset 0 0 0 1px var(--w-blue);
}
.w-card-ic {
  color: var(--w-blue);
  font-size: 18px;
}
.w-card small {
  color: var(--w-muted);
}
.w-card em {
  font-style: normal;
  font-size: 20px;
  font-weight: 700;
}
.w-btns {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.w-btns.left {
  justify-content: flex-start;
}
.w-btns.center {
  justify-content: center;
}
.w-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(5, 151, 212, 0.16);
  color: #cfeaf8;
}
.w-note .ic {
  margin-top: 2px;
  flex: none;
}
.w-note.ok {
  background: rgba(54, 178, 19, 0.16);
  color: #c9f0bb;
}
.w-note.warn {
  background: rgba(255, 154, 12, 0.16);
  color: #ffe0b0;
}
.w-text {
  margin: 0;
}
.w-text.muted {
  color: var(--w-muted);
}
.w-text.center {
  text-align: center;
}
.w-player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--w-card);
}
.w-play {
  display: grid !important;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50% !important;
  background: var(--w-blue) !important;
  color: #fff !important;
}
.w-play .ic {
  font-size: 14px;
}
.w-pl-main {
  flex: 1;
  min-width: 0;
}
.w-pl-main small {
  display: block;
  margin-top: 4px;
  color: var(--w-muted);
  font-style: italic;
}
.w-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 22px;
  margin-top: 2px;
}
.w-wave i {
  flex: 1;
  border-radius: 1px;
  background: #5b6470;
  height: 30%;
}
.w-wave i:nth-child(3n) {
  height: 70%;
}
.w-wave i:nth-child(4n + 1) {
  height: 45%;
}
.w-wave i:nth-child(7n) {
  height: 90%;
}
.w-wave.on i {
  animation: wave 0.9s ease-in-out infinite alternate;
}
.w-wave.on i:nth-child(-n + 12) {
  background: var(--w-blue);
}
.w-wave.on i:nth-child(2n) {
  animation-delay: -0.3s;
}
.w-wave.on i:nth-child(3n) {
  animation-delay: -0.6s;
}
.w-pl-t {
  font-variant-numeric: tabular-nums;
  color: var(--w-muted);
  font-size: 12px;
}
.w-recorder {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--w-card);
}
.w-recorder div {
  flex: 1;
  display: grid;
}
.w-recorder small {
  color: var(--w-muted);
}
.w-rec-btn {
  display: grid !important;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50% !important;
  background: var(--w-red) !important;
  color: #fff !important;
}
.w-recorder.on .w-rec-btn {
  animation: recPulse 1.2s ease-out infinite;
}
.w-qr {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 10px;
  background: var(--w-card);
}
.w-qr-code {
  width: 124px;
  height: 124px;
  flex: none;
  padding: 7px;
  border-radius: 8px;
  background: #fff;
}
.w-qr-code svg {
  width: 100%;
  height: 100%;
  fill: #111;
  shape-rendering: crispEdges;
}
.w-qr p {
  margin: 4px 0 0;
  color: var(--w-muted);
}
.w-kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--w-card);
}
.w-kv dt {
  color: var(--w-muted);
}
.w-kv dd {
  margin: 0;
  font-weight: 600;
}
.w-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.w-chip {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 5px 12px !important;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  font-weight: 600 !important;
  font-size: 12px !important;
}
.w-chip.is-on {
  background: var(--w-blue) !important;
  color: #fff !important;
  box-shadow: none;
}
.w-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.w-split > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.w-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.w-section h4 {
  margin: 0;
  font-size: 13px;
}
.w-flow {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 12px;
  border-radius: 10px;
  background: var(--w-card);
}
.w-flow-node {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  min-width: 92px;
  text-align: center;
}
.w-flow-node .ic {
  color: var(--w-blue);
  font-size: 17px;
}
.w-flow-node small {
  color: var(--w-muted);
  font-size: 11px;
}
.w-flow-node.is-on {
  background: var(--w-sel);
  box-shadow: inset 0 0 0 1px var(--w-blue);
}
.w-flow-arrow {
  color: var(--w-muted);
}
.w-modal-bg {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.5);
  animation: fade 0.2s ease-out;
}
.w-modal {
  width: 460px;
  max-height: 540px;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background: var(--w-modal);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
  animation: pop 0.22s ease-out;
}
.w-modal.wide {
  width: 620px;
}
.w-modal-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--w-line);
  font-size: 15px;
}
.w-x {
  display: grid !important;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  color: var(--w-muted) !important;
}
.w-modal-b {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  overflow: hidden;
}
.w-modal-b .w-form {
  padding: 0;
  background: none;
}
.w-modal-f {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--w-line);
}
.w-toast {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: #f4f7fa;
  color: #14202e;
  font-weight: 600;
  transform: translateX(-50%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  animation: toastIn 0.3s ease-out;
  white-space: nowrap;
}
.w-toast .ic {
  color: #1f9d55;
}
.w-toast.warn .ic {
  color: #d98500;
}

/* email + login pages */
.w-page {
  background: #1f2124;
}
.w-page .w-main {
  align-items: center;
  justify-content: center;
  background: #1f2124;
}
.w-page-email .w-main {
  background: #eef1f5;
  color: #1c2838;
}
.w-email {
  width: 600px;
  padding: 24px 28px;
  border-radius: 12px;
  background: #fff;
  color: #1c2838;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.1);
}
.w-email-h {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e6ebf1;
}
.w-email-h div {
  display: grid;
  flex: 1;
}
.w-email-h small,
.w-email-h em {
  color: #6b7b90;
  font-style: normal;
  font-size: 12px;
}
.w-email .w-av {
  background: var(--w-blue);
}
.w-email h3 {
  margin: 16px 0 8px;
  font-size: 19px;
}
.w-email p {
  margin: 0 0 10px;
  color: #3b4a5c;
  font-size: 13.5px;
  line-height: 1.5;
}
.w-email-cta {
  margin-top: 14px;
}
.w-login {
  width: 360px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 28px 24px;
  border-radius: 14px;
  background: #2c2f33;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}
.w-login-logo {
  font-size: 30px;
  font-weight: 800;
  text-align: center;
  color: #fff;
}
.w-login-logo::first-letter {
  color: var(--w-blue);
}
.w-login h3 {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--w-muted);
}
.w-login .w-form {
  padding: 0;
  background: none;
}
.w-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--w-muted);
  font-size: 11px;
  font-weight: 700;
}
.w-divider::before,
.w-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--w-line);
}

/* dialer / call panel */
.w-phone {
  width: 290px;
  flex: none;
  display: flex;
  flex-direction: column;
  background: var(--w-panel);
  border-left: 1px solid #1d1f21;
  animation: slideIn 0.25s ease-out;
}
.w-ph-idle {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  height: 100%;
}
.w-ph-head {
  display: flex;
  justify-content: space-between;
  color: var(--w-muted);
  font-size: 12px;
}
.w-ph-head span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.w-ph-input {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.2);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.w-ph-input .ic {
  color: var(--w-muted);
  font-size: 14px;
}
.w-ph-input .ph {
  color: #8e98a3;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}
.w-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.w-pd {
  display: grid !important;
  justify-items: center;
  padding: 6px 0 !important;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06) !important;
}
.w-pd:hover {
  background: rgba(255, 255, 255, 0.11) !important;
}
.w-pd b {
  font-size: 18px;
  font-weight: 600;
}
.w-pd small {
  font-size: 9px;
  color: var(--w-muted);
  letter-spacing: 0.06em;
}
.w-ph-dialrow {
  margin-top: auto;
  display: flex;
  justify-content: center;
  gap: 18px;
}
.w-roundbtn {
  display: grid !important;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50% !important;
  color: #fff !important;
  font-size: 21px;
}
.w-roundbtn.sm {
  width: 42px;
  height: 42px;
  font-size: 17px;
}
.w-roundbtn.green {
  background: var(--w-green) !important;
  box-shadow: 0 6px 16px rgba(0, 181, 72, 0.35);
}
.w-roundbtn.red {
  background: var(--w-red) !important;
  box-shadow: 0 6px 16px rgba(226, 40, 49, 0.35);
}
.w-roundbtn.blue {
  background: var(--w-blue) !important;
}
.w-roundbtn.grey {
  background: rgba(255, 255, 255, 0.14) !important;
}
.w-ring-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
}
.w-roundlbl {
  display: grid !important;
  justify-items: center;
  gap: 4px;
  border-radius: 12px;
}
.w-roundlbl small {
  font-size: 10px;
  color: var(--w-muted);
}
.w-ph-matches {
  display: grid;
  gap: 4px;
}
.w-ph-m {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 9px;
}
.w-ph-m:hover {
  background: rgba(255, 255, 255, 0.07);
}
.w-ph-m span:last-child {
  display: grid;
}
.w-ph-m small {
  color: var(--w-muted);
}
.w-ph-call {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 14px;
}
.w-ph-held {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 9px;
  background: rgba(255, 154, 12, 0.18);
  color: #ffd08a;
}
.w-ph-held span {
  display: grid;
}
.w-ph-held small {
  font-size: 11px;
}
.w-ph-who {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding-top: 4px;
  text-align: center;
}
.w-ph-who b {
  margin-top: 6px;
  font-size: 17px;
}
.w-ph-who small {
  color: var(--w-muted);
}
.w-ph-who em {
  font-style: normal;
  font-size: 12px;
  color: #6fdc8c;
  font-weight: 600;
}
.w-ph-ringing .w-ph-who em,
.w-ph-calling .w-ph-who em {
  color: #8fd6f7;
}
.w-ph-hold .w-ph-who em {
  color: #ffc370;
}
.w-ctls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.w-ctl {
  display: grid !important;
  justify-items: center;
  gap: 4px;
  padding: 9px 0 7px !important;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07) !important;
  font-size: 10.5px !important;
  font-weight: 600;
}
.w-ctl .ic {
  font-size: 18px;
}
.w-ctl:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}
.w-ctl.is-on {
  background: var(--w-blue) !important;
  color: #fff !important;
}
.w-ph-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.w-ph-actions .w-btn {
  flex: 1;
  justify-content: center;
  height: 38px;
}
.w-ph-pick {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
}
.w-ph-pick-h {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--w-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Dial codes page ---------- */

.codes-page {
  padding-top: 28px;
}
.codes-page h1 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 32px;
}
.codes-page h1 .ic {
  color: var(--brand);
}
.codes-page .lead {
  color: var(--ink-2);
  font-size: 17px;
}
.codes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.code-card {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.code-card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  margin-bottom: 12px;
}
.code-card h2 .ic {
  color: var(--brand);
}
.code-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  margin: 0;
}
.code-card dt code {
  font-size: 15px;
}
.code-card dd {
  margin: 0;
  color: var(--ink-2);
}

/* ---------- Embed + responsive ---------- */

.is-embed .site-head,
.is-embed .site-foot,
.is-embed .crumbs,
.is-embed .next-lesson,
.is-embed .lesson-actions {
  display: none;
}
.is-embed .lesson {
  padding-top: 8px;
}

@media (max-width: 1080px) {
  .player {
    grid-template-columns: 1fr;
  }
  .steps-panel {
    position: static;
    max-height: none;
  }
}
@media (max-width: 760px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 30px 0 44px;
  }
  .head-row {
    gap: 10px;
  }
  .brand-text {
    display: none;
  }
  .seg-btn {
    padding: 7px 10px;
  }
  .head-links a span {
    display: none;
  }
  .how {
    display: none;
  }
  .caption {
    font-size: 16px;
  }
  .lesson-actions .btn span {
    display: none;
  }
  .dev-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .dev-tab {
    flex: none;
    padding: 9px 12px;
    font-size: 14px;
  }
  .dev-tab .lg {
    display: none;
  }
  .dev-tab .sm {
    display: inline;
  }
  .lesson-head {
    margin-bottom: 12px;
  }
  .lesson-head .lead {
    font-size: 16px;
  }
}
@media (max-width: 520px) {
  .head-row .seg {
    order: 3;
    width: 100%;
  }
  .head-row .seg .seg-btn {
    flex: 1;
    justify-content: center;
  }
  .player-main {
    padding: 8px;
  }
  .stage {
    padding: 12px 4px;
  }
  .mode-seg {
    width: 100%;
  }
  .mode-seg .seg-btn {
    flex: 1;
    justify-content: center;
  }
  .codes-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .site-head,
  .site-foot,
  .player-main,
  .dev-tabs,
  .lesson-actions,
  .next-lesson,
  .crumbs,
  .notice:not(.soft) {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .player {
    display: block;
  }
  .steps-panel {
    position: static;
    max-height: none;
    box-shadow: none;
    border: 0;
    padding: 0;
  }
  .steps li {
    background: none !important;
    color: #000;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---------- Keyframes ---------- */

@keyframes blink {
  50% {
    opacity: 0.15;
  }
}
@keyframes ripple {
  from {
    transform: scale(1);
    opacity: 1;
  }
  to {
    transform: scale(4);
    opacity: 0;
  }
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(255, 176, 32, 0.35);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(255, 176, 32, 0);
  }
}
@keyframes shake {
  20%,
  60% {
    transform: translateX(-4px);
  }
  40%,
  80% {
    transform: translateX(4px);
  }
}
@keyframes pop {
  from {
    transform: scale(0.94);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
}
@keyframes ringPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(5, 151, 212, 0.55);
  }
  100% {
    box-shadow: 0 0 0 16px rgba(5, 151, 212, 0);
  }
}
@keyframes slideIn {
  from {
    transform: translateX(24px);
    opacity: 0;
  }
}
@keyframes recPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(226, 40, 49, 0.6);
  }
  100% {
    box-shadow: 0 0 0 14px rgba(226, 40, 49, 0);
  }
}
@keyframes wave {
  from {
    transform: scaleY(0.5);
  }
  to {
    transform: scaleY(1.2);
  }
}
@keyframes fall {
  0% {
    transform: translate(0, 0) rotate(0);
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx), 520px) rotate(var(--r));
    opacity: 0;
  }
}
