/* =========================================================================
   LynkedUp Pro — Dashboard (matches Figma "Linkedup-Web")
   Dark + light themes via [data-theme] on .dash-root.
   ========================================================================= */

.dash-root {
  /* accents (shared) */
  --orange: #fda913;
  --orange-2: #fd6d13;
  --yellow: #ffd60a;
  --cyan: #09b9c6;
  --green: #14bc83;
  --blue: #285ef0;
  --purple: #9036e9;
  --red: #f0563f;

  --radius: 16px;
  --radius-sm: 12px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  min-height: 100vh;
  display: flex;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

/* ---- dark (default) ---- */
.dash-root,
.dash-root[data-theme="dark"] {
  --bg: #060608;
  --panel: #0e0e13;
  --panel-2: #15151b;
  --panel-3: #1b1b22;
  --border: rgba(255, 255, 255, 0.07);
  --border-2: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --text-2: #eaeaea;
  --muted: #8c8c8c;
  --faint: #686868;
  --track: rgba(255, 255, 255, 0.08);
  --sidebar: #08080b;
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.8);
}

/* ---- light ---- */
.dash-root[data-theme="light"] {
  --bg: #eef1f7;
  --panel: #ffffff;
  --panel-2: #f5f7fb;
  --panel-3: #eef1f7;
  --border: rgba(15, 23, 42, 0.08);
  --border-2: rgba(15, 23, 42, 0.14);
  --text: #0c0e14;
  --text-2: #1f2430;
  --muted: #5b6472;
  --faint: #97a0b0;
  --track: rgba(15, 23, 42, 0.07);
  --sidebar: #ffffff;
  --shadow: 0 18px 40px -26px rgba(15, 23, 42, 0.25);
}

.dash-root * { box-sizing: border-box; }
.dash-root h1, .dash-root h2, .dash-root h3, .dash-root h4 { margin: 0; }

/* ---- sidebar ---- */
.dash-sidebar {
  width: 214px;
  flex: 0 0 214px;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
}
.dash-brand { display: flex; align-items: center; gap: 9px; padding: 18px 18px 14px; }
.dash-brand img { height: 26px; width: auto; }
.dash-brand .bk { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.dash-nav { flex: 1; overflow-y: auto; padding: 6px 12px 12px; }
.dash-nav::-webkit-scrollbar { width: 6px; }
.dash-nav::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 99px; }
.nav-group { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); padding: 14px 10px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  width: 100%; padding: 8.5px 10px; border-radius: 9px;
  border: 0; background: none; cursor: pointer;
  color: var(--muted); font-family: inherit; font-size: 13px; font-weight: 500;
  text-align: left; transition: background 0.14s, color 0.14s;
}
.nav-item:hover { background: var(--panel-2); color: var(--text-2); }
.nav-item.active { background: var(--orange); color: #1a1206; font-weight: 600; }
.nav-item.active svg { color: #1a1206; }
.nav-item svg { color: var(--faint); flex: 0 0 auto; }
.nav-item:hover svg { color: var(--text-2); }
.fig-ic { display: inline-flex; flex: 0 0 auto; color: inherit; }
.fig-ic svg { width: 100%; height: 100%; display: block; }
.dash-sidebar .sb-foot { border-top: 1px solid var(--border); padding: 10px 12px; }
.sb-user { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; }
.sb-user:hover { background: var(--panel-2); }
.sb-user .av { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; flex: 0 0 30px; }
.sb-user .nm { font-size: 12.5px; font-weight: 600; }
.sb-user .rl { font-size: 11px; color: var(--faint); }

/* ---- main ---- */
.dash-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dash-topbar {
  height: 64px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(10px);
}
.dash-title h1 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.dash-title p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.ic-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel); color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: 0.14s; }
.ic-btn:hover { color: var(--text); border-color: var(--border-2); }
.top-user { display: flex; align-items: center; gap: 9px; padding: 5px 8px 5px 5px; border: 1px solid var(--border); border-radius: 99px; background: var(--panel); cursor: pointer; }
.top-user .av { width: 30px; height: 30px; border-radius: 99px; object-fit: cover; }
.top-user .nm { font-size: 12.5px; font-weight: 600; }
.top-user .rl { font-size: 10.5px; color: var(--faint); }

.dash-content { padding: 22px 28px 40px; width: 100%; }
.sec-title { font-size: 15px; font-weight: 700; margin: 6px 0 14px; }

/* ---- grid helpers ---- */
.grid { display: grid; gap: 16px; }
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; }
.muted { color: var(--muted); } .faint { color: var(--faint); }

