/* WAKKEL customer console — LC-1 visual polish on the approved identity.
   Operational density, gem accents, no marketing hero. */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  height: 100%;
  color-scheme: dark;
  background: var(--bg);
  scrollbar-color: var(--scrollbar) transparent;
}
html[data-theme="light"] { color-scheme: light; }

html, body { overflow-x: hidden; }

body {
  min-height: 100%;
  font-family: var(--font-ar);
  color: var(--text);
  line-height: 1.7;
  background:
    radial-gradient(980px 560px at 94% -10%, var(--aurora-1), transparent 56%),
    radial-gradient(760px 500px at 0% 18%, var(--aurora-2), transparent 58%),
    radial-gradient(700px 420px at 70% 110%, var(--aurora-3), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-mid) 52%, var(--bg) 100%);
  -webkit-tap-highlight-color: transparent;
}

.en, .mono { font-family: var(--font-en); }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -44px; z-index: 200;
  display: inline-flex; align-items: center; min-height: 44px;
  background: var(--cyan); color: var(--on-accent); padding: 8px 14px; border-radius: 10px; font-weight: 800;
}
.skip-link:focus { top: 12px; }

.app-root { min-height: 100svh; }

.boot-screen, .auth-screen, .shell {
  min-height: 100svh;
}

.boot-screen {
  display: grid; place-items: center; color: var(--muted); font-weight: 700;
}

.brand {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 900; font-size: 1.22rem; padding: 4px 8px;
}
.brand-mark {
  background: var(--gem-gradient); background-size: 180% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand i { font-style: normal; color: var(--accent-ink); }

.auth-screen {
  display: grid; place-items: center; padding: 32px 16px; position: relative;
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
}
.auth-card {
  width: min(100%, 440px);
  background: linear-gradient(180deg, var(--auth-bg), var(--auth-bg-2));
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px 24px 24px;
}
.auth-card h1 { font-size: 1.55rem; font-weight: 900; margin: 14px 0 6px; }
.auth-card .lede { color: var(--muted-2); line-height: 1.8; margin-bottom: 22px; }
.auth-card .btn { width: 100%; }
.auth-foot { margin-top: 18px; color: var(--muted-2); font-size: .88rem; }

.shell {
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  grid-template-rows: var(--nav-h) 1fr;
}

.sidebar {
  grid-row: 1 / span 2;
  background: var(--sidebar-bg);
  border-inline-end: 1px solid var(--stroke);
  padding: 18px 12px calc(18px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 16px;
  backdrop-filter: blur(22px);
}
.tenant-chip {
  margin-top: auto; font-size: .78rem; padding: 10px 12px; border-radius: 14px;
  border: 1px solid var(--stroke); background: var(--glass-2); color: var(--muted-2);
}
.drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.drawer-account { display: none; }
.drawer-close { display: none; }
.nav-list { display: flex; flex-direction: column; gap: 4px; }
.nav-list a, .nav-list button.nav-link {
  display: flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 10px 12px; border-radius: 14px; color: var(--nav-fg); font-weight: 700; text-align: start; width: 100%;
  border: 1px solid transparent;
}
.nav-list a:hover, .nav-list button.nav-link:hover { background: var(--nav-hover-bg); color: var(--nav-hover-fg); }
.nav-list a.active {
  background: var(--nav-active-bg);
  color: var(--accent-ink);
  border-color: var(--nav-active-border);
  box-shadow: var(--glow-cyan);
}
.nav-ico { width: 18px; height: 18px; flex: 0 0 18px; opacity: .88; }

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 20px; padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid var(--stroke); background: var(--topbar-bg);
  backdrop-filter: blur(20px);
}
.topbar-title {
  font-weight: 800; min-width: 0; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .86rem; min-width: 0; }
.topbar-meta .en {
  max-width: min(36vw, 220px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 6px 10px; border-radius: var(--radius-pill); background: var(--glass); border: 1px solid var(--stroke);
}
.menu-btn, .theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: 0 0 44px;
  border-radius: 12px; border: 1px solid var(--stroke); background: var(--glass);
  color: var(--text);
}
.menu-btn { display: none; }
.theme-toggle:hover, .menu-btn:hover { border-color: var(--nav-active-border); box-shadow: var(--glow-cyan); }
.theme-toggle svg, .menu-btn svg { width: 20px; height: 20px; display: block; }
.auth-screen .theme-toggle {
  position: absolute; inset-block-start: calc(16px + env(safe-area-inset-top, 0px)); inset-inline-end: 16px;
}

.main {
  padding: 22px 22px calc(40px + env(safe-area-inset-bottom, 0px));
  overflow: auto;
  min-width: 0;
}

.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.social-copy { white-space: pre-wrap; line-height: 1.85; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); }
.social-media { margin: 0; }
.social-media img, .approval-image { display: block; max-width: 100%; max-height: 520px; object-fit: contain; border-radius: 14px; border: 1px solid var(--border); }
.approval-image { max-height: 320px; margin-block: 12px; }
.channel-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px;
}
.channel-tab {
  min-height: 40px; padding: 8px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--stroke); background: var(--glass-2); color: var(--muted-2);
  font-weight: 800; text-decoration: none;
}
.channel-tab.active {
  color: var(--text); border-color: var(--nav-active-border); box-shadow: var(--glow-cyan);
}
.channel-card {
  margin-top: 12px; padding: 14px; border-radius: 16px;
  border: 1px solid var(--stroke); background: var(--glass-2);
}
.channel-card-head {
  display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap;
}
.channel-card-title {
  display: block;
  min-width: 0;
  margin-inline-end: 12px;
  line-height: 1.45;
}
.channel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.channel-actions .btn {
  margin: 4px 8px 4px 0;
}
.channel-panel h2 { margin-bottom: 8px; }
@media (max-width: 860px) {
  .channel-card-head { align-items: flex-start; }
}
.channel-destination + .channel-destination { border-top: 1px solid var(--border); }
.channel-account { align-items: flex-start; }
.approval-preview + .approval-preview { margin-top: 12px; }
.page-head .kicker {
  font-family: var(--font-en); font-size: .72rem; letter-spacing: .16em; color: var(--accent-ink);
  font-weight: 700; text-transform: uppercase;
}
.page-head h1 { font-size: 1.5rem; font-weight: 900; letter-spacing: -.02em; }
.page-head p { color: var(--muted-2); margin-top: 4px; }

