:root {
  --ink: #171717;
  --muted: #6b6f76;
  --line: #e5e7eb;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --meli: #ffe600;
  --aqua: #00a8a8;
  --blue: #335cff;
  --green: #12805c;
  --red: #b42318;
  --amber: #b76e00;
  --shadow: 0 20px 60px rgba(20, 24, 31, 0.12);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
  max-width: 100%;
}

button {
  cursor: pointer;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

.eyebrow {
  margin: 0 0 8px;
  color: #7a5d00;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.landing-body {
  min-height: 100vh;
  background: #fbfaf7;
}

.landing {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-width: 0;
}

.hero {
  min-height: 82vh;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(500px, 1.1fr);
  gap: 44px;
  align-items: center;
  overflow: visible;
  padding: 56px 0 44px;
  min-width: 0;
}

.hero-copy {
  width: 100%;
  min-width: 0;
  max-width: 620px;
}

.hero-copy h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(48px, 5.4vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy h1 span {
  display: block;
}

.hero-lede {
  width: 100%;
  max-width: 600px;
  margin: 28px 0 0;
  color: #3a3d42;
  font-size: 19px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-strip span,
.soft-badge,
.count-badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  padding: 6px 11px;
  color: #30343a;
  font-size: 13px;
  font-weight: 750;
}

.hero-product {
  position: relative;
  min-width: 0;
  max-width: 100%;
  min-height: 560px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 8px;
  background: #fff6bc;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-product::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.28) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.product-chrome {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  padding: 18px;
}

.product-chrome span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #111827;
  opacity: 0.22;
}

.product-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 14px;
  min-width: 0;
  padding: 10px 18px 18px;
}

.product-panel {
  min-width: 0;
  min-height: 138px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  padding: 18px;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
}

.product-panel small,
.lead-meta,
.file-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.product-panel strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 25px;
  line-height: 1.12;
}

.product-panel span,
.product-panel p {
  margin: 0;
  color: #4b5563;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.lead-card.active {
  background: #171717;
  color: #ffffff;
}

.lead-card.active small,
.lead-card.active span {
  color: rgba(255, 255, 255, 0.72);
}

.transcript {
  grid-column: span 2;
  min-height: 118px;
}

.audit strong {
  color: var(--green);
}

.landing-band {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 36px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding: 48px 0;
}

.landing-band h2,
.pillars h3,
.focus-panel h2,
.section-head h2,
.client-side h2 {
  margin: 0;
  letter-spacing: 0;
}

.landing-band h2 {
  font-size: 40px;
  line-height: 1;
}

.landing-band p {
  margin: 0;
  color: #373b42;
  font-size: 18px;
  line-height: 1.62;
  overflow-wrap: break-word;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 64px;
  background: var(--line);
}

.pillars article {
  min-width: 0;
  min-height: 220px;
  background: #ffffff;
  padding: 22px;
}

.pillars span {
  color: #9a7500;
  font-weight: 850;
}

.pillars h3 {
  margin-top: 36px;
  font-size: 22px;
}

.pillars p {
  color: var(--muted);
  line-height: 1.55;
}

.app-body {
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(180deg, #fffdf1, #f6f7f9 38%, #eef6f4),
    #f6f7f9;
}

.app-shell {
  display: grid;
  grid-template-columns: 72px 1fr;
  grid-template-rows: 82px calc(100vh - 82px);
  min-height: 100vh;
  min-width: 0;
}

.rail {
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border-right: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.74);
  padding: 18px 10px;
  backdrop-filter: blur(20px);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--meli);
  color: #111111;
  font-size: 22px;
  font-weight: 900;
}

.rail-button {
  width: 44px;
  height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #68707d;
  font-size: 13px;
  font-weight: 850;
}

.rail-button.is-active {
  border-color: #171717;
  background: #171717;
  color: #ffffff;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.72);
  padding: 14px 24px;
  backdrop-filter: blur(18px);
}

.topbar > div,
.section-head > div,
.workspace,
.lead-column,
.main-view,
.view-grid,
.focus-panel,
.client-side,
.phone-frame {
  min-width: 0;
}

.topbar h1 {
  margin: 0;
  font-size: 25px;
  letter-spacing: 0;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ghost-button,
.quick-actions button,
.chat-form button {
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 8px;
  background: #171717;
  color: #ffffff;
  padding: 10px 13px;
  font-weight: 800;
}

.ghost-button {
  background: #ffffff;
  color: #171717;
}

.workspace {
  display: grid;
  grid-template-columns: 330px 1fr;
  min-height: 0;
}

.lead-column {
  min-height: 0;
  border-right: 1px solid rgba(17, 24, 39, 0.08);
  padding: 20px;
  overflow: auto;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  min-width: 0;
}

.section-head h2 {
  font-size: 24px;
}

.lead-list {
  display: grid;
  gap: 10px;
}

.lead-item {
  width: 100%;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 14px;
  text-align: left;
  min-width: 0;
}

.lead-item.is-active {
  border-color: rgba(17, 17, 17, 0.9);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.1);
}

