/* ds.css — orcounselors admin redesign design system
 * Ported from the handoff prototype (handoff/styles.css + app-theme.jsx, Evergreen theme).
 * Token-driven. Tokens live on `.ds` (scope so they never leak into the public page shell).
 * Component selectors are bare but only render meaningfully under a `.ds` ancestor (they read
 * `var(--*)` tokens defined on `.ds`). Dashboard shells set class="ds" on <body>; the public
 * storefront wraps its content in <div class="ds">.
 *
 * DO NOT add raw hex to component rules — add/refer to a token. New semantic colors go in the
 * Evergreen map below.
 */

/* ── Evergreen tokens (from app-theme.jsx) + shared scale ───────────────── */
.ds {
  --bg:        #F4F7F4;
  --surface:   #FFFFFF;
  --surface-2: #F6FAF7;
  --rail:      #0F2E22;
  --rail-2:    #163C2D;
  --rail-ink:  #CFE3D8;
  --rail-ink-2:#7FA694;
  --ink:       #142019;
  --ink-2:     #46584F;
  --ink-3:     #7A8A82;
  --line:      #E2EBE5;
  --line-2:    #D2E0D7;
  --brand:     #16794E;
  --brand-2:   #0F5C3B;
  --brand-soft:#E7F3EC;
  --brand-ink: #0C4A30;
  --accent:    #0E8C7E;
  --accent-soft:#E0F4F1;
  --warn:      #B7791F;
  --warn-soft: #FBF1DD;
  --danger:    #C0392B;
  --ok:        #16794E;
  --on-brand:  #FFFFFF;
  --font-head: 'Lora', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --head-weight: 600;
  --head-spacing: -0.01em;

  /* density tokens — reset by [data-density]. --scr-gap is the vertical breathing
     room between cards/sections on a screen; bumped for a less cramped dashboard. */
  --gap: 24px; --card-pad: 28px; --scr-gap: 28px;

  font-family: var(--font-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.ds[data-density="compact"], .ds [data-density="compact"] { --gap: 16px; --card-pad: 20px; --scr-gap: 15px; }
.ds[data-density="comfy"],   .ds [data-density="comfy"]   { --gap: 30px; --card-pad: 34px; --scr-gap: 30px; }

.ds *, .ds *::before, .ds *::after { box-sizing: border-box; }
.ds button { font-family: inherit; }
.ds ::selection { background: var(--brand-soft); }

/* ── App frame (app-shell: fixed full-height rail, main scrolls) ───────── */
.ds.app, .ds .app { display: flex; height: 100vh; height: 100dvh; overflow: hidden; }
.ds .main { flex: 1; min-width: 0; height: 100vh; height: 100dvh; overflow-y: auto; overflow-x: hidden; background: var(--bg); -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.ds .main__inner { max-width: 1120px; margin: 0 auto; padding: 40px 48px 100px; }
.ds .main__inner--wide { max-width: 1600px; }
@media (max-width: 900px) {
  /* On mobile the rail is a slide-over (position:fixed); let the page scroll
     naturally so the sticky topbar + content behave like a normal page. */
  .ds.app, .ds .app { height: auto; overflow: visible; display: block; }
  .ds .main { height: auto; overflow: visible; }
  .ds .main__inner { padding: 20px 16px 92px; }
}
.ds .sb__nav--admin .sb__item { padding: 7px 11px; }
.ds .sb__nav--admin .sb__item-label { font-size: 12.5px; }

.ds .scr { display: flex; flex-direction: column; gap: var(--scr-gap); }
.ds .scr--narrow { max-width: 860px; }

/* ── Sidebar (dark rail) ─────────────────────────────────────────────── */
.ds .sb {
  width: 264px; flex-shrink: 0; background: var(--rail); color: var(--rail-ink);
  display: flex; flex-direction: column; height: 100vh; height: 100dvh;
  transition: width .2s ease;
}
.ds .sb.is-collapsed { width: 64px; }
.ds .sb__brand { display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px; }
.ds .sb__mark {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; background: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.ds .sb__mark svg { display: block; }
.ds .sb__brandname { font-weight: 700; font-size: 14px; color: #fff; letter-spacing: -0.01em; flex: 1; text-decoration: none; line-height: 1.2; }
.ds .sb__brandname small { display: block; font-size: 10px; font-weight: 400; color: var(--rail-ink-2); letter-spacing: 0.03em; margin-top: 1px; }
.ds .sb__collapse {
  background: none; border: none; color: var(--rail-ink-2); cursor: pointer;
  width: 26px; height: 26px; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ds .sb__collapse:hover { background: var(--rail-2); color: #fff; }
.ds .sb__collapse svg { transition: transform .2s ease; }
.ds .is-collapsed .sb__collapse { margin: 0 auto; }
/* Collapsed: chevrons flip from « (collapse) to » (expand) */
.ds .is-collapsed .sb__collapse svg { transform: rotate(180deg); }
/* Collapsed rail is 64px wide — the brand row (32px mark + gap + 26px button)
   no longer fits side-by-side, which used to push the toggle out of the rail
   under .main and make it unclickable (no way to expand again). Stack them. */
@media (min-width: 901px) {
  .ds .is-collapsed .sb__brand { flex-direction: column; gap: 8px; padding: 14px 0 10px; }
}
.ds .is-collapsed .sb__brandname, .ds .is-collapsed .sb__switcher, .ds .is-collapsed .sb__item-text,
.ds .is-collapsed .sb__foot-item span, .ds .is-collapsed .sb__navgroup-label { display: none; }

.ds .sb__switcher { padding: 4px 14px 12px; }
.ds .sb__switcher-label { font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rail-ink-2); margin: 0 4px 7px; }
.ds .sb__switcher-btn {
  width: 100%; display: flex; align-items: center; gap: 9px; padding: 9px 11px;
  background: var(--rail-2); border: 1px solid rgba(255,255,255,.06); border-radius: 10px;
  color: #fff; cursor: pointer; text-align: left; text-decoration: none;
}
.ds .sb__switcher-btn:hover { border-color: rgba(255,255,255,.16); }
.ds .sb__switcher-name { flex: 1; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds .sb__switcher details { position: relative; }
.ds .sb__switcher summary { list-style: none; }
.ds .sb__switcher summary::-webkit-details-marker { display: none; }

.ds .sb__nav { flex: 1; overflow-y: auto; padding: 4px 12px; display: flex; flex-direction: column; gap: 2px; }
.ds .sb__nav::-webkit-scrollbar { width: 6px; }
.ds .sb__nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 6px; }
.ds .sb__navgroup-label { font-size: 9.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rail-ink-2); margin: 14px 6px 4px; }
.ds .sb__navgroup-label:first-child { margin-top: 4px; }
.ds .sb__item {
  display: flex; align-items: center; gap: 11px; padding: 9px 11px;
  background: none; border: none; border-radius: 9px; cursor: pointer; text-decoration: none;
  color: var(--rail-ink); text-align: left; width: 100%; transition: background .12s, color .12s;
}
.ds .sb__item:hover { background: var(--rail-2); color: #fff; }
.ds .sb__item-ico { color: var(--rail-ink-2); display: flex; flex-shrink: 0; transition: color .12s; }
.ds .sb__item-ico svg { display: block; width: 18px; height: 18px; }
.ds .sb__item:hover .sb__item-ico { color: var(--rail-ink); }
.ds .sb__item.is-active { background: var(--brand); color: #fff; }
.ds .sb__item.is-active .sb__item-ico { color: #fff; }
.ds .is-collapsed .sb__item { justify-content: center; padding: 10px; }
.ds .sb__item-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ds .sb__item-label { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.ds .sb__item-desc { font-size: 11px; color: var(--rail-ink-2); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds .sb__item.is-active .sb__item-desc { color: rgba(255,255,255,.72); }
.ds .sb__badge { font-size: 8.5px; font-weight: 800; letter-spacing: 0.06em; padding: 1.5px 5px; border-radius: 5px; background: var(--accent); color: #fff; }
.ds .sb__item.is-active .sb__badge { background: rgba(255,255,255,.25); }
.ds .sb__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: auto; flex-shrink: 0; }
.ds .sb__count { margin-left: auto; font-size: 10.5px; font-weight: 800; background: var(--rail-2); color: var(--rail-ink); padding: 1px 7px; border-radius: 999px; flex-shrink: 0; }
.ds .sb__count.is-alert { background: var(--danger); color: #fff; }

/* sub-nav (clinic profile sections) */
.ds .sb__sub { display: flex; flex-direction: column; gap: 1px; margin: 1px 0 3px 30px; padding-left: 8px; border-left: 1px solid rgba(255,255,255,.08); }
.ds .sb__sub-item { display: flex; flex-direction: column; padding: 6px 10px; border-radius: 7px; text-decoration: none; color: var(--rail-ink-2); }
.ds .sb__sub-item:hover { background: var(--rail-2); color: #fff; }
.ds .sb__sub-item.is-active { color: #fff; background: var(--rail-2); }
.ds .sb__sub-title { font-size: 12.5px; font-weight: 600; }
.ds .sb__sub-desc { font-size: 10.5px; color: var(--rail-ink-2); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds .is-collapsed .sb__sub { display: none; }

.ds .sb__foot { padding: 12px; border-top: 1px solid rgba(255,255,255,.07); display: flex; flex-direction: column; gap: 1px; }
.ds .sb__foot-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 11px; font-size: 12.5px; text-decoration: none;
  background: none; border: none; color: var(--rail-ink-2); cursor: pointer; border-radius: 8px; text-align: left; width: 100%;
}
.ds .sb__foot-item svg { flex-shrink: 0; }
.ds .sb__foot-item:hover { background: var(--rail-2); color: #fff; }
.ds .is-collapsed .sb__foot-item { justify-content: center; }

/* mobile rail */
.ds .sb__backdrop { display: none; }
@media (max-width: 900px) {
  .ds .sb {
    position: fixed; left: 0; top: 0; z-index: 60; transform: translateX(-100%);
    transition: transform .22s ease; box-shadow: 0 0 0 100vmax rgba(0,0,0,0);
  }
  .ds .sb.is-open { transform: translateX(0); box-shadow: 8px 0 40px rgba(0,0,0,.3); }
  .ds .sb.is-collapsed { width: 264px; }
  .ds .sb.is-open + .sb__backdrop, .ds .sb__backdrop.is-on { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 55; }
}

/* mobile topbar */
.ds .ds-topbar { display: none; }
@media (max-width: 900px) {
  .ds .ds-topbar {
    display: flex; align-items: center; gap: 12px; padding: 11px 16px; background: var(--rail); color: #fff;
    position: sticky; top: 0; z-index: 40;
  }
  .ds .ds-topbar__brand { display: flex; align-items: center; gap: 9px; flex: 1; text-decoration: none; color: #fff; font-weight: 700; font-size: 14px; }
  .ds .ds-topbar__menu { background: none; border: none; color: #fff; cursor: pointer; padding: 6px; display: flex; }
}

/* ── Page header ─────────────────────────────────────────────────────── */
.ds .u-pagehead { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 10px; flex-wrap: wrap; }
.ds .u-pagehead__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ds .u-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--brand); }
.ds .u-h1 { font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: var(--head-spacing); font-size: 28px; color: var(--ink); margin: 5px 0 0; line-height: 1.15; }
.ds .u-lede { font-size: 14.5px; color: var(--ink-2); margin: 7px 0 0; max-width: 64ch; line-height: 1.55; }
.ds .u-h1, .ds .u-h3, .ds .ov-hero__title, .ds .sg-step__title, .ds .ov-plan__name { text-wrap: balance; }

/* ── Cards & sections ────────────────────────────────────────────────── */
.ds .u-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(16,24,40,.03); }
.ds .u-card--pad { padding: var(--card-pad); }
.ds .u-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.ds .u-h3 { font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: var(--head-spacing); font-size: 18px; color: var(--ink); margin: 0; line-height: 1.3; }
.ds .u-sub { font-size: 13px; color: var(--ink-2); margin: 4px 0 0; line-height: 1.5; max-width: 60ch; }
.ds .u-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; }
@media (max-width: 760px) { .ds .u-grid2 { grid-template-columns: 1fr; } }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.ds .u-btn {
  display: inline-flex; align-items: center; gap: 7px; border-radius: 10px; cursor: pointer; text-decoration: none;
  font-weight: 600; font-size: 13.5px; border: 1px solid transparent; white-space: nowrap;
  transition: background .14s, border-color .14s, color .14s, transform .06s;
}
.ds .u-btn:active { transform: translateY(1px); }
.ds .u-btn { padding: 10px 18px; }            /* default (matches --md) — more substantial */
.ds .u-btn--md { padding: 10px 18px; }
.ds .u-btn--sm { padding: 8px 14px; font-size: 12.5px; }
.ds .u-btn--lg { padding: 13px 24px; font-size: 14.5px; }
.ds .u-btn--primary { background: var(--brand); color: var(--on-brand); }
.ds .u-btn--primary:hover { background: var(--brand-2); }
.ds .u-btn--ghost { background: var(--surface); color: var(--ink-2); border-color: var(--line-2); }
.ds .u-btn--ghost:hover { border-color: var(--ink-3); color: var(--ink); background: var(--surface-2); }
.ds .u-btn--soft { background: var(--brand-soft); color: var(--brand-ink); }
.ds .u-btn--soft:hover { filter: brightness(.97); }
.ds .u-btn--danger { background: color-mix(in srgb, var(--danger) 8%, transparent); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.ds .u-btn--danger:hover { background: color-mix(in srgb, var(--danger) 14%, transparent); }

/* ── Pills / chips ───────────────────────────────────────────────────── */
.ds .u-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.01em; white-space: nowrap; }
.ds .u-pill--brand { background: var(--brand-soft); color: var(--brand-ink); }
.ds .u-pill--warn { background: var(--warn-soft); color: var(--warn); }
.ds .u-pill--muted { background: var(--surface-2); color: var(--ink-3); }
.ds .u-pill--danger { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.ds .u-pill--accent { background: var(--accent-soft); color: var(--accent); }
.ds .u-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 500; }
.ds .u-chip--brand { background: var(--brand-soft); color: var(--brand-ink); border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent); }
.ds .u-chip__x { display: inline-flex; opacity: .6; cursor: pointer; }
.ds .u-chip__x:hover { opacity: 1; }

/* ── Avatar ──────────────────────────────────────────────────────────── */
.ds .u-avatar { background: var(--brand); color: var(--on-brand); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }

/* ── Form fields ─────────────────────────────────────────────────────── */
.ds .u-field { margin-bottom: 24px; }
.ds .u-field:last-child { margin-bottom: 0; }
.ds .u-field__label { font-size: 13px; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; line-height: 1.3; }
.ds .u-field__req { font-size: 9.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: 2px 6px; border-radius: 5px; }
.ds .u-field__opt { font-size: 9.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); }
.ds .u-field__hint { font-size: 12.5px; color: var(--ink-2); margin: 4px 0 9px; line-height: 1.5; max-width: 64ch; }
.ds .u-field__example { font-size: 12px; color: var(--ink-3); margin: 8px 0 0; line-height: 1.45; font-style: italic; }
.ds .u-field__example span { font-style: normal; font-weight: 700; color: var(--ink-2); text-transform: uppercase; font-size: 9.5px; letter-spacing: 0.06em; margin-right: 6px; }

.ds .u-input {
  width: 100%; padding: 10px 13px; font-size: 14px; font-family: var(--font-body); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 9px; outline: none;
  transition: border-color .14s, box-shadow .14s;
}
.ds .u-input::placeholder { color: var(--ink-3); }
.ds .u-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent); }
.ds .u-input--mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; }
.ds .u-textarea { resize: vertical; line-height: 1.55; }
.ds select.u-input { appearance: none; 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='%237A8A82' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.ds .u-counter { text-align: right; font-size: 11px; color: var(--ink-3); margin-top: 5px; }

/* ── Toggle / switch ─────────────────────────────────────────────────── */
.ds .u-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; cursor: pointer; }
.ds .u-toggle-row__label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.ds .u-toggle-row__desc { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.ds .u-switch { width: 40px; height: 23px; border-radius: 999px; background: var(--line-2); border: none; cursor: pointer; padding: 0; flex-shrink: 0; position: relative; transition: background .16s; }
.ds .u-switch.is-on { background: var(--brand); }
.ds .u-switch__dot { position: absolute; top: 2.5px; left: 2.5px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .16s; }
.ds .u-switch.is-on .u-switch__dot { transform: translateX(17px); }

/* ════════════════════════ OVERVIEW ════════════════════════ */
.ds .ov-verify { display: flex; gap: 14px; padding: 15px 18px; border-radius: 13px; background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 25%, transparent); }
.ds .ov-verify__icon { width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.ds .ov-verify__title { font-size: 13.5px; font-weight: 700; color: var(--warn); margin-bottom: 2px; }
.ds .ov-verify__body { font-size: 12.5px; color: color-mix(in srgb, var(--warn) 80%, var(--ink)); margin: 0; line-height: 1.5; max-width: 76ch; }

.ds .ov-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 36px; padding: 34px 38px; align-items: center; }
.ds .ov-hero__mid { min-width: 0; }
.ds .ov-hero__left { display: flex; align-items: center; justify-content: center; }
.ds .ov-hero__pct { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 32px; color: var(--ink); line-height: 1; }
.ds .ov-hero__pctlabel { font-size: 11px; color: var(--ink-3); font-weight: 600; margin-top: 2px; }
.ds .ov-hero__title { font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: var(--head-spacing); font-size: 21px; margin: 4px 0 0; color: var(--ink); line-height: 1.25; }
.ds .ov-hero__desc { font-size: 13.5px; color: var(--ink-2); margin: 9px 0 0; line-height: 1.6; max-width: 56ch; }
.ds .ov-hero__desc strong { color: var(--ink); }
.ds .ov-hero__next { margin-top: 20px; }
.ds .ov-hero__next-label { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 7px; }
.ds .ov-hero__next-row { display: flex; align-items: center; gap: 13px; padding: 11px 13px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; text-decoration: none; transition: border-color .14s, background .14s; }
.ds .ov-hero__next-row:hover { border-color: var(--brand); background: var(--brand-soft); }
.ds .ov-hero__next-ico { width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); }
.ds .ov-hero__next-row:hover .ov-hero__next-ico { background: var(--surface); }
.ds .ov-hero__next-title { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.ds .ov-hero__next-sub { font-size: 12px; color: var(--ink-2); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds .ov-hero__right { display: flex; flex-direction: column; gap: 14px; width: 230px; }
.ds .ov-hero__steplist { display: flex; flex-direction: column; gap: 9px; }
.ds .ov-hero__stepdot { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--ink-2); min-width: 0; }
.ds .ov-dot { width: 19px; height: 19px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; }
.ds .ov-dot--done { background: var(--brand); color: #fff; }
.ds .ov-dot--progress { background: var(--warn-soft); color: var(--warn); border: 1.5px solid var(--warn); }
.ds .ov-dot--todo { background: var(--surface-2); color: var(--ink-3); border: 1.5px solid var(--line-2); }
.ds .ov-hero__stepname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 860px) { .ds .ov-hero { grid-template-columns: 1fr; text-align: center; } .ds .ov-hero__left { justify-self: center; } .ds .ov-hero__desc, .ds .ov-hero__next, .ds .ov-hero__right { text-align: left; } .ds .ov-hero__right { width: 100%; } }

.ds .ov-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 760px) { .ds .ov-kpis { grid-template-columns: 1fr; } }
.ds .ov-kpi { display: flex; flex-direction: column; }
.ds .ov-kpi__top { display: flex; align-items: center; justify-content: space-between; }
.ds .ov-kpi__ico { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--ink-2); }
.ds .ov-kpi__n { font-family: var(--font-head); font-weight: 700; font-size: 36px; line-height: 1; color: var(--ink); }
.ds .ov-kpi__n.is-warn { color: var(--warn); }
.ds .ov-kpi__label { font-size: 14px; font-weight: 700; color: var(--ink); margin-top: 14px; line-height: 1.3; }
.ds .ov-kpi__sub { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; }
.ds .ov-kpi__link { display: inline-flex; align-items: center; gap: 2px; background: none; border: none; cursor: pointer; text-decoration: none; color: var(--brand); font-size: 12.5px; font-weight: 600; margin-top: 12px; padding: 0; }
.ds .ov-kpi__link:hover { gap: 5px; }

.ds .ov-grid2 { display: grid; grid-template-columns: 1.55fr 1fr; gap: var(--gap); align-items: start; }
@media (max-width: 860px) { .ds .ov-grid2 { grid-template-columns: 1fr; } }
.ds .ov-activity { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ds .ov-activity__item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink); }
.ds .ov-activity__item:last-child { border-bottom: none; }
.ds .ov-activity__ico { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.ds .ov-activity__ico--brand { background: var(--brand-soft); color: var(--brand); }
.ds .ov-activity__ico--accent { background: var(--accent-soft); color: var(--accent); }
.ds .ov-activity__ico--ink { background: var(--surface-2); color: var(--ink-2); }
.ds .ov-activity__text { flex: 1; min-width: 0; }
.ds .ov-activity__time { font-size: 11.5px; color: var(--ink-3); flex-shrink: 0; }

.ds .ov-side { display: flex; flex-direction: column; gap: var(--gap); }
.ds .ov-plan__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ds .ov-plan__name { font-size: 16px; font-weight: 700; color: var(--ink); margin-top: 3px; font-family: var(--font-head); line-height: 1.3; white-space: nowrap; }
.ds .ov-plan__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ds .ov-plan__cell { padding: 11px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; }
.ds .ov-plan__cell-v { font-size: 15px; font-weight: 700; color: var(--ink); }
.ds .ov-plan__cell-l { font-size: 11px; color: var(--ink-2); margin-top: 2px; }
.ds .ov-quick { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.ds .ov-quick__row { display: flex; align-items: center; gap: 11px; padding: 10px 11px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; text-decoration: none; font-size: 13px; font-weight: 500; color: var(--ink); transition: background .12s, border-color .12s; }
.ds .ov-quick__row:hover { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 30%, transparent); }
.ds .ov-quick__ico { width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--surface); color: var(--brand); border: 1px solid var(--line); }

/* ════════════════════════ SETUP GUIDE ════════════════════════ */
.ds .sg-summary { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.ds .sg-summary__pct { font-family: var(--font-head); font-weight: 700; font-size: 21px; color: var(--ink); }
.ds .sg-summary__mid { flex: 1; min-width: 200px; }
.ds .sg-summary__title { font-size: 15px; font-weight: 700; color: var(--ink); }
.ds .sg-summary__bar { height: 8px; border-radius: 999px; background: var(--line); margin: 9px 0 7px; overflow: hidden; }
.ds .sg-summary__bar span { display: block; height: 100%; border-radius: 999px; background: var(--brand); transition: width .6s ease; }
.ds .sg-summary__sub { font-size: 12.5px; color: var(--ink-2); }
.ds .sg-summary__hint { display: flex; align-items: center; gap: 9px; max-width: 230px; font-size: 12px; color: var(--ink-2); line-height: 1.45; padding-left: 22px; border-left: 1px solid var(--line); }
.ds .sg-group { margin-top: 12px; }
.ds .sg-group__head { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin: 0 2px 14px; }
.ds .sg-steps { display: flex; flex-direction: column; gap: 12px; }
.ds .sg-step { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color .14s, box-shadow .14s; }
.ds .sg-step:hover { border-color: var(--line-2); }
.ds .sg-step.is-open { border-color: color-mix(in srgb, var(--brand) 35%, transparent); box-shadow: 0 4px 16px rgba(16,24,40,.05); }
.ds .sg-step__main { display: flex; align-items: center; gap: 16px; padding: 19px 22px; cursor: pointer; }
.ds .sg-step__num { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.ds .sg-step__num--done { background: var(--brand); color: #fff; }
.ds .sg-step__num--progress { background: var(--warn-soft); color: var(--warn); border: 1.5px solid var(--warn); }
.ds .sg-step__num--todo { background: var(--surface-2); color: var(--ink-3); border: 1.5px solid var(--line-2); }
.ds .sg-step__ico { width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); }
.ds .sg-step--done .sg-step__ico { background: var(--surface-2); color: var(--ink-3); }
.ds .sg-step__body { flex: 1; min-width: 0; }
.ds .sg-step__titlerow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ds .sg-step__title { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0; font-family: var(--font-head); letter-spacing: var(--head-spacing); line-height: 1.3; white-space: nowrap; flex-shrink: 0; }
.ds .sg-step__desc { font-size: 12.5px; color: var(--ink-2); margin: 3px 0 0; line-height: 1.5; }
.ds .sg-step__meta { display: flex; gap: 14px; margin-top: 7px; }
.ds .sg-step__meta-item { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.ds .sg-step__chev { color: var(--ink-3); flex-shrink: 0; transition: transform .18s; }
.ds .sg-step.is-open .sg-step__chev { transform: rotate(90deg); }
.ds .sg-step__detail { padding: 0 18px 18px 76px; }
@media (max-width: 600px) { .ds .sg-step__detail { padding: 0 16px 16px; } }
.ds .sg-step__why { display: flex; gap: 9px; padding: 11px 13px; border-radius: 10px; background: var(--accent-soft); font-size: 12.5px; color: color-mix(in srgb, var(--accent) 75%, var(--ink)); line-height: 1.5; margin-bottom: 14px; }
.ds .sg-step__why strong { color: color-mix(in srgb, var(--accent) 85%, var(--ink)); }
.ds .sg-step__why-ic { color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.ds .sg-step__fields { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ds .sg-step__fields li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.ds .sg-step__fields li.is-filled { color: var(--ink); }
.ds .sg-step__fieldcheck { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; border: 1.5px solid var(--line-2); display: flex; align-items: center; justify-content: center; }
.ds .sg-step__fields li.is-filled .sg-step__fieldcheck { background: var(--brand); border-color: var(--brand); color: #fff; }
.ds .sg-step__fieldtodo { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); white-space: nowrap; background: var(--surface-2); padding: 2px 7px; border-radius: 5px; margin-left: auto; }
.ds .sg-step__actions { display: flex; align-items: center; gap: 14px; }
.ds .sg-step__skip { background: none; border: none; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.ds .sg-step__skip:hover { color: var(--ink-2); }

/* ════════════════════════ PROFILE ════════════════════════ */
.ds .pf-saved { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ok); }
.ds .pf-saved__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.ds .pf-layout { display: grid; grid-template-columns: 1fr 280px; gap: var(--gap); align-items: start; }
@media (max-width: 940px) { .ds .pf-layout { grid-template-columns: 1fr; } }
.ds .pf-main { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.ds .pf-visibility { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); background: var(--surface-2); padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); }
.ds .pf-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .ds .pf-2col { grid-template-columns: 1fr; } }
.ds .pf-hours { margin-top: 4px; }
.ds .pf-hours__label { font-size: 13px; font-weight: 600; color: var(--ink); }
.ds .pf-hours__grid { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.ds .pf-hours__row { display: flex; align-items: center; gap: 14px; padding: 9px 13px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); }
.ds .pf-hours__row.is-closed { opacity: .6; }
.ds .pf-hours__day { font-size: 12.5px; font-weight: 700; color: var(--ink); width: 34px; }
.ds .pf-hours__time { font-size: 12.5px; color: var(--ink-2); font-family: 'JetBrains Mono', monospace; }
.ds .pf-rail { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; }
.ds .pf-rail__card { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 26px; padding-bottom: 26px; }
.ds .pf-rail__ringwrap { margin-bottom: 4px; }
.ds .pf-rail__pct { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--ink); }
.ds .pf-rail__title { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.3; white-space: nowrap; }
.ds .pf-rail__sub { font-size: 12px; color: var(--ink-2); margin: 4px 0 12px; line-height: 1.45; }
.ds .pf-rail__checks { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 7px; width: 100%; }
.ds .pf-rail__checks li { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink-3); text-align: left; }
.ds .pf-rail__checks li.is-ok { color: var(--ink); }
.ds .pf-rail__check { width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; border: 1.5px solid var(--line-2); display: flex; align-items: center; justify-content: center; }
.ds .pf-rail__checks li.is-ok .pf-rail__check { background: var(--brand); border-color: var(--brand); color: #fff; }
.ds .pf-rail__link { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; cursor: pointer; text-decoration: none; color: var(--brand); font-size: 12.5px; font-weight: 700; padding: 0; }
.ds .pf-rail__link:hover { gap: 9px; }
.ds .pf-rail__tip { display: flex; gap: 11px; padding: 14px 16px; border-radius: 13px; background: var(--brand-soft); font-size: 12.5px; color: var(--brand-ink); line-height: 1.5; }
.ds .pf-rail__tip strong { font-weight: 800; }
.ds .pf-rail__tip-ic { color: var(--brand); flex-shrink: 0; margin-top: 1px; }

/* ── Placeholder / empty ─────────────────────────────────────────────── */
.ds .ph-ico { width: 56px; height: 56px; border-radius: 15px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); }
.ds .ph-title { font-size: 16px; font-weight: 700; color: var(--ink); }
.ds .ph-desc { font-size: 13.5px; color: var(--ink-2); margin: 8px auto 0; max-width: 44ch; line-height: 1.55; }

/* ════════════════════════ PRACTICE ════════════════════════ */
.ds .pr-status-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
@media (max-width: 760px) { .ds .pr-status-row { grid-template-columns: 1fr; } }
.ds .pr-status { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .14s, background .14s; }
.ds .pr-status:hover { border-color: var(--line-2); }
.ds .pr-status.is-on { border-color: color-mix(in srgb, var(--brand) 35%, transparent); background: var(--brand-soft); }
.ds .pr-status__ico { width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--ink-3); }
.ds .pr-status.is-on .pr-status__ico { background: var(--brand); color: var(--on-brand); }
.ds .pr-status__text { flex: 1; min-width: 0; }
.ds .pr-status__label { font-size: 14px; font-weight: 700; color: var(--ink); }
.ds .pr-status__desc { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; line-height: 1.45; }
.ds .pr-sec-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.ds .pr-sec-ico { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); }
.ds .pr-sec-count { font-size: 11px; font-weight: 700; letter-spacing: 0.03em; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); padding: 5px 11px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; }

/* Priority tag editor */
.ds .pt-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; align-items: stretch; gap: 7px; }
.ds .pt-row { width: 100%; }
.ds .pt-empty { font-size: 13px; color: var(--ink-3); padding: 16px; text-align: center; background: var(--surface-2); border: 1px dashed var(--line-2); border-radius: 11px; margin-bottom: 16px; }
.ds .pt-row { display: flex; align-items: center; gap: 12px; padding: 11px 13px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 11px; cursor: grab; transition: border-color .12s, box-shadow .12s, background .12s, opacity .12s; }
.ds .pt-row:hover { border-color: var(--ink-3); }
.ds .pt-row.is-featured { background: var(--surface-2); }
.ds .pt-row.is-dragging { opacity: .45; cursor: grabbing; }
.ds .pt-row.is-over { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.ds .pt-grip { color: var(--ink-3); display: flex; flex-shrink: 0; cursor: grab; }
.ds .pt-num { width: 22px; height: 22px; border-radius: 7px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; background: var(--surface-2); color: var(--ink-3); border: 1px solid var(--line-2); }
.ds .pt-num.is-featured { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.ds .pt-label { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds .pt-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; color: var(--brand-ink); background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent); padding: 3px 8px; border-radius: 999px; flex-shrink: 0; }
.ds .pt-remove { width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; color: var(--ink-3); transition: background .12s, color .12s; }
.ds .pt-remove:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.ds .pt-fold { display: flex; align-items: center; gap: 12px; padding: 4px 2px; }
.ds .pt-fold__line { flex: 1; height: 1px; background: var(--line-2); }
.ds .pt-fold__label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.ds .pt-add { position: relative; margin-bottom: 12px; }
.ds .pt-search { display: flex; align-items: center; gap: 9px; padding: 10px 13px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 9px; transition: border-color .14s, box-shadow .14s; }
.ds .pt-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent); }
.ds .pt-search input { flex: 1; border: none; outline: none; background: none; font-size: 14px; font-family: var(--font-body); color: var(--ink); }
.ds .pt-search input::placeholder { color: var(--ink-3); }
.ds .pt-popular { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.ds .pt-popular__label { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); flex-shrink: 0; }
.ds .pt-popular__chips { display: flex; flex-wrap: wrap; gap: 7px; }
.ds .pt-chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; background: var(--surface); border: 1px solid var(--line-2); white-space: nowrap; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: border-color .12s, color .12s, background .12s; }
.ds .pt-chip:hover { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-soft); }
.ds .pt-browse { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--brand); padding: 6px 0; margin-bottom: 4px; }
.ds .pt-browse svg { transition: transform .18s; }
.ds details[open] > .pt-browse svg { transform: rotate(90deg); }
.ds .pt-cloud { display: flex; flex-wrap: wrap; gap: 7px; padding: 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; margin: 8px 0 14px; max-height: 220px; overflow-y: auto; }
.ds .pt-cloudchip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 11px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: border-color .12s, color .12s, background .12s; white-space: nowrap; }
.ds .pt-cloudchip:hover { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-soft); }
.ds .pt-custom { display: flex; gap: 8px; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.ds .pt-custom input { flex: 1; padding: 10px 13px; font-size: 13.5px; font-family: var(--font-body); color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 9px; outline: none; }
.ds .pt-custom input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent); }
.ds .pt-custom__add { display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; white-space: nowrap; }
.ds .pt-custom__add:hover { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 30%, transparent); color: var(--brand-ink); }

