/* Elleve CRM — design system inspirado no macOS e iOS */
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --bg: #f2f2f7;
  --window: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f7fa;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.94);
  --sidebar: rgba(236, 236, 241, 0.72);
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #aeaeb2;
  --sep: rgba(60, 60, 67, 0.13);
  --sep-strong: rgba(60, 60, 67, 0.22);
  --fill: rgba(118, 118, 128, 0.12);
  --fill-2: rgba(118, 118, 128, 0.08);
  --hover: rgba(0, 0, 0, 0.045);
  --selected: rgba(0, 0, 0, 0.075);
  --accent: #007aff;
  --accent-rgb: 0, 122, 255;
  --green: #34c759;
  --wa: #25d366;
  --orange: #ff9500;
  --red: #ff3b30;
  --purple: #af52de;
  --indigo: #5856d6;
  --teal: #30b0c7;
  --yellow: #ffcc00;
  --bubble-in: #e9e9eb;
  --bubble-out: #007aff;
  --bubble-bot: #5856d6;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05), 0 1px 1px rgba(0, 0, 0, 0.03);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.08);
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --sidebar-w: 252px;
  --toolbar-h: 56px;
  --tabbar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #000000;
  --window: #1c1c1e;
  --surface: #1c1c1e;
  --surface-2: #2c2c2e;
  --glass: rgba(30, 30, 32, 0.72);
  --glass-strong: rgba(36, 36, 38, 0.95);
  --sidebar: rgba(28, 28, 30, 0.7);
  --text: #f5f5f7;
  --text-2: #98989d;
  --text-3: #636366;
  --sep: rgba(84, 84, 88, 0.45);
  --sep-strong: rgba(84, 84, 88, 0.7);
  --fill: rgba(118, 118, 128, 0.24);
  --fill-2: rgba(118, 118, 128, 0.16);
  --hover: rgba(255, 255, 255, 0.06);
  --selected: rgba(255, 255, 255, 0.1);
  --accent: #0a84ff;
  --accent-rgb: 10, 132, 255;
  --green: #30d158;
  --orange: #ff9f0a;
  --red: #ff453a;
  --purple: #bf5af2;
  --indigo: #5e5ce6;
  --bubble-in: #26252a;
  --bubble-out: #0a84ff;
  --bubble-bot: #5e5ce6;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