/* ---- card ---- */
.dcard { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.dcard-pad-0 { padding: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-h h3 { font-size: 14px; font-weight: 600; }
.card-sub { font-size: 11.5px; color: var(--faint); }

/* ---- stat bits ---- */
.stat-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; }
.big-val { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.mid-val { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.lbl { font-size: 12px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 11px; font-weight: 600; }
.pill-orange { background: color-mix(in srgb, var(--orange) 18%, transparent); color: var(--orange); }
.pill-green { background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green); }
.pill-blue { background: color-mix(in srgb, var(--blue) 20%, transparent); color: #6f9bff; }
.pill-cyan { background: color-mix(in srgb, var(--cyan) 18%, transparent); color: var(--cyan); }
.pill-red { background: color-mix(in srgb, var(--red) 18%, transparent); color: var(--red); }

/* small stat card (right 2x2) */
.mini-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 15px; }
.mini-card .top { display: flex; justify-content: space-between; align-items: flex-start; }

/* progress */
.bar { height: 8px; border-radius: 99px; background: var(--track); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 99px; }

/* legend dot */
.ldot { width: 8px; height: 8px; border-radius: 99px; display: inline-block; }

/* pipeline rows */
.pl-row { display: grid; grid-template-columns: 92px 1fr 22px; align-items: center; gap: 10px; margin-bottom: 10px; }
.pl-row .lab { font-size: 12px; color: var(--muted); }
.pl-row .n { font-size: 12px; font-weight: 700; text-align: right; }

/* weather */
.wx-hours { display: flex; justify-content: space-between; gap: 6px; margin-top: 14px; }
.wx-hr { text-align: center; flex: 1; }
.wx-hr .t { font-size: 11px; color: var(--faint); }
.wx-hr .te { font-size: 13px; font-weight: 700; margin-top: 6px; }

/* reps */
.rep-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.rep-row:last-child { border-bottom: 0; }
.rep-row .rk { width: 22px; font-size: 12px; font-weight: 700; color: var(--faint); }
.rep-row .av { width: 34px; height: 34px; border-radius: 99px; object-fit: cover; }
.rep-row .nm { font-size: 13px; font-weight: 600; }
.rep-row .em { font-size: 11px; color: var(--faint); }
.rep-row .amt { font-size: 13px; font-weight: 700; color: var(--green); }

.link-btn { font-size: 12px; font-weight: 600; color: var(--orange); background: none; border: 0; cursor: pointer; }

/* ---- charts ---- */
.chart { display: flex; gap: 8px; width: 100%; }
.chart-y { display: flex; flex-direction: column; justify-content: space-between; font-size: 9px; color: var(--faint); padding-bottom: 16px; text-align: right; min-width: 18px; }
.chart-plot { flex: 1; display: flex; align-items: flex-end; gap: 2px; }
.bar-group { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.bar-group .bars { height: calc(100% - 20px); width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.vbar { border-radius: 3px; align-self: flex-end; transition: height 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.bar-x { font-size: 10px; color: var(--faint); margin-top: 7px; }

.spark { display: flex; align-items: flex-end; gap: 4px; }
.spark > span { border-radius: 3px; transition: height 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }

.donut { position: relative; display: grid; place-items: center; }
.donut-c { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.donut-c .dv { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.donut-c .dl { font-size: 11px; color: var(--faint); }

.gauge { position: relative; }
.gauge-c { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; }
.gauge-c .gv { font-size: 18px; font-weight: 800; }
.gauge-c .gl { font-size: 10px; color: var(--faint); }

/* responsive */
@media (max-width: 1100px) { .dash-sidebar { display: none; } }
@media (max-width: 760px) { .dash-content { padding: 16px; } }

/* =========================================================================
   ACCOUNT MODULE — Profile · Support · Rules design system
   All components consume the .dash-root tokens above, so they theme with
   [data-theme] automatically. Prefix-free utility names are scoped under
   .dash-root to avoid collisions with the rest of the app.
   ========================================================================= */

.dash-root {
  --ring: color-mix(in srgb, var(--orange) 35%, transparent);
  --grad-brand: linear-gradient(135deg, #fda913 0%, #fd6d13 100%);
  --card-grad: linear-gradient(160deg, color-mix(in srgb, var(--panel-2) 55%, var(--panel)) 0%, var(--panel) 62%);
  --card-hi: inset 0 1px 0 color-mix(in srgb, #fff 6%, transparent);
  --glow-orange: 0 10px 28px -12px color-mix(in srgb, var(--orange) 60%, transparent);
}
/* ambient depth behind the content */
.dash-root .dash-content { position: relative; }
.dash-root .dash-content::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(55% 45% at 100% 0%, color-mix(in srgb, var(--orange) 7%, transparent), transparent 70%),
    radial-gradient(45% 40% at 0% 100%, color-mix(in srgb, var(--blue) 6%, transparent), transparent 70%);
}
.dash-root .view { position: relative; z-index: 1; }

/* ---- sidebar (premium nav) ---- */
.dash-root .dash-sidebar { width: 236px; flex: 0 0 236px; background: linear-gradient(180deg, color-mix(in srgb, var(--orange) 4%, var(--sidebar)) 0%, var(--sidebar) 30%); }
.dash-root .dash-brand { padding: 20px 18px 16px; }
.dash-root .dash-brand .bk { font-size: 15.5px; font-weight: 800; letter-spacing: -0.01em; }
.dash-root .dash-nav { padding: 4px 12px 14px; }
.dash-root .nav-section { margin-bottom: 4px; }
.dash-root .nav-section + .nav-section { border-top: 1px solid var(--border); padding-top: 4px; }
.dash-root .nav-group { font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); padding: 13px 10px 7px; }
.dash-root .nav-item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 11px; border-radius: 10px; border: 0; background: none; cursor: pointer; color: var(--muted); font-family: inherit; font-size: 13px; font-weight: 500; text-align: left; transition: background 0.14s, color 0.14s, transform 0.12s; }
.dash-root .nav-item svg { color: var(--faint); flex: 0 0 auto; transition: color 0.14s; }
.dash-root .nav-item-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-root .nav-item:hover { background: var(--panel-2); color: var(--text); }
.dash-root .nav-item:hover svg { color: var(--text-2); }
.dash-root .nav-item.active { background: var(--grad-brand); color: #1a1206; font-weight: 700; box-shadow: var(--glow-orange); }
.dash-root .nav-item.active svg { color: #1a1206; }

/* ---- coming-soon placeholder ---- */
.dash-root .coming-soon { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 56px 24px; gap: 8px; }
.dash-root .coming-soon-ic { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; color: var(--orange); background: color-mix(in srgb, var(--orange) 12%, transparent); margin-bottom: 8px; }
.dash-root .coming-soon h3 { font-size: 18px; font-weight: 800; }
.dash-root .coming-soon p { font-size: 13px; color: var(--muted); max-width: 440px; line-height: 1.55; }
.dash-root .coming-soon-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }

/* ---- animations ---- */
@keyframes ds-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ds-pop { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes ds-slide-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes ds-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ds-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes ds-radar { 0% { transform: scale(0.7); opacity: 0.7; } 100% { transform: scale(2.1); opacity: 0; } }
@keyframes ds-bar { from { width: 0; } }

.dash-root .view { animation: ds-fade 0.3s ease; }
.dash-root .view-body { animation: ds-rise 0.32s ease; }

/* ---- generic card / layout ---- */
.dash-root .card { background: var(--card-grad); border: 1px solid var(--border); border-radius: 18px; padding: 22px; box-shadow: var(--card-hi), 0 1px 2px rgba(0,0,0,0.18); }
.dash-root .card-muted { background: var(--panel-2); }
.dash-root .card-pad-0 { padding: 0; overflow: hidden; }
.dash-root .card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.dash-root .card-head.pad { padding: 18px 20px 0; margin-bottom: 14px; }
.dash-root .card-head h3 { font-size: 15px; font-weight: 700; }
.dash-root .card-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.dash-root .card-stack { display: flex; flex-direction: column; gap: 16px; }
.dash-root .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.dash-root .grid-side { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; align-items: start; }
.dash-root .consent-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; align-items: start; }
.dash-root .muted-note { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--faint); margin-top: 12px; }
.dash-root .muted-note svg { flex: 0 0 auto; }

/* ---- PageHead ---- */
.dash-root .ds-pagehead { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.dash-root .ds-pagehead-l { display: flex; gap: 14px; align-items: center; }
.dash-root .ds-pagehead-ic { width: 52px; height: 52px; border-radius: 16px; flex: 0 0 auto; display: grid; place-items: center; color: #1a1206; background: var(--grad-brand); box-shadow: var(--glow-orange); }
.dash-root .ds-pagehead h1 { font-size: 24px; }
.dash-root .ds-eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); margin-bottom: 3px; }
.dash-root .ds-pagehead h1 { font-size: 23px; font-weight: 800; letter-spacing: -0.02em; }
.dash-root .ds-pagehead p { font-size: 13px; color: var(--muted); margin-top: 3px; }
.dash-root .ds-pagehead-actions { display: flex; gap: 10px; align-items: center; }

/* ---- Avatar ---- */
.dash-root .ds-avatar { position: relative; display: inline-grid; place-items: center; flex: 0 0 auto; }
.dash-root .ds-avatar-bg { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-weight: 700; letter-spacing: -0.01em; }
.dash-root .ds-avatar-dot { position: absolute; right: -1px; bottom: -1px; border-radius: 50%; border: 2px solid var(--panel); }
.dash-root .status-online { background: var(--green); }
.dash-root .status-away { background: var(--orange); }
.dash-root .status-busy { background: var(--red); }
.dash-root .status-offline { background: var(--faint); }

/* ---- Pill ---- */
.dash-root .ds-pill { display: inline-flex; align-items: center; gap: 5px; height: 23px; padding: 0 10px; border-radius: 99px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.dash-root .ds-pill.tone-muted { background: var(--panel-3); color: var(--muted); }
.dash-root .ds-pill.tone-green { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }
.dash-root .ds-pill.tone-orange { background: color-mix(in srgb, var(--orange) 16%, transparent); color: var(--orange); }
.dash-root .ds-pill.tone-blue { background: color-mix(in srgb, var(--blue) 18%, transparent); color: #6f9bff; }
.dash-root .ds-pill.tone-purple { background: color-mix(in srgb, var(--purple) 18%, transparent); color: #b07bf2; }
.dash-root .ds-pill.tone-cyan { background: color-mix(in srgb, var(--cyan) 16%, transparent); color: var(--cyan); }
.dash-root .ds-pill.tone-red { background: color-mix(in srgb, var(--red) 16%, transparent); color: var(--red); }
.dash-root .ds-pill svg { flex: 0 0 auto; }

.dash-root .ds-statusdot { width: 8px; height: 8px; border-radius: 99px; display: inline-block; }

/* ---- Toggle ---- */
.dash-root .ds-toggle { width: 40px; height: 23px; border-radius: 99px; border: 0; background: var(--track); position: relative; cursor: pointer; transition: background 0.18s; flex: 0 0 auto; padding: 0; }
.dash-root .ds-toggle .knob { position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform 0.18s; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.dash-root .ds-toggle.on { background: var(--orange); }
.dash-root .ds-toggle.on .knob { transform: translateX(17px); }
.dash-root .ds-toggle.disabled { opacity: 0.45; cursor: not-allowed; }

/* ---- Field / inputs ---- */
.dash-root .ds-field { display: block; margin-bottom: 14px; }
.dash-root .ds-field-lbl { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.dash-root .req { color: var(--red); font-style: normal; margin-left: 3px; }
.dash-root .ds-field-hint { display: block; font-size: 11.5px; color: var(--faint); margin-top: 6px; line-height: 1.4; }
.dash-root .ds-field-err { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--red); margin-top: 6px; }
.dash-root .ds-input, .dash-root .ds-select, .dash-root .ds-textarea {
  width: 100%; height: 42px; padding: 0 13px; border-radius: 11px; border: 1px solid var(--border-2);
  background: var(--panel-2); color: var(--text); font-family: inherit; font-size: 13.5px; outline: none; transition: border-color 0.14s, box-shadow 0.14s;
}
.dash-root .ds-textarea { height: auto; padding: 11px 13px; resize: vertical; line-height: 1.5; }
.dash-root .ds-select { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.dash-root .ds-input:focus, .dash-root .ds-select:focus, .dash-root .ds-textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px var(--ring); }
.dash-root .ds-input.flush { border: 0; background: none; box-shadow: none; padding: 0 4px; height: 38px; }
.dash-root .ds-input.flush:focus { box-shadow: none; }
.dash-root .ds-input::placeholder, .dash-root .ds-textarea::placeholder { color: var(--faint); }

/* ---- Buttons ---- */
.dash-root .ds-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 11px; border: 1px solid transparent; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: 0.14s; white-space: nowrap; }
.dash-root .ds-btn.s-sm { height: 32px; padding: 0 12px; font-size: 12px; border-radius: 9px; }
.dash-root .ds-btn.full { width: 100%; }
.dash-root .ds-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.dash-root .ds-btn.v-primary { background: var(--grad-brand); color: #1a1206; box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--orange) 75%, transparent); }
.dash-root .ds-btn.v-primary:not(:disabled):hover { filter: brightness(1.05); transform: translateY(-1px); }
.dash-root .ds-btn.v-ghost { background: transparent; color: var(--muted); }
.dash-root .ds-btn.v-ghost:hover { background: var(--panel-2); color: var(--text); }
.dash-root .ds-btn.v-soft { background: var(--panel-3); color: var(--text); }
.dash-root .ds-btn.v-soft:hover { background: var(--border-2); }
.dash-root .ds-btn.v-outline { background: transparent; border-color: var(--border-2); color: var(--text-2); }
.dash-root .ds-btn.v-outline:hover { border-color: var(--orange); color: var(--orange); }
.dash-root .ds-btn.v-danger { background: color-mix(in srgb, var(--red) 16%, transparent); color: var(--red); }
.dash-root .ds-btn.v-danger:hover { background: var(--red); color: #fff; }

.dash-root .ds-iconbtn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel-2); color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: 0.14s; flex: 0 0 auto; }
.dash-root .ds-iconbtn:hover { color: var(--text); border-color: var(--border-2); }
.dash-root .ds-iconbtn.sm { width: 28px; height: 28px; border-radius: 8px; }
.dash-root .link-inline { background: none; border: 0; color: var(--orange); font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; }

/* ---- Segmented / Tabs ---- */
.dash-root .ds-segmented { display: inline-flex; gap: 3px; padding: 4px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; flex-wrap: wrap;  margin-bottom: 20px; }
.dash-root .ds-segmented .seg { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: 0.14s; }
.dash-root .ds-segmented .seg:hover { color: var(--text); }
.dash-root .ds-segmented .seg.active { background: var(--panel); color: var(--text); box-shadow: var(--card-hi), 0 4px 12px -7px rgba(0,0,0,0.5); }

.dash-root .ds-tabs { display: flex; gap: 4px; padding: 5px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 14px; margin: 18px 0 22px; overflow-x: auto; }
.dash-root .ds-tabs::-webkit-scrollbar { height: 0; }
.dash-root .ds-tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 0; border-radius: 10px; background: none; color: var(--muted); font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: 0.16s; }
.dash-root .ds-tab:hover { color: var(--text-2); background: color-mix(in srgb, var(--panel) 55%, transparent); }
.dash-root .ds-tab.active { color: var(--orange); background: var(--panel); box-shadow: var(--card-hi), 0 4px 14px -8px rgba(0,0,0,0.5); }
.dash-root .ds-tab-badge { background: var(--orange); color: #1a1206; font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 99px; display: inline-grid; place-items: center; padding: 0 4px; }

/* ---- OTP ---- */
.dash-root .ds-otp { display: flex; gap: 9px; }
.dash-root .ds-otp-box { width: 46px; height: 54px; text-align: center; font-size: 22px; font-weight: 700; border-radius: 12px; border: 1px solid var(--border-2); background: var(--panel-2); color: var(--text); outline: none; transition: 0.14s; }
.dash-root .ds-otp-box:focus { border-color: var(--orange); box-shadow: 0 0 0 3px var(--ring); }
.dash-root .otp-wrap { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

/* ---- Modal ---- */
.dash-root .ds-modal-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(2,2,6,0.6); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; animation: ds-fade 0.18s ease; }
.dash-root .ds-modal { width: 100%; background: var(--panel); border: 1px solid var(--border-2); border-radius: 18px; box-shadow: 0 30px 70px -20px rgba(0,0,0,0.7); animation: ds-pop 0.22s cubic-bezier(0.2,0.7,0.2,1); max-height: 90vh; display: flex; flex-direction: column; }
.dash-root .ds-modal.size-sm { max-width: 400px; }
.dash-root .ds-modal.size-md { max-width: 540px; }
.dash-root .ds-modal.size-lg { max-width: 760px; }
.dash-root .ds-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 14px; border-bottom: 1px solid var(--border); }
.dash-root .ds-modal-head-l { display: flex; gap: 12px; align-items: center; }
.dash-root .ds-modal-ic { width: 38px; height: 38px; border-radius: 11px; flex: 0 0 auto; display: grid; place-items: center; color: var(--orange); background: color-mix(in srgb, var(--orange) 14%, transparent); }
.dash-root .ds-modal-head h3 { font-size: 16px; font-weight: 700; }
.dash-root .ds-modal-head p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.dash-root .ds-modal-body { padding: 18px 20px; overflow-y: auto; }
.dash-root .ds-modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border); }

/* ---- Toasts ---- */
.dash-root .ds-toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; width: 340px; max-width: calc(100vw - 40px); }
.dash-root .ds-toast { display: flex; gap: 11px; padding: 13px 14px; border-radius: 13px; background: var(--panel); border: 1px solid var(--border-2); box-shadow: var(--shadow); animation: ds-slide-in 0.26s ease; }
.dash-root .ds-toast.tone-success { border-left: 3px solid var(--green); } .dash-root .ds-toast.tone-success > svg { color: var(--green); }
.dash-root .ds-toast.tone-info { border-left: 3px solid var(--blue); } .dash-root .ds-toast.tone-info > svg { color: #6f9bff; }
.dash-root .ds-toast.tone-error { border-left: 3px solid var(--red); } .dash-root .ds-toast.tone-error > svg { color: var(--red); }
.dash-root .ds-toast > svg { flex: 0 0 auto; margin-top: 1px; }
.dash-root .ds-toast-body { flex: 1; min-width: 0; }
.dash-root .ds-toast-title { font-size: 13px; font-weight: 600; }
.dash-root .ds-toast-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.dash-root .ds-toast-x { background: none; border: 0; color: var(--faint); cursor: pointer; padding: 0; height: 18px; }

/* ---- key/value list, callouts ---- */
.dash-root .kv-list { display: flex; flex-direction: column; }
.dash-root .kv { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.dash-root .kv:last-child { border-bottom: 0; }
.dash-root .kv dt { font-size: 12.5px; color: var(--muted); }
.dash-root .kv dd { font-size: 13.5px; font-weight: 600; text-align: right; }
.dash-root .kv dd.masked { letter-spacing: 0.06em; color: var(--faint); font-weight: 500; }
.dash-root .kv dd.kv-edit { display: inline-flex; align-items: center; gap: 8px; }
.dash-root .kv-edit-btn { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--border); background: var(--panel-2); color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: 0.14s; }
.dash-root .kv-edit-btn:hover { color: var(--orange); border-color: var(--orange); }
.dash-root .kv-lock { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--faint); font-weight: 500; }
.dash-root .edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 720px) { .dash-root .edit-grid { grid-template-columns: 1fr; } }
.dash-root .callout { display: flex; gap: 11px; padding: 13px 14px; border-radius: 13px; margin-bottom: 16px; }
.dash-root .callout svg { flex: 0 0 auto; margin-top: 1px; }
.dash-root .callout strong { display: block; font-size: 13px; } .dash-root .callout span { font-size: 12px; color: var(--muted); }
.dash-root .callout.tone-green { background: color-mix(in srgb, var(--green) 10%, transparent); } .dash-root .callout.tone-green svg { color: var(--green); }
.dash-root .callout.tone-orange { background: color-mix(in srgb, var(--orange) 10%, transparent); } .dash-root .callout.tone-orange svg { color: var(--orange); }
.dash-root .callout.tone-red { background: color-mix(in srgb, var(--red) 10%, transparent); } .dash-root .callout.tone-red svg { color: var(--red); }

/* ---- Profile hero ---- */
.dash-root .profile-hero { position: relative; overflow: hidden; border-radius: 22px; padding: 26px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 4px; background: linear-gradient(120deg, color-mix(in srgb, var(--orange) 10%, var(--panel)) 0%, var(--panel) 55%); }
.dash-root .profile-hero-bg { position: absolute; inset: 0; background: radial-gradient(90% 140% at 100% -10%, color-mix(in srgb, var(--orange) 22%, transparent), transparent 50%), radial-gradient(70% 120% at -5% 110%, color-mix(in srgb, var(--blue) 14%, transparent), transparent 55%); pointer-events: none; }
.dash-root .profile-hero-main { display: flex; gap: 20px; align-items: center; position: relative; }
.dash-root .profile-hero-avatar { position: relative; border-radius: 24px; box-shadow: 0 14px 34px -12px color-mix(in srgb, var(--orange) 60%, transparent); }
.dash-root .profile-hero-cam { position: absolute; right: -4px; bottom: -4px; width: 28px; height: 28px; border-radius: 9px; border: 2px solid var(--panel); background: var(--orange); color: #1a1206; display: grid; place-items: center; cursor: pointer; }
.dash-root .profile-hero-name { display: flex; align-items: center; gap: 8px; font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.dash-root .verified-badge { color: var(--green); }
.dash-root .profile-hero-role { font-size: 13px; color: var(--muted); margin-top: 2px; }
.dash-root .profile-hero-chips { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.dash-root .hero-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 500; color: var(--text-2); padding: 5px 10px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--border); }
.dash-root .hero-chip svg { color: var(--faint); }
.dash-root .hero-chip.accent { color: var(--orange); border-color: color-mix(in srgb, var(--orange) 30%, transparent); } .dash-root .hero-chip.accent svg { color: var(--orange); }
.dash-root .profile-hero-stats { display: flex; gap: 0; position: relative; }
.dash-root .hero-stat { padding: 0 22px; border-left: 1px solid var(--border); }
.dash-root .hero-stat:first-child { padding-left: 0; border-left: 0; }
.dash-root .hero-stat:last-child { padding-right: 0; }
.dash-root .hero-stat-v { font-size: 20px; font-weight: 800; }
.dash-root .hero-stat-l { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ---- reveal gate ---- */
.dash-root .reveal-gate { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 14px; border-radius: 13px; border: 1px dashed var(--border-2); background: var(--panel-2); margin-bottom: 16px; }
.dash-root .reveal-gate-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: var(--orange); background: color-mix(in srgb, var(--orange) 14%, transparent); flex: 0 0 auto; }
.dash-root .reveal-gate-txt { flex: 1; min-width: 140px; } .dash-root .reveal-gate-txt strong { display: block; font-size: 13px; } .dash-root .reveal-gate-txt span { font-size: 12px; color: var(--muted); }
.dash-root .reveal-gate-form { display: flex; gap: 8px; } .dash-root .reveal-gate-form .ds-input { width: 140px; }

/* ---- KYC ---- */
.dash-root .kyc-progress { margin-bottom: 18px; }
.dash-root .kyc-progress-bar { height: 9px; border-radius: 99px; background: var(--track); overflow: hidden; }
.dash-root .kyc-progress-bar > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--orange), var(--orange-2)); transition: width 0.5s cubic-bezier(0.2,0.7,0.2,1); animation: ds-bar 0.6s ease; }
.dash-root .kyc-progress-legend { display: flex; gap: 16px; margin-top: 10px; flex-wrap: wrap; }
.dash-root .kyc-leg { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--faint); }
.dash-root .kyc-leg.verified { color: var(--green); } .dash-root .kyc-leg.uploaded { color: #6f9bff; } .dash-root .kyc-leg.missing { color: var(--muted); }
.dash-root .kyc-slots { display: flex; flex-direction: column; gap: 12px; }
.dash-root .kyc-slot { display: flex; gap: 12px; padding: 14px; border-radius: 13px; border: 1px solid var(--border); background: var(--panel-2); }
.dash-root .kyc-slot.status-verified { border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.dash-root .kyc-slot.status-rejected { border-color: color-mix(in srgb, var(--red) 40%, transparent); }
.dash-root .kyc-slot-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--panel-3); color: var(--muted); flex: 0 0 auto; }
.dash-root .kyc-slot-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.dash-root .kyc-slot-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dash-root .kyc-slot-title { font-size: 13.5px; font-weight: 600; }
.dash-root .kyc-slot-hint { font-size: 11.5px; color: var(--faint); }
.dash-root .kyc-drop { display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; border-radius: 11px; border: 1px dashed var(--border-2); background: var(--panel); color: var(--muted); font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: 0.14s; }
.dash-root .kyc-drop:hover { border-color: var(--orange); color: var(--orange); }
.dash-root .kyc-file { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 10px; background: var(--panel); border: 1px solid var(--border); }
.dash-root .kyc-file-name { font-size: 12.5px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-root .kyc-file-note { font-size: 11px; color: var(--faint); }
.dash-root .rule-mini { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 9px; }
.dash-root .rule-mini li { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.dash-root .rule-mini svg { color: var(--green); flex: 0 0 auto; margin-top: 2px; }
.dash-root .kyc-doc-pairs { border-top: 1px solid var(--border); padding-top: 14px; }
.dash-root .pair-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 12.5px; color: var(--muted); }

/* ---- password meter ---- */
.dash-root .pw-meter { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.dash-root .pw-bars { display: flex; gap: 5px; flex: 1; }
.dash-root .pw-bars .lvl { flex: 1; height: 6px; border-radius: 99px; background: var(--track); transition: background 0.2s; }
.dash-root .pw-bars .lvl-weak { background: var(--red); } .dash-root .pw-bars .lvl-fair { background: var(--orange); }
.dash-root .pw-bars .lvl-good { background: var(--yellow); } .dash-root .pw-bars .lvl-strong { background: var(--green); }
.dash-root .pw-label { font-size: 12px; font-weight: 700; min-width: 48px; text-align: right; }
.dash-root .pw-checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dash-root .pw-checks li { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--faint); }
.dash-root .pw-checks li svg { color: var(--faint); }
.dash-root .pw-checks li.ok { color: var(--text-2); } .dash-root .pw-checks li.ok svg { color: var(--green); }

/* ---- setting rows ---- */
.dash-root .setting-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.dash-root .setting-row:last-of-type { border-bottom: 0; }
.dash-root .setting-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--panel-2); color: var(--muted); flex: 0 0 auto; }
.dash-root .setting-txt { flex: 1; min-width: 0; } .dash-root .setting-title { font-size: 13.5px; font-weight: 600; } .dash-root .setting-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---- notifications matrix ---- */
.dash-root .notif-table { display: flex; flex-direction: column; }
.dash-root .notif-row { display: grid; grid-template-columns: 1.6fr repeat(4, 70px); align-items: center; gap: 8px; padding: 13px 20px; border-top: 1px solid var(--border); }
.dash-root .notif-row.notif-head { border-top: 0; }
.dash-root .notif-head span { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); }
.dash-root .notif-ch { display: inline-flex; align-items: center; gap: 5px; justify-content: center; }
.dash-root .notif-cat-name { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.dash-root .notif-cat-desc { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.dash-root .lock-ic { color: var(--faint); }

/* ---- contact-time windows ---- */
.dash-root .time-windows { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 4px; }
.dash-root .time-win { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--border-2); background: var(--panel-2); color: var(--muted); cursor: pointer; font-family: inherit; text-align: left; transition: 0.14s; position: relative; }
.dash-root .time-win svg { position: absolute; right: 11px; top: 11px; }
.dash-root .time-win.on { border-color: var(--orange); background: color-mix(in srgb, var(--orange) 9%, transparent); color: var(--text); } .dash-root .time-win.on svg { color: var(--orange); }
.dash-root .tw-label { font-size: 13px; font-weight: 600; } .dash-root .tw-range { font-size: 11.5px; color: var(--faint); }

/* ---- destinations ---- */
.dash-root .dest-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.dash-root .dest-row { display: flex; align-items: center; gap: 11px; padding: 11px; border-radius: 11px; background: var(--panel-2); border: 1px solid var(--border); }
.dash-root .dest-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--panel-3); color: var(--muted); flex: 0 0 auto; }
.dash-root .dest-txt { flex: 1; min-width: 0; } .dash-root .dest-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; } .dash-root .dest-val { font-size: 12px; color: var(--muted); margin-top: 1px; }