/* Badges */
.ds .pr-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 720px) { .ds .pr-badges { grid-template-columns: 1fr; } }
.ds .pr-badge { display: flex; align-items: center; gap: 13px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; transition: border-color .14s, background .14s; }
.ds .pr-badge:hover { border-color: var(--ink-3); }
.ds .pr-badge.is-on { border-color: color-mix(in srgb, var(--brand) 35%, transparent); background: var(--brand-soft); }
.ds .pr-badge__ico { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--ink-3); }
.ds .pr-badge.is-on .pr-badge__ico { background: var(--brand); color: var(--on-brand); }
.ds .pr-badge__text { flex: 1; min-width: 0; }
.ds .pr-badge__label { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.ds .pr-badge__desc { font-size: 11.5px; color: var(--ink-2); margin-top: 2px; line-height: 1.4; }
.ds .pr-foot { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: var(--accent-soft); border-radius: 12px; font-size: 13px; color: color-mix(in srgb, var(--accent) 78%, var(--ink)); line-height: 1.5; }
.ds .pr-foot__link { background: none; border: none; padding: 0; cursor: pointer; font: inherit; font-weight: 700; color: var(--accent); text-decoration: underline; }

/* ════════════════════════ SHARED TABLE ════════════════════════ */
.ds .tbl { display: flex; flex-direction: column; }
.ds .tbl__head, .ds .tbl__row { display: grid; align-items: center; gap: 12px; }
.ds .tbl__head { padding: 0 4px 10px; border-bottom: 1px solid var(--line); }
.ds .tbl__head span { font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.ds .tbl__row { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink); }
.ds .tbl__row:last-child { border-bottom: none; }
.ds .tbl__row--link { text-decoration: none; color: inherit; transition: background .1s; border-radius: 8px; }
.ds .tbl__row--link:hover { background: var(--surface-2); }
.ds .tbl__strong { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds .tbl__muted { color: var(--ink-2); }
.ds .tbl__actions { display: flex; gap: 6px; justify-content: flex-end; }
.ds .tbl--scroll { overflow-x: auto; }

/* ════════════════════════ MEMBERS ════════════════════════ */
.ds .mb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 760px) { .ds .mb-grid { grid-template-columns: 1fr; } }
.ds .mb-card { border: 1px solid var(--line-2); border-radius: 13px; padding: 16px; background: var(--surface); transition: border-color .14s, box-shadow .14s; }
.ds .mb-card:hover { border-color: var(--ink-3); box-shadow: 0 2px 10px rgba(16,24,40,.04); }
.ds .mb-card__top { display: flex; align-items: center; gap: 12px; }
.ds .mb-card__name { font-size: 14.5px; font-weight: 700; color: var(--ink); display: flex; align-items: baseline; gap: 7px; }
.ds .mb-card__cred { font-size: 11px; font-weight: 700; color: var(--ink-3); letter-spacing: 0.03em; }
.ds .mb-card__meta { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.ds .mb-role { font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-3); border: 1px solid var(--line-2); flex-shrink: 0; }
.ds .mb-role.is-admin { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.ds .mb-card__row { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 12px; }
.ds .mb-accepting { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.ds .mb-accepting.is-on { color: var(--ok); }
.ds .mb-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ds .mb-leads { font-size: 12px; color: var(--ink-2); }
.ds .mb-card__actions { display: flex; gap: 6px; flex-wrap: wrap; }
.ds .mb-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--ink-2); cursor: pointer; text-decoration: none; transition: border-color .12s, color .12s, background .12s; }
.ds .mb-btn:hover { border-color: var(--ink-3); color: var(--ink); }
.ds .mb-btn--danger { color: var(--ink-3); }
.ds .mb-btn--danger:hover { border-color: color-mix(in srgb, var(--danger) 40%, transparent); color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, transparent); }