.lead-item strong {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
}

.lead-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}

.main-view {
  min-width: 0;
  min-height: 0;
  padding: 20px;
  overflow: auto;
}

.view-grid {
  display: grid;
  gap: 16px;
}

.meli-layout,
.partner-layout {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
}

.span-2 {
  grid-column: span 2;
}

.focus-panel {
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 18px;
  box-shadow: 0 12px 36px rgba(17, 24, 39, 0.07);
}

.supervisor-layout {
  align-items: start;
}

.global-cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 14px;
  background: var(--line);
}

.global-card {
  min-width: 0;
  background: #ffffff;
  padding: 13px;
}

.global-card span,
.global-card small {
  display: block;
  color: #6b6f76;
  font-size: 12px;
  font-weight: 760;
}

.global-card strong {
  display: block;
  margin: 6px 0 4px;
  font-size: 28px;
  line-height: 1;
}

.funnel {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.metric-header,
.metric-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px 72px;
  gap: 14px;
  align-items: center;
}

.metric-header > *,
.metric-row > * {
  min-width: 0;
}

.metric-header {
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
  padding: 10px 12px;
  color: #6b6f76;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.metric-row {
  border-bottom: 1px solid var(--line);
  padding: 12px;
}

.metric-row:last-child {
  border-bottom: 0;
}

.metric-row strong {
  display: block;
}

.metric-row span {
  display: block;
  margin-top: 3px;
  color: #6b6f76;
  font-size: 12px;
  line-height: 1.35;
}

.metric-number,
.metric-percent {
  justify-self: end;
  margin: 0;
  color: #171717;
  font-size: 17px;
  font-weight: 850;
  text-align: right;
}

.metric-percent {
  color: #4b5563;
}

.partner-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.partner-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 13px;
  text-align: left;
}

.partner-card.is-active {
  border-color: #171717;
  box-shadow: inset 0 0 0 1px #171717;
}

.partner-card strong,
.partner-card span {
  display: block;
}

.partner-card span {
  margin-top: 5px;
  color: #5d636d;
  font-size: 12px;
  line-height: 1.35;
}

.contact-directory,
.contact-detail {
  min-height: 620px;
}

.contact-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(130px, 1fr)) auto;
  gap: 8px;
  margin-bottom: 12px;
}

.contact-filters input,
.contact-filters select {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 8px;
  background: #ffffff;
  padding: 9px 10px;
  color: #171717;
  font: inherit;
  font-size: 13px;
}

.contact-list {
  display: grid;
  gap: 8px;
}

.contact-item {
  display: grid;
  grid-template-columns: minmax(150px, 1.1fr) minmax(170px, 1.2fr) minmax(130px, 0.9fr) auto minmax(92px, auto);
  gap: 12px;
  align-items: center;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
  color: #171717;
  text-align: left;
}

.contact-item.is-active {
  border-color: #171717;
  box-shadow: inset 0 0 0 1px #171717;
}

.contact-item strong,
.contact-item span {
  display: block;
  min-width: 0;
}

.contact-item span {
  color: #6b6f76;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.pager button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.detail-audit {
  margin-top: 18px;
}

.empty-state {
  border: 1px dashed #c8cfd8;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 18px;
  color: #5d636d;
}