.grid { display: grid; gap: 14px; }
.kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.two { grid-template-columns: 1.4fr .8fr; }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: linear-gradient(180deg, var(--card-bg), var(--card-bg-2));
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 18px;
  min-width: 0;
  position: relative;
}
.card::before {
  content: ""; position: absolute; inset-inline: 18px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(103, 232, 255, .28), transparent);
  pointer-events: none;
}
.card h2, .card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 10px; }
.kpi-label { color: var(--muted-2); font-size: .82rem; font-weight: 700; }
.kpi-value { font-size: 1.75rem; font-weight: 900; margin-top: 6px; font-family: var(--font-en); letter-spacing: -.03em; }
.kpi-sub { color: var(--muted); font-size: .82rem; margin-top: 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 9px 16px; border-radius: 14px; font-weight: 800; border: 1px solid transparent;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(120deg, var(--cyan), var(--blue), var(--violet));
  color: var(--on-accent);
  box-shadow: 0 10px 22px rgba(90, 147, 255, .18);
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.06); }
.btn-ghost {
  border-color: var(--ghost-border); background: var(--ghost-bg);
}
.btn-ghost:hover:not(:disabled) { border-color: var(--accent-ink); }
.btn-danger { border-color: var(--err-border); color: var(--danger); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-sm { margin-bottom: 14px; }
.stack-xs { margin-bottom: 10px; }
.mt-sm { margin-top: 10px; }
.mt-md { margin-top: 14px; }
.mt-lg { margin-top: 16px; }
.mt-12 { margin-top: 12px; }
.heading-gap { margin: 18px 0 10px; }
.time-meta { font-size: .75rem; }
.field-flush { margin: 0; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--radius-pill); font-size: .75rem; font-weight: 800;
  border: 1px solid var(--stroke); background: var(--glass); color: var(--muted);
}
.badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85;
}
.badge-ok { color: var(--wgreen); border-color: var(--ok-border); background: var(--ok-bg); }
.badge-warn { color: var(--gold); border-color: var(--warn-border); background: var(--warn-bg); }
.badge-info { color: var(--accent-ink); border-color: var(--info-border); background: var(--info-bg); }
.badge-err { color: var(--danger); border-color: var(--err-border); background: var(--err-bg); }
.badge-muted { color: var(--muted-2); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-weight: 700; font-size: .9rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  border-radius: 14px; border: 1px solid var(--stroke-2);
  background: var(--input-bg);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent-ink); box-shadow: var(--glow-cyan);
}
.help { color: var(--muted-2); font-size: .82rem; }
.err { color: var(--danger); font-size: .86rem; font-weight: 700; min-height: 1.2em; }
.auth-msg { font-size: .86rem; font-weight: 700; min-height: 1.2em; margin: 8px 0 12px; }
.auth-msg-error { color: var(--danger); }
.auth-msg-success { color: var(--wgreen); }
.auth-msg-info { color: var(--accent-ink); }
.auth-card.is-busy .btn-primary { opacity: .7; }
.btn:disabled { opacity: .65; cursor: not-allowed; }
.country-combo { position: relative; }
.country-combo-list {
  position: absolute; inset-inline: 0; top: calc(100% - 4px); z-index: 8;
  max-height: 240px; overflow: auto; margin: 0; padding: 6px 0;
  list-style: none; border: 1px solid var(--stroke-2); border-radius: 14px;
  background: var(--auth-bg); box-shadow: var(--shadow);
}
.country-combo-list [role="option"] {
  padding: 10px 12px; min-height: 44px; cursor: pointer; display: flex; align-items: center;
}
.country-combo-list [role="option"]:hover,
.country-combo-list [role="option"][aria-selected="true"] {
  background: var(--glass);
}
.phone-e164-combo { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .phone-e164-combo { grid-template-columns: minmax(220px, 1.1fr) 1fr; }
}