/* ════════════════════════ MEDIA ════════════════════════ */
.ds .md-logo { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.ds .md-logo__previewwrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ds .md-logo__preview { width: 280px; height: 110px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; overflow: hidden; transition: all .2s ease; }
.ds .md-logo__preview.is-circle { width: 120px; height: 120px; border-radius: 50%; }
.ds .md-logo__preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ds .md-logo__hint { font-size: 11px; color: var(--ink-3); letter-spacing: 0.03em; }
.ds .md-logo__controls { flex: 1; min-width: 240px; }
.ds .md-logo__btns { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ds .md-seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; }
.ds .md-seg button { padding: 7px 14px; font-size: 12px; font-weight: 600; border: none; cursor: pointer; background: var(--surface); color: var(--ink-2); }
.ds .md-seg button.is-on { background: var(--ink); color: var(--surface); }
.ds .md-tips { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.ds .md-tips li { font-size: 12.5px; color: var(--ink-2); padding-left: 20px; position: relative; }
.ds .md-tips li::before { content: '✓'; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.ds .md-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ds .md-tile { aspect-ratio: 4/3; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.ds .md-tile img { width: 100%; height: 100%; object-fit: cover; }
.ds .md-tile__del { position: absolute; top: 7px; right: 7px; width: 26px; height: 26px; border-radius: 7px; border: none; cursor: pointer; background: rgba(16,24,40,.55); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .12s; }
.ds .md-tile:hover .md-tile__del { opacity: 1; }
.ds .md-primary { position: absolute; top: 8px; left: 8px; padding: 2px 9px; background: var(--brand); color: var(--on-brand); border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; }
.ds .md-upload { aspect-ratio: 4/3; border-radius: 12px; border: 2px dashed var(--line-2); background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--ink-3); font-size: 12px; font-weight: 600; transition: border-color .14s, color .14s; }
.ds .md-upload:hover { border-color: var(--brand); color: var(--brand); }

/* ════════════════════════ MARKETING ════════════════════════ */
.ds .mk-list { display: flex; flex-direction: column; gap: 10px; }
.ds .mk-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px; }
.ds .mk-row__ico { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); }
.ds .mk-row__title { font-size: 14px; font-weight: 700; color: var(--ink); }
.ds .mk-row__sub { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.ds .mk-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ok); flex-shrink: 0; }
.ds .mk-draft { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.ds .mk-note { display: flex; gap: 10px; align-items: center; margin-top: 16px; padding: 13px 16px; background: var(--accent-soft); border-radius: 11px; font-size: 12.5px; color: color-mix(in srgb, var(--accent) 78%, var(--ink)); line-height: 1.5; }

/* ════════════════════════ LEADS ════════════════════════ */
.ds .ld-pool { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.ds .ld-pool__main { flex: 1; min-width: 240px; }
.ds .ld-pool__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ds .ld-pool__count { font-size: 13px; color: var(--ink-2); }
.ds .ld-pool__count strong { color: var(--ink); font-size: 15px; }
.ds .ld-pool__bar { height: 8px; border-radius: 999px; background: var(--line); margin: 10px 0 7px; overflow: hidden; }
.ds .ld-pool__bar span { display: block; height: 100%; border-radius: 999px; background: var(--brand); }
.ds .ld-pool__sub { font-size: 12px; color: var(--ink-2); }
.ds .ld-assign { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink); cursor: pointer; padding: 4px 8px; border-radius: 8px; border: 1px solid transparent; }
.ds .ld-assign:hover { border-color: var(--line-2); background: var(--surface-2); }
.ds .ld-assign__empty { color: var(--ink-3); font-style: italic; }

/* ════════════════════════ BILLING ════════════════════════ */
.ds .bl-current { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.ds .bl-price { font-family: var(--font-head); font-weight: 700; font-size: 34px; color: var(--ink); line-height: 1; margin-top: 8px; }
.ds .bl-price span { font-size: 14px; color: var(--ink-3); font-weight: 500; font-family: var(--font-body); }
.ds .bl-current__facts { flex: 1; display: grid; grid-template-columns: repeat(4, auto); gap: 24px; }
@media (max-width: 720px) { .ds .bl-current__facts { grid-template-columns: 1fr 1fr; gap: 16px; } }
.ds .bl-fact__l { font-size: 11px; font-weight: 600; color: var(--ink-3); }
.ds .bl-fact__v { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-top: 3px; }
.ds .bl-cyc { display: inline-flex; gap: 5px; padding: 5px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; align-self: flex-start; }
.ds .bl-cyc button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px; border: none; background: none; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.ds .bl-cyc button.is-on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(16,24,40,.1); }
.ds .bl-save { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ok); background: var(--brand-soft); padding: 2px 7px; border-radius: 999px; }
.ds .bl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 820px) { .ds .bl-grid { grid-template-columns: 1fr; } }
.ds .bl-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; padding: 26px 22px; display: flex; flex-direction: column; gap: 10px; }
.ds .bl-card.is-current { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent); }
.ds .bl-card.is-dark { background: var(--rail); border-color: var(--rail); }
.ds .bl-card.is-dark .bl-card__name, .ds .bl-card.is-dark .bl-card__price { color: #fff; }
.ds .bl-card.is-dark .bl-card__blurb, .ds .bl-card.is-dark .bl-card__features li { color: var(--rail-ink); }
.ds .bl-card__active { font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); }
.ds .bl-card__name { font-family: var(--font-head); font-size: 19px; font-weight: 700; color: var(--ink); }
.ds .bl-card__price { font-family: var(--font-head); font-size: 32px; font-weight: 700; color: var(--ink); line-height: 1; }
.ds .bl-card__price span { font-size: 14px; color: var(--ink-3); font-weight: 500; font-family: var(--font-body); }
.ds .bl-card__blurb { font-size: 12.5px; color: var(--ink-2); }
.ds .bl-card__features { list-style: none; margin: 6px 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.ds .bl-card__features li { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--ink); }
.ds .bl-card__features svg { flex-shrink: 0; margin-top: 2px; color: var(--brand); }
.ds .bl-card__cta { margin-top: auto; padding: 11px; border-radius: 10px; border: none; background: var(--brand); color: var(--on-brand); font-size: 13.5px; font-weight: 700; cursor: pointer; text-align: center; text-decoration: none; }
.ds .bl-card.is-dark .bl-card__cta { background: var(--accent); color: #fff; }
.ds .bl-card__cta.is-current { background: var(--brand-soft); color: var(--brand-ink); cursor: default; }

/* ════════════════════════ ACCOUNT ════════════════════════ */
.ds .ac-locked { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 9px; }
.ds .ac-locked__email { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink); font-family: 'JetBrains Mono', monospace; }
.ds .ac-locked__link { background: none; border: none; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--brand); text-decoration: underline; }
.ds .ac-toggles { display: flex; flex-direction: column; }
.ds .ac-toggles .u-toggle-row { border-bottom: 1px solid var(--line); }
.ds .ac-toggles .u-toggle-row:last-child { border-bottom: none; }
.ds .ac-danger__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.ds .ac-danger__row:first-child { border-top: none; }
.ds .ac-danger__t { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.ds .ac-danger__d { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; max-width: 52ch; }
.ds .ac-delete { padding: 8px 16px; border-radius: 9px; border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent); background: color-mix(in srgb, var(--danger) 8%, transparent); color: var(--danger); font-size: 13px; font-weight: 700; cursor: pointer; flex-shrink: 0; text-decoration: none; }
.ds .ac-delete:hover { background: color-mix(in srgb, var(--danger) 14%, transparent); }

