/* ============================================================================
   DUNAS DESIGN SYSTEM — Core Components
   ----------------------------------------------------------------------------
   Depends on tokens/tokens.css. Every value resolves to a token — no literals.
   Prefix: .ds-  ·  Modifiers: --variant  ·  States: data-state / :focus etc.
   ========================================================================== */

/* ---------------------------------------------------------------------------
   Base / reset for design-system surfaces
   ------------------------------------------------------------------------- */
.ds-root,
.ds-root * { box-sizing: border-box; }
.ds-root {
  font-family: var(--font-body);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ===========================================================================
   TYPOGRAPHY  — utility classes mirroring the type scale
   ======================================================================== */
.ds-display-lg, .ds-display-md, .ds-display-sm { font-family: var(--font-display); font-weight: var(--font-weight-bold); text-transform: uppercase; }
.ds-display-lg { font-size: var(--type-display-lg-size); line-height: var(--type-display-lg-line); letter-spacing: var(--type-display-lg-tracking); }
.ds-display-md { font-size: var(--type-display-md-size); line-height: var(--type-display-md-line); letter-spacing: var(--type-display-md-tracking); }
.ds-display-sm { font-size: var(--type-display-sm-size); line-height: var(--type-display-sm-line); letter-spacing: var(--type-display-sm-tracking); }

.ds-headline-xl, .ds-headline-lg, .ds-headline-md, .ds-headline-sm { font-family: var(--font-display); font-weight: var(--font-weight-regular); }
.ds-headline-xl { font-size: var(--type-headline-xl-size); line-height: var(--type-headline-xl-line); }
.ds-headline-lg { font-size: var(--type-headline-lg-size); line-height: var(--type-headline-lg-line); }
.ds-headline-md { font-size: var(--type-headline-md-size); line-height: var(--type-headline-md-line); }
.ds-headline-sm { font-size: var(--type-headline-sm-size); line-height: var(--type-headline-sm-line); }

.ds-body-lg, .ds-body-md, .ds-body-sm { font-family: var(--font-body); font-weight: var(--font-weight-regular); }
.ds-body-lg { font-size: var(--type-body-lg-size); line-height: var(--type-body-lg-line); }
.ds-body-md { font-size: var(--type-body-md-size); line-height: var(--type-body-md-line); }
.ds-body-sm { font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }

.ds-label-lg { font-family: var(--font-body); font-size: var(--type-label-lg-size); line-height: var(--type-label-lg-line); font-weight: var(--font-weight-medium); }
.ds-mono { font-family: var(--font-mono); font-size: var(--type-mono-size); line-height: var(--type-mono-line); }

.ds-emphasized { font-weight: var(--font-weight-semibold); }

/* ===========================================================================
   BUTTONS
   ======================================================================== */
.ds-btn {
  --_bg: var(--button-primary-bg);
  --_fg: var(--button-primary-fg);
  --_bd: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-8);
  font-family: var(--font-body); font-size: var(--type-label-lg-size);
  font-weight: var(--font-weight-medium); line-height: 1;
  padding: 0 var(--space-20); height: 40px;
  border-radius: var(--radius-full);
  border: var(--border-width) solid var(--_bd);
  background: var(--_bg); color: var(--_fg);
  cursor: pointer; white-space: nowrap; user-select: none;
  transition: background-color .15s ease, border-color .15s ease, transform .08s ease, box-shadow .15s ease;
}
.ds-btn:active { transform: translateY(0.5px); }
.ds-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.ds-btn[disabled], .ds-btn:disabled { opacity: .4; cursor: not-allowed; }
.ds-btn .ds-icon { width: 18px; height: 18px; flex: none; }

/* Variants */
.ds-btn--primary { --_bg: var(--button-primary-bg); --_fg: var(--button-primary-fg); }
.ds-btn--primary:hover { --_bg: var(--button-primary-bg-pressed); }
.ds-btn--secondary { --_bg: var(--button-secondary-bg); --_fg: var(--button-secondary-fg); --_bd: var(--button-secondary-border); }
.ds-btn--secondary:hover { --_bg: var(--button-secondary-bg-pressed); }
.ds-btn--ghost { --_bg: transparent; --_fg: var(--text-primary); }
.ds-btn--ghost:hover { --_bg: var(--button-ghost-bg-hover); }

