/* ============================================================
   support-design.css
   ============================================================
   Support tab v2 — editorial visual language for the
   member-facing Support tab. All rules scoped to .sup-page-v2
   so this file cannot bleed into other tabs.

   Promoted from mockups/_mockup-support.css on 2026-05-15
   (Phase 2 of the Support redesign). Companion to
   oecta-tokens.css + oecta-components.css. Implements the
   rules in mockups/SUPPORT-DESIGN.md.

   Visual chain: shell renders .portal-hero-compact above
   #tab-assist-content; everything inside this file lives
   below that, within the .sup-page-v2 block.
   ============================================================ */

/* ── Page shell ─────────────────────────────────────────────── */

.sup-page-v2 {
  --sup-warm-bg: #f4f1ec;                 /* warm thread background */
  --sup-hero-stripe: var(--oecta-accent); /* 5px amber left stripe on sub-hero */
  --sup-glass-bg: rgba(255,255,255,0.82);
  --sup-glass-blur: 16px;
  --sup-bubble-shadow: 0 1px 2px rgba(32,65,100,0.05), 0 4px 14px rgba(32,65,100,0.04);
  --sup-row-shadow-hover: 0 4px 16px rgba(32,65,100,0.08);

  background: var(--oecta-surface);
}

.sup-page-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 32px 64px;
}
@media (max-width: 768px) {
  .sup-page-inner { padding: 16px 16px 96px; }
}

/* ── Editorial sub-hero ─────────────────────────────────────── */

.sup-dhero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  background: var(--oecta-surface-lowest);
  border-radius: var(--oecta-radius-xl);
  box-shadow: var(--oecta-shadow-md, 0 6px 24px rgba(32,65,100,0.06));
  padding: 32px 36px;
  overflow: hidden;
}
.sup-dhero::before {
  content: '';
  position: absolute;
  left: 0; top: 18px; bottom: 18px;
  width: 5px;
  background: var(--sup-hero-stripe);
  border-radius: 0 4px 4px 0;
}
@media (max-width: 800px) {
  .sup-dhero { grid-template-columns: 1fr; gap: 20px; padding: 24px 24px 28px; }
}