/* ════════════════════════ PROVIDER / TILES / MISC ════════════════════════ */
.ds .ph-tiles { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 880px) { .ds .ph-tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ds .ph-tiles { grid-template-columns: 1fr; } }
.ds .ph-tile { text-align: left; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 18px; cursor: pointer; text-decoration: none; display: flex; flex-direction: column; transition: border-color .14s, box-shadow .14s, transform .06s; }
.ds .ph-tile:hover { border-color: var(--brand); box-shadow: 0 4px 16px rgba(16,24,40,.06); }
.ds .ph-tile:active { transform: translateY(1px); }
.ds .ph-tile__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ds .ph-tile__ico { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); }
.ds .ph-tile__badge { font-size: 10.5px; font-weight: 700; color: var(--warn); background: var(--warn-soft); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.ds .ph-tile__title { font-size: 15px; font-weight: 700; color: var(--ink); font-family: var(--font-head); }
.ds .ph-tile__sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; font-weight: 600; }
.ds .ph-tile__desc { font-size: 12.5px; color: var(--ink-2); margin-top: 9px; line-height: 1.5; flex: 1; }
.ds .ph-tile__cta { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--brand); margin-top: 14px; }
.ds .ph-tile:hover .ph-tile__cta { gap: 8px; }
.ds .pv-trend { font-size: 11px; font-weight: 700; color: var(--ok); background: var(--brand-soft); padding: 3px 8px; border-radius: 999px; }
.ds .pv-photo { display: flex; align-items: center; gap: 20px; }
.ds .pv-photo__ph { width: 88px; height: 88px; border-radius: 50%; flex-shrink: 0; background: var(--surface-2); border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ds .pv-photo__ph img { width: 100%; height: 100%; object-fit: cover; }
.ds .seg-select { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.ds .seg-select button { padding: 9px 15px; font-size: 13px; font-weight: 600; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); border-radius: 9px; cursor: pointer; transition: border-color .12s, color .12s, background .12s; }
.ds .seg-select button.is-on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.ds .lead-cards { display: flex; flex-direction: column; gap: 12px; }
.ds .lead-card.is-locked { background: var(--surface-2); }
.ds .lead-card__top { display: flex; align-items: center; gap: 12px; }
.ds .lead-card__name { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.ds .lead-card__meta { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.ds .lead-card__note { font-size: 13px; color: var(--ink-2); margin: 14px 0; padding: 11px 14px; background: var(--surface-2); border-radius: 10px; line-height: 1.5; }
.ds .lead-card__actions { display: flex; align-items: center; gap: 8px; }
.ds .lead-locked { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 13px 16px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: 11px; font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.ds .lead-locked span { flex: 1; }
.ds .rf-row { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line-2); border-radius: 13px; }
.ds .rf-reason { font-size: 13px; color: var(--ink-2); margin-top: 4px; line-height: 1.5; }
.ds .rf-when { font-size: 11.5px; color: var(--ink-3); margin-top: 5px; }
.ds .rf-actions { display: flex; gap: 8px; flex-shrink: 0; }
.ds .an-chart { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 8px; }
.ds .an-bar { flex: 1; background: var(--brand); border-radius: 5px 5px 2px 2px; min-height: 4px; opacity: .55; transition: opacity .12s; }
.ds .an-bar:last-child { opacity: 1; }
.ds .an-bar:hover { opacity: 1; }
.ds .an-sources { display: flex; flex-direction: column; gap: 14px; }
.ds .an-source { display: flex; align-items: center; gap: 14px; }
.ds .an-source__label { width: 84px; font-size: 13px; font-weight: 600; color: var(--ink); flex-shrink: 0; }
.ds .an-source__bar { flex: 1; height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.ds .an-source__bar span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.ds .an-source__pct { width: 40px; text-align: right; font-size: 13px; font-weight: 700; color: var(--ink-2); flex-shrink: 0; }
.ds .sec-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px; }
.ds .sec-current { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: 2px 8px; border-radius: 999px; margin-left: 6px; }

/* App-store integration cards (provider) */
.ds .as-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
@media (max-width: 720px) { .ds .as-grid { grid-template-columns: 1fr; } }
.ds .as-card { display: flex; flex-direction: column; }
.ds .as-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ds .as-card__ico { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--ink); }
.ds .as-connected { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--ok); background: var(--brand-soft); padding: 4px 10px; border-radius: 999px; }
.ds .as-card__name { font-size: 15.5px; font-weight: 700; color: var(--ink); font-family: var(--font-head); }
.ds .as-card__cat { font-size: 11.5px; font-weight: 600; color: var(--ink-3); margin-top: 2px; }
.ds .as-card__desc { font-size: 13px; color: var(--ink-2); margin: 10px 0 16px; line-height: 1.5; flex: 1; }
.ds .as-card .u-btn { align-self: flex-start; }

/* ════════════════════════ RICH TEXT (wraps TinyMCE / textarea) ════════════════════════ */
.ds .rt { border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: var(--surface); transition: border-color .14s, box-shadow .14s; }
.ds .rt:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent); }
.ds .rt-foot { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: 11.5px; }
.ds .rt-words { color: var(--ink-3); font-weight: 600; }
.ds .rt-chars { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ds .rt-chars.is-over { color: var(--danger); font-weight: 700; }

/* ════════════════════════ MODAL ════════════════════════ */
.ds .modal-scrim, .ds-modal-scrim { position: fixed; inset: 0; z-index: 1000; background: rgba(16,24,40,.55); display: flex; align-items: center; justify-content: center; padding: 24px; }
.ds .modal-card { background: var(--surface); border-radius: 18px; width: 100%; max-width: 480px; box-shadow: 0 24px 60px rgba(16,24,40,.3); display: flex; flex-direction: column; max-height: 90vh; overflow: hidden; }
.ds .modal-card.is-wide { max-width: 620px; }
.ds .modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 16px; }
.ds .modal-title { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 19px; color: var(--ink); margin: 0; }
.ds .modal-sub { font-size: 13px; color: var(--ink-2); margin: 5px 0 0; line-height: 1.45; }
.ds .modal-x { width: 34px; height: 34px; border-radius: 9px; border: none; background: var(--surface-2); color: var(--ink-2); cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ds .modal-x:hover { background: var(--line); color: var(--ink); }
.ds .modal-body { padding: 4px 24px 8px; overflow-y: auto; }
.ds .modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px 22px; }

