/* ==========================================================================
   WA Design System — shared theme for every page
   WhatsApp-aligned palette, light + dark, Inter typography.
   Usage: <link rel="stylesheet" href="/theme.css"> + <script src="/theme.js"></script>
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ---------- Tokens: light (default) ---------- */
:root {
  color-scheme: light;

  /* Brand */
  --wa-green: #25d366;          /* WhatsApp signature green — accents, CTAs on dark */
  --wa-green-hover: #1ebe5b;
  --wa-teal: #008069;           /* WhatsApp header / primary action (light) */
  --wa-teal-hover: #006e5a;
  --wa-teal-deep: #075e54;
  --wa-blue-tick: #53bdeb;

  --primary: #c4582a;
  --primary-hover: #a8441a;
  --primary-contrast: #ffffff;
  --primary-soft: rgba(196, 88, 42, .10);
  --primary-grad: linear-gradient(135deg, #d2693a 0%, #b04a1c 100%);
  --accent: var(--wa-green);
  --accent-soft: rgba(37, 211, 102, .14);

  /* Surfaces */
  --bg: #fffaf5;
  --surface: #ffffff;
  --surface-2: #fdf6ef;
  --surface-3: #f6ece3;
  --surface-hover: #fcf3eb;
  --overlay: rgba(11, 20, 26, .45);

  /* Text */
  --text: #141b2d;
  --text-2: #4b5263;
  --muted: #6b7280;
  --placeholder: #9ca3af;

  /* Lines */
  --border: #f0e4d9;
  --border-strong: #e5d5c6;

  /* Status */
  --success: #0e9f6e;  --success-soft: rgba(14, 159, 110, .12);
  --warning: #d97706;  --warning-soft: rgba(217, 119, 6, .12);
  --danger:  #e5484d;  --danger-soft:  rgba(229, 72, 77, .12);
  --info:    #0b84d8;  --info-soft:    rgba(11, 132, 216, .12);

  /* Chat */
  --chat-bg: #efeae2;
  --bubble-out: #d9fdd3;
  --bubble-in: #ffffff;
  --bubble-text: #111b21;
  --chat-pattern: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px);

  /* Shape & depth */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;
  --shadow-sm: 0 1px 2px rgba(11, 20, 26, .06);
  --shadow: 0 1px 3px rgba(11, 20, 26, .08), 0 4px 12px rgba(11, 20, 26, .05);
  --shadow-lg: 0 12px 32px rgba(11, 20, 26, .12), 0 2px 6px rgba(11, 20, 26, .06);
  --ring: 0 0 0 3px rgba(196, 88, 42, .22);

  /* Type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'Cascadia Code', Consolas, monospace;

  /* Layout */
  --sidebar-w: 248px;
  --topbar-h: 60px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Tokens: dark ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;

  --primary: #ee8a55;
  --primary-hover: #f3a070;
  --primary-contrast: #1a0f08;
  --primary-soft: rgba(238, 138, 85, .16);
  --primary-grad: linear-gradient(135deg, #e07a3f 0%, #c4582a 100%);
  --accent-soft: rgba(37, 211, 102, .16);

  --bg: #14100d;
  --surface: #1e1814;
  --surface-2: #241d18;
  --surface-3: #2e251f;
  --surface-hover: #2a221c;
  --overlay: rgba(0, 0, 0, .6);

  --text: #f5efe9;
  --text-2: #cfc4ba;
  --muted: #a39588;
  --placeholder: #7d7066;

  --border: #33281f;
  --border-strong: #43352a;

  --success: #2fd391;  --success-soft: rgba(47, 211, 145, .14);
  --warning: #f5a524;  --warning-soft: rgba(245, 165, 36, .14);
  --danger:  #f87171;  --danger-soft:  rgba(248, 113, 113, .14);
  --info:    #53bdeb;  --info-soft:    rgba(83, 189, 235, .14);

  --chat-bg: #0b141a;
  --bubble-out: #005c4b;
  --bubble-in: #202c33;
  --bubble-text: #e9edef;
  --chat-pattern: radial-gradient(rgba(255,255,255,.025) 1px, transparent 1px);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 1px 3px rgba(0, 0, 0, .35), 0 4px 12px rgba(0, 0, 0, .25);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, .5);
  --ring: 0 0 0 3px rgba(238, 138, 85, .35);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; line-height: 1.25; color: var(--text); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.025em; }