/* ---- consent ---- */
.dash-root .consent-list { display: flex; flex-direction: column; gap: 4px; }
.dash-root .consent-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.dash-root .consent-item:last-child { border-bottom: 0; }
.dash-root .consent-item.locked { opacity: 0.85; }
.dash-root .consent-label { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; } .dash-root .consent-desc { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.dash-root .consent-sub { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--border); animation: ds-rise 0.2s ease; }
.dash-root .consent-sub-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; font-size: 12.5px; }

/* ---- devices + timeline ---- */
.dash-root .device-list { display: flex; flex-direction: column; gap: 11px; }
.dash-root .device-row { display: flex; align-items: center; gap: 13px; padding: 13px; border-radius: 13px; background: var(--panel-2); border: 1px solid var(--border); }
.dash-root .device-row.current { border-color: color-mix(in srgb, var(--green) 35%, transparent); }
.dash-root .device-ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--panel-3); color: var(--muted); flex: 0 0 auto; }
.dash-root .device-txt { flex: 1; min-width: 0; }
.dash-root .device-name { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; flex-wrap: wrap; }
.dash-root .device-meta { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.dash-root .timeline { display: flex; flex-direction: column; }
.dash-root .tl-item { display: flex; gap: 12px; padding-bottom: 16px; position: relative; }
.dash-root .tl-item:not(:last-child)::before { content: ""; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: var(--border); }
.dash-root .tl-dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; background: var(--panel-3); color: var(--muted); z-index: 1; }
.dash-root .tl-dot.ev-password-change { background: color-mix(in srgb, var(--orange) 18%, transparent); color: var(--orange); }
.dash-root .tl-dot.ev-new-device, .dash-root .tl-dot.ev-awaiting-customer { background: color-mix(in srgb, var(--red) 18%, transparent); color: var(--red); }
.dash-root .tl-dot.ev-resolved, .dash-root .tl-dot.ev-closed { background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green); }
.dash-root .tl-body { padding-top: 2px; } .dash-root .tl-title { font-size: 13px; font-weight: 600; } .dash-root .tl-meta { font-size: 11.5px; color: var(--muted); margin-top: 1px; } .dash-root .tl-time { font-size: 11px; color: var(--faint); margin-top: 2px; }