/* ════════════════════════ ADMIN PRIMITIVES (.adm-*) ════════════════════════ */
.ds .adm-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.ds .adm-toolbar__search { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 220px; padding: 9px 13px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 9px; transition: border-color .14s, box-shadow .14s; }
.ds .adm-toolbar__search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent); }
.ds .adm-toolbar__search input { flex: 1; border: none; outline: none; background: none; font-size: 13.5px; font-family: var(--font-body); color: var(--ink); }
.ds .adm-toolbar__search svg { color: var(--ink-3); flex-shrink: 0; }
.ds .adm-chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.ds .adm-chip { display: inline-flex; align-items: center; gap: 5px; padding: 7px 13px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; text-decoration: none; transition: border-color .12s, color .12s, background .12s; }
.ds .adm-chip:hover { border-color: var(--ink-3); color: var(--ink); }
.ds .adm-chip.is-on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.ds .adm-chip__count { font-size: 11px; opacity: .7; font-weight: 700; }
.ds .adm-bulkbar { position: sticky; bottom: 18px; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 12px 18px; background: var(--rail); color: #fff; border-radius: 13px; box-shadow: 0 12px 32px rgba(16,24,40,.25); }
.ds .adm-bulkbar__count { font-size: 13px; font-weight: 700; }
.ds .adm-bulkbar__count span { color: var(--rail-ink-2); font-weight: 500; }
.ds .adm-bulkbar__sp { flex: 1; }
.ds .adm-drawer-scrim { position: fixed; inset: 0; z-index: 900; background: rgba(16,24,40,.5); display: flex; justify-content: flex-end; }
.ds .adm-drawer { width: 100%; max-width: 560px; height: 100%; background: var(--surface); box-shadow: -16px 0 48px rgba(16,24,40,.2); display: flex; flex-direction: column; overflow: hidden; }
.ds .adm-drawer__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 26px 16px; border-bottom: 1px solid var(--line); }
.ds .adm-drawer__body { padding: 22px 26px; overflow-y: auto; flex: 1; }
.ds .adm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--gap); }
.ds .adm-checkbox { width: 17px; height: 17px; accent-color: var(--brand); cursor: pointer; flex-shrink: 0; }

