:root {
  --ink: #18221f;
  --muted: #697672;
  --line: #e5eae7;
  --surface: #ffffff;
  --canvas: #f5f7f6;
  --brand: #173f35;
  --brand-2: #246653;
  --accent: #d5a94e;
  --soft-green: #e9f4ef;
  --shadow: 0 14px 40px rgba(25, 50, 43, .07);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100vh; background: var(--canvas); color: var(--ink); font-family: "DM Sans", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.app-nav { height: 72px; padding: 0 clamp(20px, 4vw, 56px); display: flex; align-items: center; justify-content: space-between; background: var(--brand); color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--brand); background: var(--accent); font: 800 21px/1 "Manrope"; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1.15; }
.brand strong { font: 800 17px/1.2 "Manrope"; letter-spacing: -.02em; }
.brand small { margin-top: 3px; color: rgba(255,255,255,.58); font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }
.nav-user { display: flex; align-items: center; gap: 10px; }
.presence-dot { width: 8px; height: 8px; border-radius: 50%; background: #62d6a5; box-shadow: 0 0 0 4px rgba(98,214,165,.12); }
.user-copy { display: flex; flex-direction: column; margin-right: 12px; text-align: right; line-height: 1.15; }
.user-copy strong { font-size: 13px; font-weight: 600; }
.user-copy small { color: rgba(255,255,255,.55); font-size: 11px; }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; color: rgba(255,255,255,.8); background: transparent; transition: .2s ease; }
.icon-button:hover { color: #fff; background: rgba(255,255,255,.09); }
.icon-button svg { width: 19px; }

.app-shell { width: 100%; min-height: calc(100vh - 72px); padding: 30px clamp(20px, 4vw, 56px) 46px; }
.page-heading { max-width: 1440px; margin: 0 auto 24px; display: flex; justify-content: space-between; align-items: end; }
.eyebrow { color: var(--brand-2); font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.page-heading h1 { margin: 3px 0 2px; font: 800 clamp(25px, 3vw, 34px)/1.2 "Manrope"; letter-spacing: -.04em; }
.page-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.sync-indicator { display: flex; align-items: center; gap: 8px; padding: 7px 11px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; }
.sync-indicator span { width: 7px; height: 7px; background: #45ad7d; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(69,173,125,.15); } }

.toast-stack { position: fixed; top: 86px; right: 24px; z-index: 1000; width: min(380px, calc(100vw - 32px)); }
.toast-stack .alert { border: 0; border-radius: 12px; font-size: 13px; }
.inbox-layout { max-width: 1440px; min-height: 640px; margin: auto; display: grid; grid-template-columns: minmax(460px, .9fr) minmax(420px, 1.1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.conversation-panel { padding: 20px 0 0; border-right: 1px solid var(--line); min-width: 0; }
.metric-grid { padding: 0 20px 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.metric-card { min-width: 0; padding: 13px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); text-decoration: none; transition: transform .15s, border-color .15s, box-shadow .15s; }
.metric-card:hover, .metric-card.active { transform: translateY(-1px); border-color: #a9c3b9; box-shadow: 0 6px 16px rgba(23,63,53,.07); }
.metric-card > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.metric-card small { overflow: hidden; color: var(--muted); font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.metric-card strong { font: 800 21px/1.1 "Manrope"; }
.metric-icon { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; }
.metric-icon svg { width: 17px; }
.metric-waiting .metric-icon { color: #926c18; background: #fff5d9; }
.metric-human .metric-icon { color: #247555; background: #e5f5ed; }
.metric-bot .metric-icon { color: #5e6681; background: #eef0f7; }

.filter-bar { padding: 15px 20px; display: grid; grid-template-columns: 1fr 154px auto; gap: 8px; background: #fafbfa; border-block: 1px solid var(--line); }
.search-field { height: 40px; display: flex; align-items: center; gap: 9px; padding: 0 12px; background: #fff; border: 1px solid #dce2df; border-radius: 10px; transition: border-color .2s, box-shadow .2s; }
.search-field:focus-within { border-color: #79a696; box-shadow: 0 0 0 3px rgba(36,102,83,.09); }
.search-field svg { width: 17px; color: #8b9692; }
.search-field input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.search-field input::placeholder { color: #9ba4a1; }
.status-select, .filter-button, .transfer-form select, .stage-form select { height: 40px; border: 1px solid #dce2df; border-radius: 10px; background: #fff; color: #4f5d58; font-size: 12px; outline: 0; }
.status-select { padding: 0 10px; }
.filter-button { padding: 0 15px; color: #fff; background: var(--brand); border-color: var(--brand); font-weight: 600; }
.filter-button:hover { background: #0f3028; }
.conversation-list-wrap { height: 474px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #cdd7d2 transparent; }
.conversation-list { min-height: 100%; }
.conversation-item { position: relative; min-height: 92px; padding: 16px 42px 16px 20px; display: flex; align-items: flex-start; gap: 13px; color: inherit; border-bottom: 1px solid #edf0ee; text-decoration: none; transition: background .15s; }
.conversation-item:hover { background: #f6faf8; }
.conversation-item:hover .item-chevron { transform: translateX(2px); color: var(--brand-2); }
.contact-avatar { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(145deg, #2d705e, #173f35); font: 700 16px/1 "Manrope"; box-shadow: 0 3px 8px rgba(23,63,53,.16); }
.conversation-copy { flex: 1; min-width: 0; }
.conversation-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.conversation-line strong { overflow: hidden; font-size: 13px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.conversation-line time { flex: 0 0 auto; color: #96a09c; font-size: 10px; }
.conversation-meta { margin-top: 5px; color: var(--muted); font-size: 11px; }
.conversation-meta > span:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.status-group { flex: 0 0 auto; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 600; white-space: nowrap; }
.status-pill i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-waiting { color: #865f0c; background: #fff3ce; }
.status-human { color: #196c4c; background: #e2f4eb; }
.status-bot { color: #535e7d; background: #eceff8; }
.status-closed { color: #68736f; background: #edf0ef; }
.assigned-agent { display: block; margin-top: 4px; color: #89938f; font-size: 10px; }
.item-chevron { position: absolute; top: 36px; right: 17px; width: 15px; color: #bdc5c2; transition: .15s; }
.empty-list, .thread-empty { min-height: 300px; display: flex; align-items: center; justify-content: center; flex-direction: column; color: var(--muted); text-align: center; }
.empty-list svg, .thread-empty svg { width: 35px; margin-bottom: 12px; color: #9eaaa5; }
.empty-list strong, .thread-empty strong { color: var(--ink); font-size: 13px; }
.empty-list span, .thread-empty span { margin-top: 3px; font-size: 11px; }

.empty-conversation { position: relative; display: flex; align-items: center; justify-content: center; flex-direction: column; overflow: hidden; padding: 50px; background: radial-gradient(circle at 50% 42%, #f2f8f5 0, #fbfcfb 47%, #f8faf9 100%); text-align: center; }
.empty-conversation::before { content: ""; position: absolute; width: 430px; height: 430px; border: 1px solid rgba(35,100,82,.07); border-radius: 50%; }
.empty-conversation h2 { z-index: 1; margin: 24px 0 8px; font: 800 20px/1.3 "Manrope"; letter-spacing: -.025em; }
.empty-conversation p { z-index: 1; max-width: 360px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.empty-illustration { position: relative; z-index: 1; width: 90px; height: 90px; display: grid; place-items: center; border-radius: 27px; color: #fff; background: var(--brand); transform: rotate(-3deg); box-shadow: 0 20px 35px rgba(23,63,53,.2); }
.empty-illustration svg { width: 44px; }
.bubble-one, .bubble-two { position: absolute; border-radius: 50%; background: var(--accent); }
.bubble-one { width: 16px; height: 16px; top: -6px; right: -7px; }
.bubble-two { width: 8px; height: 8px; bottom: 6px; left: -13px; background: #74b89d; }
.shortcut-hint { z-index: 1; margin-top: 26px; padding: 7px 11px; color: #82908b; border: 1px solid #e2e9e5; border-radius: 999px; font-size: 10px; background: rgba(255,255,255,.7); }

.detail-topbar { max-width: 1500px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: space-between; }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: #56635e; text-decoration: none; font-size: 13px; font-weight: 600; }
.back-link:hover { color: var(--brand-2); }
.back-link svg { width: 17px; }
.detail-status { display: flex; gap: 7px; }
.window-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 600; }
.window-badge svg { width: 13px; }
.window-open { color: #196c4c; background: #e2f4eb; }
.window-closed { color: #a65044; background: #fce9e6; }
.detail-layout { max-width: 1500px; height: calc(100vh - 142px); min-height: 650px; margin: auto; display: grid; grid-template-columns: minmax(500px, 1fr) 340px; gap: 14px; }
.chat-card, .context-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(25,50,43,.045); }
.chat-card { min-width: 0; display: grid; grid-template-rows: 74px 1fr auto; overflow: hidden; }
.chat-header { padding: 0 20px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.contact-avatar-lg { width: 44px; height: 44px; border-radius: 14px; }
.chat-contact { min-width: 0; margin-left: 12px; }
.chat-contact h1 { overflow: hidden; margin: 0; font: 700 15px/1.3 "Manrope"; white-space: nowrap; text-overflow: ellipsis; }
.chat-contact span { color: var(--muted); font-size: 11px; }
.agent-chip { margin-left: auto; padding: 6px 9px; display: flex; align-items: center; gap: 6px; color: #5c6864; border: 1px solid var(--line); border-radius: 999px; font-size: 10px; }
.agent-chip span { width: 6px; height: 6px; border-radius: 50%; background: #44aa7c; }
.thread { min-height: 0; padding: 24px; display: flex; flex-direction: column; gap: 9px; overflow-y: auto; background-color: #f4f7f5; background-image: radial-gradient(#d7e0dc 0.65px, transparent 0.65px); background-size: 14px 14px; scrollbar-width: thin; }
.message-row { display: flex; }
.message-row-out { justify-content: flex-end; }
.message-bubble { max-width: min(74%, 620px); padding: 10px 12px 7px; border-radius: 14px; box-shadow: 0 2px 5px rgba(30,52,46,.07); font-size: 13px; line-height: 1.48; }
.message-in { background: #fff; border: 1px solid #e1e7e4; border-bottom-left-radius: 4px; }
.message-out { color: #173f35; background: #dff2e8; border: 1px solid #cce8dc; border-bottom-right-radius: 4px; }
.message-template { background: #f0ebfb; border: 1px solid #ded4f3; }
.message-failed { background: #fff0ee; border: 1px solid #f0d1cc; }
.message-label { display: block; margin-bottom: 3px; color: #71629a; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.message-text p { margin: 0; }
.message-details { margin-top: 4px; display: flex; justify-content: flex-end; gap: 5px; color: #84908c; font-size: 9px; }
.message-details > * + *::before { content: "·"; margin-right: 5px; }
.message-error { margin-top: 5px; color: #ad4f43; font-size: 10px; }
.thread-empty { min-height: 100%; }
.composer { padding: 13px 16px 10px; background: #fff; border-top: 1px solid var(--line); }
.message-form { display: flex; gap: 8px; }
.message-input-wrap { flex: 1; }
.message-input-wrap input { width: 100%; height: 44px; padding: 0 14px; border: 1px solid #dce2df; border-radius: 12px; outline: 0; font-size: 13px; transition: .2s; }
.message-input-wrap input:focus { border-color: #79a696; box-shadow: 0 0 0 3px rgba(36,102,83,.08); }
.send-button { width: 44px; height: 44px; display: grid; place-items: center; color: #fff; background: var(--brand); border: 0; border-radius: 12px; transition: .2s; }
.send-button:hover { background: var(--brand-2); transform: translateY(-1px); }
.send-button svg { width: 19px; }
.template-sender { margin-top: 7px; }
.template-sender summary { width: max-content; color: var(--brand-2); cursor: pointer; font-size: 10px; font-weight: 600; list-style: none; }
.template-sender summary::before { content: "+"; margin-right: 5px; }
.template-sender[open] summary::before { content: "−"; }
.template-sender form { margin-top: 8px; display: grid; grid-template-columns: 1fr 90px auto; gap: 7px; }
.template-sender input, .template-sender button { height: 36px; padding: 0 10px; border: 1px solid #dce2df; border-radius: 9px; background: #fff; font-size: 11px; }
.template-sender button { color: #fff; background: var(--brand); border-color: var(--brand); }
.window-notice, .locked-composer { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: #7c5d20; background: #fff7e4; border: 1px solid #f2dfb5; border-radius: 11px; font-size: 11px; }
.window-notice svg, .locked-composer svg { width: 20px; flex: 0 0 auto; }
.window-notice span { display: flex; flex-direction: column; }
.locked-composer { color: #65716d; background: #f5f7f6; border-color: var(--line); }

.context-sidebar { min-height: 0; padding-right: 2px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; scrollbar-width: thin; }
.context-card { padding: 16px; box-shadow: none; }
.context-title { margin-bottom: 13px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.context-title span { font: 700 12px/1.3 "Manrope"; }
.context-title small { color: #9aa39f; font-size: 9px; }
.action-grid { display: grid; grid-template-columns: 1fr; gap: 7px; }
.action-grid form { margin: 0; }
.action-grid button { width: 100%; min-height: 38px; padding: 0 11px; display: flex; align-items: center; gap: 8px; color: #4c5955; background: #fff; border: 1px solid #dfe5e2; border-radius: 9px; font-size: 11px; font-weight: 600; transition: .15s; }
.action-grid button:hover { background: #f6f9f7; border-color: #b9c9c3; }
.action-grid button svg { width: 15px; }
.action-grid .action-primary { color: #fff; background: var(--brand); border-color: var(--brand); }
.action-grid .action-primary:hover { background: var(--brand-2); }
.action-grid .action-danger { color: #a45146; }
.transfer-form, .stage-form { margin-top: 13px; padding-top: 13px; border-top: 1px solid #edf0ee; }
.transfer-form label, .stage-form label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; }
.transfer-form > div, .stage-form > div { display: flex; gap: 6px; }
.transfer-form select, .stage-form select { min-width: 0; flex: 1; height: 36px; padding: 0 7px; font-size: 10px; }
.transfer-form button, .stage-form button, .note-form button { padding: 0 10px; color: var(--brand); background: var(--soft-green); border: 0; border-radius: 9px; font-size: 10px; font-weight: 700; }
.contact-data, .lead-data { margin: 0; }
.contact-data > div { padding: 8px 0; display: grid; grid-template-columns: 93px 1fr; gap: 8px; border-bottom: 1px solid #f0f2f1; }
.contact-data > div:last-child { border: 0; padding-bottom: 0; }
.contact-data dt, .lead-data dt { color: #8b9692; font-size: 10px; font-weight: 500; }
.contact-data dd, .lead-data dd { overflow-wrap: anywhere; margin: 0; color: #3f4a46; font-size: 11px; font-weight: 600; }
.optin-badge { padding: 3px 6px; color: #237252; background: #e8f5ef; border-radius: 6px; font-size: 9px; }
.lead-value { margin-bottom: 12px; padding: 12px; display: flex; flex-direction: column; background: #f4f8f6; border-radius: 10px; }
.lead-value small { color: var(--muted); font-size: 9px; }
.lead-value strong { margin-top: 2px; color: var(--brand); font: 800 18px/1.2 "Manrope"; }
.lead-data { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.lead-data > div { display: flex; flex-direction: column; gap: 2px; }
.notes-list { max-height: 150px; overflow-y: auto; }
.notes-list article { margin-bottom: 7px; padding: 9px 10px; background: #fff9e9; border-left: 2px solid #dcb75e; border-radius: 4px 8px 8px 4px; }
.notes-list article p { margin: 0 0 3px; color: #4e504a; font-size: 10px; line-height: 1.4; }
.notes-list article small { color: #98958b; font-size: 8px; }
.notes-empty { padding: 10px; color: #939d99; background: #f7f9f8; border-radius: 8px; font-size: 10px; text-align: center; }
.note-form { margin-top: 9px; display: flex; flex-direction: column; gap: 6px; }
.note-form textarea { width: 100%; padding: 8px 9px; resize: vertical; outline: 0; border: 1px solid #dfe5e2; border-radius: 9px; font-size: 10px; }
.note-form textarea:focus { border-color: #79a696; }
.note-form button { align-self: flex-end; min-height: 31px; }

.login-page { background: #f5f7f6; }
.login-page .app-shell { min-height: 100vh; padding: 0; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, .9fr) minmax(480px, 1.1fr); }
.login-brand-panel { position: relative; min-height: 100vh; padding: 44px clamp(36px, 5vw, 76px); display: flex; flex-direction: column; overflow: hidden; color: #fff; background: var(--brand); }
.login-brand-panel::before { content: ""; position: absolute; right: -180px; bottom: -230px; width: 600px; height: 600px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 150px rgba(255,255,255,.018); }
.login-message { position: relative; z-index: 1; margin: auto 0; max-width: 540px; }
.login-message .eyebrow { color: #d7bd7b; }
.login-message h1 { margin: 12px 0 18px; font: 800 clamp(34px, 4.2vw, 57px)/1.08 "Manrope"; letter-spacing: -.055em; }
.login-message p { max-width: 450px; margin: 0; color: rgba(255,255,255,.65); font-size: 15px; line-height: 1.7; }
.login-decor { position: absolute; right: 12%; bottom: 15%; }
.login-decor span { position: absolute; display: block; border-radius: 50%; background: var(--accent); }
.login-decor span:nth-child(1) { width: 18px; height: 18px; }
.login-decor span:nth-child(2) { width: 8px; height: 8px; top: 38px; left: 40px; background: #75b89e; }
.login-decor span:nth-child(3) { width: 5px; height: 5px; top: -42px; left: 70px; background: rgba(255,255,255,.6); }
.login-form-panel { padding: 40px; display: grid; place-items: center; }
.login-form-card { width: min(100%, 400px); }
.mobile-logo { display: none; }
.login-form-card h2 { margin: 8px 0 5px; font: 800 30px/1.25 "Manrope"; letter-spacing: -.04em; }
.login-form-card > p { margin: 0 0 30px; color: var(--muted); font-size: 13px; }
.login-form-card form { display: flex; flex-direction: column; gap: 17px; }
.login-form-card label { color: #48534f; font-size: 11px; font-weight: 600; }
.login-form-card input { width: 100%; height: 48px; margin-top: 7px; padding: 0 14px; color: var(--ink); background: #fff; border: 1px solid #dce2df; border-radius: 11px; outline: 0; font-size: 13px; transition: .2s; }
.login-form-card input:focus { border-color: #6f9f8e; box-shadow: 0 0 0 4px rgba(36,102,83,.08); }
.login-form-card input::placeholder { color: #a2aaa7; }
.login-button { height: 49px; margin-top: 5px; padding: 0 17px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #fff; background: var(--brand); border: 0; border-radius: 11px; font-size: 13px; font-weight: 700; transition: .2s; }
.login-button:hover { background: var(--brand-2); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(23,63,53,.15); }
.login-button svg { width: 17px; }
.login-help { display: block; margin-top: 25px; color: #929c98; font-size: 10px; text-align: center; }
.form-error { margin-bottom: 18px; padding: 10px 12px; color: #974b42; background: #fff0ee; border: 1px solid #f0d4d0; border-radius: 9px; font-size: 11px; }

@media (max-width: 1050px) {
  .inbox-layout { grid-template-columns: minmax(420px, 1fr) .75fr; }
  .empty-conversation { padding: 30px; }
  .detail-layout { grid-template-columns: minmax(450px, 1fr) 310px; }
  .login-brand-panel { padding-inline: 40px; }
}

@media (max-width: 820px) {
  .app-shell { padding: 22px 16px 32px; }
  .inbox-layout { min-height: 0; grid-template-columns: 1fr; }
  .conversation-panel { border: 0; }
  .conversation-list-wrap { height: auto; max-height: 60vh; }
  .empty-conversation { display: none; }
  .detail-layout { height: auto; min-height: 0; grid-template-columns: 1fr; }
  .chat-card { min-height: 70vh; }
  .context-sidebar { overflow: visible; }
  .detail-topbar { align-items: flex-start; }
  .login-shell { display: block; }
  .login-brand-panel { display: none; }
  .login-form-panel { min-height: 100vh; padding: 30px 22px; }
  .mobile-logo { margin-bottom: 55px; display: flex; align-items: center; gap: 9px; color: var(--brand); font: 800 16px "Manrope"; }
  .mobile-logo i { width: 32px; height: 32px; display: grid; place-items: center; color: var(--brand); background: var(--accent); border-radius: 9px; font-style: normal; }
}

@media (max-width: 560px) {
  .app-nav { height: 64px; padding: 0 15px; }
  .app-shell { min-height: calc(100vh - 64px); padding: 18px 12px 25px; }
  .brand small, .user-copy { display: none; }
  .presence-dot { margin-right: 2px; }
  .page-heading { margin-bottom: 17px; align-items: flex-start; }
  .page-heading p { max-width: 260px; }
  .sync-indicator { width: 9px; height: 9px; margin-top: 11px; padding: 0; border: 0; background: transparent; font-size: 0; }
  .sync-indicator span { width: 8px; height: 8px; }
  .inbox-layout { border-radius: 15px; }
  .metric-grid { padding: 12px; gap: 6px; }
  .metric-card { padding: 10px 7px; gap: 7px; }
  .metric-icon { width: 29px; height: 29px; }
  .metric-card small { font-size: 8px; }
  .metric-card strong { font-size: 17px; }
  .filter-bar { padding: 11px 12px; grid-template-columns: 1fr 118px; }
  .filter-button { display: none; }
  .conversation-item { padding-inline: 13px 34px; }
  .item-chevron { right: 11px; }
  .detail-status { flex-direction: column; align-items: flex-end; }
  .detail-layout { gap: 10px; }
  .chat-card { min-height: calc(100vh - 145px); border-radius: 14px; }
  .chat-header { padding: 0 13px; }
  .agent-chip { display: none; }
  .thread { padding: 16px 12px; }
  .message-bubble { max-width: 86%; }
  .template-sender form { grid-template-columns: 1fr 76px; }
  .template-sender form button { grid-column: 1 / -1; }
  .context-card { border-radius: 14px; }
}

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

/* Navegação entre seções (Conversas / Cadastros) */
.nav-links { display: flex; gap: 1.25rem; margin-left: 1.5rem; flex: 1; }
.nav-links a { color: rgba(255,255,255,.75); text-decoration: none; font-weight: 600; font-size: .92rem; padding: .35rem 0; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: #fff; border-bottom-color: rgba(255,255,255,.5); }