h2 { font-size: clamp(22px, 3vw, 30px); letter-spacing: -.02em; }
h3 { font-size: 18px; }
p { margin: 0 0 1em; color: var(--text-2); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
code, kbd, pre { font-family: var(--mono); font-size: .92em; }
code { background: var(--surface-3); padding: 2px 6px; border-radius: var(--radius-xs); }
pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; overflow: auto; }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-xs); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px;
  font: 600 14px/1 var(--font);
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; user-select: none;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .1s var(--ease), box-shadow .15s var(--ease);
  text-decoration: none !important;
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.is-disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--primary-grad); color: #fff; box-shadow: 0 6px 16px rgba(176, 74, 28, .22); }
.btn-primary:hover { background: var(--primary-grad); filter: brightness(1.06); }
.btn-accent { background: var(--wa-green); color: #062a17; }
.btn-accent:hover { background: var(--wa-green-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-hover); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-hover); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(.94); }
.btn-soft { background: var(--primary-soft); color: var(--primary); }
.btn-soft:hover { background: var(--accent-soft); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; padding: 0; border-radius: 50%; }
.btn-icon.btn-sm { width: 32px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.label, .field > label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.hint { font-size: 12px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%;
  height: 42px; padding: 0 14px;
  font: 400 14px var(--font);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background-color .15s var(--ease);
}
.textarea { height: auto; min-height: 96px; padding: 10px 14px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 36px; 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='%23667781' stroke-width='2.5' 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; }
.input::placeholder, .textarea::placeholder { color: var(--placeholder); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--muted); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.input-group { position: relative; display: flex; align-items: center; }
.input-group > .input-icon { position: absolute; left: 12px; color: var(--muted); pointer-events: none; display: flex; }
.input-group > .input { padding-left: 40px; }

input[type="checkbox"], input[type="radio"] { accent-color: var(--primary); width: 16px; height: 16px; }

/* Toggle switch */
.switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: var(--border-strong); border-radius: 22px; cursor: pointer; transition: .2s var(--ease); }
.switch .slider::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s var(--ease); box-shadow: var(--shadow-sm); }
.switch input:checked + .slider { background: var(--primary); }
.switch input:checked + .slider::before { transform: translateX(18px); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 20px; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-header h3, .card-title { margin: 0; font-size: 15px; font-weight: 700; }
.card-body { padding: 20px; }
.card-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }
.card-hover { transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }

/* Stat tile */
.stat { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.stat-label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.stat-value { font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.stat-icon { width: 40px; height: 40px; border-radius: var(--radius); display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }

/* ---------- Badges / chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px; padding: 0 9px;
  font-size: 11.5px; font-weight: 600; line-height: 1;
  border-radius: var(--radius-full);
  background: var(--surface-3); color: var(--text-2);
  white-space: nowrap;
}
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger  { background: var(--danger-soft);  color: var(--danger); }
.badge-info    { background: var(--info-soft);    color: var(--info); }
.badge-primary { background: var(--primary-soft); color: var(--primary); }

/* ---------- Alerts ---------- */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); font-size: 13.5px; border: 1px solid transparent; }
.alert-success { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 25%, transparent); }
.alert-warning { background: var(--warning-soft); color: var(--warning); border-color: color-mix(in srgb, var(--warning) 25%, transparent); }
.alert-danger  { background: var(--danger-soft);  color: var(--danger);  border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.alert-info    { background: var(--info-soft);    color: var(--info);    border-color: color-mix(in srgb, var(--info) 25%, transparent); }

/* ---------- Tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color .12s var(--ease); }
.table tbody tr:hover { background: var(--surface-hover); }

/* ---------- Tabs / segmented ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tab { padding: 10px 14px; font-weight: 600; font-size: 14px; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; margin-bottom: -1px; font-family: var(--font); }
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.segmented { display: inline-flex; padding: 4px; background: var(--surface-3); border-radius: var(--radius-full); gap: 2px; }
.segmented > button { border: 0; background: transparent; padding: 7px 16px; border-radius: var(--radius-full); font: 600 13px var(--font); color: var(--muted); cursor: pointer; }
.segmented > button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* ---------- App shell (sidebar + topbar) ---------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; height: var(--topbar-h); padding: 0 18px; font-weight: 800; font-size: 16px; border-bottom: 1px solid var(--border); }
.nav { display: flex; flex-direction: column; gap: 2px; padding: 12px; }
.nav-section { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 14px 12px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--text-2); font-weight: 500; font-size: 14px;
  cursor: pointer; text-decoration: none !important;
  transition: background-color .12s var(--ease), color .12s var(--ease);
}
.nav-item:hover { background: var(--surface-hover); color: var(--text); }
.nav-item.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: var(--topbar-h); display: flex; align-items: center; gap: 12px;
  padding: 0 24px; background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.page { padding: 24px; max-width: 1280px; width: 100%; margin: 0 auto; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-header h1, .page-title { font-size: 24px; margin: 0; letter-spacing: -.02em; }
.page-sub { color: var(--muted); margin: 4px 0 0; font-size: 14px; }

/* ---------- Brand mark ---------- */
.brand-logo { width: 34px; height: 34px; border-radius: 10px; background: var(--wa-green); color: #fff; display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 4px 12px rgba(37, 211, 102, .3); }
.brand-logo svg { width: 20px; height: 20px; }

/* ---------- Avatar ---------- */
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-3); color: var(--text-2); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex-shrink: 0; overflow: hidden; }
.avatar-sm { width: 32px; height: 32px; font-size: 12px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: var(--overlay); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 1000; backdrop-filter: blur(2px); animation: wa-fade .15s var(--ease); }
.modal { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; animation: wa-pop .2s var(--ease); border: 1px solid var(--border); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.modal-header h3 { margin: 0; font-size: 17px; }
.modal-body { padding: 20px; }
.modal-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- Toast ---------- */
.toast-stack { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 2000; }
.toast { background: var(--text); color: var(--surface); padding: 12px 16px; border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 500; animation: wa-slide-up .25s var(--ease); max-width: 360px; }

/* ---------- Chat primitives ---------- */
.chat-surface { background-color: var(--chat-bg); background-image: var(--chat-pattern); background-size: 18px 18px; }
.bubble { max-width: min(560px, 75%); padding: 7px 10px 8px; border-radius: 8px; font-size: 14.2px; line-height: 1.45; color: var(--bubble-text); box-shadow: 0 1px .5px rgba(11, 20, 26, .13); word-wrap: break-word; }
.bubble-out { background: var(--bubble-out); margin-left: auto; border-top-right-radius: 2px; }
.bubble-in { background: var(--bubble-in); border-top-left-radius: 2px; }
.bubble-meta { font-size: 11px; color: var(--muted); text-align: right; margin-top: 2px; }

/* ---------- Misc ---------- */
.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: wa-spin .7s linear infinite; display: inline-block; }
.skeleton { background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 50%, var(--surface-3) 75%); background-size: 200% 100%; animation: wa-shimmer 1.2s infinite; border-radius: var(--radius-sm); }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty svg { width: 48px; height: 48px; opacity: .5; margin-bottom: 12px; }
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--muted); }
.status-dot.online { background: var(--wa-green); box-shadow: 0 0 0 3px var(--accent-soft); }
.status-dot.offline { background: var(--danger); }
.status-dot.pending { background: var(--warning); }