/* ════════════════════════ PUBLIC STOREFRONT (.store-*) ════════════════════════ */
.ds .store-hero { text-align: center; max-width: 680px; margin: 0 auto 28px; }
.ds .store-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.ds .store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--gap); }
.ds .store-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; transition: border-color .14s, box-shadow .14s, transform .08s; }
.ds .store-card:hover { border-color: var(--brand); box-shadow: 0 6px 22px rgba(16,24,40,.08); transform: translateY(-2px); }
.ds .store-card__media { aspect-ratio: 16/10; background: var(--surface-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ds .store-card__media img { width: 100%; height: 100%; object-fit: cover; }
.ds .store-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.ds .store-card__cat { font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); }
.ds .store-card__title { font-size: 16px; font-weight: 700; font-family: var(--font-head); color: var(--ink); line-height: 1.3; }
.ds .store-card__co { font-size: 12.5px; color: var(--ink-3); }
.ds .store-card__tagline { font-size: 13px; color: var(--ink-2); line-height: 1.5; margin-top: 4px; flex: 1; }
.ds .store-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.ds .store-card__price { font-size: 13px; font-weight: 700; color: var(--ink); }
.ds .store-featured { border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); }
/* store-detail: big media on the left, a 320px right column holding the
 * title, CTA, and the Price/Platforms/Categories facts. Stacks to one
 * column (media then aside) below 900px. */