/* Sizes */
.ds-btn--sm { height: 32px; padding: 0 var(--space-16); font-size: var(--type-body-sm-size); }
.ds-btn--lg { height: 48px; padding: 0 var(--space-24); }

/* Icon button — circular */
.ds-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  border-radius: var(--radius-full);
  border: var(--border-width) solid transparent;
  background: var(--button-primary-bg); color: var(--button-primary-fg);
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .08s ease, box-shadow .15s ease;
}
.ds-icon-btn:active { transform: translateY(0.5px); }
.ds-icon-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.ds-icon-btn .ds-icon { width: 18px; height: 18px; }
.ds-icon-btn--outline { background: var(--button-secondary-bg); color: var(--button-secondary-fg); border-color: var(--button-secondary-border); }
.ds-icon-btn--outline:hover { background: var(--button-secondary-bg-pressed); }
.ds-icon-btn--sm { width: 28px; height: 28px; }
.ds-icon-btn--sm .ds-icon { width: 14px; height: 14px; }

/* Navigation button — rounded square */
.ds-nav-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  border-radius: var(--radius-sm);
  border: var(--border-width) solid transparent;
  background: var(--button-primary-bg); color: var(--button-primary-fg);
  cursor: pointer; transition: background-color .15s ease, transform .08s ease;
}
.ds-nav-btn--outline { background: var(--button-secondary-bg); color: var(--button-secondary-fg); border-color: var(--button-secondary-border); }
.ds-nav-btn:active { transform: translateY(0.5px); }
.ds-nav-btn .ds-icon { width: 18px; height: 18px; }

/* Search button — soft square */
.ds-search-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  border: none; background: var(--surface-alt); color: var(--icon-primary);
  cursor: pointer; transition: background-color .15s ease;
}
.ds-search-btn:hover { background: var(--surface-strong); }
.ds-search-btn .ds-icon { width: 18px; height: 18px; }