.sup-dhero__left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 8px;
}
.sup-dhero__month {
  font-family: var(--oecta-font-display, 'Manrope', system-ui, sans-serif);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--oecta-primary-container, #204164);
  line-height: 1;
}
.sup-dhero__day {
  font-family: 'Newsreader', 'Georgia', serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(4rem, 10vw, 8.25rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: var(--oecta-primary, #022b4d);
  margin: 4px 0 8px;
}
.sup-dhero__year {
  font-family: 'Newsreader', 'Georgia', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  color: var(--oecta-on-surface-variant);
}
.sup-dhero__caption {
  font-family: 'Newsreader', 'Georgia', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  color: var(--oecta-text-muted, #64748b);
  margin-top: 12px;
}

.sup-dhero__right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.sup-dhero__eyebrow {
  font-family: var(--oecta-font-display);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--oecta-accent, #f39c12);
}
.sup-dhero__title {
  font-family: var(--oecta-font-display);
  font-weight: 800;
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: -0.01em;
  color: var(--oecta-on-surface);
  line-height: 1.15;
  margin: 0;
}
.sup-dhero__body {
  font-family: var(--oecta-font-body, 'Inter', system-ui, sans-serif);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  color: var(--oecta-on-surface-variant);
  max-width: 38ch;
}
.sup-dhero__cta {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: linear-gradient(135deg, var(--oecta-accent) 0%, var(--oecta-accent-container) 100%);
  color: #fff;
  border: none;
  border-radius: 99px;
  font-family: var(--oecta-font-display);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(243,156,18,0.28);
  transition: transform .12s ease, box-shadow .2s ease;
}
.sup-dhero__cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(243,156,18,0.34); }
.sup-dhero__cta:active { transform: scale(0.97); }

/* Calm variant for empty state */
.sup-dhero--calm {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  padding: 40px 28px;
}
.sup-dhero--calm::before { display: none; }
.sup-dhero--calm .sup-dhero__title-italic {
  font-family: 'Newsreader', 'Georgia', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 4vw, 36px);
  color: var(--oecta-primary, #022b4d);
  line-height: 1.2;
  margin: 0;
}

/* ── KPI strip (asymmetric 1.4fr+1fr+1fr+1fr) ───────────────── */

.sup-kpi-strip {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 16px;
  margin: 24px 0 0;
}
@media (max-width: 900px) {
  .sup-kpi-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 4px;
    margin: 16px -16px 0;
    padding-left: 16px; padding-right: 16px;
  }
  .sup-kpi-strip > * {
    flex: 0 0 220px;
    scroll-snap-align: start;
  }
  .sup-kpi-strip > .sup-kpi--hero { flex-basis: 280px; }
}

.sup-kpi {
  background: var(--oecta-surface-lowest);
  border-radius: var(--oecta-radius-lg);
  padding: 20px 22px;
  box-shadow: var(--oecta-shadow-sm, 0 2px 8px rgba(32,65,100,0.04));
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.sup-kpi:hover { transform: translateY(-1px); box-shadow: var(--oecta-shadow-md, 0 6px 18px rgba(32,65,100,0.06)); }
.sup-kpi__label {
  font-family: var(--oecta-font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--oecta-text-muted, #64748b);
}
.sup-kpi__value {
  font-family: var(--oecta-font-display);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--oecta-on-surface);
  line-height: 1;
}
.sup-kpi__sub {
  font-family: 'Newsreader', 'Georgia', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 13px;
  color: var(--oecta-text-muted);
}

/* Hero tile — glass on navy gradient */
.sup-kpi--hero {
  position: relative;
  background:
    linear-gradient(135deg, var(--oecta-primary, #022b4d) 0%, var(--oecta-primary-container, #204164) 100%);
  color: #fff;
  padding: 26px 26px 22px;
  overflow: hidden;
  isolation: isolate;
}
.sup-kpi--hero::before {
  content: '';
  position: absolute;
  inset: 14px;
  background: var(--sup-glass-bg);
  backdrop-filter: blur(var(--sup-glass-blur));
  -webkit-backdrop-filter: blur(var(--sup-glass-blur));
  border-radius: 14px;
  z-index: -1;
}
.sup-kpi--hero .sup-kpi__label { color: var(--oecta-primary-container, #204164); }
.sup-kpi--hero .sup-kpi__value {
  font-weight: 800;
  font-size: clamp(40px, 5.4vw, 56px);
  color: var(--oecta-primary, #022b4d);
  line-height: 0.95;
}
.sup-kpi--hero .sup-kpi__sub { color: var(--oecta-on-surface-variant); }
.sup-kpi--hero .sup-kpi__amberbar {
  position: absolute;
  left: 14px; top: 14px; bottom: 14px;
  width: 3px;
  background: var(--oecta-accent);
  border-radius: 2px;
  z-index: 1;
}

/* ── Slowest threads rail ───────────────────────────────────── */

.sup-slowest {
  margin-top: 16px;
  background: var(--oecta-surface-lowest);
  border-radius: var(--oecta-radius-lg);
  padding: 14px 18px 6px;
  box-shadow: var(--oecta-shadow-sm, 0 2px 8px rgba(32,65,100,0.04));
}
.sup-slowest__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 6px 8px;
}
.sup-slowest__head h3 {
  margin: 0;
  font-family: var(--oecta-font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--oecta-on-surface-variant);
}
.sup-slowest__head span {
  font-family: 'Newsreader', 'Georgia', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--oecta-text-muted);
}
.sup-slowest__row {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s ease;
}
.sup-slowest__row:hover { background: var(--oecta-surface-low); }
.sup-slowest__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--oecta-warning, #dd6b20);
}
.sup-slowest__row[data-breach="critical"] .sup-slowest__dot { background: var(--oecta-error, #ba1a1a); }
.sup-slowest__title {
  font-family: var(--oecta-font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--oecta-on-surface);
}
.sup-slowest__since {
  font-family: 'Newsreader', 'Georgia', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--oecta-text-muted);
}

/* ── Filter chip rail ───────────────────────────────────────── */

.sup-filter-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 24px 0 12px;
  padding: 0 2px;
}
.sup-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 99px;
  background: var(--oecta-surface-lowest);
  color: var(--oecta-on-surface-variant);
  font-family: var(--oecta-font-body);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 2px rgba(32,65,100,0.04);
  transition: all .12s ease;
}
.sup-filter-chip:hover { background: var(--oecta-surface-high); }
.sup-filter-chip.is-active {
  background: var(--oecta-primary, #022b4d);
  color: #fff;
  box-shadow: 0 3px 10px rgba(2,43,77,0.18);
}
.sup-filter-chip__count {
  display: inline-flex;
  min-width: 18px; height: 18px;
  align-items: center; justify-content: center;
  padding: 0 6px;
  border-radius: 99px;
  background: var(--oecta-surface-high);
  color: var(--oecta-on-surface-variant);
  font-size: 11px;
  font-weight: 700;
}
.sup-filter-chip.is-active .sup-filter-chip__count {
  background: rgba(255,255,255,0.16);
  color: #fff;
}
.sup-filter-rail__sep { width: 1px; height: 22px; background: var(--oecta-surface-high); margin: 0 6px; }
.sup-filter-rail__clear {
  margin-left: auto;
  background: transparent;
  border: none;
  font-family: 'Newsreader', 'Georgia', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--oecta-text-muted);
  cursor: pointer;
}
.sup-filter-rail__clear:hover { color: var(--oecta-on-surface); }

/* ── List rows ──────────────────────────────────────────────── */

.sup-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.sup-list-row {
  display: grid;
  grid-template-columns: 14px 40px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  background: var(--oecta-surface-lowest);
  border-radius: var(--oecta-radius-lg);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .15s ease;
  min-height: 64px;
  position: relative;
  border: none;
  font: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
}
.sup-list-row:hover {
  transform: translateY(-1px);
  box-shadow: var(--sup-row-shadow-hover);
}
.sup-list-row__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: transparent;
}
.sup-list-row.is-unread .sup-list-row__dot { background: var(--oecta-accent); }
.sup-list-row.is-unread { background: linear-gradient(90deg, rgba(243,156,18,0.06) 0%, var(--oecta-surface-lowest) 14%); }
.sup-list-row.is-unread::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 3px;
  background: var(--oecta-accent);
  border-radius: 0 2px 2px 0;
}
.sup-list-row__icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
}
.sup-list-row__body { min-width: 0; text-align: left; }
.sup-list-row__title {
  font-family: var(--oecta-font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--oecta-on-surface);
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}
.sup-list-row.is-unread .sup-list-row__title { font-weight: 700; }
.sup-list-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--oecta-font-body);
  font-size: 12.5px;
  color: var(--oecta-text-muted);
  text-align: left;
}
.sup-list-row__since {
  font-family: 'Newsreader', 'Georgia', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--oecta-text-muted);
}
.sup-list-row__right { display: flex; align-items: center; gap: 10px; }