.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: start; padding: 12px 10px; border-bottom: 1px solid var(--stroke); }
th { color: var(--muted-2); font-size: .78rem; font-weight: 800; }
.row-link { display: block; }

.state {
  padding: 32px 18px; text-align: center; color: var(--muted);
  border: 1px dashed var(--stroke); border-radius: var(--radius-md);
  background: var(--glass-2);
}
.state strong { display: block; color: var(--text); margin-bottom: 6px; font-size: 1.02rem; }
.state .nav-ico { width: 28px; height: 28px; margin: 0 auto 10px; display: block; color: var(--accent-ink); }
.loading { color: var(--muted); padding: 24px; }
.skeleton-stack { display: grid; gap: 10px; margin-bottom: 10px; }
.skeleton {
  height: 14px; border-radius: 10px; background: var(--shimmer), var(--glass);
  background-size: 220% 100%;
}
.skeleton.short { width: 46%; }
.loading-label { font-weight: 700; }

.list { display: flex; flex-direction: column; gap: 8px; }
.list-item {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  min-height: 44px; padding: 13px 14px; border-radius: 16px; border: 1px solid var(--stroke); background: var(--glass-2);
}
.list-item:hover { border-color: var(--stroke-2); }
.muted { color: var(--muted-2); }
.warn-item { padding: 10px 12px; border-radius: 14px; border: 1px solid var(--warn-item-border); background: var(--warn-item-bg); margin-bottom: 8px; }

.chat-layout {
  display: grid; grid-template-rows: auto 1fr auto auto;
  min-height: calc(100svh - var(--nav-h) - 56px);
}
.chat-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chat-log { display: flex; flex-direction: column; gap: 12px; overflow: auto; padding: 8px 0 16px; }
.bubble {
  max-width: min(78%, 640px); padding: 12px 14px; border-radius: 18px; line-height: 1.75;
  border: 1px solid var(--stroke);
}
.bubble .who { font-size: .72rem; font-weight: 800; margin-bottom: 4px; color: var(--accent-ink); }
.bubble.user { margin-inline-start: auto; background: var(--bubble-user); border-end-end-radius: 8px; }
.bubble.agent { background: var(--bubble-agent); border-end-start-radius: 8px; }
.bubble.system { background: var(--bubble-system); align-self: center; max-width: min(88%, 520px); text-align: center; }
.msg-card {
  max-width: min(78%, 640px); padding: 12px; border-radius: 16px; border: 1px solid var(--info-border);
  background: var(--info-bg);
}
.chat-form {
  display: flex; gap: 8px; align-items: flex-end;
  padding: 10px; border: 1px solid var(--stroke); border-radius: 18px; background: var(--glass);
}
.chat-form textarea {
  flex: 1; min-width: 0; min-height: 52px; max-height: 160px;
  padding: 10px 12px; border-radius: 12px; border: 1px solid transparent;
  background: transparent;
}
.chat-form .btn { flex: 0 0 auto; min-height: 44px; min-width: 44px; }
.chart-empty {
  min-height: 132px; display: grid; place-items: center; border: 1px dashed var(--chart-grid);
  border-radius: 14px; color: var(--muted-2); font-size: .86rem; text-align: center; padding: 16px;
  background:
    linear-gradient(180deg, transparent, var(--glass-2)),
    repeating-linear-gradient(-32deg, transparent, transparent 10px, var(--chart-grid) 10px, var(--chart-grid) 11px);
}