/* Filter chip buttons (e.g. All / Unread) */
.ds-filter {
  display: inline-flex; align-items: center; gap: var(--space-4);
  height: 28px; padding: 0 var(--space-12);
  border-radius: var(--radius-full);
  border: var(--border-width) solid var(--border-default);
  background: transparent; color: var(--text-primary);
  font-family: var(--font-body); font-size: var(--type-body-sm-size); font-weight: var(--font-weight-medium);
  cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.ds-filter[aria-pressed="true"], .ds-filter--active {
  background: var(--surface-black); color: var(--text-on-emphasis); border-color: var(--surface-black);
}

/* Invite button pair */
.ds-invite { /* default = outline "Invite" */ }
.ds-invite--added { --_bg: var(--button-primary-bg); --_fg: var(--button-primary-fg); }

/* ===========================================================================
   INPUTS
   ======================================================================== */
.ds-field {
  display: flex; align-items: center; gap: var(--space-8);
  height: 40px; padding: 0 var(--space-16);
  border-radius: var(--radius-full);
  border: var(--border-width) solid var(--border-default);
  background: var(--surface-base);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.ds-field:hover { border-color: var(--border-strong); }
.ds-field:focus-within { border-color: var(--border-emphasis); box-shadow: var(--focus-ring); }
.ds-field .ds-icon { width: 18px; height: 18px; color: var(--icon-secondary); flex: none; }
.ds-field input,
.ds-field textarea {
  flex: 1; min-width: 0; border: none; background: none; outline: none;
  font-family: var(--font-body); font-size: var(--type-body-md-size); color: var(--text-primary);
}
.ds-field input::placeholder,
.ds-field textarea::placeholder { color: var(--text-placeholder); }
.ds-field[data-state="error"] { border-color: var(--status-danger-border); }
.ds-field[data-state="error"]:focus-within { box-shadow: 0 0 0 3px var(--status-danger-surface); }
.ds-field[data-disabled] { background: var(--surface-alt); opacity: .6; pointer-events: none; }

/* Textarea field */
.ds-textarea {
  display: flex; flex-direction: column; gap: var(--space-8);
  min-height: 92px; padding: var(--space-12) var(--space-16);
  border-radius: var(--radius-lg);
  border: var(--border-width) solid var(--border-default);
  background: var(--surface-base);
}
.ds-textarea:focus-within { border-color: var(--border-emphasis); }
.ds-textarea textarea {
  flex: 1; resize: none; border: none; background: none; outline: none;
  font-family: var(--font-body); font-size: var(--type-body-md-size); line-height: 1.4; color: var(--text-primary);
}
.ds-textarea .ds-counter { align-self: flex-end; font-family: var(--font-body); font-size: var(--type-body-sm-size); color: var(--text-tertiary); }
.ds-textarea--ink { background: var(--surface-black); border-color: var(--surface-black); }
.ds-textarea--ink textarea { color: var(--text-on-emphasis); }
.ds-textarea--ink textarea::placeholder { color: var(--color-neutral-500); }
.ds-textarea--ink .ds-counter { color: var(--color-neutral-500); }

/* Number stepper */
.ds-stepper { display: inline-flex; align-items: center; gap: var(--space-12); }
.ds-stepper__btn {
  width: 32px; height: 32px; border-radius: var(--radius-full);
  border: var(--border-width) solid var(--border-default);
  background: var(--surface-base); color: var(--text-primary);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  font-size: 16px; line-height: 1; transition: background-color .15s ease, border-color .15s ease;
}
.ds-stepper__btn:hover { background: var(--surface-alt); }
.ds-stepper__btn[data-state="error"] { border-color: var(--status-danger-border); color: var(--status-danger); }
.ds-stepper__value { min-width: 20px; text-align: center; font-family: var(--font-body); font-size: var(--type-body-md-size); }

/* OTP */
.ds-otp { display: inline-flex; gap: var(--space-8); }
.ds-otp__cell {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  border: var(--border-width) solid var(--border-default); background: var(--surface-base);
  text-align: center; font-family: var(--font-body); font-size: var(--type-body-lg-size); color: var(--text-primary);
  outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.ds-otp__cell:focus { border-color: var(--border-emphasis); box-shadow: var(--focus-ring); }

/* Phone field (flag + code + number) */
.ds-phone { display: flex; align-items: center; gap: var(--space-8); height: 40px; padding: 0 var(--space-8) 0 var(--space-12);
  border-radius: var(--radius-full); border: var(--border-width) solid var(--border-default); background: var(--surface-base); }
.ds-phone__code { display: inline-flex; align-items: center; gap: var(--space-4); padding-right: var(--space-8);
  border-right: var(--border-width) solid var(--border-default); font-size: var(--type-body-md-size); color: var(--text-primary); }
.ds-phone__flag { width: 18px; height: 18px; border-radius: var(--radius-full); background: var(--surface-strong); display: inline-block; }
.ds-phone input { flex: 1; min-width: 0; border: none; outline: none; background: none; font-family: var(--font-body); font-size: var(--type-body-md-size); }

/* ===========================================================================
   BADGES
   ======================================================================== */
.ds-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 6px;
  border-radius: var(--radius-full);
  background: var(--status-success-surface); color: var(--color-success-900);
  font-family: var(--font-body); font-size: 11px; font-weight: var(--font-weight-semibold); line-height: 1;
}
.ds-badge--neutral { background: var(--surface-strong); color: var(--text-primary); }
.ds-badge--ink { background: var(--surface-black); color: var(--text-on-emphasis); }
.ds-badge--danger { background: var(--status-danger); color: var(--color-neutral-0); }
.ds-dot { display: inline-block; width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--status-success); }
.ds-dot--accent { background: var(--accent-solid); }

/* ===========================================================================
   CHIPS  (avatar + label + count / remove)
   ======================================================================== */
.ds-chip {
  display: inline-flex; align-items: center; gap: var(--space-8);
  height: 32px; padding: 0 var(--space-12) 0 6px;
  border-radius: var(--radius-full);
  background: var(--surface-alt); color: var(--text-primary);
  font-family: var(--font-body); font-size: var(--type-body-md-size); font-weight: var(--font-weight-medium);
}
.ds-chip .ds-avatar { width: 22px; height: 22px; }
.ds-chip__remove {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border: none; background: none; cursor: pointer;
  color: var(--icon-secondary); border-radius: var(--radius-full);
}
.ds-chip__remove:hover { color: var(--text-primary); background: var(--surface-translucent); }
.ds-chip__remove .ds-icon { width: 12px; height: 12px; }
.ds-chip--ghost { background: transparent; padding-left: 0; }

/* ===========================================================================
   TOGGLE  (segmented mode switch)
   ======================================================================== */
.ds-toggle {
  display: inline-flex; flex-direction: column; gap: var(--space-8);
  padding: var(--space-8); border-radius: var(--radius-lg);
  background: var(--surface-base);
}
.ds-toggle--row { flex-direction: row; }
.ds-toggle__opt {
  display: inline-flex; align-items: center; gap: var(--space-8);
  height: 40px; padding: 0 var(--space-16) 0 6px;
  border-radius: var(--radius-full); border: none; cursor: pointer;
  background: transparent; color: var(--text-primary);
  font-family: var(--font-body); font-size: var(--type-label-lg-size); font-weight: var(--font-weight-medium);
  transition: background-color .15s ease, color .15s ease;
}
.ds-toggle__opt .ds-icon { width: 18px; height: 18px; }
.ds-toggle__opt[aria-pressed="true"], .ds-toggle__opt[data-state="on"] {
  background: var(--surface-black); color: var(--text-on-emphasis);
}

/* ===========================================================================
   PILL  (generic status / metadata pill)
   ======================================================================== */
.ds-pill {
  display: inline-flex; align-items: center; gap: var(--space-4);
  height: 28px; padding: 0 var(--space-12);
  border-radius: var(--radius-full);
  background: var(--surface-alt); color: var(--text-secondary);
  font-family: var(--font-body); font-size: var(--type-body-sm-size); font-weight: var(--font-weight-medium);
}
.ds-pill--ink { background: var(--surface-black); color: var(--text-on-emphasis); }
.ds-pill--outline { background: transparent; border: var(--border-width) solid var(--border-default); }
.ds-pill--accent { background: var(--accent-surface-subtle); color: var(--accent-text); }

/* ===========================================================================
   AVATAR  (User · Aura orb · Agent with accent aura glow)
   ======================================================================== */
.ds-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-full);
  background: var(--surface-strong); color: var(--icon-primary);
  overflow: hidden; flex: none; position: relative;
}
.ds-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ds-avatar--ink { background: var(--surface-black); color: var(--text-on-emphasis); }
.ds-avatar--xs { width: 20px; height: 20px; }
.ds-avatar--sm { width: 28px; height: 28px; }
.ds-avatar--lg { width: 64px; height: 64px; }
.ds-avatar--xl { width: 88px; height: 88px; }