/* ── Status pills (class-based, NO inline styles) ───────────── */

.sup-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 99px;
  font-family: var(--oecta-font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.01em;
}
.sup-status .material-icons-outlined { font-size: 14px; }
.sup-status--open { background: rgba(37,99,235,0.12); color: #1d4ed8; }
.sup-status--in_progress { background: rgba(217,119,6,0.12); color: #92400e; }
.sup-status--waiting_on_member { background: rgba(234,88,12,0.12); color: #9a3412; }
.sup-status--resolved { background: rgba(22,163,74,0.12); color: #15803d; }
.sup-status--archived { background: rgba(100,116,139,0.12); color: #475569; }

/* ── Tag chips (display-only, mini) ─────────────────────────── */

.sup-tag-mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 99px;
  font-family: var(--oecta-font-body);
  font-weight: 500;
  font-size: 11px;
}
.sup-tag-mini .material-icons-outlined { font-size: 12px; }

/* ── Team chips (composer Step 1 picker) ────────────────────── */

.sup-team-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px 14px 20px;
  background: var(--oecta-surface-low);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  min-height: 56px;
  font-family: var(--oecta-font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--oecta-on-surface);
  transition: transform .08s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.sup-team-chip::before {
  content: '';
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 4px;
  border-radius: 0 3px 3px 0;
  background: var(--chip-color, var(--oecta-primary));
}
.sup-team-chip:hover { background: var(--oecta-surface-high); }
.sup-team-chip:active { transform: scale(0.97); }
.sup-team-chip.is-selected {
  background: var(--chip-color, var(--oecta-primary));
  color: #fff;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--chip-color, var(--oecta-primary)) 30%, transparent);
}
.sup-team-chip.is-selected::before { background: rgba(255,255,255,0.4); }
.sup-team-chip .material-icons-outlined { font-size: 22px; }

/* ── Conversation thread ────────────────────────────────────── */

.sup-thread {
  background: var(--sup-warm-bg);
  border-radius: var(--oecta-radius-xl);
  padding: 24px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}
.sup-msg {
  max-width: 78%;
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px 12px;
  box-shadow: var(--sup-bubble-shadow);
  position: relative;
}
.sup-msg--member { align-self: flex-end; border-top-right-radius: 4px; }
.sup-msg--admin { align-self: flex-start; border-top-left-radius: 4px; padding-left: 18px; }
.sup-msg--admin::before {
  content: '';
  position: absolute;
  left: 0; top: 10px; bottom: 10px;
  width: 3px;
  background: var(--oecta-primary, #022b4d);
  border-radius: 0 2px 2px 0;
}
.sup-msg__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.sup-msg__author {
  font-family: var(--oecta-font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--oecta-on-surface);
}
.sup-msg__time {
  font-family: 'Newsreader', 'Georgia', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--oecta-text-muted);
}
.sup-msg__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(243,156,18,0.16);
  color: #92400e;
  font-family: var(--oecta-font-display);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.sup-msg__body {
  font-family: var(--oecta-font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  color: var(--oecta-on-surface);
  white-space: pre-wrap;
}
.sup-msg__attachments {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}
.sup-attach-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--oecta-surface-low);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: background .15s ease, transform .12s ease;
}
.sup-attach-btn:hover { background: var(--oecta-surface-high); transform: translateY(-1px); }
.sup-attach-btn__icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--oecta-primary-container);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sup-attach-btn__name {
  font-family: var(--oecta-font-display);
  font-weight: 600;
  font-size: 12px;
  color: var(--oecta-on-surface);
}
.sup-attach-btn__size {
  font-family: var(--oecta-font-body);
  font-size: 11px;
  color: var(--oecta-text-muted);
}

/* ── System event pill ──────────────────────────────────────── */

.sup-event {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(255,255,255,0.6);
  color: var(--oecta-text-muted);
  font-family: 'Newsreader', 'Georgia', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 13px;
}
.sup-event .material-icons-outlined { font-size: 14px; color: var(--oecta-on-surface-variant); }

/* ── Detail header (sticky) ─────────────────────────────────── */

.sup-detail {
  background: var(--oecta-surface-lowest);
  border-radius: var(--oecta-radius-xl);
  box-shadow: var(--oecta-shadow-sm, 0 2px 8px rgba(32,65,100,0.04));
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
}
.sup-detail__head {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
}
.sup-detail__back {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--oecta-surface-low);
  color: var(--oecta-on-surface);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sup-detail__back:hover { background: var(--oecta-surface-high); }
.sup-detail__title {
  font-family: var(--oecta-font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--oecta-on-surface);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.sup-detail__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--oecta-font-body);
  font-size: 12.5px;
  color: var(--oecta-text-muted);
}
.sup-detail__meta-italic {
  font-family: 'Newsreader', 'Georgia', serif;
  font-style: italic;
  font-size: 13px;
}
.sup-detail__date {
  text-align: right;
  padding-right: 4px;
}
.sup-detail__date-day {
  font-family: 'Newsreader', 'Georgia', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 44px;
  line-height: 0.9;
  color: var(--oecta-primary, #022b4d);
  letter-spacing: -0.04em;
}
.sup-detail__date-month {
  font-family: var(--oecta-font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--oecta-text-muted);
}

/* ── Resolved banner ────────────────────────────────────────── */

.sup-resolved {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  margin: 14px 14px 0;
  border-radius: var(--oecta-radius-lg);
  background: linear-gradient(135deg, rgba(22,163,74,0.10) 0%, rgba(22,163,74,0.04) 100%);
}
.sup-resolved__icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(22,163,74,0.18);
  color: #15803d;
  display: inline-flex; align-items: center; justify-content: center;
}
.sup-resolved__text { flex: 1; }
.sup-resolved__head {
  font-family: var(--oecta-font-display);
  font-weight: 700;
  font-size: 14px;
  color: #15803d;
}
.sup-resolved__sub {
  font-family: var(--oecta-font-body);
  font-size: 13px;
  color: var(--oecta-on-surface-variant);
  margin-top: 2px;
}
.sup-resolved__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--oecta-accent) 0%, var(--oecta-accent-container) 100%);
  color: #fff;
  border: none;
  border-radius: 99px;
  font-family: var(--oecta-font-display);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