/* ---- Support: Bento hub ---- */
.dash-root .support-bento {
  display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    "chat chat team team"
    "chat chat team team"
    "ticket call email help"
    "recent recent recent recent";
}
.dash-root .bento-tile { border: 1px solid var(--border); border-radius: 18px; background: var(--card-grad); box-shadow: var(--card-hi); padding: 20px; }
.dash-root .bento-tile-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.dash-root .bento-tile-head h3 { font-size: 15px; font-weight: 700; }

/* hero live-chat tile */
.dash-root .bento-chat { grid-area: chat; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; min-height: 268px; text-align: left; cursor: pointer; font-family: inherit; border: 0; color: #1a1206; background: linear-gradient(135deg, #ffb43c 0%, #fda913 45%, #fd6d13 100%); box-shadow: var(--glow-orange); transition: transform 0.18s, box-shadow 0.18s; }
.dash-root .bento-chat:hover { transform: translateY(-3px); box-shadow: 0 26px 54px -20px color-mix(in srgb, var(--orange) 85%, #000); }
.dash-root .bento-chat::after { content: ""; position: absolute; right: -70px; top: -70px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.28), transparent 68%); pointer-events: none; }
.dash-root .bento-chat::before { content: ""; position: absolute; left: -40px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(26,18,6,0.12), transparent 70%); pointer-events: none; }
.dash-root .bento-chat-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; position: relative; z-index: 1; font-size: 12px; font-weight: 600; flex-wrap: wrap; }
.dash-root .bento-chat-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(26,18,6,0.14); padding: 6px 11px; border-radius: 99px; }
.dash-root .bento-chat-badge .ds-statusdot { background: #15461f; }
.dash-root .bento-chat-wait { display: inline-flex; align-items: center; gap: 5px; color: rgba(26,18,6,0.72); }
.dash-root .bento-chat-mid { position: relative; z-index: 1; }
.dash-root .bento-chat-mid h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; }
.dash-root .bento-chat-mid p { font-size: 13px; margin-top: 9px; color: rgba(26,18,6,0.8); max-width: 360px; line-height: 1.5; }
.dash-root .bento-chat-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; position: relative; z-index: 1; flex-wrap: wrap; }
.dash-root .bento-avstack { display: flex; align-items: center; }
.dash-root .bento-avstack .ds-avatar { margin-left: -9px; box-shadow: 0 0 0 2px #fd8a13; border-radius: 50%; }
.dash-root .bento-avstack .ds-avatar:first-child { margin-left: 0; }
.dash-root .bento-av-more { margin-left: 11px; font-size: 12px; font-weight: 700; }
.dash-root .bento-chat-cta { display: inline-flex; align-items: center; gap: 8px; background: #1a1206; color: #fff; padding: 12px 20px; border-radius: 12px; font-size: 13.5px; font-weight: 700; transition: transform 0.14s; }
.dash-root .bento-chat:hover .bento-chat-cta { transform: translateX(3px); }

/* team tile */
.dash-root .bento-team { grid-area: team; display: flex; flex-direction: column; }
.dash-root .bento-team .team-list { overflow-y: auto; }

/* mini tiles */
.dash-root .bento-mini { position: relative; overflow: hidden; text-align: left; cursor: pointer; font-family: inherit; display: flex; flex-direction: column; gap: 5px; min-height: 150px; transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s; }
.dash-root .bento-mini::before { content: ""; position: absolute; top: -45%; right: -25%; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 24%, transparent), transparent 70%); opacity: 0; transition: opacity 0.25s; pointer-events: none; }
.dash-root .bento-mini:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); box-shadow: var(--card-hi), 0 16px 36px -22px color-mix(in srgb, var(--accent) 75%, #000); }
.dash-root .bento-mini:hover::before { opacity: 1; }
.dash-root .bento-mini-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000)); box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--accent) 80%, transparent); margin-bottom: 8px; }
.dash-root .bento-mini-title { font-size: 14.5px; font-weight: 700; }
.dash-root .bento-mini-desc { font-size: 12px; color: var(--muted); flex: 1; line-height: 1.45; }
.dash-root .bento-mini-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11.5px; color: var(--accent); font-weight: 600; margin-top: 8px; }

