:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f6fa;
  color: #172033;
  --brand: #063376;
  --brand-action: #205ca8;
  --accent: #cf123f;
  --positive: #18794e;
  --warning: #9a6700;
  --negative: #b42318;
  --border: #d8e1ec;
  --muted: #5e6b7e;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --focus: #ffb020;
  --shadow: 0 12px 30px rgba(25, 54, 94, 0.1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-width: 280px; min-height: 100%; }
body { background: #f3f6fa; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled, select:disabled, textarea:disabled { cursor: not-allowed; opacity: 0.56; }
:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px var(--brand); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; background: #fff; color: var(--brand); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.bootstrap-shell {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(circle at 15% 15%, rgba(38, 94, 172, 0.14), transparent 32rem), linear-gradient(145deg, #f8fbff, #edf3fa);
}
.bootstrap-card {
  position: relative; overflow: hidden; width: min(100%, 480px); padding: clamp(28px, 6vw, 48px);
  border: 1px solid #dce5f1; border-radius: 24px; background: rgba(255, 255, 255, 0.96); box-shadow: 0 24px 70px rgba(25, 54, 94, 0.14); text-align: center;
}
.bootstrap-card::before { position: absolute; inset: 0 0 auto; height: 5px; background: var(--brand); content: ""; }
.brand-logo { display: block; width: min(100%, 340px); height: auto; margin: 0 auto; }
.status { margin: 28px 0 8px; font-size: 1.05rem; font-weight: 750; }
.detail, .muted { color: var(--muted); line-height: 1.55; }