/* ── Composer (sticky-bottom) ───────────────────────────────── */

.sup-composer {
  position: sticky;
  bottom: 0;
  background: var(--oecta-surface-lowest);
  padding: 14px 18px 16px;
  box-shadow: 0 -4px 16px rgba(32,65,100,0.06);
}
.sup-composer__textarea {
  width: 100%;
  min-height: 56px;
  max-height: 240px;
  resize: vertical;
  border: none;
  background: var(--oecta-surface-low);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--oecta-font-body);
  font-size: 15px;
  color: var(--oecta-on-surface);
  line-height: 1.55;
}
.sup-composer__textarea:focus { outline: 2px solid rgba(243,156,18,0.4); outline-offset: -1px; }
.sup-composer__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.sup-composer__attach {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: var(--oecta-on-surface-variant);
  font-family: var(--oecta-font-body);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.sup-composer__attach:hover { background: var(--oecta-surface-low); }
.sup-composer__flux {
  flex: 1;
  text-align: center;
  font-family: 'Newsreader', 'Georgia', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--oecta-text-muted);
  opacity: 0;
  transition: opacity .15s ease;
}
.sup-composer.is-sending .sup-composer__flux { opacity: 1; }
.sup-composer__send {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--oecta-accent) 0%, var(--oecta-accent-container) 100%);
  color: #fff;
  border: none;
  border-radius: 99px;
  font-family: var(--oecta-font-display);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(243,156,18,0.28);
  transition: transform .12s ease, box-shadow .2s ease;
}
.sup-composer__send:hover { transform: translateY(-1px); }
.sup-composer__send:active { transform: scale(0.97); }
.sup-composer__send[disabled] {
  opacity: 0.45; cursor: not-allowed; box-shadow: none;
}

