:root {
    --bg: #f4f6f8;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --text: #172033;
    --muted: #6b7280;
    --line: #e5e7eb;
    --primary: #172033;
    --accent: #ff6b35;
    --accent-dark: #e95a28;
    --success: #16845b;
    --danger: #c83e4d;
    --warning: #a66800;
    --shadow: 0 14px 40px rgba(23, 32, 51, .08);
    --radius: 18px;
}

.avito-progress{height:7px;margin:8px 0;border-radius:999px;overflow:hidden;background:#dfe6ef}.avito-progress>i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2f6fed,#25a273);transition:width .25s ease}
* { box-sizing: border-box; }
html { min-height: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
    background: var(--surface);
}
.login-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 54px 64px;
    color: #fff;
    background:
        radial-gradient(circle at 20% 18%, rgba(255,107,53,.34), transparent 28%),
        radial-gradient(circle at 85% 82%, rgba(67,99,216,.28), transparent 30%),
        #172033;
}
.login-hero::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    right: -190px;
    top: 80px;
    box-shadow: 0 0 0 90px rgba(255,255,255,.025), 0 0 0 180px rgba(255,255,255,.018);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .02em; }
.brand-mark {
    width: 38px; height: 38px; border-radius: 12px;
    display: grid; place-items: center;
    color: #fff; background: var(--accent); font-weight: 900;
    box-shadow: 0 8px 22px rgba(255,107,53,.28);
}
.login-hero-copy { position: relative; z-index: 1; max-width: 620px; }
.login-hero h1 { margin: 0 0 18px; font-size: clamp(42px, 5vw, 72px); line-height: .98; letter-spacing: -.045em; }
.login-hero p { max-width: 560px; margin: 0; color: rgba(255,255,255,.68); font-size: 18px; line-height: 1.65; }
.login-hero-foot { color: rgba(255,255,255,.42); font-size: 13px; }
.login-form-wrap { display: grid; place-items: center; padding: 48px; }
.login-card { width: min(100%, 430px); }
.login-card h2 { margin: 0 0 8px; font-size: 32px; letter-spacing: -.025em; }
.login-card > p { margin: 0 0 32px; color: var(--muted); line-height: 1.55; }