hr { border: 0; border-top: 1px solid var(--sep); margin: 16px 0; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 15px; height: 15px; }
.icon-lg { width: 22px; height: 22px; }
.icon-xl { width: 30px; height: 30px; }
.muted { color: var(--text-2); }
.subtle { color: var(--text-3); }
.small { font-size: 12px; }
.mono { font-family: var(--mono); }
.hidden { display: none !important; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.row-wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.between { justify-content: space-between; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ------------------------------------------------------------------ fundo estilo wallpaper */
.wallpaper {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(60% 50% at 10% 0%, rgba(255, 159, 10, 0.18), transparent 70%),
    radial-gradient(50% 60% at 100% 10%, rgba(10, 132, 255, 0.22), transparent 70%),
    radial-gradient(60% 60% at 30% 100%, rgba(52, 199, 89, 0.18), transparent 70%),
    radial-gradient(40% 40% at 80% 90%, rgba(191, 90, 242, 0.18), transparent 70%),
    var(--bg);
}
[data-theme="dark"] .wallpaper {
  background:
    radial-gradient(60% 50% at 10% 0%, rgba(255, 159, 10, 0.12), transparent 70%),
    radial-gradient(50% 60% at 100% 10%, rgba(10, 132, 255, 0.18), transparent 70%),
    radial-gradient(60% 60% at 30% 100%, rgba(48, 209, 88, 0.1), transparent 70%),
    radial-gradient(40% 40% at 80% 90%, rgba(191, 90, 242, 0.14), transparent 70%),
    #000;
}

/* ------------------------------------------------------------------ layout do app */
.app { display: flex; height: 100vh; height: 100dvh; overflow: hidden; }
.sidebar {
  width: var(--sidebar-w); flex: none; display: flex; flex-direction: column;
  background: var(--sidebar);
  backdrop-filter: blur(40px) saturate(180%); -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-right: 1px solid var(--sep);
  padding: 14px 10px 10px;
  z-index: 40;
}
.traffic { display: flex; gap: 8px; padding: 2px 8px 14px; }
.traffic i { width: 12px; height: 12px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.15); }
.traffic i:nth-child(1) { background: #ff5f57; }
.traffic i:nth-child(2) { background: #febc2e; }
.traffic i:nth-child(3) { background: #28c840; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; }
.brand-logo {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, #34c759, #0a9f4a); box-shadow: 0 4px 12px rgba(52, 199, 89, 0.35);
}
.brand-name { font-weight: 700; font-size: 15px; letter-spacing: -0.02em; }
.brand-sub { font-size: 11px; color: var(--text-2); }
.nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; }
.nav-title { font-size: 11px; font-weight: 600; color: var(--text-3); padding: 14px 10px 4px; text-transform: none; letter-spacing: 0.01em; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--r-sm);
  color: var(--text); font-weight: 500; font-size: 13.5px; transition: background 0.15s;
}
.nav a .icon { color: var(--accent); }
.nav a:hover { background: var(--hover); }
.nav a.active { background: var(--selected); }
.nav .badge { margin-left: auto; }
.sidebar-foot { border-top: 1px solid var(--sep); padding-top: 10px; margin-top: 8px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--r-sm); cursor: pointer; width: 100%; background: none; border: 0; color: inherit; font: inherit; text-align: left; }
.user-chip:hover { background: var(--hover); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--window); }
.toolbar {
  height: var(--toolbar-h); flex: none; display: flex; align-items: center; gap: 12px; padding: 0 18px;
  border-bottom: 1px solid var(--sep);
  background: var(--glass); backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%);
  position: relative; z-index: 30;
}
.toolbar h1 { font-size: 16px; font-weight: 650; }
.toolbar .spacer { flex: 1; }
.content { flex: 1; overflow-y: auto; padding: 28px 32px 48px; -webkit-overflow-scrolling: touch; }
.content.full { padding: 0; overflow: hidden; display: flex; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.large-title { font-size: 30px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }
.page-sub { color: var(--text-2); margin-top: 4px; font-size: 14px; }
.container { max-width: 1180px; margin: 0 auto; }
.container-sm { max-width: 760px; margin: 0 auto; }

/* ------------------------------------------------------------------ seletor de WhatsApp (toolbar) */
.wa-switch {
  display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 12px 0 6px; border-radius: 999px;
  background: var(--fill-2); border: 1px solid var(--sep); cursor: pointer; color: var(--text); font: inherit; max-width: 300px;
  transition: background 0.15s, transform 0.1s;
}
.wa-switch:hover { background: var(--fill); }
.wa-switch:active { transform: scale(0.98); }
.wa-icon {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; position: relative; flex: none;
  background: linear-gradient(145deg, #3ee07a, #1faa52);
}
.wa-icon .icon { width: 16px; height: 16px; }
.wa-icon .dot { position: absolute; right: -1px; bottom: -1px; border: 2px solid var(--window); }
.wa-switch-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; min-width: 0; }
.wa-switch-text b { font-size: 13px; font-weight: 600; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-switch-text small { font-size: 11px; color: var(--text-2); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--text-3); flex: none; }
.dot.connected { background: var(--green); }
.dot.qr, .dot.connecting, .dot.reconnecting { background: var(--orange); }
.dot.disconnected { background: var(--red); }
.dot.pulse { animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.5); } 70% { box-shadow: 0 0 0 7px rgba(52, 199, 89, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); } }