.ds .store-detail { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 36px; align-items: stretch; }
.ds .store-detail__hero { height: 100%; }
.ds .store-detail__hero > .u-card { height: 100%; }
/* Full image, never cropped: object-contain captures the whole width; a soft
 * mat + border frames it cleanly when the matched height leaves letterbox space. */
.ds .store-detail .sd-herobox { width: 100%; height: 100%; min-height: 300px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ds .store-detail .sd-herobox img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* Mobile: single column — media keeps a normal 16:9 instead of stretching. */
@media (max-width: 900px) {
  .ds .store-detail { grid-template-columns: 1fr; align-items: start; }
  .ds .store-detail .sd-herobox { height: auto; min-height: 0; aspect-ratio: 16/9; }
}

/* ════════════════════════ LEGACY-WRAPPER NEUTRALIZERS ════════════════════════ */
/* The redesigned shells wrap injected content in `.main__inner` (already padded).
 * Strip padding/max-width/background from legacy content wrappers so they don't
 * double up. These only apply inside `.ds`, never to the untouched Provider shell. */
.ds .ocd-dash-body { padding: 0 !important; background: none !important; }
.ds .ocd-clinic__content,
.ds .ocd-partner__content { padding: 0 !important; max-width: none !important; margin: 0 !important; background: none !important; }
/* The provider Settings body stacks its <section class="u-card"> children but
 * isn't a flex-gap container, so cards touched edge-to-edge. Give it the same
 * vertical rhythm as .scr. (Clinic/partner use .scr directly.) */
.ds .ocd-settings-main__body { display: flex; flex-direction: column; gap: var(--scr-gap); }
/* Belt-and-suspenders: any two stacked content <section class="u-card"> siblings
 * that are NOT inside a gap-managed flow still get breathing room. */
.ds :not(.scr):not(.ocd-settings-main__body) > section.u-card + section.u-card { margin-top: var(--scr-gap); }
/* The dark rail + slide-over IS the mobile nav now — hide the legacy bottom tab
 * bar + its "more" menu (kept in DOM for any JS that references them). */
.ds .ocd-dash-mobile-tabs, .ds .ocd-dash-more-menu { display: none !important; }
/* legacy desktop chrome that the rail replaces, in case any renders inside .ds */
.ds .ocd-dash-topbar { display: none !important; }

/* ════════════════════════ TAG EDITOR — DS modernization ════════════════════════ */
/* Restyle the existing draggable tag widget (.ocd-tag-editor, shared by clinic +
 * provider practice) to the design system without renaming any class dashboard.js
 * queries. Scoped under .ds so it only applies inside the redesigned shells. */
.ds .ocd-tag-editor:not(.pt-list) { gap: 8px; padding: 10px 0 0; }
/* simple (_tag-editor.tpl.php) pills only — the rich editor rows use .pt-row */
.ds .ocd-tag-editor__tag:not(.pt-row) {
  gap: 8px; padding: 8px 11px 8px 9px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px;
  font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.1;
  box-shadow: 0 1px 1px rgba(16,24,40,.02);
  transition: background .12s, border-color .12s, box-shadow .12s, opacity .12s;
}
.ds .ocd-tag-editor__tag:not(.pt-row):hover { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 35%, transparent); box-shadow: 0 2px 8px rgba(16,24,40,.05); transform: none; }
.ds .ocd-tag-editor__tag:active,
.ds .ocd-tag-editor__tag.ocd-draggable-item--dragging { cursor: grabbing; opacity: .4; transform: none; }
.ds .ocd-tag-editor__tag.ocd-draggable-item--placeholder,
.ds .ocd-draggable-item--placeholder { background: var(--brand-soft); border: 1px dashed color-mix(in srgb, var(--brand) 45%, transparent); box-shadow: none; }
.ds .ocd-tag-editor__tag .ocd-draggable-item__handle { color: var(--ink-3); transition: color .12s; }
.ds .ocd-tag-editor__tag:hover .ocd-draggable-item__handle { color: var(--brand); }
.ds .ocd-tag-editor__label { color: var(--ink); max-width: 220px; }
.ds .ocd-tag-editor__remove {
  width: 20px; height: 20px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-3); font-size: 15px; padding: 0; transition: background .12s, color .12s;
}
.ds .ocd-tag-editor__remove:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.ds .ocd-tag-editor__add {
  background: var(--surface-2); border: 1px solid var(--line-2); border-style: solid; color: var(--brand-ink);
  padding: 8px 13px; border-radius: 10px; font-size: 13px; font-weight: 600;
  transition: background .12s, border-color .12s, color .12s;
}
.ds .ocd-tag-editor__add:hover { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 35%, transparent); color: var(--brand-ink); }
/* section eyebrow above the editor (◼ SPECIALTIES) */
.ds .ocd-form-section__label { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
/* the inline autocomplete input dashboard.js injects for "+ Add" */
.ds .ocd-tag-editor__input, .ds .ocd-tag-editor input[type="text"] {
  padding: 8px 11px; font-size: 13px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--ink); outline: none;
}
.ds .ocd-tag-editor__input:focus, .ds .ocd-tag-editor input[type="text"]:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent); }