/* recent tickets */
.dash-root .bento-recent { grid-area: recent; }
.dash-root .bento-ticket-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.dash-root .bento-ticket { text-align: left; cursor: pointer; font-family: inherit; padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--panel-2); display: flex; flex-direction: column; gap: 7px; transition: 0.14s; }
.dash-root .bento-ticket:hover { border-color: var(--border-2); background: var(--panel-3); transform: translateY(-2px); }
.dash-root .bento-ticket-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.dash-root .bento-ticket-subj { font-size: 13px; font-weight: 600; line-height: 1.35; }
.dash-root .bento-ticket-meta { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--faint); }

@media (max-width: 1180px) {
  .dash-root .support-bento { grid-template-columns: repeat(2, 1fr); grid-template-areas: "chat chat" "team team" "ticket call" "email help" "recent recent"; }
  .dash-root .bento-ticket-row { grid-template-columns: repeat(2, 1fr); }
  .dash-root .bento-team .team-list { max-height: none; }
}
@media (max-width: 680px) {
  .dash-root .support-bento { grid-template-columns: 1fr; grid-template-areas: "chat" "team" "ticket" "call" "email" "help" "recent"; }
  .dash-root .bento-ticket-row { grid-template-columns: 1fr; }
}

/* ---- Support: channel cards (legacy) ---- */
.dash-root .channel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dash-root .channel-card { text-align: left; position: relative; overflow: hidden; padding: 20px; border-radius: 18px; border: 1px solid var(--border); background: var(--card-grad); box-shadow: var(--card-hi); cursor: pointer; font-family: inherit; transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s; display: flex; flex-direction: column; gap: 6px; }
.dash-root .channel-card::before { content: ""; position: absolute; top: -45%; right: -20%; width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%); opacity: 0; transition: opacity 0.25s; pointer-events: none; }
.dash-root .channel-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); box-shadow: var(--card-hi), 0 18px 42px -22px color-mix(in srgb, var(--accent) 75%, #000); }
.dash-root .channel-card:hover::before { opacity: 1; }
.dash-root .channel-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000)); box-shadow: 0 8px 18px -9px color-mix(in srgb, var(--accent) 80%, transparent); margin-bottom: 4px; }
.dash-root .channel-status { position: absolute; top: 18px; right: 18px; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); text-transform: capitalize; }
.dash-root .channel-title { font-size: 15px; font-weight: 700; }
.dash-root .channel-desc { font-size: 12.5px; color: var(--muted); }
.dash-root .channel-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.dash-root .channel-meta { font-size: 11.5px; color: var(--faint); }
.dash-root .channel-cta { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--accent); }

