*,*:before,*:after{box-sizing:border-box}html,body,#root{height:100%;margin:0;padding:0}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}img,svg,video,canvas{max-width:100%;display:block}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit;color:inherit}::selection{background:var(--ring);color:var(--heading)}*{scrollbar-width:thin;scrollbar-color:var(--line) transparent}*::-webkit-scrollbar{width:8px;height:8px}*::-webkit-scrollbar-thumb{background:var(--line);border-radius:2px}*::-webkit-scrollbar-track{background:transparent}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}h1,h2,h3,h4,h5,h6{margin:0 0 16px;font-weight:700;color:var(--heading);line-height:1.25}h1{font-size:32px;font-weight:700}h2{font-size:24px;font-weight:700}h3{font-size:18px;font-weight:600}h4{font-size:16px;font-weight:600}h5{font-size:14px;font-weight:600}h6{font-size:13px;font-weight:600}p{margin:0 0 16px;line-height:1.6}.muted{color:var(--muted)}.text-strong{font-weight:700;color:var(--heading)}.text-good{color:#047857}.text-warn{color:#b45309}.text-bad{color:#991b1b}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-clamp{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.text-xs{font-size:12px}.text-sm{font-size:13px}.text-base{font-size:14px}.text-lg{font-size:16px}.text-xl{font-size:18px}.text-2xl{font-size:24px}.text-3xl{font-size:32px}.shell{min-height:100%;display:grid;grid-template-columns:260px 1fr}@media (max-width: 1024px){.shell{grid-template-columns:80px 1fr}}@media (max-width: 768px){.shell{grid-template-columns:1fr;position:relative}}.sidebar{position:sticky;top:0;height:100vh;background:var(--side);border-right:1px solid var(--side-border);padding:16px 12px;display:flex;flex-direction:column}@media (max-width: 768px){.sidebar{position:fixed;left:-280px;top:0;width:260px;z-index:99;transition:left .3s ease;box-shadow:0 8px 16px #0000001a,0 4px 8px #0000000d}.sidebar.mobile-open{left:0}}.brand{display:flex;align-items:center;justify-content:flex-start;gap:8px;font-weight:700;font-size:16px;color:var(--heading);padding:8px}.brand .dot{width:8px;height:8px;border-radius:50%;background:var(--accent)}@media (max-width: 1024px){.brand span{display:none}}@media (max-width: 768px){.brand span{display:inline}}.nav{margin-top:16px;flex:1;display:flex;flex-direction:column;gap:4px;min-height:0;overflow-y:auto}@media (max-width: 768px){.nav{padding-bottom:16px}}.nav a{display:flex;align-items:center;justify-content:flex-start;gap:12px;padding:10px 12px;border-radius:3px;color:var(--muted);transition:background .15s cubic-bezier(.4,0,.2,1),color .15s cubic-bezier(.4,0,.2,1);font-weight:500}.nav a:hover{background:var(--surface-2);color:var(--heading)}.nav a.active{color:var(--on-accent);background:var(--accent);font-weight:600}@media (max-width: 1024px){.nav a span{display:none}}@media (max-width: 768px){.nav a span{display:inline}}.nav .settings-link{margin-top:auto}.sidebar .divider{height:1px;margin:12px 8px;background:var(--line);opacity:.6}.mobile-menu-btn{display:none}@media (max-width: 768px){.mobile-menu-btn{display:flex!important;z-index:99}}.sidebar-overlay{display:none}@media (max-width: 768px){.sidebar-overlay{display:block!important;z-index:98}}.main{padding:24px;width:100%;max-width:1600px;margin:0 auto}@media (max-width: 768px){.main{padding:64px 12px 16px}}.content{max-width:1400px;margin:0 auto;padding:24px}@media (max-width: 768px){.content{padding:16px 12px}}.page-header{display:flex;align-items:center;justify-content:space-between;margin:0 0 24px;flex-wrap:wrap;gap:16px}.page-header h1{margin:0;font-size:28px;color:var(--heading);font-weight:700}@media (max-width: 768px){.page-header{flex-direction:column;align-items:flex-start;gap:12px;margin-bottom:16px}.page-header h1{font-size:24px}.page-header .btn{width:100%}}.stack{display:grid;gap:16px}@media (max-width: 768px){.stack{gap:12px}}.grid-4{display:grid;gap:16px;grid-template-columns:repeat(4,1fr)}@media (max-width: 1024px){.grid-4{grid-template-columns:repeat(2,1fr)}}@media (max-width: 768px){.grid-4{grid-template-columns:1fr;gap:12px}}.grid-3{display:grid;gap:16px;grid-template-columns:repeat(3,1fr)}@media (max-width: 1024px){.grid-3{grid-template-columns:repeat(2,1fr)}}@media (max-width: 768px){.grid-3{grid-template-columns:1fr;gap:12px}}.grid-2{display:grid;gap:16px;grid-template-columns:repeat(2,1fr)}@media (max-width: 768px){.grid-2{grid-template-columns:1fr;gap:12px}}.grid-2-1{display:grid;gap:16px;grid-template-columns:2fr 1fr}@media (max-width: 1024px){.grid-2-1{grid-template-columns:1fr}}.grid-1-2{display:grid;gap:16px;grid-template-columns:1fr 2fr}@media (max-width: 1024px){.grid-1-2{grid-template-columns:1fr}}.centered{display:grid;place-items:center}.right{margin-left:auto}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;border-radius:3px;border:0;font-weight:600;font-size:14px;cursor:pointer;transition:background .15s cubic-bezier(.4,0,.2,1),box-shadow .15s cubic-bezier(.4,0,.2,1),transform .15s cubic-bezier(.4,0,.2,1);min-height:40px;white-space:nowrap}.btn:active{transform:scale(.98)}.btn:disabled{opacity:.5;cursor:not-allowed;transform:none}.btn{background:var(--accent);color:var(--on-accent)}.btn:hover{background:var(--accent-hover)}.btn.sm{padding:6px 12px;font-size:13px;min-height:32px}.btn.lg{padding:12px 20px;font-size:16px;min-height:48px}.btn.ghost{background:var(--surface);color:var(--text);border:1px solid var(--line);box-shadow:0 1px 2px #0000000a}.btn.ghost:hover{background:var(--surface-2);border-color:var(--accent)}.btn.outline{background:transparent;border:1px solid var(--accent);color:var(--accent)}.btn.outline:hover{background:var(--accent);color:var(--on-accent)}.btn.danger{background:#991b1b;color:#fff}.btn.danger:hover{background:shade(#991b1b,15%)}@media (max-width: 768px){.btn{padding:12px 16px;font-size:14px;width:100%}.btn.sm{padding:10px 12px;font-size:13px;min-height:36px}}.field{display:grid;gap:6px}.field label{font-size:13px;font-weight:500;color:var(--heading)}@media (max-width: 768px){.field label{font-size:13px}}.input,.select,.textarea{width:100%;padding:10px 12px;border-radius:3px;background:var(--surface);border:1px solid var(--line);color:var(--text);outline:none;transition:border .15s cubic-bezier(.4,0,.2,1),box-shadow .15s cubic-bezier(.4,0,.2,1);min-height:40px;font-size:14px}.input::placeholder,.select::placeholder,.textarea::placeholder{color:var(--muted)}.input:focus,.select:focus,.textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--ring)}@media (max-width: 768px){.input,.select,.textarea{padding:12px 14px;font-size:16px}}.textarea{min-height:100px;resize:vertical}.switch{position:relative;width:44px;height:24px;border-radius:12px;background:var(--surface-2);border:1px solid var(--line)}.switch input{position:absolute;inset:0;opacity:0;cursor:pointer}.switch .knob{position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #0000000a;transition:left .15s cubic-bezier(.4,0,.2,1);pointer-events:none}.switch input:checked+.knob{left:calc(100% - 20px)}.switch input:checked~.track{background:var(--accent)}.card{background:var(--surface);border:1px solid var(--line);border-radius:3px;padding:16px;box-shadow:0 1px 3px #0000000d,0 1px 2px #00000008;transition:border-color .15s cubic-bezier(.4,0,.2,1),box-shadow .15s cubic-bezier(.4,0,.2,1);display:flex;flex-direction:column;height:100%;max-height:100%;overflow:hidden}.card h3{margin:0 0 8px;color:var(--heading);font-size:16px;font-weight:600;flex-shrink:0}.card .grid-fill{flex:1;min-height:0;overflow:auto}@media (max-width: 768px){.card{padding:14px}.card h3{font-size:15px}}.cards{display:grid;gap:16px;grid-template-columns:repeat(4,1fr)}@media (max-width: 768px){.cards{grid-template-columns:1fr;gap:12px}}.kpi-value{font-size:28px;font-weight:700;color:var(--heading)}@media (max-width: 768px){.kpi-value{font-size:24px}}.kpi-title{margin-top:8px;font-size:13px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}.trend{color:var(--muted);font-size:12px;margin-top:4px}.badge{display:inline-block;padding:4px 8px;border-radius:3px;font-size:12px;font-weight:500;border:1px solid var(--line);background:var(--surface-2);text-transform:capitalize}.badge.new{background:#dbeafe;border-color:#93c5fd;color:#1e40af}.badge.consult{background:#e0e7ff;border-color:#c7d2fe;color:#4338ca}:root[data-theme=executive] .badge.consult{background:#312e81;color:#e0e7ff;border-color:#4338ca}.status-badge{padding:4px 10px;border-radius:3px;border:1px solid var(--line);font-size:12px;font-weight:500;text-transform:capitalize}.status-badge.open,.status-badge.active{background:#d1fae5;color:#065f46;border:1px solid #a7f3d0;padding:4px 10px;border-radius:3px;font-size:12px;font-weight:500;display:inline-block;text-transform:capitalize}.status-badge.closed{background:#f1f5f9;color:#334155;border:1px solid #e2e8f0;padding:4px 10px;border-radius:3px;font-size:12px;font-weight:500;display:inline-block;text-transform:capitalize}.status-badge.lead-new{background:#dbeafe;color:#1e40af;border:1px solid #bfdbfe;padding:4px 10px;border-radius:3px;font-size:12px;font-weight:500;display:inline-block;text-transform:capitalize}.status-badge.lead-qualified{background:#d1fae5;color:#065f46;border:1px solid #a7f3d0;padding:4px 10px;border-radius:3px;font-size:12px;font-weight:500;display:inline-block;text-transform:capitalize}.status-badge.lead-won{background:#dcfce7;color:#14532d;border-color:#bbf7d0}.status-badge.lead-lost{background:#fee2e2;color:#7f1d1d;border:1px solid #fecaca;padding:4px 10px;border-radius:3px;font-size:12px;font-weight:500;display:inline-block;text-transform:capitalize}.chip{display:flex;align-items:center;justify-content:flex-start;gap:6px;padding:4px 10px;border-radius:3px;font-size:12px;font-weight:500;background:var(--surface-2);border:1px solid var(--line);color:var(--text)}.chip .dot{width:6px;height:6px;border-radius:50%;background:currentColor}.status-chip{margin-top:8px;display:flex;align-items:center;justify-content:flex-start;gap:6px;font-size:12px;padding:4px 10px;border-radius:3px;border:1px solid #d1fae5;background:#d1fae5;color:#065f46;font-weight:500}.status-chip[data-status=busy]{background:#fed7aa;border-color:#fdba74;color:#9a3412}.status-chip[data-status=away]{background:#e0e7ff;border-color:#c7d2fe;color:#4338ca}.status-chip[data-status=offline]{background:var(--surface-2);border-color:var(--line);color:var(--muted)}.status-chip .dot{width:6px;height:6px;border-radius:50%;background:currentColor}.dot{width:6px;height:6px;border-radius:50%;background:var(--muted);display:inline-block}.dot.green{background:#047857}.dot.red{background:#991b1b}.dot.yellow{background:#b45309}.table-wrap{background:var(--surface);border:1px solid var(--line);border-radius:3px;box-shadow:0 1px 3px #0000000d,0 1px 2px #00000008;overflow:hidden}.table-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid var(--line);background:var(--surface-2);flex-wrap:wrap}.table-toolbar .title{font-weight:600;color:var(--heading)}@media (max-width: 768px){.table-toolbar{padding:10px 12px;font-size:14px}}.page-container .card{width:100%}table{width:100%;border-collapse:collapse;font-size:14px;color:var(--text)}@media (max-width: 768px){table{font-size:13px}}thead th{text-align:left;padding:12px 16px;font-weight:600;font-size:12px;color:var(--muted);background:var(--surface-2);text-transform:uppercase;letter-spacing:.05em;position:sticky;top:0;z-index:20}@media (max-width: 768px){thead th{padding:8px 10px;font-size:13px}}tbody td{padding:12px 16px;border-bottom:1px solid var(--line)}@media (max-width: 768px){tbody td{padding:8px 10px;font-size:13px}}tbody tr{transition:background .15s cubic-bezier(.4,0,.2,1)}tbody tr:hover{background:var(--surface-2)}tbody tr:last-child td{border-bottom:none}.row-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}@media (max-width: 768px){.row-actions{gap:6px}.row-actions .btn{padding:8px 12px;font-size:12px;min-height:32px;width:auto}}.data-table{width:100%;border-collapse:separate;border-spacing:0}.data-table th,.data-table td{text-align:left;padding:12px 16px;border-bottom:1px solid var(--line)}.data-table thead th{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;font-weight:600}.data-table tbody tr:hover{background:var(--surface-2)}.table.compact thead th,.table.compact tbody td{padding:8px 12px}.rowText{font-size:12px!important}.soft-row+.soft-row{border-top:1px solid var(--line)}.modal-backdrop{position:fixed;inset:0;display:grid;place-items:center;z-index:98;background:#0f172a99;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.modal{width:min(760px,92vw);background:var(--surface);border:1px solid var(--line);border-radius:6px;box-shadow:0 8px 16px #0000001a,0 4px 8px #0000000d;padding:24px;max-height:90vh;overflow-y:auto}.modal header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;flex-wrap:wrap}.modal footer{display:flex;align-items:center;justify-content:flex-start;justify-content:flex-end;gap:12px;margin-top:24px;flex-wrap:wrap}@media (max-width: 768px){.modal{width:calc(100vw - 24px);max-height:calc(100vh - 40px);padding:16px;border-radius:3px}.modal header{font-size:16px}.modal footer{flex-direction:column;gap:8px}.modal footer .btn{width:100%}}.toast{position:fixed;right:24px;bottom:24px;display:grid;gap:12px;z-index:100}.toast .item{background:var(--surface);border:1px solid var(--line);border-radius:3px;padding:12px 16px;box-shadow:0 1px 3px #0000000d,0 1px 2px #00000008;min-width:280px}.toast .item.success{border-color:#047857;background:#dcfce7}.toast .item.error{border-color:#991b1b;background:#fee2e2}@media (max-width: 768px){.toast{right:12px;bottom:12px;left:12px}.toast .item{min-width:unset;width:100%}}.tabs{display:flex;gap:4px;padding:4px;background:var(--surface-2);border-radius:3px;border:1px solid var(--line)}.tabs>button{border:0;background:transparent;padding:8px 16px;border-radius:2px;font-weight:500;color:var(--muted);cursor:pointer;transition:background .15s cubic-bezier(.4,0,.2,1),color .15s cubic-bezier(.4,0,.2,1)}.tabs>button:hover{color:var(--heading)}.tabs>button.active{background:var(--surface);color:var(--heading);box-shadow:0 1px 2px #0000000a;font-weight:600}.tabs-underline{position:sticky;top:0;z-index:20;background:var(--surface);display:flex;gap:16px;padding:8px 4px;margin:0 0 24px;border-bottom:1px solid var(--line)}.tabs-underline>button{appearance:none;background:transparent;border:0;padding:8px 4px;font-weight:500;color:var(--muted);border-bottom:2px solid transparent;transition:color .15s cubic-bezier(.4,0,.2,1),border-color .15s cubic-bezier(.4,0,.2,1);cursor:pointer}.tabs-underline>button:hover{color:var(--heading)}.tabs-underline>button.active{color:var(--accent);border-bottom-color:var(--accent);font-weight:600}.page-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;flex-wrap:wrap}@media (max-width: 768px){.page-header{flex-direction:column;align-items:flex-start;gap:12px}}.page-header h1{margin:0;font-size:32px;font-weight:700;color:var(--heading);line-height:1.25}@media (max-width: 768px){.page-header h1{font-size:24px}}.page-header p{margin:4px 0 0;font-size:13px;color:var(--muted);line-height:1.6}.page-header-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.page-container{width:100%;margin:0 auto;padding:24px}@media (max-width: 768px){.page-container{padding:16px}}.mt-0{margin-top:0}.mb-0{margin-bottom:0}.ml-0{margin-left:0}.mr-0{margin-right:0}.mt-1{margin-top:4px}.mb-1{margin-bottom:4px}.mt-2{margin-top:8px}.mb-2{margin-bottom:8px}.mt-3{margin-top:12px}.mb-3{margin-bottom:12px}.mt-4{margin-top:16px}.mb-4{margin-bottom:16px}.mt-5{margin-top:20px}.mb-5{margin-bottom:20px}.mt-6{margin-top:24px}.mb-6{margin-bottom:24px}.p-0{padding:0}.p-1{padding:4px}.p-2{padding:8px}.p-3{padding:12px}.p-4{padding:16px}.p-5{padding:20px}.p-6{padding:24px}.gap-0{gap:0}.gap-1{gap:4px}.gap-2{gap:8px}.gap-3{gap:12px}.gap-4{gap:16px}.gap-5{gap:20px}.gap-6{gap:24px}.hide-on-mobile{display:block}@media (max-width: 768px){.hide-on-mobile{display:none}}.show-on-mobile{display:none}@media (max-width: 768px){.show-on-mobile{display:block}}.divider{height:1px;margin:12px 8px;background:var(--line);opacity:.6}.avatar{width:32px;height:32px;border-radius:50%;background:var(--surface-2);display:grid;place-items:center;color:var(--heading);font-weight:600;border:1px solid var(--line);overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover}.avatar.sm{width:24px;height:24px;font-size:11px}.avatar.xl{width:64px;height:64px;font-size:24px}.list{list-style:none;margin:0;padding:0;display:grid;gap:12px}.list-row{display:grid;grid-template-columns:160px 1fr;gap:12px;align-items:center}.pill-count{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--muted)}:root{--accent: #1e40af;--accent-hover: #1e3a8a;--accent-2: #0e7490;--bg: #f8fafc;--bg-2: #f1f5f9;--surface: #ffffff;--surface-2: #f8fafc;--surface-3: #f1f5f9;--side: #ffffff;--side-border: #e2e8f0;--text: #1e293b;--heading: #0f172a;--muted: #64748b;--line: #e2e8f0;--border: #e2e8f0;--ring: rgba(30, 64, 175, .12);--on-accent: #ffffff;--danger: #991b1b;--warning: #b45309;--success: #047857;--shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, .03);--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, .04);--shadow: 0 1px 3px 0 rgba(0, 0, 0, .05), 0 1px 2px 0 rgba(0, 0, 0, .03);--shadow-md: 0 2px 4px 0 rgba(0, 0, 0, .06), 0 1px 2px 0 rgba(0, 0, 0, .03);--shadow-lg: 0 4px 8px 0 rgba(0, 0, 0, .08), 0 2px 4px 0 rgba(0, 0, 0, .04);--shadow-xl: 0 8px 16px 0 rgba(0, 0, 0, .1), 0 4px 8px 0 rgba(0, 0, 0, .05);--radius-sm: 2px;--radius: 3px;--radius-md: 4px;--radius-lg: 6px;--transition: .15s cubic-bezier(.4, 0, .2, 1)}:root[data-theme=executive]{--accent: #3b82f6;--accent-hover: #2563eb;--accent-2: #0891b2;--bg: #0f172a;--bg-2: #1e293b;--surface: #1e293b;--surface-2: #334155;--surface-3: #475569;--side: #1e293b;--side-border: #334155;--text: #e2e8f0;--heading: #f1f5f9;--muted: #94a3b8;--line: #334155;--border: #334155;--ring: rgba(59, 130, 246, .2);--on-accent: #ffffff;--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, .3);--shadow: 0 2px 8px 0 rgba(0, 0, 0, .4);--shadow-lg: 0 4px 16px 0 rgba(0, 0, 0, .5)}:root[data-theme=neutral]{--accent: #334155;--accent-hover: #1e293b;--accent-2: #0891b2;--bg: #f8fafc;--bg-2: #f1f5f9;--surface: #ffffff;--surface-2: #f8fafc;--surface-3: #f1f5f9;--side: #ffffff;--side-border: #e2e8f0;--text: #1e293b;--heading: #0f172a;--muted: #64748b;--line: #e2e8f0;--border: #e2e8f0;--ring: rgba(71, 85, 105, .12);--on-accent: #ffffff}:root[data-theme=classic]{--accent: #1e40af;--accent-hover: #1e3a8a;--accent-2: #0891b2;--bg: #ffffff;--bg-2: #f8fafc;--surface: #ffffff;--surface-2: #f8fafc;--surface-3: #f1f5f9;--side: #ffffff;--side-border: #e2e8f0;--text: #000000;--heading: #000000;--muted: #475569;--line: #e2e8f0;--border: #e2e8f0;--ring: rgba(30, 64, 175, .12);--on-accent: #ffffff}.agent-detail{max-width:1200px;margin:0 auto}.agent-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 24px;border-radius:3px;background:var(--surface);border:1px solid var(--line);box-shadow:0 1px 3px #0000000d,0 1px 2px #00000008}@media (max-width: 768px){.agent-header{flex-wrap:wrap;gap:16px;padding:16px 18px}}.agent-header-left,.ah-left{display:flex;align-items:center;justify-content:flex-start;gap:16px;min-width:0}.agent-header .avatar.xl{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;font-weight:700;background:var(--surface-2);color:var(--heading)}@media (max-width: 768px){.agent-header .avatar.xl{width:48px;height:48px;font-size:18px}}.ah-name{margin:0 0 4px;font-size:20px;font-weight:700}@media (max-width: 768px){.ah-name{font-size:18px}}.ah-sub{font-size:14px;color:var(--muted)}@media (max-width: 768px){.ah-sub{font-size:13px}}.metrics-grid{display:grid;grid-template-columns:repeat(3,minmax(240px,1fr));gap:16px}@media (max-width: 768px){.metrics-grid{grid-template-columns:1fr;gap:12px}}.metric header{font-size:12px;color:var(--muted);margin-bottom:8px;text-transform:uppercase;letter-spacing:.05em;font-weight:600}.metric footer{font-size:12px;color:var(--muted);margin-top:8px}.metric-main{display:flex;align-items:center;justify-content:flex-start;align-items:flex-end;justify-content:space-between;gap:16px;min-height:60px}.metric-value{font-size:32px;font-weight:700;line-height:1;color:var(--heading)}@media (max-width: 768px){.metric-value{font-size:26px}}.metric svg{width:140px;height:40px}@media (max-width: 768px){.metric svg{width:100px;height:32px}}.metric svg .bar{fill:var(--accent);opacity:.8}.metric svg .baseline{stroke:var(--line);stroke-width:1}.metrics-grid .card.full{grid-column:1/-1}.kpi-grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}@media (max-width: 768px){.kpi-grid{grid-template-columns:1fr!important}}.kpi{border:1px solid var(--line);border-radius:3px;padding:16px;background:var(--surface)}.kpi-label{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;font-weight:600}.kpi .bar{fill:var(--accent);opacity:.8}.kpi-caption{font-size:12px;color:var(--muted);margin-top:8px}.chat-layout{display:grid;grid-template-columns:320px 1fr;height:calc(100vh - 100px);background:var(--surface);border-radius:3px;overflow:hidden;box-shadow:0 1px 3px #0000000d,0 1px 2px #00000008;border:1px solid var(--line)}@media (max-width: 768px){.chat-layout{grid-template-columns:1fr;height:calc(100vh - 60px);border-radius:0}}.chat-sidebar{background:var(--surface-2);border-right:1px solid var(--line);display:flex;flex-direction:column}@media (max-width: 768px){.chat-sidebar{display:none}}.chat-sidebar .search{padding:12px;border-bottom:1px solid var(--line)}.chat-sidebar .search input{width:100%;padding:8px 12px;border-radius:3px;border:1px solid var(--line);background:var(--surface);color:var(--text)}.chat-list{flex:1;overflow-y:auto}.chat-item{padding:12px 16px;border-bottom:1px solid var(--line);cursor:pointer;display:flex;align-items:center;justify-content:flex-start;gap:12px;transition:background .15s cubic-bezier(.4,0,.2,1)}.chat-item:hover{background:var(--surface-3)}.chat-item.active{background:var(--accent);color:var(--on-accent)}.chat-window{display:flex;flex-direction:column;height:100%;background:var(--surface)}.chat-header{padding:12px 20px;border-bottom:1px solid var(--line);font-weight:600;background:var(--surface-2);display:flex;align-items:center;justify-content:space-between}.chat-messages{flex:1;padding:20px;overflow-y:auto;display:flex;flex-direction:column;gap:12px}@media (max-width: 768px){.chat-messages{padding:14px}}.msg{max-width:70%;padding:12px 16px;border-radius:3px;line-height:1.4;word-break:break-word}.msg.in{background:var(--surface-2);align-self:flex-start;border-bottom-left-radius:2px}.msg.out{background:var(--accent);color:var(--on-accent);align-self:flex-end;border-bottom-right-radius:2px}.msg time{display:block;text-align:right;font-size:11px;opacity:.6;margin-top:4px}@media (max-width: 768px){.msg{max-width:85%;font-size:14px}}.chat-input{display:flex;align-items:center;justify-content:flex-start;gap:8px;padding:12px 20px;border-top:1px solid var(--line);background:var(--surface-2)}.chat-input input{flex:1;border:1px solid var(--line);border-radius:999px;padding:10px 16px;background:var(--surface);color:var(--text)}@media (max-width: 768px){.chat-input input{padding:8px 12px;font-size:16px}}.chat-input button{border:none;border-radius:999px;padding:0 20px;background:var(--accent);color:var(--on-accent);font-weight:600;cursor:pointer;transition:background .15s cubic-bezier(.4,0,.2,1)}.chat-input button:hover{background:var(--accent-hover)}@media (max-width: 768px){.chat-input{padding:10px 12px}}.react-grid-item{transition:transform .2s ease;overflow:hidden}.react-grid-item.react-draggable-dragging,.react-grid-item.react-resizable-resizing{z-index:3;box-shadow:0 4px 8px #00000014,0 2px 4px #0000000a}.react-grid-item>*{max-height:100%;overflow:hidden}.react-resizable-handle{position:absolute;width:16px;height:16px;bottom:8px;right:8px;border-right:3px solid var(--accent);border-bottom:3px solid var(--accent);opacity:.4}.react-resizable-handle:hover{opacity:.8}.editable-grid-shell{position:relative}.layout-gear{position:sticky;top:16px;z-index:5;display:flex;justify-content:flex-end;margin-bottom:8px}.icon-btn.gear{width:36px;height:36px;border:1px solid var(--line);border-radius:3px;background:var(--surface);color:var(--text);display:grid;place-items:center;box-shadow:0 1px 2px #0000000a;cursor:pointer;transition:background .15s cubic-bezier(.4,0,.2,1)}.icon-btn.gear:hover{background:var(--surface-2)}.gear-menu{position:absolute;right:8px;top:48px;min-width:200px;padding:8px;border-radius:3px;border:1px solid var(--line);background:var(--surface);box-shadow:0 1px 3px #0000000d,0 1px 2px #00000008}.menu-item{width:100%;padding:10px 12px;background:transparent;border:0;text-align:left;border-radius:2px;color:var(--text);cursor:pointer;transition:background .15s cubic-bezier(.4,0,.2,1)}.menu-item:hover{background:var(--surface-2)}.menu-item.danger{color:#991b1b}.grid-card{position:relative;padding-top:12px}.card-drag{position:absolute;top:8px;right:12px;opacity:0;transition:opacity .15s cubic-bezier(.4,0,.2,1)}.card-drag.show{opacity:.6}.card-drag-handle{cursor:move;font-size:18px;line-height:1}.recharts-cartesian-grid-horizontal line,.recharts-cartesian-grid-vertical line{stroke:var(--line);opacity:.5}.recharts-default-tooltip{background:var(--surface)!important;color:var(--text)!important;border:1px solid var(--line)!important;border-radius:3px!important;padding:8px 12px!important;box-shadow:0 1px 3px #0000000d,0 1px 2px #00000008!important}.recharts-tooltip-label{color:var(--heading)!important;font-weight:600!important}.fc{--fc-page-bg-color: transparent;--fc-neutral-bg-color: transparent;--fc-border-color: var(--line);--fc-button-text-color: var(--on-accent);--fc-button-bg-color: var(--accent);--fc-button-hover-bg-color: var(--accent-hover);--fc-today-bg-color: var(--ring)}.fc .fc-toolbar-title{font-weight:700;color:var(--heading)}.fc .fc-button{border-radius:3px;padding:8px 12px;border:0}.fc.fc-theme-standard .fc-scrollgrid{border-radius:3px;overflow:hidden;border-color:var(--line);background:var(--surface)}.fc .fc-daygrid-day{background:var(--surface)}.fc .fc-daygrid-day:hover{background:var(--surface-2)}.fc .fc-daygrid-day-number{color:var(--text)}.fc .fc-event{background:var(--accent);color:var(--on-accent);border:0;border-radius:2px;padding:2px 6px}@media print{.sidebar,.mobile-menu-btn,.sidebar-overlay,.btn,.toast{display:none!important}.shell{grid-template-columns:1fr}.main{padding:0}.card{break-inside:avoid;box-shadow:none;border:1px solid #ddd}}.theme-select{max-width:180px}.login-wrapper{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;background:linear-gradient(135deg,var(--bg) 0%,var(--bg-2) 100%);padding:20px}.login-container{display:flex;align-items:center;justify-content:center;width:100%;max-width:480px;flex:1}.login-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);padding:48px 36px;box-shadow:var(--shadow);width:100%}.login-logo{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:32px;color:var(--accent);font-weight:700;font-size:18px;white-space:nowrap}.login-logo svg{width:32px;height:32px;flex-shrink:0}.login-heading{font-size:28px;font-weight:700;color:var(--heading);margin:0 0 8px;text-align:center}.login-subtitle{font-size:14px;color:var(--muted);text-align:center;margin:0 0 28px}.login-link{color:var(--accent);text-decoration:none;font-weight:500;transition:color var(--elev)}.login-link:hover{color:color-mix(in oklab,var(--accent) 120%,black);text-decoration:underline}.login-error{background:color-mix(in oklab,var(--danger) 15%,transparent);border:1px solid color-mix(in oklab,var(--danger) 50%,transparent);color:var(--danger);padding:10px 12px;border-radius:var(--radius-sm);font-size:13px;margin-bottom:16px;text-align:center}.login-form{display:flex;flex-direction:column;gap:16px;margin-bottom:28px}.form-group{display:flex;flex-direction:column;gap:6px}.form-label{font-size:13px;font-weight:600;color:var(--heading)}.form-input{padding:12px 14px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface-2);color:var(--text);font-size:14px;transition:border-color var(--elev),box-shadow var(--elev);font-family:inherit}.form-input::placeholder{color:var(--muted)}.form-input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--ring)}.form-input:disabled{background:var(--surface-3);color:var(--muted);cursor:not-allowed}.login-divider{display:flex;align-items:center;gap:12px;margin:28px 0;color:var(--muted);font-size:13px}.login-divider:before,.login-divider:after{content:"";flex:1;height:1px;background:var(--line)}.oauth-buttons{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:28px}.btn{padding:12px 16px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface-2);color:var(--text);font-size:14px;font-weight:600;cursor:pointer;transition:all var(--elev);font-family:inherit;display:flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap}.btn:hover:not(:disabled){background:var(--surface-3);border-color:var(--accent);transform:translateY(-1px)}.btn:active:not(:disabled){transform:translateY(0)}.btn:disabled{opacity:.6;cursor:not-allowed}.btn-primary{background:var(--accent);color:var(--on-accent);border-color:var(--accent);width:100%}.btn-primary:hover:not(:disabled){background:color-mix(in oklab,var(--accent) 110%,black);border-color:color-mix(in oklab,var(--accent) 110%,black)}.btn-secondary{background:var(--surface)}.btn-large{padding:14px 16px;font-size:15px}.login-footer{margin-top:20px}.login-legal{font-size:11px;color:var(--muted);text-align:center;margin:0;line-height:1.6}.login-back-link{display:block;margin-top:16px;padding:0;background:none;border:none;color:var(--accent);font-size:14px;font-weight:500;cursor:pointer;transition:color var(--elev);font-family:inherit}.login-back-link:hover{color:color-mix(in oklab,var(--accent) 120%,black)}.login-copyright{margin-top:32px;font-size:12px;color:var(--muted);text-align:center}@media (max-width: 480px){.login-card{padding:32px 20px}.login-heading{font-size:24px}.oauth-buttons{grid-template-columns:1fr}.btn{width:100%}}.react-grid-layout{position:relative;transition:height .2s ease}.react-grid-item{transition:all .2s ease;transition-property:left,top,width,height}.react-grid-item img{pointer-events:none;-webkit-user-select:none;user-select:none}.react-grid-item.cssTransforms{transition-property:transform,width,height}.react-grid-item.resizing{transition:none;z-index:1;will-change:width,height}.react-grid-item.react-draggable-dragging{transition:none;z-index:3;will-change:transform}.react-grid-item.dropping{visibility:hidden}.react-grid-item.react-grid-placeholder{background:red;opacity:.2;transition-duration:.1s;z-index:2;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.react-grid-item.react-grid-placeholder.placeholder-resizing{transition:none}.react-grid-item>.react-resizable-handle{position:absolute;width:20px;height:20px}.react-grid-item>.react-resizable-handle:after{content:"";position:absolute;right:3px;bottom:3px;width:5px;height:5px;border-right:2px solid rgba(0,0,0,.4);border-bottom:2px solid rgba(0,0,0,.4)}.react-resizable-hide>.react-resizable-handle{display:none}.react-grid-item>.react-resizable-handle.react-resizable-handle-sw{bottom:0;left:0;cursor:sw-resize;transform:rotate(90deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-se{bottom:0;right:0;cursor:se-resize}.react-grid-item>.react-resizable-handle.react-resizable-handle-nw{top:0;left:0;cursor:nw-resize;transform:rotate(180deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-ne{top:0;right:0;cursor:ne-resize;transform:rotate(270deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-w,.react-grid-item>.react-resizable-handle.react-resizable-handle-e{top:50%;margin-top:-10px;cursor:ew-resize}.react-grid-item>.react-resizable-handle.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-n,.react-grid-item>.react-resizable-handle.react-resizable-handle-s{left:50%;margin-left:-10px;cursor:ns-resize}.react-grid-item>.react-resizable-handle.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}.react-resizable{position:relative}.react-resizable-handle{position:absolute;width:20px;height:20px;background-repeat:no-repeat;background-origin:content-box;box-sizing:border-box;background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+);background-position:bottom right;padding:0 3px 3px 0}.react-resizable-handle-sw{bottom:0;left:0;cursor:sw-resize;transform:rotate(90deg)}.react-resizable-handle-se{bottom:0;right:0;cursor:se-resize}.react-resizable-handle-nw{top:0;left:0;cursor:nw-resize;transform:rotate(180deg)}.react-resizable-handle-ne{top:0;right:0;cursor:ne-resize;transform:rotate(270deg)}.react-resizable-handle-w,.react-resizable-handle-e{top:50%;margin-top:-10px;cursor:ew-resize}.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-resizable-handle-n,.react-resizable-handle-s{left:50%;margin-left:-10px;cursor:ns-resize}.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}.analytics-header-section{margin-bottom:32px;animation:fadeInDown .5s ease-out}.analytics-header{background:linear-gradient(135deg,#1e40af,#7c3aed);border-radius:16px;padding:24px 32px;margin-bottom:16px;box-shadow:0 4px 20px #1e40af26;display:flex;justify-content:space-between;align-items:center}.header-content{display:flex;align-items:center;gap:16px}.header-icon{font-size:36px;filter:drop-shadow(0 2px 4px rgba(0,0,0,.2))}.header-title{font-size:24px;font-weight:700;color:#fff;margin:0 0 4px;letter-spacing:-.5px}.header-subtitle{font-size:13px;color:#ffffffe6;margin:0;font-weight:400}.header-badge{display:flex;align-items:center;gap:8px;background:#ffffff26;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding:8px 16px;border-radius:20px;border:1px solid rgba(255,255,255,.2);color:#fff;font-weight:600;font-size:12px}.badge-dot{width:8px;height:8px;background:#4ade80;border-radius:50%;box-shadow:0 0 10px #4ade80;animation:pulse 2s ease-in-out infinite}.filters-bar{background:#fff;border-radius:12px;padding:16px 20px;box-shadow:0 2px 12px #00000014;border:1px solid #e5e7eb;display:flex;gap:20px;flex-wrap:wrap;align-items:center}.filter-item{display:flex;flex-direction:column;gap:6px;min-width:180px}.filter-item label{font-size:12px;font-weight:600;color:#6b7280;text-transform:uppercase;letter-spacing:.5px}.filter-select-inline{padding:8px 12px;border:2px solid #e5e7eb;border-radius:8px;font-size:14px;font-weight:500;color:#1f2937;background:#fff;transition:all .2s ease;cursor:pointer}.filter-select-inline:hover:not(:disabled){border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.filter-select-inline:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 4px #3b82f626}.filter-select-inline:disabled{opacity:.5;cursor:not-allowed;background:#f9fafb}.section-header{margin:40px 0 20px;animation:fadeIn .6s ease-out}.section-title{font-size:20px;font-weight:700;color:#111827;margin:0 0 6px;letter-spacing:-.3px}.section-subtitle{font-size:14px;color:#6b7280;margin:0;font-weight:400;line-height:1.5}.kpi-grid-main{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px;margin-bottom:24px;animation:fadeInUp .6s ease-out}.kpi-card-main{background:#fff;border-radius:16px;padding:28px;box-shadow:0 4px 20px #00000014;border:1px solid #f3f4f6;position:relative;overflow:hidden;transition:all .4s cubic-bezier(.4,0,.2,1);display:flex;gap:20px;align-items:flex-start}.kpi-card-main:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;transition:height .3s ease}.kpi-card-main:hover{transform:translateY(-6px);box-shadow:0 20px 40px #00000026}.kpi-card-main:hover:before{height:100%;opacity:.05}.kpi-engagement:before{background:linear-gradient(135deg,#f093fb,#f5576c)}.kpi-reach:before{background:linear-gradient(135deg,#4facfe,#00f2fe)}.kpi-sentiment:before{background:linear-gradient(135deg,#43e97b,#38f9d7)}.kpi-growth:before{background:linear-gradient(135deg,#fa709a,#fee140)}.kpi-card-main .kpi-icon{font-size:48px;filter:drop-shadow(0 2px 6px rgba(0,0,0,.1));flex-shrink:0}.kpi-card-main .kpi-content{flex:1;position:relative;z-index:1}.kpi-card-main .kpi-label{font-size:12px;font-weight:600;color:#6b7280;text-transform:uppercase;letter-spacing:.5px;margin:0 0 10px}.kpi-card-main .kpi-value{font-size:32px;font-weight:800;color:#111827;margin:0 0 12px;line-height:1}.kpi-card-main .kpi-trend{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;padding:6px 12px;border-radius:8px}.kpi-card-main .kpi-trend.trend-up{background:#22c55e1a;color:#16a34a}.kpi-card-main .kpi-trend.trend-down{background:#ef44441a;color:#dc2626}.kpi-card-main .kpi-info{font-size:13px;color:#6b7280;font-weight:500}.kpi-card-main .sentiment-badge{display:inline-flex;align-items:center;padding:6px 12px;border-radius:8px;font-size:13px;font-weight:600}.kpi-card-main .sentiment-badge.positive{background:#22c55e1a;color:#16a34a}.kpi-card-main .sentiment-badge.negative{background:#ef44441a;color:#dc2626}.kpi-card-main .sentiment-badge.neutral{background:#6b72801a;color:#4b5563}.section-content{margin-bottom:32px;animation:fadeInUp .6s ease-out}.analytics-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:20px;margin-bottom:32px;animation:fadeInUp .6s ease-out}.grid-item{animation:fadeInUp .6s ease-out}.grid-item.full-width{grid-column:span 12}.grid-item.half-width{grid-column:span 6}.grid-item:nth-child(1){animation-delay:.1s}.grid-item:nth-child(2){animation-delay:.2s}.grid-item:nth-child(3){animation-delay:.3s}.geographic-section{display:grid;grid-template-columns:1fr 380px;gap:20px;margin-bottom:32px;animation:fadeInUp .6s ease-out}.geographic-main{background:#fff;border-radius:16px;box-shadow:0 4px 20px #00000014;border:1px solid #f3f4f6;transition:all .3s ease}.geographic-main:hover{transform:translateY(-4px);box-shadow:0 8px 30px #0000001f}.geographic-sidebar{display:flex;flex-direction:column;gap:20px}.geographic-card{background:#fff;border-radius:16px;box-shadow:0 4px 20px #00000014;border:1px solid #f3f4f6;transition:all .3s ease;flex:1;display:flex;flex-direction:column}.geographic-card:hover{transform:translateY(-4px);box-shadow:0 8px 30px #0000001f}.geographic-card .card{border:none;box-shadow:none;flex:1;display:flex;flex-direction:column}.card{background:#fff;border-radius:16px;padding:20px;box-shadow:0 4px 20px #00000014;border:1px solid #f3f4f6;transition:all .3s ease;height:100%}.card:hover{box-shadow:0 8px 30px #0000001f;transform:translateY(-2px)}.card h3{font-size:16px;font-weight:700;color:#111827;margin-bottom:12px}.grid-item.half-width .card{max-height:340px;overflow-y:auto}.section-content .card{max-height:420px;overflow-y:auto}.analytics-footer{background:linear-gradient(135deg,#f3f4f6,#e5e7eb);border-radius:16px;padding:24px 28px;display:flex;gap:20px;align-items:flex-start;box-shadow:0 2px 10px #0000000a;margin-top:40px;animation:fadeIn .6s ease-out}.footer-icon{font-size:32px;flex-shrink:0}.footer-content{flex:1}.footer-title{font-size:16px;font-weight:700;color:#111827;margin:0 0 8px}.footer-text{font-size:13px;color:#6b7280;line-height:1.6;margin:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeInDown{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}@keyframes fadeInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes pulse{0%,to{opacity:1}50%{opacity:.6}}@media (max-width: 1400px){.geographic-section{grid-template-columns:1fr 340px}}@media (max-width: 1200px){.kpi-grid-main{grid-template-columns:repeat(2,1fr)}.geographic-section{grid-template-columns:1fr}}@media (max-width: 992px){.analytics-header{flex-direction:column;gap:16px;text-align:center}.header-content{flex-direction:column;text-align:center}.header-badge{margin:0 auto}.filters-bar{flex-direction:column;align-items:stretch}.filter-item{min-width:100%}.grid-item.half-width{grid-column:span 12}}@media (max-width: 768px){.analytics-header{padding:20px}.header-title{font-size:20px}.header-subtitle{font-size:12px}.kpi-grid-main{grid-template-columns:1fr}.kpi-card-main{padding:20px}.kpi-card-main .kpi-value{font-size:28px}.section-title{font-size:18px}.section-subtitle{font-size:13px}.analytics-footer{flex-direction:column}}.spinner-border{animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}html{scroll-behavior:smooth}::selection{background:#3b82f64d;color:#111827}.chat-page.standalone{width:100%;height:100vh;background:#0f172a;color:#fff;display:flex;flex-direction:column}.chat-header{background:#1e293b;padding:14px 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #334155}.agent-info{display:flex;align-items:center;gap:10px}.agent-avatar{width:42px;height:42px;border-radius:50%;object-fit:cover}.agent-avatar.alt{background:#334155;display:grid;place-items:center;font-weight:700;color:#fff}.agent-name{font-weight:600}.agent-status{font-size:12px;color:#94a3b8}.agent-status.online{color:#22c55e}.agent-status.busy{color:#f59e0b}.agent-status.away{color:#60a5fa}.agent-status.offline{color:#6b7280}.view-profile-btn{font-size:13px;color:#fff;text-decoration:none;background:#3b82f6;padding:6px 10px;border-radius:6px}.chat-body{flex:1;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:12px;background:#0f172a}.chat-message{display:flex;flex-direction:column;max-width:70%}.from-user{align-self:flex-end;align-items:flex-end}.from-agent{align-self:flex-start;align-items:flex-start}.bubble{padding:10px 14px;border-radius:16px;line-height:1.4;font-size:14px;background:#1e293b;color:#e2e8f0}.from-user .bubble{background:#3b82f6;color:#fff}.time{font-size:11px;color:#94a3b8;margin-top:4px}.chat-input{display:flex;align-items:center;gap:10px;padding:14px 20px;background:#1e293b;border-top:1px solid #334155}.chat-input input{flex:1;padding:10px;border:none;border-radius:8px;background:#0f172a;color:#fff;outline:none}.chat-input button{background:#3b82f6;border:none;border-radius:8px;color:#fff;padding:10px 16px;cursor:pointer;font-weight:600}.chat-placeholder{text-align:center;color:#94a3b8;margin-top:30%;font-size:15px}.status-pill{display:inline-flex;align-items:center;gap:8px;padding:4px 10px;border-radius:999px;font-weight:700;font-size:12px;letter-spacing:.2px;border:1px solid transparent;-webkit-user-select:none;user-select:none;background:#94a3b814;color:#cbd5e1}.status-pill .status-dot{width:10px;height:10px;border-radius:50%;box-shadow:0 0 0 2px #0003}.status-pill[data-status=online]{background:#10b9811f;color:#34d399;border-color:#10b98159}.status-pill[data-status=busy]{background:#f59e0b1f;color:#fbbf24;border-color:#f59e0b59}.status-pill[data-status=away]{background:#60a5fa1f;color:#93c5fd;border-color:#60a5fa59}.status-pill[data-status=offline]{background:#64748b1f;color:#94a3b8;border-color:#64748b59}.status-pill[data-status=online] .status-dot{background:#22c55e;animation:pulse 1.4s infinite ease-in-out}.status-pill[data-status=busy] .status-dot{background:#f59e0b}.status-pill[data-status=away] .status-dot{background:#60a5fa}.status-pill[data-status=offline] .status-dot{background:#64748b}.status-bar{height:3px;width:100%}.status-bar[data-status=online]{background:linear-gradient(90deg,#16a34a,#22c55e)}.status-bar[data-status=busy]{background:linear-gradient(90deg,#d97706,#f59e0b)}.status-bar[data-status=away]{background:linear-gradient(90deg,#2563eb,#60a5fa)}.status-bar[data-status=offline]{background:linear-gradient(90deg,#475569,#64748b)}@keyframes pulse{0%{transform:scale(1);box-shadow:0 0 #22c55e80}70%{transform:scale(1.08);box-shadow:0 0 0 8px #22c55e00}to{transform:scale(1);box-shadow:0 0 #22c55e00}}.chat-input button{background-color:#2979ff;color:#fff;border:none;border-radius:6px;padding:8px 16px;font-size:15px;cursor:pointer;transition:background-color .2s,opacity .2s}.chat-input button:hover:not(:disabled){background-color:#1c63d5}.chat-input button:disabled{background-color:#3a3a3a;color:#aaa;cursor:not-allowed;opacity:.6;filter:grayscale(.4);transition:none}.chat-input input:disabled{background-color:#1f1f1f;color:#777;cursor:not-allowed}
