:root {
  color-scheme: dark;
  --bg: #09130f;
  --shell: #0d1b16;
  --surface: #12241d;
  --surface-2: #172d24;
  --surface-3: #1d372c;
  --line: rgba(219, 232, 222, 0.12);
  --line-strong: rgba(219, 232, 222, 0.2);
  --text: #f4f7f4;
  --muted: #9bada2;
  --green: #77c99a;
  --green-dark: #245f42;
  --gold: #e5bd67;
  --red: #ff8c82;
  --blue: #79b8dc;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
  --radius: 18px;
  --radius-sm: 12px;
  --sidebar: 232px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.login-view { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at top, #17382a, #09130f 58%); }
.login-card { width: min(420px, 100%); padding: clamp(26px, 6vw, 42px); border: 1px solid var(--line-strong); border-radius: 22px; background: rgba(15,31,25,.97); box-shadow: var(--shadow); }
.login-card .brand-mark { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 24px; border-radius: 14px; background: var(--gold); color: #132018; font-weight: 900; }
.login-card h1 { margin: 8px 0; font-family: Georgia, "Times New Roman", serif; font-size: 34px; font-weight: 500; }
.login-card > p:not(.eyebrow):not(.login-message) { margin: 0 0 24px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.login-card label { display: grid; gap: 7px; margin: 14px 0; color: var(--muted); font-size: 11px; font-weight: 700; }
.login-card input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 11px; outline: 0; background: var(--surface-2); color: var(--text); font-size: 16px; }
.login-card input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(119,201,154,.1); }
.login-card .primary-button { width: 100%; min-height: 48px; margin-top: 10px; }
.login-card > small { display: block; margin-top: 18px; color: var(--muted); font-size: 9px; text-align: center; }
.login-message { min-height: 18px; margin: 12px 0 0; color: var(--gold); font-size: 11px; text-align: center; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); color: var(--text); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
.sr-only { 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; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--gold); color: #152018; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); display: flex; flex-direction: column; padding: 26px 18px; background: var(--shell); border-right: 1px solid var(--line); z-index: 20; }
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 24px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(229,189,103,.55); border-radius: 11px; color: var(--gold); font-family: Georgia, serif; font-size: 22px; }
.brand strong, .brand small { display: block; }
.brand strong { letter-spacing: .14em; font-size: 13px; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.nav-list { display: grid; gap: 5px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 13px; border-radius: 12px; color: var(--muted); font-size: 14px; font-weight: 650; transition: .18s ease; }
.nav-item:hover { background: rgba(255,255,255,.035); color: var(--text); }
.nav-item.active { background: var(--surface-3); color: var(--text); box-shadow: inset 3px 0 var(--gold); }
.nav-icon { width: 23px; text-align: center; font-size: 16px; }
.nav-badge { margin-left: auto; min-width: 20px; padding: 2px 6px; border-radius: 20px; background: rgba(229,189,103,.15); color: var(--gold); font-size: 10px; text-align: center; }
.sidebar-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 14px 10px 0; border-top: 1px solid var(--line); }
.sidebar-foot strong, .sidebar-foot small { display: block; font-size: 11px; }
.sidebar-foot small { margin-top: 2px; color: var(--muted); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(119,201,154,.1); }
.workspace { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; min-height: 92px; padding: 20px clamp(24px, 4vw, 54px); border-bottom: 1px solid var(--line); background: rgba(9,19,15,.9); backdrop-filter: blur(18px); }
.topbar h1 { margin: 3px 0 0; font-size: clamp(25px, 3vw, 32px); line-height: 1.1; letter-spacing: -.03em; }
.eyebrow { margin: 0; color: var(--gold); font-size: 10px; font-weight: 750; letter-spacing: .16em; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.read-only-pill { padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 99px; color: var(--muted); font-size: 11px; }
.avatar-button { width: 38px; height: 38px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface-2); color: var(--green); font-size: 11px; font-weight: 800; cursor: pointer; }
#main-content { width: min(1440px, 100%); margin: 0 auto; padding: clamp(24px, 4vw, 46px) clamp(20px, 4vw, 54px) 90px; outline: none; }
.mobile-nav { display: none; }
.loading-state, .empty-state { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 50vh; color: var(--muted); }
.spinner { width: 18px; height: 18px; border: 2px solid var(--line-strong); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .7fr); gap: 18px; margin-bottom: 22px; }
.brief-card, .metric-card, .panel, .attention-card { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(23,45,36,.96), rgba(15,31,25,.96)); border-radius: var(--radius); box-shadow: var(--shadow); }
.brief-card { position: relative; overflow: hidden; min-height: 190px; padding: clamp(24px, 4vw, 36px); }
.brief-card::after { content: ""; position: absolute; width: 220px; height: 220px; right: -95px; top: -95px; border: 1px solid rgba(229,189,103,.16); border-radius: 50%; box-shadow: 0 0 0 34px rgba(229,189,103,.025), 0 0 0 68px rgba(229,189,103,.018); }
.brief-card h2 { max-width: 650px; margin: 10px 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(25px, 3.3vw, 38px); font-weight: 500; line-height: 1.14; letter-spacing: -.025em; }
.brief-card p { position: relative; z-index: 1; max-width: 660px; margin: 0; color: #bac8bf; font-size: 14px; line-height: 1.65; }
.section-kicker { color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.metric-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.metric-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 89px; padding: 17px; box-shadow: none; }
.metric-card.wide { grid-column: 1 / -1; }
.metric-label { color: var(--muted); font-size: 11px; }
.metric-value { margin-top: 8px; font-size: 23px; font-weight: 760; letter-spacing: -.03em; }
.metric-note { color: var(--green); font-size: 10px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin: 30px 0 14px; }
.section-head h2 { margin: 0; font-size: 18px; letter-spacing: -.015em; }
.section-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.count-chip { flex: 0 0 auto; padding: 6px 10px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 11px; }
.attention-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.attention-card { min-width: 0; padding: 19px; box-shadow: none; cursor: pointer; transition: transform .18s ease, border-color .18s ease; }
.attention-card:hover { transform: translateY(-2px); border-color: rgba(229,189,103,.35); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.priority { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 760; letter-spacing: .08em; }
.priority::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.priority.critica::before { background: var(--red); }
.priority.media::before { background: var(--blue); }
.bucket { padding: 5px 8px; border-radius: 7px; background: rgba(119,201,154,.1); color: var(--green); font-size: 9px; font-weight: 800; }
.attention-card h3 { margin: 16px 0 6px; overflow: hidden; text-overflow: ellipsis; font-size: 16px; white-space: nowrap; }
.attention-card .reason { min-height: 39px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.action-line { display: flex; gap: 9px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: #dce5de; font-size: 11px; line-height: 1.45; }
.action-line span { color: var(--gold); }
.ai-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.ai-item { flex: 1 0 230px; padding: 15px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(18,36,29,.68); }
.ai-item strong { display: block; font-size: 13px; }
.ai-item span { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 50; max-width: 330px; padding: 12px 15px; border: 1px solid var(--line-strong); border-radius: 11px; background: #20362d; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s ease; font-size: 12px; }
.toast.visible { opacity: 1; transform: translateY(0); }

.module-intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.module-intro h2 { margin: 9px 0 7px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(26px, 3vw, 38px); font-weight: 500; letter-spacing: -.025em; }
.module-intro p { margin: 0; color: var(--muted); font-size: 13px; }
.module-total { flex: 0 0 auto; min-width: 190px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.module-total small, .module-total strong { display: block; }
.module-total small { color: var(--muted); font-size: 10px; }
.module-total strong { margin-top: 7px; font-size: 20px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.search-field { display: flex; align-items: center; gap: 10px; width: min(380px, 100%); min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); }
.search-field:focus-within { border-color: rgba(119,201,154,.5); box-shadow: 0 0 0 3px rgba(119,201,154,.08); }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 12px; }
.search-field input::placeholder { color: #71847a; }
.filter-row { display: flex; gap: 7px; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-button { flex: 0 0 auto; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--muted); font-size: 9px; font-weight: 750; cursor: pointer; }
.filter-button.active { border-color: rgba(119,201,154,.32); background: rgba(119,201,154,.1); color: var(--green); }
.shadow-banner { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 14px; padding: 11px 14px; border: 1px solid rgba(225,180,77,.38); border-radius: 12px; background: rgba(225,180,77,.09); color: #f0d58d; font-size: 10px; letter-spacing: .04em; }
.shadow-banner strong { color: #ffe4a2; }
.inbox-toolbar { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.message-attachment { display: grid; gap: 6px; margin: 9px 0 5px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.035); }
.message-attachment > small { color: var(--muted); }
.message-attachment details summary { cursor: pointer; color: var(--green); font-size: 10px; font-weight: 700; }
.message-attachment details p { margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--line); color: var(--text); }
.message-attachment audio { width: 100%; height: 34px; margin-top: 8px; }
.message-attachment video { display: block; max-width: 100%; width: 280px; margin-top: 8px; border-radius: 10px; }
.message-attachment .media-fallback { color: var(--gold); }
.message-attachment img { display: block; width: min(100%, 280px); max-height: 220px; margin-top: 8px; border-radius: 10px; object-fit: cover; }
.message-attachment a { display: inline-flex; margin-top: 8px; color: var(--green); font-weight: 750; }
.rafael-suggestion { margin: 12px 0 4px; padding: 14px; border: 1px solid rgba(213,178,89,.28); border-radius: 12px; background: rgba(213,178,89,.08); }
.rafael-suggestion strong { color: var(--gold); }
.rafael-suggestion p { margin: 6px 0; }
.rafael-suggestion small { color: var(--muted); }
.real-data-badge { display: inline-flex; margin-bottom: 8px; padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 850; letter-spacing: .06em; }
.real-data-badge.matched { background: rgba(119,201,154,.12); color: var(--green); }
.real-data-badge.missing { background: rgba(213,178,89,.12); color: var(--gold); }
.real-crm-context { padding: 14px 20px; border-bottom: 1px solid var(--line); background: rgba(119,201,154,.045); }
.real-crm-context > strong { color: var(--green); }
.real-crm-context > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 10px; }
.real-crm-context span { display: grid; gap: 3px; }
.real-crm-context small, .real-crm-context p { color: var(--muted); }
.real-crm-context p { margin-top: 10px; font-size: 10px; }
.shadow-metrics { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; margin: 10px 0 16px; }
.shadow-metrics span { display: grid; gap: 4px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.shadow-metrics small { color: var(--muted); font-size: 9px; }
.shadow-metrics strong { color: var(--green); font-size: 17px; }
.content-with-detail { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; align-items: start; }
.lead-list, .detail-panel, .conversation-list, .thread-panel, .audit-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.lead-row { display: grid; grid-template-columns: 44px minmax(0,1fr) 125px 18px; align-items: center; gap: 14px; width: 100%; min-height: 78px; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.lead-row:last-child { border-bottom: 0; }
.lead-row:hover, .lead-row.selected { background: var(--surface-2); }
.score-ring { display: grid; place-items: center; width: 42px; height: 42px; border: 2px solid var(--line-strong); border-radius: 50%; font-size: 12px; font-weight: 800; }
.score-ring.high { border-color: var(--gold); color: var(--gold); }
.score-ring.medium { border-color: var(--green); color: var(--green); }
.score-ring.low { color: var(--muted); }
.lead-main, .lead-value { min-width: 0; }
.lead-main strong, .lead-main small, .lead-value strong, .lead-value small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-main strong { font-size: 13px; }
.lead-main small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.lead-value { text-align: right; }
.lead-value strong { font-size: 12px; }
.lead-value small { margin-top: 5px; color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: .04em; }
.row-chevron { color: var(--muted); font-size: 24px; }
.detail-panel { position: sticky; top: 112px; padding: 20px; }
.empty-detail { display: grid; place-items: center; min-height: 310px; text-align: center; color: var(--muted); }
.empty-detail span { font-size: 30px; color: var(--green); }
.empty-detail h3 { margin: 0; color: var(--text); font-size: 15px; }
.empty-detail p { max-width: 220px; margin: -6px 0 0; font-size: 11px; line-height: 1.55; }
.detail-header { display: flex; justify-content: space-between; align-items: center; }
.icon-button { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.icon-button:hover { color: var(--text); background: var(--surface-2); }
.contact-avatar { display: grid; place-items: center; width: 52px; height: 52px; margin-top: 18px; border-radius: 15px; background: linear-gradient(145deg, var(--green-dark), #1a3d2c); color: var(--green); font-size: 14px; font-weight: 800; }
.detail-panel h2 { margin: 14px 0 4px; font-size: 18px; }
.detail-id { margin: 0; color: var(--muted); font: 10px ui-monospace, monospace; }
.detail-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0; }
.detail-stats span { padding: 12px; border-radius: 10px; background: var(--surface-2); }
.detail-stats small, .detail-stats strong { display: block; }
.detail-stats small { color: var(--muted); font-size: 9px; }
.detail-stats strong { margin-top: 5px; font-size: 13px; }
.detail-section { padding: 14px 0; border-top: 1px solid var(--line); }
.detail-section p { margin: 7px 0 0; color: #c2cec6; font-size: 11px; line-height: 1.55; }
.evidence-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.evidence-row span { padding: 5px 7px; border-radius: 7px; background: rgba(119,201,154,.08); color: var(--green); font-size: 8px; text-transform: uppercase; }
.primary-button { min-height: 42px; padding: 0 16px; border: 1px solid rgba(229,189,103,.42); border-radius: 11px; background: var(--gold); color: #132018; font-size: 11px; font-weight: 800; cursor: pointer; }
.primary-button:hover { filter: brightness(1.05); }
.detail-panel .primary-button { width: 100%; }
.safe-note { margin: 9px 0 0; color: var(--muted); font-size: 9px; text-align: center; }
.compact { min-height: 190px; }

.conversation-layout { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.4fr); min-height: 600px; gap: 14px; }
.conversation-row { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; align-items: center; gap: 11px; width: 100%; min-height: 82px; padding: 13px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.conversation-row:hover, .conversation-row.selected { background: var(--surface-2); }
.channel-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-3); color: var(--green); font-size: 12px; font-weight: 800; }
.conversation-copy { min-width: 0; }
.conversation-copy strong, .conversation-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-copy strong { font-size: 12px; }
.conversation-copy small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.conversation-meta { align-self: stretch; display: flex; flex-direction: column; align-items: end; justify-content: space-between; }
.conversation-meta small { color: var(--muted); font-size: 9px; }
.conversation-meta b { display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 20px; background: var(--gold); color: #132018; font-size: 8px; }
.thread-panel { display: grid; grid-template-rows: auto 1fr auto; }
.thread-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.thread-head h2 { margin: 0; font-size: 15px; }
.thread-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; text-transform: capitalize; }
.service-state { padding: 7px 9px; border-radius: 8px; background: rgba(119,201,154,.1); color: var(--green); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.service-state.humano_assumiu { background: rgba(229,189,103,.12); color: var(--gold); }
.service-state.aguardando_ia { background: rgba(121,184,220,.1); color: var(--blue); }
.thread-body { padding: 24px; background: linear-gradient(rgba(9,19,15,.55), rgba(9,19,15,.25)); }
.day-separator { margin: 0 auto 30px; width: max-content; padding: 5px 8px; border-radius: 8px; background: var(--surface-2); color: var(--muted); font-size: 8px; }
.message { max-width: 70%; padding: 13px 14px; border-radius: 5px 14px 14px 14px; background: var(--surface-3); }
.message p { margin: 0; font-size: 12px; line-height: 1.55; }
.message small { display: block; margin-top: 6px; color: var(--muted); font-size: 8px; text-align: right; }
.system-message { margin: 36px auto; color: var(--muted); font-size: 9px; text-align: center; }
.composer { padding: 14px; border-top: 1px solid var(--line); }
.composer-row { display: flex; gap: 7px; }
.composer textarea { flex: 1; min-height: 44px; padding: 12px; resize: none; border: 1px solid var(--line); border-radius: 11px; background: var(--shell); color: var(--muted); vertical-align: top; }
.composer-row > button { width: 78px; min-height: 44px; border: 0; border-radius: 10px; background: var(--surface-3); color: var(--muted); }
.composer p { margin: 8px 0 0; color: var(--muted); font-size: 8px; }
.takeover-actions { display: flex; gap: 7px; margin-bottom: 10px; }
.secondary-button { min-height: 39px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-2); color: #dce5de; font-size: 10px; font-weight: 700; cursor: pointer; }
.secondary-button:disabled { opacity: .38; cursor: not-allowed; }

.ai-seal { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid rgba(229,189,103,.24); border-radius: 12px; color: var(--gold); }
.ai-seal span, .ai-seal strong { display: block; }
.ai-seal span { color: var(--text); font-size: 11px; }
.ai-seal strong { margin-top: 2px; color: var(--muted); font-size: 8px; font-weight: 500; }
.command-bar { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 11px; margin: -3px 0 18px; padding: 10px 10px 10px 15px; border: 1px solid rgba(229,189,103,.25); border-radius: 14px; background: var(--surface); color: var(--gold); }
.command-bar input { min-height: 39px; border: 0; outline: 0; background: transparent; color: var(--text); }
.command-bar input::placeholder { color: #71847a; }
.command-bar button { min-height: 39px; padding: 0 14px; border: 0; border-radius: 9px; background: var(--gold); color: #132018; font-size: 10px; font-weight: 800; cursor: pointer; }
.command-response { margin: -6px 0 18px; padding: 13px 15px; border-left: 2px solid var(--green); background: rgba(119,201,154,.055); }
.command-response span { color: var(--green); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.command-response p { margin: 6px 0 0; color: #cad5cd; font-size: 11px; line-height: 1.5; }
.rafael-layout { display: grid; grid-template-columns: minmax(0,1fr) 270px; gap: 14px; align-items: start; }
.recommendation-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.recommendation-card { padding: 19px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, var(--surface), #0e2119); }
.recommendation-card h3 { margin: 16px 0 7px; font-size: 15px; }
.recommendation-card > p { min-height: 52px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.recommendation-action { margin-top: 15px; padding: 12px; border-left: 2px solid var(--gold); background: rgba(229,189,103,.055); }
.recommendation-action span, .recommendation-action strong { display: block; }
.recommendation-action span { color: var(--gold); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.recommendation-action strong { margin-top: 6px; font-size: 11px; line-height: 1.45; }
.quality-flag { margin-top: 10px; color: var(--red); font-size: 9px; line-height: 1.4; }
.confidence-box { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.confidence-box > div:first-child { display: flex; justify-content: space-between; align-items: center; }
.confidence-box > div:first-child strong { color: var(--green); font-size: 10px; text-transform: uppercase; }
.confidence-box > p { margin: 7px 0; color: var(--muted); font: 8px ui-monospace, monospace; }
.tag-list { display: flex; flex-wrap: wrap; gap: 4px; }
.tag-list span { padding: 4px 6px; border-radius: 5px; background: var(--surface-2); color: var(--muted); font: 7px ui-monospace, monospace; }
.audit-panel { position: sticky; top: 112px; padding: 20px; }
.audit-panel h3 { margin: 10px 0 15px; font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.audit-panel ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.audit-panel li { position: relative; padding-left: 16px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.audit-panel li::before { content: "✓"; position: absolute; left: 0; color: var(--green); }
.audit-foot { display: flex; align-items: center; gap: 9px; margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); color: #c8d2cb; font-size: 9px; }

.page-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.page-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.page-preview { display: flex; flex-direction: column; justify-content: end; min-height: 170px; padding: 20px; background: radial-gradient(circle at 90% 10%, rgba(229,189,103,.18), transparent 33%), linear-gradient(145deg, #1c4432, #0b1a14); }
.page-preview span { color: var(--gold); font-size: 8px; font-weight: 800; letter-spacing: .2em; }
.page-preview strong { max-width: 180px; margin-top: 7px; font-family: Georgia, serif; font-size: 23px; font-weight: 500; }
.page-copy { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px; }
.page-copy h3 { margin: 7px 0 3px; font-size: 13px; }
.page-copy p { margin: 0; color: var(--muted); font-size: 9px; }
.page-status { color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.page-status.review { color: var(--gold); }
.page-status.draft { color: var(--blue); }
.page-status.approved { color: var(--green); }
.future-roadmap { margin-top: 18px; padding: 18px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); }
.future-roadmap > div { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.future-roadmap > div span { padding: 6px 9px; border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 9px; }
.page-detail { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 14px; padding: 18px; border: 1px solid rgba(229,189,103,.22); border-radius: var(--radius-sm); background: var(--surface); }
.page-detail h3 { margin: 7px 0 5px; font-size: 15px; }
.page-detail p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.page-detail-actions { display: flex; flex: 0 0 auto; gap: 7px; }

/* V0.1 product refinement */
.today-overview { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(480px,1fr); gap: 28px; align-items: end; padding: 4px 0 25px; border-bottom: 1px solid var(--line); }
.today-heading h2 { max-width: 700px; margin: 9px 0; font-family: Georgia, serif; font-size: clamp(27px,3.5vw,42px); font-weight: 500; line-height: 1.12; letter-spacing: -.035em; }
.today-heading p { max-width: 680px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.metric-strip { display: grid; grid-template-columns: .75fr .75fr 1.2fr; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.metric-item { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 82px; padding: 14px; border-right: 1px solid var(--line); }
.metric-item:last-child { border-right: 0; }
.metric-symbol { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 9px; background: rgba(119,201,154,.1); color: var(--green); font-size: 10px; font-weight: 800; }
.metric-item.urgent .metric-symbol { background: rgba(255,140,130,.12); color: var(--red); }
.metric-item strong, .metric-item small { display: block; white-space: nowrap; }
.metric-item strong { overflow: hidden; font-size: 17px; text-overflow: ellipsis; }
.metric-item small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.count-chip.strong { background: rgba(255,140,130,.1); color: var(--red); }
.attention-label { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; color: var(--red); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.attention-label i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.attention-label.ai { color: var(--green); }
.attention-head { margin-top: 25px; }
.ai-head { margin-top: 28px; }
.text-link { flex: 0 0 auto; color: var(--green); font-size: 10px; font-weight: 700; }
.card-facts { display: flex; gap: 18px; margin-top: 13px; color: var(--muted); font-size: 9px; }
.card-facts strong { margin-left: 3px; color: var(--text); font-size: 10px; }
.action-line { align-items: center; justify-content: space-between; gap: 12px; }
.action-line > div { min-width: 0; }
.action-line span, .action-line strong { display: block; }
.action-line span { margin-bottom: 4px; color: var(--gold); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.action-line strong { display: -webkit-box; overflow: hidden; color: #dce5de; font-size: 10px; font-weight: 600; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.action-line button { flex: 0 0 auto; min-height: 36px; padding: 0 11px; border: 1px solid rgba(229,189,103,.3); border-radius: 9px; background: rgba(229,189,103,.08); color: var(--gold); font-size: 9px; font-weight: 750; }
.action-line button b { margin-left: 4px; font-size: 15px; }
.ai-item { flex-basis: 250px; padding: 14px 15px; }
.ai-item p { margin: 5px 0 8px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.ai-item small { display: block; overflow: hidden; color: #c4d0c7; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.ai-item .ai-state { display: inline-block; margin: 0 0 9px; padding: 4px 6px; border-radius: 6px; background: rgba(119,201,154,.1); color: var(--green); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.compact-intro h2 { font-size: clamp(26px,3vw,34px); }
.list-caption { display: flex; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.lead-main small b { color: var(--gold); font-size: 8px; }
.thread-panel { grid-template-rows: auto auto 1fr auto; }
.control-banner { display: flex; align-items: center; gap: 11px; padding: 11px 18px; border-bottom: 1px solid rgba(119,201,154,.15); background: rgba(119,201,154,.06); }
.control-banner.humano_assumiu { border-color: rgba(229,189,103,.18); background: rgba(229,189,103,.07); }
.control-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--green-dark); color: var(--green); font-size: 10px; font-weight: 800; }
.humano_assumiu .control-icon { background: rgba(229,189,103,.16); color: var(--gold); }
.control-banner strong, .control-banner small { display: block; }
.control-banner strong { font-size: 10px; }
.control-banner small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.prompt-chips { display: flex; gap: 7px; margin: -5px 0 13px; overflow-x: auto; }
.prompt-chips button { flex: 0 0 auto; min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--muted); font-size: 9px; cursor: pointer; }
.prompt-chips button:hover { color: var(--text); border-color: var(--line-strong); }
.confidence-box summary { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 9px; cursor: pointer; list-style: none; }
.confidence-box summary::-webkit-details-marker { display: none; }
.confidence-box summary strong { color: var(--green); font-size: 8px; text-transform: uppercase; }
.confidence-box[open] .tag-list { margin-top: 10px; }
.audit-intro { margin: -6px 0 16px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.publishing-flow { display: flex; align-items: center; gap: 9px; margin: -6px 0 18px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 12px; background: rgba(18,36,29,.65); }
.publishing-flow span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; white-space: nowrap; }
.publishing-flow span i { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--line-strong); border-radius: 50%; font-style: normal; font-size: 8px; }
.publishing-flow .done, .publishing-flow .current { color: var(--text); }
.publishing-flow .done i { border-color: var(--green); background: rgba(119,201,154,.12); color: var(--green); }
.publishing-flow .current i { border-color: var(--gold); background: rgba(229,189,103,.12); color: var(--gold); }
.publishing-flow b { flex: 1; height: 1px; background: var(--line); }

/* CRM + Inbox operacional */
.pipeline-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.pipeline-metrics article { padding: 15px 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.pipeline-metrics small, .pipeline-metrics strong { display: block; }
.pipeline-metrics small { color: var(--muted); font-size: 9px; }
.pipeline-metrics strong { margin-top: 7px; font-size: 18px; }
.crm-tabs { display: flex; gap: 5px; margin-bottom: 12px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); width: max-content; }
.crm-tabs button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 750; cursor: pointer; }
.crm-tabs button.active { background: var(--surface-3); color: var(--text); }
.stage-summary { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); gap: 7px; overflow-x: auto; margin: 0 0 10px; padding-bottom: 4px; }
.stage-summary span { padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(18,36,29,.65); }
.stage-summary small, .stage-summary strong, .stage-summary b { display: block; }
.stage-summary small { color: var(--green); font-size: 7px; font-weight: 800; }
.stage-summary strong { margin-top: 6px; font-size: 11px; }
.stage-summary b { margin-top: 3px; color: var(--muted); font-size: 8px; font-weight: 500; }
.kanban { display: grid; grid-template-columns: repeat(7, minmax(236px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; }
.kanban-column { min-height: 330px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(13,27,22,.72); scroll-snap-align: start; }
.kanban-column > header { display: flex; align-items: center; justify-content: space-between; padding: 3px 3px 11px; color: var(--muted); font-size: 9px; font-weight: 800; }
.kanban-column > header b { display: grid; place-items: center; min-width: 20px; height: 20px; border-radius: 20px; background: var(--surface-3); color: var(--text); font-size: 8px; }
.deal-card { width: 100%; margin-bottom: 8px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); text-align: left; cursor: pointer; }
.deal-card:hover { border-color: rgba(229,189,103,.35); }
.deal-card > div { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.deal-card strong { font-size: 11px; line-height: 1.35; }
.deal-card > b { display: block; margin-top: 10px; color: var(--gold); font-size: 13px; }
.deal-card small { display: block; margin-top: 5px; color: var(--muted); font-size: 8px; }
.deal-card p { margin: 11px 0 0; padding-top: 9px; border-top: 1px solid var(--line); color: #c6d1c9; font-size: 9px; line-height: 1.4; }
.score-pill { flex: 0 0 auto; padding: 3px 5px; border-radius: 6px; background: var(--surface-3); color: var(--muted); font-size: 8px; }
.score-pill.high { color: var(--gold); }.score-pill.medium { color: var(--green); }
.column-empty { margin: 25px 0; color: var(--muted); font-size: 9px; text-align: center; }
.mobile-detail { max-width: 440px; margin: 12px 0 0 auto; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 0 0 16px; }
.detail-grid > div { min-width: 0; padding: 9px; border-radius: 8px; background: var(--surface-2); }
.detail-grid dt { color: var(--muted); font-size: 8px; }.detail-grid dd { overflow: hidden; margin: 4px 0 0; font-size: 9px; text-overflow: ellipsis; }
.contact-list { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.contact-head, .contact-row { display: grid; grid-template-columns: 1.4fr 1fr .55fr .8fr; align-items: center; gap: 12px; padding: 12px 15px; }
.contact-head { border-bottom: 1px solid var(--line); color: var(--muted); font-size: 8px; text-transform: uppercase; }
.contact-row { width: 100%; min-height: 68px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.contact-row:hover { background: var(--surface-2); }.contact-row:last-child { border-bottom: 0; }
.contact-row strong, .contact-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-row strong { font-size: 10px; }.contact-row small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.timeline { margin: 12px 0; border-left: 1px solid var(--green-dark); }
.timeline p { position: relative; margin: 0; padding: 0 0 12px 15px; color: var(--muted); font-size: 9px; }
.timeline p::before { content: ""; position: absolute; left: -4px; top: 2px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.linked-deal { display: flex; justify-content: space-between; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--text); font-size: 9px; cursor: pointer; }
.conversation-copy em { display: block; margin-top: 3px; color: var(--green); font-size: 7px; font-style: normal; text-transform: uppercase; }
.thread-body { overflow-y: auto; max-height: 520px; }
.message { margin-bottom: 10px; }.message.outbound { margin-left: auto; border-radius: 14px 5px 14px 14px; background: var(--green-dark); }
.message b { display: block; margin-bottom: 5px; color: var(--green); font-size: 8px; }.message.outbound b { color: var(--gold); }
.composer form { margin: 0; }.composer textarea:not(:disabled) { color: var(--text); border-color: rgba(229,189,103,.35); }
.composer-row > button:not(:disabled) { background: var(--gold); color: #132018; font-weight: 800; cursor: pointer; }
.contact-360 { grid-column: 1 / -1; overflow: hidden; margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.contact-360 > header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; padding: 17px; border-bottom: 1px solid var(--line); }
.contact-360 > header .contact-avatar { margin: 0; }.contact-360 h2 { margin: 4px 0; font-size: 18px; }.contact-360 header p { margin: 0; color: var(--muted); font-size: 9px; }
.contact-360 > nav { display: flex; gap: 4px; overflow-x: auto; padding: 7px 10px; border-bottom: 1px solid var(--line); }
.contact-360 > nav button { flex: 0 0 auto; min-height: 35px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 9px; text-transform: capitalize; cursor: pointer; }
.contact-360 > nav button.active { background: var(--surface-3); color: var(--text); }
.contact-360-body { padding: 16px; }.contact-360-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: 0; }
.contact-360-grid > div { min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 9px; }.contact-360-grid dt, .attribution dt { color: var(--muted); font-size: 8px; }.contact-360-grid dd, .attribution dd { overflow: hidden; margin: 5px 0 0; font-size: 10px; text-overflow: ellipsis; }
.attribution { margin-top: 14px; padding: 14px; border: 1px dashed var(--line-strong); border-radius: 11px; }.attribution h3 { margin: 0 0 11px; font-size: 12px; }.attribution dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; }.attribution p, .empty-inline { margin: 12px 0 0; color: var(--muted); font-size: 8px; }
.timeline.rich { display: grid; gap: 0; margin: 0; }.timeline.rich article { position: relative; padding: 0 0 18px 18px; }.timeline.rich article::before { content: ""; position: absolute; left: -4px; top: 3px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }.timeline.rich b { font-size: 9px; }.timeline.rich p { margin: 4px 0; padding: 0; }.timeline.rich p::before { display: none; }.timeline.rich small { color: var(--muted); font-size: 8px; }
.thread-context { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }.thread-context span { padding: 4px 6px; border-radius: 5px; background: var(--surface-2); color: var(--muted); font-size: 7px; }
.takeover-actions { flex-wrap: wrap; }.takeover-actions .secondary-button { flex: 1 0 auto; }
.service-state.solicitou_humano, .service-state.aguardando_humano { background: rgba(255,140,130,.12); color: var(--red); }.service-state.humano_atendendo { background: rgba(229,189,103,.12); color: var(--gold); }.service-state.aguardando_cliente { background: rgba(121,184,220,.1); color: var(--blue); }
.operation-priorities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }.operation-priorities article { padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }.operation-priorities small, .operation-priorities strong { display: block; }.operation-priorities small { color: var(--muted); font-size: 9px; }.operation-priorities strong { margin-top: 7px; font-size: 23px; }.operation-priorities .warning { border-color: rgba(229,189,103,.3); }.operation-priorities .danger { border-color: rgba(255,140,130,.25); }
.operation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.ops-panel { overflow: hidden; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }.ops-panel.wide { grid-column: 1 / -1; }.ops-panel h3 { margin: 0 0 12px; font-size: 13px; }.ops-panel h3:not(:first-child) { margin-top: 20px; }.ops-row { display: flex; justify-content: space-between; align-items: center; min-height: 38px; border-top: 1px solid var(--line); font-size: 9px; }.ops-row span { display: flex; align-items: center; gap: 7px; }.ops-row i, .automation-strip i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }.ops-row b { color: var(--green); font-size: 8px; }.staff-row, .movement { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; width: 100%; min-height: 43px; padding: 0; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }.staff-row span, .movement span { font-size: 10px; }.staff-row strong, .movement small { color: var(--muted); font-size: 8px; font-weight: 500; }.staff-row b, .movement b { color: var(--green); font-size: 8px; }.architecture-note { color: var(--muted); font-size: 8px; line-height: 1.5; }.automation-strip { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }.automation-strip span { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 7px; background: var(--surface-2); color: var(--muted); font-size: 8px; }.automation-strip .error { color: var(--red); }.automation-strip .error i { background: var(--red); }

@media (max-width: 980px) {
  .pipeline-metrics { grid-template-columns: repeat(2, 1fr); }
  .attention-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-row { grid-template-columns: 1fr; }
  .metric-stack { grid-template-columns: repeat(3, 1fr); }
  .metric-card.wide { grid-column: auto; }
  .content-with-detail, .rafael-layout { grid-template-columns: 1fr; }
  .detail-panel, .audit-panel { position: static; }
  .page-grid { grid-template-columns: repeat(2, 1fr); }
  .today-overview { grid-template-columns: 1fr; }
  .contact-360-grid, .attribution dl { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .real-crm-context > div { grid-template-columns: repeat(2,minmax(0,1fr)); }
  :root { --radius: 16px; }
  .sidebar { display: none; }
  .workspace { margin-left: 0; }
  .topbar { min-height: 72px; padding: 14px 18px; }
  .topbar .eyebrow { display: none; }
  .topbar h1 { margin: 0; font-size: 23px; }
  .read-only-pill { display: none; }
  #main-content { padding: 20px 16px 98px; }
  .mobile-nav { position: fixed; inset: auto 10px 10px; z-index: 30; display: grid; grid-template-columns: repeat(6, 1fr); min-height: 65px; padding: 6px; border: 1px solid var(--line-strong); border-radius: 18px; background: rgba(13,27,22,.96); box-shadow: 0 16px 44px rgba(0,0,0,.45); backdrop-filter: blur(18px); }
  .mobile-nav .nav-item { flex-direction: column; justify-content: center; gap: 3px; min-height: 52px; padding: 4px; font-size: 9px; }
  .mobile-nav .nav-item.active { box-shadow: none; background: var(--surface-3); }
  .mobile-nav .nav-icon { font-size: 16px; }
  .mobile-nav .nav-badge { position: absolute; margin: -24px 0 0 20px; }
  .brief-card { min-height: 0; padding: 22px; }
  .brief-card::after { display: none; }
  .brief-card h2 { font-size: 28px; }
  .metric-stack { grid-template-columns: 1fr 1fr; }
  .metric-card.wide { grid-column: 1 / -1; }
  .attention-grid { grid-template-columns: 1fr; }
  .attention-card { padding: 17px; }
  .section-head { margin-top: 26px; }
  .toast { right: 14px; bottom: 88px; left: 14px; max-width: none; }
  .module-intro { align-items: start; }
  .module-total, .module-intro > .read-only-pill { display: none; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .crm-tabs { width: 100%; overflow-x: auto; }.crm-tabs button { flex: 1 0 auto; min-height: 42px; }
  .pipeline-metrics { gap: 7px; }.pipeline-metrics article { padding: 12px; }.pipeline-metrics strong { font-size: 15px; }
  .stage-summary { margin-inline: -16px; padding-inline: 16px; }
  .kanban { margin-inline: -16px; padding-inline: 16px; grid-template-columns: repeat(7, minmax(82vw, 1fr)); }
  .kanban-column { min-height: 260px; }
  .mobile-detail { max-width: none; }
  .contact-head { display: none; }.contact-row { grid-template-columns: 1.35fr .65fr; min-height: 78px; }.contact-row > span:nth-child(2), .contact-row > span:nth-child(3) { display: none; }
  .filter-row { margin-inline: -2px; }
  .shadow-banner { align-items: flex-start; flex-direction: column; gap: 4px; }
  .inbox-toolbar { align-items: stretch; flex-direction: column; }
  .shadow-metrics { grid-template-columns: repeat(3, 1fr); }
  .content-with-detail { display: block; }
  .lead-row { grid-template-columns: 40px minmax(0,1fr) 18px; gap: 10px; padding-inline: 12px; }
  .lead-value { display: none; }
  .detail-panel { margin-top: 12px; }
  .conversation-layout { display: block; min-height: 0; }
  .conversation-list { margin-bottom: 12px; }
  .conversation-row:not(.selected) { min-height: 72px; }
  .thread-panel { min-height: 470px; }
  .thread-body { max-height: 54vh; padding: 16px; }
  .composer { position: sticky; bottom: 0; background: var(--surface); }.composer-row > button { min-width: 82px; min-height: 48px; }.composer textarea { min-height: 48px; }
  .contact-360 { margin-inline: -1px; }.contact-360-body { padding: 12px; }.contact-360-grid, .attribution dl { grid-template-columns: 1fr 1fr; }.contact-360 > header { grid-template-columns: auto 1fr auto; }.contact-360 > header p { overflow: hidden; max-width: 190px; text-overflow: ellipsis; white-space: nowrap; }
  .operation-priorities { grid-template-columns: 1fr 1fr; gap: 7px; }.operation-priorities article { padding: 12px; }.operation-grid { grid-template-columns: 1fr; }.ops-panel.wide { grid-column: auto; }.staff-row, .movement { min-height: 48px; }.movement { grid-template-columns: 1fr auto; }.movement small { grid-column: 1 / -1; }.takeover-actions .secondary-button { min-height: 44px; }
  .thread-head { align-items: start; flex-direction: column; }
  .message { max-width: 88%; }
  .rafael-layout { display: block; }
  .recommendation-list { grid-template-columns: 1fr; }
  .audit-panel { margin-top: 14px; }
  .page-grid { grid-template-columns: 1fr; }
  .page-preview { min-height: 140px; }
  .command-bar { grid-template-columns: auto 1fr; }
  .command-bar button { grid-column: 1 / -1; }
  .page-detail { align-items: stretch; flex-direction: column; }
  .page-detail-actions .secondary-button { flex: 1; }
  .today-overview { gap: 18px; padding-top: 0; }
  .today-heading h2 { font-size: 27px; }
  .today-heading p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .metric-strip { grid-template-columns: 1fr 1fr; }
  .metric-item { min-height: 68px; padding: 11px; }
  .metric-item.pipeline { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .metric-item:nth-child(2) { border-right: 0; }
  .metric-item strong { font-size: 15px; }
  .section-head p { display: none; }
  .attention-grid { gap: 10px; }
  .attention-card .reason { min-height: 0; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .action-line button { min-height: 42px; }
  .publishing-flow { overflow-x: auto; }
  .publishing-flow b { min-width: 22px; }
}

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