/* ------------------------------------------------------------------ popover / menus */
.popover {
  position: absolute; z-index: 100; min-width: 260px; max-width: calc(100vw - 24px);
  background: var(--glass-strong); backdrop-filter: blur(40px) saturate(180%); -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--sep); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px;
  opacity: 0; transform: scale(0.96) translateY(-4px); transform-origin: top right; pointer-events: none;
  transition: opacity 0.16s, transform 0.2s var(--ease);
}
.popover.open { opacity: 1; transform: none; pointer-events: auto; }
.popover-title { font-size: 11px; font-weight: 600; color: var(--text-2); padding: 8px 10px 4px; }
.menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 9px; border: 0; background: none;
  color: var(--text); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer;
}
.menu-item:hover { background: var(--accent); color: #fff; }
.menu-item:hover .muted, .menu-item:hover .icon { color: #fff; }
.menu-item.danger { color: var(--red); }
.menu-item.danger:hover { background: var(--red); color: #fff; }
.menu-item .check { margin-left: auto; color: var(--accent); }
.menu-item:hover .check { color: #fff; }
.menu-sep { height: 1px; background: var(--sep); margin: 5px 8px; }
.menu-form { margin: 0; }

/* ------------------------------------------------------------------ avatares e badges */
.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 13px;
  background: linear-gradient(160deg, #a1a1aa, #71717a); letter-spacing: 0.02em; user-select: none;
}
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.avatar.lg { width: 56px; height: 56px; font-size: 20px; }
.avatar.xl { width: 84px; height: 84px; font-size: 30px; }
.avatar.c0 { background: linear-gradient(160deg, #5ac8fa, #007aff); }
.avatar.c1 { background: linear-gradient(160deg, #34c759, #248a3d); }
.avatar.c2 { background: linear-gradient(160deg, #ffb340, #ff9500); }
.avatar.c3 { background: linear-gradient(160deg, #da8fff, #af52de); }
.avatar.c4 { background: linear-gradient(160deg, #ff6482, #ff2d55); }
.avatar.c5 { background: linear-gradient(160deg, #7d7aff, #5856d6); }
.avatar.c6 { background: linear-gradient(160deg, #6ac4dc, #30b0c7); }
.avatar.c7 { background: linear-gradient(160deg, #a2845e, #7f6545); }
.badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-grid; place-items: center;
  background: var(--red); color: #fff; font-size: 11.5px; font-weight: 600;
}
.badge.gray { background: var(--fill); color: var(--text-2); }
.badge.green { background: var(--green); }
.pill {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 11.5px; font-weight: 600;
  background: var(--fill-2); color: var(--text-2); white-space: nowrap;
}
.pill.bot { background: rgba(88, 86, 214, 0.14); color: var(--indigo); }
.pill.pending { background: rgba(255, 149, 0, 0.16); color: #c76f00; }
.pill.open { background: rgba(0, 122, 255, 0.13); color: var(--accent); }
.pill.closed { background: var(--fill-2); color: var(--text-2); }
.pill.connected { background: rgba(52, 199, 89, 0.15); color: #1f8a3c; }
.pill.qr, .pill.connecting, .pill.reconnecting { background: rgba(255, 149, 0, 0.16); color: #c76f00; }
.pill.disconnected { background: rgba(255, 59, 48, 0.12); color: var(--red); }
[data-theme="dark"] .pill.pending, [data-theme="dark"] .pill.qr, [data-theme="dark"] .pill.connecting, [data-theme="dark"] .pill.reconnecting { color: var(--orange); }
[data-theme="dark"] .pill.connected { color: var(--green); }
.tag { display: inline-flex; padding: 2px 8px; border-radius: 6px; background: rgba(var(--accent-rgb), 0.12); color: var(--accent); font-size: 11.5px; font-weight: 600; }

/* ------------------------------------------------------------------ botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 15px; border-radius: 10px;
  border: 0; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap; user-select: none;
  background: var(--fill); color: var(--text); transition: transform 0.1s, filter 0.15s, background 0.15s, opacity 0.15s;
}
.btn:hover { filter: brightness(0.97); }
.btn:active { transform: scale(0.97); }
.btn:disabled, .btn.loading { opacity: 0.55; pointer-events: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(var(--accent-rgb), 0.3); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-tinted { background: rgba(var(--accent-rgb), 0.13); color: var(--accent); }
.btn-green { background: var(--green); color: #fff; }
.btn-danger { background: rgba(255, 59, 48, 0.12); color: var(--red); }
.btn-danger-fill { background: var(--red); color: #fff; }
.btn-plain { background: transparent; color: var(--accent); padding: 0 8px; }
.btn-plain:hover { background: var(--hover); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--hover); }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px; display: inline-grid; place-items: center; border: 0; background: transparent; color: var(--text-2); cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--hover); color: var(--text); }
.icon-btn.round { border-radius: 50%; }
.icon-btn.accent { color: var(--accent); }

/* ------------------------------------------------------------------ formulários estilo iOS */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.form-input, .field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .field select, .field textarea, select.form-input, textarea.form-input {
  width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid transparent; outline: none;
  background: var(--fill-2); color: var(--text); font: inherit; font-size: 14px; transition: box-shadow 0.15s, background 0.15s, border 0.15s;
}
.field textarea, textarea.form-input { height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; line-height: 1.45; }
.form-input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  background: var(--surface); border-color: rgba(var(--accent-rgb), 0.6); box-shadow: 0 0 0 3.5px rgba(var(--accent-rgb), 0.2);
}
.field select, select.form-input { appearance: none; -webkit-appearance: none; padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.errorlist { list-style: none; padding: 0; margin: 0; color: var(--red); font-size: 12.5px; }
.help { font-size: 12px; color: var(--text-2); }
.search {
  position: relative; display: flex; align-items: center;
}
.search .icon { position: absolute; left: 10px; color: var(--text-2); width: 16px; height: 16px; pointer-events: none; }
.search input { padding-left: 34px !important; height: 36px !important; border-radius: 10px; }

/* toggle iOS */
.switch { position: relative; display: inline-block; width: 51px; height: 31px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span {
  position: absolute; inset: 0; border-radius: 31px; background: var(--fill); cursor: pointer; transition: background 0.25s;
}
.switch span::before {
  content: ""; position: absolute; width: 27px; height: 27px; left: 2px; top: 2px; border-radius: 50%; background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15), 0 1px 1px rgba(0, 0, 0, 0.16); transition: transform 0.25s var(--ease);
}
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::before { transform: translateX(20px); }
.switch.sm { width: 40px; height: 24px; }
.switch.sm span::before { width: 20px; height: 20px; }
.switch.sm input:checked + span::before { transform: translateX(16px); }

/* controle segmentado */
.segmented {
  display: inline-flex; padding: 2px; border-radius: 9px; background: var(--fill-2); gap: 2px; position: relative; max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.segmented::-webkit-scrollbar { display: none; }
.segmented button, .segmented a {
  border: 0; background: transparent; color: var(--text); font: inherit; font-size: 12.5px; font-weight: 500; height: 28px; padding: 0 12px;
  border-radius: 7px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; transition: background 0.2s, box-shadow 0.2s;
}
.segmented .active { background: var(--surface); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.04); font-weight: 600; }
[data-theme="dark"] .segmented .active { background: #636366; }
.segmented .count { font-size: 11px; color: var(--text-2); font-weight: 600; }

/* ------------------------------------------------------------------ cards e listas agrupadas */
.card {
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--sep);
}
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px 0; }
.card-head h3 { font-size: 15px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.section-title { font-size: 12.5px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.04em; margin: 26px 4px 8px; }
.list { background: var(--surface); border-radius: var(--r); border: 1px solid var(--sep); overflow: hidden; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 11px 16px; position: relative; color: var(--text); }
.list-row + .list-row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--sep); }
.list-row.with-avatar + .list-row.with-avatar::before { left: 64px; }
a.list-row:hover { background: var(--hover); }
.list-row .chev { color: var(--text-3); }

/* widgets estilo iOS */
.widget { padding: 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--sep); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; min-height: 132px; }
.widget-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.widget-value { font-size: 32px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.widget-label { font-size: 13px; color: var(--text-2); font-weight: 500; }
.bg-blue { background: linear-gradient(150deg, #5ac8fa, #007aff); }
.bg-green { background: linear-gradient(150deg, #4cd964, #28a745); }
.bg-orange { background: linear-gradient(150deg, #ffb340, #ff9500); }
.bg-purple { background: linear-gradient(150deg, #8e8cf7, #5856d6); }
.bg-pink { background: linear-gradient(150deg, #ff6482, #ff2d55); }
.bg-teal { background: linear-gradient(150deg, #6ac4dc, #30b0c7); }
.bg-gray { background: linear-gradient(150deg, #aeaeb2, #8e8e93); }

.chart { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding: 10px 4px 0; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart-bar { width: 100%; max-width: 38px; border-radius: 8px 8px 4px 4px; background: rgba(var(--accent-rgb), 0.18); position: relative; min-height: 4px; overflow: hidden; transition: height 0.6s var(--ease); }
.chart-bar i { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, #8e8cf7, #5856d6); border-radius: 0 0 4px 4px; }
.chart-bar b { position: absolute; left: 0; right: 0; bottom: 0; top: 0; }
.chart-col span { font-size: 11px; color: var(--text-2); font-weight: 500; }
.chart-col em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--text); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--text-2); white-space: nowrap; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 5px; vertical-align: -1px; }

.empty { text-align: center; padding: 48px 20px; color: var(--text-2); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--fill-2); color: var(--text-2); margin-bottom: 4px; }
.empty h3 { color: var(--text); font-size: 17px; }

/* ------------------------------------------------------------------ conexões (cartões estilo iPhone) */
.device {
  border-radius: 26px; background: var(--surface); border: 1px solid var(--sep); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.device:hover { box-shadow: var(--shadow); }
.device.current { outline: 2.5px solid rgba(var(--accent-rgb), 0.55); outline-offset: -1px; }
.device-top { padding: 18px 18px 14px; display: flex; gap: 14px; align-items: center; position: relative; }
.device-avatar { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 18px; flex: none; position: relative; }
.device-avatar .wa-mini { position: absolute; right: -5px; bottom: -5px; width: 22px; height: 22px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; border: 2.5px solid var(--surface); color: #fff; }
.device-avatar .wa-mini .icon { width: 12px; height: 12px; }
.device-body { padding: 0 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.device-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.device-meta div { background: var(--fill-2); border-radius: 12px; padding: 9px 11px; }
.device-meta small { display: block; font-size: 11px; color: var(--text-2); font-weight: 500; }
.device-meta b { font-size: 13px; font-weight: 600; }
.device-actions { border-top: 1px solid var(--sep); display: flex; }
.device-actions > * { flex: 1; }
.device-actions .btn { width: 100%; border-radius: 0; height: 46px; background: transparent; color: var(--accent); }
.device-actions .btn:hover { background: var(--hover); }
.device-actions > * + * { border-left: 1px solid var(--sep); }
.device-error { font-size: 12px; color: var(--red); background: rgba(255, 59, 48, 0.08); padding: 8px 10px; border-radius: 10px; }
.add-device {
  border: 2px dashed var(--sep-strong); border-radius: 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 230px; color: var(--text-2); background: transparent; cursor: pointer; font: inherit; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.add-device:hover { background: rgba(var(--accent-rgb), 0.05); color: var(--accent); border-color: rgba(var(--accent-rgb), 0.5); }
.add-device .plus { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--accent-rgb), 0.12); color: var(--accent); }

.qr-box { display: grid; grid-template-columns: 1fr 1.1fr; gap: 26px; align-items: center; }
.qr-frame {
  aspect-ratio: 1; border-radius: 22px; background: #fff; display: grid; place-items: center; padding: 14px; position: relative;
  box-shadow: 0 0 0 1px var(--sep), var(--shadow);
}
.qr-frame img { width: 100%; height: 100%; image-rendering: pixelated; border-radius: 8px; }
.qr-frame .qr-state { display: flex; flex-direction: column; align-items: center; gap: 10px; color: #6e6e73; text-align: center; padding: 20px; }
.qr-success { color: var(--green); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.steps li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--fill); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
.spinner.sm { width: 16px; height: 16px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ modais (sheets) */
dialog.sheet {
  border: 0; padding: 0; border-radius: var(--r-xl); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
  width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow: hidden; display: flex; flex-direction: column;
}
dialog.sheet:not([open]) { display: none; }
dialog.sheet.wide { width: min(780px, calc(100vw - 32px)); }
dialog.sheet[open] { animation: sheetIn 0.32s var(--ease); }
dialog.sheet::backdrop { background: rgba(0, 0, 0, 0.32); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn 0.25s; }
@keyframes sheetIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 12px; border-bottom: 1px solid var(--sep); }
.sheet-head h2 { font-size: 16px; flex: 1; text-align: center; }
.sheet-head .btn-plain { min-width: 70px; }
.sheet-body { padding: 20px; overflow-y: auto; }
.sheet-foot { padding: 14px 20px; border-top: 1px solid var(--sep); display: flex; justify-content: flex-end; gap: 10px; }
.grabber { display: none; width: 38px; height: 5px; border-radius: 3px; background: var(--sep-strong); margin: 8px auto 0; }

/* ------------------------------------------------------------------ toasts estilo Dynamic Island */
.island-wrap { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.island {
  display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 999px; background: #000; color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); font-size: 13.5px; font-weight: 500; max-width: min(520px, calc(100vw - 24px));
  animation: island 0.5s var(--ease); pointer-events: auto;
}
.island.out { animation: islandOut 0.35s var(--ease) forwards; }
.island .ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--green); }
.island.error .ic { background: var(--red); }
.island.warning .ic { background: var(--orange); }
.island.info .ic { background: var(--accent); }
.island .ic .icon { width: 15px; height: 15px; stroke-width: 2.6; }
@keyframes island { from { opacity: 0; transform: scale(0.6, 0.5); max-width: 120px; } to { opacity: 1; transform: none; } }
@keyframes islandOut { to { opacity: 0; transform: scale(0.7, 0.5) translateY(-10px); } }

/* Ligação recebida (banner estilo iOS) */
.call-alerts { position: fixed; top: calc(10px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); z-index: 1001; display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100vw - 20px)); pointer-events: none; }
.call-alert {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 26px;
  background: rgba(28, 28, 30, 0.94); color: #fff; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%); animation: island 0.45s var(--ease);
}
.call-alert .avatar { width: 46px; height: 46px; font-size: 16px; flex: none; animation: callPulse 1.6s ease-out infinite; }
.call-alert .grow { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.call-alert b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.call-alert small { display: flex; align-items: center; gap: 5px; font-size: 12px; color: rgba(255, 255, 255, 0.62); }
.call-alert small.hint { color: rgba(255, 255, 255, 0.45); font-size: 11.5px; }
.call-act { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; flex: none; cursor: pointer; color: #fff; text-decoration: none; }
.call-act.dismiss { background: rgba(255, 255, 255, 0.16); }
.call-act.open { background: var(--green); }
.call-act:hover { filter: brightness(1.12); }
@keyframes callPulse { 0% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.55); } 70% { box-shadow: 0 0 0 12px rgba(52, 199, 89, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); } }

/* Ligação dentro da conversa */
.call-card { display: flex; align-items: center; gap: 10px; min-width: 220px; padding: 2px 0; }
.call-card .grow { display: flex; flex-direction: column; min-width: 0; }
.call-card b { font-size: 14px; }
.call-card small { font-size: 12px; color: var(--text-2); }
.call-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(52, 199, 89, 0.15); color: var(--green); }
.call-card.missed .call-ic, .call-card.rejected .call-ic { background: rgba(255, 59, 48, 0.12); color: var(--red); }
.call-card.missed b { color: var(--red); }
.call-card.ringing .call-ic { animation: callPulse 1.6s ease-out infinite; }
.call-card .icon-btn { text-decoration: none; }
.block { display: block; }
.menu-item:hover .subtle { color: rgba(255, 255, 255, 0.8); }
a.menu-item { text-decoration: none; }

/* ------------------------------------------------------------------ tabbar iOS (mobile) */
.tabbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: var(--glass); backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%); border-top: 1px solid var(--sep);
}
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--text-3); font-size: 10.5px; font-weight: 600; position: relative; }
.tabbar a .icon { width: 24px; height: 24px; stroke-width: 1.9; }
.tabbar a.active { color: var(--accent); }
.tabbar .badge { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; font-size: 10.5px; }
.scrim { display: none; }

/* ------------------------------------------------------------------ autenticação */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.auth-card {
  width: min(420px, 100%); padding: 34px 30px 28px; border-radius: 28px; background: var(--glass-strong);
  backdrop-filter: blur(40px) saturate(180%); -webkit-backdrop-filter: blur(40px) saturate(180%); border: 1px solid var(--sep); box-shadow: var(--shadow-lg);
}
.auth-logo { width: 72px; height: 72px; border-radius: 20px; margin: 0 auto 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #3ee07a, #1a9e4a); box-shadow: 0 10px 30px rgba(52, 199, 89, 0.35); }
.auth-logo .icon { width: 40px; height: 40px; }
.auth h1 { text-align: center; font-size: 24px; letter-spacing: -0.02em; }
.auth .page-sub { text-align: center; margin-bottom: 24px; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--text-2); }
.auth-clock { text-align: center; color: var(--text-2); font-size: 13px; margin-top: 18px; }

/* ------------------------------------------------------------------ caixa de entrada (estilo Mensagens) */
.inbox { display: flex; flex: 1; min-width: 0; height: 100%; }
.inbox-list { width: 360px; flex: none; border-right: 1px solid var(--sep); display: flex; flex-direction: column; background: var(--surface); min-height: 0; }
.inbox-list-head { padding: 14px 14px 10px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--sep); }
.inbox-list .segmented button { padding: 0 9px; }
.conv-scroll { flex: 1; overflow-y: auto; padding: 6px; }
.conv {
  display: flex; gap: 11px; padding: 10px; border-radius: 12px; cursor: pointer; position: relative; align-items: center;
}
.conv:hover { background: var(--hover); }
.conv.active { background: var(--accent); color: #fff; }
.conv.active .muted, .conv.active .conv-time, .conv.active .conv-preview { color: rgba(255, 255, 255, 0.85); }
.conv.active .pill { background: rgba(255, 255, 255, 0.22); color: #fff; }
.conv-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.conv-top { display: flex; align-items: baseline; gap: 6px; }
.conv-name { font-weight: 600; font-size: 14px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-time { font-size: 12px; color: var(--text-2); flex: none; }
.conv-bottom { display: flex; align-items: center; gap: 6px; }
.conv-preview { font-size: 13px; color: var(--text-2); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv .unread-dot { position: absolute; left: 2px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--accent); }
.conv.active .unread-dot { background: #fff; }

.thread { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--window); position: relative; }
.thread-head {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--sep); min-height: 60px;
  background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); z-index: 2;
}
.thread-title { flex: 1; min-width: 0; }
.thread-title b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-title small { color: var(--text-2); font-size: 12px; }
.thread-actions { display: flex; gap: 6px; align-items: center; }
.messages { flex: 1; overflow-y: auto; padding: 18px 18px 10px; display: flex; flex-direction: column; gap: 3px; }
.day-sep { align-self: center; font-size: 11.5px; font-weight: 600; color: var(--text-2); margin: 14px 0 8px; }
.msg { display: flex; flex-direction: column; max-width: min(72%, 560px); }
.msg.in { align-self: flex-start; align-items: flex-start; }
.msg.out { align-self: flex-end; align-items: flex-end; }
.msg.sys { align-self: center; max-width: 90%; }
.msg.sys .bubble { background: var(--fill-2); color: var(--text-2); font-size: 12px; border-radius: 10px; padding: 5px 12px; }
.sender { font-size: 11px; color: var(--text-2); font-weight: 600; margin: 8px 12px 2px; display: flex; gap: 4px; align-items: center; }
.bubble {
  padding: 8px 13px; border-radius: 19px; font-size: 14.5px; line-height: 1.4; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; position: relative;
}
.msg.in .bubble { background: var(--bubble-in); color: var(--text); border-bottom-left-radius: 6px; }
.msg.out .bubble { background: var(--bubble-out); color: #fff; border-bottom-right-radius: 6px; }
.msg.out.bot .bubble { background: var(--bubble-bot); }
.msg.out.failed .bubble { background: rgba(255, 59, 48, 0.15); color: var(--red); }
.msg.in + .msg.in .bubble, .msg.out + .msg.out .bubble { margin-top: 1px; }
.bubble a { color: inherit; text-decoration: underline; }
.bubble img, .bubble video { display: block; max-width: 280px; max-height: 320px; border-radius: 14px; margin: -3px -8px 4px; cursor: zoom-in; }
.bubble audio { max-width: 260px; display: block; margin: 2px 0; }
.bubble .doc { display: flex; align-items: center; gap: 8px; padding: 6px 0; color: inherit; text-decoration: none; font-weight: 600; }
.meta { font-size: 10.5px; color: var(--text-3); margin: 2px 8px 6px; display: flex; gap: 4px; align-items: center; }
.meta .icon { width: 13px; height: 13px; }
.meta .read { color: var(--accent); }
.meta .err { color: var(--red); }
.composer { padding: 10px 14px calc(12px + var(--safe-b)); border-top: 1px solid var(--sep); background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.composer-row { display: flex; align-items: flex-end; gap: 8px; }
.composer textarea {
  flex: 1; resize: none; min-height: 38px; max-height: 160px; padding: 9px 14px; border-radius: 20px; border: 1px solid var(--sep-strong);
  background: var(--surface); color: var(--text); font: inherit; font-size: 14.5px; outline: none; line-height: 1.35;
}
.composer textarea:focus { border-color: rgba(var(--accent-rgb), 0.6); }
.send-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; transition: transform 0.15s, opacity 0.15s; }
.send-btn:disabled { opacity: 0.35; }
.send-btn:active { transform: scale(0.9); }
.composer-banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(88, 86, 214, 0.1); color: var(--indigo); font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.composer-banner.pending { background: rgba(255, 149, 0, 0.12); color: #b86700; }
[data-theme="dark"] .composer-banner.pending { color: var(--orange); }
.attach-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 10px; background: var(--fill-2); font-size: 12.5px; margin-bottom: 8px; }
.details { width: 300px; flex: none; border-left: 1px solid var(--sep); background: var(--surface); overflow-y: auto; padding: 22px 18px; }
.details.collapsed { display: none; }
.details-head { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; margin-bottom: 18px; }
.details-head b { font-size: 17px; }
.thread-empty { flex: 1; display: grid; place-items: center; }
.load-more { align-self: center; margin-bottom: 8px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 900; background: rgba(0, 0, 0, 0.85); display: grid; place-items: center; padding: 20px; animation: fadeIn 0.2s; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; }

/* ------------------------------------------------------------------ tabela */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--text-2); padding: 10px 16px; border-bottom: 1px solid var(--sep); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--sep); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--hover); }
.pagination { display: flex; gap: 8px; align-items: center; justify-content: center; padding: 18px 0 0; }

/* ------------------------------------------------------------------ fluxos */
.flow-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--sep); box-shadow: var(--shadow-sm); transition: box-shadow 0.2s, transform 0.2s var(--ease); }
.flow-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.flow-card.inactive { opacity: 0.72; }
.flow-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; flex: none; }
.flow-stats { display: flex; gap: 14px; font-size: 12.5px; color: var(--text-2); }
.flow-stats span { display: inline-flex; gap: 5px; align-items: center; }
.kw { display: flex; flex-wrap: wrap; gap: 5px; }

/* ------------------------------------------------------------------ responsivo */
@media (max-width: 1200px) {
  .details { display: none; }
  .details.show { display: block; position: absolute; right: 0; top: 0; bottom: 0; z-index: 20; box-shadow: var(--shadow-lg); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inbox-list { width: 300px; }
}
@media (max-width: 860px) {
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-102%); transition: transform 0.35s var(--ease);
    background: var(--glass-strong); box-shadow: var(--shadow-lg); width: min(300px, 84vw);
  }
  body.drawer-open .sidebar { transform: none; }
  body.drawer-open .scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(0, 0, 0, 0.3); animation: fadeIn 0.2s; }
  .traffic { display: none; }
  .tabbar { display: flex; }
  .main { padding-bottom: calc(var(--tabbar-h) + var(--safe-b)); }
  .toolbar { padding: 0 10px; gap: 6px; }
  .toolbar h1 { font-size: 17px; }
  .content { padding: 18px 16px 32px; }
  .large-title { font-size: 28px; }
  .wa-switch-text small { display: none; }
  .wa-switch-text b { max-width: 110px; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .qr-box { grid-template-columns: 1fr; }
  .qr-frame { max-width: 280px; margin: 0 auto; width: 100%; }
  dialog.sheet { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 22px 22px 0 0; max-height: 92dvh; padding-bottom: var(--safe-b); }
  dialog.sheet[open] { animation: sheetUp 0.4s var(--ease); }
  @keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
  .grabber { display: block; }
  .inbox-list { width: 100%; border-right: 0; }
  .inbox .thread { display: none; }
  .inbox.show-thread .inbox-list { display: none; }
  .inbox.show-thread .thread { display: flex; }
  .msg { max-width: 84%; }
  .hide-mobile { display: none !important; }
  .table .hide-sm { display: none; }
  .page-head { align-items: flex-start; }
}
@media (min-width: 861px) {
  .show-mobile { display: none !important; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .widget { min-height: 118px; padding: 14px; border-radius: 20px; }
  .widget-value { font-size: 27px; }
  .wa-switch-text { display: none; }
  .wa-switch { padding: 0 8px 0 5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
