:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --purple: #3a2563;
  --purple-deep: #271442;
  --purple-soft: #ede7f5;
  --magenta: #d91d8e;
  --magenta-dark: #bd1178;
  --magenta-soft: #fce8f4;
  --lilac: #f7f5fb;
  --paper: #ffffff;
  --ink: #241b36;
  --muted: #6d6678;
  --line: #e5e0ec;
  --line-strong: #d5cde1;
  --positive: #14775e;
  --positive-soft: #e4f4ed;
  --neutral: #4d7185;
  --neutral-soft: #e7f0f4;
  --negative: #aa3b50;
  --negative-soft: #f9e8ec;
  --mixed: #8a621d;
  --mixed-soft: #f8efdc;
  --unanalysed: #667085;
  --unanalysed-soft: #eef0f4;
  --shadow-sm: 0 1px 2px rgba(39, 20, 66, .05);
  --shadow-lg: 0 24px 70px rgba(39, 20, 66, .16);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--lilac); }
body { margin: 0; min-width: 320px; background: var(--lilac); color: var(--ink); font-size: 14px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button, input, select { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2rem, 3vw, 2.7rem); letter-spacing: -.052em; line-height: 1.08; }
h2 { font-size: 1.08rem; letter-spacing: -.02em; line-height: 1.3; }
h3 { font-size: 1rem; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 14px; border-radius: 8px; background: var(--paper); color: var(--purple); font-weight: 750; box-shadow: var(--shadow-lg); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.shell { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 28px 17px 18px; overflow: hidden; color: #fff; background: radial-gradient(circle at 15% 0, rgba(217, 29, 142, .28), transparent 36%), linear-gradient(165deg, var(--purple) 0%, var(--purple-deep) 100%); }
.sidebar::after { content: ""; position: absolute; right: -85px; bottom: 80px; width: 180px; height: 180px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 50%; box-shadow: 0 0 0 24px rgba(255, 255, 255, .025), 0 0 0 52px rgba(255, 255, 255, .018); pointer-events: none; }
.brand { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 11px; width: fit-content; line-height: 1; }
.sidebar .brand { margin: 0 10px 48px; }
.brand-symbol { position: relative; display: inline-block; width: 39px; height: 39px; flex: 0 0 39px; border-radius: 11px; background: linear-gradient(145deg, #f04dad, var(--magenta)); box-shadow: 0 8px 20px rgba(217, 29, 142, .27); }
.brand-symbol::before, .brand-symbol::after { content: ""; position: absolute; top: 50%; left: 50%; border-radius: 999px; background: #fff; transform: translate(-50%, -50%); }
.brand-symbol::before { width: 18px; height: 4px; }
.brand-symbol::after { width: 4px; height: 18px; }
.brand-copy { display: block; letter-spacing: -.035em; }
.brand-name { display: block; font-size: 18px; font-weight: 790; }
.brand-sub { display: block; margin-top: 5px; font-size: 11px; font-weight: 620; letter-spacing: .12em; text-transform: uppercase; }
.brand-on-dark .brand-name { color: #fff; }
.brand-on-dark .brand-sub { color: #d9cce9; }
.brand-on-light .brand-name, .brand-on-light .brand-sub { color: var(--purple); }
.brand-on-light .brand-name { background: linear-gradient(100deg, var(--purple) 0%, var(--magenta) 100%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.primary-nav { position: relative; z-index: 1; }
.nav-link { display: flex; align-items: center; gap: 11px; min-height: 44px; margin: 3px 0; padding: 10px 12px; border-radius: 9px; color: #ded5e9; font-weight: 680; }
.nav-link svg { width: 21px; height: 21px; color: #ed8ac7; }
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-link.active { color: #fff; background: rgba(255, 255, 255, .12); box-shadow: inset 3px 0 var(--magenta); }
.sidebar-account { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 17px 5px 0; border-top: 1px solid rgba(255, 255, 255, .15); }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-weight: 750; }
.account-name { flex: 1; min-width: 0; overflow: hidden; color: #f3eff8; text-overflow: ellipsis; white-space: nowrap; }
.icon-button { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 8px; background: transparent; }
.logout { color: #e1d8ec; }
.logout:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.logout svg { width: 20px; height: 20px; }

.main { width: 100%; max-width: 1560px; margin: 0 auto; padding: 37px clamp(20px, 3.2vw, 50px) 46px; }
.main:focus { outline: none; }
.page-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 25px; }
.page-header h1 { margin-top: 4px; }
.page-header p { margin-top: 8px; color: var(--muted); line-height: 1.55; }
.eyebrow, .section-kicker { display: block; color: var(--magenta-dark); font-size: .69rem; font-weight: 800; letter-spacing: .13em; line-height: 1.2; text-transform: uppercase; }
.section-kicker { margin-bottom: 5px; color: #847991; font-size: .63rem; }
.environment { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; padding: 6px 10px; border: 1px solid #edcfe1; border-radius: 999px; background: var(--magenta-soft); color: #8f165e; font-size: 11px; font-weight: 720; }
.environment > span { width: 7px; height: 7px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 0 3px rgba(217, 29, 142, .12); }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 15px; }
.metric, .panel { border: 1px solid var(--line); border-radius: 13px; background: var(--paper); box-shadow: var(--shadow-sm); }
.metric { min-width: 0; padding: 16px 17px 15px; }
.metric-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #5d546b; font-weight: 680; }
.metric-icon { display: grid; place-items: center; width: 29px; height: 29px; flex: 0 0 29px; border-radius: 8px; }
.metric-icon svg { width: 17px; height: 17px; }
.metric-icon.total { background: var(--purple-soft); color: var(--purple); }
.metric-icon.positive { background: var(--positive-soft); color: var(--positive); }
.metric-icon.negative { background: var(--negative-soft); color: var(--negative); }
.metric-icon.unanalysed { background: var(--unanalysed-soft); color: var(--unanalysed); }
.metric strong { display: block; margin: 3px 0 1px; font-size: 2.25rem; font-variant-numeric: tabular-nums; letter-spacing: -.075em; line-height: 1.15; }
.metric small, .metric a { color: var(--muted); font-size: 12px; }
.metric a { color: var(--purple); font-weight: 700; }
.metric a:hover { color: var(--magenta-dark); text-decoration: underline; text-underline-offset: 3px; }
.positive-text { color: var(--positive); }
.negative-text { color: var(--negative); }

.sentiment-panel { margin-bottom: 15px; padding: 18px 19px 16px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.section-heading > .muted, .result-count { color: var(--muted); font-size: 12px; }
.distribution { display: flex; gap: 3px; height: 12px; margin: 15px 0 12px; overflow: hidden; border-radius: 999px; background: #f0edf4; }
.distribution > span { flex: var(--weight); min-width: 3px; }
.distribution.empty { background: #eeebf2; }
.fill-positive { background: var(--positive); }
.fill-neutral { background: var(--neutral); }
.fill-negative { background: var(--negative); }
.fill-mixed { background: #a87929; }
.fill-unanalysed { background: #a4a8b2; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 21px; margin: 0; padding: 0; list-style: none; }
.legend li { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.legend b { color: var(--ink); font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; border-radius: 50%; }

.conversation-panel { overflow: hidden; }
.list-heading { padding: 19px 19px 0; }
.filters { display: grid; grid-template-columns: minmax(230px, 1.6fr) repeat(3, minmax(145px, 1fr)) auto; gap: 10px; align-items: end; padding: 15px 19px 18px; }
.filter-field { display: grid; min-width: 0; gap: 6px; color: #5b5268; font-size: 11px; font-weight: 720; }
.filter-field > span:first-child { padding-left: 1px; }
input:not([type=radio]), select { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); font-size: 13px; }
input::placeholder { color: #91899b; }
input:hover, select:hover { border-color: #bcb1cb; }
input:focus, select:focus { border-color: var(--magenta); outline: 3px solid rgba(217, 29, 142, .14); }
.input-wrap { position: relative; display: block; }
.input-wrap input { padding-left: 37px; }
.input-icon { position: absolute; z-index: 1; top: 12px; left: 11px; width: 19px; height: 19px; color: #7a7088; pointer-events: none; }
.filter-actions { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 9px 14px; border: 1px solid transparent; border-radius: 8px; font-weight: 730; line-height: 1.2; white-space: nowrap; }
.button svg { width: 18px; height: 18px; }
.primary { background: var(--magenta); color: #fff; box-shadow: 0 7px 16px rgba(217, 29, 142, .17); }
.primary:hover { background: var(--magenta-dark); }
.secondary { border-color: var(--line-strong); background: #fff; color: var(--purple); }
.secondary:hover { border-color: #c4b9d2; background: var(--purple-soft); }
.reset-link { display: inline-flex; align-items: center; gap: 3px; min-height: 40px; padding: 7px 3px; color: var(--muted); font-size: 12px; font-weight: 690; }
.reset-link svg { width: 17px; height: 17px; }
.reset-link:hover { color: var(--magenta-dark); }

.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 790px; border-collapse: collapse; }
th, td { padding: 11px 12px; border-top: 1px solid var(--line); text-align: left; }
th:first-child, td:first-child { padding-left: 19px; }
th:last-child, td:last-child { padding-right: 19px; }
th { background: #faf9fc; color: #736a7f; font-size: 10px; font-weight: 780; letter-spacing: .06em; text-transform: uppercase; }
td { color: #40384c; font-size: 13px; }
tbody tr { transition: background-color .14s ease; }
tbody tr:hover { background: #fcfafd; }
.call-title { display: flex; align-items: center; gap: 10px; min-width: 205px; }
.call-title a, .conversation-card-title a { color: var(--ink); font-weight: 720; }
.call-title a:hover, .conversation-card-title a:hover { color: var(--magenta-dark); text-decoration: underline; text-underline-offset: 3px; }
td small, .conversation-card-title small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.direction { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 31px; border-radius: 9px; background: var(--purple-soft); color: var(--purple); }
.direction svg { width: 18px; height: 18px; }
.test-label { display: inline-flex; align-items: center; margin-left: 6px; color: #8f165e; font-weight: 680; }
.test-label::before { content: ""; width: 3px; height: 3px; margin-right: 6px; border-radius: 50%; background: #a79ead; }
.pill { display: inline-flex; align-items: center; width: fit-content; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 720; line-height: 1.2; white-space: nowrap; }
.pill.positive { background: var(--positive-soft); color: #0c654e; }
.pill.neutral { background: var(--neutral-soft); color: #3c6376; }
.pill.negative { background: var(--negative-soft); color: #913247; }
.pill.mixed { background: var(--mixed-soft); color: #765217; }
.pill.unanalysed { background: var(--unanalysed-soft); color: #556074; }
.open-call { display: grid; place-items: center; width: 34px; height: 34px; margin-left: auto; border-radius: 8px; color: var(--purple); }
.open-call:hover { background: var(--purple-soft); color: var(--magenta-dark); }
.open-call svg { width: 18px; height: 18px; }
.mobile-call-list { display: none; }
.empty-state { display: grid; justify-items: center; padding: 46px 20px 48px; border-top: 1px solid var(--line); text-align: center; }
.empty-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 13px; border-radius: 13px; background: var(--purple-soft); color: var(--purple); }
.empty-icon svg { width: 23px; height: 23px; }
.empty-state h3 { font-size: 1.05rem; }
.empty-state p { margin: 5px 0 16px; color: var(--muted); }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 11px; padding: 12px 19px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.pagination .button { min-height: 38px; padding: 7px 11px; }

.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; color: var(--purple); font-weight: 720; }
.back-link:hover { color: var(--magenta-dark); text-decoration: underline; text-underline-offset: 3px; }
.back-link svg { width: 18px; height: 18px; }
.detail-header { align-items: flex-end; }
.header-badges { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(285px, .88fr); gap: 16px; align-items: start; }
.detail-panel { margin-bottom: 16px; padding: 20px; }
.detail-panel .section-heading { align-items: flex-start; }
.panel-icon { display: grid; place-items: center; width: 33px; height: 33px; flex: 0 0 33px; border-radius: 9px; background: var(--purple-soft); color: var(--purple); }
.panel-icon svg { width: 18px; height: 18px; }
.call-content { margin-top: 15px; overflow-wrap: anywhere; line-height: 1.65; white-space: pre-wrap; }
.summary-panel { border-top: 3px solid var(--purple); }
.analysis-panel { border-top: 3px solid var(--magenta); }
.analysis-panel .call-content { color: #3f354a; }
.transcript-content { max-height: 560px; padding-right: 8px; overflow-y: auto; color: #51495b; font-size: 13px; }
.facts { margin: 3px 0 0; }
.facts > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid #eeeaf2; }
.facts > div:last-child { padding-bottom: 0; border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { max-width: 65%; margin: 0; overflow-wrap: anywhere; color: #40364b; font-weight: 680; text-align: right; }
.facts dd.technical-value { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; font-weight: 600; }
.source-panel { display: flex; align-items: flex-start; gap: 12px; padding: 17px; background: linear-gradient(135deg, #f0eaf6, #fcebf5); }
.source-panel h2 { color: var(--purple); }
.source-panel p { margin-top: 4px; color: #685d72; font-size: 12px; line-height: 1.5; }
.source-icon { display: grid; place-items: center; width: 35px; height: 35px; flex: 0 0 35px; border-radius: 10px; background: #fff; color: var(--magenta-dark); box-shadow: var(--shadow-sm); }
.source-icon svg { width: 19px; height: 19px; }

.auth-shell { display: grid; place-items: center; min-height: 100vh; padding: 28px; background: radial-gradient(circle at 10% 10%, rgba(217, 29, 142, .11), transparent 28%), radial-gradient(circle at 90% 90%, rgba(58, 37, 99, .13), transparent 34%), var(--lilac); }
.auth-shell:focus { outline: none; }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(390px, .88fr); width: min(100%, 1060px); min-height: 630px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow-lg); }
.auth-intro { position: relative; display: flex; flex-direction: column; min-height: 100%; padding: 42px 46px; overflow: hidden; color: #fff; background: radial-gradient(circle at 82% 18%, rgba(239, 92, 181, .5), transparent 29%), linear-gradient(150deg, var(--purple) 0%, var(--purple-deep) 78%); }
.auth-intro::before, .auth-intro::after { content: ""; position: absolute; border: 1px solid rgba(255, 255, 255, .08); border-radius: 50%; pointer-events: none; }
.auth-intro::before { right: -125px; bottom: -100px; width: 340px; height: 340px; box-shadow: 0 0 0 45px rgba(255, 255, 255, .025), 0 0 0 95px rgba(255, 255, 255, .018); }
.auth-intro::after { top: 110px; left: -145px; width: 240px; height: 240px; }
.auth-intro .brand { position: relative; z-index: 2; }
.auth-intro .brand-name { color: #fff; background: none; -webkit-text-fill-color: currentColor; }
.auth-intro .brand-sub { color: #d9cce9; }
.auth-intro-copy { position: relative; z-index: 2; width: min(100%, 470px); margin: auto 0; padding: 55px 0 70px; }
.auth-intro-copy .eyebrow { margin-bottom: 14px; color: #f2a9d6; }
.auth-intro-copy h1 { max-width: 430px; font-size: clamp(2.5rem, 5vw, 4rem); }
.auth-intro-copy p { max-width: 430px; margin-top: 17px; color: #ded6e8; font-size: 15px; line-height: 1.65; }
.signal-art { position: absolute; right: 40px; bottom: 34px; display: flex; align-items: center; gap: 6px; height: 44px; opacity: .76; }
.signal-art span { width: 5px; border-radius: 999px; background: linear-gradient(#ef79c1, #fff); }
.signal-art span:nth-child(1) { height: 14px; }
.signal-art span:nth-child(2) { height: 30px; }
.signal-art span:nth-child(3) { height: 42px; }
.signal-art span:nth-child(4) { height: 22px; }
.auth-card { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(30px, 5vw, 58px); }
.auth-card > .environment { align-self: flex-start; margin-bottom: 26px; }
.auth-card h2 { font-size: 1.85rem; letter-spacing: -.045em; }
.auth-lead { margin-top: 8px; color: var(--muted); line-height: 1.55; }
.auth-form { display: grid; gap: 14px; margin-top: 25px; }
.auth-form label { display: grid; gap: 6px; color: #4f465b; font-size: 12px; font-weight: 720; }
.auth-form input { min-height: 46px; }
.field-hint { margin-top: -8px; color: var(--muted); font-size: 11px; }
.auth-submit { justify-content: space-between; min-height: 47px; margin-top: 3px; padding-right: 13px; padding-left: 16px; }
.auth-submit svg { width: 19px; height: 19px; }
.error { margin-top: 16px; padding: 10px 12px; border: 1px solid #edc7d0; border-radius: 8px; background: var(--negative-soft); color: #862b40; }
.privacy-note { margin-top: 22px; color: #827989; font-size: 11px; line-height: 1.55; text-align: center; }

.error-page { width: min(100%, 560px); margin: 8vh auto 0; padding: 34px; text-align: center; }
.auth-shell .error-page { margin: 0; }
.error-page-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 17px; border-radius: 15px; background: var(--negative-soft); color: var(--negative); }
.error-page-icon svg { width: 25px; height: 25px; }
.error-page .eyebrow { margin-bottom: 7px; }
.error-page p { margin: 10px auto 21px; color: var(--muted); line-height: 1.6; }

@media (max-width: 1180px) {
  .filters { grid-template-columns: minmax(230px, 1.6fr) repeat(2, minmax(150px, 1fr)); }
  .filters .filter-field:nth-child(4) { grid-column: 1 / 2; }
  .filter-actions { grid-column: 2 / -1; justify-content: flex-end; }
}

@media (max-width: 1000px) {
  .shell { grid-template-columns: 205px minmax(0, 1fr); }
  .sidebar { padding-right: 13px; padding-left: 13px; }
  .sidebar .brand { margin-right: 7px; margin-left: 7px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .7fr); gap: 16px; }
  .detail-side .detail-panel { margin-bottom: 0; }
}

@media (max-width: 840px) {
  .auth-shell { padding: 18px; }
  .auth-layout { grid-template-columns: 1fr; width: min(100%, 560px); }
  .auth-intro { min-height: 285px; padding: 30px; }
  .auth-intro-copy { margin: 45px 0 0; padding: 0 0 42px; }
  .auth-intro-copy h1 { font-size: clamp(2.25rem, 8vw, 3.3rem); }
  .auth-card { padding: 38px 30px 42px; }
}

@media (max-width: 760px) {
  .shell { display: block; }
  .sidebar { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 10px 14px; width: 100%; height: auto; padding: 13px 15px 11px; overflow: visible; }
  .sidebar::after { display: none; }
  .sidebar .brand { grid-column: 1; grid-row: 1; margin: 0; }
  .brand-symbol { width: 35px; height: 35px; flex-basis: 35px; border-radius: 10px; }
  .brand-symbol::before { width: 16px; }
  .brand-symbol::after { height: 16px; }
  .brand-name { font-size: 16px; }
  .brand-sub { margin-top: 4px; font-size: 9px; }
  .primary-nav { grid-column: 1 / -1; grid-row: 2; }
  .nav-link { width: fit-content; min-height: 40px; margin: 0; padding: 8px 11px; }
  .sidebar-account { grid-column: 2; grid-row: 1; margin: 0; padding: 0; border: 0; }
  .main { padding: 25px 16px 36px; }
  .desktop-table { display: none; }
  .mobile-call-list { display: grid; gap: 10px; margin: 0; padding: 12px; border-top: 1px solid var(--line); list-style: none; }
  .conversation-card { padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
  .conversation-card-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; }
  .conversation-card-title { min-width: 0; padding-top: 3px; }
  .conversation-card-title a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .conversation-card-top .pill { margin-top: 3px; }
  .conversation-card-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 14px 0 0; padding: 12px 0; border-top: 1px solid #eeeaf2; border-bottom: 1px solid #eeeaf2; }
  .conversation-card-facts div { min-width: 0; }
  .conversation-card-facts dt { color: var(--muted); font-size: 10px; }
  .conversation-card-facts dd { margin: 2px 0 0; overflow: hidden; color: #4b4257; font-size: 12px; font-weight: 670; text-overflow: ellipsis; white-space: nowrap; }
  .card-link { display: flex; align-items: center; justify-content: space-between; min-height: 38px; padding-top: 9px; color: var(--purple); font-size: 12px; font-weight: 750; }
  .card-link svg { width: 17px; height: 17px; }
  .detail-side { grid-template-columns: 1fr; }
  .detail-side .detail-panel { margin-bottom: 0; }
  .source-panel { margin-top: 0; }
}

@media (max-width: 620px) {
  .page-header { align-items: flex-start; margin-bottom: 19px; }
  .page-header h1 { font-size: 2rem; }
  .page-header > .environment { margin-top: 2px; }
  .metrics { gap: 9px; }
  .metric { padding: 13px 14px; }
  .metric strong { font-size: 1.95rem; }
  .filters { grid-template-columns: 1fr; }
  .filters .filter-field:nth-child(4), .filter-actions { grid-column: auto; }
  .filter-actions { justify-content: flex-start; }
  .filter-actions .primary { flex: 1; }
  .detail-header { align-items: flex-start; }
  .detail-header, .detail-header .header-badges { flex-direction: column; justify-content: flex-start; }
  .detail-panel { padding: 17px; }
  .pagination { justify-content: space-between; flex-wrap: wrap; }
}

@media (max-width: 470px) {
  .sidebar-account .account-name { display: none; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric-heading { align-items: flex-start; }
  .metric-heading > span:first-child { max-width: 90px; }
  .metric small, .metric a { line-height: 1.35; }
  .section-heading { align-items: flex-start; }
  .sentiment-panel .section-heading { flex-direction: column; gap: 7px; }
  .conversation-card-top { grid-template-columns: auto minmax(0, 1fr); }
  .conversation-card-top .pill { grid-column: 2; }
  .conversation-card-facts { grid-template-columns: 1fr 1fr; }
  .auth-shell { padding: 10px; }
  .auth-layout { border-radius: 16px; }
  .auth-intro { min-height: 250px; padding: 24px; }
  .auth-intro-copy { margin-top: 35px; padding-bottom: 35px; }
  .auth-intro-copy h1 { font-size: 2.2rem; }
  .auth-intro-copy p { margin-top: 12px; font-size: 13px; }
  .auth-card { padding: 32px 23px 35px; }
  .error-page { padding: 26px 20px; }
}

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