/* Aura orb — luminous neutral sphere (Avatar/Aura) */
.ds-aura-orb {
  width: 88px; height: 88px; border-radius: var(--radius-full);
  background: radial-gradient(circle at 38% 30%, #ffffff 0%, #f5f5f5 55%, #e8e8e8 100%);
  box-shadow: var(--elevation-sm), var(--aura-inner);
}

/* Agent avatar — portrait wrapped in the agent's accent aura */
.ds-avatar--agent {
  background: radial-gradient(circle, var(--accent-300) 58%, var(--accent-100) 100%);
  padding: 7px;
  box-shadow: 0 0 22px 1px var(--accent-300);
}
.ds-avatar--agent img { border-radius: var(--radius-full); }
.ds-avatar--agent.ds-avatar--lg { padding: 9px; }
.ds-avatar--agent.ds-avatar--xl { padding: 11px; }
.ds-avatar--agent.ds-avatar--sm { padding: 4px; }
.ds-avatar--agent.ds-avatar--xs { padding: 3px; }

/* ===========================================================================
   ICON  (inline svg sizing helper)
   ======================================================================== */
.ds-icon { display: inline-block; line-height: 0; }
.ds-icon svg { width: 100%; height: 100%; display: block; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ===========================================================================
   DROPDOWN  (pill select trigger)
   ======================================================================== */
.ds-dropdown {
  display: inline-flex; align-items: center; gap: var(--space-12);
  height: 44px; padding: 0 var(--space-16);
  border-radius: var(--radius-full);
  border: var(--border-width) solid var(--border-default);
  background: var(--surface-base); color: var(--text-primary);
  font-family: var(--font-body); font-size: var(--type-body-md-size); font-weight: var(--font-weight-medium);
  cursor: pointer; min-width: 160px;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.ds-dropdown:hover { border-color: var(--border-strong); }
.ds-dropdown:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.ds-dropdown__label { flex: 1; text-align: left; }
.ds-dropdown .ds-icon { width: 18px; height: 18px; flex: none; color: var(--icon-secondary); }
.ds-dropdown--ink { background: var(--surface-black); color: var(--text-on-emphasis); border-color: var(--surface-black); }
.ds-dropdown--ink .ds-icon { color: var(--text-on-emphasis); }
.ds-dropdown--soft { background: var(--surface-alt); border-color: transparent; }
.ds-dropdown--country { min-width: 0; gap: var(--space-8); padding: 0 var(--space-12); height: 40px; }
.ds-dropdown--country .ds-phone__flag { width: 20px; height: 20px; }

/* ===========================================================================
   MENU  (floating action list)
   ======================================================================== */
.ds-menu {
  display: inline-flex; flex-direction: column;
  min-width: 208px; padding: var(--space-8);
  border-radius: var(--radius-lg);
  background: var(--surface-base);
  box-shadow: var(--elevation-sm);
  border: var(--border-width) solid var(--border-subtle);
}
.ds-menu__item {
  display: flex; align-items: center; gap: var(--space-12);
  height: 44px; padding: 0 var(--space-12); border: none; background: none; width: 100%;
  border-radius: var(--radius-sm); cursor: pointer;
  font-family: var(--font-body); font-size: var(--type-body-md-size); font-weight: var(--font-weight-medium);
  color: var(--text-primary); text-align: left;
  transition: background-color .12s ease;
}
.ds-menu__item:hover, .ds-menu__item[data-state="active"] { background: var(--surface-alt); }
.ds-menu__item__label { flex: 1; }
.ds-menu__item .ds-icon { width: 18px; height: 18px; flex: none; color: var(--icon-primary); }
.ds-menu--divided .ds-menu__item { border-radius: 0; }
.ds-menu--divided .ds-menu__item + .ds-menu__item { border-top: var(--border-width) solid var(--border-subtle); }

/* ===========================================================================
   LIST ITEM  (search / recent row)
   ======================================================================== */
.ds-list-item {
  display: inline-flex; align-items: center; gap: var(--space-8);
  height: 36px; padding: 0 var(--space-12); border: none; background: none;
  border-radius: var(--radius-sm); cursor: pointer;
  font-family: var(--font-body); font-size: var(--type-body-md-size); color: var(--text-primary);
  transition: background-color .12s ease;
}
.ds-list-item:hover, .ds-list-item[data-state="active"] { background: var(--surface-alt); }
.ds-list-item .ds-icon { width: 16px; height: 16px; flex: none; color: var(--icon-secondary); }
.ds-list-item--block { display: flex; width: 100%; }

/* ===========================================================================
   PILL · agent variant  (translucent avatar + name, sits on imagery)
   ======================================================================== */
.ds-pill--agent {
  gap: var(--space-8); height: 28px; padding: 2px var(--space-12) 2px 2px;
  background: var(--surface-translucent); color: var(--text-secondary);
}
.ds-pill--agent .ds-avatar { width: 24px; height: 24px; }
.ds-pill--agent.ds-pill--on-media { background: rgba(255,255,255,0.16); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* ===========================================================================
   NAVIGATION  (bottom tab bar)
   ======================================================================== */
.ds-tabbar {
  display: flex; align-items: flex-start; justify-content: space-around;
  padding: var(--space-12) var(--space-16) var(--space-8);
  background: var(--surface-base);
  border-top: var(--border-width) solid var(--border-subtle);
}
.ds-tab {
  display: inline-flex; flex-direction: column; align-items: center; gap: 5px;
  border: none; background: none; cursor: pointer; padding: 0;
  color: var(--icon-secondary);
}
.ds-tab__glyph {
  width: 40px; height: 40px; border-radius: var(--radius-full);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .15s ease, color .15s ease;
}
.ds-tab__glyph .ds-icon { width: 22px; height: 22px; }
.ds-tab__dot { width: 4px; height: 4px; border-radius: var(--radius-full); background: transparent; }
.ds-tab--active { color: var(--text-primary); }
.ds-tab--active .ds-tab__glyph { background: var(--surface-black); color: var(--text-on-emphasis); }
.ds-tab--active .ds-tab__dot { background: var(--text-primary); }

/* ===========================================================================
   HEADER  (Discovery · Section · Detail · Sheet)
   ======================================================================== */
.ds-header {
  display: flex; align-items: center; gap: var(--space-12);
  padding: var(--space-16) var(--space-24); background: var(--surface-base);
}
.ds-header__spacer { flex: 1; }

/* Discovery — oversized brand display + lead */
.ds-header--discovery { flex-direction: column; align-items: flex-start; gap: var(--space-16); padding: var(--space-24); }
.ds-header__brand { font-family: var(--font-display); text-transform: uppercase; font-size: var(--type-display-md-size); line-height: var(--type-display-md-line); letter-spacing: var(--type-display-md-tracking); }
.ds-header__lead { display: flex; align-items: center; gap: var(--space-8); font-family: var(--font-display); font-size: var(--type-headline-sm-size); color: var(--text-primary); }
.ds-header__lead .ds-icon { width: 16px; height: 16px; }

/* Section — title + action */
.ds-header__title { font-family: var(--font-display); font-size: var(--type-headline-lg-size); line-height: var(--type-headline-lg-line); }

/* Detail — back + identity + overflow */
.ds-header__identity { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ds-header__identity b { font-family: var(--font-body); font-size: var(--type-body-md-size); font-weight: var(--font-weight-semibold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-header__identity span { font-family: var(--font-body); font-size: var(--type-body-sm-size); color: var(--text-tertiary); }

/* Sheet — back + centered title + close */
.ds-header--sheet .ds-header__sheet-title { flex: 1; text-align: center; font-family: var(--font-display); font-size: var(--type-headline-sm-size); }

/* ===========================================================================
   THUMBNAIL  (media tiles & content cards)
   ======================================================================== */
.ds-thumb { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-alt); }
.ds-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ds-thumb__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.18) 46%, rgba(0,0,0,0) 72%); }
.ds-thumb__body { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-16); color: #fff; display: flex; flex-direction: column; gap: var(--space-8); }

/* Tile — small square brand/agent chip */
.ds-thumb--tile {
  width: 56px; height: 56px; border-radius: var(--radius-lg);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-1100); color: var(--accent-100);
  font-family: var(--font-display); text-transform: uppercase; font-size: 13px; letter-spacing: -.5px;
}
.ds-thumb--tile.ds-thumb--ink { background: var(--surface-black); color: var(--text-on-emphasis); }
.ds-thumb--tile.ds-thumb--soft { background: var(--surface-alt); color: var(--text-primary); }

/* Cover — portrait media card with bottom-left label */
.ds-thumb--cover { width: 132px; aspect-ratio: 3 / 4; }
.ds-thumb--cover .ds-thumb__media { position: absolute; inset: 0; background: linear-gradient(150deg, var(--accent-400), var(--accent-800)); }
.ds-thumb--cover .ds-thumb__label { font-family: var(--font-display); text-transform: uppercase; font-size: var(--type-headline-sm-size); line-height: 1; }

/* Feature — large discovery card */
.ds-thumb--feature { width: 280px; aspect-ratio: 7 / 10; }
.ds-thumb--feature .ds-thumb__media { position: absolute; inset: 0; background: radial-gradient(120% 80% at 70% 20%, #3a3f44 0%, #16181b 70%); }
.ds-thumb--feature .ds-thumb__eyebrow { font-family: var(--font-body); font-size: var(--type-body-sm-size); font-weight: var(--font-weight-medium); opacity: .85; }
.ds-thumb--feature .ds-thumb__headline { font-family: var(--font-display); text-transform: uppercase; font-size: var(--type-display-sm-size); line-height: var(--type-display-sm-line); letter-spacing: var(--type-display-sm-tracking); }
.ds-thumb--feature .ds-thumb__pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--space-8); }