.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)); }
.row { display: flex; align-items: center; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.spacer { flex: 1; }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--surface); color: var(--text-2);
  border: 1px solid var(--border-strong);
  cursor: pointer; transition: background-color .15s var(--ease), color .15s var(--ease), transform .2s var(--ease);
}
.theme-toggle:hover { background: var(--surface-hover); color: var(--text); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.theme-toggle.floating { position: fixed; right: 18px; bottom: 18px; z-index: 900; box-shadow: var(--shadow); }

/* ---------- Animations ---------- */
@keyframes wa-spin { to { transform: rotate(360deg); } }
@keyframes wa-fade { from { opacity: 0; } }
@keyframes wa-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes wa-slide-up { from { opacity: 0; transform: translateY(10px); } }
@keyframes wa-shimmer { to { background-position: -200% 0; } }
.fade-in { animation: wa-slide-up .35s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .sidebar { position: fixed; left: 0; top: 0; z-index: 100; transform: translateX(-100%); transition: transform .25s var(--ease); box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .page { padding: 16px; }
  .topbar { padding: 0 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Brand: WapDeskPro logo ---------- */
:root { --wdp-ink: #0f2230; }
:root[data-theme="dark"] { --wdp-ink: #f1f5f9; }
.wdp-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; flex-shrink: 0; }
.wdp-logo img { height: 44px; width: auto; display: block; }
.wdp-text { display: flex; flex-direction: column; line-height: 1; }
.wdp-word { font-weight: 800; font-size: 22px; letter-spacing: -.035em; color: var(--wdp-ink); white-space: nowrap; }
.wdp-word b { font-weight: 800; -webkit-background-clip: text; background-clip: text; color: transparent; }
.wdp-word .d { background-image: linear-gradient(90deg, #1fbf75, #12a35a); }
.wdp-word .p { background-image: linear-gradient(90deg, #2f9bff, #1f6bff); }
.wdp-tag { font-size: 10.5px; font-weight: 500; letter-spacing: .16em; color: var(--muted); margin-top: 5px; white-space: nowrap; }
.wdp-logo.sm img { height: 34px; }
.wdp-logo.sm .wdp-word { font-size: 18px; }
.wdp-logo.lg img { height: 56px; }
.wdp-logo.lg .wdp-word { font-size: 28px; }
.wdp-logo.lg .wdp-tag { font-size: 12px; }
/* on a dark brand panel in both themes */
.wdp-logo.on-dark .wdp-word { color: #fff; }
.wdp-logo.on-dark .wdp-tag { color: rgba(255,255,255,.7); }
.wdp-logo.on-dark .wdp-word .p { background-image: linear-gradient(90deg, #60b4ff, #4d8dff); }
@media (max-width: 480px) {
  .wdp-tag { display: none; }
  .wdp-logo.sm .c { display: none; }
}