/* ---- Support team ---- */
.dash-root .team-list { display: flex; flex-direction: column; gap: 4px; }
.dash-root .team-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.dash-root .team-row:last-child { border-bottom: 0; }
.dash-root .team-txt { flex: 1; min-width: 0; } .dash-root .team-name { font-size: 13.5px; font-weight: 600; } .dash-root .team-role { font-size: 12px; color: var(--muted); } .dash-root .team-team { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--faint); margin-top: 2px; }
.dash-root .team-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--orange); }

/* ---- Message Center ---- */
.dash-root .msgctr { display: grid; grid-template-columns: 300px 1fr; height: 600px; }
.dash-root .msg-inbox { border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; }
.dash-root .msg-inbox-head { display: flex; align-items: center; gap: 8px; padding: 16px 16px 12px; font-size: 14px; font-weight: 700; }
.dash-root .msg-inbox-list { flex: 1; overflow-y: auto; padding: 0 8px 8px; }
.dash-root .msg-thread { width: 100%; display: flex; gap: 10px; padding: 11px; border-radius: 12px; border: 0; background: none; cursor: pointer; font-family: inherit; text-align: left; position: relative; transition: 0.12s; }
.dash-root .msg-thread:hover { background: var(--panel-2); }
.dash-root .msg-thread.active { background: var(--panel-2); }
.dash-root .msg-thread-txt { flex: 1; min-width: 0; }
.dash-root .msg-thread-top { display: flex; justify-content: space-between; gap: 6px; } .dash-root .msg-thread-name { font-size: 13px; font-weight: 600; } .dash-root .msg-thread-time { font-size: 10.5px; color: var(--faint); }
.dash-root .msg-thread-sub { font-size: 12px; color: var(--text-2); margin-top: 1px; }
.dash-root .msg-thread-prev { font-size: 11.5px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-root .typing-now { color: var(--orange); font-style: italic; }
.dash-root .msg-unread { position: absolute; right: 11px; bottom: 11px; background: var(--orange); color: #1a1206; font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 99px; display: grid; place-items: center; padding: 0 4px; }
.dash-root .msg-pin { position: absolute; right: 12px; top: 12px; color: var(--faint); }
.dash-root .msg-thread-pane { display: flex; flex-direction: column; min-height: 0; }
.dash-root .msg-pane-head { display: flex; align-items: center; gap: 11px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.dash-root .msg-pane-id { flex: 1; min-width: 0; } .dash-root .msg-pane-name { font-size: 14px; font-weight: 700; } .dash-root .msg-pane-sub { font-size: 12px; color: var(--muted); }
.dash-root .msg-stream { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.dash-root .msg-stream.sm { max-height: 320px; }
.dash-root .bubble-row { display: flex; gap: 8px; align-items: flex-end; max-width: 78%; animation: ds-rise 0.2s ease; }
.dash-root .bubble-row.me { align-self: flex-end; flex-direction: row-reverse; }
.dash-root .bubble { padding: 9px 13px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--border); }
.dash-root .bubble p { margin: 0; font-size: 13px; line-height: 1.45; }
.dash-root .bubble-time { display: block; font-size: 10px; color: var(--faint); margin-top: 4px; }
.dash-root .bubble-row.me .bubble { background: var(--orange); border-color: transparent; color: #1a1206; } .dash-root .bubble-row.me .bubble-time { color: color-mix(in srgb, #1a1206 60%, transparent); }
.dash-root .bubble.typing { display: flex; gap: 4px; padding: 13px; }
.dash-root .bubble.typing .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: ds-bounce 1.2s infinite; }
.dash-root .bubble.typing .dot:nth-child(2) { animation-delay: 0.18s; } .dash-root .bubble.typing .dot:nth-child(3) { animation-delay: 0.36s; }
.dash-root .msg-compose { display: flex; align-items: center; gap: 9px; padding: 12px 16px; border-top: 1px solid var(--border); }
.dash-root .msg-compose .ds-input { flex: 1; }

/* ---- New Ticket routing ---- */
.dash-root .route-banner { display: flex; align-items: center; gap: 9px; padding: 11px 13px; border-radius: 11px; background: color-mix(in srgb, var(--blue) 9%, transparent); border: 1px solid color-mix(in srgb, var(--blue) 25%, transparent); font-size: 12.5px; margin-bottom: 14px; animation: ds-rise 0.2s ease; }
.dash-root .route-banner svg { color: #6f9bff; } .dash-root .route-banner > span { flex: 1; }
.dash-root .route-list { display: flex; flex-direction: column; gap: 9px; }
.dash-root .route-item { display: flex; align-items: center; gap: 9px; font-size: 12px; }
.dash-root .route-cat { flex: 1; color: var(--text-2); } .dash-root .route-item svg { color: var(--faint); } .dash-root .route-dept { color: var(--muted); font-weight: 600; }

/* ---- My Tickets table ---- */
.dash-root .ticket-table { display: flex; flex-direction: column; }
.dash-root .ticket-row { display: grid; grid-template-columns: 2.2fr 1.3fr 0.9fr 1fr 1.1fr; align-items: center; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--border); background: none; border-left: 0; border-right: 0; border-bottom: 0; width: 100%; font-family: inherit; text-align: left; color: var(--text); cursor: pointer; transition: 0.12s; }
.dash-root button.ticket-row:hover { background: var(--panel-2); }
.dash-root .ticket-row.ticket-head { cursor: default; }
.dash-root .ticket-head span { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); }
.dash-root .t-subject { display: flex; flex-direction: column; gap: 2px; font-size: 13px; font-weight: 600; }
.dash-root .t-id { font-size: 11px; color: var(--orange); font-weight: 700; }
.dash-root .t-dept { font-size: 12.5px; color: var(--muted); }
.dash-root .t-updated { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); justify-content: space-between; }
.dash-root .ticket-modal-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.dash-root .lifecycle { display: flex; align-items: center; margin-bottom: 20px; overflow-x: auto; padding-bottom: 4px; }
.dash-root .lc-step { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: var(--faint); white-space: nowrap; }
.dash-root .lc-line { width: 26px; height: 2px; background: var(--border); }
.dash-root .lc-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--track); border: 2px solid var(--border-2); }
.dash-root .lc-step.done { color: var(--text-2); } .dash-root .lc-step.done .lc-dot { background: var(--green); border-color: var(--green); }
.dash-root .lc-step.current .lc-dot { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange) 22%, transparent); }