.dossier {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.datum {
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.datum small {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 750;
}

.datum strong {
  font-size: 20px;
  word-break: break-word;
}

.timeline {
  display: grid;
  max-height: 360px;
  overflow: auto;
  padding-right: 8px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 13px 0;
}

.timeline-item:first-child {
  border-top: 0;
}

.timeline-time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.timeline-item strong {
  display: block;
  margin-bottom: 3px;
}

.timeline-item p {
  margin: 0;
  color: #555b64;
  line-height: 1.42;
}

.next-action {
  border-radius: 8px;
  background: #171717;
  color: #ffffff;
  padding: 18px;
}

.next-action strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.manual-actions:empty {
  display: none;
}

.manual-actions {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.quick-actions button {
  min-height: 42px;
  padding: 10px;
  font-size: 13px;
}

.task-note {
  margin: 12px 0 0;
  color: #5d636d;
  line-height: 1.45;
}

.handoff-panel {
  margin-top: 14px;
  border: 1px solid rgba(18, 128, 92, 0.14);
  border-radius: 8px;
  background: rgba(18, 128, 92, 0.07);
  padding: 13px;
}

.handoff-panel strong,
.handoff-panel span {
  display: block;
}

.handoff-panel span {
  margin-top: 4px;
  color: #4f5863;
  line-height: 1.45;
}

.validation-grid,
.mini-case {
  display: grid;
  gap: 10px;
}

.upload-drop {
  display: grid;
  place-items: center;
  min-height: 128px;
  margin-top: 14px;
  border: 1px dashed #9aa3ad;
  border-radius: 8px;
  background: #fbfcfd;
  text-align: center;
}

.upload-drop input,
.attach-button input {
  display: none;
}

.upload-drop strong {
  display: block;
  margin-bottom: 4px;
}

.upload-drop span {
  color: var(--muted);
  font-size: 13px;
}

.evidence-board {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 16px;
}

.document-list,
.message-list {
  display: grid;
  gap: 10px;
}

.document-card,
.message-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
  min-width: 0;
}

.document-card strong,
.message-card strong {
  display: block;
  margin-bottom: 4px;
}

.document-card p,
.message-card p,
.panel-copy {
  margin: 0;
  color: #555b64;
  line-height: 1.48;
}

.client-layout {
  display: grid;
  grid-template-columns: minmax(340px, 430px) minmax(300px, 1fr);
  gap: 18px;
  align-items: start;
}

.phone-frame {
  display: grid;
  grid-template-rows: auto minmax(360px, calc(100vh - 260px)) auto auto auto;
  min-height: calc(100vh - 128px);
  border: 10px solid #171717;
  border-radius: 34px;
  background: #f7f4eb;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.phone-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(17, 24, 39, 0.1);
  background: #ffffff;
  padding: 16px;
}

.phone-top strong,
.phone-top span {
  display: block;
}

.phone-top span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.online-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(18, 128, 92, 0.14);
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding: 16px;
}

.bubble {
  max-width: 82%;
  border-radius: 8px;
  padding: 11px 13px;
  line-height: 1.42;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.06);
  overflow-wrap: anywhere;
}

.bubble.agent {
  align-self: flex-start;
  border-bottom-left-radius: 5px;
  background: #ffffff;
}

.bubble.client {
  align-self: flex-end;
  border-bottom-right-radius: 5px;
  background: #dff8e9;
}

.bubble small {
  display: block;
  margin-top: 6px;
  color: rgba(17, 24, 39, 0.48);
  font-size: 10px;
  font-weight: 700;
}

.slot-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  padding: 10px 12px 0;
}

.slot-bar button {
  flex: 0 0 auto;
  border: 1px solid #171717;
  border-radius: 999px;
  background: #ffffff;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
}

.chat-form {
  display: grid;
  grid-template-columns: 42px 42px 1fr auto;
  gap: 8px;
  padding: 12px;
}

.chat-form input[type="text"],
.chat-form input:not([type]) {
  width: 100%;
}

.chat-form input#chatInput {
  min-width: 0;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 999px;
  background: #ffffff;
  padding: 12px 14px;
}

.attach-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #171717;
  border-radius: 999px;
  background: #171717;
  color: #ffffff;
  transition:
    transform 140ms ease,
    background-color 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.chat-form .audio-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 999px;
  background: #ffffff;
  padding: 0;
  color: #171717;
  transition:
    transform 140ms ease,
    background-color 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    color 140ms ease;
}

.attach-button:hover,
.chat-form .audio-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.1);
}

.attach-button:focus-within,
.chat-form .audio-button:focus-visible {
  outline: 2px solid rgba(51, 92, 255, 0.28);
  outline-offset: 3px;
}

.chat-form .audio-button.is-recording {
  border-color: rgba(180, 35, 24, 0.2);
  background: #fff5f4;
  color: var(--red);
  box-shadow: 0 0 0 5px rgba(180, 35, 24, 0.08);
}

.composer-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.audio-button .composer-icon {
  width: 20px;
  height: 20px;
}

.chat-form button {
  border-radius: 999px;
}

.file-hint {
  min-height: 20px;
  margin: 0;
  padding: 0 16px 12px;
}

.client-side {
  display: grid;
  gap: 16px;
}

.status-pill[data-tone="green"],
.qualification-green {
  background: rgba(18, 128, 92, 0.12);
  color: var(--green);
  border-color: rgba(18, 128, 92, 0.2);
}

.status-pill[data-tone="amber"],
.qualification-amber {
  background: rgba(183, 110, 0, 0.12);
  color: var(--amber);
  border-color: rgba(183, 110, 0, 0.2);
}

.status-pill[data-tone="red"],
.qualification-red {
  background: rgba(180, 35, 24, 0.1);
  color: var(--red);
  border-color: rgba(180, 35, 24, 0.2);
}

.status-pill[data-tone="blue"] {
  background: rgba(51, 92, 255, 0.1);
  color: var(--blue);
  border-color: rgba(51, 92, 255, 0.2);
}

.loading {
  opacity: 0.64;
  pointer-events: none;
}