.steps { display: flex; flex-direction: column; gap: 8px; }
.step { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; border: 1px solid var(--stroke); }
.step.done { border-color: var(--step-done-border); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted-2); flex: 0 0 10px; }
.step.done .dot { background: var(--wgreen); box-shadow: 0 0 10px rgba(107, 225, 138, .45); }

.source-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.source-card .status { margin-top: 10px; }
.source-card .cta { margin-top: 12px; }

.overlay {
  position: fixed; inset: 0; background: var(--overlay); display: grid; place-items: center; z-index: 80; padding: 16px;
}
.qr-frame {
  display: grid; place-items: center; min-height: 180px; background: #fff; border-radius: 12px; padding: 12px;
}
.qr-frame img { width: min(240px, 70vw); height: auto; }
.dialog {
  width: min(100%, 460px); background: var(--bg-elevated); border: 1px solid var(--stroke); border-radius: 20px; padding: 20px;
  box-shadow: var(--shadow);
}
.scrim { display: none; }
.sidebar-open .scrim {
  display: block; position: fixed; inset: 0; background: var(--scrim); z-index: 40;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes shimmer-move {
  from { background-position: 120% 0; }
  to { background-position: -20% 0; }
}
@keyframes bubble-in {
  from { opacity: 0; transform: translateY(6px) scale(.98); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  body, .card, .sidebar, .topbar, .auth-card, .bubble, .btn, .btn-ghost, .field input,
  .field select, .field textarea, .list-item, .badge, .dialog, .theme-toggle, .menu-btn {
    transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
      color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
  }
  .main { animation: fade-up var(--dur-slow) var(--ease); }
  .bubble { animation: bubble-in var(--dur) var(--ease); }
  .skeleton { animation: shimmer-move 1.4s linear infinite; }
  .overlay { animation: fade-up var(--dur) var(--ease); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
  .list-item:hover { transform: translateY(-1px); }
}

@media (max-width: 1100px) {
  .kpis, .three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .shell {
    display: flex; flex-direction: column;
    grid-template-columns: none;
    min-height: 100svh;
    height: 100svh;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; width: min(86vw, 300px); z-index: 50;
    transform: translateX(-110%); transition: transform var(--dur) var(--ease), visibility var(--dur) var(--ease);
    height: 100svh; height: 100dvh; visibility: hidden; pointer-events: none;
  }
  html[dir="rtl"] .sidebar { inset: 0 0 0 auto; transform: translateX(110%); }
  .sidebar-open .sidebar,
  html[dir="rtl"] .sidebar-open .sidebar { transform: none; visibility: visible; pointer-events: auto; }
  .menu-btn { display: inline-flex; }
  .drawer-close { display: inline-flex; }
  .topbar {
    flex: 0 0 auto;
    height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
    min-height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
    padding-inline: 12px;
    gap: 8px;
  }
  .topbar-title { flex: 1 1 auto; }
  .topbar-meta { flex: 0 0 auto; }
  .topbar-meta .btn { min-height: 44px; padding-inline: 12px; }
  .main {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    display: flex;
    flex-direction: column;
    padding: 16px 14px calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .page-head { flex: 0 0 auto; }
  .kpis { grid-template-columns: 1fr; }
  .three { grid-template-columns: 1fr; }
  .source-grid { grid-template-columns: 1fr; }
  .bubble { max-width: 92%; }
  .chat-layout {
    flex: 1 1 auto;
    min-height: 0;
  }
  .chat-form {
    position: sticky;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 2;
  }
  .page-head h1 { font-size: 1.28rem; }
}

@media (max-width: 480px) {
  .topbar-email, .topbar-logout { display: none; }
  .drawer-account {
    display: flex; flex-direction: column; gap: 8px;
  }
  .drawer-email {
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    padding: 8px 10px; border-radius: var(--radius-pill); background: var(--glass);
    border: 1px solid var(--stroke); color: var(--muted);
  }
}

.usage-chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 32px; padding: 4px 10px; border-radius: var(--radius-pill);
  border: 1px solid var(--stroke); background: var(--glass); font-size: .78rem; font-weight: 800;
  white-space: nowrap;
}
.usage-chip.usage-warning { border-color: var(--warn-border); background: var(--warn-bg); color: var(--gold); }
.usage-chip.usage-critical, .usage-chip.usage-exhausted { border-color: var(--err-border); color: var(--danger); }
.usage-bar {
  height: 8px; border-radius: 99px; background: var(--glass); border: 1px solid var(--stroke); overflow: hidden; margin: 8px 0;
}
.usage-bar > span { display: block; height: 100%; width: 0; background: var(--accent); }
.usage-bar.usage-p-5 > span { width: 5%; } .usage-bar.usage-p-10 > span { width: 10%; }
.usage-bar.usage-p-15 > span { width: 15%; } .usage-bar.usage-p-20 > span { width: 20%; }
.usage-bar.usage-p-25 > span { width: 25%; } .usage-bar.usage-p-30 > span { width: 30%; }
.usage-bar.usage-p-35 > span { width: 35%; } .usage-bar.usage-p-40 > span { width: 40%; }
.usage-bar.usage-p-45 > span { width: 45%; } .usage-bar.usage-p-50 > span { width: 50%; }
.usage-bar.usage-p-55 > span { width: 55%; } .usage-bar.usage-p-60 > span { width: 60%; }
.usage-bar.usage-p-65 > span { width: 65%; } .usage-bar.usage-p-70 > span { width: 70%; }
.usage-bar.usage-p-75 > span { width: 75%; } .usage-bar.usage-p-80 > span { width: 80%; }
.usage-bar.usage-p-85 > span { width: 85%; } .usage-bar.usage-p-90 > span { width: 90%; }
.usage-bar.usage-p-95 > span { width: 95%; } .usage-bar.usage-p-100 > span { width: 100%; }
.usage-bar.usage-warning > span { background: var(--gold); }
.usage-bar.usage-critical > span, .usage-bar.usage-exhausted > span { background: var(--danger); }
.pay-qr { max-width: 160px; border-radius: 12px; border: 1px solid var(--stroke); margin-top: 8px; }
@media (max-width: 720px) {
  .usage-chip { font-size: .7rem; padding: 4px 8px; }
}

.phone-e164 { display: grid; gap: 8px; margin: 8px 0; }
@media (min-width: 720px) {
  .phone-e164 { grid-template-columns: minmax(140px, 180px) 1fr; align-items: end; }
}
.wa-manage { margin-top: 8px; }
.wa-manage summary { cursor: pointer; font-weight: 700; }

.toast-host {
  position: fixed; inset-inline-start: 16px; bottom: 16px; z-index: 80;
  display: grid; gap: 8px; max-width: min(360px, calc(100vw - 32px)); pointer-events: none;
}
.toast {
  pointer-events: auto; padding: 10px 14px; border-radius: 12px;
  border: 1px solid var(--stroke); background: var(--glass); font-weight: 700;
}
.toast-success { border-color: color-mix(in srgb, var(--accent) 50%, var(--stroke)); }
.toast-error { border-color: var(--err-border); color: var(--danger); }
.toast-info { color: var(--text); }
.toast-corr { display: block; font-size: .72rem; font-weight: 600; opacity: .75; margin-top: 4px; }
.reg-row { display: grid; gap: 12px; }
@media (min-width: 720px) { .reg-row { grid-template-columns: 1fr 1fr; } }
.password-wrap { display: flex; gap: 8px; align-items: stretch; }
.password-wrap input { flex: 1; }
.password-toggle { min-height: 44px; min-width: 72px; }
.otp-input { letter-spacing: .35em; font-size: 1.2rem; max-width: 14rem; }
.onboard-card, .onboard-grid { margin-bottom: 16px; }
.onboard-grid { display: grid; gap: 12px; }
@media (min-width: 900px) { .onboard-grid { grid-template-columns: 1fr 1fr; } }
.usage-bar.usage-p-0 > span { width: 0; }
.agent-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