.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: #364152; }
.input, .select, .textarea {
    width: 100%; border: 1px solid var(--line); border-radius: 12px; outline: 0;
    background: var(--surface); color: var(--text); transition: .18s ease;
}
.input, .select { height: 46px; padding: 0 13px; }
.textarea { min-height: 110px; padding: 12px 13px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: #98a2b3; box-shadow: 0 0 0 3px rgba(23,32,51,.06); }
.checkbox { display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: 14px; }
.error-box, .flash-success {
    padding: 11px 13px; border-radius: 10px; margin-bottom: 18px; font-size: 14px; line-height: 1.45;
}
.error-box { background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3; }
.flash-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.btn {
    min-height: 42px; padding: 0 16px; border: 0; border-radius: 11px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--primary); color: #fff; font-weight: 700; font-size: 14px;
    transition: .18s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(23,32,51,.14); }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { background: #fff; color: var(--text); border: 1px solid var(--line); }
.btn-soft { background: #eef2f6; color: var(--text); }
.btn-danger { background: #fff1f2; color: #be123c; }
.btn-block { width: 100%; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.sidebar {
    position: sticky; top: 0; height: 100vh; padding: 24px 18px;
    background: #172033; color: #fff; display: flex; flex-direction: column;
    overflow: hidden;
}
.sidebar .brand { padding: 4px 8px 24px; flex: 0 0 auto; }
.nav { display: grid; gap: 5px; }
.sidebar .nav {
    flex: 1 1 auto;
    min-height: 0;
    align-content: start;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.24) transparent;
}
.sidebar .nav::-webkit-scrollbar { width: 6px; }
.sidebar .nav::-webkit-scrollbar-track { background: transparent; }
.sidebar .nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.20); border-radius: 999px; }
.sidebar .nav::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.34); }
.nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 11px; color: rgba(255,255,255,.64); font-size: 14px; font-weight: 650; }
.nav a:hover, .nav a.active { background: rgba(255,255,255,.08); color: #fff; }
.nav a.has-menu-color { color:var(--menu-item-color); border-left:3px solid var(--menu-item-color); padding-left:9px; }
.nav a.has-menu-color:hover, .nav a.has-menu-color.active { color:var(--menu-item-color); background:rgba(255,255,255,.1); }
.nav-icon { width: 20px; text-align: center; opacity: .9; }
.sidebar-footer { margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); flex: 0 0 auto; }
.user-mini { display: flex; align-items: center; gap: 10px; padding: 8px; }
.avatar {
    flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
    background: #e9edf4; color: #253047; font-size: 13px; font-weight: 800; text-transform: uppercase;
}
.sidebar .avatar { background: rgba(255,255,255,.12); color: #fff; }
.user-mini strong { display: block; font-size: 13px; }
.user-mini span { display: block; color: rgba(255,255,255,.48); font-size: 11px; margin-top: 3px; }
.logout-btn { width: 100%; margin-top: 7px; background: transparent; color: rgba(255,255,255,.6); border: 0; text-align: left; padding: 9px 8px; font-size: 13px; }
.logout-btn:hover { color: #fff; }

.main { min-width: 0; }
.topbar {
    height: 72px; padding: 0 30px; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px);
}
.topbar-title { font-size: 15px; font-weight: 750; }
.topbar-meta { color: var(--muted); font-size: 13px; }
.content { padding: 28px 30px 46px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-head h1 { margin: 0 0 5px; font-size: 28px; letter-spacing: -.025em; }
.page-head p { margin: 0; color: var(--muted); font-size: 14px; }
.search { position: relative; width: min(440px, 100%); }
.search .input { padding-left: 39px; background: #fff; }
.search-icon { position: absolute; left: 14px; top: 12px; color: #98a2b3; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(23,32,51,.02); }
.contacts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.contact-tile { padding: 18px; transition: .2s ease; }
.contact-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d7dce3; }
.contact-top { display: flex; gap: 12px; align-items: center; }
.contact-tile .avatar { width: 44px; height: 44px; background: #edf1f6; }
.contact-name { min-width: 0; font-weight: 800; line-height: 1.3; }
.contact-company { color: var(--muted); font-size: 12px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contact-lines { margin: 17px 0 15px; display: grid; gap: 8px; min-height: 46px; }
.contact-line { color: #4b5563; font-size: 13px; display: flex; gap: 8px; align-items: center; overflow: hidden; }
.contact-line span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 5px 8px; background: #f2f4f7; color: #596273; border-radius: 999px; font-size: 11px; font-weight: 750; }
.contact-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; margin-top: 14px; border-top: 1px solid #f0f2f4; color: var(--muted); font-size: 11px; }
.empty { padding: 62px 28px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--text); margin-bottom: 6px; }

.crm-card-grid { display: grid; grid-template-columns: minmax(260px, 320px) minmax(420px, 1fr) minmax(280px, 340px); gap: 18px; align-items: start; }
.panel { overflow: hidden; }
.panel-head { padding: 17px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.panel-body { padding: 18px; }
.profile-block { text-align: center; padding: 24px 18px 19px; border-bottom: 1px solid var(--line); }
.profile-block .avatar { width: 70px; height: 70px; margin: 0 auto 13px; font-size: 20px; background: #edf1f6; }
.profile-block h1 { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.profile-block p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; padding: 14px 14px 0; }
.quick-action {
    height: 56px; border-radius: 12px; display: grid; place-items: center; gap: 2px;
    background: var(--surface-soft); border: 1px solid var(--line); color: #3d4656; font-size: 10px; font-weight: 750;
}
.quick-action b { font-size: 18px; line-height: 1; }
.quick-action.disabled { opacity: .38; pointer-events: none; }
.info-list { display: grid; gap: 16px; }
.info-item label { display: block; color: #98a2b3; text-transform: uppercase; letter-spacing: .06em; font-size: 9px; font-weight: 800; margin-bottom: 5px; }
.info-item div { font-size: 13px; line-height: 1.5; word-break: break-word; }
.info-item a:hover { color: var(--accent); }
.profile-tags { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }

.timeline-wrap { min-height: 680px; }
.timeline-filter { color: var(--muted); font-size: 12px; }
.timeline { padding: 8px 18px 18px; }
.timeline-event { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding: 14px 0; }
.timeline-event:not(:last-child)::before { content: ""; position: absolute; left: 20px; top: 50px; bottom: -10px; width: 1px; background: var(--line); }
.event-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: #f1f4f8; color: #4d596d; font-size: 17px; z-index: 1; }
.event-icon.call { background: #ecfdf5; color: #047857; }
.event-icon.message { background: #eff6ff; color: #1d4ed8; }
.event-icon.email { background: #fff7ed; color: #c2410c; }
.event-icon.task { background: #f5f3ff; color: #6d28d9; }
.event-icon.note { background: #fffbeb; color: #a16207; }
.event-content { min-width: 0; padding-top: 2px; }
.event-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.event-title { font-size: 13px; font-weight: 800; }
.event-time { flex: 0 0 auto; color: #98a2b3; font-size: 10px; }
.event-body { margin-top: 5px; color: #596273; font-size: 13px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.event-meta { margin-top: 7px; color: #98a2b3; font-size: 10px; }

.task-list { display: grid; gap: 10px; }
.task-item { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.task-top { display: flex; align-items: flex-start; gap: 9px; }
.task-check { width: 20px; height: 20px; flex: 0 0 auto; border-radius: 7px; border: 1px solid #cdd3dc; background: #fff; color: transparent; }
.task-check:hover { border-color: var(--success); color: var(--success); }
.task-title { font-size: 12px; line-height: 1.4; font-weight: 750; }
.task-meta { margin-top: 7px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 10px; }
.priority-urgent, .priority-high { color: #be123c; }
.task-form, .note-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.task-form-grid { display: grid; grid-template-columns: 1fr 105px; gap: 8px; }
.task-form .input, .task-form .select { height: 39px; font-size: 12px; }
.task-form .btn { margin-top: 8px; min-height: 38px; width: 100%; }
.note-form .textarea { min-height: 82px; font-size: 12px; }
.note-form .btn { width: 100%; margin-top: 7px; min-height: 38px; }
.deal { padding: 12px 0; border-bottom: 1px solid #f0f2f4; }
.deal:last-child { border-bottom: 0; }
.deal-name { font-size: 12px; font-weight: 750; }
.deal-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; margin-top: 5px; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--success); margin-right: 5px; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; padding-top: 22px; }
.pagination a, .pagination span { min-width: 34px; height: 34px; padding: 0 10px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: #596273; font-size: 12px; }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .disabled { opacity: .42; }

.mobile-nav { display: none; }

@media (max-width: 1180px) {
    .contacts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .crm-card-grid { grid-template-columns: 290px minmax(0, 1fr); }
    .crm-card-grid > :last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
    .crm-card-grid > :last-child .panel-body { min-width: 0; }
}
@media (max-width: 820px) {
    .login-page { grid-template-columns: 1fr; }
    .login-hero { display: none; }
    .login-form-wrap { min-height: 100vh; padding: 28px; }
    .app-shell { display: block; }
    .sidebar { display: none; }
    .mobile-nav { display: flex; align-items: center; gap: 12px; }
    .topbar { padding: 0 18px; }
    .content { padding: 20px 16px 36px; }
    .page-head { align-items: stretch; flex-direction: column; }
    .search { width: 100%; }
    .contacts-grid { grid-template-columns: 1fr; }
    .crm-card-grid { grid-template-columns: 1fr; }
    .crm-card-grid > :last-child { grid-column: auto; display: block; }
}

/* v7 — operational CRUD/navigation */
.head-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; }
.head-actions .search { width:min(410px, 100%); }
.back-link { display:inline-block; color:var(--muted); font-size:12px; margin-bottom:8px; }
.back-link:hover, .text-link:hover { color:var(--accent); }
.text-link { color:#3f4b61; font-size:12px; font-weight:750; }
.link-button { border:0; background:transparent; color:#3f4b61; font-size:12px; font-weight:750; padding:0; }
.link-button:hover { color:var(--accent); }
.muted { color:var(--muted); }
.badge { display:inline-flex; align-items:center; min-height:24px; padding:0 8px; border-radius:999px; background:#f2f4f7; color:#596273; font-size:11px; font-weight:750; white-space:nowrap; }

.form-layout { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; align-items:start; }
.form-layout > .panel:nth-child(1), .form-layout > .panel:nth-child(3), .form-layout > .panel:nth-child(4), .form-layout > .panel:nth-child(5) { grid-column:1 / -1; }
.form-grid-2 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 14px; }
.form-span-2 { grid-column:1 / -1; }
.form-narrow { max-width:960px; }
.form-actions { max-width:960px; margin-top:18px; display:flex; justify-content:flex-end; gap:10px; }
.repeat-grid { display:grid; gap:12px; }
.repeat-row { display:grid; gap:10px; padding:12px; border:1px solid var(--line); border-radius:13px; background:var(--surface-soft); align-items:end; }
.repeat-row .field { margin-bottom:0; }
.repeat-phone { grid-template-columns:minmax(220px,2fr) minmax(130px,1fr) 110px auto; }
.repeat-email { grid-template-columns:minmax(260px,2fr) minmax(140px,1fr) auto; }
.repeat-channel { grid-template-columns:160px minmax(180px,1fr) minmax(180px,1fr) auto; }
.compact-check { min-height:46px; white-space:nowrap; }
.tag-picker { display:flex; flex-wrap:wrap; gap:8px; }
.tag-choice { position:relative; cursor:pointer; }
.tag-choice input { position:absolute; opacity:0; pointer-events:none; }
.tag-choice span { display:inline-flex; align-items:center; min-height:34px; padding:0 12px; border:1px solid var(--line); border-radius:999px; background:#fff; color:#596273; font-size:12px; font-weight:750; }
.tag-choice input:checked + span { border-color:var(--primary); background:var(--primary); color:#fff; }
.danger-zone { margin-top:18px; padding:16px 18px; display:flex; align-items:center; justify-content:space-between; gap:18px; }
.danger-zone strong { display:block; font-size:13px; }
.danger-zone span { display:block; margin-top:4px; color:var(--muted); font-size:11px; }

.table-wrap { overflow-x:auto; }
.data-table { width:100%; border-collapse:collapse; min-width:760px; }
.data-table th { padding:12px 15px; text-align:left; border-bottom:1px solid var(--line); color:#8b95a5; font-size:10px; text-transform:uppercase; letter-spacing:.055em; }
.data-table td { padding:14px 15px; border-bottom:1px solid #eff1f4; font-size:12px; vertical-align:middle; }
.data-table tbody tr:last-child td { border-bottom:0; }
.data-table tbody tr:hover { background:#fafbfc; }
.table-sub { margin-top:4px; color:var(--muted); font-size:10px; line-height:1.35; }
.row-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; white-space:nowrap; }
.row-actions form { display:inline; }
.row-overdue { background:#fff8f8; }

.filter-tabs { display:flex; flex-wrap:wrap; gap:7px; margin:-6px 0 16px; }
.filter-tabs a { min-height:34px; display:inline-flex; align-items:center; padding:0 11px; border-radius:10px; background:#fff; border:1px solid var(--line); color:#667085; font-size:12px; font-weight:700; }
.filter-tabs a.active, .filter-tabs a:hover { background:var(--primary); color:#fff; border-color:var(--primary); }

.kanban { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(265px,1fr); gap:14px; overflow-x:auto; padding-bottom:10px; align-items:stretch; }
.kanban.is-control-panning:not(.is-dragging-deal), .kanban.is-control-panning:not(.is-dragging-deal) a { cursor:ew-resize; }
.kanban-column { min-width:265px; border-radius:15px; background:#eaedf2; padding:10px; display:flex; flex-direction:column; }
.kanban-head { min-height:42px; padding:2px 5px 10px; display:flex; flex:0 0 auto; align-items:center; justify-content:space-between; gap:8px; font-size:12px; }
.kanban-head span { min-width:24px; height:24px; display:grid; place-items:center; border-radius:999px; background:rgba(23,32,51,.08); color:#657084; font-size:10px; font-weight:800; }
.kanban-body { display:grid; flex:1 1 auto; align-content:start; gap:9px; }
.deal-card { padding:13px; border-radius:13px; }
.deal-card > a strong { display:block; font-size:13px; line-height:1.35; }
.deal-card > a:hover strong { color:var(--accent); }
.deal-card-client { margin-top:7px; color:var(--muted); font-size:11px; }
.deal-card-amount { margin-top:12px; font-size:15px; font-weight:850; }
.deal-card-foot { margin-top:9px; padding-top:9px; border-top:1px solid #f0f2f4; display:flex; justify-content:space-between; gap:8px; color:#929bab; font-size:9px; }
.stage-form { margin-top:9px; }
.stage-form .select { height:34px; font-size:11px; }
.kanban-empty { min-height:74px; display:grid; place-items:center; color:#9aa3b1; font-size:11px; border:1px dashed #d2d7df; border-radius:12px; }
.kanban-stage-truncated { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:9px 10px; border:1px dashed #cfd7e5; border-radius:10px; background:rgba(255,255,255,.72); color:#667085; font-size:11px; }
.kanban-stage-truncated a { color:#2563eb; font-weight:700; text-decoration:none; white-space:nowrap; }
.kanban-stage-truncated a:hover { text-decoration:underline; }

.metric-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.metric-grid-4 { grid-template-columns:repeat(4,minmax(0,1fr)); margin-bottom:20px; }
.metric { padding:18px; }
.metric span { display:block; color:var(--muted); font-size:11px; }
.metric strong { display:block; margin-top:8px; font-size:28px; letter-spacing:-.03em; }
.metric small { display:block; margin-top:5px; color:#98a2b3; font-size:10px; }
.detail-grid { display:grid; grid-template-columns:minmax(300px,.8fr) minmax(420px,1.2fr); gap:18px; align-items:start; }
.recording-item { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 0; border-bottom:1px solid var(--line); }
.recording-item:last-child { border-bottom:0; }
.recording-item audio { width:min(420px,100%); }
.compact-empty { padding:28px 12px; }

.conversation-list { overflow:hidden; }
.conversation-row { display:flex; gap:12px; align-items:center; padding:14px 16px; border-bottom:1px solid #eff1f4; }
.conversation-row:last-child { border-bottom:0; }
.conversation-row:hover { background:#fafbfc; }
.channel-icon { width:40px; height:40px; flex:0 0 auto; border-radius:12px; display:grid; place-items:center; background:#eef2f7; color:#566174; font-size:12px; font-weight:850; }
.conversation-main { flex:1; min-width:0; }
.conversation-top, .conversation-bottom { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.conversation-top strong { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:13px; }
.conversation-top time { color:#9aa3b1; font-size:10px; white-space:nowrap; }
.conversation-bottom { margin-top:5px; color:var(--muted); font-size:10px; }
.unread-badge { min-width:21px; height:21px; padding:0 6px; display:grid; place-items:center; border-radius:999px; background:var(--accent); color:#fff; font-size:9px; }
.chat-layout { display:grid; grid-template-columns:minmax(480px,1fr) 290px; gap:18px; align-items:start; }
.chat-thread { min-height:640px; padding:18px; }
.chat-message { display:flex; margin:9px 0; }
.chat-message.outgoing { justify-content:flex-end; }
.chat-bubble { max-width:min(72%,680px); padding:11px 13px; border-radius:15px; background:#eef2f7; }
.chat-message.outgoing .chat-bubble { background:#172033; color:#fff; }
.chat-message.system { justify-content:center; }
.chat-message.system .chat-bubble { max-width:min(86%,760px); background:#edf9e8; border:1px solid #cfe9c4; color:#31552a; }
.chat-message.system .chat-meta { color:#66845e; }
.chat-meta { margin-bottom:6px; color:#8b95a5; font-size:9px; }
.chat-message.outgoing .chat-meta, .chat-message.outgoing .chat-status { color:rgba(255,255,255,.55); }
.chat-text { white-space:pre-wrap; overflow-wrap:anywhere; font-size:13px; line-height:1.5; }
.chat-status { margin-top:6px; color:#98a2b3; text-align:right; font-size:8px; }
.simple-bars { display:grid; gap:9px; }
.bar-row { display:grid; grid-template-columns:50px minmax(0,1fr) 42px; align-items:center; gap:10px; font-size:10px; }
.bar-track { height:8px; border-radius:999px; background:#eef1f5; overflow:hidden; }
.bar-track i { display:block; height:100%; border-radius:inherit; background:#172033; }

@media (max-width:1180px) {
    .form-layout { grid-template-columns:1fr; }
    .form-layout > .panel { grid-column:auto !important; }
    .repeat-phone, .repeat-channel { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .metric-grid, .metric-grid-4 { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .chat-layout { grid-template-columns:1fr; }
}
@media (max-width:820px) {
    .head-actions { justify-content:flex-start; width:100%; }
    .head-actions .search { width:100%; }
    .form-grid-2, .repeat-phone, .repeat-email, .repeat-channel, .detail-grid, .metric-grid, .metric-grid-4 { grid-template-columns:1fr; }
    .form-span-2 { grid-column:auto; }
    .form-actions { position:sticky; bottom:0; padding:10px 0; background:rgba(244,246,248,.94); backdrop-filter:blur(8px); }
    .danger-zone { align-items:flex-start; flex-direction:column; }
    .chat-bubble { max-width:88%; }
}
.flash-info,.flash-warning,.flash-error{padding:12px 14px;border-radius:10px;margin-bottom:14px;font-size:13px}
.flash-info{background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe}
.flash-warning{background:#fffbeb;color:#92400e;border:1px solid #fde68a}
.flash-error{background:#fff1f2;color:#9f1239;border:1px solid #fecdd3}
.audit-json{max-width:520px;overflow:auto;font-size:11px}.audit-json pre{white-space:pre-wrap;word-break:break-word;background:#f8fafc;padding:8px;border-radius:8px}

.app-version {
    margin-top: 10px;
    font-size: 11px;
    line-height: 1.4;
    opacity: .58;
    text-align: center;
    letter-spacing: .02em;
}

.filter-panel { padding: 14px 16px; margin: 0 0 18px; }
.filter-grid { display: grid; grid-template-columns: minmax(220px,2fr) repeat(3,minmax(150px,1fr)) auto; gap: 12px; align-items: end; }
.filter-grid .field { margin: 0; }
.filter-actions { display: flex; align-items: center; gap: 10px; min-height: 42px; }
@media (max-width: 1100px) { .filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .filter-actions { grid-column: 1 / -1; } }
@media (max-width: 640px) { .filter-grid { grid-template-columns: 1fr; } .filter-actions { grid-column: auto; } }

/* v8.2 — administrator user management */
.admin-filter {
    margin-bottom: 16px;
    padding: 16px;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(210px, 280px) auto;
    gap: 14px;
    align-items: end;
}
.admin-filter .field { margin-bottom: 0; }
.admin-filter-actions { display: flex; gap: 8px; }
.user-cell { display: flex; align-items: center; gap: 11px; min-width: 260px; }
.user-cell .avatar { width: 38px; height: 38px; }
.row-muted { opacity: .64; }
.link-danger { color: #be123c; }
.badge-success-soft { background: #ecfdf5; color: #047857; }
.badge-warning-soft { background: #fff7ed; color: #b45309; }
.badge-danger-soft { background: #fff1f2; color: #be123c; }
.role-admin { background: #172033; color: #fff; }
.role-supervisor { background: #eef2ff; color: #4338ca; }
.role-manager { background: #f2f4f7; color: #475467; }
.admin-user-layout { max-width: 1080px; display: grid; gap: 18px; }
.admin-user-layout > .panel { overflow: visible; }
.admin-user-actions { max-width: 1080px; }
.field-help { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.access-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.access-level { padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); }
.access-level-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.access-level-head strong { font-size: 13px; }
.access-level-head span { color: var(--muted); font-size: 10px; }
.access-level p { min-height: 68px; margin: 9px 0 10px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.access-level summary { cursor: pointer; color: #4b5563; font-size: 11px; font-weight: 750; }
.permission-list { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 5px; }
.permission-list span { padding: 4px 7px; border-radius: 8px; background: #fff; border: 1px solid var(--line); color: #667085; font-size: 9px; }
.role-card-admin { border-color: #cbd2dc; }
.role-card-supervisor { border-color: #d9ddff; }
.users-table { min-width: 900px; }
.filter-tabs a span { margin-left: 6px; opacity: .7; }

@media (max-width: 980px) {
    .admin-filter { grid-template-columns: 1fr; }
    .admin-filter-actions { justify-content: flex-start; }
    .access-levels { grid-template-columns: 1fr; }
    .access-level p { min-height: 0; }
}

/* v8.3 — dynamic roles and permissions */
.admin-section-tabs {
    display: flex;
    gap: 6px;
    margin: -2px 0 16px;
    border-bottom: 1px solid var(--line);
}
.admin-section-tabs a {
    display: inline-flex;
    padding: 10px 13px;
    margin-bottom: -1px;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}
.admin-section-tabs a.active {
    color: var(--text);
    border-bottom-color: var(--accent);
}
.roles-table { min-width: 760px; }
.roles-table code {
    padding: 4px 7px;
    border-radius: 7px;
    background: #f4f6f8;
    border: 1px solid var(--line);
    font-size: 11px;
}
.role-editor-layout { max-width: 1120px; display: grid; gap: 18px; }
.permission-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.btn-sm { min-height: 32px; padding: 6px 10px; font-size: 11px; }
.role-protected-note { margin-bottom: 14px; }
.permission-groups { display: grid; gap: 14px; }
.permission-group {
    border: 1px solid var(--line);
    border-radius: 13px;
    overflow: hidden;
    background: var(--surface-soft);
}
.permission-group h3 {
    margin: 0;
    padding: 10px 13px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    font-size: 12px;
}
.permission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
}
.permission-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 11px 13px;
    background: #fff;
    cursor: pointer;
}
.permission-option input { margin-top: 2px; }
.permission-option span { display: grid; gap: 3px; }
.permission-option strong { font-size: 11px; line-height: 1.35; }
.permission-option small { color: var(--muted); font-size: 9px; }
.permission-option:has(input:checked) { background: #f7f8ff; }
.permission-option:has(input:disabled) { cursor: default; }
@media (max-width: 800px) {
    .permission-grid { grid-template-columns: 1fr; }
}

/* v8.4 — dashboard, departments and data-scope UI */
.icon-svg { display:block; flex:0 0 auto; }
.nav-icon { display:grid; place-items:center; }
.panel-caption { display:block; margin-top:4px; color:var(--muted); font-size:10px; font-weight:500; }

.dashboard-hero {
    position:relative;
    overflow:hidden;
    min-height:190px;
    margin-bottom:20px;
    padding:30px 32px;
    border-radius:24px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:28px;
    color:#fff;
    background:
        radial-gradient(circle at 10% 0%, rgba(255,107,53,.42), transparent 30%),
        radial-gradient(circle at 92% 100%, rgba(82,112,255,.28), transparent 34%),
        #172033;
    box-shadow:0 18px 48px rgba(23,32,51,.12);
}
.dashboard-hero::after {
    content:"";
    position:absolute;
    width:300px;
    height:300px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:50%;
    right:17%;
    top:-170px;
    box-shadow:0 0 0 65px rgba(255,255,255,.025),0 0 0 130px rgba(255,255,255,.015);
}
.dashboard-hero > * { position:relative; z-index:1; }
.dashboard-eyebrow { margin-bottom:10px; color:rgba(255,255,255,.58); font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.11em; }
.dashboard-hero h1 { margin:0 0 9px; font-size:34px; letter-spacing:-.035em; }
.dashboard-hero p { margin:0; max-width:650px; color:rgba(255,255,255,.64); font-size:14px; line-height:1.6; }
.dashboard-scope { min-width:250px; padding:17px 18px; border:1px solid rgba(255,255,255,.12); border-radius:16px; background:rgba(255,255,255,.07); backdrop-filter:blur(8px); }
.dashboard-scope span,.dashboard-scope small { display:block; color:rgba(255,255,255,.52); font-size:10px; }
.dashboard-scope strong { display:block; margin:6px 0 5px; font-size:15px; }

.dashboard-modules { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:20px; }
.dashboard-module { min-height:190px; padding:18px; display:flex; flex-direction:column; gap:16px; transition:.2s ease; }
.dashboard-module:hover { transform:translateY(-3px); box-shadow:var(--shadow); border-color:#d6dce5; }
.dashboard-module-icon { width:46px; height:46px; border-radius:14px; display:grid; place-items:center; color:#fff; background:linear-gradient(145deg,#172033,#36415a); box-shadow:0 10px 24px rgba(23,32,51,.16); }
.dashboard-module:nth-child(4n+1) .dashboard-module-icon { background:linear-gradient(145deg,#ff6b35,#f08a42); }
.dashboard-module:nth-child(4n+3) .dashboard-module-icon { background:linear-gradient(145deg,#4f46e5,#6d7df2); }
.dashboard-module-copy { min-width:0; display:flex; flex:1; flex-direction:column; }
.dashboard-module-title { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.dashboard-module-title h2 { margin:0; font-size:16px; letter-spacing:-.015em; }
.dashboard-module-title .icon-svg { color:#98a2b3; transition:.18s ease; }
.dashboard-module:hover .dashboard-module-title .icon-svg { color:var(--accent); transform:translateX(2px); }
.dashboard-module p { margin:8px 0 16px; color:var(--muted); font-size:11px; line-height:1.5; }
.dashboard-module-meta { margin-top:auto; min-height:27px; display:flex; align-items:flex-end; gap:9px; }
.dashboard-module-meta strong { font-size:24px; line-height:1; letter-spacing:-.035em; }
.dashboard-module-meta span { color:#98a2b3; font-size:10px; line-height:1.3; }

.dashboard-bottom-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; align-items:start; }
.dashboard-list { padding:4px 0; }
.dashboard-list-row { min-height:64px; padding:11px 16px; display:flex; align-items:center; gap:12px; border-bottom:1px solid #eff1f4; transition:.15s ease; }
.dashboard-list-row:last-child { border-bottom:0; }
.dashboard-list-row:hover { background:#fafbfc; }
.dashboard-list-icon { width:34px; height:34px; flex:0 0 auto; border-radius:10px; display:grid; place-items:center; background:#f0f3f7; color:#536077; }
.dashboard-list-main { min-width:0; flex:1; }
.dashboard-list-main strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; }
.dashboard-list-main small { display:block; margin-top:4px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); font-size:9px; }
.dashboard-list-row time { flex:0 0 auto; color:#98a2b3; font-size:9px; }
.dashboard-list-row time.is-overdue { color:var(--danger); font-weight:800; }
.dashboard-contact-avatar { width:34px; height:34px; font-size:10px; }

.admin-section-tabs { display:flex; flex-wrap:wrap; gap:7px; margin:-8px 0 18px; }
.admin-section-tabs a { min-height:36px; padding:0 12px; display:inline-flex; align-items:center; border:1px solid var(--line); border-radius:10px; background:#fff; color:#667085; font-size:12px; font-weight:750; }
.admin-section-tabs a:hover,.admin-section-tabs a.active { background:var(--primary); border-color:var(--primary); color:#fff; }
.data-scope-card { margin-bottom:18px; padding:16px 18px; border-radius:14px; background:#f8fafc; border:1px solid var(--line); }
.data-scope-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:12px; }
.data-scope-option { position:relative; }
.data-scope-option input { position:absolute; opacity:0; pointer-events:none; }
.data-scope-option span { min-height:86px; padding:13px; display:block; border:1px solid var(--line); border-radius:12px; background:#fff; transition:.15s ease; }
.data-scope-option strong { display:block; margin-bottom:5px; font-size:12px; }
.data-scope-option small { color:var(--muted); font-size:10px; line-height:1.45; }
.data-scope-option input:checked + span { border-color:#172033; box-shadow:0 0 0 2px rgba(23,32,51,.08); background:#f8fafc; }
.data-scope-option input:disabled + span { opacity:.68; }
.scope-badge { display:inline-flex; align-items:center; min-height:26px; padding:0 9px; border-radius:999px; background:#eef2f7; color:#475467; font-size:10px; font-weight:800; }
.scope-all { background:#eef2ff; color:#4338ca; }
.scope-department { background:#ecfdf5; color:#047857; }
.scope-own { background:#f2f4f7; color:#475467; }
.department-cell { min-width:200px; }
.department-cell strong { display:block; }
.department-members { color:var(--muted); font-size:10px; margin-top:4px; }
.department-head { display:flex; align-items:center; gap:8px; }
.department-head .avatar { width:30px; height:30px; font-size:9px; }

@media (max-width:1320px) {
    .dashboard-modules { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:1050px) {
    .dashboard-modules { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .dashboard-bottom-grid { grid-template-columns:1fr; }
    .dashboard-hero { align-items:flex-start; flex-direction:column; }
    .dashboard-scope { width:100%; }
}
@media (max-width:720px) {
    .dashboard-modules,.data-scope-options { grid-template-columns:1fr; }
    .dashboard-hero { padding:24px; }
    .dashboard-hero h1 { font-size:28px; }
}
.user-filter { grid-template-columns:minmax(240px,1.25fr) minmax(180px,.8fr) minmax(180px,.8fr) auto; }
@media (max-width:1180px) { .user-filter { grid-template-columns:repeat(2,minmax(0,1fr)); } .user-filter .admin-filter-actions { grid-column:1 / -1; } }
@media (max-width:700px) { .user-filter { grid-template-columns:1fr; } .user-filter .admin-filter-actions { grid-column:auto; } }

/* Deals Kanban drag & drop */
.kanban-hint { margin:-4px 0 12px; display:flex; align-items:center; gap:8px; color:#778195; font-size:11px; }
.kanban-hint-icon { width:24px; height:24px; display:grid; place-items:center; border-radius:8px; background:#eef2f7; color:#556176; font-weight:900; }
.deal-card-draggable { position:relative; cursor:grab; user-select:none; transition:opacity .15s ease, transform .15s ease, box-shadow .15s ease; }
.deal-card-draggable:active { cursor:grabbing; }
.deal-card-draggable.is-dragging { opacity:.45; transform:scale(.985); }
.deal-card-draggable.is-saving { opacity:.62; pointer-events:none; }
.deal-drag-handle { position:absolute; top:8px; right:9px; width:24px; height:24px; display:grid; place-items:center; border-radius:7px; color:#a0a8b5; font-size:16px; line-height:1; cursor:grab; }
.deal-drag-handle:hover { background:#f0f2f5; color:#687386; }
.deal-card-draggable > a { padding-right:28px; }
.kanban-body { min-height:92px; border:2px solid transparent; border-radius:12px; transition:background .15s ease, border-color .15s ease; }
.kanban.is-dragging-deal .kanban-body { border-color:#d8dee8; }
.kanban-body.is-drag-over { border-color:var(--accent); background:rgba(59,130,246,.055); }
.kanban-column.is-drag-target { box-shadow:inset 0 0 0 1px rgba(59,130,246,.18); }
.kanban-toast { position:fixed; right:24px; bottom:24px; z-index:1000; max-width:min(430px,calc(100vw - 48px)); padding:12px 15px; border-radius:12px; background:#1f2937; color:#fff; box-shadow:0 16px 42px rgba(15,23,42,.24); font-size:12px; font-weight:700; }
.kanban-toast[data-type="success"] { background:#166534; }
.kanban-toast[data-type="error"] { background:#991b1b; }
.kanban-toast[data-type="info"] { background:#1e40af; }

/* ART CRM v8.5 telephony */
.quick-action-form{margin:0}.quick-action-form .quick-action{width:100%;border:0;cursor:pointer;font:inherit}.click-call-card{padding:16px;margin-bottom:16px}.click-call-form{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.click-call-form .field{min-width:240px;margin:0}.telephony-settings-grid{align-items:start}.copy-field{display:flex;gap:8px}.copy-field .input{flex:1}.help-text{color:#667085;font-size:13px;line-height:1.5;margin:0 0 14px}.info-box{padding:14px;border-radius:10px;background:#f2f4f7;color:#344054}.webhook-contract{margin-top:16px}.webhook-contract pre{white-space:pre-wrap;overflow:auto;padding:14px;border-radius:10px;background:#101828;color:#d1fadf;font-size:12px;line-height:1.5}.webhook-contract small,.field small,.extension-row small{display:block;color:#667085;margin-top:5px}.check-row{display:flex;gap:10px;align-items:flex-start;padding:10px 0}.check-row span{display:flex;flex-direction:column}.extension-list{display:grid;gap:10px}.extension-row{display:grid;grid-template-columns:minmax(180px,1fr) 160px;gap:16px;align-items:center;padding:10px 0;border-bottom:1px solid #eaecf0}.danger-zone{margin-top:18px;padding:16px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}.danger-zone>div{margin-right:auto;display:flex;flex-direction:column}.incoming-call-popup{position:fixed;right:24px;bottom:24px;z-index:10000;width:min(420px,calc(100vw - 32px));background:#fff;border:1px solid #d0d5dd;border-radius:16px;box-shadow:0 24px 60px rgba(16,24,40,.24);padding:18px;display:flex;gap:14px;align-items:flex-start}.incoming-call-popup[hidden]{display:none}.incoming-call-pulse{width:52px;height:52px;display:grid;place-items:center;flex:0 0 52px;border-radius:50%;background:#ecfdf3;color:#039855;font-size:23px;animation:crm-call-pulse 1.4s infinite}.incoming-call-main{display:flex;min-width:0;flex:1;flex-direction:column;gap:4px}.incoming-call-label{font-size:12px;font-weight:700;color:#039855;text-transform:uppercase;letter-spacing:.04em}.incoming-call-main strong{font-size:18px}.incoming-call-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}@keyframes crm-call-pulse{0%,100%{box-shadow:0 0 0 0 rgba(3,152,85,.22)}50%{box-shadow:0 0 0 10px rgba(3,152,85,0)}}@media(max-width:700px){.incoming-call-popup{right:16px;bottom:16px}.extension-row{grid-template-columns:1fr}.click-call-form{display:grid}.copy-field{display:grid}}

/* ART CRM v8.6 realtime */
.topbar-actions{display:flex;align-items:center;gap:10px;margin-left:auto}.realtime-status{height:30px;padding:0 9px;display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:999px;background:#fff;color:#667085;font-size:10px;font-weight:800}.realtime-status-dot{width:7px;height:7px;border-radius:50%;background:#98a2b3;box-shadow:0 0 0 3px rgba(152,162,179,.12)}.realtime-status.is-online .realtime-status-dot{background:#12b76a;box-shadow:0 0 0 3px rgba(18,183,106,.12)}.realtime-status.is-online{color:#067647}.realtime-status.is-polling .realtime-status-dot{background:#f79009;box-shadow:0 0 0 3px rgba(247,144,9,.12)}.realtime-status.is-polling{color:#b54708}.realtime-status.is-offline .realtime-status-dot{background:#f04438}.realtime-status.is-offline{color:#b42318}.realtime-notifications{position:relative}.realtime-bell{position:relative;width:36px;height:36px;padding:0;display:grid;place-items:center;border:1px solid var(--line);border-radius:10px;background:#fff;color:#475467}.realtime-bell:hover{background:#f8fafc}.realtime-badge{position:absolute;right:-5px;top:-5px;min-width:19px;height:19px;padding:0 5px;display:grid;place-items:center;border:2px solid #fff;border-radius:999px;background:#f04438;color:#fff;font-size:9px;font-weight:900}.realtime-panel{position:absolute;right:0;top:44px;z-index:1200;width:min(390px,calc(100vw - 28px));max-height:520px;overflow:hidden;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 22px 60px rgba(15,23,42,.18)}.realtime-panel-head{height:48px;padding:0 14px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eef1f4}.realtime-panel-head strong{font-size:12px}.realtime-panel-head button{padding:4px 7px;border:0;background:transparent;color:#667085;font-size:10px}.realtime-list{max-height:460px;overflow:auto}.realtime-empty{padding:28px 16px;text-align:center;color:#98a2b3;font-size:11px}.realtime-item{padding:12px 13px;display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:10px;align-items:start;border-bottom:1px solid #f0f2f5;transition:.14s ease}.realtime-item:hover{background:#f8fafc}.realtime-item-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:#f2f4f7;color:#344054;font-size:13px;font-weight:900}.realtime-item-copy{min-width:0}.realtime-item-copy strong{display:block;font-size:11px}.realtime-item-copy small{display:block;margin-top:4px;overflow:hidden;color:#667085;font-size:10px;line-height:1.35;text-overflow:ellipsis}.realtime-item time{color:#98a2b3;font-size:9px;white-space:nowrap}.realtime-toasts{position:fixed;right:22px;top:70px;z-index:1400;width:min(390px,calc(100vw - 44px));display:grid;gap:9px;pointer-events:none}.realtime-toast{padding:12px 14px;display:grid;grid-template-columns:28px minmax(0,1fr);gap:10px;align-items:start;border:1px solid rgba(255,255,255,.08);border-radius:13px;background:#172033;color:#fff;box-shadow:0 18px 45px rgba(15,23,42,.25);opacity:0;transform:translateY(-8px);transition:.2s ease;pointer-events:auto}.realtime-toast.is-visible{opacity:1;transform:none}.realtime-toast>span{width:28px;height:28px;display:grid;place-items:center;border-radius:8px;background:rgba(255,255,255,.1);font-weight:900}.realtime-toast strong{display:block;font-size:11px}.realtime-toast small{display:block;margin-top:4px;color:rgba(255,255,255,.66);font-size:10px;line-height:1.35}.incoming-call-popup{z-index:1500}@media(max-width:720px){.realtime-status-label{display:none}.realtime-status{width:30px;padding:0;justify-content:center}.topbar-actions{gap:6px}.topbar-meta{display:none}.realtime-panel{position:fixed;left:14px;right:14px;top:62px;width:auto}.realtime-toasts{left:14px;right:14px;top:64px;width:auto}}

/* v8.7 — Chats */
.page-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; }
.page-actions form { display:inline-flex; }
.admin-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:-10px 0 18px; }
.admin-tabs a { min-height:36px; display:inline-flex; align-items:center; padding:0 13px; border-radius:11px; background:#fff; border:1px solid var(--line); color:#667085; font-size:12px; font-weight:750; }
.admin-tabs a.active, .admin-tabs a:hover { background:var(--primary); color:#fff; border-color:var(--primary); }
.form-card { padding:18px; max-width:1040px; }
.form-grid.two, .form-grid-2.two { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 14px; }
.form-grid .wide { grid-column:1 / -1; }
.settings-card { margin-top:18px; }
.table-card { overflow-x:auto; }
.table-actions { display:flex; gap:8px; justify-content:flex-end; align-items:center; white-space:nowrap; }
.table-actions form { display:inline-flex; }
.conversation-row.has-unread { background:#fff8f4; }
.conversation-preview { margin-top:7px; color:#485468; font-size:12px; line-height:1.45; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.channel-telegram { background:#eff6ff; color:#1d4ed8; }
.channel-whatsapp { background:#ecfdf5; color:#047857; }
.channel-viber { background:#f5f3ff; color:#6d28d9; }
.channel-vk { background:#eef2ff; color:#3730a3; }
.channel-website_chat { background:#fff7ed; color:#c2410c; }
.channel-email { background:#fdf2f8; color:#be185d; }
.chat-workspace { display:grid; grid-template-columns:minmax(520px,1fr) 320px; gap:18px; align-items:start; }
.chat-page-head { align-items:flex-start; }
.chat-thread { min-height:680px; padding:0; overflow:hidden; }
.chat-thread-head { padding:16px 18px; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:12px; }
.chat-thread-head strong { display:block; font-size:15px; }
.chat-thread-head span { display:block; margin-top:4px; color:var(--muted); font-size:11px; }
.chat-messages { height:min(66vh,680px); min-height:360px; overflow:auto; padding:16px 18px; background:linear-gradient(180deg,#fafbfc,#fff); }
.chat-pagination { padding:0 18px 12px; }
.chat-subject { display:block; margin-bottom:7px; font-size:12px; }
.chat-attachments { display:grid; gap:6px; margin-top:8px; }
.chat-attachment { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 10px; border-radius:10px; background:rgba(255,255,255,.72); border:1px solid rgba(148,163,184,.28); font-size:11px; }
.chat-message.outgoing .chat-attachment { background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.16); }
.chat-attachment small { color:inherit; opacity:.64; white-space:nowrap; }
.chat-compose { padding:14px 18px 18px; border-top:1px solid var(--line); background:#fff; }
.chat-compose .textarea { min-height:88px; }
.chat-compose-actions { margin-top:10px; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:center; }
.chat-compose-actions .input { height:auto; min-height:42px; padding:9px 12px; }
.quick-reply-strip { display:flex; flex-wrap:wrap; gap:7px; margin-bottom:10px; }
.quick-reply-chip { min-height:30px; padding:0 10px; border-radius:999px; border:1px solid var(--line); background:#f8fafc; color:#3f4b61; font-size:11px; font-weight:750; }
.quick-reply-chip:hover { border-color:var(--primary); color:var(--primary); }
.chat-side .side-form-wrap { border-top:1px solid var(--line); }
code { padding:2px 5px; border-radius:6px; background:#f2f4f7; color:#344054; font-size:11px; }
@media (max-width:1180px) { .chat-workspace { grid-template-columns:1fr; } }
@media (max-width:820px) { .form-grid.two { grid-template-columns:1fr; } .form-grid .wide { grid-column:auto; } .chat-compose-actions { grid-template-columns:1fr; } }

/* Email v8.8 */
.form-section-title { margin: 12px 0 4px; font-size: 14px; letter-spacing: -.01em; color: #172033; }
.email-thread .chat-bubble { max-width: 880px; }
.email-text { white-space: pre-wrap; }
.channel-email { background:#fdf2f8; color:#be185d; }

/* v8.9 automation */
.automations-table { min-width: 980px; }
.automation-examples { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:14px 0 6px; }
.automation-examples > div { padding:14px; border:1px solid var(--line); border-radius:14px; background:#f8fafc; }
.automation-examples strong { display:block; margin-bottom:8px; font-size:12px; }
.automation-examples pre, .json-dump, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }
.automation-examples pre, .json-dump { overflow:auto; padding:12px; border-radius:12px; background:#101828; color:#e4e7ec; font-size:11px; line-height:1.55; white-space:pre; }
.textarea.mono { min-height:150px; font-size:12px; line-height:1.45; }
@media (max-width:820px) { .automation-examples { grid-template-columns:1fr; } }

/* v9.0 — analytics and reports */
.report-tabs { margin: -6px 0 18px; }
.tabs { display:flex; flex-wrap:wrap; gap:8px; }
.tabs a { display:inline-flex; align-items:center; min-height:36px; padding:0 12px; border-radius:999px; border:1px solid var(--line); background:#fff; color:#596273; font-size:12px; font-weight:750; }
.tabs a:hover, .tabs a.active { background:var(--primary); color:#fff; border-color:var(--primary); }
.report-filter-card { padding:16px; margin-bottom:18px; }
.report-filter-grid { display:grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap:12px; align-items:end; }
.report-filter-grid .field { margin-bottom:0; }
.report-filter-submit .btn { width:100%; }
.report-filter-foot { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-top:12px; padding-top:12px; border-top:1px solid var(--line); color:var(--muted); font-size:12px; }
.report-metrics { margin-top:18px; }
.report-grid-two { display:grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap:18px; margin-top:18px; align-items:start; }
.report-table-wrap { overflow:auto; }
.report-table { width:100%; border-collapse:collapse; min-width:620px; }
.report-table.wide { min-width:980px; }
.report-table th { padding:11px 10px; border-bottom:1px solid var(--line); color:#667085; text-align:left; font-size:11px; text-transform:uppercase; letter-spacing:.05em; white-space:nowrap; }
.report-table td { padding:12px 10px; border-bottom:1px solid #f0f2f4; font-size:13px; vertical-align:top; }
.report-table td strong { display:block; font-size:13px; }
.report-table td small { display:block; margin-top:3px; color:var(--muted); font-size:11px; }
.report-rows { display:grid; gap:10px; }
.report-row-card { display:grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(82px, .55fr)); gap:12px; align-items:center; padding:12px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.report-row-card strong { display:block; font-size:13px; }
.report-row-card span { display:block; margin-top:3px; color:var(--muted); font-size:11px; }
.report-row-card b { display:block; font-size:16px; }
.report-daily-bars { display:grid; gap:9px; max-height:440px; overflow:auto; padding-right:4px; }
.report-day-row { display:grid; grid-template-columns: 52px minmax(160px, 1fr) 78px; align-items:center; gap:10px; font-size:12px; }
.report-day-row > span { color:var(--muted); }
.report-day-row > strong { text-align:right; font-size:11px; color:#475467; }
.report-stack-bars { display:grid; gap:3px; }
.report-stack-bars i, .report-stack-bars b, .report-stack-bars em { display:block; height:6px; min-width:2px; border-radius:999px; }
.report-stack-bars i { background:#172033; }
.report-stack-bars b { background:#ff6b35; }
.report-stack-bars em { background:#98a2b3; }
.funnel-report { display:grid; gap:12px; }
.funnel-report-row { display:grid; grid-template-columns: 220px minmax(160px, 1fr) 210px; gap:14px; align-items:center; padding:13px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.funnel-report-label strong { display:block; font-size:13px; }
.funnel-report-label span, .funnel-report-values span, .funnel-report-values small { display:block; margin-top:3px; color:var(--muted); font-size:11px; }
.funnel-report-bar { height:12px; border-radius:999px; background:#eef2f6; overflow:hidden; }
.funnel-report-bar i { display:block; height:100%; border-radius:999px; background:var(--accent); }
.funnel-report-values { text-align:right; }
.funnel-report-values strong { font-size:18px; }
@media (max-width: 1180px) {
    .report-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .report-grid-two { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
    .report-filter-grid { grid-template-columns: 1fr; }
    .report-row-card { grid-template-columns: 1fr 1fr; }
    .funnel-report-row { grid-template-columns: 1fr; }
    .funnel-report-values { text-align:left; }
}

/* v9.0.1 — system diagnostics */
.system-hero { position:relative; overflow:hidden; display:flex; justify-content:space-between; gap:24px; align-items:flex-end; margin-bottom:18px; padding:24px; color:#fff; background:radial-gradient(circle at 10% 0%, rgba(255,107,53,.34), transparent 30%),radial-gradient(circle at 88% 100%, rgba(79,70,229,.24), transparent 34%),#172033; }
.system-hero h2 { margin:0 0 6px; font-size:36px; letter-spacing:-.04em; }
.system-hero p { margin:0; color:rgba(255,255,255,.66); font-size:13px; }
.system-version-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; min-width:min(720px,60%); }
.system-version-grid div { padding:13px; border:1px solid rgba(255,255,255,.12); border-radius:14px; background:rgba(255,255,255,.07); }
.system-version-grid span { display:block; color:rgba(255,255,255,.55); font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; }
.system-version-grid strong { display:block; margin-top:6px; font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.system-summary-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:18px; }
.system-summary-card { padding:16px; border-radius:16px; border:1px solid var(--line); background:#fff; }
.system-summary-card span { display:block; color:var(--muted); font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; }
.system-summary-card strong { display:block; margin-top:8px; font-size:32px; line-height:1; letter-spacing:-.04em; }
.system-summary-card.is-ok strong { color:var(--success); }
.system-summary-card.is-warning strong { color:var(--warning); }
.system-summary-card.is-fail strong { color:var(--danger); }
.system-actions-card { padding:18px; margin-bottom:18px; }
.system-actions-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.system-actions-grid form { min-width:0; }
.system-action { width:100%; min-height:112px; padding:14px; display:flex; flex-direction:column; align-items:flex-start; justify-content:space-between; gap:10px; border:1px solid var(--line); border-radius:15px; background:#f8fafc; text-align:left; color:var(--text); }
.system-action:hover { border-color:#cdd5df; background:#fff; box-shadow:var(--shadow); transform:translateY(-1px); }
.system-action span { width:38px; height:38px; display:grid; place-items:center; border-radius:12px; background:#172033; color:#fff; }
.system-action strong { font-size:13px; }
.system-action small { color:var(--muted); font-size:10px; line-height:1.35; }
.system-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; align-items:start; }
.system-group { overflow:hidden; }
.system-check-list { display:grid; }
.system-check-row { display:grid; grid-template-columns:30px minmax(0,1fr) auto; gap:11px; align-items:start; padding:13px 16px; border-top:1px solid #f0f2f4; }
.system-check-row:first-child { border-top:0; }
.system-check-status { width:30px; height:30px; display:grid; place-items:center; border-radius:10px; background:#eef2f6; color:#475467; font-size:13px; font-weight:900; }
.system-check-row.is-ok .system-check-status { background:#ecfdf5; color:#047857; }
.system-check-row.is-warning .system-check-status { background:#fffbeb; color:#a66800; }
.system-check-row.is-fail .system-check-status { background:#fff1f2; color:#be123c; }
.system-check-row.is-info .system-check-status { background:#eff6ff; color:#1d4ed8; }
.system-check-main { min-width:0; }
.system-check-main strong { display:block; font-size:12px; }
.system-check-main small { display:block; margin-top:4px; color:var(--muted); font-size:11px; line-height:1.45; word-break:break-word; }
.system-check-main details { margin-top:8px; }
.system-check-main summary { color:#475467; font-size:11px; font-weight:750; cursor:pointer; }
.system-check-main pre { margin:8px 0 0; max-height:240px; overflow:auto; padding:10px; border-radius:10px; background:#101828; color:#e4e7ec; font-size:10px; line-height:1.45; }
.system-check-row em { align-self:center; padding:5px 8px; border-radius:999px; background:#f2f4f7; color:#596273; font-style:normal; font-size:10px; font-weight:800; white-space:nowrap; }
.system-check-row.is-ok em { background:#ecfdf5; color:#047857; }
.system-check-row.is-warning em { background:#fffbeb; color:#a66800; }
.system-check-row.is-fail em { background:#fff1f2; color:#be123c; }
.system-check-row.is-info em { background:#eff6ff; color:#1d4ed8; }
.system-log-card { margin-top:18px; overflow:hidden; }
.system-log { max-height:480px; overflow:auto; margin:0; padding:16px; background:#101828; color:#e4e7ec; font-size:11px; line-height:1.55; white-space:pre-wrap; word-break:break-word; }
@media (max-width:1180px) { .system-hero { align-items:flex-start; flex-direction:column; } .system-version-grid { min-width:0; width:100%; grid-template-columns:repeat(2,minmax(0,1fr)); } .system-actions-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .system-grid { grid-template-columns:1fr; } }
@media (max-width:820px) { .system-summary-grid,.system-version-grid,.system-actions-grid { grid-template-columns:1fr; } .system-check-row { grid-template-columns:28px minmax(0,1fr); } .system-check-row em { grid-column:2; justify-self:start; } }

/* v9.1 — client import */
.import-layout { display:grid; grid-template-columns:minmax(420px,.85fr) minmax(320px,.65fr); gap:18px; align-items:start; }
.import-layout-wide { display:grid; grid-template-columns:minmax(620px,1fr) 340px; gap:18px; align-items:start; }
.import-columns-help { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
.import-columns-help span { padding:7px 10px; border-radius:999px; background:#f2f4f7; border:1px solid var(--line); color:#475467; font-size:11px; font-weight:750; }
.small-line { font-size:12px; line-height:1.55; }
.imports-table { min-width:920px; }
.import-map-table { min-width:760px; }
.import-map-table td:first-child { min-width:170px; }
.import-rows-table { min-width:980px; }
.import-row-data { max-width:520px; font-size:11px; line-height:1.55; }
.import-row-data div { margin:2px 0; }
.import-errors { margin:0; padding-left:16px; color:#be123c; font-size:11px; line-height:1.45; }
.import-metrics .metric-label { font-size:18px; }
.import-detail-grid { grid-template-columns:minmax(280px,360px) minmax(620px,1fr); }
.compact-actions { margin-top:18px; display:flex; flex-wrap:wrap; gap:8px; }
.status-uploaded { background:#eff6ff; color:#1d4ed8; }
.status-mapped, .status-valid { background:#ecfdf5; color:#047857; }
.status-importing { background:#fff7ed; color:#b45309; }
.status-completed, .status-imported { background:#ecfdf5; color:#047857; }
.status-failed, .status-invalid, .status-error { background:#fff1f2; color:#be123c; }
.status-duplicate, .status-skipped { background:#fffbeb; color:#92400e; }
.status-rolled_back { background:#f2f4f7; color:#475467; }
@media (max-width:1100px) { .import-layout, .import-layout-wide, .import-detail-grid { grid-template-columns:1fr; } }

/* v9.2 — duplicate control */
.duplicates-table { min-width: 980px; }
.duplicate-mini-list { margin-top: 6px; display: grid; gap: 3px; }
.duplicate-mini-list a { color: var(--muted); font-size: 10px; }
.duplicate-mini-list a:hover { color: var(--accent); }
.duplicate-detail-grid { display: grid; grid-template-columns: minmax(620px, 1fr) 340px; gap: 18px; align-items: start; }
.duplicate-contact-list { display: grid; gap: 12px; }
.duplicate-contact-card { padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.duplicate-contact-card.is-candidate { border-color: rgba(255,107,53,.42); box-shadow: 0 0 0 3px rgba(255,107,53,.08); }
.duplicate-contact-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.duplicate-contact-card h3 { margin: 10px 0 4px; font-size: 17px; letter-spacing: -.02em; }
.duplicate-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.duplicate-fields > div { min-height: 78px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.duplicate-fields strong { display: block; margin-bottom: 6px; font-size: 11px; color: #475467; }
.duplicate-fields span { display: block; margin-top: 4px; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.duplicate-fields small { display: block; color: var(--muted); font-size: 9px; }
.duplicate-merge-check { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.duplicate-form-warning .panel-body { background: #fffdf7; }
.duplicate-allow-checkbox { margin-top: 12px; }
.status-open { background: #eff6ff; color: #1d4ed8; }
.status-ignored { background: #f2f4f7; color: #475467; }
.status-merged { background: #ecfdf5; color: #047857; }
@media (max-width: 1100px) { .duplicate-detail-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .duplicate-fields { grid-template-columns: 1fr; } .duplicate-contact-head { align-items: flex-start; flex-direction: column; } }

/* v9.3 — Telegram */
.wrap-actions { flex-wrap:wrap; gap:10px; align-items:center; }
.inline-checkbox { display:inline-flex; align-items:center; gap:6px; margin-right:8px; font-size:12px; color:var(--muted); }
.code-block { max-height:520px; overflow:auto; margin:0; padding:16px; border-radius:14px; background:#101828; color:#e4e7ec; font-size:11px; line-height:1.55; white-space:pre-wrap; word-break:break-word; }
.telegram-help-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:18px 0; }
.telegram-help-card { padding:14px; border:1px solid var(--line); border-radius:16px; background:#fff; }
.telegram-help-card strong { display:block; margin-bottom:6px; font-size:13px; }
.telegram-help-card small { color:var(--muted); line-height:1.45; }
.channel-telegram { background:#e0f2fe; color:#0369a1; }
@media (max-width: 900px) { .telegram-help-grid { grid-template-columns:1fr; } }
.channel-whatsapp { background:#ecfdf3; color:#027a48; }
.inline-form-stack { margin-top:14px; padding-top:14px; border-top:1px solid var(--line); }
.compact-grid { margin-top:8px; }
.whatsapp-help-card { padding:14px; border:1px solid var(--line); border-radius:16px; background:#fff; }

/* v9.5 — website chat widget */
.sitechat-table { min-width: 940px; }
.sitechat-layout { display:grid; grid-template-columns:minmax(520px,1fr) minmax(360px,.65fr); gap:18px; align-items:start; margin-top:18px; }
.checkbox-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 18px; align-items:start; }
.channel-website_chat { background:#fff7ed; color:#b45309; }
@media (max-width: 980px) { .sitechat-layout { grid-template-columns:1fr; } .checkbox-grid { grid-template-columns:1fr; } }

/* v9.6 — global CRM search */
.topbar-search {
    width: min(360px, 32vw);
    height: 36px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: #98a2b3;
}
.topbar-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 12px;
}
.global-search-card { padding: 18px; margin-bottom: 18px; }
.global-search-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.global-search-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: #f3f5f8; color: #536077; }
.global-search-input { min-height: 44px; font-size: 15px; }
.global-search-types { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 12px; }
.global-search-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.global-search-results { display: grid; gap: 16px; }
.global-search-group { overflow: hidden; }
.global-search-group-head { min-height: 56px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.global-search-group-head > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.global-search-group-head strong { font-size: 14px; }
.global-search-group-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #f3f5f8; color: #475467; }
.global-search-list { display: grid; }
.global-search-result { padding: 14px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; border-bottom: 1px solid #f0f2f4; transition: .15s ease; }
.global-search-result:last-child { border-bottom: 0; }
.global-search-result:hover { background: #fafbfc; }
.global-search-result-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.global-search-result-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.global-search-result-main small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.global-search-result-main p { margin: 8px 0 0; color: #475467; font-size: 12px; line-height: 1.45; }
.global-search-result-side { display: flex; align-items: center; gap: 10px; color: #98a2b3; }
.global-search-result-side time { white-space: nowrap; font-size: 10px; }
@media(max-width: 900px) {
    .topbar-search { display: none; }
    .global-search-summary { grid-template-columns: 1fr; }
}
@media(max-width: 640px) {
    .global-search-main { grid-template-columns: 1fr; }
    .global-search-icon { display: none; }
    .global-search-result { grid-template-columns: 1fr; }
    .global-search-result-side { justify-content: space-between; }
}

/* v9.7 — CRM settings */
.crm-settings-layout { display:grid; grid-template-columns:minmax(560px,1fr) 330px; gap:18px; align-items:start; }
.crm-settings-main { display:grid; gap:18px; }
.crm-settings-side { display:grid; gap:18px; position:sticky; top:74px; }
.crm-settings-summary .panel-body { display:grid; gap:0; padding-top:4px; }
.crm-settings-summary .panel-body > div { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 0; border-bottom:1px solid var(--line); }
.crm-settings-summary .panel-body > div:last-child { border-bottom:0; }
.crm-settings-summary span { color:var(--muted); font-size:11px; }
.crm-settings-summary strong { max-width:180px; overflow:hidden; text-overflow:ellipsis; text-align:right; font-size:11px; }
.crm-settings-note p { margin:0 0 12px; color:#667085; font-size:11px; line-height:1.5; }
.crm-settings-note p:last-child { margin-bottom:0; }
.crm-settings-note strong { color:var(--text); }
.crm-settings-actions { margin-top:18px; }
.crm-currency-input { text-transform:uppercase; }
@media (max-width:1050px) { .crm-settings-layout { grid-template-columns:1fr; } .crm-settings-side { position:static; grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:720px) { .crm-settings-side { grid-template-columns:1fr; } }


/* v9.8 — product catalog */
.product-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}.product-kpi{padding:16px 18px}.product-kpi span{display:block;color:var(--muted);font-size:12px}.product-kpi strong{display:block;font-size:26px;margin-top:4px}.product-filter{display:grid;grid-template-columns:minmax(260px,2fr) repeat(3,minmax(150px,1fr));gap:12px;align-items:end;margin-bottom:14px}.product-filter-actions{display:flex;gap:8px;grid-column:1/-1;justify-content:flex-end}.catalog-sync-strip{display:flex;justify-content:space-between;gap:12px;padding:9px 12px;margin-bottom:10px;border-radius:10px;background:#f4f7fb;color:#596273;font-size:12px}.catalog-sync-strip.is-failed{background:#fff1f0;color:#9f2d25}.product-table td{vertical-align:top}.product-legacy{display:block;color:var(--muted);font-size:11px;margin-top:3px}.product-title-link{color:var(--text);font-weight:750}.product-status.is-in_stock{background:#e9f8ef;color:#237344}.product-status.is-reserved{background:#fff4d8;color:#916700}.product-status.is-archived{background:#eef0f3;color:#697080}.product-status.is-hidden{background:#f4ecff;color:#7047a8}.product-detail-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,.75fr);gap:16px}.product-detail-grid>div,.product-detail-grid>aside{display:flex;flex-direction:column;gap:16px}.product-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.product-info-grid div,.product-side-list div,.product-connection div{display:flex;flex-direction:column;gap:4px}.product-info-grid span,.product-side-list span,.product-connection span{font-size:11px;color:var(--muted)}.product-copy p{white-space:pre-wrap}.fitment-row{display:flex;flex-direction:column;gap:4px;padding:11px 0;border-bottom:1px solid var(--border)}.fitment-row:last-child{border-bottom:0}.fitment-row span{font-size:12px;color:var(--muted)}.product-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.product-gallery a{display:block;aspect-ratio:4/3;border-radius:10px;overflow:hidden;background:#f4f5f7}.product-gallery img{width:100%;height:100%;object-fit:cover;display:block}.product-side-list{display:flex;flex-direction:column;gap:12px}.product-connection{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.product-connection-message{grid-column:1/-1}.product-table-health{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.product-table-health div{display:flex;justify-content:space-between;padding:10px;border:1px solid var(--border);border-radius:8px}.product-sync-error{display:block;max-width:380px;color:#9f2d25;margin-top:4px;white-space:normal}.text-ok{color:#237344}.text-fail{color:#a42c25}@media(max-width:900px){.product-kpis{grid-template-columns:repeat(2,1fr)}.product-filter{grid-template-columns:1fr 1fr}.product-filter-search{grid-column:1/-1}.product-detail-grid{grid-template-columns:1fr}.product-gallery{grid-template-columns:repeat(2,1fr)}.product-connection{grid-template-columns:1fr 1fr}}@media(max-width:600px){.product-filter{grid-template-columns:1fr}.product-filter-search{grid-column:auto}.product-info-grid,.product-connection,.product-table-health{grid-template-columns:1fr}.product-gallery{grid-template-columns:1fr 1fr}.product-connection-message{grid-column:auto}}

/* v9.8.1 — product catalog visual refresh */
.product-page-head{align-items:center}.product-kpi{position:relative;overflow:hidden;min-height:104px}.product-kpi::after{content:"";position:absolute;width:72px;height:72px;border-radius:50%;right:-24px;bottom:-30px;background:#eef2f6}.product-kpi.is-success::after{background:#dff5e8}.product-kpi.is-warning::after{background:#fff0c7}.product-kpi.is-muted::after{background:#edf0f4}.product-kpi small{display:block;margin-top:5px;color:#98a2b3;font-size:11px}.product-list-card{overflow:hidden}.product-list-card .table-wrap{border-radius:var(--radius)}.product-table{min-width:1120px}.product-table th{font-size:10px;text-transform:uppercase;letter-spacing:.055em;color:#8b95a5}.product-table td{vertical-align:middle;padding-top:12px;padding-bottom:12px}.product-row{transition:background .15s ease}.product-row:hover{background:#fbfcfd}.product-photo-column{width:86px}.product-photo-cell{width:86px}.product-photo{position:relative;display:block;overflow:hidden;background:#f2f4f7;border:1px solid #e3e7ed}.product-photo-thumb{width:68px;height:56px;border-radius:11px}.product-photo img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .22s ease}.product-photo:hover img{transform:scale(1.045)}.product-photo.is-empty{display:grid;place-items:center;text-align:center;color:#98a2b3;font-size:9px;font-weight:750;line-height:1.15;padding:4px}.product-photo.is-broken img,.product-thumb.is-broken img{display:none}.product-photo.is-broken::before,.product-thumb.is-broken::before{content:"Нет фото";position:absolute;inset:0;display:grid;place-items:center;color:#98a2b3;font-size:9px;background:#f2f4f7}.product-photo-zoom{position:absolute;right:5px;bottom:5px;width:21px;height:21px;border-radius:7px;display:grid;place-items:center;background:rgba(23,32,51,.78);color:#fff;font-size:11px;opacity:0;transform:translateY(2px);transition:.18s ease}.product-photo:hover .product-photo-zoom{opacity:1;transform:none}.product-code{font-size:14px;font-weight:850;color:#263247}.product-code:hover,.product-title-link:hover{color:var(--accent)}.product-oem{font-size:12px;font-weight:700;color:#596273;margin-top:4px}.product-main-cell{min-width:240px;max-width:390px}.product-title-link{display:block;font-weight:780;line-height:1.4}.product-row-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px;color:#8791a1;font-size:10px}.product-alert-chip{padding:3px 6px;border-radius:999px;background:#fff0f1;color:#a83542;font-weight:800}.product-alert-chip.is-warning{background:#fff4d8;color:#916700}.product-brand-name{font-size:12px;font-weight:700}.product-price-cell strong{display:block;font-size:14px}.product-price-cell small{display:block;margin-top:4px;color:#98a2b3;font-size:10px}.product-qty{display:inline-grid;place-items:center;min-width:34px;height:30px;padding:0 8px;border-radius:9px;background:#f1f3f6;color:#697080;font-weight:850}.product-qty.has-stock{background:#e8f8ee;color:#237344}.product-warehouse{font-size:12px;color:#596273}.product-status{white-space:nowrap}

.product-hero-card{display:grid;grid-template-columns:minmax(360px,1.15fr) minmax(330px,.85fr);gap:0;overflow:hidden;margin-bottom:18px}.product-hero-gallery{min-width:0;padding:22px;background:#f7f9fb;border-right:1px solid var(--line)}.product-hero-main{height:min(52vw,500px);max-height:500px;min-height:340px;border-radius:16px;overflow:hidden;background:#eef1f5}.product-hero-link{position:relative;display:block;width:100%;height:100%}.product-hero-link img{display:block;width:100%;height:100%;object-fit:contain;background:#fff}.product-hero-hint{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);padding:7px 10px;border-radius:999px;background:rgba(23,32,51,.78);color:#fff;font-size:10px;font-weight:750;opacity:0;transition:.18s ease;white-space:nowrap}.product-hero-link:hover .product-hero-hint{opacity:1}.product-hero-empty{height:100%;display:grid;place-content:center;text-align:center;color:#98a2b3}.product-hero-empty strong{color:#596273;font-size:16px}.product-hero-empty span{font-size:11px;margin-top:5px}.product-thumb-strip{display:flex;gap:8px;margin-top:10px;overflow-x:auto;padding:2px 1px 5px}.product-thumb{position:relative;flex:0 0 72px;width:72px;height:58px;padding:0;border:2px solid transparent;border-radius:10px;overflow:hidden;background:#eef1f5}.product-thumb img{width:100%;height:100%;object-fit:cover;display:block}.product-thumb.is-active{border-color:var(--accent);box-shadow:0 0 0 2px rgba(255,107,53,.11)}.product-hero-summary{padding:30px;display:flex;flex-direction:column}.product-summary-eyebrow{color:var(--accent);font-size:12px;font-weight:850;text-transform:uppercase;letter-spacing:.06em}.product-summary-codes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:18px}.product-summary-codes div{padding:11px 12px;border:1px solid var(--line);border-radius:11px;background:#fafbfc}.product-summary-codes span,.product-summary-price span,.product-summary-finance span,.product-stock-callout span{display:block;color:#98a2b3;font-size:10px;text-transform:uppercase;letter-spacing:.045em;font-weight:750}.product-summary-codes strong{display:block;margin-top:4px;font-size:13px;overflow-wrap:anywhere}.product-summary-price{padding:21px 0 16px;margin-top:8px;border-bottom:1px solid var(--line)}.product-summary-price strong{display:inline-block;margin-top:4px;font-size:34px;line-height:1;letter-spacing:-.04em}.product-summary-price del{margin-left:10px;color:#98a2b3;font-size:13px}.product-summary-finance{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:14px 0}.product-summary-finance div{padding:10px 12px;background:#f8fafc;border-radius:11px}.product-summary-finance strong{display:block;margin-top:4px;font-size:13px}.product-stock-callout{display:grid;grid-template-columns:1fr 1.4fr;gap:10px;padding:14px;border-radius:13px;background:#f2f4f7;margin-top:auto}.product-stock-callout.has-stock{background:#edf9f1}.product-stock-callout strong{display:block;margin-top:4px;font-size:14px}.product-summary-flags{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px}.product-chip{padding:6px 9px;border-radius:999px;background:#eef1f5;color:#596273;font-size:10px;font-weight:800}.product-chip.is-warning{background:#fff4d8;color:#916700}.product-chip.is-danger{background:#fff0f1;color:#a83542}.product-detail-grid-modern{grid-template-columns:minmax(0,1.65fr) minmax(280px,.65fr)}.product-comment{margin-top:16px;padding:13px 14px;border-radius:12px;background:#fff8f4;border:1px solid #ffe1d4}.product-comment strong{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#b5532e}.product-comment p{margin:5px 0 0}.product-fitment-list{padding-top:6px;padding-bottom:6px}.fitment-row{padding:12px 0}.fitment-car{display:flex;align-items:flex-start;gap:11px}.fitment-icon{flex:0 0 auto;width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:#edf1f6;color:#5e697b;font-size:11px;font-weight:900}.fitment-car strong{display:block;font-size:12px}.fitment-car span{display:block;margin-top:3px}.product-gallery-modern{grid-template-columns:repeat(5,minmax(0,1fr))}.product-gallery-modern .product-photo{aspect-ratio:1/1;border-radius:11px}.product-side-list-modern div{padding-bottom:11px;border-bottom:1px solid #f0f2f4}.product-side-list-modern div:last-child{border-bottom:0;padding-bottom:0}.product-side-list-modern strong{font-size:13px}

.product-lightbox[hidden]{display:none}.product-lightbox{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:24px}.product-lightbox-backdrop{position:absolute;inset:0;background:rgba(10,15,25,.82);backdrop-filter:blur(8px)}.product-lightbox-dialog{position:relative;width:min(1180px,96vw);height:min(860px,92vh);display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:#111827;border:1px solid rgba(255,255,255,.12);border-radius:18px;overflow:hidden;box-shadow:0 36px 100px rgba(0,0,0,.45)}.product-lightbox-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;color:#fff;background:#172033}.product-lightbox-toolbar strong{font-size:12px}.product-lightbox-toolbar span{margin-left:8px;color:rgba(255,255,255,.5);font-size:11px}.product-lightbox-actions{display:flex;align-items:center;gap:8px}.product-lightbox-open{padding:7px 10px;border-radius:8px;background:rgba(255,255,255,.08);color:rgba(255,255,255,.82);font-size:10px;font-weight:750}.product-lightbox-close{width:32px;height:32px;border:0;border-radius:9px;background:rgba(255,255,255,.08);color:#fff;font-size:22px;line-height:1}.product-lightbox-stage{position:relative;min-height:0;display:grid;place-items:center;background:#090e17}.product-lightbox-stage img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}.product-lightbox-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:44px;height:56px;border:0;border-radius:12px;background:rgba(23,32,51,.74);color:#fff;font-size:34px;line-height:1}.product-lightbox-nav.is-prev{left:14px}.product-lightbox-nav.is-next{right:14px}.product-lightbox-caption{min-height:42px;padding:12px 16px;background:#172033;color:rgba(255,255,255,.64);font-size:11px}.product-lightbox-opened{overflow:hidden}

@media(max-width:1050px){.product-hero-card{grid-template-columns:1fr}.product-hero-gallery{border-right:0;border-bottom:1px solid var(--line)}.product-hero-main{height:460px}.product-gallery-modern{grid-template-columns:repeat(4,1fr)}}
@media(max-width:700px){.product-page-head{align-items:flex-start}.product-hero-gallery{padding:12px}.product-hero-main{height:64vw;min-height:260px}.product-hero-summary{padding:20px}.product-summary-price strong{font-size:29px}.product-summary-codes,.product-summary-finance,.product-stock-callout{grid-template-columns:1fr 1fr}.product-gallery-modern{grid-template-columns:repeat(3,1fr)}.product-lightbox{padding:8px}.product-lightbox-dialog{width:100%;height:94vh;border-radius:13px}.product-lightbox-open{display:none}.product-lightbox-nav{width:38px;height:48px}.product-lightbox-nav.is-prev{left:8px}.product-lightbox-nav.is-next{right:8px}}

/* v9.8.2 — products in deals */
.field-hint{display:block;margin-top:5px;color:#98a2b3;font-size:10px;line-height:1.35}.deal-products-section{max-width:1180px;margin-top:30px;padding-top:26px;border-top:1px solid var(--line);scroll-margin-top:92px}.deal-products-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:14px}.deal-products-head h2{margin:3px 0 5px;font-size:24px;letter-spacing:-.025em}.deal-products-head p{max-width:760px;margin:0;color:var(--muted);font-size:12px;line-height:1.55}.deal-products-eyebrow{color:var(--accent);font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.deal-product-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.deal-product-kpi{padding:14px 16px;border:1px solid var(--line);border-radius:13px;background:#fff}.deal-product-kpi span{display:block;color:#8b95a5;font-size:10px;text-transform:uppercase;letter-spacing:.04em;font-weight:800}.deal-product-kpi strong{display:block;margin-top:4px;font-size:22px;letter-spacing:-.03em}.deal-product-kpi small{display:block;margin-top:3px;color:#98a2b3;font-size:10px}.deal-product-kpi.is-positive strong,.deal-product-margin.is-positive,.deal-product-search-stock strong.is-positive{color:#237344}.deal-product-kpi.is-negative strong,.deal-product-margin.is-negative,.deal-product-search-stock strong.is-negative{color:#b42318}.deal-product-search-card{padding:15px 16px;margin-bottom:14px;overflow:visible}.deal-product-search-copy{display:flex;align-items:baseline;gap:10px;margin-bottom:10px}.deal-product-search-copy strong{font-size:13px}.deal-product-search-copy span{color:var(--muted);font-size:10px}.deal-product-search-box{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}.deal-product-search-status{color:#98a2b3;font-size:10px;white-space:nowrap}.deal-product-search-results{margin:12px -16px -15px;border-top:1px solid var(--line);overflow:hidden;border-radius:0 0 var(--radius) var(--radius)}.deal-product-search-result{display:grid;grid-template-columns:62px minmax(230px,1fr) 105px 120px auto;gap:12px;align-items:center;padding:10px 16px;border-bottom:1px solid #eff1f4;background:#fff}.deal-product-search-result:last-child{border-bottom:0}.deal-product-search-result:hover{background:#fafbfc}.deal-product-search-photo{width:58px;height:48px;display:grid;place-items:center;overflow:hidden;border-radius:9px;background:#f0f2f5;color:#98a2b3;font-size:8px}.deal-product-search-photo img{width:100%;height:100%;object-fit:cover}.deal-product-search-photo.is-broken img{display:none}.deal-product-search-photo.is-broken::after{content:"Нет фото"}.deal-product-search-title{display:flex;align-items:center;gap:8px;min-width:0}.deal-product-search-title a{flex:0 0 auto;color:var(--accent);font-size:11px;font-weight:900}.deal-product-search-title strong{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:11px}.deal-product-search-meta{display:flex;flex-wrap:wrap;gap:7px;margin-top:5px;color:#7f8999;font-size:9px}.deal-product-already{display:inline-block;margin-top:5px;padding:3px 6px;border-radius:999px;background:#fff4d8;color:#916700;font-size:9px;font-weight:800}.deal-product-search-stock strong,.deal-product-search-price strong{display:block;font-size:11px}.deal-product-search-stock span,.deal-product-search-price span{display:block;margin-top:3px;color:#98a2b3;font-size:9px}.deal-product-search-empty{padding:22px;text-align:center;color:#98a2b3;font-size:11px}.deal-product-lines{display:grid;gap:10px}.deal-product-line{display:grid;grid-template-columns:92px minmax(0,1fr) 190px;gap:16px;padding:14px;transition:.15s ease}.deal-product-line.is-reserved{border-color:#ead89e;box-shadow:inset 3px 0 0 #e3b83f}.deal-product-line-photo{position:relative;width:92px;height:78px;display:grid;place-items:center;overflow:hidden;border-radius:12px;background:#f1f3f6;color:#98a2b3;font-size:9px;text-align:center}.deal-product-line-photo a,.deal-product-line-photo img{width:100%;height:100%;display:block}.deal-product-line-photo img{object-fit:cover}.deal-product-line-photo.is-broken img{display:none}.deal-product-line-photo.is-broken::after{content:"Нет фото"}.deal-product-line-main{min-width:0}.deal-product-line-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.deal-product-article{display:inline-block;color:var(--accent);font-size:10px;font-weight:900;letter-spacing:.02em}.deal-product-line h3{margin:3px 0 0;font-size:13px;line-height:1.35}.deal-product-line-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:5px;color:#7f8999;font-size:9px}.deal-product-reserved-badge{flex:0 0 auto;padding:5px 8px;border-radius:999px;background:#fff4d8;color:#916700;font-size:9px;font-weight:900}.deal-product-line-form{display:grid;grid-template-columns:90px 130px 90px minmax(150px,1fr) auto;gap:8px;align-items:end;margin-top:12px}.deal-product-line-form .field{margin:0}.deal-product-line-form label{font-size:9px}.deal-product-line-form .input{height:36px;padding:0 9px;font-size:10px}.deal-product-save{height:36px}.deal-product-line-stock{display:flex;flex-wrap:wrap;gap:10px;margin-top:9px;color:#8b95a5;font-size:9px}.deal-product-line-stock b{color:#596273}.deal-product-line-finance{padding-left:15px;border-left:1px solid var(--line);display:flex;flex-direction:column;align-items:flex-end;text-align:right}.deal-product-line-finance>span{color:#98a2b3;font-size:9px;text-transform:uppercase;letter-spacing:.05em}.deal-product-line-finance>strong{margin-top:4px;font-size:18px;letter-spacing:-.02em}.deal-product-line-finance>small{margin-top:4px;color:#98a2b3;font-size:9px}.deal-product-margin{margin-top:7px;font-size:11px;font-weight:900}.deal-product-line-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;margin-top:auto;padding-top:12px}.deal-product-line-actions .btn{min-height:32px;padding:0 9px;font-size:9px}.deal-product-remove{color:#b42318;font-size:9px}.deal-products-empty{padding:34px;text-align:center;color:#98a2b3}.deal-products-empty strong{display:block;color:#596273;font-size:13px}.deal-products-empty span{display:block;margin-top:5px;font-size:10px}
@media(max-width:1050px){.deal-product-kpis{grid-template-columns:repeat(2,1fr)}.deal-product-line{grid-template-columns:78px minmax(0,1fr)}.deal-product-line-photo{width:78px;height:68px}.deal-product-line-finance{grid-column:2;padding:10px 0 0;border-left:0;border-top:1px solid var(--line);align-items:flex-start;text-align:left}.deal-product-line-actions{justify-content:flex-start}.deal-product-line-form{grid-template-columns:90px 120px 90px minmax(140px,1fr)}.deal-product-save{grid-column:1/-1;width:max-content}.deal-product-search-result{grid-template-columns:58px minmax(220px,1fr) 90px 105px auto}}
@media(max-width:720px){.deal-products-head{align-items:flex-start;flex-direction:column}.deal-product-kpis{grid-template-columns:1fr 1fr}.deal-product-search-box{grid-template-columns:1fr}.deal-product-search-status{white-space:normal}.deal-product-search-result{grid-template-columns:52px minmax(0,1fr) auto}.deal-product-search-stock,.deal-product-search-price{grid-column:2}.deal-product-search-add{grid-column:3;grid-row:1/4}.deal-product-line{grid-template-columns:64px minmax(0,1fr);padding:11px;gap:11px}.deal-product-line-photo{width:64px;height:58px}.deal-product-line-form{grid-template-columns:1fr 1fr}.deal-product-note-field{grid-column:1/-1}.deal-product-line-finance{grid-column:1/-1}.deal-product-line-top{display:block}.deal-product-reserved-badge{display:inline-flex;margin-top:6px}}

/* v9.8.3 Smart product search */
.smart-search-eyebrow{display:inline-flex;margin-bottom:6px;color:var(--accent);font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.smart-product-search{padding:0;margin-bottom:14px;overflow:visible}.smart-product-search-main{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:12px;align-items:center;padding:16px 18px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#fff,#fbfcfe)}.smart-product-search-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;background:#eef4ff;color:var(--accent);font-size:27px;font-weight:900}.smart-product-search-field{margin:0}.smart-product-search-field label{font-size:11px;font-weight:900}.smart-product-search-field .input{height:42px;font-size:13px;font-weight:650}.smart-product-search-field small{display:block;margin-top:5px;color:#8b95a5;font-size:9px;line-height:1.45}.smart-product-search-submit{height:42px;min-width:96px}.smart-product-filter-grid{display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));gap:10px;padding:13px 18px}.smart-product-filter-grid .field{margin:0}.smart-product-filter-footer{display:flex;align-items:center;flex-wrap:wrap;gap:14px;padding:11px 18px;border-top:1px solid #f0f1f4;background:#fafbfc}.smart-filter-toggle{display:inline-flex;align-items:center;gap:7px;color:#596273;font-size:10px;font-weight:750;cursor:pointer}.smart-filter-toggle input{width:15px;height:15px;accent-color:var(--accent)}.smart-search-note{margin-left:auto;padding:5px 8px;border-radius:999px;background:#e9f2ff;color:#3267a8;font-size:9px;font-weight:800}.smart-product-reset{color:#7f8999;font-size:10px;font-weight:800}.smart-product-reset:hover{color:var(--accent)}.smart-product-table .product-main-cell{min-width:290px}.smart-fitment-line{margin-top:6px;color:#667085;font-size:9px;line-height:1.45}.smart-fitment-line span{color:#98a2b3;font-weight:800}.smart-stock-detail{display:block;margin-top:3px;color:#98a2b3;font-size:9px;white-space:nowrap}.deal-product-search-fitment{display:block;margin-top:5px;color:#667085;font-size:9px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.smart-product-row:hover .product-title-link{color:var(--accent)}
@media(max-width:1180px){.smart-product-filter-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.smart-product-search-main{grid-template-columns:38px minmax(0,1fr)}.smart-product-search-icon{width:38px;height:38px}.smart-product-search-submit{grid-column:1/-1;width:100%}.smart-product-filter-grid{grid-template-columns:1fr 1fr}.smart-search-note{width:100%;margin-left:0}.smart-product-filter-footer{gap:10px}}
@media(max-width:520px){.smart-product-filter-grid{grid-template-columns:1fr}}

/* v9.9 supplier catalog */
.supplier-page-head code,.supplier-search-hint code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.supplier-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 16px}.supplier-search{margin-bottom:16px}.supplier-search-hint{display:flex;flex-direction:column;gap:6px;padding:28px;margin-top:16px}.supplier-search-hint span{color:var(--muted,#6b7280)}.supplier-list-card{overflow:hidden}.supplier-table td{vertical-align:top}.supplier-part{display:block;font-size:15px;letter-spacing:.01em}.supplier-description{max-width:680px;margin-top:6px;color:var(--muted,#667085);line-height:1.45}.supplier-add-form{display:grid;grid-template-columns:minmax(180px,1fr) 72px auto;gap:8px;align-items:center;min-width:420px}.supplier-qty-input{min-width:0}.text-success{color:#16803c}.text-danger{color:#b42318}
@media (max-width:1100px){.supplier-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.supplier-add-form{min-width:340px;grid-template-columns:1fr 64px}.supplier-add-form .btn{grid-column:1/-1}}
@media (max-width:640px){.supplier-kpis{grid-template-columns:1fr}.supplier-add-form{min-width:280px}}
.supplier-stock-strip{padding:18px;margin-bottom:16px}.supplier-stock-strip-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.supplier-stock-strip-head div{display:flex;flex-direction:column;gap:3px}.supplier-stock-strip-head span{color:var(--muted,#667085);font-size:13px}.supplier-stock-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.supplier-stock-item{display:flex;flex-direction:column;gap:4px;padding:12px;border:1px solid var(--border,#e5e7eb);border-radius:12px;text-decoration:none;color:inherit;background:var(--surface,#fff)}.supplier-stock-item:hover{border-color:#99a2b3;transform:translateY(-1px)}.supplier-stock-item span,.supplier-stock-item small{color:var(--muted,#667085)}@media(max-width:1100px){.supplier-stock-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.supplier-stock-grid{grid-template-columns:1fr}.supplier-stock-strip-head{align-items:flex-start;flex-direction:column}}

/* v10.0 Bitrix24 migration */
.bitrix-stats{margin-bottom:18px}.bitrix-audit-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:14px}.bitrix-audit-grid>div{padding:14px;border:1px solid var(--border,#e3e7ee);border-radius:14px;background:var(--surface-soft,#f8fafc);display:flex;flex-direction:column;gap:5px}.bitrix-audit-grid span{font-size:12px;color:var(--muted,#6b7280)}.bitrix-audit-grid strong{font-size:20px}.bitrix-map-chips{display:flex;flex-wrap:wrap;gap:10px}.bitrix-map-chips span{display:inline-flex;gap:6px;align-items:center;padding:8px 12px;border-radius:999px;background:#f2f5f9;border:1px solid #e0e6ed}.inline-form{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.alert.warning{background:#fff8e8;border:1px solid #f4d690;color:#6b4b00}.alert.error{background:#fff0f0;border:1px solid #f0b4b4;color:#8b1d1d}@media(max-width:900px){.bitrix-audit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.bitrix-audit-grid{grid-template-columns:1fr}}

/* v10.0.2 — Bitrix24 migration dashboard + scalable contact picker */
.bitrix-page-head{margin-bottom:18px}.bitrix-hero-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.bitrix-health-card{padding:18px;display:flex;align-items:center;gap:14px;min-height:108px;overflow:hidden}.bitrix-health-card.is-ok{border-color:#bfe3d2}.bitrix-health-card.is-warning{border-color:#eadcae}.bitrix-health-icon{width:46px;height:46px;flex:0 0 46px;border-radius:14px;background:linear-gradient(135deg,#eff5ff,#e5eefc);display:grid;place-items:center;font-weight:800;color:#315d9e;font-size:15px}.bitrix-health-card>div:last-child{min-width:0;display:flex;flex-direction:column;gap:4px}.bitrix-health-card span{font-size:12px;color:var(--muted,#6b7280)}.bitrix-health-card strong{font-size:18px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bitrix-health-card small{font-size:12px;color:var(--muted,#6b7280);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bitrix-source-panel{overflow:hidden}.bitrix-panel-head{gap:16px}.bitrix-source-status{margin:2px 0 14px;padding:11px 13px;border-radius:12px;background:#f7f9fc;color:#536174;font-size:13px;border:1px solid #e6ebf2}.bitrix-source-status.is-error{background:#fff1f1;border-color:#efc4c4;color:#9d2525}.bitrix-audit-progress{padding:14px 16px;border:1px solid #d9e3f1;border-radius:14px;background:#f7fbff;margin-bottom:14px}.bitrix-audit-progress>div:first-child{display:flex;justify-content:space-between;gap:12px;margin-bottom:8px}.bitrix-audit-progress small{display:block;margin-top:7px;color:#657386}.progress-track{height:8px;background:#e9edf3;border-radius:999px;overflow:hidden}.progress-track>span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#3f76c8,#4a93ed);transition:width .28s ease}.bitrix-progress-list{display:flex;flex-direction:column;gap:9px}.bitrix-progress-row{display:grid;grid-template-columns:minmax(210px,1.25fr) minmax(95px,.55fr) minmax(95px,.55fr) minmax(95px,.55fr) minmax(280px,1.6fr);gap:16px;align-items:center;padding:13px 15px;border:1px solid #e5eaf1;border-radius:15px;background:#fff;transition:border-color .2s ease,box-shadow .2s ease}.bitrix-progress-row:hover{border-color:#ccd9ea;box-shadow:0 5px 18px rgba(28,52,83,.05)}.bitrix-progress-identity{display:flex;align-items:center;gap:11px;min-width:0}.bitrix-entity-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:#f0f5fb;color:#315d9e;font-size:16px;flex:0 0 36px}.bitrix-progress-identity>div{min-width:0;display:flex;flex-direction:column;gap:2px}.bitrix-progress-identity strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bitrix-progress-identity small{font-size:11px;color:#8a95a5}.bitrix-progress-number{display:flex;flex-direction:column;gap:2px}.bitrix-progress-number span{font-size:11px;color:#8a95a5}.bitrix-progress-number strong{font-size:16px;font-variant-numeric:tabular-nums}.bitrix-progress-bars{display:flex;flex-direction:column;gap:8px}.bitrix-progress-line>div:first-child{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:#718095;margin-bottom:4px}.bitrix-progress-line b{color:#385f99;font-variant-numeric:tabular-nums}.bitrix-progress-line.is-run .progress-track>span{background:linear-gradient(90deg,#59a67d,#68bf91)}.bitrix-progress-line.is-run b{color:#347153}.bitrix-legend{display:flex;gap:20px;flex-wrap:wrap;margin-top:13px;font-size:12px;color:#68768a}.bitrix-legend span{display:flex;gap:7px;align-items:center}.legend-dot{width:9px;height:9px;border-radius:50%;display:inline-block;background:#4a93ed}.legend-dot.is-run{background:#68bf91}.bitrix-audit-grid>div.is-ok{background:#f1fbf6;border-color:#c7e7d5}.bitrix-audit-grid>div.is-warning{background:#fff9ec;border-color:#ecd99d}.bitrix-audit-grid>div.is-error{background:#fff2f2;border-color:#efc6c6}.bitrix-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:18px}.bitrix-action-card{margin:0}.bitrix-command{padding:13px 14px;background:#f7f9fc;border:1px solid #e4e9f0;border-radius:12px;display:flex;flex-direction:column;gap:5px;margin-bottom:14px}.bitrix-command code{font-size:13px;word-break:break-all}.bitrix-command span{font-size:12px;color:#748196}.bitrix-action-form{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.switch-line{display:flex;align-items:center;gap:8px;color:#536174;font-size:13px}.bitrix-run-summary{display:flex;gap:5px;flex-wrap:wrap}.bitrix-run-summary span{padding:4px 7px;border-radius:7px;background:#f1f4f8;color:#5c6879;font-size:11px;white-space:nowrap}.bitrix-status-running{background:#eaf4ff!important;color:#275f9d!important}.bitrix-status-completed{background:#eaf8ef!important;color:#276a43!important}.bitrix-status-failed{background:#fff0f0!important;color:#9b2929!important}.bitrix-status-queued{background:#fff8e8!important;color:#7a5b13!important}

.contact-picker{position:relative}.contact-picker-control{position:relative}.contact-picker-control .input{padding-right:38px}.contact-picker-clear{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:27px;height:27px;border:0;border-radius:8px;background:#eef2f6;color:#6c7888;font-size:19px;line-height:1;cursor:pointer}.contact-picker-clear:hover{background:#e2e8ef;color:#27384e}.contact-picker-selected{margin-top:7px;padding:8px 10px;border-radius:10px;background:#f5f8fc;border:1px solid #e3e9f1;display:flex;flex-direction:column;gap:2px}.contact-picker-selected strong{font-size:13px}.contact-picker-selected span{font-size:11px;color:#718095}.contact-picker-menu{position:absolute;left:0;right:0;z-index:80;margin-top:6px;max-height:340px;overflow:auto;background:#fff;border:1px solid #d9e0e9;border-radius:13px;box-shadow:0 18px 44px rgba(24,42,67,.16);padding:6px}.contact-picker-option{width:100%;border:0;background:transparent;display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:10px;align-items:center;text-align:left;padding:9px;border-radius:9px;cursor:pointer;color:inherit}.contact-picker-option:hover,.contact-picker-option.is-active{background:#eef5ff}.contact-picker-avatar{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#eaf1fa;color:#315d9e;font-weight:700}.contact-picker-option-main{display:flex;flex-direction:column;gap:2px;min-width:0}.contact-picker-option-main strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.contact-picker-option-main small{font-size:11px;color:#738196;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.contact-picker-id{font-size:11px;color:#9aa4b2}.contact-picker-empty,.contact-picker-loading{padding:13px 10px;color:#738196;font-size:12px;text-align:center}.contact-picker-empty.is-error{color:#9b2929}.contact-picker-loading{display:flex;justify-content:center;align-items:center;gap:8px}.contact-picker-spinner{width:15px;height:15px;border:2px solid #dbe3ed;border-top-color:#4a83d1;border-radius:50%;animation:contact-picker-spin .7s linear infinite}@keyframes contact-picker-spin{to{transform:rotate(360deg)}}

@media(max-width:1200px){.bitrix-hero-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bitrix-progress-row{grid-template-columns:minmax(180px,1fr) repeat(3,minmax(85px,.55fr));}.bitrix-progress-bars{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:14px}}
@media(max-width:800px){.bitrix-action-grid{grid-template-columns:1fr}.bitrix-progress-row{grid-template-columns:minmax(160px,1fr) repeat(2,minmax(85px,.6fr))}.bitrix-progress-number:nth-of-type(4){display:none}.bitrix-progress-bars{grid-template-columns:1fr}.bitrix-runs-table{min-width:820px}}
@media(max-width:560px){.bitrix-hero-grid{grid-template-columns:1fr}.bitrix-progress-row{grid-template-columns:1fr 1fr;gap:10px}.bitrix-progress-identity{grid-column:1/-1}.bitrix-progress-number{padding:7px 9px;background:#f8fafc;border-radius:9px}.bitrix-progress-number:nth-of-type(4){display:flex}.bitrix-progress-bars{grid-column:1/-1}.bitrix-panel-head{align-items:flex-start}.bitrix-panel-head .btn{width:100%}.contact-picker-menu{max-height:280px}}

/* v10.0.3 — mobile navigation hotfix */
.mobile-menu-toggle,
.mobile-menu-close,
.mobile-menu-backdrop { display: none; }

@media (max-width: 820px) {
    body.mobile-menu-open { overflow: hidden; }

    .app-shell { display: block; }

    .sidebar {
        display: flex;
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 1000;
        width: min(86vw, 320px);
        height: 100dvh;
        min-height: 100vh;
        padding: calc(18px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom));
        overflow: hidden;
        overscroll-behavior: contain;
        transform: translate3d(-105%, 0, 0);
        transition: transform .22s ease;
        box-shadow: 24px 0 60px rgba(15, 23, 42, .28);
        visibility: hidden;
    }

    .sidebar.is-open {
        transform: translate3d(0, 0, 0);
        visibility: visible;
    }

    .sidebar .brand {
        min-height: 48px;
        padding: 4px 52px 18px 6px;
    }

    .sidebar .nav { padding-bottom: 18px; }
    .sidebar .nav a { min-height: 46px; padding: 12px; }
    .sidebar-footer { padding-bottom: 4px; }

    .mobile-menu-close {
        display: grid;
        position: absolute;
        top: calc(18px + env(safe-area-inset-top));
        right: 14px;
        z-index: 2;
        width: 40px;
        height: 40px;
        place-items: center;
        border: 1px solid rgba(255,255,255,.10);
        border-radius: 12px;
        background: rgba(255,255,255,.08);
        color: #fff;
        font-size: 28px;
        line-height: 1;
    }

    .mobile-menu-close:active { transform: scale(.96); }

    .mobile-menu-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 990;
        border: 0;
        padding: 0;
        background: rgba(15, 23, 42, .50);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .2s ease, visibility .2s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-menu-backdrop.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .mobile-nav {
        display: flex;
        align-items: center;
        gap: 9px;
        min-width: 0;
        flex: 1 1 auto;
    }

    .mobile-nav .brand-mark {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        flex: 0 0 auto;
    }

    .mobile-nav strong {
        min-width: 0;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 13px;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        padding: 0;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 4px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: #fff;
        color: var(--text);
        box-shadow: 0 1px 2px rgba(23,32,51,.04);
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 18px;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
        transition: transform .18s ease, opacity .18s ease;
    }

    .mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

    .topbar {
        height: 64px;
        min-height: calc(64px + env(safe-area-inset-top));
        padding: env(safe-area-inset-top) 12px 0;
        gap: 8px;
    }

    .topbar-title { display: none; }
    .content { padding: 18px 14px calc(34px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
    .sidebar,
    .mobile-menu-backdrop,
    .mobile-menu-toggle span { transition: none !important; }
}

/* v10.0.5 — Bitrix24 Open Lines source/local comparison */
.bitrix-openline-run-state{display:flex;flex-direction:column;gap:3px;align-items:flex-end;color:#536174}.bitrix-openline-run-state strong{font-size:14px;color:var(--text)}.bitrix-openline-run-state small{font-size:12px}.bitrix-openline-table{min-width:860px}.bitrix-openline-table td,.bitrix-openline-table th{vertical-align:middle}.bitrix-openline-table td:nth-child(n+2){font-variant-numeric:tabular-nums}.bitrix-openline-table .bitrix-progress-line.compact{min-width:150px}.muted.block{display:block;margin-top:3px;color:#8a95a5;font-size:11px}@media(max-width:800px){.bitrix-openline-run-state{align-items:flex-start}.bitrix-openline-table{min-width:760px}}

/* v10.1.0 — Avito Messenger */
.avito-account-grid{margin-top:18px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}.avito-summary-card{min-width:0;display:flex;flex-direction:column;overflow:hidden;border-color:#e1e6ed;box-shadow:0 8px 30px rgba(23,32,51,.045)}.avito-summary-head{display:flex;align-items:center;gap:12px;padding:17px 18px;border-bottom:1px solid #edf0f4;background:linear-gradient(180deg,#fff 0%,#fcfdff 100%)}.avito-summary-head>div{min-width:0}.avito-summary-head h2{margin:0;font-size:15px;line-height:1.25;letter-spacing:-.01em}.avito-summary-head div>span{display:block;margin-top:4px;color:var(--muted);font-size:10px;line-height:1.35}.avito-summary-icon{width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;border-radius:12px;background:#fff3ed;color:#e95a28}.avito-summary-icon.is-blue{background:#eef4ff;color:#3267a8}.avito-summary-icon.is-green{background:#eaf8f1;color:#16845b}.avito-summary-body{flex:1;padding:5px 18px 16px}.avito-stat-list{margin:0;display:grid}.avito-stat-list>div{min-width:0;display:grid;grid-template-columns:minmax(105px,.82fr) minmax(0,1.18fr);gap:14px;align-items:center;padding:12px 0;border-bottom:1px solid #eff2f5}.avito-stat-list>div:last-child{border-bottom:0}.avito-stat-list dt{color:#7b8494;font-size:11px;line-height:1.35}.avito-stat-list dd{min-width:0;margin:0;color:#273247;font-size:12px;font-weight:750;line-height:1.4;text-align:right;overflow-wrap:anywhere}.avito-value-chip{display:inline-flex;align-items:center;padding:5px 8px;border:1px solid #dfe5ec;border-radius:8px;background:#f8fafc;color:#475467;font-size:10px;font-weight:800}.avito-status-pill{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:5px 8px;border-radius:999px;background:#f2f4f7;color:#667085;font-size:9px;font-weight:850;line-height:1.2}.avito-status-pill i{width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:currentColor}.avito-status-pill.is-success{background:#eaf8f1;color:#087c55}.avito-status-pill.is-danger{background:#fff0f1;color:#b4233d}.avito-status-pill.is-neutral{background:#f2f4f7;color:#667085}.avito-break-value{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:10px!important;font-weight:650!important;word-break:break-all}.avito-summary-footer{min-height:68px;margin-top:auto;padding:13px 18px;display:flex;align-items:center;border-top:1px solid #edf0f4;background:#fafbfc}.avito-summary-footer form{margin:0}.avito-summary-footer .btn{min-height:38px;font-size:11px}.avito-summary-actions{gap:8px;flex-wrap:wrap}.avito-summary-actions form{display:flex}.avito-secret-box{margin-top:12px;padding:12px;border:1px solid #e4e9f0;border-radius:12px;background:#f8fafc}.avito-secret-box>label{display:block;margin-bottom:7px;color:#475467;font-size:10px;font-weight:800}.avito-secret-box>small{display:block;margin-top:7px;color:#7b8494;font-size:9px;line-height:1.45}.avito-secret-control{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}.avito-secret-control .input{height:39px;min-width:0;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:10px;background:#fff}.avito-secret-control .btn{min-height:39px;padding:0 11px;font-size:10px}.avito-summary-note{margin-top:12px;padding:10px 11px;border-radius:10px;background:#f4f7fb;color:#596579;font-size:10px;line-height:1.5}.avito-summary-note strong,.avito-summary-note span{display:block}.avito-summary-note span+span{margin-top:5px}.avito-summary-note.is-warning{border:1px solid #f2d6a2;background:#fff8e8;color:#795000}.avito-sync-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}.avito-sync-metrics>div{padding:11px;border:1px solid #e8edf2;border-radius:11px;background:#fafbfc}.avito-sync-metrics strong{display:block;font-size:19px;line-height:1.1;letter-spacing:-.02em}.avito-sync-metrics span{display:block;margin-top:4px;color:#7b8494;font-size:9px;line-height:1.3}.avito-stat-list-compact>div{padding:8px 0}.avito-command-hint{margin-top:12px;padding:10px 11px;border:1px dashed #d7dee8;border-radius:10px;background:#fff}.avito-command-hint span{display:block;margin-bottom:5px;color:#7b8494;font-size:9px}.avito-command-hint code{display:block;color:#364152;font-size:9px;line-height:1.45;overflow-wrap:anywhere}.avito-context-card{display:flex;flex-direction:column;gap:8px;border-bottom:1px solid var(--border,#e8e8e8)}.avito-context-card .eyebrow{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted,#7a7a7a)}.chat-attachment-rich{display:flex;flex-direction:column;align-items:flex-start;gap:6px}.chat-attachment-image{display:block;max-width:min(360px,100%);max-height:320px;object-fit:cover;border-radius:12px;border:1px solid rgba(0,0,0,.08);background:#f6f6f6}.chat-attachment-audio{width:min(360px,100%);height:42px}.avito-provider-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 9px;border-radius:999px;background:#eef3ff;color:#2454b8;font-size:12px;font-weight:700}@media(max-width:1180px){.avito-account-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.avito-account-grid>.avito-summary-card:last-child{grid-column:1/-1}}@media(max-width:760px){.avito-account-grid{grid-template-columns:1fr}.avito-account-grid>.avito-summary-card:last-child{grid-column:auto}.avito-stat-list>div{grid-template-columns:1fr;gap:5px}.avito-stat-list dd{text-align:left}.avito-summary-footer,.avito-summary-actions{align-items:stretch}.avito-summary-footer .btn,.avito-summary-footer form{width:100%}.avito-secret-control{grid-template-columns:1fr}.chat-attachment-image,.chat-attachment-audio{width:100%;max-width:100%}}


/* v10.1.2 Operations dashboard */
.ops-dashboard{display:grid;gap:18px;margin:18px 0}.ops-runtime-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.ops-runtime-card{position:relative;display:flex;flex-direction:column;gap:7px;min-height:154px}.ops-runtime-card>strong{font-size:30px;line-height:1}.ops-runtime-card>small{color:var(--muted)}.ops-mini-line{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted)}.ops-mini-line b{color:var(--text)}.text-danger{color:#ef4444!important}.text-warning{color:#f59e0b!important}.ops-heartbeat-dot,.ops-health-dot{width:10px;height:10px;border-radius:999px;background:#64748b;box-shadow:0 0 0 4px rgba(100,116,139,.12)}.ops-heartbeat-dot{position:absolute;right:18px;top:18px}.ops-heartbeat-dot.is-ok,.ops-health-dot.is-ok{background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.13)}.ops-heartbeat-dot.is-warning,.ops-health-dot.is-warning{background:#f59e0b;box-shadow:0 0 0 4px rgba(245,158,11,.13)}.ops-heartbeat-dot.is-fail,.ops-health-dot.is-fail{background:#ef4444;box-shadow:0 0 0 4px rgba(239,68,68,.13)}.ops-integrations-card,.ops-webhook-errors{overflow:hidden}.ops-integration-list{display:grid;gap:9px}.ops-integration-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:14px;align-items:center;border:1px solid var(--line);border-radius:14px;padding:13px 14px;background:var(--surface-soft)}.ops-integration-main{display:grid;gap:3px}.ops-integration-main small,.ops-integration-main em{font-size:12px;color:var(--muted);font-style:normal}.ops-integration-stats{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;color:var(--muted)}.ops-integration-stats b{color:var(--text)}.ops-error-cell{max-width:520px;white-space:normal;word-break:break-word}.compact-table td,.compact-table th{padding:10px 12px}@media(max-width:1100px){.ops-runtime-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.ops-runtime-grid{grid-template-columns:1fr}.ops-integration-row{grid-template-columns:auto minmax(0,1fr)}.ops-integration-stats{grid-column:2}.ops-webhook-errors .table-wrap{overflow:auto}}

/* v10.2.0 — unified client/deal history */
.unified-timeline-wrap{overflow:hidden}.unified-timeline-head{align-items:flex-end}.unified-timeline-eyebrow{display:block;color:var(--accent);font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;margin-bottom:4px}.unified-timeline-head h2{margin:0}.unified-timeline-filters{display:flex;gap:6px;flex-wrap:wrap;padding:10px 16px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#fafbfc}.unified-timeline-filter{padding:6px 10px;border:1px solid #dfe3e8;border-radius:999px;color:#667085;background:#fff;font-size:10px;font-weight:800}.unified-timeline-filter:hover,.unified-timeline-filter.is-active{border-color:#a9c7f8;background:#edf4ff;color:#1f5fae}.unified-timeline{padding:2px 16px}.unified-timeline-event{position:relative;display:grid;grid-template-columns:38px minmax(0,1fr);gap:11px;padding:14px 0;border-bottom:1px solid #edf0f3}.unified-timeline-event:last-child{border-bottom:0}.unified-timeline-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:#f2f4f7;color:#596273;font-size:15px;font-weight:900}.unified-timeline-event.is-message.is-incoming .unified-timeline-icon{background:#ecfdf3;color:#237344}.unified-timeline-event.is-message.is-outgoing .unified-timeline-icon{background:#eef4ff;color:#245fae}.unified-timeline-event.is-stage .unified-timeline-icon{background:#fff5e5;color:#9a6700}.unified-timeline-content{min-width:0}.unified-timeline-event-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.unified-timeline-title-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-width:0}.unified-timeline-title-row strong{font-size:12px;line-height:1.4}.unified-timeline-event-head time{flex:0 0 auto;color:#98a2b3;font-size:9px}.unified-channel-badge,.unified-source-badge{display:inline-flex;padding:3px 6px;border-radius:999px;background:#f1f4f8;color:#667085;font-size:8px;font-weight:850;text-transform:uppercase;letter-spacing:.03em}.unified-channel-badge{background:#eef4ff;color:#3267a8}.unified-timeline-body{margin-top:6px;color:#475467;font-size:11px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}.unified-timeline-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:7px;color:#98a2b3;font-size:9px}.unified-timeline-meta a{color:var(--accent);font-weight:800}.unified-timeline-attachments{display:flex;gap:8px;flex-wrap:wrap;margin-top:9px}.unified-attachment-preview{width:82px;height:64px;overflow:hidden;border:1px solid var(--line);border-radius:9px;background:#f4f5f7}.unified-attachment-preview img{width:100%;height:100%;object-fit:cover}.unified-audio{width:min(360px,100%);height:34px}.unified-file-link{display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#475467;font-size:9px;font-weight:750}.unified-timeline-pagination{padding:8px 16px 16px}.unified-timeline-empty{margin:18px 0}.deal-card-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,.65fr);gap:14px;align-items:start}.deal-history-column{grid-column:1/-1}.deal-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.deal-summary-kpi{padding:13px;border:1px solid var(--line);border-radius:12px;background:#fafbfc}.deal-summary-kpi span{display:block;color:#98a2b3;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.04em}.deal-summary-kpi strong{display:block;margin-top:5px;font-size:15px;line-height:1.3}.deal-summary-info{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.status-chip{display:inline-flex;padding:5px 8px;border-radius:999px;background:#eef4ff;color:#3267a8;font-size:9px;font-weight:850}.deal-conversation-list,.deal-products-mini-list{display:grid;gap:7px}.deal-conversation-item,.deal-product-mini{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px;border:1px solid #edf0f3;border-radius:9px;background:#fff}.deal-conversation-item:hover{border-color:#cbd9ef;background:#fbfdff}.deal-conversation-item div,.deal-product-mini div{min-width:0}.deal-conversation-item strong,.deal-product-mini strong{display:block;font-size:10px}.deal-conversation-item span,.deal-product-mini span{display:block;margin-top:3px;color:#7f8999;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.deal-conversation-item time,.deal-product-mini b{flex:0 0 auto;color:#98a2b3;font-size:9px}.deal-products-mini-head{border-top:1px solid var(--line)}.empty-mini{padding:8px 0;color:#98a2b3;font-size:10px}
@media(max-width:900px){.deal-card-layout{grid-template-columns:1fr}.deal-summary-grid{grid-template-columns:1fr 1fr}.deal-summary-info{grid-template-columns:1fr}.unified-timeline-event-head{display:block}.unified-timeline-event-head time{display:block;margin-top:3px}.unified-timeline-event{grid-template-columns:32px minmax(0,1fr);gap:9px}.unified-timeline-icon{width:30px;height:30px;border-radius:9px}.unified-timeline-filters{overflow-x:auto;flex-wrap:nowrap}.unified-timeline-filter{white-space:nowrap}}
.deal-conversation-item>a:first-child{min-width:0;flex:1}.deal-chat-open-actions{display:flex!important;align-items:center;gap:8px!important;margin-top:0!important;overflow:visible!important}.deal-chat-open-actions a{font-size:14px;color:var(--accent)}.deal-work-panel{min-width:0}.deal-work-list{display:grid;gap:9px}.deal-work-row{display:flex;justify-content:space-between;gap:10px;padding:10px;border:1px solid var(--line);border-radius:10px}.deal-work-row strong,.deal-work-row span{display:block}.deal-work-row span{margin-top:3px;color:var(--muted);font-size:10px}.deal-work-row p{margin:8px 0 0;white-space:pre-wrap;font-size:11px}.deal-inline-form{display:grid;gap:8px}.deal-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:9px}.deal-photo-grid a{display:grid;gap:4px;padding:12px;border:1px solid var(--line);border-radius:10px}.deal-photo-grid small,.deal-camera-form small{color:var(--muted)}.deal-camera-form{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:12px}@media(max-width:600px){.deal-camera-form .btn{width:100%;justify-content:center}.deal-photo-grid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.deal-summary-grid{grid-template-columns:1fr}.unified-timeline{padding:2px 11px}.unified-timeline-filters{padding:9px 11px}.unified-timeline-attachment{max-width:100%}}

/* v10.3.7 — Avito deal source + inline chat inbox */
.deal-card-title { display:block; line-height:1.35; overflow-wrap:anywhere; }
.deal-source-name { color:var(--accent); font-weight:850; }
.deal-source-separator { color:#98a2b3; font-weight:700; }

.conversation-filter-panel { margin-bottom:18px; }
.conversation-unread-first-toggle { display:inline-flex; align-items:center; gap:7px; min-height:35px; color:#475467; font-size:10px; font-weight:800; white-space:nowrap; cursor:pointer; }
.conversation-unread-first-toggle input[type="checkbox"] { width:16px; height:16px; margin:0; accent-color:var(--accent); cursor:pointer; }

/* ChatGPT usage analytics v10.31.8 */
.chatgpt-filters{padding:16px;margin-bottom:16px}.chatgpt-budget-card{margin-bottom:16px}.chatgpt-budget-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(360px,.75fr);gap:22px}.chatgpt-budget-value{font-size:20px;text-align:right}.chatgpt-budget-value small{display:block;color:var(--muted);font-size:12px;font-weight:500;margin-top:3px}.chatgpt-progress{height:14px;background:var(--surface-soft);border-radius:999px;overflow:hidden;margin:4px 0 16px}.chatgpt-progress i{display:block;height:100%;background:linear-gradient(90deg,#22c55e,#16a34a);border-radius:inherit;transition:width .25s ease}.chatgpt-progress.is-warning i{background:linear-gradient(90deg,#f59e0b,#d97706)}.chatgpt-progress.is-danger i{background:linear-gradient(90deg,#ef4444,#dc2626)}.chatgpt-budget-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:14px}.chatgpt-budget-facts div{padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft)}.chatgpt-budget-facts span,.chatgpt-budget-facts strong{display:block}.chatgpt-budget-facts span{color:var(--muted);font-size:12px;margin-bottom:5px}.chatgpt-budget-facts strong{font-size:15px}.chatgpt-cost-settings{border:1px solid var(--line);border-radius:14px;padding:0 14px;background:var(--surface-soft)}.chatgpt-cost-settings summary{cursor:pointer;font-weight:700;padding:14px 0}.chatgpt-cost-settings form{padding:0 0 14px}.chatgpt-cost-settings h3{font-size:14px;margin:14px 0 8px}.form-grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 14px}.chatgpt-metrics{grid-template-columns:repeat(6,minmax(0,1fr))}.chatgpt-report-grid .report-table td small{display:block;margin-top:3px;color:var(--muted)}.chatgpt-status-success{background:#eaf8f1;color:var(--success)}.chatgpt-status-danger{background:#fff0f0;color:var(--danger)}
/* Compact ChatGPT filters + deals unread-first v10.31.16 */
.chatgpt-filter-compact{position:relative;padding:10px 12px;margin-bottom:14px;overflow:visible}
.chatgpt-filter-row{display:grid;grid-template-columns:minmax(285px,1.25fr) minmax(155px,.65fr) minmax(120px,.5fr) auto auto;gap:9px;align-items:end}
.chatgpt-filter-row .field{margin:0}.chatgpt-filter-row .field>label{display:block;margin-bottom:4px;font-size:10px}
.chatgpt-filter-row .input,.chatgpt-filter-row .select{height:36px;min-height:36px;padding-top:7px;padding-bottom:7px}
.chatgpt-date-range{display:grid;grid-template-columns:minmax(120px,1fr) auto minmax(120px,1fr);gap:7px;align-items:end}
.chatgpt-date-range>span{padding-bottom:9px;color:var(--muted);font-size:11px;font-weight:800}
.chatgpt-filter-more{position:relative;align-self:end}
.chatgpt-filter-more>summary{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:#475467;font-size:11px;font-weight:800;white-space:nowrap;cursor:pointer;list-style:none}
.chatgpt-filter-more>summary::-webkit-details-marker{display:none}.chatgpt-filter-more[open]>summary{border-color:#b9cdfb;background:#f5f8ff;color:#1849a9}
.chatgpt-filter-more>summary i{display:grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--accent);color:#fff;font-size:9px;font-style:normal}
.chatgpt-filter-popover{position:absolute;z-index:80;right:0;top:calc(100% + 8px);width:min(650px,calc(100vw - 48px));padding:14px;display:grid;grid-template-columns:repeat(2,minmax(180px,1fr));gap:10px;box-shadow:0 18px 45px rgba(15,23,42,.16)}
.chatgpt-filter-actions{display:flex;align-items:center;gap:9px;min-height:36px;white-space:nowrap}.chatgpt-filter-actions .btn{min-height:36px;padding-top:8px;padding-bottom:8px}
.deal-unread-first-toggle{margin-right:auto;padding:0 4px}#deals-kanban[data-unread-first="1"] .deal-card-has-unread{box-shadow:0 0 0 2px rgba(24,73,169,.12)}
.deal-filter-panel{padding:8px 10px;margin-bottom:10px;border-radius:13px}
.deal-filter-grid{grid-template-columns:minmax(230px,1.4fr) minmax(135px,.68fr) minmax(145px,.72fr) minmax(160px,.8fr) minmax(175px,.9fr) minmax(390px,1.3fr);gap:8px;align-items:end}
.deal-filter-grid .field>label{display:block;margin-bottom:3px;font-size:9px}
.deal-filter-grid .input,.deal-filter-grid .select{height:35px;min-height:35px;padding-top:6px;padding-bottom:6px;border-radius:9px;font-size:11px}
.deal-filter-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:35px}
.deal-filter-toggles{display:flex;align-items:center;gap:12px;min-width:0}
.deal-filter-toggles .conversation-unread-first-toggle{min-height:35px;padding:0;margin:0;font-size:9px}
.deal-filter-buttons{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.deal-filter-buttons .btn{min-height:35px;padding:0 11px;font-size:10px}
.deal-filter-buttons .text-link{font-size:9px;white-space:nowrap}
@media(max-width:1180px){.chatgpt-filter-row{grid-template-columns:minmax(260px,1fr) minmax(150px,.65fr) minmax(120px,.5fr) auto}.chatgpt-filter-actions{grid-column:1/-1;justify-content:flex-end}}
@media(max-width:1580px){.deal-filter-grid{grid-template-columns:minmax(230px,1.4fr) repeat(4,minmax(140px,.75fr))}.deal-filter-actions{grid-column:1/-1}.deal-filter-toggles{margin-right:auto}}
@media(max-width:760px){.chatgpt-filter-row{grid-template-columns:1fr}.chatgpt-date-range{grid-template-columns:1fr auto 1fr}.chatgpt-filter-more{width:100%}.chatgpt-filter-more>summary{width:100%}.chatgpt-filter-popover{position:static;width:100%;margin-top:8px;grid-template-columns:1fr;box-shadow:none}.chatgpt-filter-actions{grid-column:auto;justify-content:flex-start;flex-wrap:wrap}.chatgpt-filter-actions .btn{flex:1}.deal-unread-first-toggle{width:100%;margin:0 0 4px}}
@media(max-width:760px){.deal-filter-grid{grid-template-columns:1fr}.deal-filter-actions{grid-column:auto;align-items:flex-start;flex-direction:column}.deal-filter-toggles{width:100%;align-items:flex-start;flex-direction:column;gap:2px}.deal-filter-toggles .conversation-unread-first-toggle{width:100%;min-height:30px}.deal-filter-buttons{width:100%}.deal-filter-buttons .btn{flex:1}}
@media(max-width:430px){.chatgpt-date-range{grid-template-columns:1fr}.chatgpt-date-range>span{display:none}}
@media(max-width:1200px){.chatgpt-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.chatgpt-budget-grid{grid-template-columns:1fr}}
@media(max-width:720px){.chatgpt-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.chatgpt-budget-facts,.form-grid-3{grid-template-columns:1fr}.chatgpt-budget-value{text-align:left}.chatgpt-budget-card .panel-head{align-items:flex-start;flex-direction:column}}
.conversation-inbox { display:grid; grid-template-columns:minmax(300px,360px) minmax(0,1fr); gap:18px; align-items:start; }
.conversation-inbox-list { overflow:hidden; min-width:0; }
.conversation-inbox-list-head { min-height:48px; padding:12px 14px; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:12px; }
.conversation-inbox-list-head strong { font-size:13px; }
.conversation-inbox-list-head span { color:var(--muted); font-size:10px; }
.conversation-list-compact { max-height:calc(100vh - 335px); min-height:520px; overflow:auto; }
.conversation-row-compact { position:relative; align-items:flex-start; gap:9px; padding:11px 12px; }
.conversation-row-open { display:flex; flex:1 1 auto; min-width:0; align-items:flex-start; gap:9px; color:inherit; text-decoration:none; }
.conversation-row-open:focus-visible { border-radius:8px; outline:2px solid color-mix(in srgb,var(--accent) 55%,transparent); outline-offset:2px; }
.conversation-row-compact .channel-icon { width:34px; height:34px; border-radius:10px; font-size:10px; }
.conversation-row-compact .conversation-top { gap:8px; }
.conversation-row-compact .conversation-top strong { font-size:12px; }
.conversation-row-compact .conversation-top time { font-size:9px; }
.conversation-row-compact .unread-badge { min-width:19px; height:19px; padding:0 5px; font-size:8px; }
.conversation-row-compact.is-selected { background:#f1f5f9; box-shadow:inset 3px 0 0 var(--accent); }
.conversation-row-compact.is-selected:hover { background:#eef3f8; }
.conversation-integration-line { margin-top:3px; color:#667085; font-size:9px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.conversation-row-compact .conversation-preview { margin-top:5px; color:#7a8493; font-size:10px; line-height:1.35; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.conversation-inbox-list-footer { padding:10px 12px; border-top:1px solid var(--line); }
.conversation-inbox-empty { min-height:220px; }
.conversation-bulk-form { min-height:0; display:flex; flex:1 1 auto; flex-direction:column; }
.conversation-bulk-toolbar { flex:0 0 auto; padding:9px 10px; display:grid; gap:7px; border-bottom:1px solid var(--line); background:#f8fafc; }
.conversation-bulk-selectors { display:flex; align-items:center; flex-wrap:wrap; gap:7px 10px; color:#667085; font-size:9px; }
.conversation-bulk-selectors label { display:inline-flex; align-items:center; gap:5px; color:#344054; font-weight:800; cursor:pointer; }
.conversation-bulk-selectors input,.conversation-bulk-checkbox { width:16px; height:16px; margin:0; accent-color:var(--accent); cursor:pointer; }
.conversation-bulk-selectors button { padding:0; border:0; background:transparent; color:#2878d0; font:inherit; font-weight:750; cursor:pointer; }
.conversation-bulk-selectors button:hover { color:var(--accent); }
.conversation-bulk-selectors span { margin-left:auto; white-space:nowrap; }
.conversation-bulk-submit { width:100%; min-height:32px!important; padding:5px 9px!important; font-size:10px!important; }
.conversation-bulk-toolbar small { color:#7a8493; font-size:9px; line-height:1.3; text-align:center; }
.conversation-bulk-checkbox { flex:0 0 16px; margin-top:9px; }
.conversation-row-compact.is-bulk-selected { background:#fff4ee; box-shadow:inset 3px 0 0 var(--accent); }
.conversation-row-compact.is-bulk-selected:hover { background:#ffefe7; }
.conversation-inbox-detail { min-width:0; }
.conversation-inline-alert { margin-bottom:12px; }
.conversation-inline-thread { min-height:680px; }
.conversation-inline-head { position:sticky; top:0; z-index:2; background:#fff; }
.conversation-inline-title { min-width:0; }
.conversation-inline-title strong { overflow-wrap:anywhere; }
.conversation-inline-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px; font-size:10px; }
.conversation-hide-form { margin:0; }
.conversation-hide-button { display:inline-flex; align-items:center; gap:5px; padding:0; border:0; background:transparent; color:#667085; font:inherit; font-weight:750; cursor:pointer; }
.conversation-hide-button:hover { color:#b54708; }
.conversation-hide-button svg { width:15px; height:15px; fill:currentColor; }
.conversation-hide-page-button { color:#667085; }
.conversation-hide-page-button:hover { color:#b54708; border-color:#f0b66d; background:#fff8ed; }
.conversation-inline-context { padding:9px 18px; border-bottom:1px solid var(--line); background:#fafbfc; display:flex; flex-wrap:wrap; gap:6px; align-items:center; font-size:10px; color:var(--muted); }
.conversation-inline-context strong { color:var(--text); }
.conversation-inline-messages { height:calc(100vh - 500px); min-height:360px; max-height:720px; }
.conversation-inline-messages .chat-bubble { max-width:min(78%,760px); }
.conversation-inline-compose { position:sticky; bottom:0; z-index:2; }
.conversation-inline-readonly { margin:14px 18px 18px; }
.conversation-detail-empty { min-height:680px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; padding:36px; text-align:center; overflow:hidden; background:radial-gradient(circle at 50% 38%,#fff 0,#f7faff 48%,#f3f6fb 100%); }
.conversation-detail-empty strong { color:#1d2939; font-size:20px; line-height:1.25; }
.conversation-detail-empty>span { max-width:420px; color:#667085; font-size:13px; line-height:1.55; }
.conversation-welcome-illustration { position:relative; width:112px; height:112px; margin-bottom:12px; display:grid; place-items:center; border:1px solid #d9e5ff; border-radius:34px; background:linear-gradient(145deg,#fff 0%,#edf4ff 100%); box-shadow:0 18px 45px rgba(49,92,171,.15); }
.conversation-welcome-wave { font-size:51px; line-height:1; transform:rotate(-7deg); filter:drop-shadow(0 6px 9px rgba(16,24,40,.12)); }
.conversation-welcome-bubble { position:absolute; display:grid; place-items:center; width:34px; height:34px; border:3px solid #fff; border-radius:50%; box-shadow:0 7px 18px rgba(16,24,40,.13); font-size:17px; }
.conversation-welcome-bubble-one { right:-12px; top:10px; background:#eaf2ff; }
.conversation-welcome-bubble-two { left:-10px; bottom:8px; background:#fff4df; }

@media (max-width:1280px) {
    .conversation-inbox { grid-template-columns:minmax(280px,330px) minmax(0,1fr); gap:14px; }
    .conversation-inline-actions { max-width:210px; }
}
@media (max-width:1020px) {
    .conversation-inbox { grid-template-columns:1fr; }
    .conversation-list-compact { max-height:380px; min-height:0; }
    .conversation-inline-messages { height:55vh; min-height:340px; }
    .conversation-detail-empty { min-height:320px; }
}


/* v10.3.8 realtime chat state */
.chat-live-indicator { display:inline-flex; align-items:center; margin-left:6px; font-size:9px; font-weight:800; color:#23935b; white-space:nowrap; }
.chat-live-indicator.is-live { color:#23935b; }
.chat-live-indicator.is-fallback { color:#b7791f; }
.chat-live-indicator.is-paused { color:var(--muted); }

/* Personal user menu v10.4.0 */
.sidebar-menu-customize { display:flex; align-items:center; gap:10px; margin:5px 0 2px; padding:9px 8px; border-radius:9px; color:rgba(255,255,255,.6); font-size:13px; font-weight:650; }
.sidebar-menu-customize:hover, .sidebar-menu-customize.active { color:#fff; background:rgba(255,255,255,.08); }
.account-tabs { display:flex; gap:8px; margin:-4px 0 18px; flex-wrap:wrap; }
.account-tabs a { padding:9px 13px; border-radius:9px; border:1px solid var(--line); background:#fff; color:var(--muted); font-size:13px; font-weight:700; }
.account-tabs a.active, .account-tabs a:hover { color:var(--text); border-color:#cbd5e1; background:#f8fafc; }
.menu-editor-card { max-width:1080px; padding:20px; }
.menu-editor-note { display:flex; flex-direction:column; gap:4px; margin-bottom:18px; padding:13px 15px; border-radius:10px; background:#f8fafc; border:1px solid #e2e8f0; font-size:13px; line-height:1.45; }
.menu-editor-note span { color:var(--muted); }
.menu-editor-list { display:grid; gap:8px; }
.menu-editor-row { display:grid; grid-template-columns:32px 32px minmax(0,1fr) auto auto; gap:10px; align-items:center; min-height:64px; padding:10px 12px; border:1px solid var(--line); border-radius:11px; background:#fff; transition:box-shadow .12s ease, border-color .12s ease, opacity .12s ease; }
.menu-editor-row.has-color-preview { border-left:4px solid var(--menu-preview-color); padding-left:9px; }
.menu-editor-row.has-color-preview .menu-editor-icon { color:var(--menu-preview-color); }
.menu-color-option { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:9px; color:var(--muted); font-size:12px; }
.menu-color-control { display:inline-flex; align-items:center; gap:6px; min-height:30px; padding:3px 8px 3px 4px; border:1px solid var(--line); border-radius:8px; background:#fff; color:#475569; font-weight:700; cursor:pointer; }
.menu-color-control input[type="color"] { width:28px; height:22px; padding:0; border:0; border-radius:5px; background:transparent; cursor:pointer; }
.menu-color-control input[type="color"]::-webkit-color-swatch-wrapper { padding:0; }
.menu-color-control input[type="color"]::-webkit-color-swatch { border:0; border-radius:5px; }
.menu-color-enabled { display:inline-flex; align-items:center; gap:5px; color:#475569; cursor:pointer; }
.menu-color-reset { border:0; padding:3px 0; background:transparent; color:#64748b; font-size:12px; text-decoration:underline; cursor:pointer; }
.menu-editor-row.is-dragging { opacity:.5; box-shadow:0 8px 24px rgba(15,23,42,.1); }
.menu-editor-row.is-drag-over { border-color:#94a3b8; }
.menu-drag-handle { width:30px; height:34px; border:0; border-radius:8px; background:transparent; color:#94a3b8; cursor:grab; font-size:17px; letter-spacing:-3px; }
.menu-drag-handle:hover { background:#f1f5f9; color:#475569; }
.menu-editor-icon { width:30px; height:30px; display:grid; place-items:center; border-radius:8px; background:#f8fafc; color:#64748b; }
.menu-editor-main { min-width:0; }
.menu-editor-titleline { display:flex; align-items:center; gap:8px; min-width:0; }
.menu-editor-titleline strong { font-size:14px; }
.menu-kind-badge { padding:2px 7px; border-radius:999px; background:#eef2ff; color:#4f46e5; font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.menu-editor-url { display:block; margin-top:4px; color:#94a3b8; font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.menu-custom-fields { display:grid; grid-template-columns:minmax(150px,.7fr) minmax(240px,1.3fr); gap:8px; }
.menu-custom-fields label > span { display:block; margin-bottom:4px; color:#64748b; font-size:10px; font-weight:750; text-transform:uppercase; letter-spacing:.04em; }
.menu-custom-fields .input { min-height:36px; padding:7px 9px; font-size:13px; }
.menu-new-tab-option, .menu-visibility-toggle { display:flex; align-items:center; gap:7px; color:#64748b; font-size:12px; white-space:nowrap; }
.menu-new-tab-option { margin-top:7px; }
.menu-editor-actions { display:flex; align-items:center; gap:4px; }
.menu-move-btn { width:30px; height:30px; border:1px solid var(--line); border-radius:8px; background:#fff; color:#64748b; cursor:pointer; }
.menu-move-btn:hover { background:#f8fafc; color:#0f172a; }
.menu-delete-btn { border:0; background:transparent; color:#b91c1c; font-size:12px; font-weight:700; padding:7px; cursor:pointer; }
.menu-delete-btn:hover { text-decoration:underline; }
.menu-system-lock { width:30px; text-align:center; filter:grayscale(1); opacity:.45; font-size:13px; }
.menu-editor-toolbar { display:flex; justify-content:space-between; gap:12px; margin-top:18px; padding-top:16px; border-top:1px solid var(--line); }
@media (max-width: 900px) {
    .menu-editor-row { grid-template-columns:28px 30px minmax(0,1fr); }
    .menu-visibility-toggle { grid-column:3; }
    .menu-editor-actions { grid-column:3; }
    .menu-custom-fields { grid-template-columns:1fr; }
}
@media (max-width: 560px) {
    .menu-editor-card { padding:13px; }
    .menu-editor-row { padding:10px 8px; gap:7px; }
    .menu-editor-toolbar { flex-direction:column; }
    .menu-editor-toolbar .btn { width:100%; justify-content:center; }
}

/* v10.4.1 — compact viewport chats + keyboard composer */
.chat-compose { flex:0 0 auto; padding:10px 12px 12px; }
.chat-compose .quick-reply-strip { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:thin; margin-bottom:8px; padding-bottom:2px; }
.chat-compose .quick-reply-chip { flex:0 0 auto; }
.chat-compose-box {
    display:grid;
    grid-template-columns:40px minmax(0,1fr) auto;
    gap:6px;
    align-items:end;
    padding:5px;
    border:1px solid var(--line);
    border-radius:15px;
    background:#fff;
    transition:border-color .18s ease, box-shadow .18s ease;
}
.chat-compose-box:focus-within { border-color:#98a2b3; box-shadow:0 0 0 3px rgba(23,32,51,.06); }
.chat-compose-box.has-voice-dictation { grid-template-columns:40px minmax(0,1fr) 40px auto; }
.chat-attachment-input {
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
}
.chat-attach-button {
    width:40px;
    height:40px;
    display:grid;
    place-items:center;
    border-radius:11px;
    color:#667085;
    background:#f4f6f8;
    border:1px solid #e7e9ed;
    font-size:25px;
    font-weight:400;
    line-height:1;
    cursor:pointer;
    user-select:none;
}
.chat-attach-button:hover { color:var(--accent); border-color:#f2b49e; background:#fff7f3; }
.chat-voice-button {
    width:40px;
    height:40px;
    display:grid;
    place-items:center;
    padding:0;
    border:1px solid #e7e9ed;
    border-radius:11px;
    background:#f4f6f8;
    color:#475467;
    font-size:18px;
    line-height:1;
    cursor:pointer;
    transition:background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.chat-voice-button:hover { color:var(--accent); border-color:#f2b49e; background:#fff7f3; }
.chat-voice-button.is-recording { border-color:#f04438; background:#fff1f0; color:#d92d20; box-shadow:0 0 0 4px rgba(240,68,56,.12); animation:chat-voice-pulse 1.25s ease-in-out infinite; }
.chat-voice-button:disabled { opacity:.52; cursor:not-allowed; animation:none; box-shadow:none; }
@keyframes chat-voice-pulse { 50% { box-shadow:0 0 0 8px rgba(240,68,56,.04); } }
.chat-compose .chat-compose-text {
    min-height:40px;
    max-height:112px;
    height:40px;
    padding:9px 6px 8px;
    border:0;
    border-radius:0;
    resize:none;
    overflow-y:hidden;
    box-shadow:none;
    line-height:1.45;
}
.chat-compose .chat-compose-text:focus { border:0; box-shadow:none; }
.chat-send-button { min-height:40px; height:40px; padding:0 15px; border-radius:11px; }
.chat-send-button:disabled { opacity:.65; cursor:wait; transform:none; box-shadow:none; }
.chat-compose-meta { min-height:18px; margin-top:5px; display:flex; align-items:center; justify-content:space-between; gap:10px; color:#98a2b3; font-size:9px; line-height:1.3; }
.chat-compose-file-name { min-width:0; max-width:55%; color:#667085; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.chat-dictation-status { min-width:0; color:#667085; font-weight:700; }
.chat-dictation-status.is-recording { color:#b42318; }
.chat-dictation-status.is-success { color:#067647; }
.chat-dictation-status.is-error { color:#b42318; }
.chat-voice-cancel { padding:0; border:0; background:transparent; color:#b42318; font-size:9px; font-weight:800; cursor:pointer; white-space:nowrap; }
.chat-voice-cancel:hover { text-decoration:underline; }
.chat-voice-test { padding:0; border:0; background:transparent; color:#475467; font-size:9px; font-weight:800; cursor:pointer; white-space:nowrap; }
.chat-voice-test:hover { color:var(--accent); text-decoration:underline; }
.chat-voice-test:disabled { opacity:.55; cursor:wait; text-decoration:none; }
.chat-compose-hint { margin-left:auto; white-space:nowrap; }

@media (min-width:1021px) {
    body.conversation-screen-page { overflow:hidden; }
    body.conversation-screen-page .app-shell { height:100vh; min-height:0; }
    body.conversation-screen-page .main { height:100vh; min-height:0; display:flex; flex-direction:column; }
    body.conversation-screen-page .topbar { flex:0 0 72px; }
    body.conversation-screen-page .content {
        flex:1 1 auto;
        min-height:0;
        overflow:hidden;
        padding:12px 18px 14px;
        display:flex;
        flex-direction:column;
    }
    body.conversation-screen-page .page-head { flex:0 0 auto; align-items:center; margin-bottom:7px; }
    body.conversation-screen-page .page-head h1 { margin-bottom:2px; font-size:21px; }
    body.conversation-screen-page .page-head p { font-size:11px; }
    body.conversation-screen-page .page-head .btn { min-height:34px; padding:0 12px; font-size:12px; }
    body.conversation-screen-page .chat-tabs { flex:0 0 auto; margin:0 0 7px; gap:6px; flex-wrap:nowrap; overflow-x:auto; scrollbar-width:thin; }
    body.conversation-screen-page .chat-tabs a { flex:0 0 auto; min-height:31px; padding:0 10px; font-size:10px; }
    body.conversation-screen-page .conversation-filter-panel { flex:0 0 auto; margin:0 0 8px; padding:8px 10px; border-radius:13px; }
    body.conversation-screen-page .conversation-filter-panel .filter-grid { grid-template-columns:minmax(220px,2fr) minmax(120px,.8fr) minmax(120px,.8fr) auto; gap:8px; }
    body.conversation-screen-page .conversation-filter-panel .field label { margin-bottom:4px; font-size:9px; }
    body.conversation-screen-page .conversation-filter-panel .input,
    body.conversation-screen-page .conversation-filter-panel .select { height:35px; border-radius:9px; font-size:11px; }
    body.conversation-screen-page .conversation-filter-panel .filter-actions { min-height:35px; gap:7px; }
    body.conversation-screen-page .conversation-filter-panel .filter-actions .btn { min-height:35px; padding:0 11px; font-size:10px; }
    body.conversation-screen-page .conversation-filter-panel .filter-actions .text-link { font-size:10px; }

    body.conversation-screen-page .conversation-inbox { flex:1 1 auto; min-height:0; align-items:stretch; gap:12px; }
    body.conversation-screen-page .conversation-inbox-list { height:100%; min-height:0; display:flex; flex-direction:column; }
    body.conversation-screen-page .conversation-inbox-list-head { flex:0 0 auto; min-height:42px; padding:9px 12px; }
    body.conversation-screen-page .conversation-list-compact { flex:1 1 auto; min-height:0; max-height:none; overflow-y:auto; }
    body.conversation-screen-page .conversation-inbox-list-footer { flex:0 0 auto; padding:7px 10px; }
    body.conversation-screen-page .conversation-inbox-detail { height:100%; min-height:0; display:flex; flex-direction:column; }
    body.conversation-screen-page .conversation-inline-alert { flex:0 0 auto; margin-bottom:7px; padding:8px 10px; font-size:10px; }
    body.conversation-screen-page .conversation-inline-thread { flex:1 1 auto; height:auto; min-height:0; display:flex; flex-direction:column; }
    body.conversation-screen-page .conversation-inline-head { position:static; flex:0 0 auto; padding:10px 14px; }
    body.conversation-screen-page .conversation-inline-context { flex:0 0 auto; padding:7px 14px; }
    body.conversation-screen-page .conversation-inline-messages { flex:1 1 auto; height:auto; min-height:0; max-height:none; padding:12px 14px; }
    body.conversation-screen-page .chat-pagination { flex:0 0 auto; padding:4px 12px 6px; }
    body.conversation-screen-page .conversation-inline-compose { position:static; flex:0 0 auto; }
    body.conversation-screen-page .conversation-detail-empty { flex:1 1 auto; min-height:0; height:100%; }
}

@media (min-width:1181px) {
    body.conversation-detail-page { overflow:hidden; }
    body.conversation-detail-page .app-shell { height:100vh; min-height:0; }
    body.conversation-detail-page .main { height:100vh; min-height:0; display:flex; flex-direction:column; }
    body.conversation-detail-page .topbar { flex:0 0 72px; }
    body.conversation-detail-page .content { flex:1 1 auto; min-height:0; overflow:hidden; padding:12px 18px 14px; display:flex; flex-direction:column; }
    body.conversation-detail-page .chat-page-head { flex:0 0 auto; margin-bottom:7px; align-items:center; }
    body.conversation-detail-page .chat-page-head h1 { font-size:21px; margin-bottom:2px; }
    body.conversation-detail-page .chat-page-head p { font-size:11px; }
    body.conversation-detail-page .chat-page-head .btn { min-height:34px; padding:0 11px; font-size:11px; }
    body.conversation-detail-page .chat-tabs { flex:0 0 auto; margin:0 0 7px; gap:6px; flex-wrap:nowrap; overflow-x:auto; scrollbar-width:thin; }
    body.conversation-detail-page .chat-tabs a { flex:0 0 auto; min-height:31px; padding:0 10px; font-size:10px; }
    body.conversation-detail-page .identity-suggestion-alert { flex:0 0 auto; margin-bottom:7px; padding:8px 10px; font-size:10px; }
    body.conversation-detail-page .chat-workspace { flex:1 1 auto; min-height:0; align-items:stretch; gap:12px; }
    body.conversation-detail-page .chat-thread { height:100%; min-height:0; display:flex; flex-direction:column; }
    body.conversation-detail-page .chat-thread-head { flex:0 0 auto; padding:10px 14px; }
    body.conversation-detail-page .chat-messages { flex:1 1 auto; min-height:0; height:auto; max-height:none; padding:12px 14px; }
    body.conversation-detail-page .chat-pagination { flex:0 0 auto; padding:4px 12px 6px; }
    body.conversation-detail-page .chat-side { height:100%; min-height:0; overflow-y:auto; }
}

@media (max-width:700px) {
    .chat-compose-box { grid-template-columns:40px minmax(0,1fr) 42px; }
    .chat-compose-box.has-voice-dictation { grid-template-columns:40px minmax(0,1fr) 40px 42px; }
    .chat-send-button { width:42px; padding:0; font-size:0; }
    .chat-send-button::after { content:'→'; font-size:18px; }
    .chat-compose-meta { display:block; }
    .chat-compose-file-name { display:block; max-width:100%; margin-bottom:3px; }
    .chat-compose-hint { display:block; white-space:normal; }
}

/* v10.4.2 — explicit unread/new-message indicators in conversation inbox */
.conversation-inbox-head-status { display:flex; align-items:center; gap:8px; min-width:0; }
.conversation-total { color:var(--muted); font-size:10px; }
.conversation-unread-summary { display:inline-flex; align-items:center; gap:5px; min-height:24px; padding:4px 8px; border-radius:999px; background:#fff1eb; color:#b54708; font-size:9px; font-weight:850; white-space:nowrap; }
.conversation-unread-summary[hidden] { display:none !important; }
.conversation-unread-summary i { width:7px; height:7px; flex:0 0 auto; border-radius:999px; background:#f04438; box-shadow:0 0 0 3px rgba(240,68,56,.12); }
.conversation-channel-marker { position:relative; flex:0 0 auto; }
.conversation-unread-dot { position:absolute; top:-3px; right:-3px; width:11px; height:11px; border:2px solid #fff; border-radius:999px; background:#f04438; box-shadow:0 0 0 3px rgba(240,68,56,.14); }
.conversation-unread-dot[hidden] { display:none !important; }
.conversation-row-compact.has-unread .conversation-top strong { font-weight:900; color:#101828; }
.conversation-row-compact.has-unread .conversation-preview { color:#344054; font-weight:650; }

/* v10.5.0 floating telephony */
.crm-phone{position:fixed;right:22px;bottom:22px;width:330px;z-index:1250;background:var(--panel,#fff);border:1px solid var(--border,#dfe3e8);border-radius:16px;box-shadow:0 18px 55px rgba(15,23,42,.22);overflow:hidden}.crm-phone-bar{height:42px;display:flex;align-items:center;gap:8px;padding:0 10px;cursor:grab;user-select:none;background:var(--panel-2,#f7f8fa);border-bottom:1px solid var(--border,#e5e7eb)}.crm-phone-state-dot{width:9px;height:9px;border-radius:50%;background:#94a3b8}.crm-phone.has-call .crm-phone-state-dot{background:#22c55e;box-shadow:0 0 0 6px rgba(34,197,94,.12)}.crm-phone-bar-actions{margin-left:auto;display:flex;gap:4px}.crm-phone-bar-actions button{border:0;background:transparent;font-size:18px;cursor:pointer;padding:4px 7px}.crm-phone-body{padding:12px}.crm-phone-caller{display:flex;flex-direction:column;gap:3px}.crm-phone-caller strong{font-size:16px}.crm-phone-caller span{font-size:14px}.crm-phone-caller small{color:var(--muted,#64748b)}.crm-phone-dial{display:flex;gap:8px;margin-top:11px}.crm-phone-dial .input{flex:1;min-width:0}.crm-phone-call{width:44px;border:0;border-radius:10px;background:#16a34a;color:white;font-size:20px;cursor:pointer}.crm-phone-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.crm-phone-actions .btn{padding:7px 9px}.crm-phone-expanded{margin-top:10px;padding-top:10px;border-top:1px solid var(--border,#e5e7eb);display:grid;gap:8px}.crm-phone-expanded[hidden]{display:none}.crm-phone-expanded>div{display:flex;justify-content:space-between;gap:10px}.crm-phone-expanded span{color:var(--muted,#64748b)}.crm-phone-note{font-size:12px!important;color:var(--muted,#64748b);display:block!important}.crm-phone.is-minimized .crm-phone-body{display:none}.crm-phone.is-minimized{width:220px}@media(max-width:700px){.crm-phone{left:10px!important;right:10px!important;bottom:10px;top:auto!important;width:auto;max-width:none}.crm-phone.is-minimized{width:auto}}


/* v10.6.0 — persistent unread highlight + durable notification history */
.conversation-row-compact.has-unread {
    background:#fff1ec;
    box-shadow:inset 4px 0 0 #f04438;
}
.conversation-row-compact.has-unread:hover { background:#ffe9e1; }
.conversation-row-compact.has-unread.is-selected {
    background:#fff0e8;
    box-shadow:inset 4px 0 0 #f04438, inset 0 0 0 1px rgba(240,68,56,.10);
}
.conversation-row-compact.has-unread .conversation-unread-dot {
    box-shadow:0 0 0 3px rgba(240,68,56,.14);
}
.realtime-panel-head-actions { display:flex; align-items:center; gap:8px; }
.realtime-panel-head-actions a,
.realtime-panel-head-actions button {
    padding:4px 7px; border:0; background:transparent; color:#667085; font-size:10px; text-decoration:none; cursor:pointer;
}
.realtime-panel-head-actions a:hover,
.realtime-panel-head-actions button:hover { color:#101828; }
.notification-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:14px; }
.notification-filters { display:grid; grid-template-columns:minmax(240px,2fr) repeat(4,minmax(140px,1fr)); gap:10px; align-items:end; padding:14px; margin-bottom:14px; }
.notification-filters .field { margin:0; }
.notification-filter-actions { display:flex; align-items:center; gap:8px; grid-column:1/-1; justify-content:flex-end; }
.notification-history-table td { vertical-align:top; }
.notification-history-time { white-space:nowrap; }
.notification-history-body { margin-top:5px; max-width:760px; color:#667085; line-height:1.45; white-space:pre-wrap; }
.notification-history-action { width:1%; white-space:nowrap; text-align:right; }
.notification-state { display:inline-flex; align-items:center; min-height:24px; padding:3px 8px; border-radius:999px; font-size:10px; font-weight:800; white-space:nowrap; }
.notification-state.is-active { background:#ecfdf3; color:#067647; }
.notification-state.is-cleared { background:#f2f4f7; color:#667085; }
@media(max-width:1180px){
    .notification-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .notification-filter-search { grid-column:1/-1; }
}
@media(max-width:700px){
    .notification-stats { grid-template-columns:1fr; }
    .notification-filters { grid-template-columns:1fr; }
    .notification-filter-search, .notification-filter-actions { grid-column:auto; }
    .notification-filter-actions { justify-content:stretch; }
    .notification-filter-actions .btn { flex:1; }
}


/* v10.6.1 — persistent chat highlight + alerting notification bell */
.conversation-row-compact.has-unread,
.conversation-row-compact.has-unread .conversation-unread-dot,
.conversation-unread-summary,
.conversation-unread-summary i {
    animation:none !important;
}
.conversation-row-compact.has-unread {
    background:#fff1ec !important;
    box-shadow:inset 4px 0 0 #f04438 !important;
}
.conversation-row-compact.has-unread:hover { background:#ffe9e1 !important; }
.conversation-row-compact.has-unread.is-selected {
    background:#fff0e8 !important;
    box-shadow:inset 4px 0 0 #f04438, inset 0 0 0 1px rgba(240,68,56,.10) !important;
}
.realtime-bell.has-unread-notifications {
    color:#b42318;
    border-color:#fda29b;
    background:#fff1f0;
    animation:crm-notification-bell-alert 1s ease-in-out infinite;
    transform-origin:50% 15%;
}
.realtime-bell.has-unread-notifications svg {
    animation:crm-notification-bell-swing .72s ease-in-out infinite;
    transform-origin:50% 15%;
}
@keyframes crm-notification-bell-alert {
    0%,100% { box-shadow:0 0 0 0 rgba(240,68,56,.06); }
    50% { box-shadow:0 0 0 6px rgba(240,68,56,.18); background:#ffe4e1; }
}
@keyframes crm-notification-bell-swing {
    0%,100% { transform:rotate(0deg); }
    20% { transform:rotate(-14deg); }
    40% { transform:rotate(12deg); }
    60% { transform:rotate(-9deg); }
    80% { transform:rotate(6deg); }
}
@media (prefers-reduced-motion: reduce) {
    .realtime-bell.has-unread-notifications,
    .realtime-bell.has-unread-notifications svg { animation-duration:1.8s; }
}


/* v10.6.2 — Avito unread source fix + unmistakable persistent chat highlight */
.conversation-row-compact.has-unread {
    background:#ffe3d8 !important;
    box-shadow:inset 5px 0 0 #e5483f, inset 0 0 0 1px rgba(229,72,63,.18) !important;
}
.conversation-row-compact.has-unread:hover { background:#ffd8ca !important; }
.conversation-row-compact.has-unread .conversation-top strong { color:#7a271a !important; font-weight:900; }
.conversation-row-compact.has-unread .conversation-preview { color:#7a271a !important; font-weight:750; }
.conversation-row-compact.has-unread .unread-badge { background:#d92d20 !important; color:#fff !important; }
.conversation-row-compact.has-unread.is-selected {
    background:#ffe3d8 !important;
    box-shadow:inset 5px 0 0 #e5483f, inset 0 0 0 1px rgba(229,72,63,.18) !important;
}


/* v10.6.4 — persistent phone window state + top-right tray */
.crm-phone-tray-launch {
    display:none;
    width:48px;
    height:48px;
    place-items:center;
    border:1px solid #86efac;
    border-radius:14px;
    background:#16a34a;
    color:#fff;
    box-shadow:0 12px 30px rgba(15,23,42,.24);
    font-size:22px;
    line-height:1;
    cursor:pointer;
}
.crm-phone.is-tray {
    top:14px !important;
    right:16px !important;
    bottom:auto !important;
    left:auto !important;
    width:48px !important;
    height:48px;
    border:0;
    border-radius:14px;
    background:transparent;
    box-shadow:none;
    overflow:visible;
}
.crm-phone.is-tray .crm-phone-bar,
.crm-phone.is-tray .crm-phone-body { display:none !important; }
.crm-phone.is-tray .crm-phone-tray-launch { display:grid; }
.crm-phone.is-tray.has-call .crm-phone-tray-launch {
    box-shadow:0 0 0 4px rgba(34,197,94,.18), 0 12px 30px rgba(15,23,42,.24);
}
.crm-phone.is-tray.has-call .crm-phone-tray-launch::after {
    content:'';
    position:absolute;
    top:-3px;
    right:-3px;
    width:12px;
    height:12px;
    border:2px solid #fff;
    border-radius:999px;
    background:#ef4444;
}
.crm-phone.is-tray .crm-phone-tray-launch { position:relative; }
@media(max-width:700px) {
    .crm-phone.is-tray {
        top:10px !important;
        right:10px !important;
        left:auto !important;
        bottom:auto !important;
        width:46px !important;
        height:46px;
    }
    .crm-phone.is-tray .crm-phone-tray-launch { width:46px; height:46px; }
}


/* v10.6.5 — phone tray lives in topbar before Live */
.crm-phone.is-tray {
    display:none !important;
}
.crm-phone-tray-topbar {
    position:relative;
    flex:0 0 auto;
    width:34px;
    height:34px;
    display:grid;
    place-items:center;
    padding:0;
    border:1px solid #86efac;
    border-radius:10px;
    background:#16a34a;
    color:#fff;
    box-shadow:0 4px 12px rgba(22,163,74,.18);
    font-size:17px;
    line-height:1;
    cursor:pointer;
}
.crm-phone-tray-topbar[hidden] { display:none !important; }
.crm-phone-tray-topbar:hover { background:#15803d; }
.crm-phone-tray-topbar:focus-visible { outline:3px solid rgba(34,197,94,.2); outline-offset:2px; }
.crm-phone-tray-topbar.has-call,
body:has(.crm-phone.has-call.is-tray) .crm-phone-tray-topbar {
    box-shadow:0 0 0 4px rgba(34,197,94,.16), 0 4px 12px rgba(22,163,74,.18);
}
body:has(.crm-phone.has-call.is-tray) .crm-phone-tray-topbar::after {
    content:'';
    position:absolute;
    top:-4px;
    right:-4px;
    width:10px;
    height:10px;
    border:2px solid #fff;
    border-radius:999px;
    background:#ef4444;
}
@media(max-width:700px) {
    .crm-phone-tray-topbar { width:32px; height:32px; border-radius:9px; font-size:16px; }
}

/* v10.6.7 — per-user notification sound preferences */
.notification-sound-settings{max-width:820px;padding:22px}.notification-sound-settings-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:16px;margin-bottom:18px;border-bottom:1px solid var(--line)}.notification-sound-settings-head strong{display:block;font-size:15px}.notification-sound-settings-head span:not(.notification-sound-badge){display:block;margin-top:5px;color:var(--muted);font-size:11px;line-height:1.5}.notification-sound-badge{flex:0 0 auto;padding:5px 9px;border-radius:999px;background:#eef4ff;color:#3267a8;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.notification-sound-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(180px,.6fr);gap:18px}.notification-sound-grid .field{margin:0}.notification-sound-grid .field small{display:block;margin-top:6px;color:#8b95a5;font-size:10px;line-height:1.45}.notification-sound-select-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.notification-sound-select-row .btn{white-space:nowrap}.notification-interval-control{display:flex;align-items:center;gap:8px}.notification-interval-control .input{max-width:130px}.notification-interval-control span{color:#667085;font-size:12px;font-weight:800}.notification-repeat-option{display:flex;align-items:flex-start;gap:11px;margin-top:20px;padding:14px 15px;border:1px solid var(--line);border-radius:12px;background:#fafbfc;cursor:pointer}.notification-repeat-option input{width:17px;height:17px;margin-top:1px;accent-color:var(--accent)}.notification-repeat-option strong{display:block;font-size:12px}.notification-repeat-option small{display:block;margin-top:4px;color:#7f8999;font-size:10px;line-height:1.5}.notification-sound-actions{display:flex;justify-content:flex-end;margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.notification-sound-master{margin:0 0 18px;border-color:#b9c9df;background:#f5f9ff}.notification-sound-settings.is-sound-disabled .notification-sound-grid,.notification-sound-settings.is-sound-disabled .notification-repeat-option:not(.notification-sound-master){opacity:.55}.notification-sound-settings.is-sound-disabled .notification-sound-master{border-color:#e2e8f0;background:#fafbfc}
@media(max-width:720px){.notification-sound-settings{padding:14px}.notification-sound-settings-head{flex-direction:column}.notification-sound-grid{grid-template-columns:1fr}.notification-sound-select-row{grid-template-columns:1fr}.notification-sound-select-row .btn{width:100%;justify-content:center}.notification-sound-actions .btn{width:100%;justify-content:center}}

/* v10.6.9 — stage-aware deal kanban palette */
.kanban-column {
    --deal-stage-head:#d8dde6;
    --deal-stage-tint:#eef1f5;
    background:var(--deal-stage-tint);
    border:1px solid rgba(93,105,126,.10);
}
.kanban-column .kanban-head {
    position:relative;
    top:auto;
    z-index:1;
    min-height:34px;
    margin:-4px -4px 8px;
    padding:7px 10px;
    border-radius:10px;
    background:var(--deal-stage-head);
    color:#1f2937;
    box-shadow:inset 0 -1px 0 rgba(17,24,39,.05);
}
.kanban-column .kanban-head strong {
    font-size:12px;
    font-weight:850;
}
.kanban-column .kanban-head .kanban-count {
    min-width:22px;
    height:22px;
    background:rgba(255,255,255,.72);
    color:#364152;
    box-shadow:0 1px 2px rgba(15,23,42,.07);
}
.kanban-column[data-stage-code="new"] {
    --deal-stage-head:#2dd4df;
    --deal-stage-tint:#effcfd;
}
.kanban-column[data-stage-code="qualification"] {
    --deal-stage-head:#c795d7;
    --deal-stage-tint:#faf4fc;
}
.kanban-column[data-stage-code="negotiation"] {
    --deal-stage-head:#ffb3b0;
    --deal-stage-tint:#fff6f5;
}
.kanban-column[data-stage-code="won"] {
    --deal-stage-head:#9ed9ad;
    --deal-stage-tint:#f2fbf4;
}
.kanban-column[data-stage-code="lost"] {
    --deal-stage-head:#d9a8ae;
    --deal-stage-tint:#fbf3f4;
}

/* v10.7.0 — bulk deal processing */
.page-head-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.bulk-deals-page-head{align-items:center}
.bulk-deals-filter{margin-bottom:14px}
.bulk-filter-grid{display:grid;grid-template-columns:minmax(220px,1.6fr) minmax(140px,.85fr) minmax(155px,.9fr) minmax(165px,1fr) minmax(175px,1.05fr) 120px auto;gap:10px;align-items:end}
.bulk-filter-grid .field{margin:0;min-width:0}.bulk-filter-actions{display:flex;align-items:center;gap:10px;min-height:46px}
.bulk-deals-toolbar{position:sticky;top:82px;z-index:12;margin-bottom:12px;padding:13px 14px;display:flex;align-items:center;justify-content:space-between;gap:16px;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);box-shadow:0 7px 24px rgba(23,32,51,.06)}
.bulk-select-tools,.bulk-stage-action{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.bulk-master-check{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:800;color:#364152;cursor:pointer}.bulk-master-check input,.bulk-deal-checkbox{width:18px;height:18px;accent-color:var(--accent);cursor:pointer}
.bulk-text-action{border:0;background:transparent;color:#657084;font-size:11px;font-weight:750;padding:6px 3px;cursor:pointer}.bulk-text-action:hover{color:var(--accent)}
.bulk-selected-count{padding:7px 10px;border-radius:999px;background:#eef2f6;color:#344054;font-size:11px;white-space:nowrap}.bulk-stage-action{justify-content:flex-end}.bulk-stage-action>label{font-size:11px;font-weight:800;color:#667085;white-space:nowrap}.bulk-stage-action .select{width:220px;height:40px}.bulk-stage-action .btn{min-height:40px}
.bulk-limit-note{margin:0 0 10px;padding:10px 13px;border:1px solid #f5d98d;border-radius:11px;background:#fff9e8;color:#80600a;font-size:11px;font-weight:650}
.bulk-deals-table-card{overflow:hidden}.bulk-deals-table{min-width:1080px}.bulk-deals-table th{position:sticky;top:0;background:#fafbfc;z-index:2}.bulk-deals-table td{padding-top:11px;padding-bottom:11px}.bulk-deals-table tbody tr{transition:background .14s ease,box-shadow .14s ease}.bulk-deals-table tbody tr.is-selected{background:#fff4ee;box-shadow:inset 3px 0 0 var(--accent)}.bulk-deals-table tbody tr.is-selected:hover{background:#ffefe7}.bulk-check-column{width:48px;text-align:center!important;padding-left:12px!important;padding-right:8px!important}.bulk-deal-main{min-width:330px;max-width:520px}.bulk-deal-main a{display:block;line-height:1.35}.bulk-deal-main a strong{font-size:12px}.bulk-deal-main a:hover strong{color:var(--accent)}.bulk-stage-chip{display:inline-flex;align-items:center;min-height:28px;padding:0 9px;border-radius:999px;background:#eef2f6;color:#475467;font-size:10px;font-weight:800}
.bulk-confirm-dialog{border:0;padding:0;border-radius:18px;max-width:460px;width:calc(100% - 32px);box-shadow:0 24px 80px rgba(23,32,51,.28);background:transparent}.bulk-confirm-dialog::backdrop{background:rgba(23,32,51,.46);backdrop-filter:blur(3px)}.bulk-confirm-card{padding:26px;background:#fff;border-radius:18px;text-align:center}.bulk-confirm-icon{width:54px;height:54px;margin:0 auto 14px;border-radius:17px;display:grid;place-items:center;background:#fff1ea;color:var(--accent);font-size:25px;font-weight:900}.bulk-confirm-card h2{margin:0 0 8px;font-size:21px}.bulk-confirm-card p{margin:0;color:#667085;font-size:13px;line-height:1.55}.bulk-confirm-card p strong{color:#172033}.bulk-confirm-note{margin-top:8px!important;font-size:11px!important;color:#98a2b3!important}.bulk-confirm-actions{margin-top:20px;display:flex;gap:9px;justify-content:center}.bulk-confirm-actions .btn{min-width:135px}
@media(max-width:1550px){.bulk-filter-grid{grid-template-columns:repeat(3,minmax(180px,1fr))}.bulk-filter-actions{justify-content:flex-start}.bulk-deals-toolbar{align-items:flex-start;flex-direction:column}.bulk-stage-action{width:100%;justify-content:flex-start}}
@media(max-width:760px){.page-head-actions{justify-content:flex-start}.bulk-filter-grid{grid-template-columns:1fr}.bulk-deals-toolbar{position:static}.bulk-stage-action{display:grid;grid-template-columns:1fr}.bulk-stage-action .select{width:100%}.bulk-select-tools{align-items:flex-start}.bulk-confirm-actions{flex-direction:column}.bulk-confirm-actions .btn{width:100%}}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}


/* v10.7.1 — deal chat shortcuts */
.deals-chat-list-link{display:inline-flex;align-items:center;gap:7px}
.deals-chat-list-link svg{width:16px;height:16px;fill:currentColor;flex:0 0 auto}
.deal-card-title-row{display:flex;align-items:flex-start;gap:8px}
.deal-card-title-row .deal-card-title{flex:1;min-width:0}
.deal-card-title-row .deal-card-title strong{display:block;font-size:13px;line-height:1.35}
.deal-card-title-row .deal-card-title:hover strong{color:var(--accent)}
.deal-chat-shortcut{width:30px;height:30px;flex:0 0 30px;border-radius:9px;display:grid;place-items:center;border:1px solid #e4e8ee;background:#f8fafc;color:#98a2b3;transition:background .15s ease,border-color .15s ease,color .15s ease,transform .15s ease}
.deal-chat-shortcut svg{width:16px;height:16px;fill:currentColor}
.deal-chat-shortcut.has-chat{background:#eef6ff;border-color:#cfe2ff;color:#2878d0;box-shadow:0 2px 8px rgba(40,120,208,.08)}
.deal-chat-shortcut.has-chat:hover{background:#2878d0;border-color:#2878d0;color:#fff;transform:translateY(-1px)}
.deal-chat-shortcut.no-chat{opacity:.42;cursor:not-allowed}
@media(max-width:760px){.deal-chat-shortcut{width:34px;height:34px;flex-basis:34px}.deals-chat-list-link span{display:inline}}

/* v10.7.2 — hidden deals stage, personal kanban columns, collision-free card actions */
.kanban-column[data-stage-code="hidden"] {
    --deal-stage-head:#b9bcc7;
    --deal-stage-tint:#f5f6f8;
}
.deal-columns-picker{position:relative}
.deal-columns-picker>summary{list-style:none;cursor:pointer;user-select:none}
.deal-columns-picker>summary::-webkit-details-marker{display:none}
.deal-columns-picker[open]>summary{background:#fff3ed;border-color:#ffc9ae;color:#c94f18}
.deal-columns-icon{font-size:15px;line-height:1}
.deal-columns-popover{position:absolute;right:0;top:calc(100% + 8px);z-index:80;width:min(360px,calc(100vw - 28px));padding:14px;border:1px solid #e5e9ef;border-radius:15px;background:#fff;box-shadow:0 22px 60px rgba(15,23,42,.18)}
.deal-columns-popover-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:12px;border-bottom:1px solid #eef1f4}
.deal-columns-popover-head strong{display:block;font-size:13px}.deal-columns-popover-head small{display:block;margin-top:3px;color:#7b8494;font-size:10px;line-height:1.4}.deal-columns-popover-head>span{padding:4px 8px;border-radius:999px;background:#f1f3f6;color:#586274;font-size:10px;font-weight:850;white-space:nowrap}
.deal-columns-tools{display:flex;gap:8px;padding:10px 0 8px}.deal-columns-tools button{border:0;background:transparent;padding:4px 2px;color:#5c6b80;font-size:10px;font-weight:800;cursor:pointer}.deal-columns-tools button:hover{color:var(--accent)}
.deal-columns-list{display:grid;gap:6px;max-height:330px;overflow:auto;padding-right:2px}
.deal-column-option{display:grid;grid-template-columns:18px 12px minmax(0,1fr);gap:9px;align-items:center;padding:9px 10px;border:1px solid #edf0f3;border-radius:10px;background:#fbfcfd;cursor:pointer}.deal-column-option:hover{border-color:#d8dee7;background:#f8fafc}.deal-column-option input{width:16px;height:16px;accent-color:var(--accent)}.deal-column-option strong{display:block;font-size:11px}.deal-column-option small{display:block;margin-top:2px;color:#929baa;font-size:9px}.deal-column-option.is-hidden-stage{background:#f7f7f9}
.deal-column-swatch{width:10px;height:22px;border-radius:999px;background:#d8dde6}.deal-column-swatch[data-stage-code="new"]{background:#2dd4df}.deal-column-swatch[data-stage-code="qualification"]{background:#c795d7}.deal-column-swatch[data-stage-code="negotiation"]{background:#ffb3b0}.deal-column-swatch[data-stage-code="won"]{background:#9ed9ad}.deal-column-swatch[data-stage-code="lost"]{background:#d9a8ae}.deal-column-swatch[data-stage-code="hidden"]{background:#b9bcc7}
.deal-columns-popover-actions{display:flex;justify-content:flex-end;margin-top:12px;padding-top:12px;border-top:1px solid #eef1f4}

/* Dedicated right-side action rail: chat and drag handle can never overlap. */
.deal-card-title-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px}
.deal-card-actions{display:flex;align-items:center;gap:6px;flex:0 0 auto}
.deal-drag-handle{position:static;top:auto;right:auto;width:28px;height:30px;flex:0 0 28px;border:1px solid transparent}
.deal-drag-handle:hover{border-color:#e4e8ee;background:#f0f2f5}
.deal-card-title-row .deal-card-title{padding-right:0!important}
@media(max-width:760px){.deal-columns-popover{position:fixed;left:14px;right:14px;top:72px;width:auto}.deal-card-actions{gap:5px}.deal-drag-handle{width:32px;height:34px;flex-basis:32px}}


/* v10.7.3 — conversation peer initials + stable avatar palette */
.conversation-row-compact .conversation-peer-avatar {
    width:38px;
    height:38px;
    border-radius:50%;
    font-size:13px;
    font-weight:900;
    letter-spacing:0;
    border:1px solid rgba(15,23,42,.05);
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.26);
}
.conversation-peer-avatar.avatar-tone-0 { background:#dbeafe; color:#1d4ed8; }
.conversation-peer-avatar.avatar-tone-1 { background:#dcfce7; color:#15803d; }
.conversation-peer-avatar.avatar-tone-2 { background:#ffedd5; color:#c2410c; }
.conversation-peer-avatar.avatar-tone-3 { background:#ede9fe; color:#6d28d9; }
.conversation-peer-avatar.avatar-tone-4 { background:#fce7f3; color:#be185d; }
.conversation-peer-avatar.avatar-tone-5 { background:#ccfbf1; color:#0f766e; }
.conversation-peer-avatar.avatar-tone-6 { background:#fef3c7; color:#a16207; }
.conversation-peer-avatar.avatar-tone-7 { background:#e0e7ff; color:#4338ca; }
.conversation-peer-avatar.avatar-tone-8 { background:#cffafe; color:#0e7490; }
.conversation-peer-avatar.avatar-tone-9 { background:#fee2e2; color:#b91c1c; }
.conversation-row-compact.has-unread .conversation-peer-avatar {
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.35), 0 0 0 2px rgba(240,68,56,.12);
}

/* v10.7.4 — processing/lost/won pipeline colors from the requested kanban reference */
.kanban-column[data-stage-code="new"] {
    --deal-stage-head:#10e5fc;
    --deal-stage-tint:#effdff;
}
.kanban-column[data-stage-code="qualification"] {
    --deal-stage-head:#bd8bc0;
    --deal-stage-tint:#faf3fb;
}
.kanban-column[data-stage-code="negotiation"] {
    --deal-stage-head:#ffbdbb;
    --deal-stage-tint:#fff5f4;
}
.kanban-column[data-stage-code="processing"] {
    --deal-stage-head:#fff300;
    --deal-stage-tint:#fffde7;
}
.kanban-column[data-stage-code="lost"] {
    --deal-stage-head:#f11716;
    --deal-stage-tint:#fff0f0;
}
.kanban-column[data-stage-code="lost"] .kanban-head,
.kanban-column[data-stage-code="lost"] .kanban-head strong {
    color:#fff;
}
.kanban-column[data-stage-code="won"] {
    --deal-stage-head:#00d600;
    --deal-stage-tint:#efffef;
}

/* The columns picker uses the same visual language as the kanban. */
.deal-column-swatch[data-stage-code="new"]{background:#10e5fc}
.deal-column-swatch[data-stage-code="qualification"]{background:#bd8bc0}
.deal-column-swatch[data-stage-code="negotiation"]{background:#ffbdbb}
.deal-column-swatch[data-stage-code="processing"]{background:#fff300}
.deal-column-swatch[data-stage-code="lost"]{background:#f11716}
.deal-column-swatch[data-stage-code="won"]{background:#00d600}


/* v10.7.4 quick temporary deal views */
.deal-view-switcher{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:-4px 0 14px;padding-left:2px}
.deal-view-button{display:inline-flex;align-items:center;min-height:34px;padding:0 12px;border:1px solid #e4e8ee;border-radius:10px;background:#fff;color:#4c5565;font-size:11px;font-weight:800;text-decoration:none;box-shadow:0 1px 2px rgba(15,23,42,.03);transition:.15s ease}
.deal-view-button:hover{border-color:#cfd6df;background:#f8fafc;color:#172033}
.deal-view-button.is-active{border-color:#ffb58f;background:#fff1e9;color:#c84d16;box-shadow:inset 0 0 0 1px rgba(255,107,54,.08)}
.deal-view-reset{margin-left:2px;color:#7f8999;font-size:10px;font-weight:750;text-decoration:none}
.deal-view-reset:hover{color:var(--accent);text-decoration:underline}
@media(max-width:700px){.deal-view-switcher{gap:6px}.deal-view-button{min-height:32px;padding:0 10px;font-size:10px}.deal-view-reset{flex-basis:100%;margin-top:2px}}

/* v10.7.6 — correction tools, header avatar, unread deal-chat alert */
.conversation-inline-person,
.conversation-page-person{display:flex;align-items:center;gap:10px;min-width:0}
.conversation-header-avatar{width:40px;height:40px;flex:0 0 40px;border-radius:50%;display:grid;place-items:center;font-size:14px;font-weight:900;border:1px solid rgba(15,23,42,.06);box-shadow:inset 0 0 0 1px rgba(255,255,255,.28)}
.conversation-page-person .conversation-header-avatar{width:44px;height:44px;flex-basis:44px;font-size:15px}
.conversation-peer-avatar.has-photo{overflow:hidden;padding:0;background:#eef2f6;color:transparent}
.conversation-peer-avatar.has-photo img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.conversation-peer-avatar.is-listing-photo{border-radius:9px;border:1px solid #d6dde8;box-shadow:0 1px 2px rgba(16,24,40,.08)}
.conversation-inline-person .conversation-inline-title{min-width:0}
.chat-status{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.chat-correct-form{display:inline-flex;margin:0}
.chat-correct-button{border:0;padding:0;background:transparent;color:inherit;font:inherit;text-decoration:underline;text-underline-offset:2px;cursor:pointer;opacity:.86}
.chat-correct-button:hover{opacity:1}
.chat-message.outgoing .chat-correct-button{color:#fff}
.chat-text-deleted{font-style:italic;opacity:.65}
.deal-chat-shortcut{position:relative;overflow:visible}
.deal-chat-shortcut.has-chat.has-unread{background:#fff0ee;border-color:#f97066;color:#d92d20;box-shadow:0 0 0 2px rgba(240,68,56,.10),0 3px 10px rgba(240,68,56,.12)}
.deal-chat-shortcut.has-chat.has-unread:hover{background:#d92d20;border-color:#d92d20;color:#fff}
.deal-chat-unread-badge{position:absolute;right:-7px;top:-7px;min-width:18px;height:18px;padding:0 4px;display:grid;place-items:center;border-radius:999px;border:2px solid #fff;background:#d92d20;color:#fff;font-size:8px;font-weight:900;line-height:1;box-shadow:0 2px 5px rgba(217,45,32,.22)}
@media(max-width:760px){.conversation-header-avatar{width:36px;height:36px;flex-basis:36px;font-size:12px}}

/* v10.7.7: chat image preview/lightbox. Image click previews; download is explicit. */
.chat-image-preview-button{position:relative;display:block;max-width:min(380px,100%);padding:0;border:0;border-radius:14px;background:transparent;cursor:zoom-in;text-align:left;overflow:hidden}
.chat-image-preview-button .chat-attachment-image{width:auto;max-width:100%;max-height:380px;object-fit:contain;background:#f8fafc;transition:transform .18s ease,filter .18s ease}
.chat-image-preview-button:hover .chat-attachment-image{transform:scale(1.012);filter:brightness(.96)}
.chat-image-preview-zoom{position:absolute;right:10px;bottom:10px;width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:rgba(15,23,42,.78);color:#fff;font-size:20px;font-weight:900;box-shadow:0 6px 18px rgba(15,23,42,.22);pointer-events:none}
.chat-image-lightbox{width:min(1180px,94vw);max-width:none;height:min(860px,92vh);max-height:none;padding:0;border:0;border-radius:20px;background:#fff;color:#172033;box-shadow:0 30px 90px rgba(2,6,23,.45);overflow:hidden}
.chat-image-lightbox::backdrop{background:rgba(2,6,23,.78);backdrop-filter:blur(5px)}
.chat-image-lightbox-shell{height:100%;display:flex;flex-direction:column;min-height:0}
.chat-image-lightbox-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 16px;border-bottom:1px solid #e5e7eb;background:#fff}
.chat-image-lightbox-head>strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-image-lightbox-actions{display:flex;align-items:center;gap:8px;flex:none}
.chat-image-lightbox-close{width:38px;height:38px;border:0;border-radius:11px;background:#f2f4f7;color:#344054;font-size:26px;line-height:1;cursor:pointer}
.chat-image-lightbox-close:hover{background:#e4e7ec}
.chat-image-lightbox-stage{flex:1;min-height:0;display:grid;place-items:center;padding:18px;background:linear-gradient(145deg,#0f172a,#111827);overflow:auto}
.chat-image-lightbox-stage img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:10px;box-shadow:0 18px 60px rgba(0,0,0,.36)}
@media(max-width:640px){.chat-image-lightbox{width:96vw;height:88vh;border-radius:16px}.chat-image-lightbox-head{padding:10px}.chat-image-lightbox-download{padding-inline:10px}.chat-image-lightbox-stage{padding:8px}}

/* v10.7.8 Avito message correction feedback */
.chat-correct-form{display:inline-flex;align-items:center;gap:7px;flex-wrap:wrap}.chat-correct-feedback{font-size:11px;font-weight:700;line-height:1.3}.chat-correct-feedback.is-error{color:#dc2626}.chat-correct-feedback.is-success{color:#059669}

/* v10.7.9 chat links, Avito context copy action and zero-badge cleanup */
.deal-chat-unread-badge[hidden]{display:none!important}
.chat-message-link{color:#2878d0;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px;overflow-wrap:anywhere}
.chat-message.outgoing .chat-message-link{color:#dbeafe}
.chat-message-link:hover{text-decoration-thickness:2px}
.conversation-avito-item-link{color:var(--text,#101828);font-weight:800;text-decoration:none;overflow-wrap:anywhere}
.conversation-avito-item-link:hover{color:#2878d0;text-decoration:underline;text-underline-offset:2px}
.conversation-avito-item-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.conversation-copy-link{display:inline-flex;align-items:center;gap:5px;min-height:26px;padding:4px 8px;border:1px solid #d7e5f5;border-radius:8px;background:#f4f8fd;color:#2878d0;font:inherit;font-size:10px;font-weight:800;cursor:pointer;transition:background .15s ease,border-color .15s ease,color .15s ease}
.conversation-copy-link svg{width:13px;height:13px;fill:currentColor}
.conversation-copy-link:hover{background:#eaf3ff;border-color:#b9d6f7}
.conversation-copy-link.is-copied{background:#ecfdf3;border-color:#abefc6;color:#067647}
.conversation-external-chat-actions{display:inline-flex;align-items:center;gap:7px;flex-wrap:nowrap}
.conversation-external-chat-link{display:inline-flex;align-items:center;min-height:30px;padding:5px 10px;border:1px solid #b9d6f7;border-radius:9px;background:#eef6ff;color:#175cd3;font-size:11px;font-weight:850;line-height:1.2;text-decoration:none;white-space:nowrap;transition:background .15s ease,border-color .15s ease,color .15s ease}
.conversation-external-chat-link:hover{background:#dfeeff;border-color:#84adf4;color:#1849a9}
.conversation-external-chat-copy{min-height:30px}
@media(max-width:760px){.conversation-external-chat-actions{width:100%}.conversation-external-chat-link{flex:1;justify-content:center}.conversation-external-chat-copy{flex:none}}

/* ART CRM v10.8.0 — Help Center */
.topbar-help-button{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:0 11px;border:1px solid #dce4ee;border-radius:11px;background:#fff;color:#253247;text-decoration:none;font-weight:700;font-size:13px;box-shadow:0 4px 14px rgba(30,50,80,.06);transition:.16s ease}
.topbar-help-button:hover{border-color:#ff7a45;color:#e95f2a;transform:translateY(-1px);box-shadow:0 7px 18px rgba(30,50,80,.1)}
.help-center{max-width:1320px;margin:0 auto;padding-bottom:36px}
.help-hero{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:30px 34px;border-radius:24px;background:linear-gradient(135deg,#172338 0%,#243a5b 62%,#ff6b38 160%);color:#fff;box-shadow:0 16px 40px rgba(20,35,60,.14)}
.help-hero h1,.help-article-head h1{margin:5px 0 8px;font-size:32px;line-height:1.05}.help-hero p{max-width:780px;margin:0;color:#dce7f7;font-size:16px;line-height:1.55}.help-kicker{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#ffb293}.help-hero-mark{display:grid;place-items:center;flex:0 0 92px;width:92px;height:92px;border-radius:28px;background:#ff6b38;color:#fff;font-size:58px;font-weight:900;box-shadow:inset 0 0 0 1px rgba(255,255,255,.24),0 18px 34px rgba(255,107,56,.25)}
.help-search{display:flex;align-items:center;gap:10px;margin:18px 0;padding:12px 14px;border:1px solid #e0e7ef;border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(28,45,70,.06)}.help-search>svg{flex:0 0 auto;color:#7d8ca2}.help-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;font-size:15px;color:#172338}.help-results-summary{margin:3px 0 14px;color:#718096;font-size:13px}
.help-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.help-card{display:flex;align-items:flex-start;gap:14px;min-height:118px;padding:18px;border:1px solid #e3e9f0;border-radius:18px;background:#fff;text-decoration:none;color:#1c2a3d;box-shadow:0 7px 24px rgba(20,40,70,.045);transition:.16s ease}.help-card:hover{transform:translateY(-2px);border-color:#ffc2aa;box-shadow:0 12px 30px rgba(20,40,70,.085)}.help-card-icon{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border-radius:14px;background:#fff1eb;color:#f16532}.help-card-copy{display:flex;flex:1;flex-direction:column;gap:6px}.help-card-copy strong{font-size:15px}.help-card-copy span{font-size:13px;line-height:1.45;color:#68788e}.help-card-arrow{font-size:22px;color:#a9b4c3}.help-empty{grid-column:1/-1;padding:35px;text-align:center;border:1px dashed #ccd7e4;border-radius:18px;background:#fbfcfe}.help-empty strong,.help-empty span{display:block}.help-empty span{margin-top:6px;color:#718096}
.help-article-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:20px;max-width:1460px;margin:0 auto}.help-article-nav{position:sticky;top:82px;align-self:start;max-height:calc(100vh - 105px);overflow:auto;padding:14px;border:1px solid #e2e8f0;border-radius:18px;background:#fff}.help-all-link{display:block;padding:10px 11px;margin-bottom:10px;border-radius:10px;background:#f6f8fb;color:#44536a;text-decoration:none;font-size:13px;font-weight:700}.help-article-nav-title{padding:8px 10px;color:#8a98ab;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.help-article-nav nav{display:flex;flex-direction:column;gap:3px}.help-article-nav nav a{display:flex;align-items:center;gap:9px;padding:9px 10px;border-radius:10px;color:#42516a;text-decoration:none;font-size:13px}.help-article-nav nav a:hover{background:#f5f7fa}.help-article-nav nav a.active{background:#fff0ea;color:#e75f2c;font-weight:800}.help-article-nav nav a span{display:grid;place-items:center;width:22px}
.help-article{min-width:0}.help-article-head{display:flex;align-items:flex-start;gap:16px;padding:24px 26px;border:1px solid #e2e8f0;border-radius:20px;background:#fff}.help-article-head>div:nth-child(2){flex:1}.help-article-head h1{color:#18253a}.help-article-head p{max-width:850px;margin:0;color:#64748b;line-height:1.55}.help-article-icon{display:grid;place-items:center;flex:0 0 58px;width:58px;height:58px;border-radius:17px;background:#fff0ea;color:#ef6735}.help-open-section{align-self:center;white-space:nowrap}.help-screenshots{display:grid;grid-template-columns:1fr;gap:15px;margin:18px 0}.help-screenshots figure{margin:0;padding:10px;border:1px solid #e2e8f0;border-radius:18px;background:#fff;box-shadow:0 8px 25px rgba(20,40,70,.05)}.help-screenshots img{display:block;width:100%;max-height:580px;object-fit:contain;border-radius:12px;background:#f5f7fa}.help-screenshots figcaption{padding:9px 5px 2px;color:#718096;font-size:12px;line-height:1.45}
.help-article-sections{display:flex;flex-direction:column;gap:14px;margin-top:18px}.help-section{padding:24px 26px;border:1px solid #e2e8f0;border-radius:18px;background:#fff}.help-section h2{margin:0 0 13px;color:#1b2940;font-size:19px}.help-section p{margin:0 0 11px;color:#52627a;line-height:1.65}.help-section ul{display:grid;gap:8px;margin:0;padding-left:21px;color:#334155}.help-section li{line-height:1.5}.help-steps{display:grid;gap:10px;margin:0;padding:0;list-style:none}.help-steps li{display:flex;align-items:flex-start;gap:11px}.help-steps li>span{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:9px;background:#172338;color:#fff;font-size:12px;font-weight:800}.help-steps li>div{padding-top:3px;color:#334155;line-height:1.55}.help-note{display:flex;gap:12px;margin-top:16px;padding:13px 15px;border-radius:13px;font-size:13px;line-height:1.5}.help-note strong{flex:0 0 auto}.help-note-tip{background:#eefaf3;color:#266a45;border:1px solid #cdebd9}.help-note-warning{background:#fff6e7;color:#815518;border:1px solid #f1dfb9}.help-article-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;padding:17px 21px;border-radius:15px;background:#172338;color:#dbe5f2}.help-article-footer a{color:#ffad8d;font-weight:800;text-decoration:none}
@media(max-width:1100px){.help-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.help-article-layout{grid-template-columns:1fr}.help-article-nav{position:static;max-height:none}.help-article-nav nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.help-article-head{flex-wrap:wrap}.help-open-section{margin-left:74px}}
@media(max-width:720px){.topbar-help-button span{display:none}.topbar-help-button{width:36px;justify-content:center;padding:0}.help-hero{padding:23px 20px}.help-hero-mark{display:none}.help-hero h1,.help-article-head h1{font-size:26px}.help-search{flex-wrap:wrap}.help-search input{flex-basis:calc(100% - 35px)}.help-card-grid{grid-template-columns:1fr}.help-article-nav nav{grid-template-columns:1fr 1fr}.help-article-head{padding:20px}.help-open-section{margin-left:0}.help-section{padding:20px}.help-article-footer{align-items:flex-start;flex-direction:column}}

/* ART CRM v10.10.0 — System Health Center */
.system-health-page-head{margin-bottom:16px}.system-health-hero{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:28px;padding:24px;margin-bottom:14px;border-width:1px}.system-health-hero:before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 7% 10%,rgba(255,255,255,.72),transparent 28%),linear-gradient(135deg,rgba(255,255,255,.42),transparent 45%)}.system-health-hero.is-ok{background:linear-gradient(135deg,#ecfdf5,#f8fffb);border-color:#bbf7d0}.system-health-hero.is-warning{background:linear-gradient(135deg,#fffbeb,#fffdf6);border-color:#fde68a}.system-health-hero.is-fail{background:linear-gradient(135deg,#fff1f2,#fff8f8);border-color:#fecdd3}.system-health-hero-main,.system-health-hero-meta{position:relative;z-index:1}.system-health-hero-main{display:flex;align-items:center;gap:18px;min-width:0}.system-health-orb{width:66px;height:66px;flex:0 0 66px;display:grid;place-items:center;border-radius:22px;font-size:30px;font-weight:950;box-shadow:0 10px 28px rgba(15,23,42,.08)}.system-health-orb.is-ok{background:#dcfce7;color:#047857}.system-health-orb.is-warning{background:#fef3c7;color:#a66800}.system-health-orb.is-fail{background:#ffe4e6;color:#be123c}.system-health-hero h2{margin:4px 0 6px;font-size:29px;letter-spacing:-.035em}.system-health-hero p{margin:0;max-width:720px;color:var(--muted);font-size:13px;line-height:1.5}.system-health-hero-meta{display:grid;grid-template-columns:repeat(2,minmax(120px,1fr));gap:8px;min-width:390px}.system-health-hero-meta>div{padding:10px 12px;border:1px solid rgba(100,116,139,.16);border-radius:12px;background:rgba(255,255,255,.7)}.system-health-hero-meta span{display:block;color:var(--muted);font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.07em}.system-health-hero-meta strong{display:block;margin-top:4px;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.system-health-counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:18px}.system-health-count{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:13px;background:#fff}.system-health-count span{font-size:11px;font-weight:760;color:var(--muted)}.system-health-count strong{font-size:22px;line-height:1}.system-health-count.is-ok strong{color:#059669}.system-health-count.is-warning strong{color:#d97706}.system-health-count.is-fail strong{color:#dc2626}.system-health-count.is-info strong{color:#2563eb}.system-health-alerts{overflow:hidden;margin-bottom:22px}.system-health-alert-list{display:grid}.system-health-alert{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:11px;align-items:start;padding:12px 16px;border-top:1px solid #f1f3f5}.system-health-alert:first-child{border-top:0}.system-health-alert-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:10px;font-weight:900}.system-health-alert.is-fail .system-health-alert-icon{background:#fff1f2;color:#be123c}.system-health-alert.is-warning .system-health-alert-icon{background:#fffbeb;color:#a66800}.system-health-alert strong{display:block;font-size:12px}.system-health-alert small{display:block;margin-top:3px;color:var(--muted);font-size:11px;line-height:1.45}.system-health-alert em{align-self:center;padding:4px 8px;border-radius:999px;background:#f2f4f7;color:#596273;font-size:9px;font-style:normal;font-weight:800;white-space:nowrap}.system-health-section{display:grid;gap:13px;margin:24px 0}.system-health-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px}.system-health-section-head h2{margin:3px 0 3px;font-size:20px;letter-spacing:-.02em}.system-health-section-head p{margin:0;color:var(--muted);font-size:12px}.system-health-section-head-actions{align-items:center}.system-health-infra-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.system-health-card{position:relative;min-height:190px;padding:16px;overflow:hidden;border-top-width:3px}.system-health-card.is-ok{border-top-color:#22c55e}.system-health-card.is-warning{border-top-color:#f59e0b}.system-health-card.is-fail{border-top-color:#ef4444}.system-health-card.is-info{border-top-color:#60a5fa}.system-health-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.system-health-card-head>div{min-width:0}.system-health-card-head strong{display:block;margin-top:7px;font-size:22px;line-height:1.1;letter-spacing:-.025em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.system-health-card>p{min-height:34px;margin:8px 0 11px;color:var(--muted);font-size:11px;line-height:1.45;word-break:break-word}.system-health-dot{width:10px;height:10px;flex:0 0 10px;border-radius:999px;background:#94a3b8;box-shadow:0 0 0 4px rgba(148,163,184,.14)}.system-health-dot.is-ok{background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.13)}.system-health-dot.is-warning{background:#f59e0b;box-shadow:0 0 0 4px rgba(245,158,11,.13)}.system-health-dot.is-fail{background:#ef4444;box-shadow:0 0 0 4px rgba(239,68,68,.13)}.system-health-dot.is-info{background:#60a5fa;box-shadow:0 0 0 4px rgba(96,165,250,.13)}.system-health-line{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:6px;font-size:10px;color:var(--muted)}.system-health-line b{min-width:0;max-width:68%;color:var(--text);font-size:10px;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.system-health-meter{height:6px;margin:3px 0 6px;border-radius:999px;background:#eef2f6;overflow:hidden}.system-health-meter span{display:block;height:100%;border-radius:inherit;background:currentColor}.system-health-card.is-ok .system-health-meter{color:#22c55e}.system-health-card.is-warning .system-health-meter{color:#f59e0b}.system-health-card.is-fail .system-health-meter{color:#ef4444}.system-runtime-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.system-runtime-card{padding:15px;border-top-width:3px;min-height:180px}.system-runtime-card.is-ok{border-top-color:#22c55e}.system-runtime-card.is-warning{border-top-color:#f59e0b}.system-runtime-card.is-fail{border-top-color:#ef4444}.system-runtime-card p{margin:6px 0 10px;color:var(--muted);font-size:11px}.system-runtime-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.system-runtime-card-top span{color:var(--muted);font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.06em}.system-runtime-card-top strong{font-size:20px;line-height:1}.system-runtime-details{margin-top:10px}.system-runtime-details summary{font-size:10px;color:var(--muted);cursor:pointer}.system-runtime-details pre{max-height:180px;overflow:auto;padding:9px;border-radius:9px;background:#101828;color:#e4e7ec;font-size:9px}.system-queue-breakdown{overflow:hidden}.system-queue-pills{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;padding:0 16px 16px}.system-queue-pills>div{padding:11px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft)}.system-queue-pills span,.system-queue-pills small{display:block;color:var(--muted);font-size:10px}.system-queue-pills strong{display:block;margin:3px 0;font-size:19px}.system-integrations-panel{overflow:hidden;padding:0}.system-integration-list{display:grid}.system-integration-row{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(280px,.75fr);gap:14px;align-items:center;padding:14px 16px;border-top:1px solid #f0f2f4}.system-integration-row:first-child{border-top:0}.system-integration-main{min-width:0}.system-integration-title{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.system-integration-title strong{font-size:13px}.system-integration-title span{padding:3px 7px;border-radius:999px;background:#f2f4f7;color:#596273;font-size:9px;font-weight:800}.system-integration-main>small,.system-integration-main>em{display:block;margin-top:3px;color:var(--muted);font-size:10px;font-style:normal}.system-integration-main>p{margin:5px 0 0;font-size:11px;line-height:1.4}.system-integration-row.is-fail .system-integration-main>p{color:#be123c}.system-integration-row.is-warning .system-integration-main>p{color:#a66800}.system-integration-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.system-integration-metrics>div{min-width:0;padding:8px 9px;border-radius:10px;background:var(--surface-soft)}.system-integration-metrics span{display:block;color:var(--muted);font-size:8px;font-weight:760;text-transform:uppercase;letter-spacing:.04em}.system-integration-metrics b{display:block;margin-top:4px;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.system-health-table-card{overflow:hidden}.system-health-panel-actions{gap:14px}.system-health-admin-actions{margin-top:26px}.system-health-log-card{margin-top:24px}
@media(max-width:1350px){.system-health-infra-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.system-runtime-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.system-integration-row{grid-template-columns:auto minmax(0,1fr)}.system-integration-metrics{grid-column:2}.system-health-hero{align-items:flex-start;flex-direction:column}.system-health-hero-meta{width:100%;min-width:0;grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:980px){.system-health-infra-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.system-health-counts{grid-template-columns:repeat(2,minmax(0,1fr))}.system-health-hero-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.system-integration-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.system-queue-pills{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.system-health-infra-grid,.system-runtime-grid,.system-health-counts,.system-health-hero-meta,.system-queue-pills{grid-template-columns:1fr}.system-health-section-head,.system-health-section-head-actions{align-items:flex-start;flex-direction:column}.system-health-alert{grid-template-columns:28px minmax(0,1fr)}.system-health-alert em{grid-column:2;justify-self:start}.system-integration-row{grid-template-columns:auto minmax(0,1fr);align-items:start}.system-integration-metrics{grid-column:2;grid-template-columns:1fr}.system-health-hero-main{align-items:flex-start}.system-health-orb{width:52px;height:52px;flex-basis:52px;border-radius:17px;font-size:24px}.system-health-hero h2{font-size:23px}.system-health-panel-actions{align-items:flex-start;flex-direction:column}.system-health-table-card .table-wrap{overflow:auto}}

/* v10.11.0 Backup & Restore Center */
.system-backup-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.system-backup-actions form{margin:0}.system-backup-summary{padding:18px;border-top:3px solid #60a5fa;display:grid;gap:16px}.system-backup-summary.is-ok{border-top-color:#22c55e}.system-backup-summary.is-warning{border-top-color:#f59e0b}.system-backup-summary.is-fail{border-top-color:#ef4444}.system-backup-summary-main{display:flex;align-items:flex-start;gap:12px}.system-backup-summary-main h3{margin:4px 0 2px;font-size:20px;letter-spacing:-.02em}.system-backup-summary-main p{margin:0;color:var(--muted);font-size:11px;word-break:break-all}.system-backup-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.system-backup-summary-grid>div{padding:10px 12px;border-radius:11px;background:var(--surface-soft);min-width:0}.system-backup-summary-grid span{display:block;color:var(--muted);font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.system-backup-summary-grid strong{display:block;margin-top:4px;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.system-backup-note{padding:9px 11px;border-radius:10px;background:#f8fafc;color:var(--muted);font-size:11px}.system-backup-setup{padding:14px 16px;border-left:3px solid #f59e0b}.system-backup-setup strong{display:block;font-size:12px}.system-backup-setup p{margin:5px 0 0;color:var(--muted);font-size:11px;line-height:1.5}.system-backup-setup code{font-size:10px}.system-backup-error-row td{padding-top:0!important;color:#b42318;font-size:10px;background:#fff8f7}.btn[disabled]{opacity:.45;cursor:not-allowed;pointer-events:none}
@media(max-width:980px){.system-backup-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.system-backup-actions{width:100%;align-items:stretch;flex-direction:column}.system-backup-actions form,.system-backup-actions .btn{width:100%}.system-backup-summary-grid{grid-template-columns:1fr}}
.system-backup-status-button{max-width:330px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.system-backup-center{scroll-margin-top:18px}

/* v10.13.0 Novofon Full Phone */
.crm-phone{width:min(390px,calc(100vw - 24px))}
.crm-phone-line{max-width:150px}
.crm-phone-controls,.crm-phone-postcall{margin-top:10px;padding-top:10px;border-top:1px solid var(--border,#e5e7eb)}
.crm-phone-controls[hidden],.crm-phone-postcall[hidden]{display:none!important}
.crm-phone-control-row{display:flex;gap:6px;flex-wrap:wrap}.crm-phone-control-row .btn{flex:1;min-width:92px}
.crm-phone-dtmf{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-top:8px}.crm-phone-dtmf button{border:1px solid var(--border,#dfe3e8);background:var(--panel-2,#f7f8fa);border-radius:8px;padding:7px 4px;cursor:pointer;font-weight:700}.crm-phone-dtmf button:hover{background:var(--hover,#eef2f6)}
.crm-phone-transfer{display:grid;grid-template-columns:1fr 1fr auto;gap:6px;margin-top:8px}.crm-phone-transfer .input,.crm-phone-transfer .select{min-width:0}.crm-phone-control-status,.crm-phone-postcall small{display:block;margin-top:6px;color:var(--muted,#64748b)}
.crm-phone-postcall strong{display:block;margin-bottom:6px}.crm-phone-postcall .textarea{width:100%;resize:vertical}.crm-phone-postcall>div{display:flex;justify-content:flex-end;margin-top:6px}
.crm-phone-history-wrap{display:block!important}.crm-phone-history-wrap>span{display:block;margin-bottom:4px}.crm-phone-history{width:100%}.crm-phone-history-list{display:grid;gap:3px}.crm-phone-history-list a{font-size:12px;text-decoration:none;color:var(--text,#0f172a);padding:4px 6px;border-radius:7px;background:var(--panel-2,#f7f8fa)}.crm-phone-history-list a:hover{text-decoration:underline}
@media(max-width:700px){.crm-phone-transfer{grid-template-columns:1fr}.crm-phone-line{max-width:none}}
.crm-call-page-actions{display:flex;gap:8px;flex-wrap:wrap}.crm-call-page-dtmf{display:grid;grid-template-columns:repeat(6,minmax(40px,1fr));gap:6px;margin-top:12px}.crm-call-page-dtmf button{border:1px solid var(--border,#dfe3e8);background:var(--panel-2,#f7f8fa);border-radius:8px;padding:8px;cursor:pointer;font-weight:700}.crm-call-page-transfer{display:flex;gap:8px;margin-top:12px}.crm-call-page-transfer .input{max-width:360px}@media(max-width:700px){.crm-call-page-dtmf{grid-template-columns:repeat(3,1fr)}.crm-call-page-transfer{flex-direction:column}}

/* v10.31.19 Browser WebRTC phone */
.crm-phone-webrtc{margin-top:9px;padding:9px;border:1px solid #dde3ea;border-radius:11px;background:#f8fafc}.crm-phone-webrtc-head{display:flex;align-items:center;gap:7px}.crm-phone-webrtc-head strong{min-width:0;flex:1;font-size:10px}.crm-phone-webrtc-head .btn{min-height:27px;padding:0 9px;font-size:9px}.crm-phone-webrtc-dot{width:8px;height:8px;flex:0 0 auto;border-radius:50%;background:#98a2b3;box-shadow:0 0 0 3px rgba(152,162,179,.14)}.crm-phone-webrtc-dot.is-online{background:#12b76a;box-shadow:0 0 0 3px rgba(18,183,106,.14)}.crm-phone-webrtc-dot.is-busy{background:#f79009;box-shadow:0 0 0 3px rgba(247,144,9,.16)}.crm-phone-webrtc>small{display:block;margin-top:5px;color:#667085;font-size:9px;line-height:1.35}.crm-phone-webrtc-actions{display:flex;gap:6px;margin-top:7px}.crm-phone-webrtc-actions[hidden]{display:none!important}.crm-phone-webrtc-actions .btn{flex:1;min-height:30px;font-size:9px}.webrtc-credential-list{grid-column:1/-1;display:grid;gap:8px;margin-top:5px;padding-top:12px;border-top:1px solid var(--border,#e5e7eb)}.webrtc-credential-list>small{color:var(--muted,#667085)}.webrtc-credential-row{display:grid;grid-template-columns:minmax(170px,1.2fr) repeat(3,minmax(130px,1fr));gap:8px;align-items:center}.webrtc-credential-row>div{min-width:0}.webrtc-credential-row>div strong,.webrtc-credential-row>div small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.webrtc-credential-row>div small{color:var(--muted,#667085);font-size:9px}@media(max-width:900px){.webrtc-credential-row{grid-template-columns:1fr}.webrtc-credential-row>div{margin-top:6px}}

/* v10.14.0 — Manager Workspace */
.manager-hero { margin-bottom:16px; }
.manager-scope { display:flex; flex-direction:column; gap:2px; }
.manager-threshold-form { margin-top:13px; padding-top:12px; border-top:1px solid rgba(255,255,255,.12); display:flex; align-items:center; justify-content:space-between; gap:10px; }
.manager-threshold-form label { color:rgba(255,255,255,.58); font-size:10px; }
.manager-threshold-form select { min-width:86px; height:30px; padding:0 28px 0 9px; border:1px solid rgba(255,255,255,.16); border-radius:9px; color:#fff; background:#253047; font-size:10px; outline:none; }

.manager-summary { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px; margin-bottom:16px; }
.manager-summary-card { min-width:0; min-height:102px; padding:14px; display:flex; align-items:center; gap:10px; border:1px solid var(--border); border-radius:14px; background:#fff; transition:.16s ease; }
.manager-summary-card:hover { transform:translateY(-2px); box-shadow:var(--shadow-sm); border-color:#d5dbe4; }
.manager-summary-icon { width:38px; height:38px; flex:0 0 auto; border-radius:11px; display:grid; place-items:center; background:#f2f4f7; color:#596579; }
.manager-summary-copy { min-width:0; flex:1; }
.manager-summary-label { display:block; margin-bottom:5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#667085; font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:.035em; }
.manager-summary-copy strong { display:block; font-size:25px; line-height:1; letter-spacing:-.035em; }
.manager-summary-copy small { display:block; margin-top:5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#98a2b3; font-size:9px; }
.manager-summary-card > .icon-svg { flex:0 0 auto; color:#a0a8b7; }
.manager-summary-card.tone-danger .manager-summary-icon { background:#fff0f0; color:#d92d20; }
.manager-summary-card.tone-warning .manager-summary-icon { background:#fff8e7; color:#b26a00; }
.manager-summary-card.tone-info .manager-summary-icon { background:#eef5ff; color:#2563eb; }
.manager-summary-card.tone-muted .manager-summary-icon { background:#f4f4f5; color:#71717a; }

.manager-workspace-grid { display:grid; grid-template-columns:minmax(0,2fr) minmax(280px,.85fr); gap:16px; margin-bottom:16px; align-items:start; }
.manager-focus-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-bottom:22px; align-items:start; }
.manager-panel-head { gap:16px; }
.manager-attention-list { padding:2px 0; }
.manager-attention-row { position:relative; min-height:67px; padding:11px 15px 11px 18px; display:flex; align-items:center; gap:11px; border-bottom:1px solid #eef1f4; transition:.14s ease; }
.manager-attention-row:last-child { border-bottom:0; }
.manager-attention-row:hover { background:#fafbfc; }
.manager-attention-marker { position:absolute; left:0; top:13px; bottom:13px; width:3px; border-radius:0 3px 3px 0; background:#c8ced8; }
.manager-attention-row.severity-danger .manager-attention-marker { background:#d92d20; }
.manager-attention-row.severity-warning .manager-attention-marker { background:#f59e0b; }
.manager-attention-row.severity-info .manager-attention-marker { background:#3b82f6; }
.manager-attention-icon { width:34px; height:34px; flex:0 0 auto; border-radius:10px; display:grid; place-items:center; background:#f3f5f8; color:#566176; }
.manager-attention-main { min-width:0; flex:1; }
.manager-attention-main strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; }
.manager-attention-main small { display:block; margin-top:4px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#7d8798; font-size:9.5px; }
.manager-attention-action { flex:0 0 auto; display:inline-flex; align-items:center; gap:5px; color:#667085; font-size:9.5px; font-weight:700; }
.manager-empty { min-height:210px; }

.manager-mini-list { padding:2px 0; }
.manager-mini-row { min-height:58px; padding:9px 14px; display:flex; align-items:center; gap:10px; border-bottom:1px solid #eef1f4; transition:.14s ease; }
.manager-mini-row:last-child { border-bottom:0; }
.manager-mini-row:hover { background:#fafbfc; }
.manager-mini-main { min-width:0; flex:1; }
.manager-mini-main strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; }
.manager-mini-main small { display:block; margin-top:4px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#98a2b3; font-size:9px; }
.manager-mini-time { min-width:42px; flex:0 0 auto; padding:6px 7px; border-radius:8px; background:#f3f5f7; color:#475467; text-align:center; font-size:10px; font-weight:800; }
.manager-mini-time.is-overdue { background:#fff0f0; color:#d92d20; }
.manager-channel-avatar { width:34px; height:34px; flex:0 0 auto; border-radius:50%; display:grid; place-items:center; background:#edf2f7; color:#445066; font-size:11px; font-weight:900; }
.manager-unread-count { min-width:23px; height:23px; padding:0 6px; border-radius:999px; display:grid; place-items:center; background:#e5484d; color:#fff; font-size:9px; font-weight:900; }
.manager-deal-status { width:9px; height:9px; flex:0 0 auto; border-radius:50%; background:#98a2b3; }
.manager-deal-status.needs-reply { background:#f59e0b; }
.manager-deal-status.is-stale { background:#7c8799; }

.manager-section-heading { margin:3px 0 12px; display:flex; align-items:flex-end; justify-content:space-between; }
.manager-section-heading span { display:block; margin-bottom:3px; color:#98a2b3; font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.manager-section-heading h2 { margin:0; font-size:18px; letter-spacing:-.02em; }

@media (max-width: 1450px) {
    .manager-summary { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width: 1050px) {
    .manager-workspace-grid { grid-template-columns:1fr; }
    .manager-focus-grid { grid-template-columns:1fr; }
}
@media (max-width: 760px) {
    .manager-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .manager-summary-card { min-height:88px; padding:11px; }
    .manager-attention-action { display:none; }
}
@media (max-width: 520px) {
    .manager-summary { grid-template-columns:1fr; }
    .manager-threshold-form { align-items:flex-start; flex-direction:column; }
    .manager-threshold-form select { width:100%; }
}

/* v10.15.0 Chat SLA */
.conversation-sla{display:inline-flex;align-items:center;gap:4px;width:max-content;margin-top:5px;padding:3px 7px;border-radius:999px;font-size:9px;font-weight:850;line-height:1.2;letter-spacing:.01em;border:1px solid transparent}
.conversation-sla[hidden]{display:none!important}
.conversation-sla-ok{background:#eef8ff;color:#175cd3;border-color:#b2ddff}
.conversation-sla-warning{background:#fffaeb;color:#b54708;border-color:#fedf89}
.conversation-sla-breach{background:#fef3f2;color:#b42318;border-color:#fecdca}
.conversation-row-compact.has-sla-warning:not(.has-unread){background:#fffdf5}
.conversation-row-compact.has-sla-breach:not(.has-unread){background:#fff5f4;box-shadow:inset 3px 0 0 #d92d20}
.conversation-row-compact.has-sla-breach:not(.has-unread):hover{background:#ffefed}
.conversation-inline-title .conversation-sla,.chat-thread-head .conversation-sla{margin:0 0 0 6px;vertical-align:middle}
.info-item .conversation-sla{margin-top:0}
.report-sla-note{margin-top:12px;color:#667085;font-size:10px;line-height:1.5}

/* v10.16.0 — AI Chat Copilot. Suggestions never send automatically. */
.chat-ai-copilot{margin-bottom:8px;padding:8px 9px;border:1px solid #e7e9ed;border-radius:13px;background:#fbfcfe}
.chat-ai-toolbar{display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap}
.chat-ai-primary-actions,.chat-ai-secondary-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.chat-ai-button,.chat-ai-link{appearance:none;border:0;cursor:pointer;font:inherit}
.chat-ai-button{min-height:30px;padding:0 10px;border:1px solid #dfe3e8;border-radius:999px;background:#fff;color:#344054;font-size:10px;font-weight:750}
.chat-ai-button:hover{border-color:#98a2b3;background:#f8fafc}
.chat-ai-button-accent{border-color:#c9c2f6;background:#f7f5ff;color:#5746b8}
.chat-ai-button:disabled,.chat-ai-link:disabled{opacity:.55;cursor:wait}
.chat-ai-button.is-loading::after{content:'…'}
.chat-ai-link{padding:4px 2px;background:transparent;color:#667085;font-size:10px;text-decoration:underline;text-decoration-color:#cfd4dc;text-underline-offset:3px}
.chat-ai-link:hover{color:#344054}
.chat-ai-notice{margin-top:7px;color:#b54708;font-size:10px}
.chat-ai-result{margin-top:8px;padding:10px;border:1px solid #e4e7ec;border-radius:11px;background:#fff}
.chat-ai-result-head{display:flex;align-items:center;gap:8px;margin-bottom:8px;color:#667085;font-size:10px}
.chat-ai-result-head strong{color:#344054;font-size:11px}
.chat-ai-result-head [data-ai-result-status]{margin-left:auto}
.chat-ai-close{width:24px;height:24px;border:0;border-radius:7px;background:#f2f4f7;color:#667085;font-size:17px;line-height:1;cursor:pointer}
.chat-ai-result-text{width:100%;min-height:84px;max-height:180px;font-size:12px;line-height:1.45;resize:vertical}
.chat-ai-result-actions{display:flex;align-items:center;gap:9px;margin-top:7px;color:#98a2b3;font-size:9px}
.chat-ai-summary{white-space:pre-wrap;color:#475467;font-size:11px;line-height:1.5}
.chat-ai-summary-result+.chat-ai-entities,.chat-ai-entities{margin-top:8px}
.chat-ai-entities{display:flex;gap:6px;flex-wrap:wrap}
.chat-ai-entity{display:flex;align-items:center;gap:5px;padding:5px 8px;border-radius:9px;background:#f2f4f7;font-size:10px}
.chat-ai-entity span{color:#667085}.chat-ai-entity strong{color:#1d2939}
.chat-ai-deal-suggestion{margin-top:9px;padding:8px 9px;border-radius:10px;background:#f6fef9;border:1px solid #abefc6;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10px}
.chat-ai-deal-suggestion div{display:flex;flex-wrap:wrap;gap:3px;color:#475467}.chat-ai-deal-suggestion strong{color:#067647}
.chat-ai-error{padding:8px 9px;border-radius:9px;background:#fff1f0;color:#b42318;font-size:10px;line-height:1.4}
@media(max-width:720px){.chat-ai-toolbar{align-items:flex-start}.chat-ai-primary-actions{width:100%;flex-wrap:nowrap;overflow-x:auto}.chat-ai-button{flex:0 0 auto}.chat-ai-deal-suggestion{align-items:flex-start;flex-direction:column}.chat-ai-result-actions{align-items:flex-start;flex-direction:column}}

/* v10.17.0 Smart Reply Templates */
.quick-reply-folders { display:flex; flex-wrap:wrap; gap:7px; margin-bottom:8px; align-items:flex-start; }
.quick-reply-folder { position:relative; }
.quick-reply-folder > summary { list-style:none; cursor:pointer; min-height:30px; padding:6px 10px; border:1px solid var(--line); border-radius:999px; background:#fff; color:#344054; font-size:11px; font-weight:800; user-select:none; }
.quick-reply-folder > summary::-webkit-details-marker { display:none; }
.quick-reply-folder > summary span { margin-left:4px; color:#98a2b3; font-weight:700; }
.quick-reply-folder[open] > summary { border-color:var(--primary); color:var(--primary); background:#f8fbff; }
.quick-reply-folder-items { display:flex; flex-wrap:wrap; gap:7px; margin-top:7px; padding:8px; border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:0 8px 24px rgba(16,24,40,.08); }
.quick-reply-chip.has-missing-variables { border-style:dashed; }
.quick-reply-feedback { margin:-2px 0 8px; color:#b54708; font-size:10px; font-weight:700; }
.template-variable-list { display:flex; flex-wrap:wrap; gap:8px; }
.template-variable-chip { display:inline-flex; align-items:center; gap:7px; padding:7px 9px; border:1px solid var(--line); border-radius:10px; background:#f8fafc; color:#344054; cursor:pointer; }
.template-variable-chip:hover { border-color:var(--primary); color:var(--primary); }
.template-variable-chip code { font-size:11px; font-weight:800; }
.template-variable-chip span { font-size:11px; }
@media (max-width:820px) {
    .quick-reply-folders { flex-wrap:nowrap; overflow-x:auto; padding-bottom:3px; }
    .quick-reply-folder { flex:0 0 auto; }
    .quick-reply-folder-items { max-width:min(86vw, 420px); }
}

/* v10.18.0 Customer 360 */
.customer360-page-head{align-items:flex-start}.customer360-title-row{display:flex;align-items:center;gap:14px}.customer360-avatar{width:52px;height:52px;display:grid;place-items:center;font-size:16px;background:#edf1f6}.customer360-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}.customer360-kpi{padding:14px 15px;border:1px solid var(--line);border-radius:14px;background:#fff;min-width:0}.customer360-kpi span{display:block;color:#98a2b3;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.05em}.customer360-kpi strong{display:block;margin-top:6px;font-size:17px;line-height:1.25;overflow:hidden;text-overflow:ellipsis}.customer360-kpi small{display:block;margin-top:5px;color:#667085;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.customer360-nav{position:sticky;top:58px;z-index:10;display:flex;gap:6px;overflow-x:auto;margin-bottom:14px;padding:8px;border:1px solid var(--line);border-radius:13px;background:rgba(255,255,255,.96);backdrop-filter:blur(10px)}.customer360-nav a{flex:0 0 auto;padding:7px 10px;border-radius:8px;color:#667085;font-size:10px;font-weight:800}.customer360-nav a:hover{background:#eef4ff;color:#245fae}.customer360-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}.customer360-card{overflow:hidden;scroll-margin-top:112px}.customer360-span-2{grid-column:1/-1}.customer360-quick-actions{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:14px}.customer360-quick-actions form{margin:0}.customer360-contact-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.customer360-contact-columns label{display:block;margin-bottom:7px;color:#98a2b3;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.05em}.customer360-channel-list{margin-top:12px;padding-top:10px;border-top:1px solid #edf0f3}.customer360-line{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:7px 0;border-bottom:1px solid #f0f2f5;color:#344054}.customer360-line:last-child{border-bottom:0}.customer360-line strong{font-size:10px;overflow-wrap:anywhere}.customer360-line span{color:#98a2b3;font-size:9px;text-align:right;overflow-wrap:anywhere}.customer360-note{display:grid;gap:4px;margin-top:12px;padding:10px;border-radius:10px;background:#fafbfc}.customer360-note strong{font-size:9px;text-transform:uppercase;color:#98a2b3}.customer360-note span{font-size:11px;line-height:1.5;color:#475467;white-space:pre-wrap}.customer360-list{display:grid;gap:7px;max-height:520px;overflow:auto}.customer360-two-columns{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.customer360-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;border:1px solid #edf0f3;border-radius:10px;background:#fff;color:#344054;min-width:0}.customer360-row:hover{border-color:#cbd9ef;background:#fbfdff}.customer360-row>div{min-width:0}.customer360-row strong{display:block;font-size:10px;line-height:1.35}.customer360-row span{display:block;margin-top:3px;color:#7f8999;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.customer360-row time,.customer360-row b{flex:0 0 auto;color:#667085;font-size:9px}.customer360-purchase{border:1px solid #edf0f3;border-radius:10px;overflow:hidden}.customer360-purchase .customer360-row{border:0;border-radius:0}.customer360-products{display:flex;gap:6px;flex-wrap:wrap;padding:0 10px 9px}.customer360-products span{padding:4px 6px;border-radius:6px;background:#f2f4f7;color:#667085;font-size:8px}.customer360-inline-form{display:grid;grid-template-columns:minmax(0,1fr) 170px 110px auto;gap:7px;margin-top:8px;padding-top:10px;border-top:1px solid #edf0f3}.customer360-recordings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.customer360-recording{display:grid;grid-template-columns:minmax(150px,.6fr) minmax(240px,1fr);gap:10px;align-items:center;padding:10px;border:1px solid #edf0f3;border-radius:10px}.customer360-recording div span{display:block;margin-top:3px;color:#98a2b3;font-size:9px}.customer360-recording audio{width:100%;height:34px}.customer360-timeline{margin-top:14px;scroll-margin-top:112px}.customer360-note-panel{margin-top:14px}.customer360-inline-note{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}.customer360-inline-note textarea{min-height:72px}
@media(max-width:1100px){.customer360-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.customer360-two-columns,.customer360-recordings{grid-template-columns:1fr}.customer360-inline-form{grid-template-columns:1fr 1fr}.customer360-inline-form .btn{width:100%}}
@media(max-width:760px){.customer360-grid{grid-template-columns:1fr}.customer360-span-2{grid-column:auto}.customer360-kpis{grid-template-columns:1fr 1fr}.customer360-contact-columns{grid-template-columns:1fr}.customer360-inline-form{grid-template-columns:1fr}.customer360-recording{grid-template-columns:1fr}.customer360-inline-note{grid-template-columns:1fr}.customer360-nav{top:50px}.customer360-title-row{align-items:flex-start}.customer360-page-head{gap:12px}}
@media(max-width:480px){.customer360-kpis{grid-template-columns:1fr}.customer360-kpi strong{font-size:15px}}

/* v10.19.0 — realtime duplicate guard */
.duplicate-live-status { margin-top:12px; font-size:12px; color:var(--muted); }
.duplicate-live-status.is-loading { color:#475467; }
.duplicate-live-status.is-clear { color:#047857; }
.duplicate-live-status.is-warning { color:#b54708; font-weight:700; }
.duplicate-live-status.is-error { color:#b42318; }
.duplicate-live-results { display:grid; gap:10px; margin-top:10px; }
.duplicate-live-card { padding:14px; border:1px solid #f5c26b; border-radius:14px; background:#fffbeb; box-shadow:0 1px 2px rgba(16,24,40,.04); }
.duplicate-live-card > strong { display:block; font-size:15px; color:#101828; }
.duplicate-live-meta { display:flex; flex-wrap:wrap; gap:6px 14px; margin-top:7px; font-size:11px; color:#475467; }
.duplicate-live-match { margin-top:7px; font-size:11px; color:#7a2e0e; overflow-wrap:anywhere; }
.duplicate-live-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }

/* v10.20.0 — global command palette */
body.command-palette-open { overflow: hidden; }
.command-palette { position: fixed; inset: 0; z-index: 13000; display: grid; place-items: start center; padding: min(14vh, 110px) 18px 30px; }
.command-palette[hidden] { display: none !important; }
.command-palette-backdrop { position: absolute; inset: 0; border: 0; background: rgba(15, 23, 42, .58); backdrop-filter: blur(3px); cursor: default; }
.command-palette-dialog { position: relative; width: min(760px, 100%); max-height: min(72vh, 690px); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); box-shadow: 0 28px 80px rgba(15,23,42,.34); }
.command-palette-search { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.command-palette-prompt { font-size: 28px; line-height: 1; color: var(--accent); font-weight: 800; }
.command-palette-search input { min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 18px; }
.command-palette-search kbd { border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 7px; padding: 3px 7px; background: var(--surface); color: var(--muted); font-size: 11px; }
.command-palette-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px 8px; color: var(--muted); font-size: 12px; }
.command-palette-head strong { color: var(--text); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.command-palette-results { overflow: auto; padding: 5px 8px 10px; min-height: 150px; }
.command-palette-state { padding: 28px 16px; text-align: center; color: var(--muted); }
.command-palette-state.is-error { color: var(--danger); }
.command-palette-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 11px; color: inherit; text-decoration: none; }
.command-palette-item:hover, .command-palette-item.is-active { background: var(--surface); }
.command-palette-badge { min-width: 66px; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 11px; text-align: center; }
.command-palette-copy { min-width: 0; display: grid; gap: 2px; }
.command-palette-copy strong, .command-palette-copy small, .command-palette-copy em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.command-palette-copy strong { font-size: 14px; }
.command-palette-copy small { color: var(--muted); font-size: 12px; }
.command-palette-copy em { color: var(--muted); font-size: 11px; font-style: normal; }
.command-palette-item time, .command-palette-enter { color: var(--muted); font-size: 11px; }
.command-palette-help { display: flex; flex-wrap: wrap; gap: 7px 12px; padding: 10px 16px 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.command-palette-help code { color: var(--text); }
@media (max-width: 640px) {
  .command-palette { padding: 10px; place-items: start stretch; }
  .command-palette-dialog { width: 100%; max-height: calc(100vh - 20px); border-radius: 14px; }
  .command-palette-head span, .command-palette-item time { display: none; }
  .command-palette-item { grid-template-columns: auto 1fr; }
  .command-palette-search input { font-size: 16px; }
}
.topbar-command-button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--muted); cursor: pointer; }
.topbar-command-button:hover { color: var(--text); background: var(--surface); }
.topbar-command-button > span { color: var(--accent); font-weight: 800; }
.topbar-command-button kbd { border: 0; background: transparent; color: inherit; font: inherit; font-size: 11px; }
@media (max-width: 760px) { .topbar-command-button kbd { display: none; } }
/* v10.21.0 — entity change history */
.entity-history-card{margin-top:18px}.entity-history-card .panel-head>div{display:flex;flex-direction:column;gap:3px}.entity-history-list{display:flex;flex-direction:column;padding:0}.entity-history-entry{padding:16px 18px;border-bottom:1px solid var(--border-color,#e7e9ee)}.entity-history-entry:last-child{border-bottom:0}.entity-history-entry-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:10px}.entity-history-actor{display:flex;align-items:baseline;gap:9px;min-width:0}.entity-history-actor time{font-variant-numeric:tabular-nums;color:var(--muted,#7b8190);font-size:12px;white-space:nowrap}.entity-history-actor strong{font-size:14px}.entity-history-meta{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.entity-history-meta span{font-size:11px;line-height:1.4;padding:3px 7px;border-radius:999px;background:var(--surface-soft,#f5f6f8);color:var(--muted,#6d7280)}.entity-history-changes{display:flex;flex-direction:column;gap:8px}.entity-history-change{display:grid;grid-template-columns:minmax(120px,180px) minmax(0,1fr);gap:14px;align-items:start}.entity-history-field{font-size:13px;color:var(--muted,#737986)}.entity-history-values{display:flex;align-items:baseline;gap:8px;min-width:0;flex-wrap:wrap;font-size:14px}.entity-history-old{color:var(--muted,#7d8390);text-decoration:line-through;overflow-wrap:anywhere}.entity-history-arrow{color:var(--muted,#8b909b)}.entity-history-new{font-weight:650;overflow-wrap:anywhere}.entity-history-action-only{font-size:13px;color:var(--muted,#737986)}@media(max-width:720px){.entity-history-entry{padding:14px}.entity-history-entry-head{flex-direction:column;gap:6px}.entity-history-meta{justify-content:flex-start}.entity-history-change{grid-template-columns:1fr;gap:3px}.entity-history-values{gap:6px}}

/* v10.22.0 — configurable notification matrix */
.notification-channel-settings{max-width:980px;padding:22px;margin-bottom:16px}.notification-channel-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px}.notification-channel-table{width:100%;border-collapse:collapse;min-width:650px;background:#fff}.notification-channel-table th,.notification-channel-table td{padding:12px 14px;border-bottom:1px solid var(--line);text-align:center}.notification-channel-table th:first-child,.notification-channel-table td:first-child{text-align:left}.notification-channel-table th{font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:#667085;background:#f8fafc}.notification-channel-table tbody tr:last-child td{border-bottom:0}.notification-channel-table tbody tr:hover{background:#fbfcfe}.notification-channel-check{position:relative;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;cursor:pointer}.notification-channel-check input{position:absolute;opacity:0;pointer-events:none}.notification-channel-check span[aria-hidden="true"]{width:20px;height:20px;border:1.5px solid #c8d0dc;border-radius:6px;background:#fff;display:grid;place-items:center;transition:.15s ease}.notification-channel-check input:checked + span[aria-hidden="true"]{background:var(--accent);border-color:var(--accent)}.notification-channel-check input:checked + span[aria-hidden="true"]::after{content:'✓';color:#fff;font-size:13px;font-weight:900;line-height:1}.notification-channel-check input:focus-visible + span[aria-hidden="true"]{outline:3px solid rgba(37,99,235,.16);outline-offset:2px}.notification-destination-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}.notification-destination-grid .field{margin:0}.notification-destination-grid small{display:block;margin-top:6px;color:#8b95a5;font-size:10px;line-height:1.45}.notification-settings-savebar{max-width:980px;display:flex;justify-content:flex-end;padding:14px 0 4px}.field-error{margin-top:6px;color:#b42318;font-size:11px;font-weight:700}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:720px){.notification-channel-settings{padding:14px}.notification-destination-grid{grid-template-columns:1fr}.notification-settings-savebar .btn{width:100%;justify-content:center}}


/* v10.23.0 — Help Center v2 interactive walkthroughs */
.help-card-match{margin-top:4px;padding:7px 9px;border-radius:9px;background:#fff7f2;color:#83533f!important;font-size:12px!important;line-height:1.4!important}.help-card-match b{color:#e45e2d}.help-article-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-left:auto}.help-show-me{white-space:nowrap}.topbar-help-button{cursor:pointer;font:inherit}.help-v2-popover[hidden],.help-v2-tour[hidden]{display:none!important}.help-v2-popover{position:fixed;inset:0;z-index:1200}.help-v2-popover-backdrop{position:absolute;inset:0;border:0;background:rgba(16,24,40,.18)}.help-v2-popover-card{position:absolute;top:68px;right:20px;width:min(430px,calc(100vw - 32px));padding:18px;border:1px solid #dde5ee;border-radius:18px;background:#fff;box-shadow:0 24px 60px rgba(16,24,40,.22)}.help-v2-popover-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.help-v2-popover-head strong{display:block;margin-top:4px;font-size:17px;color:#1c2a3d}.help-v2-popover-card p{margin:12px 0;color:#66758a;line-height:1.5}.help-v2-close{border:0;background:#f4f6f8;width:34px;height:34px;border-radius:10px;font-size:22px;cursor:pointer}.help-v2-popover-actions{display:flex;gap:8px;flex-wrap:wrap}.help-v2-tour{position:fixed;inset:0;z-index:1250;pointer-events:none}.help-v2-tour-shade{position:absolute;inset:0;background:rgba(15,23,42,.26);pointer-events:auto}.help-v2-target{position:relative!important;z-index:1252!important;outline:4px solid #ff7a45!important;outline-offset:5px!important;border-radius:10px!important;box-shadow:0 0 0 9999px rgba(15,23,42,.16)!important}.help-v2-tour-card{position:fixed;z-index:1253;width:min(390px,calc(100vw - 24px));padding:17px 18px;border-radius:17px;background:#fff;border:1px solid #dde5ee;box-shadow:0 22px 60px rgba(16,24,40,.28);pointer-events:auto}.help-v2-tour-progress{margin-bottom:7px;color:#e95f2a;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.help-v2-tour-card strong{display:block;color:#172338;font-size:17px}.help-v2-tour-card p{margin:8px 0 14px;color:#5c6b7f;line-height:1.5}.help-v2-tour-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}@media(max-width:720px){.help-v2-popover-card{top:60px;right:12px}.help-article-head-actions{width:100%;margin-left:0}.help-v2-tour-card{left:12px!important;right:12px!important;width:auto!important}.help-v2-target{outline-width:3px!important}}

/* v10.24.0 — Release Center */
.release-center-head{align-items:flex-start}.release-center-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);gap:16px;margin-bottom:16px}.release-version-card,.release-last-card{padding:22px;display:flex;flex-direction:column;gap:8px}.release-version-card>span,.release-last-card>span{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}.release-version-card>strong,.release-last-card>strong{font-size:30px;line-height:1.05}.release-status{display:flex;align-items:center;gap:8px;font-weight:700}.release-center-checks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.release-check-card{padding:16px;display:flex;flex-direction:column;gap:8px;border-left:3px solid var(--border)}.release-check-card>div{display:flex;align-items:center;gap:8px}.release-check-card>b{font-size:17px}.release-check-card small{color:var(--muted);overflow-wrap:anywhere}.release-check-card.is-ok,.release-last-card.is-ok{border-left-color:#2f9e66}.release-check-card.is-warning,.release-last-card.is-warning{border-left-color:#d99a2b}.release-check-card.is-fail,.release-last-card.is-fail{border-left-color:#d9534f}.release-history-card{padding:0;overflow:hidden}.release-history-card .panel-head{padding:18px 20px}.release-history-table td small{display:block;color:var(--muted);margin-top:3px}.status-pill{display:inline-flex;padding:3px 8px;border-radius:999px;font-size:12px;font-weight:700;background:var(--surface-2)}.status-pill.is-ok{background:rgba(47,158,102,.12)}.status-pill.is-warning{background:rgba(217,154,43,.14)}.status-pill.is-fail{background:rgba(217,83,79,.13)}.status-pill.is-muted{color:var(--muted)}.release-history-error td{color:#b33;font-size:12px}.release-known-card{margin-top:16px;padding:16px 18px}.release-known-card summary{cursor:pointer;font-weight:700}.release-known-list{display:grid;gap:8px;margin-top:14px}.release-known-list>div{display:grid;grid-template-columns:90px 1fr;gap:12px;padding:8px 0;border-top:1px solid var(--border)}.release-known-list span{color:var(--muted)}
@media(max-width:900px){.release-center-grid{grid-template-columns:1fr}.release-center-checks{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.release-center-checks{grid-template-columns:1fr}.release-version-card>strong,.release-last-card>strong{font-size:25px}}


/* v10.25.0 — Action Center */
.action-center-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-start}.action-center-meta{display:grid;gap:3px;min-width:220px;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}.action-center-meta span,.action-center-meta small{color:var(--muted);font-size:12px}.action-center-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}.action-summary-card{display:grid;gap:5px;padding:15px 16px;border:1px solid var(--line);border-radius:14px;background:var(--panel);text-decoration:none;color:inherit}.action-summary-card strong{font-size:27px}.action-summary-card span{font-weight:700}.action-summary-card small{color:var(--muted)}.action-summary-card.is-critical{border-left:4px solid #dc2626}.action-summary-card.is-high{border-left:4px solid #d97706}.action-summary-card.is-muted{opacity:.78}.action-center-filters{margin-bottom:16px}.action-filter-form{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.action-filter-form .field{min-width:150px;margin:0}.action-filter-check{display:flex;align-items:center;gap:8px;min-height:42px;padding:0 4px}.action-center-list{display:grid}.action-center-row{display:grid;grid-template-columns:38px minmax(0,1fr) minmax(280px,auto);gap:12px;align-items:center;padding:15px 4px;border-top:1px solid var(--line)}.action-center-row:first-child{border-top:0}.action-center-row.priority-critical{box-shadow:inset 4px 0 0 #dc2626}.action-center-row.priority-high{box-shadow:inset 4px 0 0 #d97706}.action-center-row.priority-normal{box-shadow:inset 4px 0 0 #64748b}.action-center-row.is-snoozed{opacity:.65}.action-center-signal{display:grid;place-items:center;position:relative}.action-dot{width:8px;height:8px;border-radius:99px;background:currentColor;position:absolute;right:0;top:1px}.priority-critical .action-center-signal{color:#dc2626}.priority-high .action-center-signal{color:#d97706}.priority-normal .action-center-signal{color:#64748b}.action-kind-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--bg-soft)}.action-center-copy{min-width:0}.action-center-title-line{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.action-center-reason{font-weight:650;margin-top:4px}.action-center-detail,.action-center-snoozed{font-size:12px;color:var(--muted);margin-top:4px}.action-priority-badge{font-size:11px;font-weight:700;padding:3px 7px;border-radius:99px;background:var(--bg-soft);color:var(--muted)}.action-center-actions{display:flex;justify-content:flex-end;align-items:center;gap:6px;flex-wrap:wrap}.action-center-actions form{margin:0}.action-snooze-form{display:flex;align-items:center;gap:5px}.action-snooze-form select{min-height:32px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:inherit;padding:4px 7px}.action-center-empty{padding:30px 10px}.action-center-empty span{display:block;margin-top:5px;color:var(--muted)}
@media(max-width:980px){.action-center-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.action-center-row{grid-template-columns:34px minmax(0,1fr)}.action-center-actions{grid-column:2;justify-content:flex-start}}
@media(max-width:640px){.action-center-head{display:block}.action-center-meta{margin-top:12px;min-width:0}.action-center-summary{grid-template-columns:1fr 1fr}.action-filter-form{display:grid;grid-template-columns:1fr 1fr}.action-filter-form .field{min-width:0}.action-filter-check{grid-column:1/-1}.action-center-row{padding:14px 0}.action-center-actions{gap:5px}.action-center-actions .btn{flex:1 1 auto}.action-snooze-form{width:100%}.action-snooze-form select{flex:1}}

/* v10.27.0 — Automation Rules v2 */
.automation-v2-flow{display:grid;grid-template-columns:minmax(0,1fr) 48px minmax(0,1fr);gap:12px;align-items:start;margin:18px 0}
.automation-v2-block{position:relative;border:1px solid var(--line);border-radius:16px;padding:18px;background:var(--surface,#fff);min-width:0}
.automation-v2-kicker{display:inline-flex;align-items:center;justify-content:center;min-width:54px;height:28px;border-radius:999px;background:var(--accent-soft,#eef4ff);color:var(--accent,#175cd3);font-weight:800;font-size:12px;letter-spacing:.06em;margin-bottom:14px}
.automation-v2-arrow{display:flex;align-items:center;justify-content:center;font-size:30px;color:var(--muted);padding-top:64px}
.automation-builder-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:16px 0 10px}.automation-builder-head>div{display:flex;flex-direction:column;gap:2px}
.automation-builder-list{display:flex;flex-direction:column;gap:10px}.automation-builder-empty{padding:14px;border:1px dashed var(--line);border-radius:12px;color:var(--muted);font-size:12px}
.automation-condition-row{display:grid;grid-template-columns:1.2fr .8fr 1fr 38px;gap:8px;align-items:center}.automation-condition-row .btn{min-width:38px}
.automation-action-row{border:1px solid var(--line);border-radius:14px;padding:12px;background:#f8fafc}.automation-action-top{display:flex;gap:8px;justify-content:space-between;align-items:center}.automation-action-top>.select{max-width:360px}.automation-action-order{display:flex;gap:5px}
.automation-action-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}.automation-action-fields .field span{display:block;font-size:11px;color:var(--muted);margin-bottom:5px}.automation-action-warning{grid-column:1/-1;padding:9px 11px;border-radius:10px;background:#fff7ed;color:#9a3412;font-size:11px}
.automation-action-check{align-self:end}.automation-v2-safety{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:18px 0;margin:18px 0}.automation-checks{display:flex;flex-direction:column;gap:10px;justify-content:center}.automation-advanced{margin:14px 0;border:1px solid var(--line);border-radius:14px;padding:12px 14px}.automation-advanced summary{cursor:pointer;font-weight:700}.automation-v2-note{padding:12px 14px;border-radius:12px;background:#eff8ff;color:#1849a9;margin:14px 0;font-size:12px}
@media(max-width:980px){.automation-v2-flow{grid-template-columns:1fr}.automation-v2-arrow{padding:0;transform:rotate(90deg);height:28px}.automation-condition-row{grid-template-columns:1fr 1fr}.automation-condition-row .js-condition-value{grid-column:1/-2}.automation-action-fields{grid-template-columns:1fr}}
@media(max-width:560px){.automation-condition-row{grid-template-columns:1fr}.automation-condition-row .js-condition-value{grid-column:auto}.automation-action-top{align-items:flex-start;flex-direction:column}.automation-action-top>.select{max-width:none;width:100%}}
/* v10.28.0 Quotes / Commercial Proposals */
.quote-editor{overflow:hidden}.quote-form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.quote-field-wide{grid-column:span 2}.quote-items-wrap{display:grid;gap:14px}.quote-items{display:grid;gap:10px}.quote-item{display:grid;grid-template-columns:120px 120px minmax(220px,1fr) 80px 110px 110px 90px minmax(160px,.8fr) 105px 80px;gap:8px;align-items:end;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fafbfc}.quote-item .field span{font-size:8px}.quote-item-total{align-self:end;padding:8px 9px;border:1px solid var(--line);border-radius:8px;background:#fff}.quote-item-total span{display:block;color:#98a2b3;font-size:8px;font-weight:800;text-transform:uppercase}.quote-item-total strong{display:block;margin-top:4px;font-size:11px}.quote-remove{align-self:end}.quote-live-summary{margin-left:auto;width:min(420px,100%);display:grid;gap:7px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fff}.quote-live-summary>div{display:flex;justify-content:space-between;gap:15px;font-size:10px}.quote-live-summary span{color:#667085}.quote-live-summary .is-total{padding-top:8px;border-top:1px solid var(--line);font-size:13px}.quote-textareas{grid-template-columns:1fr 1fr}.quote-form-actions{display:flex;justify-content:flex-end;gap:8px}.quote-show-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,.55fr);gap:14px;align-items:start}.quote-side-stack{display:grid;gap:14px}.quote-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.quote-kpis>div,.quote-meta-grid>div{padding:12px;border:1px solid var(--line);border-radius:10px;background:#fafbfc}.quote-kpis span,.quote-meta-grid span{display:block;color:#98a2b3;font-size:8px;font-weight:850;text-transform:uppercase}.quote-kpis strong,.quote-meta-grid strong{display:block;margin-top:5px;font-size:13px}.quote-kpis .is-total{background:#eef4ff;border-color:#cfdef5}.quote-meta-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;border-top:1px solid var(--line)}.quote-table-wrap{overflow-x:auto}.quote-table{min-width:760px}.quote-table td small,.quote-history td small{display:block;margin-top:3px;color:#98a2b3;font-size:8px}.quote-text-block{border-top:1px solid var(--line)}.quote-text-block h3{margin:0 0 7px;font-size:11px}.quote-text-block p{margin:0;white-space:pre-wrap;color:#475467;font-size:10px;line-height:1.6}.quote-send-form{display:grid;gap:9px}.quote-history{margin-top:14px}.quote-history tr.is-current{background:#f4f8ff}.quote-status-accepted{background:#ecfdf3;color:#237344}.quote-status-rejected{background:#fff1f0;color:#b42318}.deal-quotes-panel b{flex:0 0 auto;font-size:10px}
@media(max-width:1100px){.quote-item{grid-template-columns:repeat(4,minmax(0,1fr))}.quote-item-title,.quote-item-note{grid-column:span 2}.quote-show-grid{grid-template-columns:1fr}.quote-kpis,.quote-meta-grid{grid-template-columns:1fr 1fr}.quote-form-grid{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.quote-item{grid-template-columns:1fr 1fr}.quote-item-title,.quote-item-note{grid-column:1/-1}.quote-form-grid,.quote-textareas,.quote-kpis,.quote-meta-grid{grid-template-columns:1fr}.quote-field-wide{grid-column:auto}.quote-form-actions{flex-direction:column}.quote-form-actions .btn{width:100%}}

/* v10.29.0 — AI Sales Copilot v2. Read-only Customer 360 analysis. */
.chat-ai-button-sales{border-color:#c7d7fe;background:#eef4ff;color:#1849a9}
.chat-ai-button-sales:hover{border-color:#84adff;background:#e8f0ff}
.customer360-ai-card{margin-bottom:14px;border-color:#dbe5ff;background:linear-gradient(180deg,#fbfdff 0%,#fff 100%)}
.customer360-ai-card .panel-head{align-items:center}
.ai-sales-result{display:grid;gap:10px;margin-top:10px}
.ai-sales-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ai-sales-field,.ai-sales-section,.ai-sales-next{padding:9px 10px;border:1px solid #eaecf0;border-radius:10px;background:#fff}
.ai-sales-span-2{grid-column:1/-1}
.ai-sales-field>span,.ai-sales-section>span,.ai-sales-next>span{display:block;margin-bottom:5px;color:#98a2b3;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.04em}
.ai-sales-field strong,.ai-sales-next strong{display:block;color:#344054;font-size:11px;line-height:1.45;white-space:pre-wrap}
.ai-sales-next{border-color:#b2ddff;background:#eff8ff}
.ai-sales-next strong{color:#175cd3;font-size:12px}
.ai-sales-section ul{margin:0;padding-left:17px;color:#475467;font-size:10px;line-height:1.55}
.ai-sales-links{display:grid;gap:5px}
.ai-sales-link{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:7px 8px;border-radius:8px;background:#f8fafc;color:#344054}
a.ai-sales-link:hover{background:#eef4ff;color:#1849a9}
.ai-sales-link strong{font-size:10px;line-height:1.35}.ai-sales-link span{color:#7f8999;font-size:9px;text-align:right}
.ai-sales-cautions{border-color:#fedf89;background:#fffaeb}.ai-sales-cautions ul{color:#93370d}
.ai-sales-readonly{padding:8px 10px;border-radius:8px;background:#f2f4f7;color:#667085;font-size:9px;line-height:1.45}
@media(max-width:720px){.ai-sales-grid{grid-template-columns:1fr}.ai-sales-span-2{grid-column:auto}.ai-sales-link{display:grid}.ai-sales-link span{text-align:left}.customer360-ai-card .panel-head{align-items:flex-start;gap:8px}}

/* v10.30.0 — Руководитель / Control Tower */
.control-tower-head{align-items:flex-start}.control-tower-meta,.control-tower-head-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.control-tower-meta{margin-top:8px;color:var(--muted);font-size:11px}.control-tower-meta span{padding:4px 8px;border:1px solid var(--line);border-radius:999px}.control-tower-kpis{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;margin:14px 0}.control-kpi{display:grid;gap:4px;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--panel);color:inherit;text-decoration:none}.control-kpi span{font-size:9px;text-transform:uppercase;font-weight:850;color:var(--muted)}.control-kpi strong{font-size:24px;line-height:1}.control-kpi small{font-size:9px;color:var(--muted)}.control-kpi.is-warning{border-color:#fedf89;background:#fffcf5}.control-kpi.is-danger{border-color:#fecdca;background:#fffbfa}.control-sales-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:14px}.control-sales-card{padding:14px;display:grid;gap:4px}.control-sales-card span{font-size:9px;text-transform:uppercase;color:var(--muted);font-weight:850}.control-sales-card strong{font-size:18px}.control-team-panel{margin-bottom:14px}.control-team-panel .panel-head>div p{margin:3px 0 0;color:var(--muted);font-size:10px}.control-team-table td strong{display:block}.control-team-table td small{display:block;margin-top:3px;color:var(--muted);font-size:9px}.control-load-badge{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:9px;font-weight:800}.control-load-badge.load-normal{background:#ecfdf3;color:#237344}.control-load-badge.load-high{background:#fffaeb;color:#b54708}.control-load-badge.load-critical{background:#fef3f2;color:#b42318}.control-tower-two{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}.control-metric-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}.control-metric-list>div,.control-system-grid>div{padding:11px;border:1px solid var(--line);border-radius:10px;background:#fafbfc}.control-metric-list span,.control-system-grid span{display:block;font-size:9px;color:var(--muted);text-transform:uppercase}.control-metric-list strong,.control-system-grid strong{display:block;margin-top:4px;font-size:15px}.control-live-list{display:grid}.control-live-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:9px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line);color:inherit;text-decoration:none}.control-live-row:last-child{border-bottom:0}.control-live-row div{min-width:0}.control-live-row strong,.control-live-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.control-live-row small{margin-top:2px;color:var(--muted);font-size:9px}.control-live-row>span:last-child{color:var(--muted);font-size:9px}.control-live-dot,.control-health-dot{width:9px;height:9px;border-radius:50%;background:#12b76a}.control-health-dot.health-warning{background:#f79009}.control-health-dot.health-fail,.control-health-dot.health-unknown{background:#f04438}.control-system-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.control-subhead{margin:14px 0 4px;font-size:10px;text-transform:uppercase;color:var(--muted)}.control-integration-row{grid-template-columns:auto minmax(0,1fr) auto}
@media(max-width:1180px){.control-tower-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.control-team-table{min-width:900px}}@media(max-width:820px){.control-tower-two{grid-template-columns:1fr}.control-tower-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.control-sales-strip{grid-template-columns:1fr}.control-system-grid{grid-template-columns:1fr 1fr}}@media(max-width:520px){.control-tower-kpis,.control-metric-list{grid-template-columns:1fr}.control-tower-head-actions{margin-top:10px}.control-tower-head-actions .btn{flex:1}}

/* v10.30.1 — Multi-provider AI + graceful fallback */
[data-ai-section].is-muted{opacity:.56;transition:opacity .16s ease}
[data-ai-section].is-muted:focus-within{opacity:.88}

/* v10.30.2 Voice Playback in Chat */
.chat-voice-player{display:flex;flex-direction:column;gap:6px;width:min(420px,100%);padding:8px 10px;border:1px solid var(--line,#e5e7eb);border-radius:12px;background:#fafbfc}
.chat-voice-player .chat-attachment-audio{width:100%;max-width:none}
.chat-voice-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:9px;color:#667085}
.chat-voice-meta small{font-weight:750;color:#475467}
.chat-voice-status{color:#98a2b3}.chat-voice-status.is-error{color:#b42318;font-weight:750}
.chat-voice-retry{border:1px solid #d0d5dd;background:#fff;color:#344054;border-radius:7px;padding:3px 7px;font-size:9px;font-weight:800;cursor:pointer}
.chat-voice-retry:hover{background:#f2f4f7}

/* v10.31.2 — Drom listing under conversation peer name */
.conversation-drom-listing-inline{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:5px;min-width:0;font-size:11px;line-height:1.35}
.conversation-drom-listing-inline .conversation-avito-item-link{min-width:0;max-width:min(720px,72vw);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.conversation-drom-listing-price{font-weight:800;color:var(--text);white-space:nowrap}
.conversation-drom-listing-page{margin-top:6px}
@media (max-width:700px){.conversation-drom-listing-inline .conversation-avito-item-link{max-width:72vw}.conversation-drom-listing-inline .conversation-copy-link{min-height:24px;padding:3px 7px}}

/* v10.31.47 — Avito listing and browser-chat actions next to the customer. */
.conversation-avito-header-context{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:6px;min-width:0}
.conversation-avito-listing-inline{display:flex;align-items:center;gap:6px;min-width:0;max-width:100%;font-size:11px;line-height:1.35}
.conversation-avito-listing-label{color:#667085;font-weight:750;white-space:nowrap}
.conversation-avito-listing-inline .conversation-avito-item-link{min-width:0;max-width:min(560px,48vw);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.conversation-avito-listing-inline>strong{min-width:0;max-width:min(560px,48vw);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.conversation-avito-listing-price{color:var(--text);font-weight:800;white-space:nowrap}
.conversation-avito-header-context .conversation-external-chat-actions{margin-left:2px}
.conversation-inline-head .conversation-inline-person{flex:1}
.chat-thread-head .conversation-avito-header-context span,.conversation-avito-header-context span{display:inline;margin-top:0;font-size:inherit}
.chat-thread-head .conversation-avito-listing-label{color:#667085}
.chat-thread-head .conversation-avito-listing-price{color:var(--text)}
.chat-thread-head .conversation-external-chat-copy{color:#2878d0}
@media(max-width:900px){.conversation-avito-header-context{align-items:flex-start;flex-direction:column}.conversation-avito-header-context .conversation-external-chat-actions{margin-left:0}.conversation-avito-listing-inline .conversation-avito-item-link,.conversation-avito-listing-inline>strong{max-width:64vw}}
@media(max-width:700px){.conversation-avito-listing-inline{flex-wrap:wrap}.conversation-avito-listing-inline .conversation-avito-item-link,.conversation-avito-listing-inline>strong{max-width:72vw}.conversation-avito-header-context .conversation-external-chat-actions{width:auto}.conversation-avito-header-context .conversation-external-chat-link{flex:none}}

/* v10.31.14 — Sales Copilot compact preview + independently scrollable drawer. */
.chat-ai-sales-preview{width:100%;margin-top:8px;padding:10px 12px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;border:1px solid #c7d7fe;border-radius:11px;background:linear-gradient(135deg,#f5f8ff 0%,#fff 72%);color:#344054;text-align:left;cursor:pointer}
.chat-ai-sales-preview[hidden]{display:none!important}
.chat-ai-sales-preview:hover{border-color:#84adff;background:#eef4ff}
.chat-ai-sales-preview-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#e0eaff;color:#175cd3;font-size:14px}
.chat-ai-sales-preview-copy{min-width:0;display:grid;gap:2px}
.chat-ai-sales-preview-copy strong{font-size:11px;color:#1849a9}
.chat-ai-sales-preview-copy>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:#475467}
.chat-ai-sales-preview-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;color:#b54708}
.chat-ai-sales-preview-action{font-size:10px;font-weight:800;color:#175cd3;white-space:nowrap}
.chat-ai-result-heading{min-width:0;display:grid;gap:2px}
.chat-ai-result-heading strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-ai-result-heading span{font-size:9px;color:#98a2b3}
.chat-ai-result-status{margin-left:auto;color:#667085;white-space:nowrap}
.chat-ai-expand{width:30px;height:30px;flex:0 0 auto;border:0;border-radius:8px;background:#f2f4f7;color:#475467;font-size:15px;line-height:1;cursor:pointer}
.chat-ai-expand:hover,.chat-ai-close:hover{background:#e4e7ec;color:#1d2939}
.chat-ai-result-scroll{min-height:0}
.chat-ai-drawer-backdrop{display:none}
.chat-ai-drawer-footer{display:none}
.chat-ai-result.is-sales-drawer{position:fixed;z-index:1200;top:58px;right:0;bottom:0;width:min(620px,calc(100vw - 260px));margin:0;padding:0;display:flex;flex-direction:column;border:0;border-left:1px solid #d0d5dd;border-radius:0;background:#fff;box-shadow:-18px 0 46px rgba(16,24,40,.18);overflow:hidden}
.chat-ai-result.is-sales-drawer.is-expanded{top:0;left:0;width:100vw;height:100dvh;border-left:0;z-index:1220}
.chat-ai-result.is-sales-drawer .chat-ai-result-head{flex:0 0 auto;min-height:64px;margin:0;padding:13px 16px;border-bottom:1px solid #eaecf0;background:#fff}
.chat-ai-result.is-sales-drawer .chat-ai-result-heading strong{font-size:14px;color:#1d2939}
.chat-ai-result.is-sales-drawer .chat-ai-result-scroll{flex:1 1 auto;padding:14px 16px 22px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.chat-ai-result.is-sales-drawer .chat-ai-summary-result{margin-bottom:10px;padding:10px 11px;border-radius:10px;background:#f8fafc}
.chat-ai-result.is-sales-drawer .ai-sales-result{margin-top:0}
.chat-ai-result.is-sales-drawer .ai-sales-field strong,.chat-ai-result.is-sales-drawer .ai-sales-next strong,.chat-ai-result.is-sales-drawer .ai-sales-section li,.chat-ai-result.is-sales-drawer .ai-sales-link strong,.chat-ai-result.is-sales-drawer .ai-sales-link span{overflow-wrap:anywhere;word-break:break-word}
.chat-ai-result.is-sales-drawer .chat-ai-drawer-footer{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 16px;border-top:1px solid #eaecf0;background:#fff}
.chat-ai-result.is-sales-drawer .chat-ai-drawer-footer span{font-size:9px;color:#667085}
@media(max-width:900px){
    body.has-ai-sales-drawer{overflow:hidden}
    .chat-ai-result.is-sales-drawer{top:0;width:min(620px,94vw);height:100dvh;z-index:1220}
    .chat-ai-drawer-backdrop:not([hidden]){position:fixed;z-index:1190;inset:0;display:block;background:rgba(16,24,40,.42);backdrop-filter:blur(2px)}
}
@media(max-width:620px){
    .chat-ai-result.is-sales-drawer{left:0;width:100vw;border-left:0}
    .chat-ai-result.is-sales-drawer .chat-ai-result-head{min-height:58px;padding:11px 12px}
    .chat-ai-result.is-sales-drawer .chat-ai-result-scroll{padding:11px 12px 18px}
    .chat-ai-result.is-sales-drawer .chat-ai-drawer-footer{padding:9px 12px}
    .chat-ai-result.is-sales-drawer .ai-sales-grid{grid-template-columns:1fr}
    .chat-ai-result.is-sales-drawer .ai-sales-span-2{grid-column:auto}
    .chat-ai-sales-preview{grid-template-columns:auto minmax(0,1fr);padding:9px 10px}
    .chat-ai-sales-preview-action{grid-column:2;font-size:9px}
    .chat-ai-sales-preview-copy small{white-space:normal}
}
@media(prefers-reduced-motion:no-preference){.chat-ai-result.is-sales-drawer{animation:ai-sales-drawer-in .18s ease-out}@keyframes ai-sales-drawer-in{from{transform:translateX(24px);opacity:.85}to{transform:translateX(0);opacity:1}}}

/* ChatGPT diagnostics v10.31.15 */
.chatgpt-tabs{display:flex;gap:8px;margin:0 0 14px;padding:5px;width:max-content;max-width:100%;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.chatgpt-tabs a{padding:9px 14px;border-radius:9px;color:var(--muted);font-weight:700;text-decoration:none;white-space:nowrap}
.chatgpt-tabs a:hover,.chatgpt-tabs a.is-active{color:#185abd;background:#eef4ff}
.chatgpt-log-notice{margin-bottom:14px}
.chatgpt-log-list{display:grid;gap:10px;margin-bottom:14px}
.chatgpt-log-entry{overflow:hidden}
.chatgpt-log-entry>summary{display:grid;grid-template-columns:18px 150px minmax(230px,1.5fr) minmax(190px,1fr) auto;align-items:center;gap:14px;padding:15px 18px;cursor:pointer;list-style:none}
.chatgpt-log-entry>summary::-webkit-details-marker{display:none}
.chatgpt-log-entry>summary:before{content:'›';font-size:22px;color:var(--muted);transition:transform .15s}
.chatgpt-log-entry[open]>summary:before{transform:rotate(90deg)}
.chatgpt-log-entry>summary span{min-width:0}
.chatgpt-log-entry>summary strong,.chatgpt-log-entry>summary small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chatgpt-log-entry>summary small{margin-top:4px;color:var(--muted)}
.chatgpt-log-entry>summary i{font-style:normal}
.chatgpt-log-time{font-variant-numeric:tabular-nums;color:var(--muted)}
.chatgpt-log-body{padding:16px 18px 20px;border-top:1px solid var(--line);background:var(--surface-soft)}
.chatgpt-log-meta{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:10px;margin:0 0 14px}
.chatgpt-log-meta div{padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.chatgpt-log-meta dt{margin-bottom:4px;color:var(--muted);font-size:12px;font-weight:700;text-transform:uppercase}
.chatgpt-log-meta dd{margin:0;word-break:break-word}
.chatgpt-log-payloads{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}
.chatgpt-log-payloads section{min-width:0}
.chatgpt-log-payloads h3{margin:0 0 7px;font-size:14px}
.chatgpt-log-payloads pre{max-height:440px;margin:0;padding:14px;overflow:auto;border:1px solid #263246;border-radius:10px;background:#111827;color:#e5edf8;font:12px/1.55 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;white-space:pre-wrap;word-break:break-word}
@media(max-width:900px){.chatgpt-log-entry>summary{grid-template-columns:18px 1fr auto}.chatgpt-log-entry>summary .chatgpt-log-time{grid-column:2}.chatgpt-log-entry>summary span:nth-of-type(3){grid-column:2}.chatgpt-log-entry>summary span:last-child{grid-column:3;grid-row:1/3}.chatgpt-log-meta{grid-template-columns:repeat(2,minmax(120px,1fr))}.chatgpt-log-payloads{grid-template-columns:1fr}}
@media(max-width:560px){.chatgpt-tabs{width:100%;overflow-x:auto}.chatgpt-log-entry>summary{padding:13px 12px}.chatgpt-log-meta{grid-template-columns:1fr}.chatgpt-log-body{padding:13px 12px}}
.bas-operation-state{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;margin-bottom:14px;border:2px solid #dbe3ec;background:#f8fafc}.bas-operation-copy{display:flex;align-items:center;gap:13px;min-width:0}.bas-operation-dot{width:16px;height:16px;flex:0 0 auto;border-radius:50%;background:#64748b;box-shadow:0 0 0 7px rgba(100,116,139,.13)}.bas-operation-copy small{display:block;color:#64748b;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.bas-operation-copy strong{display:block;margin-top:3px;font-size:18px}.bas-operation-copy p{margin:4px 0 0;color:#64748b;font-size:11px;line-height:1.4}.bas-operation-state.is-running{border-color:#86d4b4;background:#f0fdf7}.bas-operation-state.is-running .bas-operation-dot{background:#16a36a;box-shadow:0 0 0 7px rgba(22,163,106,.14)}.bas-operation-state.is-running strong{color:#087c55}.bas-operation-state.is-paused,.bas-operation-state.is-waiting{border-color:#f4c56f;background:#fff9e9}.bas-operation-state.is-paused .bas-operation-dot,.bas-operation-state.is-waiting .bas-operation-dot{background:#e59b18;box-shadow:0 0 0 7px rgba(229,155,24,.15)}.bas-operation-state.is-paused strong,.bas-operation-state.is-waiting strong{color:#916700}.bas-operation-state.is-offline{border-color:#efadb5;background:#fff5f6}.bas-operation-state.is-offline .bas-operation-dot{background:#d92d4b;box-shadow:0 0 0 7px rgba(217,45,75,.13)}.bas-operation-state.is-offline strong{color:#b4233d}@media(max-width:760px){.bas-operation-state{align-items:stretch;flex-direction:column}.bas-operation-state form,.bas-operation-state .btn{width:100%}}
.bas-page-head{align-items:flex-end}.bas-eyebrow{display:block;color:var(--accent);font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.09em;margin-bottom:4px}.bas-account-switch{min-width:280px}.bas-account-switch label{display:block;margin-bottom:5px;color:var(--muted);font-size:10px;font-weight:850}.bas-empty{padding:34px;display:grid;justify-items:start;gap:9px}.bas-hero{padding:18px;display:grid;grid-template-columns:minmax(210px,.55fr) minmax(0,1.45fr);gap:20px;margin-bottom:14px;border-left:4px solid #e5e7eb}.bas-hero.is-online{border-left-color:#22a06b}.bas-hero.is-offline{border-left-color:#e05260}.bas-hero-status{display:flex;align-items:center;gap:13px}.bas-hero-status>span{width:13px;height:13px;border-radius:50%;background:#e05260;box-shadow:0 0 0 7px rgba(224,82,96,.12)}.bas-hero.is-online .bas-hero-status>span{background:#22a06b;box-shadow:0 0 0 7px rgba(34,160,107,.12)}.bas-hero-status small,.bas-hero-status em{display:block;color:var(--muted);font-size:10px;font-style:normal}.bas-hero-status strong{display:block;margin:2px 0;font-size:18px}.bas-hero-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.bas-hero-meta>div{min-width:0;padding:10px 12px;border-radius:11px;background:#f7f9fb}.bas-hero-meta span{display:block;color:#8791a1;font-size:9px;font-weight:800;text-transform:uppercase}.bas-hero-meta strong{display:block;margin-top:5px;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bas-active-job{padding:14px 16px;margin-bottom:14px}.bas-active-job>div:first-child{display:flex;align-items:center;gap:10px}.bas-active-job small{margin-left:auto;color:var(--muted)}.bas-live-chip{padding:4px 7px;border-radius:999px;background:#eaf8f1;color:#087c55;font-size:9px;font-weight:900}.bas-progress{height:7px;margin-top:11px;border-radius:99px;background:#eef1f5;overflow:hidden}.bas-progress i{display:block;height:100%;background:linear-gradient(90deg,#2b6fe8,#46b6ff);border-radius:99px}.bas-kpi-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:14px}.bas-kpi{padding:15px;min-height:105px}.bas-kpi span,.bas-kpi small{display:block;color:var(--muted);font-size:9px}.bas-kpi span{font-weight:850;text-transform:uppercase;letter-spacing:.04em}.bas-kpi strong{display:block;margin:8px 0 5px;font-size:24px}.bas-kpi.is-danger{border-color:#f0bec4;background:#fffafb}.bas-control-panel,.bas-table-card{margin-bottom:14px;overflow:hidden}.bas-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:16px 18px;border-bottom:1px solid var(--line)}.bas-section-head h2{margin:0;font-size:16px}.bas-section-head p{margin:4px 0 0;color:var(--muted);font-size:10px}.bas-lock{padding:5px 8px;border-radius:999px;background:#fff4d8;color:#916700;font-size:9px;font-weight:850}.bas-lock.is-on{background:#eaf8f1;color:#087c55}.bas-actions{display:flex;flex-wrap:wrap;gap:7px;padding:14px 18px}.bas-actions form{display:inline-flex}.bas-actions .btn{min-height:34px;padding:7px 10px;font-size:10px}.bas-queue-strip{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:1px;background:var(--line);border-top:1px solid var(--line)}.bas-queue-strip>div{padding:12px;background:#fafbfc}.bas-queue-strip span{display:block;color:var(--muted);font-size:9px}.bas-queue-strip strong{display:block;margin-top:4px;font-size:17px}.bas-inline-filter{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.bas-inline-filter .select,.bas-inline-filter .input{height:34px;min-width:120px;font-size:10px}.bas-log-filter .input{min-width:190px}.bas-inline-filter .btn{min-height:34px;padding:7px 10px;font-size:10px}.bas-result-cell{max-width:420px;white-space:normal;word-break:break-word}.bas-status{display:inline-flex;padding:4px 7px;border-radius:999px;background:#f2f4f7;color:#667085;font-size:9px;font-weight:850}.bas-status.is-completed{background:#eaf8f1;color:#087c55}.bas-status.is-failed,.bas-status.is-blocked{background:#fff0f1;color:#b4233d}.bas-status.is-claimed{background:#eef4ff;color:#245fae}.bas-pagination{padding:12px 16px}.bas-event-list{padding:8px 16px}.bas-event{border-bottom:1px solid #edf0f3}.bas-event summary{display:grid;grid-template-columns:70px minmax(0,1fr) auto;gap:10px;align-items:center;padding:12px 4px;cursor:pointer;list-style:none}.bas-event summary::-webkit-details-marker{display:none}.bas-event summary strong{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bas-event summary em{color:#98a2b3;font-size:9px;font-style:normal}.bas-event-level{width:max-content;padding:4px 6px;border-radius:6px;background:#eef2f6;color:#596273;font-size:8px;font-weight:900;text-transform:uppercase}.bas-event.is-warning .bas-event-level{background:#fff4d8;color:#916700}.bas-event.is-error .bas-event-level,.bas-event.is-critical .bas-event-level{background:#fff0f1;color:#b4233d}.bas-event-body{padding:0 4px 14px}.bas-event-body dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0}.bas-event-body dl>div{padding:8px;border-radius:8px;background:#f8fafc}.bas-event-body dt{color:#98a2b3;font-size:8px;text-transform:uppercase}.bas-event-body dd{margin:3px 0 0;font-size:10px;overflow-wrap:anywhere}.bas-event-body pre{max-height:260px;overflow:auto;padding:11px;border-radius:9px;background:#172033;color:#d7e3f4;font-size:9px;white-space:pre-wrap}.bas-event-actions{display:flex;gap:7px}.bas-event-actions .btn{font-size:9px;min-height:32px}@media(max-width:1180px){.bas-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.bas-hero{grid-template-columns:1fr}.bas-queue-strip{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.bas-page-head{align-items:stretch}.bas-account-switch{min-width:0}.bas-hero-meta,.bas-kpi-grid,.bas-queue-strip{grid-template-columns:1fr 1fr}.bas-section-head{flex-direction:column}.bas-event summary{grid-template-columns:65px minmax(0,1fr)}.bas-event summary em{grid-column:2}.bas-event-body dl{grid-template-columns:1fr}}
.pwa-install-button{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:7px 11px;border:1px solid #dbe3ec;border-radius:10px;background:#fff;color:#334155;font:inherit;font-size:13px;font-weight:700;cursor:pointer;white-space:nowrap}.pwa-install-button:hover{border-color:#f97316;color:#c2410c;background:#fff7ed}.pwa-install-button[hidden]{display:none!important}.is-pwa-offline::before{content:"Нет соединения с CRM";position:fixed;z-index:10000;left:50%;top:10px;transform:translateX(-50%);padding:8px 14px;border-radius:999px;background:#b91c1c;color:#fff;font-size:13px;font-weight:800;box-shadow:0 8px 24px #450a0a66}@media(max-width:900px){.pwa-install-button span:last-child{display:none}.pwa-install-button{padding:7px 10px}}
.product-scanner{width:min(620px,calc(100vw - 24px));padding:0;border:0;border-radius:18px;box-shadow:0 24px 80px rgba(15,23,42,.35)}.product-scanner::backdrop{background:rgba(15,23,42,.62)}.product-scanner-head{display:flex;justify-content:space-between;gap:16px;padding:16px}.product-scanner-head strong,.product-scanner-head small{display:block}.product-scanner-head small{margin-top:4px;color:var(--muted)}.product-scanner-head button{width:34px;height:34px;border:0;border-radius:10px;background:#f2f4f7;font-size:22px}.product-scanner video{display:block;width:100%;min-height:260px;max-height:55vh;object-fit:cover;background:#101828}.product-scanner-status{padding:12px 16px;color:#475467}.product-scanner-actions{display:flex;gap:8px;padding:0 16px 16px}.product-mobile-actions{margin-top:14px}.product-mobile-actions form{display:flex;gap:8px;flex-wrap:wrap}.product-mobile-actions .input{flex:1;min-width:190px}.product-camera-form{display:grid;gap:9px}.product-camera-form small{color:var(--muted)}@media(max-width:600px){.product-scanner-actions,.product-mobile-actions form{flex-direction:column}.product-scanner-actions .btn,.product-mobile-actions .btn,.product-camera-form .btn{width:100%;justify-content:center}}
@media(max-width:700px){.smart-product-list-card{border:0;background:transparent;box-shadow:none}.smart-product-table thead{display:none}.smart-product-table,.smart-product-table tbody,.smart-product-table tr,.smart-product-table td{display:block;width:100%}.smart-product-table tr.smart-product-row{margin-bottom:12px;padding:13px;border:1px solid var(--line);border-radius:14px;background:#fff}.smart-product-table td{padding:7px 0;border:0}.smart-product-table .product-photo-cell{padding:0 0 10px}.smart-product-table .product-photo-thumb{width:100%;height:180px}.smart-product-table td:nth-child(4)::before{content:"Бренд · ";color:var(--muted)}.smart-product-table td:nth-child(5)::before{content:"Цена · ";color:var(--muted)}.smart-product-table td:nth-child(6)::before{content:"Свободно · ";color:var(--muted)}.smart-product-table td:nth-child(7)::before{content:"Склад · ";color:var(--muted)}.smart-product-table td:nth-child(8)::before{content:"Статус · ";color:var(--muted)}.product-page-head .head-actions{width:100%}.product-page-head .head-actions .btn{flex:1;justify-content:center}}

/* ART CRM installed application */
.pwa-page{max-width:1120px;margin:auto}.pwa-hero{display:flex;align-items:center;gap:28px;padding:32px;background:linear-gradient(120deg,#fff7ed,#fff)}.pwa-brand-icon{border-radius:24px;flex:none}.pwa-eyebrow{color:#c2410c;font-size:13px;font-weight:700}.pwa-hero h1{margin:8px 0;font-size:34px;color:#0f172a}.pwa-hero p{max-width:680px;color:#475569;line-height:1.6}.pwa-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px}.pwa-status-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:20px 0}.pwa-status-card{display:flex;flex-direction:column;gap:10px;padding:22px}.pwa-status-card>span{font-size:13px;color:#64748b}.pwa-status-card>strong{font-size:23px;color:#0f172a;overflow-wrap:anywhere}.pwa-status-card>small{color:#64748b;line-height:1.5}.pwa-content-grid{display:grid;grid-template-columns:1fr 1.3fr;gap:20px}.pwa-panel,.pwa-settings{padding:26px}.pwa-panel h2,.pwa-settings h2{font-size:20px;margin:0 0 12px}.pwa-panel p,.pwa-settings>p{color:#475569;line-height:1.6}.pwa-device-status{font-size:14px;min-height:22px}.pwa-install-steps{padding-left:22px;line-height:1.6;color:#475569}.pwa-install-steps li+li{margin-top:14px}.pwa-install-hint{color:#c2410c!important}.pwa-mvp-note{margin-top:20px}.pwa-update-notice{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:10000;display:flex;align-items:center;gap:16px;max-width:calc(100vw - 32px);padding:18px 22px;border:1px solid #fed7aa;border-radius:16px;background:#fff7ed;box-shadow:0 12px 38px #0f172a26}.pwa-update-notice[hidden]{display:none!important}.pwa-update-notice>span{max-width:440px;font-size:14px;line-height:1.5}.pwa-settings{margin-bottom:20px}.pwa-settings .notification-repeat-option{margin:16px 0}.pwa-hero .btn,.pwa-panel .btn,.pwa-settings .btn{min-height:44px}@media(max-width:900px){.pwa-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pwa-content-grid{grid-template-columns:1fr}.pwa-hero{padding:24px;align-items:flex-start;gap:18px}.pwa-brand-icon{width:64px;height:64px}.pwa-hero h1{font-size:28px}.pwa-update-notice{width:calc(100vw - 24px);bottom:12px;flex-direction:column;align-items:stretch}}@media(max-width:480px){.pwa-hero{display:block}.pwa-brand-icon{margin-bottom:14px}.pwa-panel,.pwa-settings{padding:20px}.pwa-status-card{padding:16px}.pwa-status-card>strong{font-size:20px}.pwa-actions .btn{width:100%;justify-content:center}.pwa-eyebrow{font-size:12px}}

/* v10.31.90 — composer tools below input + complete PWA mobile home */
.chat-compose-tools{display:grid;gap:8px;margin-top:8px;padding-top:8px;border-top:1px solid #edf0f3}
.chat-compose-quick-area{display:grid;grid-template-columns:98px minmax(0,1fr);gap:10px;align-items:start;min-width:0}
.chat-compose-tools-label{padding-top:7px;color:#667085;font-size:9px;font-weight:900;letter-spacing:.05em;text-transform:uppercase;white-space:nowrap}
.chat-compose-quick-area .quick-reply-folders,.chat-compose-quick-area .quick-reply-strip{margin:0;min-width:0}
.chat-compose-quick-area .quick-reply-feedback{grid-column:2;margin:0}
.chat-compose-tools .chat-ai-copilot{margin:0}
.chat-compose-meta{justify-content:flex-start}
.chat-compose-meta .chat-compose-hint{margin-left:auto}
.pwa-mobile-home{display:grid;gap:16px;padding-bottom:28px}
.pwa-mobile-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 24px;border-radius:20px;background:linear-gradient(135deg,#111827 0%,#1f2937 58%,#c2410c 160%);color:#fff;box-shadow:0 18px 45px rgba(15,23,42,.16)}
.pwa-mobile-brand{display:flex;align-items:center;gap:15px;min-width:0}.pwa-mobile-brand img{flex:0 0 58px;border-radius:17px;box-shadow:0 8px 22px rgba(0,0,0,.2)}
.pwa-mobile-brand span{color:#fdba74;font-size:9px;font-weight:900;letter-spacing:.13em}.pwa-mobile-brand h1{margin:3px 0 4px;color:#fff;font-size:24px;letter-spacing:-.03em}.pwa-mobile-brand p{margin:0;color:#cbd5e1;font-size:11px}
.pwa-mobile-install{min-height:42px;padding:0 15px;display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(255,255,255,.2);border-radius:12px;background:rgba(255,255,255,.1);color:#fff;font-size:11px;font-weight:850;cursor:pointer;white-space:nowrap}.pwa-mobile-install:hover{background:rgba(255,255,255,.17)}
.pwa-quick-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.pwa-quick-actions>a,.pwa-quick-actions>button{min-height:82px;padding:13px 10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);border-radius:16px;background:#fff;color:#344054;box-shadow:0 5px 18px rgba(15,23,42,.04);font:inherit;cursor:pointer;text-decoration:none}.pwa-quick-actions>a:hover,.pwa-quick-actions>button:hover{border-color:#cbd5e1;transform:translateY(-1px)}.pwa-quick-actions strong{font-size:11px}.pwa-quick-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:12px;font-size:17px}.pwa-quick-icon.is-blue{background:#eaf2ff}.pwa-quick-icon.is-violet{background:#f0ebff;color:#7c3aed}.pwa-quick-icon.is-orange{background:#fff1e7;color:#ea580c}.pwa-quick-icon.is-green{background:#eafbf1;color:#15803d}
.pwa-mobile-section{padding:18px;border:1px solid var(--line);border-radius:18px;background:#fff}.pwa-mobile-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:13px}.pwa-mobile-section-head span{color:#f97316;font-size:8px;font-weight:900;letter-spacing:.1em}.pwa-mobile-section-head h2{margin:3px 0 0;font-size:17px;letter-spacing:-.02em}.pwa-mobile-section-head>a{color:#667085;font-size:9px;font-weight:800;white-space:nowrap}
.pwa-mobile-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.pwa-mobile-metric{min-width:0;padding:13px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:9px;align-items:center;border:1px solid #edf0f3;border-radius:14px;background:#fbfcfd;color:#344054}.pwa-mobile-metric:hover{background:#fff;border-color:#d6dce5}.pwa-mobile-metric-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:#eef2f6;font-size:14px}.pwa-mobile-metric-copy{min-width:0}.pwa-mobile-metric-copy b,.pwa-mobile-metric-copy small{display:block;overflow:hidden;text-overflow:ellipsis}.pwa-mobile-metric-copy b{font-size:9px;white-space:nowrap}.pwa-mobile-metric-copy small{margin-top:3px;color:#98a2b3;font-size:8px;line-height:1.25;white-space:normal}.pwa-mobile-metric>strong{font-size:23px;line-height:1}.pwa-mobile-metric.is-orange>strong{color:#ea580c}.pwa-mobile-metric.is-red>strong{color:#dc2626}.pwa-mobile-metric.is-violet>strong{color:#7c3aed}.pwa-mobile-metric.is-green>strong{color:#15803d}.pwa-mobile-metric.is-blue>strong{color:#2563eb}
.pwa-attention-list{display:grid}.pwa-attention-item{display:grid;grid-template-columns:10px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 3px;border-top:1px solid #f0f2f4;color:#344054}.pwa-attention-item:first-child{border-top:0}.pwa-attention-dot{width:8px;height:8px;border-radius:50%;background:#60a5fa}.pwa-attention-item.is-warning .pwa-attention-dot{background:#f59e0b}.pwa-attention-item.is-danger .pwa-attention-dot{background:#ef4444}.pwa-attention-item span:nth-child(2){min-width:0}.pwa-attention-item strong,.pwa-attention-item small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pwa-attention-item strong{font-size:10px}.pwa-attention-item small{margin-top:3px;color:#667085;font-size:9px}.pwa-attention-item>b{color:#667085;font-size:9px;white-space:nowrap}
.pwa-health-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.pwa-health-card{min-width:0;padding:13px;display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 10px;align-items:center;border:1px solid #e5e7eb;border-radius:14px;background:#fbfcfd;color:#344054}.pwa-health-card>span:nth-child(2){min-width:0}.pwa-health-card b,.pwa-health-card small{display:block}.pwa-health-card b{font-size:10px}.pwa-health-card small{margin-top:3px;color:#7f8999;font-size:8px;line-height:1.35}.pwa-health-card>strong{grid-column:2;font-size:10px}.pwa-health-dot{width:9px;height:9px;border-radius:50%;background:#94a3b8;box-shadow:0 0 0 4px rgba(148,163,184,.14)}.pwa-health-card.is-ok{border-color:#ccebd8;background:#f7fdf9}.pwa-health-card.is-ok .pwa-health-dot{background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.13)}.pwa-health-card.is-warning{border-color:#f5dfaa;background:#fffdf7}.pwa-health-card.is-warning .pwa-health-dot{background:#f59e0b;box-shadow:0 0 0 4px rgba(245,158,11,.13)}.pwa-health-card.is-fail{border-color:#f4c7c7;background:#fffafa}.pwa-health-card.is-fail .pwa-health-dot{background:#ef4444;box-shadow:0 0 0 4px rgba(239,68,68,.13)}
.pwa-device-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.pwa-device-strip>div{padding:12px 13px;border:1px solid var(--line);border-radius:13px;background:#fff}.pwa-device-strip span,.pwa-device-strip small{display:block;color:#98a2b3;font-size:8px}.pwa-device-strip strong{display:block;margin-top:4px;font-size:11px}.pwa-device-strip small{margin-top:3px}.pwa-setup-grid{margin-top:0}
@media(max-width:1150px){.pwa-mobile-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.pwa-health-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.chat-compose-quick-area{grid-template-columns:1fr;gap:6px}.chat-compose-tools-label{padding:0}.chat-compose-quick-area .quick-reply-feedback{grid-column:auto}.chat-compose-meta{display:flex;flex-wrap:wrap}.chat-compose-meta .chat-compose-hint{width:100%;margin-left:0}.pwa-mobile-home{gap:12px}.pwa-mobile-hero{align-items:flex-start;padding:17px;flex-direction:column}.pwa-mobile-brand{align-items:flex-start}.pwa-mobile-brand img{width:50px;height:50px;flex-basis:50px;border-radius:15px}.pwa-mobile-brand h1{font-size:19px}.pwa-mobile-install{width:100%;justify-content:center}.pwa-quick-actions{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.pwa-quick-actions>a,.pwa-quick-actions>button{min-height:72px;padding:9px 4px;border-radius:13px}.pwa-quick-icon{width:31px;height:31px;border-radius:10px;font-size:14px}.pwa-quick-actions strong{font-size:9px}.pwa-mobile-section{padding:14px;border-radius:15px}.pwa-mobile-section-head{align-items:flex-start}.pwa-mobile-section-head h2{font-size:15px}.pwa-mobile-metrics{grid-template-columns:1fr}.pwa-mobile-metric{padding:11px}.pwa-mobile-metric>strong{font-size:21px}.pwa-health-grid{grid-template-columns:1fr 1fr}.pwa-device-strip{grid-template-columns:1fr 1fr}.pwa-attention-item{grid-template-columns:9px minmax(0,1fr)}.pwa-attention-item>b{grid-column:2}.pwa-setup-grid .pwa-panel{padding:17px}}
@media(max-width:420px){.pwa-mobile-brand p{line-height:1.4}.pwa-health-grid{grid-template-columns:1fr}.pwa-device-strip{grid-template-columns:1fr 1fr}.pwa-mobile-section-head>a{display:none}}
.security-idle-cover{position:fixed;inset:0;z-index:30000;display:grid;place-items:center;padding:24px;background:#0f172af2;color:#fff}.security-idle-cover>div{max-width:460px;padding:30px;border:1px solid #ffffff26;border-radius:20px;background:#172033;text-align:center;box-shadow:0 24px 80px #0008}.security-idle-cover strong,.security-idle-cover span{display:block}.security-idle-cover strong{font-size:23px}.security-idle-cover span{margin-top:10px;color:#cbd5e1;line-height:1.6}.security-device-list{display:grid;gap:10px}.security-device{display:flex;align-items:center;gap:14px;padding:13px;border:1px solid var(--line);border-radius:12px}.security-device>div{min-width:0;flex:1}.security-device strong,.security-device span{display:block}.security-device span{margin-top:3px;color:#667085;font-size:11px}.security-device form{margin:0}@media(max-width:600px){.security-device{align-items:flex-start;flex-direction:column}.security-device form,.security-device .btn{width:100%}}

/* v10.31.91 — one-line composer actions + clean marketplace messages */
.chat-compose-action-strip{display:flex;align-items:flex-start;gap:7px;flex-wrap:nowrap;max-width:100%;overflow-x:auto;overflow-y:auto;padding:8px 2px 4px;border-top:1px solid #edf0f3;scrollbar-width:thin}
.chat-compose-action-strip>.chat-voice-test{flex:0 0 auto;min-height:30px;margin:0;padding:0 10px;border:1px solid #dfe3e8;border-radius:999px;background:#fff;color:#475467;font-size:10px;font-weight:750;white-space:nowrap}
.chat-compose-action-strip>.chat-voice-test:hover{border-color:#98a2b3;background:#f8fafc;color:#344054}
.chat-compose-action-strip .chat-ai-copilot{flex:0 0 auto;margin:0;padding:0;border:0;background:transparent}
.chat-compose-action-strip .chat-ai-toolbar,.chat-compose-action-strip .chat-ai-primary-actions,.chat-compose-action-strip .chat-ai-secondary-actions{flex-wrap:nowrap}
.chat-compose-action-strip .chat-compose-quick-area{display:flex;align-items:flex-start;gap:7px;flex:0 0 auto;min-width:auto}
.chat-compose-action-strip .quick-reply-folders{display:flex;align-items:flex-start;gap:7px;flex-wrap:nowrap;margin:0;padding:0;overflow:visible}
.chat-compose-action-strip .quick-reply-folder{display:flex;align-items:flex-start;gap:7px;flex:0 0 auto}
.chat-compose-action-strip .quick-reply-folder>summary{flex:0 0 auto}
.chat-compose-action-strip .quick-reply-folder-items{display:flex;align-items:center;gap:7px;flex-wrap:nowrap;margin:0;padding:0;border:0;background:transparent;box-shadow:none}
.chat-compose-action-strip .quick-reply-chip{flex:0 0 auto;white-space:nowrap}
.chat-compose-action-strip .quick-reply-feedback{display:none!important}
.chat-compose-action-strip .chat-ai-result,.chat-compose-action-strip .chat-ai-notice,.chat-compose-action-strip .chat-ai-sales-preview{white-space:normal}
@media(max-width:720px){.chat-compose-action-strip{gap:6px}.chat-compose-action-strip .chat-ai-primary-actions{width:auto;overflow:visible}.chat-compose-action-strip .chat-compose-quick-area{display:flex}.chat-compose-action-strip .quick-reply-folder-items{max-width:none}}
.quick-login-divider{display:flex;align-items:center;gap:10px;margin:18px 0;color:#98a2b3;font-size:11px}.quick-login-divider:before,.quick-login-divider:after{content:"";height:1px;flex:1;background:var(--line)}.quick-login-box small{display:block;min-height:18px;margin-top:6px;color:#667085}.quick-pin-login{margin-top:10px;padding:11px;border:1px solid var(--line);border-radius:10px}.quick-pin-login summary{cursor:pointer;color:#475467;font-size:12px;font-weight:700}.quick-pin-login form{margin-top:12px}
.account-notifications-page{max-width:1180px;margin:0 auto}.account-notifications-page>form{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}.account-notifications-page>form>.card{min-width:0}.account-notifications-page .pwa-settings,.account-notifications-page .notification-channel-settings,.account-notifications-page .notification-sound-settings,.account-notifications-page .push-event-settings{max-width:none;margin:0;padding:22px}.push-event-list{display:grid;gap:10px;margin-top:16px}.push-event-card{overflow:hidden;border:1px solid var(--line);border-radius:13px;background:#fff;transition:border-color .18s,box-shadow .18s}.push-event-card[open]{border-color:#b9c9df;box-shadow:0 7px 22px rgba(30,64,175,.07)}.push-event-card summary{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:64px;padding:13px 16px;cursor:pointer;list-style:none}.push-event-card summary::-webkit-details-marker{display:none}.push-event-card summary:before{content:'›';flex:0 0 auto;color:#64748b;font-size:26px;line-height:1;transition:transform .18s}.push-event-card[open] summary:before{transform:rotate(90deg)}.push-event-title{display:flex;flex:1;flex-direction:column;gap:3px}.push-event-title strong{font-size:14px;color:#172033}.push-event-title small{color:#8a94a4;font-size:10px;font-weight:500}.push-event-summary{display:flex;align-items:center;gap:10px}.push-event-summary b{padding:5px 9px;border-radius:999px;font-size:10px}.push-event-summary b.is-on{background:#eaf8ef;color:#18723a}.push-event-summary b.is-off{background:#f1f3f6;color:#667085}.push-event-summary em{min-width:86px;color:#667085;font-size:11px;font-style:normal;text-align:right}.push-event-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:18px;border-top:1px solid var(--line);background:#fbfcfe}.push-event-grid>.field{margin:0}.push-event-toggle{grid-column:1/-1;margin:0;border-color:#c7d6e9;background:#f4f8fd}.push-event-wide{grid-column:span 1}.push-event-choice{min-width:0;margin:0;padding:14px;border:1px solid var(--line);border-radius:12px;background:#fff}.push-event-choice legend{padding:0 5px;color:#283548;font-size:12px;font-weight:800}.push-event-choice>p{margin:0 0 11px;color:#7a8595;font-size:10px;line-height:1.45}.push-event-checks{display:flex;flex-wrap:wrap;gap:7px}.push-event-checks label{position:relative;cursor:pointer}.push-event-checks input{position:absolute;opacity:0;pointer-events:none}.push-event-checks span{display:block;padding:7px 10px;border:1px solid #d9e0e8;border-radius:9px;background:#fff;color:#566174;font-size:11px;font-weight:700;transition:.15s}.push-event-checks input:checked+span{border-color:#fb7a36;background:#fff2eb;color:#b54708;box-shadow:inset 0 0 0 1px #fb7a36}.notification-settings-savebar{position:sticky;bottom:12px;z-index:20;display:flex;justify-content:flex-end;padding:12px;border:1px solid rgba(214,220,229,.9);border-radius:14px;background:rgba(255,255,255,.94);box-shadow:0 10px 32px rgba(20,35,60,.12);backdrop-filter:blur(10px)}
@media(max-width:760px){.account-notifications-page .pwa-settings,.account-notifications-page .notification-channel-settings,.account-notifications-page .notification-sound-settings,.account-notifications-page .push-event-settings{padding:15px}.push-event-card summary{align-items:flex-start;flex-wrap:wrap;gap:9px}.push-event-title{min-width:calc(100% - 40px)}.push-event-summary{width:100%;padding-left:30px;justify-content:space-between}.push-event-grid{grid-template-columns:1fr;padding:13px}.push-event-wide,.push-event-toggle{grid-column:auto}.notification-settings-savebar .btn{width:100%;justify-content:center}}
.lead-workspace{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:16px;align-items:start}.lead-detail-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.lead-detail-list div{padding:10px;border:1px solid var(--line);border-radius:10px}.lead-detail-list span{display:block;color:var(--muted);font-size:10px;text-transform:uppercase}.lead-detail-list strong{display:block;margin-top:4px}.lead-history{display:grid;gap:8px;margin-top:14px}.lead-history>div{padding:11px;border-left:3px solid var(--accent);background:#fafbfc;border-radius:8px}.lead-history span{display:block;color:var(--muted);font-size:10px;margin-top:3px}.lead-history p{margin:7px 0 0;white-space:pre-wrap}@media(max-width:850px){.lead-workspace,.lead-detail-list{grid-template-columns:1fr}}

/* Business process progress and employee approvals. */
.automation-process-steps{display:grid;gap:12px;padding-left:24px;margin:16px 0}.automation-process-steps li{padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft)}.automation-process-steps strong,.automation-process-steps span,.automation-process-steps small{display:block;overflow-wrap:anywhere}.automation-process-steps span{color:var(--muted);margin-top:5px}.automation-process-steps small{color:var(--muted);margin-top:8px}.automation-process-steps p{white-space:pre-wrap;margin:8px 0 0}.automation-action-fields .muted{grid-column:1/-1}.automation-builder-list input[type=number]{min-width:0}

/* Six PWA shortcuts remain balanced on narrow screens. */
.pwa-quick-actions:has(>:nth-child(5)){grid-template-columns:repeat(3,minmax(0,1fr))}

.conversation-customer-search-copy{justify-content:center;min-width:36px}
.conversation-customer-search-copy:disabled{opacity:.55;cursor:not-allowed}
.conversation-customer-search-options>summary{width:max-content;list-style:none;cursor:pointer}
.conversation-customer-search-options>summary::-webkit-details-marker{display:none}
.conversation-customer-search-vehicles{display:grid;gap:4px;max-height:12rem;overflow:auto;margin-top:4px;padding:4px}
.conversation-customer-search-vehicles small{color:var(--muted)}
.conversation-customer-search-vehicles button{justify-content:flex-start;white-space:normal;text-align:left}


.login-remember-row{display:flex;align-items:center;justify-content:space-between;gap:8px 12px;flex-wrap:wrap}
.login-remember-duration{width:auto;min-width:104px;max-width:100%}
.login-password{position:relative}
.login-password>.input{min-height:46px;padding-inline-end:50px}
.login-password-toggle:not([hidden]){position:absolute;inset-inline-end:2px;inset-block-start:50%;transform:translateY(-50%);display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:8px;background:transparent;color:#475467;cursor:pointer}
.login-password-toggle svg[hidden]{display:none}
.login-password-toggle:hover{background:#f2f4f7;color:#182230}
.login-password-toggle:focus-visible{outline:2px solid #2859a0;outline-offset:-3px}