/* ── Compose form (Step 2) ──────────────────────────────────── */

.sup-compose {
  background: var(--oecta-surface-lowest);
  border-radius: var(--oecta-radius-xl);
  padding: 28px 30px 24px;
  margin-top: 18px;
  box-shadow: var(--oecta-shadow-sm, 0 2px 8px rgba(32,65,100,0.04));
}
.sup-step-eyebrow {
  font-family: var(--oecta-font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--oecta-primary-container, #204164);
  margin: 0 0 6px;
}
.sup-step-title {
  font-family: 'Newsreader', 'Georgia', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  color: var(--oecta-on-surface);
  margin: 0 0 8px;
  line-height: 1.2;
}
.sup-step-help {
  font-family: var(--oecta-font-body);
  font-size: 13px;
  color: var(--oecta-text-muted);
  margin: 0 0 22px;
}
.sup-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.sup-chip-echo {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 14px;
  background: linear-gradient(180deg, transparent 0%, var(--oecta-surface-low) 100%);
  border-radius: 8px;
  padding: 8px 12px;
}
.sup-chip-echo__edit {
  margin-left: auto;
  background: transparent;
  border: none;
  font-family: 'Newsreader', 'Georgia', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--oecta-primary-container);
  cursor: pointer;
  text-decoration: underline;
}
.sup-title-input {
  width: 100%;
  border: none;
  background: var(--oecta-surface-low);
  border-radius: 12px;
  padding: 18px 20px;
  font-family: var(--oecta-font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--oecta-on-surface);
  letter-spacing: -0.01em;
}
.sup-title-input:focus { outline: 2px solid rgba(243,156,18,0.4); background: #fff; }
.sup-title-input::placeholder { color: var(--oecta-text-subtle, #94a3b8); font-weight: 500; }
.sup-desc-input {
  width: 100%;
  margin-top: 14px;
  border: none;
  background: var(--oecta-surface-low);
  border-radius: 12px;
  padding: 16px 18px;
  font-family: var(--oecta-font-body);
  font-size: 15px;
  color: var(--oecta-on-surface);
  line-height: 1.55;
  min-height: 220px;
  resize: vertical;
}
.sup-desc-input:focus { outline: 2px solid rgba(243,156,18,0.4); background: #fff; }

.sup-pill-select {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--oecta-surface-low);
  border-radius: 99px;
  font-family: var(--oecta-font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--oecta-on-surface);
}
.sup-pill-select select {
  border: none;
  background: transparent;
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  color: inherit;
}
.sup-pill-select select:focus { outline: none; }

.sup-dropzone {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 24px;
  border-radius: 14px;
  background: var(--oecta-surface-low);
  outline: 2px dashed rgba(32,65,100,0.18);
  outline-offset: -6px;
  cursor: pointer;
  transition: outline-color .15s ease, background .15s ease;
}
.sup-dropzone:hover, .sup-dropzone.is-drag {
  outline-color: var(--oecta-accent);
  background: rgba(243,156,18,0.05);
}
.sup-dropzone__icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(243,156,18,0.16);
  color: #92400e;
  display: inline-flex; align-items: center; justify-content: center;
}
.sup-dropzone__title {
  font-family: var(--oecta-font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--oecta-on-surface);
}
.sup-dropzone__sub {
  font-family: 'Newsreader', 'Georgia', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--oecta-text-muted);
}

.sup-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.sup-btn-ghost {
  background: transparent;
  border: none;
  padding: 10px 16px;
  border-radius: 99px;
  font-family: var(--oecta-font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--oecta-on-surface-variant);
  cursor: pointer;
}
.sup-btn-ghost:hover { background: var(--oecta-surface-low); }
.sup-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--oecta-accent) 0%, var(--oecta-accent-container) 100%);
  color: #fff;
  border: none;
  border-radius: 99px;
  font-family: var(--oecta-font-display);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(243,156,18,0.28);
}
.sup-btn-primary[disabled] { opacity: 0.45; cursor: not-allowed; box-shadow: none; }