/* ---- Help Center ---- */
.dash-root .help-search { display: flex; align-items: center; gap: 10px; padding: 4px 16px; height: 52px; border-radius: 14px; border: 1px solid var(--border-2); background: var(--panel); margin-bottom: 18px; }
.dash-root .help-search > svg { color: var(--faint); }
.dash-root .help-topics { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.dash-root .help-topic-card { padding: 0; overflow: hidden; --accent: var(--orange); }
.dash-root .help-topic-head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: none; border: 0; cursor: pointer; font-family: inherit; text-align: left; }
.dash-root .help-topic-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000)); box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--accent) 80%, transparent); flex: 0 0 auto; }
.dash-root .help-topic-txt { flex: 1; } .dash-root .help-topic-title { font-size: 14px; font-weight: 700; } .dash-root .help-topic-count { font-size: 11.5px; color: var(--muted); }
.dash-root .acc-chev { color: var(--faint); transition: transform 0.2s; } .dash-root .acc-chev.open { transform: rotate(180deg); }
.dash-root .help-acc-list { padding: 0 18px 10px; }
.dash-root .help-results { display: flex; flex-direction: column; }
.dash-root .help-acc { border-top: 1px solid var(--border); }
.dash-root .help-acc summary { display: flex; align-items: center; gap: 10px; padding: 13px 0; cursor: pointer; list-style: none; }
.dash-root .help-acc summary::-webkit-details-marker { display: none; }
.dash-root .help-q { flex: 1; font-size: 13px; font-weight: 600; }
.dash-root .help-acc summary .acc-chev { transition: transform 0.2s; }
.dash-root .help-acc[open] summary .acc-chev { transform: rotate(180deg); }
.dash-root .help-acc p { margin: 0 0 14px; font-size: 12.5px; color: var(--muted); line-height: 1.55; animation: ds-rise 0.2s ease; }