@media (max-width: 980px) {
  .hero,
  .landing-band,
  .workspace,
  .client-layout,
  .meli-layout,
  .partner-layout,
  .evidence-board {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 28px;
    align-items: start;
    padding-top: 36px;
  }

  .hero-product {
    position: relative;
    inset: auto;
    min-height: 430px;
    margin-top: 0;
  }

  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-body {
    overflow: auto;
  }

  .app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .rail {
    grid-row: auto;
    flex-direction: row;
    justify-content: center;
    border-right: 0;
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  }

  .brand-mark {
    margin: 0 10px 0 0;
  }

  .topbar {
    align-items: flex-start;
    gap: 14px;
  }

  .top-actions {
    flex-wrap: wrap;
  }

  .span-2 {
    grid-column: span 1;
  }

  .global-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .partner-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-filters input {
    grid-column: span 2;
  }

  .contact-item {
    grid-template-columns: 1fr auto;
  }

  .contact-item > div:nth-child(2),
  .contact-item > div:nth-child(3),
  .contact-item > span:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .landing {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    padding-bottom: 34px;
  }

  .hero-copy h1 {
    font-size: clamp(37px, 10.4vw, 44px);
    line-height: 1;
    max-width: 100%;
  }

  .hero-lede {
    max-width: 100%;
    font-size: 17px;
    overflow-wrap: anywhere;
  }

  .hero-product {
    min-height: auto;
    margin-top: 0;
  }

  .product-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 8px 12px 14px;
  }

  .product-panel {
    min-height: 112px;
    padding: 14px;
  }

  .product-panel strong {
    font-size: 22px;
  }

  .product-grid,
  .dossier,
  .quick-actions,
  .validation-grid,
  .mini-case,
  .evidence-board,
  .pillars {
    grid-template-columns: 1fr;
  }

  .transcript {
    grid-column: span 1;
  }

  .workspace {
    display: block;
  }

  .app-shell {
    min-height: auto;
  }

  .rail {
    justify-content: flex-start;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 12px;
  }

  .brand-mark,
  .rail-button {
    flex: 0 0 auto;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .rail-button {
    width: 42px;
    height: 42px;
  }

  .topbar {
    flex-direction: column;
    padding: 14px;
  }

  .topbar h1 {
    font-size: 22px;
    line-height: 1.1;
  }

  .top-actions {
    width: 100%;
  }

  .top-actions .soft-badge,
  .top-actions .ghost-button {
    flex: 1 1 auto;
    justify-content: center;
  }

  .lead-column,
  .main-view {
    padding: 14px;
  }

  .lead-column {
    border-right: 0;
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
    overflow: visible;
  }

  .main-view {
    overflow: visible;
  }

  .section-head {
    gap: 10px;
  }

  .focus-panel {
    padding: 14px;
  }

  .global-cards,
  .partner-stats,
  .contact-filters {
    grid-template-columns: 1fr;
  }

  .contact-filters input {
    grid-column: auto;
  }

  .global-card strong {
    font-size: 24px;
  }

  .contact-directory,
  .contact-detail {
    min-height: auto;
  }

  .contact-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-item > div:nth-child(2),
  .contact-item > div:nth-child(3),
  .contact-item > span:last-child {
    grid-column: auto;
  }

  .pager {
    justify-content: space-between;
  }

  .metric-header,
  .metric-row {
    grid-template-columns: minmax(0, 1fr) 46px 54px;
    gap: 8px;
  }

  .metric-header {
    font-size: 10px;
    padding: 9px 10px;
  }

  .metric-row {
    padding: 11px 10px;
  }

  .metric-row span {
    font-size: 11px;
  }

  .metric-number,
  .metric-percent {
    font-size: 15px;
  }

  .timeline {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .phone-frame {
    grid-template-rows: auto minmax(320px, 1fr) auto auto auto;
    min-height: min(720px, calc(100dvh - 28px));
    border-width: 0;
    border-radius: 8px;
  }

  .bubble {
    max-width: 92%;
  }

  .chat-form {
    grid-template-columns: 42px 42px minmax(0, 1fr) auto;
  }

  .chat-form button {
    padding: 10px 12px;
  }

  .landing-band {
    gap: 18px;
    padding: 40px 0;
  }

  .landing-band h2 {
    font-size: 34px;
  }

  .pillars {
    margin-bottom: 44px;
  }

  .pillars article {
    min-height: 180px;
  }
}

@media (max-width: 420px) {
  .landing {
    width: min(100% - 20px, 1180px);
  }

  .hero {
    padding-top: 28px;
  }

  .hero-copy h1 {
    font-size: clamp(34px, 10.2vw, 39px);
  }

  .hero-strip span {
    width: 100%;
    justify-content: center;
  }

  .landing-band h2 {
    font-size: 32px;
  }
}