/* ── Empty state ────────────────────────────────────────────── */

.sup-empty {
  max-width: 480px;
  margin: 36px auto 0;
  text-align: center;
}
.sup-empty__title {
  font-family: 'Newsreader', 'Georgia', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 32px;
  color: var(--oecta-primary, #022b4d);
  margin: 0 0 12px;
  line-height: 1.2;
}
.sup-empty__body {
  font-family: var(--oecta-font-body);
  font-size: 15px;
  color: var(--oecta-on-surface-variant);
  line-height: 1.55;
  margin: 0 0 22px;
}

/* ── CSAT stars ─────────────────────────────────────────────── */

.sup-csat {
  background: var(--oecta-surface-lowest);
  border-radius: var(--oecta-radius-lg);
  padding: 22px 24px;
  margin: 14px 14px 0;
}
.sup-csat__head {
  font-family: var(--oecta-font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--oecta-on-surface);
  margin: 0 0 12px;
}
.sup-csat__stars {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.sup-csat__star {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--oecta-surface-high);
  transition: color .12s ease, transform .12s ease;
}
.sup-csat__star .material-icons-outlined { font-size: 32px; }
.sup-csat__star:hover, .sup-csat__star.is-on { color: var(--oecta-accent); }
.sup-csat__star:hover { transform: scale(1.1); }

/* ── Mobile single-column overrides ─────────────────────────── */

@media (max-width: 640px) {
  .sup-dhero { padding: 24px 22px; }
  .sup-dhero__day { font-size: 56px; }
  .sup-list-row {
    grid-template-columns: 12px 36px 1fr;
    padding: 12px 14px;
  }
  .sup-list-row__right { display: none; }
  .sup-list-row__title { white-space: normal; }
  .sup-detail__head { grid-template-columns: 36px 1fr; padding: 12px 16px; }
  .sup-detail__date { display: none; }
  .sup-thread { padding: 16px 12px; }
  .sup-msg { max-width: 88%; }
  .sup-composer { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}