/* ---- Live chat handshake ---- */
.dash-root .chat-connecting { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 30px 0; }
.dash-root .chat-radar { position: relative; display: grid; place-items: center; }
.dash-root .radar-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--orange); animation: ds-radar 1.8s ease-out infinite; }
.dash-root .radar-ring.d2 { animation-delay: 0.9s; }
.dash-root .chat-connecting-txt { font-size: 14px; font-weight: 600; } .dash-root .chat-connecting-txt .dots span { animation: ds-bounce 1.2s infinite; display: inline-block; } .dash-root .chat-connecting-txt .dots span:nth-child(2){ animation-delay: 0.18s; } .dash-root .chat-connecting-txt .dots span:nth-child(3){ animation-delay: 0.36s; }
.dash-root .livechat-joined { display: flex; align-items: center; gap: 7px; justify-content: center; font-size: 12px; color: var(--muted); padding: 6px 0 10px; }

/* ---- phone input / callback ---- */
.dash-root .phone-input { display: flex; gap: 8px; }
.dash-root .phone-input .cc { width: 110px; flex: 0 0 auto; }
.dash-root .phone-input .ds-input { flex: 1; border: 1px solid var(--border-2); background: var(--panel-2); padding: 0 13px; }
.dash-root .cb-slots { display: flex; flex-direction: column; gap: 8px; }
.dash-root .cb-slot { display: flex; justify-content: space-between; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--border-2); background: var(--panel-2); cursor: pointer; font-family: inherit; color: var(--text); transition: 0.14s; }
.dash-root .cb-slot.active { border-color: var(--orange); background: color-mix(in srgb, var(--orange) 9%, transparent); }
.dash-root .cb-slot-l { font-size: 13px; font-weight: 600; } .dash-root .cb-slot-r { font-size: 12px; color: var(--muted); }

/* ---- Rules grid ---- */
.dash-root .rules-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.dash-root .rule-card { position: relative; overflow: hidden; --accent: var(--orange); transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s; }
.dash-root .rule-card::before { content: ""; position: absolute; top: -55%; right: -15%; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%); pointer-events: none; }
.dash-root .rule-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 18px 42px -24px color-mix(in srgb, var(--accent) 70%, #000); }
.dash-root .rule-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; position: relative; }
.dash-root .rule-n { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 45%, var(--text))); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.dash-root .rule-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; margin-bottom: 8px; } .dash-root .rule-title svg { color: var(--accent); flex: 0 0 auto; }
.dash-root .rule-detail { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin: 0; }

/* ---- responsive ---- */
@media (max-width: 1180px) {
  .dash-root .grid-side, .dash-root .consent-cols, .dash-root .rules-grid, .dash-root .channel-grid, .dash-root .help-topics, .dash-root .grid-2 { grid-template-columns: 1fr; }
  .dash-root .msgctr { grid-template-columns: 1fr; height: auto; }
  .dash-root .msg-inbox { border-right: 0; border-bottom: 1px solid var(--border); max-height: 280px; }
}
@media (max-width: 720px) {
  .dash-root .notif-row { grid-template-columns: 1fr; gap: 10px; }
  .dash-root .notif-head { display: none; }
  .dash-root .ticket-row { grid-template-columns: 1fr; gap: 6px; }
  .dash-root .ticket-head { display: none; }
  .dash-root .pw-checks, .dash-root .time-windows { grid-template-columns: 1fr; }
  .dash-root .profile-hero-stats { padding-left: 0; border-top: 1px solid var(--border); padding-top: 14px; width: 100%; }
}