.app-shell { min-width: 0; max-width: 100vw; min-height: 100vh; display: grid; grid-template-rows: auto auto auto minmax(0, 1fr); }
.app-header {
  min-height: 68px; display: flex; align-items: center; gap: 18px; padding: 10px 24px; color: white;
  background: linear-gradient(105deg, #08284e, #063376 58%, #104d8f); box-shadow: 0 4px 18px rgba(6, 51, 118, 0.2);
}
.app-logo { width: 210px; max-height: 42px; object-fit: contain; object-position: left center; filter: drop-shadow(0 2px 1px rgba(255, 255, 255, 0.25)); }
.header-context { display: grid; gap: 2px; padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, 0.28); }
.header-context span { font-size: 0.78rem; opacity: 0.82; }
.realtime-pill { margin-left: auto; padding: 7px 11px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; background: rgba(255,255,255,.1); font-size: .78rem; }
.realtime-pill::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #ffcf4a; }
.realtime-pill[data-state="online"]::before { background: #58d68d; }
.realtime-pill[data-state="offline"]::before { background: #ff9f8f; }
.commerce-launch { margin-left: auto; border: 1px solid rgba(255,255,255,.55); background: rgba(255,255,255,.12); color: #fff; }
.commerce-launch:hover { background: rgba(255,255,255,.22); }
.commerce-launch + .realtime-pill { margin-left: 0; }

.metrics-strip { display: grid; grid-template-columns: repeat(4, minmax(110px, 1fr)) minmax(180px, auto); gap: 10px; padding: 12px 18px; background: #eaf0f7; border-bottom: 1px solid var(--border); }
.metrics-strip article { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; background: white; }
.metrics-strip article span, .scenario-control { color: var(--muted); font-size: .75rem; font-weight: 650; }
.metrics-strip article strong { color: var(--brand); font-size: 1.12rem; }
.scenario-control { display: grid; grid-template-columns: auto minmax(110px, 1fr); align-items: center; gap: 8px; }

.state-alert { min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 9px 20px; border-bottom: 1px solid #c9d7e8; background: #eef5ff; }
.state-alert > div { display: grid; gap: 2px; }
.state-alert strong { font-size: .85rem; }
.state-alert span { color: var(--muted); font-size: .76rem; }
.state-alert .state-icon { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-action); }
.state-alert .button { margin-left: auto; }
.state-alert[data-kind="error"], .state-alert[data-kind="denied"] { background: #fff0ee; }
.state-alert[data-kind="error"] .state-icon, .state-alert[data-kind="denied"] .state-icon { background: var(--negative); }
.state-alert[data-kind="offline"], .state-alert[data-kind="conflict"] { background: #fff7df; }
.state-alert[data-kind="offline"] .state-icon, .state-alert[data-kind="conflict"] .state-icon { background: var(--warning); }
.state-alert[data-kind="success"] .state-icon { background: var(--positive); }

.workspace { min-height: 0; display: grid; grid-template-columns: minmax(280px, 340px) minmax(420px, 1fr) minmax(260px, 310px); overflow: hidden; }
.conversation-panel, .thread-panel, .context-column { min-height: 0; background: var(--surface); }
.conversation-panel { display: flex; flex-direction: column; border-right: 1px solid var(--border); }
.thread-panel { display: grid; grid-template-rows: auto auto auto minmax(180px, 1fr) auto; }
.context-column { overflow-y: auto; border-left: 1px solid var(--border); background: var(--surface-soft); }

.panel-heading, .thread-header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.panel-heading h1, .thread-header h2 { margin: 2px 0 0; color: var(--brand); font-size: 1.2rem; line-height: 1.2; }
.thread-header p { margin: 4px 0 0; color: var(--muted); font-size: .78rem; }
.eyebrow { color: var(--accent); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.fixture-badge { padding: 5px 8px; border: 1px solid #c9d7e8; border-radius: 999px; color: var(--brand); background: #eef5ff; font-size: .68rem; font-weight: 750; }

.filters { display: grid; gap: 9px; padding: 12px; border-bottom: 1px solid var(--border); background: var(--surface-soft); }
.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filter-row label, .inline-field { display: grid; gap: 4px; color: var(--muted); font-size: .7rem; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid #b9c6d7; border-radius: 9px; background: #fff; color: #172033; }
input, select { min-height: 38px; padding: 8px 10px; }
textarea { padding: 11px 12px; resize: vertical; line-height: 1.45; }
input:hover, select:hover, textarea:hover { border-color: #7d91aa; }

.conversation-list, .thread, .team-panel ul { margin: 0; padding: 0; list-style: none; }
.conversation-list { overflow-y: auto; }
.conversation-item { width: 100%; display: grid; gap: 7px; padding: 14px 15px; border: 0; border-bottom: 1px solid #e6ebf1; background: #fff; color: inherit; text-align: left; }
.conversation-item:hover { background: #f7faff; }
.conversation-item.is-selected { box-shadow: inset 4px 0 var(--accent); background: #eef5ff; }
.conversation-top, .conversation-tags { display: flex; align-items: center; gap: 7px; }
.conversation-top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-top time { margin-left: auto; color: var(--muted); font-size: .7rem; }
.conversation-preview { overflow: hidden; color: var(--muted); font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.conversation-tags span { padding: 3px 6px; border-radius: 5px; background: #edf1f6; color: #49586b; font-size: .65rem; }
.conversation-tags b { margin-left: auto; min-width: 20px; padding: 3px 6px; border-radius: 999px; background: var(--accent); color: white; font-size: .65rem; text-align: center; }
.empty-state { display: grid; place-items: center; align-content: center; gap: 5px; min-height: 180px; padding: 24px; color: var(--muted); text-align: center; }

.operation-bar { display: flex; align-items: end; gap: 8px; padding: 9px 14px; border-bottom: 1px solid var(--border); background: var(--surface-soft); }
.operation-bar .inline-field { min-width: 150px; margin-left: auto; }
.internal-tools { display: grid; gap: 7px; padding: 9px 14px; border-bottom: 1px solid var(--border); background: #fff; }
.saved-reply-row, .internal-action-row { display: flex; align-items: end; gap: 8px; }
.internal-tools label { display: grid; gap: 4px; min-width: 145px; color: var(--muted); font-size: .7rem; font-weight: 700; }
.task-field { flex: 1; }
.ai-disabled { margin-left: auto; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); background: var(--surface-soft); font-size: .68rem; font-weight: 750; }
.internal-activity { display: flex; gap: 6px; margin: 0; padding: 0; overflow-x: auto; list-style: none; }
.internal-activity li { flex: 0 0 auto; max-width: 360px; padding: 5px 8px; border-left: 3px solid var(--brand-action); background: var(--surface-soft); color: var(--muted); font-size: .68rem; }
.internal-activity strong { color: var(--brand); }
.button, .icon-button { border: 0; border-radius: 9px; font-weight: 750; }
.button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 13px; text-decoration: none; }
.primary-button { background: var(--brand-action); color: white; }
.primary-button:hover { background: #174d91; }
.secondary-button { border: 1px solid #9fb1c7; background: #fff; color: var(--brand); }
.secondary-button:hover { background: #eef5ff; }
.text-button { background: transparent; color: var(--brand-action); }
.icon-button { width: 38px; height: 38px; background: transparent; color: var(--brand); font-size: 1.2rem; }

.thread { min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 18px clamp(14px, 3vw, 30px); background: #eef2f6; }
.message { align-self: flex-start; width: min(76%, 620px); padding: 10px 12px; border: 1px solid #d7e0eb; border-radius: 4px 14px 14px; background: white; box-shadow: 0 3px 10px rgba(25, 54, 94, .06); }
.message-out { align-self: flex-end; border-color: #bcd3ef; border-radius: 14px 4px 14px 14px; background: #e6f1ff; }
.message-author { color: var(--brand); font-size: .68rem; font-weight: 800; }
.message p { margin: 5px 0 7px; line-height: 1.45; overflow-wrap: anywhere; }
.message-meta { display: block; color: var(--muted); font-size: .65rem; text-align: right; }
.thread-placeholder { margin: auto; color: var(--muted); }

.composer { display: grid; gap: 7px; padding: 12px 16px 14px; border-top: 1px solid var(--border); background: white; }
.composer > label { color: var(--brand); font-size: .75rem; font-weight: 800; }
.composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.composer-footer > div { display: grid; gap: 2px; color: var(--muted); font-size: .68rem; }
.permission-hint { color: var(--negative); font-weight: 750; }
.shortcut { padding-left: 5px; opacity: .75; font-size: .65rem; font-weight: 500; }

.context-column section, #context-panel > section { padding: 16px; border-bottom: 1px solid var(--border); }
.context-column h3, .context-drawer h2 { margin: 0 0 12px; color: var(--brand); font-size: .95rem; }
dl { display: grid; gap: 10px; margin: 0 0 12px; }
dl div { display: grid; gap: 2px; }
dt { color: var(--muted); font-size: .67rem; font-weight: 750; text-transform: uppercase; }
dd { margin: 0; font-size: .82rem; overflow-wrap: anywhere; }
.deep-link { color: var(--brand-action); font-size: .77rem; font-weight: 750; }
.team-panel ul { display: grid; gap: 10px; }
.team-panel li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; }
.team-panel li > span:nth-child(2) { display: grid; gap: 2px; }
.team-panel small { color: var(--muted); font-size: .65rem; }
.presence-dot { width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #9aa9ba; background: #8b98a8; }
.presence-online { background: var(--positive); }
.presence-busy { background: var(--warning); }
.risk-count { min-width: 24px; padding: 3px 6px; border-radius: 999px; background: #fff0ee; color: var(--negative); font-size: .68rem; font-weight: 800; text-align: center; }

.context-open, .mobile-only { display: none; }
.drawer-backdrop { position: fixed; z-index: 30; inset: 0; display: grid; justify-items: end; background: rgba(10, 25, 45, .45); }
.context-drawer { width: min(90vw, 360px); height: 100%; overflow-y: auto; background: white; box-shadow: -12px 0 30px rgba(10, 25, 45, .18); }
.context-drawer header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.context-drawer h2 { margin: 0; }
.drawer-context section { padding: 16px; border-bottom: 1px solid var(--border); }

.commerce-backdrop { position: fixed; z-index: 40; inset: 0; display: grid; justify-items: end; background: rgba(10,25,45,.55); }
.commerce-drawer { width: min(94vw, 1120px); height: 100%; overflow-y: auto; background: var(--surface-soft); box-shadow: -14px 0 34px rgba(10,25,45,.22); }
.commerce-header { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--border); background: #fff; }
.commerce-header h2 { margin: 3px 0 0; color: var(--brand); font-size: clamp(1.1rem, 2vw, 1.45rem); }
.commerce-safety { display: flex; gap: 8px; padding: 11px 22px; border-bottom: 1px solid #c9d7e8; background: #eef5ff; color: var(--muted); font-size: .78rem; }
.commerce-safety strong { color: var(--brand); }
.commerce-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 14px 22px 8px; }
.commerce-toolbar label, .commerce-card label, .commerce-card form { display: grid; gap: 5px; color: var(--muted); font-size: .72rem; font-weight: 750; }
.commerce-toolbar label { min-width: min(100%, 220px); }
.commerce-progress { display: grid; grid-template-columns: repeat(8, minmax(72px,1fr)); gap: 6px; margin: 0; padding: 10px 22px 14px; list-style: none; }
.commerce-progress li { display: grid; justify-items: center; gap: 4px; color: var(--muted); font-size: .68rem; text-align: center; }
.commerce-progress li > span:first-child { display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid #a8b6c7; border-radius: 50%; background: #fff; color: var(--muted); font-weight: 800; }
.commerce-progress li.done { color: var(--positive); font-weight: 750; }
.commerce-progress li.done > span:first-child { border-color: var(--positive); background: #e8f7ef; color: var(--positive); }
.commerce-alert { display: grid; gap: 2px; margin: 0 22px 14px; padding: 10px 12px; border-left: 4px solid var(--brand-action); background: #eef5ff; }
.commerce-alert strong { color: var(--brand); font-size: .82rem; }
.commerce-alert span { color: var(--muted); font-size: .75rem; }
.commerce-alert[data-kind="error"] { border-color: var(--negative); background: #fff0ee; }
.commerce-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; padding: 0 22px 18px; }
.commerce-card { min-width: 0; padding: 16px; border: 1px solid var(--border); border-radius: 13px; background: #fff; box-shadow: 0 5px 18px rgba(25,54,94,.05); }
.commerce-card h3 { margin: 0 0 12px; color: var(--brand); font-size: .98rem; }
.commerce-card form { grid-template-columns: minmax(0,1fr) auto; align-items: end; }
.commerce-card form label { min-width: 0; }
.commerce-result { min-height: 84px; margin: 12px 0; overflow-wrap: anywhere; }
.commerce-result dl { grid-template-columns: repeat(2,minmax(0,1fr)); }
.product-summary { display: grid; grid-template-columns: 54px minmax(0,1fr); gap: 10px; align-items: center; }
.product-summary img { width: 54px; height: 54px; object-fit: contain; border: 1px solid var(--border); border-radius: 9px; }
.product-summary div { display: grid; gap: 3px; }
.product-summary span, .product-summary small { color: var(--muted); font-size: .7rem; }
.commerce-card fieldset { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin: 12px 0 0; padding: 8px; border: 1px solid var(--border); border-radius: 9px; }
.commerce-card legend { color: var(--muted); font-size: .68rem; font-weight: 750; }
.variant-option { display: grid; gap: 3px; padding: 8px; border: 1px solid #b9c6d7; border-radius: 8px; background: #fff; color: inherit; text-align: left; }
.variant-option.selected { border-color: var(--brand-action); box-shadow: inset 0 0 0 1px var(--brand-action); background: #eef5ff; }
.variant-option small { color: var(--muted); font-size: .65rem; }
.commerce-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.queue-status { padding: 8px; border-radius: 8px; background: #e8f7ef; color: var(--positive); font-size: .75rem; }
.commerce-fallback { display: flex; align-items: center; gap: 9px; padding: 14px 22px 24px; color: var(--muted); font-size: .78rem; }
.commerce-fallback strong { color: var(--brand); }
.commerce-fallback .button { margin-left: auto; }
.ai-launch { border-color: rgba(255,255,255,.65); background: #fff; color: var(--brand); }
.ai-backdrop, .confirm-backdrop { position: fixed; z-index: 40; inset: 0; display: flex; justify-content: flex-end; background: rgba(5,18,35,.56); }
.ai-backdrop[hidden], .confirm-backdrop[hidden] { display: none; }
.ai-drawer { width: min(94vw, 920px); height: 100%; overflow-y: auto; background: var(--surface-soft); box-shadow: -14px 0 34px rgba(10,25,45,.22); }
.ai-header { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--border); background: #fff; }
.ai-header h2 { margin: 2px 0 0; color: var(--brand); }
.ai-safety { display: flex; gap: 10px; padding: 11px 22px; background: #fff7df; color: #6b4a00; font-size: .78rem; }
.ai-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 14px; padding: 14px 22px; }
.ai-toolbar > div { display: grid; gap: 3px; }
.ai-state { display: grid; gap: 3px; margin: 0 22px 14px; padding: 11px 13px; border-left: 4px solid var(--brand-action); border-radius: 8px; background: #eef5ff; }
.ai-state[data-kind="error"] { border-color: var(--negative); background: #fff0ee; color: #8e1d14; }
.ai-state[data-kind="disabled"] { border-color: #7b8797; background: #edf0f4; }
.ai-state[data-kind="loading"] { border-color: #9a6700; background: #fff7df; }
.ai-state span { font-size: .76rem; }
.ai-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 0 22px 18px; }
.ai-card { min-width: 0; padding: 16px; border: 1px solid var(--border); border-radius: 13px; background: #fff; box-shadow: 0 5px 18px rgba(25,54,94,.05); }
.ai-card h3 { margin: 0 0 10px; color: var(--brand); font-size: .92rem; }
.ai-card dl, .confirm-dialog dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 0; }
.ai-card dl div, .confirm-dialog dl div { min-width: 0; }
.ai-card dt, .confirm-dialog dt { color: var(--muted); font-size: .67rem; font-weight: 750; }
.ai-card dd, .confirm-dialog dd { margin: 2px 0 0; overflow-wrap: anywhere; font-size: .78rem; }
.code-summary { overflow-wrap: anywhere; color: var(--muted); font: 700 .72rem/1.5 ui-monospace, monospace; }
.ai-actions, .confirm-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ai-fallback { display: flex; gap: 9px; padding: 0 22px 24px; color: var(--muted); font-size: .78rem; }
.ai-fallback strong { color: var(--brand); }
.confirm-backdrop { z-index: 60; align-items: center; justify-content: center; padding: 16px; }
.confirm-dialog { width: min(100%, 520px); padding: 22px; border-radius: 16px; background: #fff; box-shadow: 0 24px 70px rgba(5,18,35,.3); }
.confirm-dialog h2 { margin-top: 0; color: var(--brand); }
.confirm-dialog p { color: var(--muted); }
.confirm-actions { justify-content: flex-end; }

html[data-scenario="loading"] .conversation-list, html[data-scenario="loading"] .thread { opacity: .45; }

@media (max-width: 1024px) {
  .app-header { flex-wrap: wrap; gap: 8px 10px; padding-inline: 16px; }
  .app-logo { width: 180px; }
  .header-context { margin-right: auto; }
  .commerce-launch, .realtime-pill { margin-left: 0; }
  .workspace { grid-template-columns: minmax(280px, 330px) minmax(390px, 1fr); }
  .context-column { display: none; }
  .context-open { display: inline-flex; }
  .metrics-strip { grid-template-columns: repeat(4, 1fr); }
  .scenario-control { grid-column: 1 / -1; justify-self: end; }
}

@media (max-width: 800px) {
  .app-header { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 12px; }
  .app-header .header-context { display: none; }
  .app-logo { grid-column: 1; grid-row: 1; }
  .realtime-pill { grid-column: 2; grid-row: 1; margin-left: 0; }
  .commerce-launch { grid-column: 1; grid-row: 2; justify-self: start; margin-left: 0; }
  .ai-launch { grid-column: 2; grid-row: 2; justify-self: end; }
}

@media (max-width: 767px) {
  .app-shell { min-height: 100dvh; }
  .app-header { min-height: 58px; padding: 8px 12px; gap: 9px; }
  .app-logo { width: 132px; }
  .header-context { min-width: 0; padding-left: 9px; }
  .header-context strong, .header-context span { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .realtime-pill { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .metrics-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; padding: 7px; overflow: hidden; }
  .metrics-strip article { min-width: 0; display: grid; gap: 3px; padding: 7px; }
  .metrics-strip article span { font-size: .62rem; }
  .scenario-control { grid-column: 1 / -1; width: 100%; }
  .state-alert { padding: 8px 10px; }
  .workspace { display: block; width: 100%; min-width: 0; overflow: hidden; }
  .conversation-panel, .thread-panel { width: 100%; min-width: 0; min-height: calc(100dvh - 184px); }
  html[data-mobile-view="list"] .thread-panel { display: none; }
  html[data-mobile-view="thread"] .conversation-panel { display: none; }
  .thread-panel { grid-template-rows: auto auto auto minmax(220px, 1fr) auto; }
  .mobile-only { display: inline-grid; place-items: center; flex: 0 0 auto; }
  .thread-header { padding: 10px; }
  .thread-header > div { min-width: 0; }
  .thread-header h2, .thread-header p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .context-open { padding-inline: 9px; }
  .operation-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding: 8px; }
  #claim-button { grid-column: 1; grid-row: 1; justify-self: start; }
  #close-button { grid-column: 2; grid-row: 1; }
  .operation-bar .inline-field { grid-column: 1; grid-row: 2; min-width: 0; width: auto; margin-left: 0; }
  #transfer-button { grid-column: 2; grid-row: 2; }
  .internal-tools { padding: 8px; }
  .saved-reply-row, .internal-action-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .internal-tools label { min-width: 0; }
  .ai-disabled { grid-column: 1 / -1; margin-left: 0; }
  .message { width: min(88%, 620px); }
  .composer { padding: 10px; }
  .composer-footer { align-items: end; }
  .shortcut { display: none; }
  .commerce-launch { min-height: 34px; padding: 6px 8px; font-size: .7rem; }
  .ai-launch { min-height: 34px; padding: 6px 8px; font-size: .7rem; }
  .commerce-drawer { width: 100vw; }
  .commerce-header { padding: 12px; }
  .commerce-safety { display: grid; padding: 9px 12px; }
  .commerce-toolbar { padding: 10px 12px 6px; }
  .commerce-progress { grid-template-columns: repeat(4,1fr); padding: 8px 12px 12px; }
  .commerce-alert { margin: 0 12px 10px; }
  .commerce-grid { grid-template-columns: 1fr; gap: 10px; padding: 0 12px 12px; }
  .commerce-card { padding: 13px; }
  .commerce-fallback { align-items: flex-start; flex-wrap: wrap; padding: 12px; }
  .commerce-fallback .button { margin-left: 0; }
  .ai-drawer { width: 100vw; }
  .ai-header { padding: 12px; }
  .ai-safety { display: grid; padding: 9px 12px; }
  .ai-toolbar { align-items: stretch; flex-direction: column; padding: 10px 12px; }
  .ai-state { margin: 0 12px 10px; }
  .ai-grid { grid-template-columns: 1fr; padding: 0 12px 12px; }
  .ai-fallback { display: grid; padding: 0 12px 18px; }
}

@media (max-width: 380px) {
  .app-logo { width: 112px; }
  .header-context { display: none; }
  .realtime-pill { max-width: 86px; padding-inline: 7px; font-size: .65rem; }
  .filter-row { grid-template-columns: 1fr; }
  .operation-bar .button { min-height: 36px; padding: 7px 9px; font-size: .78rem; }
  .composer-footer > div { max-width: 170px; }
  .commerce-launch { max-width: 94px; line-height: 1.1; }
  .ai-launch { max-width: 78px; line-height: 1.1; }
  .commerce-toolbar { align-items: stretch; flex-direction: column; }
  .commerce-toolbar label, .commerce-toolbar .button { width: 100%; }
  .commerce-card form { grid-template-columns: 1fr; }
  .commerce-card fieldset, .commerce-result dl { grid-template-columns: 1fr; }
  .ai-card dl, .confirm-dialog dl { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .bootstrap-card { animation: enter 280ms ease-out both; }
  .context-drawer { animation: slide-in 180ms ease-out both; }
  .commerce-drawer { animation: slide-in 180ms ease-out both; }
  .ai-drawer { animation: slide-in 180ms ease-out both; }
  @keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes slide-in { from { transform: translateX(24px); opacity: .7; } to { transform: translateX(0); opacity: 1; } }
}

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

/* Catálogo canônico ZV-N01–ZV-N39 */
[hidden] { display: none !important; }
.catalog-menu-button { flex: 0 0 44px; width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1px solid rgba(255,255,255,.46); color: #fff; font-size: 1.25rem; }
.app-header > .commerce-launch, .app-header > .ai-launch, .app-header > .engagement-launch { display: none !important; }
.catalog-nav { position: fixed; z-index: 80; inset: 68px auto 0 0; width: min(88vw, 340px); padding: 16px 12px 28px; overflow-y: auto; border-right: 1px solid var(--border); background: #fff; box-shadow: 14px 10px 36px rgba(7,35,73,.2); transform: translateX(-105%); transition: transform 180ms ease-out; }
.catalog-nav.open { transform: translateX(0); }
.catalog-nav section + section { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.catalog-nav h2 { margin: 0 8px 7px; color: var(--muted); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.catalog-nav a { min-height: 44px; display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; color: #213a5a; text-decoration: none; font-size: .82rem; font-weight: 700; }
.catalog-nav a > span { color: var(--muted); font-size: .66rem; }
.catalog-nav a:hover { background: #eef5ff; }
.catalog-nav a.active { background: #e4f0ff; color: var(--brand); box-shadow: inset 3px 0 var(--brand-action); }
.catalog-nav a.active > span { color: var(--brand-action); }
.catalog-screen { min-height: calc(100dvh - 68px); padding: clamp(18px,3vw,34px); background: #f3f6fa; }
.catalog-page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; max-width: 1440px; margin: 0 auto 18px; }
.catalog-page-header h1 { margin: 4px 0 7px; color: var(--brand); font-size: clamp(1.45rem,3vw,2rem); line-height: 1.12; outline: none; }
.catalog-page-header h1:focus-visible { padding-left: 9px; border-left: 4px solid var(--brand-action); outline: 0; box-shadow: none; }
.catalog-page-header p { max-width: 720px; margin: 0; color: var(--muted); line-height: 1.55; }
.catalog-header-actions { display: flex; flex: 0 0 auto; align-items: end; gap: 10px; }
.catalog-header-actions label, .catalog-filters label, .catalog-form label, .stacked-field { display: grid; gap: 5px; color: var(--muted); font-size: .72rem; font-weight: 750; }
.catalog-header-actions select { min-width: 180px; }
.catalog-content, .catalog-state { max-width: 1440px; margin-inline: auto; }
.catalog-state { min-height: 58px; display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 11px 14px; border: 1px solid #bed3ef; border-left: 4px solid var(--brand-action); border-radius: 10px; background: #edf5ff; }
.catalog-state[data-tone="success"] { border-color: #a8d7bb; border-left-color: var(--positive); background: #ecf8f1; }
.catalog-state[data-tone="warning"] { border-color: #eed69e; border-left-color: #9a6700; background: #fff8e8; }
.catalog-state[data-tone="error"] { border-color: #efb7b1; border-left-color: var(--negative); background: #fff1ef; }
.catalog-state-icon { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.catalog-state div { display: grid; gap: 2px; }
.catalog-state strong { color: var(--brand); font-size: .82rem; }
.catalog-state p { margin: 0; color: var(--muted); font-size: .75rem; }
.catalog-state .button { min-height: 44px; margin-left: auto; }
.catalog-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin-bottom: 14px; }
.catalog-metrics article, .catalog-card { border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: 0 6px 24px rgba(22,57,99,.06); }
.catalog-metrics article { display: grid; gap: 5px; padding: 17px; }
.catalog-metrics span, .catalog-metrics small { color: var(--muted); font-size: .72rem; }
.catalog-metrics strong { color: var(--brand); font-size: 1.55rem; }
.catalog-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.catalog-card { min-width: 0; padding: 18px; }
.catalog-card > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.catalog-card h2 { margin: 0; color: var(--brand); font-size: 1rem; }
.status-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 9px; border-radius: 999px; background: #edf0f4; color: #526174; font-size: .68rem; font-weight: 800; }
.status-chip.positive { background: #e7f6ed; color: #12673c; }
.status-chip.warning { background: #fff3d4; color: #765000; }
.bar-chart { height: 190px; display: flex; align-items: end; gap: 8%; padding: 26px 12px 0; border-bottom: 1px solid var(--border); }
.bar-chart span { position: relative; flex: 1; height: var(--bar); border-radius: 7px 7px 0 0; background: linear-gradient(180deg,#3977bc,#1d5799); }
.bar-chart i { position: absolute; top: calc(100% + 6px); left: 50%; color: var(--muted); font-size: .65rem; font-style: normal; transform: translateX(-50%); }
.action-list { display: grid; gap: 2px; margin: 10px 0 0; padding: 0; list-style: none; }
.action-list li { display: grid; gap: 3px; padding: 13px 4px; border-bottom: 1px solid var(--border); }
.action-list strong { color: var(--brand); font-size: .83rem; }
.action-list span { color: var(--muted); font-size: .73rem; }
.catalog-list-card { padding: 0; overflow: hidden; }
.catalog-filters { display: flex; align-items: end; gap: 10px; padding: 15px 16px; border-bottom: 1px solid var(--border); }
.catalog-search { flex: 1; }
.filter-count { min-width: 20px; padding: 2px 6px; border-radius: 999px; background: #dceafc; color: var(--brand); }
.catalog-table-wrap { overflow-x: auto; }
.catalog-table-wrap table { width: 100%; border-collapse: collapse; }
.catalog-table-wrap th, .catalog-table-wrap td { padding: 13px 16px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.catalog-table-wrap th { background: #f6f8fb; color: #58697c; font-size: .68rem; letter-spacing: .025em; text-transform: uppercase; }
.catalog-table-wrap td { color: #263b56; font-size: .78rem; }
.table-action { min-height: 44px; padding: 8px 10px; border: 0; background: transparent; color: var(--brand-action); font-weight: 800; }
.catalog-pagination { display: flex; align-items: center; justify-content: space-between; padding: 11px 16px; color: var(--muted); font-size: .72rem; }
.catalog-pagination button { width: 44px; height: 44px; border: 1px solid var(--border); background: #fff; color: var(--brand); }
.catalog-form { display: grid; gap: 14px; max-width: 1040px; }
.form-section > header { align-items: flex-start; justify-content: flex-start; }
.form-section header p { margin: 4px 0 0; color: var(--muted); font-size: .75rem; }
.form-index { flex: 0 0 32px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #e4f0ff; color: var(--brand-action); font-weight: 850; }
.catalog-field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 16px; }
.field-wide { grid-column: 1 / -1; }
.audit-section { padding-block: 14px; }
.audit-section summary { min-height: 44px; display: flex; align-items: center; color: var(--brand); font-weight: 800; cursor: pointer; }
.audit-section p { color: var(--muted); }
.wizard-card { max-width: 1040px; margin-inline: auto; padding: 0; overflow: hidden; }
.wizard-progress { display: flex; margin: 0; padding: 18px; overflow-x: auto; border-bottom: 1px solid var(--border); list-style: none; }
.wizard-progress li { min-width: 104px; display: grid; justify-items: center; gap: 6px; position: relative; flex: 1; color: var(--muted); text-align: center; font-size: .68rem; }
.wizard-progress li:not(:last-child)::after { content: ""; position: absolute; top: 16px; left: calc(50% + 22px); width: calc(100% - 44px); height: 2px; background: var(--border); }
.wizard-progress span { width: 34px; height: 34px; display: grid; place-items: center; z-index: 1; border: 2px solid #adbac9; border-radius: 50%; background: #fff; }
.wizard-progress .active { color: var(--brand); }
.wizard-progress .active span { border-color: var(--brand-action); background: #e4f0ff; color: var(--brand-action); }
.wizard-body { padding: clamp(20px,4vw,34px); }
.wizard-body h2 { margin: 6px 0; color: var(--brand); }
.wizard-body > p { margin: 0; color: var(--muted); }
.wizard-actions { display: flex; justify-content: space-between; padding: 16px 22px; border-top: 1px solid var(--border); background: #f8fafc; }
.insight-feed { display: grid; gap: 12px; }
.insight-card { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 20px; }
.insight-card h2 { margin: 5px 0; }
.insight-card p, .report-note p { margin: 0; color: var(--muted); font-size: .75rem; }
.insight-card dl, .result-list { display: flex; gap: 20px; margin: 0; }
.insight-card dl div, .result-list div { display: grid; gap: 3px; }
.insight-card dt, .result-list dt { color: var(--muted); font-size: .67rem; }
.insight-card dd, .result-list dd { margin: 0; color: var(--brand); font-size: .78rem; font-weight: 750; }
.stacked-field { margin: 14px 0; }
.health-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.health-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; align-items: center; gap: 12px; }
.health-card h2 { margin: 0 0 3px; }
.health-card p { margin: 0; color: var(--muted); font-size: .7rem; }
.health-dot { width: 12px; height: 12px; border-radius: 50%; background: #8b98a8; }
.health-dot.positive { background: var(--positive); }
.health-dot.warning { background: #d49500; }
.button, button, input, select, textarea { touch-action: manipulation; }
.button { min-height: 44px; }
.header-secondary-action { border: 1px solid rgba(255,255,255,.55); background: transparent; color: #fff; }
.account-recovery { display: grid; gap: 18px; padding: 18px; }
.recovery-drawer { width: min(94vw, 540px); }
.recovery-copy { color: var(--muted); line-height: 1.55; }
.security-list { display: grid; gap: 8px; padding-left: 20px; font-size: .78rem; }
.recovery-form { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); }
.recovery-form .field { display: grid; gap: 6px; color: var(--brand); font-size: .78rem; font-weight: 750; }
.recovery-form small, .recovery-notice { color: var(--muted); font-size: .72rem; line-height: 1.45; }
.safe-fallback { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--brand-action); font-size: .75rem; font-weight: 750; text-align: center; }
.safe-fallback:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px var(--brand); }
.template-manager-surface { padding: 0; overflow: hidden; }
.manager-grid { display: grid; grid-template-columns: minmax(250px,340px) minmax(0,1fr); }
.template-sidebar { padding: 18px; border-right: 1px solid var(--border); background: var(--surface-soft); }
.template-editor { min-width: 0; padding: 20px; }
.section-heading, .editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-heading h2, .editor-heading h2 { margin: 4px 0 0; color: var(--brand); font-size: 1rem; }
.template-list { display: grid; gap: 8px; margin-top: 14px; }
.template-list button { width: 100%; min-height: 58px; display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; background: #fff; color: var(--brand); text-align: left; }
.template-list button[aria-current="true"] { border-color: var(--brand-action); box-shadow: inset 3px 0 var(--brand-action); background: #eef5ff; }
.template-list small { color: var(--muted); }
.form-grid, .sample-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; margin-top: 18px; }
.field { display: grid; gap: 5px; color: var(--muted); font-size: .72rem; font-weight: 750; }
.field small { color: var(--muted); font-weight: 500; line-height: 1.4; }
.field.wide { grid-column: 1 / -1; }
.preview-panel { margin-top: 16px; padding: 15px; border: 1px solid #bad0eb; border-radius: 12px; background: #edf5ff; }
.message-preview { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.editor-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.approval-note { color: var(--muted); font-size: .72rem; }
.notice, .rejection { margin: 14px; padding: 11px 13px; border-left: 4px solid var(--brand-action); background: #edf5ff; color: var(--brand); }
.rejection { margin-inline: 0; border-color: var(--negative); background: #fff1ef; }
.channel-progress { max-width: 1040px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin: 0 auto 14px; padding: 0; list-style: none; }
.channel-progress li { min-height: 72px; display: flex; align-items: center; gap: 9px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--muted); font-size: .72rem; }
.channel-progress li > span { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; border: 2px solid #aab7c6; border-radius: 50%; }
.channel-progress li.complete { border-color: #9bc9ae; background: #edf8f1; color: #145d39; }
.channel-progress li.complete > span { border-color: var(--positive); }
.channel-status-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.channel-status-card h2 { margin: 5px 0; font-size: 1.2rem; }
.channel-status-card p, .channel-connect p, .channel-grid p { margin: 0; color: var(--muted); line-height: 1.5; }
.status-chip.negative { background: #fff0ee; color: #9d2d24; }
.channel-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 12px 0; }
.channel-scenario { max-width: 280px; display: grid; gap: 5px; color: var(--muted); font-size: .72rem; font-weight: 750; }
.channel-grid { margin-top: 14px; }
.channel-checklist { display: grid; gap: 10px; margin: 14px 0 0; padding-left: 22px; color: #31455f; font-size: .78rem; }
.channel-connect { display: grid; gap: 14px; }
.channel-diagnostics { display: grid; gap: 10px; margin: 14px 0 0; }
.channel-diagnostics div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 9px; border-bottom: 1px solid var(--border); }
.channel-diagnostics dt { color: var(--muted); }
.channel-diagnostics dd { margin: 0; color: var(--brand); font-weight: 750; text-align: right; }
.functional-notice { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 11px 14px; border: 1px solid #9ecdb1; border-radius: 10px; background: #edf8f1; color: #145d39; font-size: .76rem; }
.functional-notice span { color: #416853; }
.functional-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.functional-list { padding: 0; overflow: hidden; }
.functional-editor { max-width: 1040px; display: grid; gap: 14px; }
.functional-sticky-actions { position: sticky; bottom: 10px; z-index: 2; display: flex; flex-wrap: wrap; gap: 9px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.96); box-shadow: 0 8px 28px rgba(14,42,77,.16); }
.functional-panel { min-height: 190px; }
.functional-panel h2 { margin: 7px 0 18px; }
.functional-panel p { color: var(--muted); font-size: .72rem; }
.functional-bars { height: 82px; display: flex; align-items: end; gap: 9px; }
.functional-bars i { width: 17%; height: var(--value); border-radius: 5px 5px 0 0; background: linear-gradient(#4f87c5,#205b9d); }
.functional-board { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; overflow-x: auto; }
.functional-board > section { min-width: 250px; }
.functional-board-card { width: 100%; min-height: 64px; margin-top: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 9px; background: #f8fafc; color: var(--brand); text-align: left; font-weight: 750; }
.functional-facts { display: grid; gap: 0; margin: 14px 0 0; }
.functional-facts div { display: grid; grid-template-columns: minmax(120px,35%) minmax(0,1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.functional-facts dt { color: var(--muted); font-size: .72rem; }
.functional-facts dd { margin: 0; color: var(--brand); font-size: .78rem; font-weight: 750; overflow-wrap: anywhere; }

@media (max-width: 1024px) {
  .catalog-page-header { display: grid; }
  .catalog-header-actions { width: 100%; justify-content: space-between; }
  .catalog-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .insight-card { grid-template-columns: 1fr auto; }
  .insight-card dl { grid-column: 1; }
}

@media (max-width: 767px) {
  .catalog-menu-button { grid-column: 1; grid-row: 1; }
  .app-header .app-logo { grid-column: 2; grid-row: 1; }
  .app-header .realtime-pill { grid-column: 3; grid-row: 1; }
  .catalog-nav { inset-block-start: 58px; }
  .catalog-screen { min-height: calc(100dvh - 58px); padding: 16px 12px 28px; }
  .catalog-header-actions { display: grid; grid-template-columns: 1fr; }
  .catalog-header-actions label, .catalog-header-actions select, .catalog-header-actions .button { width: 100%; }
  .catalog-grid, .health-grid, .catalog-field-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .catalog-filters { display: grid; grid-template-columns: 1fr 1fr; }
  .catalog-search { grid-column: 1 / -1; }
  .catalog-table-wrap table, .catalog-table-wrap thead, .catalog-table-wrap tbody, .catalog-table-wrap tr, .catalog-table-wrap td { display: block; }
  .catalog-table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .catalog-table-wrap tr { padding: 11px 14px; border-bottom: 1px solid var(--border); }
  .catalog-table-wrap td { display: grid; grid-template-columns: minmax(100px,42%) minmax(0,1fr); gap: 8px; padding: 6px 0; border: 0; white-space: normal; overflow-wrap: anywhere; }
  .catalog-table-wrap td::before { content: attr(data-label); color: var(--muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
  .catalog-table-wrap td:last-child { display: flex; justify-content: flex-end; }
  .catalog-table-wrap td:last-child::before { content: none; }
  .insight-card { grid-template-columns: 1fr; }
  .insight-card dl { grid-column: auto; }
  .health-card { grid-template-columns: auto minmax(0,1fr) auto; }
  .health-card .table-action { grid-column: 2 / -1; justify-self: end; }
  .manager-grid { grid-template-columns: 1fr; }
  .template-sidebar { border-right: 0; border-bottom: 1px solid var(--border); }
  .form-grid, .sample-grid { grid-template-columns: 1fr; }
  .field.wide { grid-column: auto; }
  .channel-progress { grid-template-columns: 1fr 1fr; }
  .channel-status-card { align-items: flex-start; }
  .functional-board { grid-template-columns: repeat(3,minmax(250px,1fr)); }
  .functional-notice { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 780px) {
  .account-recovery { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .channel-progress { grid-template-columns: 1fr; }
  .catalog-metrics { grid-template-columns: 1fr; }
  .catalog-filters { grid-template-columns: 1fr; }
  .catalog-search { grid-column: auto; }
  .wizard-progress { justify-content: flex-start; }
  .wizard-progress li { flex: 0 0 96px; }
  .insight-card dl, .result-list { display: grid; gap: 10px; }
}
