/* Shared school CRM presentation; operational layouts remain in phase6.css. */
:root {
  --crm-ink: #26343c;
  --crm-muted: #66747d;
  --crm-line: #e1e6ea;
  --crm-canvas: #f5f7f9;
  --crm-accent: var(--panel-button, #087c59);
  --text: var(--crm-ink);
  --text-soft: var(--crm-muted);
  --border: var(--crm-line);
  --sidebar-current-width: 15.5rem;
  --header-height: 5rem;
  --control-height: 2.25rem;
  --font-md: 0.875rem;
}

body { background: var(--crm-canvas); color: var(--crm-ink); letter-spacing: 0; }
.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; }
button, .button, input, select, textarea { font-family: inherit; }
button, .button { font-size: 0.8125rem; font-weight: 600; border-radius: 6px; }
button svg, .button svg, .crm-icon { width: 18px; height: 18px; flex: 0 0 18px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #227eb0; outline-offset: 3px;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="color"]), select, textarea {
  border: 1px solid #cfd7dd; border-radius: 5px; color: var(--crm-ink); background: #fff;
}
input::placeholder, textarea::placeholder { color: #7a8790; opacity: 1; }
.small-button { border: 1px solid #cfd7dd; background: #fff; color: #42545f; }
.small-button:hover { border-color: #9eb2bf; background: #f3f6f8; color: #223f4d; }
.danger-button { background: #fff3f2; border: 1px solid #edcecb; color: #a52e27; }
.danger-button:hover { background: #fde7e4; color: #8c201b; }
.sidebar { background: #fff; border-right: 1px solid var(--crm-line); box-shadow: none; padding: 18px 12px 10px; gap: 14px; }
.school-brand { display: flex; align-items: center; gap: 10px; padding: 0 6px 17px; border-bottom: 1px solid var(--crm-line); text-align: left; flex: 0 0 auto; }
.school-logo { width: 45px; height: 49px; max-height: 49px; flex: 0 0 45px; object-fit: contain; border-radius: 0; background: #fff; }
.school-brand-copy { min-width: 0; }
.school-brand h1 { margin: 0; font-size: 15px; line-height: 1.3; font-weight: 700; color: #253d35; }
.school-brand p { margin-top: 4px; font-size: 10px; line-height: 1.45; color: var(--crm-muted); }
.nav { gap: 16px; padding: 0 1px; }
.nav-group { display: flex; flex-direction: column; gap: 3px; flex: 0 0 auto; }
.nav-group:not(:has(.nav-item:not(.hidden):not(.hidden-by-config):not([hidden]))) { display: none; }
.nav-group-title { margin: 0 9px 5px; color: #87929a; font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: 0; }
.nav-item, .nav-item.active, .logout {
  display: flex; align-items: center; height: 35px !important; min-height: 35px !important; max-height: 35px !important;
  flex: 0 0 35px !important; gap: 10px; padding: 7px 9px !important; border: 0; border-radius: 5px;
  color: #5a6972; font-size: 12px; font-weight: 500; background: transparent; box-shadow: none;
}
.nav-item:hover { background: #f0f4f6; color: #243b46; }
.nav-item.active { background: #eaf5ef; color: var(--crm-accent); font-weight: 650; box-shadow: inset 3px 0 0 var(--crm-accent); }
.nav-icon, .nav-item.active .nav-icon { display: grid; place-items: center; width: 18px; min-width: 18px; height: 18px; color: inherit; background: transparent; border: 0; box-shadow: none; }
.nav-icon svg { width: 18px; height: 18px; }
.nav-label { line-height: 1.35; }
.nav-pending-badge, .nav-conversation-badge { min-width: 19px; height: 19px; font-size: 10px; font-weight: 650; border-radius: 4px; background: #eef1f4; color: #55636e; border: 0; box-shadow: none; }
.nav-conversation-badge-human { color: #28659e; background: #e9f1fa; }
.nav-conversation-badge-bot { color: #25805e; background: #e6f3ec; }
.sidebar-auto-service { margin: 0; border: 0; border-top: 1px solid var(--crm-line); border-radius: 0; background: transparent; padding: 13px 6px 4px; color: var(--crm-ink); box-shadow: none; }
.automatic-service-heading { color: #53666d; font-size: 10px; font-weight: 600; }
.automatic-service-robot { display: flex; align-items: center; }
.automatic-service-robot svg { width: 16px; height: 16px; }
.automatic-service-state { margin-top: 6px; color: #287a57; font-size: 12px; }
.automatic-service-toggle, .automatic-service-toggle:hover { color: var(--crm-muted); background: transparent; border-color: transparent; font-size: 11px; }
.automatic-service-state-icon { background: #e8f5ec; color: #218758; }
.logout { margin: 0; color: #77848c; border-top: 1px solid var(--crm-line); border-radius: 0; }
.logout:hover { background: #fff4f2; color: #a43d32; }

.content, .content:has(#view-conversas:not(.hidden)) { padding: 0; background: var(--crm-canvas); }
.topbar, .content:has(#view-conversas:not(.hidden)) > .topbar {
  display: flex; align-items: center; min-height: 82px; padding: 15px 26px; margin: 0; gap: 12px;
  border: 0; border-bottom: 1px solid var(--crm-line); background: #fff; box-shadow: none;
}
.topbar-copy { flex: 1; }
.topbar .title-icon { display: none; }
.crm-context { display: block; margin-bottom: 4px; color: #859099; font-size: 10px; line-height: 1.4; }
.topbar h2 { font-size: 20px; line-height: 1.25; font-weight: 650; color: #243a44; }
.topbar #subtitulo-view { margin-top: 4px; color: var(--crm-muted); font-size: 11px; }
.crm-user { display: flex; align-items: center; gap: 10px; max-width: 240px; padding-left: 20px; border-left: 1px solid var(--crm-line); }
.crm-user > div { min-width: 0; }
.crm-user-avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; background: #eaf0f5; color: #4a6677; font-weight: 700; font-size: 12px; }
.topbar .welcome-user { margin: 0; color: var(--crm-ink); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
#crm-user-role { display: block; margin-top: 3px; color: #7d8a91; font-size: 10px; }
.view { padding: 22px 26px; }
.global-status-alert, .automatic-service-alert { margin: 12px 26px 0; border-radius: 4px; }
.global-status-alert.status-ok { display: none; }
.content:has(#view-conversas:not(.hidden)) > .global-status-alert:not(.status-ok) { display: flex; }
.sidebar-toggle { color: #566976; background: #fff; border: 1px solid var(--crm-line); }

.crm-overview-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.crm-date { color: var(--crm-muted); font-size: 12px; margin: 0; }
.crm-date::first-letter { text-transform: uppercase; }
.crm-overview-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.crm-overview-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.stats { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px; }
.stat { position: relative; display: flex; align-items: flex-start; min-height: 132px; padding: 17px 16px; border: 1px solid var(--crm-line); border-radius: 6px; background: #fff; box-shadow: none; }
.stat > div:not(.stat-icon) { flex: 1; }
.stat span { display: block; padding-right: 20px; min-height: 30px; color: #61737d; font-size: 11px; line-height: 1.45; font-weight: 500; }
.stat strong { margin-top: 9px; color: #243c47; font-size: 29px; font-weight: 650; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat small { display: block; margin-top: 9px; color: #88939b; font-size: 10px; }
.stat-icon { position: absolute; right: 12px; top: 14px; width: 24px; height: 24px; border: 0; border-radius: 5px; color: #2777ac; background: #edf4fb; }
.stat-icon svg { width: 15px; height: 15px; }
.stat-amber .stat-icon { color: #aa761e; background: #fcf3df; }
.stat-green .stat-icon { color: #247b59; background: #eaf5ef; }
.stat-rose .stat-icon { color: #a65777; background: #f8edf1; }
.stat-connection .stat-icon { color: #4d7880; background: #eef5f5; }
.stat-connection strong { margin-top: 14px; font-size: 14px; line-height: 1.8; text-transform: capitalize; color: var(--crm-accent); }
.crm-overview-grid { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 28px; margin-bottom: 26px; }
.crm-recent, .crm-overview-aside { min-width: 0; }
.crm-overview-aside { padding-left: 25px; border-left: 1px solid var(--crm-line); }
.crm-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; min-height: 34px; }
.crm-section-heading h3 { margin: 0; font-size: 14px; color: #30454f; font-weight: 650; line-height: 1.4; }
.crm-section-heading p { margin-top: 4px; color: #859199; font-size: 11px; }
.crm-section-heading > svg { width: 17px; height: 17px; color: #7c8a91; }
.crm-segments { display: inline-flex; flex: 0 0 auto; padding: 3px; gap: 2px; border: 1px solid var(--crm-line); border-radius: 5px; background: #eef1f4; }
.crm-segments button { min-height: 26px; padding: 4px 9px; border: 1px solid transparent; border-radius: 3px; background: transparent; color: #78858e; font-size: 11px; }
.crm-segments button.active { background: #fff; border-color: #dce3e8; color: #34515f; box-shadow: 0 1px 2px #1b354309; }
.crm-recent-list { min-height: 310px; }
.crm-table-scroll { width: 100%; overflow-x: auto; border: 1px solid var(--crm-line); border-radius: 6px; background: #fff; }
.crm-recent-table { table-layout: auto; min-width: 570px; width: 100%; }
.crm-recent-table th { padding: 10px 12px; font-size: 10px; background: #f0f3f5; color: #697b85; }
.crm-recent-table td { padding: 13px 12px; color: #64757e; font-size: 11px; border-bottom: 1px solid #edf0f2; max-width: 230px; }
.crm-recent-table tbody tr:last-child td { border-bottom: 0; }
.crm-recent-table td:last-child, .crm-recent-table th:last-child { position: static; min-width: 0; width: 42px; box-shadow: none; }
.crm-recent-table td strong, .crm-recent-table td small { display: block; }
.crm-recent-table td strong { font-size: 12px; font-weight: 600; color: #3a515c; line-height: 1.45; }
.crm-recent-table td small { margin-top: 4px; font-size: 10px; color: #8a959c; }
.crm-type { display: inline-flex; align-items: center; gap: 6px; color: #4d728a; white-space: nowrap; font-size: 10px; }
.crm-type svg { width: 14px; height: 14px; }
.crm-open-record { display: grid; place-items: center; width: 28px; min-width: 28px; height: 28px; min-height: 28px; padding: 0; border: 1px solid #e1e8ec; border-radius: 4px; background: #fff; color: #7e909a; }
.crm-open-record:hover { color: var(--crm-accent); background: #edf6f2; }
.crm-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 280px; padding: 24px; border-top: 1px solid var(--crm-line); text-align: center; color: #80909a; }
.crm-empty svg { width: 30px; height: 30px; margin-bottom: 12px; color: #94aba3; }
.crm-empty strong { font-weight: 600; font-size: 13px; color: #52696f; }
.crm-empty p { margin-top: 5px; font-size: 12px; }
.crm-queue-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 14px; align-items: center; gap: 8px; width: 100%; min-height: 57px; padding: 10px 0; background: transparent; border: 0; border-bottom: 1px solid var(--crm-line); border-radius: 0; text-align: left; color: #61757e; }
.crm-queue-row:hover { background: #edf3f4; color: #285a4a; }
.crm-queue-row > svg:first-child { padding: 6px; box-sizing: content-box; width: 16px; height: 16px; border-radius: 5px; color: #508777; background: #eaf3ef; }
.crm-queue-row > span { font-size: 11px; font-weight: 500; }
.crm-queue-row strong { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; color: #3b555e; }
.crm-queue-row > svg:last-child { width: 13px; height: 13px; color: #a4b0b6; }
.crm-channel { margin-top: 27px; }
.crm-channel-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.crm-channel-metrics > div { display: grid; grid-template-columns: 20px 1fr; align-items: center; gap: 6px; }
.crm-channel-metrics svg { width: 16px; height: 16px; color: #44799a; }
.crm-channel-metrics > div:last-child svg { color: #35876a; }
.crm-channel-metrics strong { font-size: 23px; font-weight: 600; color: #38525e; }
.crm-channel-metrics span { grid-column: 1 / -1; color: #7b8c94; font-size: 10px; }
.crm-text-button { display: inline-flex; align-items: center; gap: 6px; margin-top: 17px; min-height: 28px; padding: 0; border: 0; background: transparent; color: #3a7c65; font-size: 11px; }
.crm-text-button:hover { background: transparent; color: #165a40; text-decoration: underline; }
.crm-text-button svg { width: 14px; height: 14px; }
.home-status-card { display: flex; flex-direction: row; align-items: center; gap: 13px; margin: 0; padding: 15px 0; border: 0; border-top: 1px solid var(--crm-line); border-bottom: 1px solid var(--crm-line); border-radius: 0; background: transparent; text-align: left; }
.home-status-card > svg { width: 24px; height: 24px; flex: 0 0 24px; color: #51907b; }
.home-status-card > div { flex: 1; min-width: 0; }
.home-status-card span { color: #86959c; font-size: 10px; }
.home-status-card strong { display: inline-block; margin-left: 8px; font-size: 11px; color: #43745e; }
.home-status-card p { margin-top: 4px; font-size: 10px; color: #809099; }
.crm-sync-status { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; color: #8c989f; font-size: 10px; }
.footer-note { padding: 0; margin: 22px 0 0; text-align: left; color: #a1aab1; font-size: 10px; }

.panel-card, .table-wrap, .conversation-kpi { box-shadow: none; border-color: var(--crm-line); border-radius: 6px; }
.view > .panel-card, .settings-card, .admin-panel, .message-panel, .user-status-panel, .student-base-import {
  border: 0; border-radius: 0; border-bottom: 1px solid var(--crm-line); background: transparent; box-shadow: none;
}
.settings-card, .admin-panel, .user-status-panel, .student-base-import { padding: 18px 0; }
.settings-card, .editor { align-content: start; }
.settings-card > button { min-height: 36px; height: auto; align-self: start; }
.settings-grid, .admin-panels, .admin-grid { gap: 24px; }
.panel-card h3, .editor h3, .settings-card h3, .admin-panel h3 { color: #304a55; font-size: 15px; font-weight: 650; }
.actions, .attendance-toolbar, .documents-toolbar { margin-bottom: 18px; gap: 10px; }
.actions { flex-wrap: wrap; }
.actions > input[type="search"] { min-width: min(260px, 100%); }
.table-wrap { border: 1px solid var(--crm-line); background: #fff; }
th { background: #f1f4f6; color: #687b86; font-size: 11px; font-weight: 600; text-transform: none; letter-spacing: 0; }
td { font-size: 12px; color: #4c616c; border-color: #edf0f2; }
tbody tr:hover td { background-color: #f6faf8; }
td:last-child { background-color: #fff; }
.badge { padding: 4px 7px; border-radius: 4px; font-size: 10px; font-weight: 600; line-height: 1.25; box-shadow: none; }
.badge-pendente { color: #976b1e; background: #fbf2dc; }
.badge-concluido { color: #317c5a; background: #e8f5ec; }
.badge-andamento { color: #3373a4; background: #eaf2fb; }
.badge-erro { color: #a53b37; background: #fbeceb; }
.badge-neutro { color: #75858f; background: #eff2f5; }
.justifications-dashboard { border: 0; border-radius: 0; border-bottom: 1px solid var(--crm-line); padding: 0 0 22px; margin-bottom: 22px; background: transparent; box-shadow: none; }
.justifications-dashboard-header h3 { font-size: 16px; color: #355260; }
.justifications-dashboard-kicker { color: #81929b; font-size: 10px; letter-spacing: 0; }
.justifications-dashboard-metric { background: transparent; border: 0; border-right: 1px solid var(--crm-line); border-radius: 0; padding: 8px 16px; }
.justifications-dashboard-metric:last-child { border: 0; }
.justifications-dashboard-metric strong { font-size: 26px; color: #3c5865; }
.justifications-chart-shell { background: transparent; border: 0; border-radius: 0; }
.justifications-phone-chart { max-height: 220px; }
.attendance-overview { background: transparent; border: 0; border-bottom: 1px solid var(--crm-line); border-radius: 0; padding-bottom: 12px; }
.attendance-metric { background: transparent; }
.attendance-toolbar { border: 0; border-radius: 0; background: transparent; padding: 4px 0; }
.attendance-record { border-color: var(--crm-line); border-radius: 6px; box-shadow: none; background: #fff; }
.attendance-record-actions { background: #f8fafb; }
.attendance-segments { border-radius: 5px; border-color: var(--crm-line); }
.attendance-segments button { color: #697c86; background: #fff; }
.attendance-segments button.active { color: #247553; background: #eaf5ef; }
.message-item { border-color: var(--crm-line); border-radius: 4px; background: #fff; }
.message-item.active { border-color: #c3ded2; background: #eaf5ef; color: #247553; }
.editor label, .settings-card label, .permission-grid label { color: #586f79; }
.modal-card { border: 1px solid var(--crm-line); border-radius: 8px; box-shadow: 0 20px 70px #152f4326; }
.modal-header, .modal-actions { background: #f8fafb; border-color: var(--crm-line); }
.modal-header h3, .modal-header h2 { font-size: 17px; color: #324e5b; }
.empty-state { color: #7b8b94; box-shadow: none; }

#view-conversas:not(.hidden) { padding: 15px 20px; gap: 8px; }
#view-conversas .conversation-operational-bar { border: 0; border-radius: 0; padding: 0 0 9px; border-bottom: 1px solid var(--crm-line); background: transparent; box-shadow: none; }
#view-conversas .conversation-shell { gap: 0; border: 1px solid var(--crm-line); border-radius: 6px; background: #fff; }
#view-conversas .conversation-list { border: 0; border-right: 1px solid var(--crm-line); border-radius: 0; background: #fff; }
#view-conversas .chat-panel { border: 0; border-radius: 0; box-shadow: none; }
#view-conversas .conversation-item { border-radius: 0; border: 0; border-bottom: 1px solid #edf1f4; background: #fff; }
#view-conversas .conversation-item.active { background: #eef6f2; box-shadow: inset 3px 0 0 var(--crm-accent); }
#view-conversas .chat-messages { background-image: none; background-color: var(--chat-bg, #f4f7f6); }
#view-conversas .chat-form { background: #fff; border-top: 1px solid var(--crm-line); }
#view-conversas .chat-composer-main .chat-attach-button,
#view-conversas .chat-composer-main .chat-record-button { display: grid; place-items: center; width: 40px; min-width: 40px; max-width: 40px; height: 40px; min-height: 40px; align-self: end; padding: 0; }
#view-conversas .chat-composer-main #conversa-enviar { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 85px; max-width: 160px; height: 40px; min-height: 40px; align-self: end; }
#transferir-conversa { display: inline-flex; align-items: center; gap: 5px; }
#transferir-conversa svg, #conversa-atendimento-icone svg { width: 16px; height: 16px; }
.settings-preview .preview-header { font-size: 14px; line-height: 1.4; }
#view-conversas .conversation-box-tab.active { color: var(--crm-accent); border-bottom-color: var(--crm-accent); background: transparent; }
.login { background: #f4f6f8; background-image: none; }
.login-box { padding: 32px; border: 1px solid var(--crm-line); border-radius: 8px; background: #fff; box-shadow: 0 8px 32px #16304408; }
.login-logo { width: 80px; height: 88px; max-height: 88px; object-fit: contain; border-radius: 0; }
.login-copy h1 { color: #29483d; font-size: 22px; }
.login-copy p { color: #7b8b92; font-size: 12px; }
.login-help { display: none; }
.login label { color: #536874; font-size: 12px; }
.login form { margin-top: 24px; }
.login button { min-height: 40px; }

@media (max-width: 1250px) {
  :root { --sidebar-current-width: 14.5rem; }
  .topbar, .content:has(#view-conversas:not(.hidden)) > .topbar { padding-inline: 20px; }
  .view { padding: 20px; }
  .stats { gap: 8px; }
  .stat { padding: 14px 11px; }
  .stat small { font-size: 9px; }
  .crm-overview-grid { grid-template-columns: minmax(0, 1fr) 225px; gap: 20px; }
  .crm-overview-aside { padding-left: 20px; }
  .crm-section-heading { align-items: flex-start; flex-wrap: wrap; }
}
@media (max-width: 1050px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat { min-height: 115px; }
  .crm-overview-grid { grid-template-columns: minmax(0, 1fr); }
  .crm-overview-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--crm-line); }
  .crm-channel { margin-top: 0; }
  .crm-user { max-width: 190px; padding-left: 12px; }
}
@media (max-width: 840px) {
  .sidebar { padding: 18px 12px 10px; }
  .topbar, .content:has(#view-conversas:not(.hidden)) > .topbar { position: sticky; top: 0; min-height: 74px; padding: 12px 16px; gap: 10px; margin: 0; background: #fff; }
  .topbar h2 { font-size: 18px; }
  .topbar #subtitulo-view { display: none; }
  .content:has(#view-conversas:not(.hidden)) > .topbar .topbar-copy { display: block; }
  .crm-user { border-left: 0; padding-left: 0; }
  .crm-user > div { display: none; }
  .content, .content:has(#view-conversas:not(.hidden)) { padding: 0; }
  .view { padding: 18px 16px; }
  .nav-item, .nav-item.active, .logout { height: 40px !important; min-height: 40px !important; max-height: 40px !important; flex-basis: 40px !important; font-size: 13px; }
  .global-status-alert, .automatic-service-alert { margin: 12px 16px 0; }
  #view-conversas:not(.hidden) { padding: 12px; }
  #view-conversas .conversation-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; height: auto; }
  #view-conversas .conversation-actions input { grid-column: 1 / -1; width: 100%; height: 40px; min-height: 40px; max-height: 40px; min-width: 0; flex: 0 0 auto; }
  #view-conversas .conversation-actions > button,
  #view-conversas .conversation-actions > a,
  #view-conversas .conversation-tools > summary { display: flex; align-items: center; justify-content: center; min-width: 0; width: 100%; min-height: 36px; padding: 6px; font-size: 10px; }
}
@media (max-width: 560px) {
  .crm-overview-toolbar { align-items: stretch; gap: 12px; margin-bottom: 16px; }
  .crm-overview-actions { width: 100%; }
  .crm-overview-actions button { flex: 1; min-height: 40px; padding: 8px; font-size: 11px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 24px; }
  .stat { padding: 13px 11px; min-height: 119px; }
  .stat strong { font-size: 25px; }
  .stat-connection { grid-column: 1 / -1; min-height: 65px; }
  .stat-connection > div:not(.stat-icon) { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  .stat-connection span { min-height: 0; padding-right: 0; }
  .stat-connection strong { margin: 0; font-size: 13px; }
  .stat-connection small { display: none; }
  .crm-overview-aside { grid-template-columns: minmax(0, 1fr); }
  .crm-section-heading h3 { font-size: 13px; }
  .crm-recent-table { min-width: 520px; }
  .crm-recent-table td { padding: 12px 10px; }
  .crm-queue-row { min-height: 54px; }
  .crm-open-record { width: 34px; height: 34px; min-height: 34px; }
  .crm-segments button { min-height: 32px; }
  .home-status-card { flex-wrap: wrap; }
  .home-status-card strong { display: block; margin: 4px 0 0; }
  .home-status-card > button { margin-left: 37px; }
  .justifications-actions > *, .actions > input[type="search"] { width: 100%; min-width: 0; }
  .login-box { padding: 25px; }
}
/* Reserve space for the chosen contact immediately, without flashing the previous history. */
.conversation-loading { display: grid; gap: 14px; padding: 12px 0; color: #6b7280; font-size: 12px; }
.conversation-loading i { display: block; width: 62%; height: 54px; border-radius: 12px; background: #e8eeeb; }
.conversation-loading i:nth-of-type(2) { justify-self: end; width: 48%; background: #e2ece7; }
.conversation-loading i:nth-of-type(3) { width: 38%; height: 38px; }
