@import"https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap";*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}body{font-family:var(--font-family);background-color:var(--bg-page);color:var(--text-primary);line-height:1.5;-webkit-font-smoothing:antialiased}button,input,textarea,select{font-family:inherit}:root{--primary: #0fa97e;--primary-hover: #0b8764;--primary-light: #e6f7f2;--primary-border: #a7f3d0;--primary-focus-ring: rgba(15, 169, 126, .2);--team-dev: #0284c7;--team-dev-light: #e0f2fe;--team-dev-border: #bae6fd;--team-business: #d97706;--team-business-light: #fef3c7;--team-business-border: #fde68a;--status-open: #3b82f6;--status-open-light: #eff6ff;--status-progress: #8b5cf6;--status-progress-light: #f5f3ff;--status-waiting: #f59e0b;--status-waiting-light: #fffbeb;--status-resolved: #10b981;--status-resolved-light: #ecfdf5;--status-reopened: #ea580c;--status-reopened-light: #fff7ed;--status-reopened-border: #fed7aa;--status-critical: #ef4444;--status-critical-light: #fef2f2;--bg-page: #f8fafc;--bg-card: #ffffff;--bg-subtle: #f1f5f9;--bg-hover: #f8fafc;--border-light: #f1f5f9;--border-subtle: #e2e8f0;--border-medium: #cbd5e1;--border-dark: #94a3b8;--text-primary: #0f172a;--text-secondary: #475569;--text-muted: #64748b;--text-light: #94a3b8;--text-inverse: #ffffff;--radius-xs: 4px;--radius-sm: 6px;--radius-md: 10px;--radius-lg: 14px;--radius-xl: 18px;--radius-full: 9999px;--shadow-xs: 0 1px 2px rgba(15, 23, 42, .04);--shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);--shadow-md: 0 4px 6px -1px rgba(15, 23, 42, .08), 0 2px 4px -2px rgba(15, 23, 42, .04);--shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, .08), 0 4px 6px -4px rgba(15, 23, 42, .03);--shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, .1), 0 8px 10px -6px rgba(15, 23, 42, .05);--shadow-drawer: -8px 0 32px rgba(15, 23, 42, .16);--font-family: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif}body{font-size:14px}.muted{color:var(--text-muted)}.mono,code{font-family:monospace;font-size:12.5px}.page-note{padding:32px;color:var(--text-muted)}.empty{padding:24px;text-align:center}.btn-primary{padding:9px 18px;border:0;border-radius:var(--radius-md);background:var(--primary);color:var(--text-inverse);font-weight:700;cursor:pointer}.btn-primary:hover:not(:disabled){background:var(--primary-hover)}.btn-primary:disabled{opacity:.55;cursor:default}.btn-ghost{padding:7px 12px;border:1px solid var(--border-subtle);border-radius:var(--radius-sm);background:var(--bg-card);color:var(--text-secondary);font-weight:700;cursor:pointer}.btn-ghost:hover{background:var(--bg-subtle)}.field{display:flex;flex-direction:column;gap:6px}.field-label{font-size:12.5px;font-weight:700;color:var(--text-secondary)}.field input,.field select,.filter-input,.filter-select,.composer textarea{padding:8px 11px;border:1px solid var(--border-subtle);border-radius:var(--radius-sm);background:var(--bg-card);color:var(--text-primary);font-size:13.5px}.field input:focus,.field select:focus,.filter-input:focus,.filter-select:focus,.composer textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-focus-ring)}.form-error{margin:8px 0;padding:8px 12px;border-radius:var(--radius-sm);background:var(--status-critical-light);color:var(--status-critical);font-size:13px}.login-page{display:grid;place-items:center;min-height:100vh;padding:16px}.login-card{display:flex;flex-direction:column;gap:14px;width:100%;max-width:380px;padding:32px;border:1px solid var(--border-subtle);border-radius:var(--radius-lg);background:var(--bg-card);box-shadow:var(--shadow-md)}.login-title{font-size:20px;font-weight:800}.portal-top-bar{position:sticky;top:0;z-index:10;display:flex;align-items:center;gap:20px;height:64px;padding:0 32px;background-color:var(--bg-card);border-bottom:1px solid var(--border-subtle)}.portal-brand{font-size:17px;font-weight:800}.project-switcher{min-width:240px;padding:8px 12px;border:1px solid var(--primary-border);border-radius:var(--radius-sm);background:var(--primary-light);color:var(--text-primary);font-weight:700}.top-bar-spacer{flex:1}.agent-chip{display:flex;align-items:center;gap:10px}.agent-avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:var(--radius-full);background:var(--bg-subtle);font-size:12px;font-weight:800}.agent-name{display:block;font-weight:700;line-height:1.2}.agent-role{display:block;font-size:12px;color:var(--text-muted)}.portal-main{max-width:1500px;margin:0 auto;padding:24px 32px 48px}.page-heading{display:flex;align-items:baseline;gap:12px;margin-bottom:18px}.page-heading h1{font-size:22px;font-weight:800}.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.metric-card{display:flex;flex-direction:column;gap:2px;padding:16px 18px;border:1px solid var(--border-subtle);border-left-width:4px;border-radius:var(--radius-md);background:var(--bg-card)}.metric-card.status-open{border-left-color:var(--status-open)}.metric-card.status-in_progress{border-left-color:var(--status-progress)}.metric-card.status-waiting_on_user{border-left-color:var(--status-waiting)}.metric-card.status-resolved{border-left-color:var(--status-resolved)}.metric-value{font-size:26px;font-weight:800}.metric-label{font-size:12.5px;color:var(--text-muted)}.card{padding:18px;border:1px solid var(--border-subtle);border-radius:var(--radius-lg);background:var(--bg-card);box-shadow:var(--shadow-xs)}.card-title{font-size:16px;font-weight:800}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.toolbar-filters{display:flex;flex-wrap:wrap;gap:8px}.filter-input{min-width:240px}.filter-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:14px}.date-filter{display:inline-flex;align-items:center;gap:6px;color:var(--text-secondary);font-size:12.5px;font-weight:600}.portal-main.full-width{max-width:none}.width-toggle{white-space:nowrap}.ticket-table{width:100%;border-collapse:collapse}.ticket-table th{padding:10px 12px;border-bottom:1px solid var(--border-subtle);font-size:11.5px;font-weight:800;text-align:left;text-transform:uppercase;color:var(--text-muted)}.ticket-table td{padding:11px 12px;border-bottom:1px solid var(--border-light);vertical-align:top}.ticket-table tbody tr{cursor:pointer}.ticket-table tbody tr:hover{background:var(--bg-hover)}.cell-strong{font-weight:700}.cell-sub{font-size:12px;color:var(--text-muted)}.badge{display:inline-block;padding:2px 8px;border-radius:var(--radius-full);font-size:11px;font-weight:800;white-space:nowrap}.status-open{background:var(--status-open-light);color:var(--status-open)}.status-in_progress{background:var(--status-progress-light);color:var(--status-progress)}.status-waiting_on_user{background:var(--status-waiting-light);color:#b45309}.status-reopened{background:var(--status-reopened-light);color:var(--status-reopened)}.status-resolved,.status-closed{background:var(--status-resolved-light);color:var(--status-resolved)}.priority-low{background:var(--bg-subtle);color:var(--text-muted)}.priority-medium{background:var(--status-open-light);color:var(--status-open)}.priority-high{background:var(--status-waiting-light);color:#b45309}.priority-critical{background:var(--status-critical-light);color:var(--status-critical)}.dept-development{background:var(--team-dev-light);color:var(--team-dev)}.dept-business{background:var(--team-business-light);color:var(--team-business)}.workbench-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:flex;justify-content:flex-end;background:#0f172a59}.workbench{display:flex;flex-direction:column;width:min(1180px,100vw);height:100%;background:var(--bg-card);box-shadow:var(--shadow-drawer)}.workbench-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 24px;border-bottom:1px solid var(--border-subtle)}.workbench-meta{display:flex;align-items:center;gap:8px;margin-bottom:4px}.workbench-title{font-size:18px;font-weight:800}.workbench-body{display:grid;grid-template-columns:1fr 340px;flex:1;min-height:0}.workbench-thread{display:flex;flex-direction:column;min-height:0;border-right:1px solid var(--border-subtle)}.messages{display:flex;flex-direction:column;gap:10px;flex:1;overflow-y:auto;padding:18px 24px}.message{max-width:80%;padding:10px 12px;border-radius:var(--radius-md);white-space:pre-wrap}.message.from-user{align-self:flex-start;border:1px solid var(--border-subtle);background:var(--bg-subtle)}.message.from-agent{align-self:flex-end;border:1px solid var(--primary-border);background:var(--primary-light)}.message.internal-note{align-self:flex-end;border:1px dashed var(--team-business-border);background:var(--team-business-light)}.message-meta{display:block;margin-bottom:4px;font-size:11.5px;font-weight:700;color:var(--text-muted)}.composer{display:flex;flex-direction:column;gap:8px;padding:14px 24px 18px;border-top:1px solid var(--border-subtle)}.composer-note textarea{border-color:var(--team-business-border);background:var(--team-business-light)}.composer-tabs{display:flex;gap:6px}.composer-tabs button{padding:6px 12px;border:1px solid var(--border-subtle);border-radius:var(--radius-full);background:var(--bg-card);font-weight:700;color:var(--text-secondary);cursor:pointer}.composer-public .composer-tabs button.active{border-color:var(--primary);background:var(--primary-light);color:var(--primary-hover)}.composer-note .composer-tabs button.active{border-color:var(--team-business);background:var(--team-business-light);color:#b45309}.composer-actions{display:flex;justify-content:flex-end}.workbench-side{overflow-y:auto;padding:18px 20px}.side-title{display:block;margin:18px 0 8px;font-size:11.5px;font-weight:800;text-transform:uppercase;color:var(--text-muted)}.facts{display:grid;grid-template-columns:96px 1fr;gap:6px 10px;font-size:13px}.facts dt{color:var(--text-muted)}.facts dd{word-break:break-word}.error-log{display:flex;flex-direction:column;gap:4px}.error-log code{padding:6px 8px;border-radius:var(--radius-sm);background:var(--status-critical-light);color:var(--status-critical);white-space:pre-wrap}.audit{display:flex;flex-direction:column;gap:4px;padding-left:16px;font-size:12.5px}.top-nav{display:flex;gap:4px}.top-nav a{padding:7px 12px;border-radius:var(--radius-sm);color:var(--text-secondary);font-weight:700;text-decoration:none}.top-nav a:hover{background:var(--bg-subtle)}.top-nav a.active{background:var(--bg-subtle);color:var(--text-primary)}.small{font-size:12px}.setup-tabs{display:flex;gap:4px;margin-bottom:16px;border-bottom:1px solid var(--border-subtle)}.setup-tabs a{padding:10px 14px;border-bottom:2px solid transparent;color:var(--text-secondary);font-weight:700;text-decoration:none}.setup-tabs a.active{border-bottom-color:var(--primary);color:var(--primary-hover)}.setup-section{display:flex;flex-direction:column;gap:16px}.section-intro{max-width:900px;color:var(--text-secondary)}.card+.card{margin-top:0}.portal-main>.card+.card{margin-top:16px}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;align-items:start;margin-top:12px}.form-actions{display:flex;flex-direction:column;align-items:flex-start;gap:8px;grid-column:1 / -1}.field-help{font-size:12px;color:var(--text-muted)}.inline-form{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.inline-form input,.inline-form select,.inline-form textarea,.import-box textarea{padding:7px 10px;border:1px solid var(--border-subtle);border-radius:var(--radius-sm);background:var(--bg-card);color:var(--text-primary);font-size:13.5px}.inline-form textarea{flex:1;min-width:280px}.add-client input{min-width:200px}.add-env input{flex:1;min-width:320px}.btn-small{padding:5px 10px;border:1px solid var(--border-subtle);border-radius:var(--radius-sm);background:var(--bg-card);color:var(--text-secondary);font-size:12.5px;font-weight:700;cursor:pointer}.btn-small:hover:not(:disabled){background:var(--bg-subtle)}.btn-small-primary{border-color:var(--primary);background:var(--primary);color:var(--text-inverse)}.btn-small-primary:hover:not(:disabled){background:var(--primary-hover)}.btn-small:disabled{opacity:.55;cursor:default}.btn-link{padding:0;border:0;background:none;color:var(--primary-hover);font-size:12.5px;font-weight:700;cursor:pointer}.data-table{width:100%;margin-top:10px;border-collapse:collapse}.data-table th{padding:8px 10px;border-bottom:1px solid var(--border-subtle);font-size:11.5px;font-weight:800;text-align:left;text-transform:uppercase;color:var(--text-muted)}.data-table td{padding:10px;border-bottom:1px solid var(--border-light);vertical-align:middle}.row-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px}.row-actions a{color:var(--primary-hover);font-weight:700;text-decoration:none}.row-muted{opacity:.55}.chips{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.chip{padding:2px 8px;border:1px solid var(--border-subtle);border-radius:var(--radius-full);background:var(--bg-subtle);font-family:monospace;font-size:12px}.env-badge{background:var(--bg-subtle);color:var(--text-secondary)}.client-card{display:flex;flex-direction:column;gap:10px}.client-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.client-name{font-size:16px;font-weight:800}.tree{display:flex;flex-direction:column;gap:6px;margin-top:12px;list-style:none}.tree ul{list-style:none}.tree-module{padding:8px 10px;border:1px solid var(--border-light);border-radius:var(--radius-md)}.tree-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:4px 0}.tree-child{margin-left:22px;padding-left:12px;border-left:2px solid var(--border-subtle)}.tree-name{font-weight:700}.tree-routes{font-family:monospace;font-size:12px;color:var(--text-muted)}.category-form input{width:170px}.add-module{display:flex;flex-direction:column;gap:6px;margin-top:14px;padding-top:12px;border-top:1px solid var(--border-subtle)}.import-box{display:flex;flex-direction:column;gap:8px;margin:10px 0}.import-box textarea{width:100%;font-family:monospace;font-size:12.5px}.form-success{margin:8px 0;padding:8px 12px;border-radius:var(--radius-sm);background:var(--status-resolved-light);color:var(--status-resolved);font-weight:600}.import-preview{display:flex;flex-direction:column;gap:10px;padding:12px 14px;border:1px dashed var(--border-subtle);border-radius:var(--radius-md);background:var(--bg-subtle)}.import-preview ul.form-error{margin:0;padding-left:30px}.badge-new{background:var(--status-resolved-light);color:var(--status-resolved)}.badge-exists{background:var(--bg-card);color:var(--text-muted)}.file-pick{position:relative;cursor:pointer}.file-pick input{position:absolute;width:1px;height:1px;opacity:0}.snippet-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(380px,1fr));gap:12px;margin-top:10px}.snippet-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}.code-block{overflow-x:auto;padding:10px 12px;border-radius:var(--radius-sm);background:#0f172a;color:#e2e8f0;font-family:monospace;font-size:12.5px;white-space:pre}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;display:grid;place-items:center;padding:16px;background:#0f172a73}.modal{display:flex;flex-direction:column;gap:12px;width:min(640px,100%);padding:24px;border-radius:var(--radius-lg);background:var(--bg-card);box-shadow:var(--shadow-xl)}.warning-box{padding:10px 12px;border:1px solid var(--team-business-border);border-radius:var(--radius-md);background:var(--team-business-light);font-size:13px}.secret-row{display:grid;grid-template-columns:150px 1fr auto;align-items:center;gap:10px}.secret-value{overflow-wrap:anywhere;padding:6px 8px;border-radius:var(--radius-sm);background:var(--bg-subtle)}.modal-actions{display:flex;justify-content:flex-end;gap:8px}.grant-form{margin-top:12px}.activity-dot{padding:3px 10px;border-radius:var(--radius-full);background:var(--status-reopened-light);color:var(--status-reopened);font-size:12px;font-weight:800}.metric-grid-5{grid-template-columns:repeat(5,1fr)}.client-strip{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:16px}.client-chip{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:180px;padding:10px 14px;border:1px solid var(--border-subtle);border-radius:var(--radius-md);background:var(--bg-card);text-align:left;cursor:pointer}.client-chip:hover{border-color:var(--primary-border)}.client-chip.active{border-color:var(--primary);background:var(--primary-light)}.client-chip.suspended{opacity:.6}.segmented-control{display:inline-flex;padding:3px;border-radius:var(--radius-md);background:var(--bg-subtle)}.segmented-control button{padding:5px 12px;border:0;border-radius:var(--radius-sm);background:none;color:var(--text-secondary);font-weight:700;cursor:pointer}.segmented-control button.active{background:var(--bg-card);color:var(--text-primary);box-shadow:var(--shadow-xs)}.kanban{display:grid;grid-template-columns:repeat(4,minmax(220px,1fr));gap:12px;margin-top:10px}.kanban-column{display:flex;flex-direction:column;min-height:320px;max-height:70vh;border:1px solid var(--border-light);border-radius:var(--radius-md);background:var(--bg-subtle)}.kanban-column.drop-target{border-color:var(--primary);background:var(--primary-light)}.kanban-column-head{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;font-size:12px;font-weight:800;text-transform:uppercase;color:var(--text-secondary)}.count-pill{padding:1px 8px;border-radius:var(--radius-full);background:var(--bg-card)}.kanban-cards{display:flex;flex-direction:column;gap:8px;overflow-y:auto;padding:0 10px 10px}.kanban-card{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border:1px solid var(--border-subtle);border-radius:var(--radius-md);background:var(--bg-card);cursor:grab}.kanban-card:hover{box-shadow:var(--shadow-sm)}.kanban-card-top,.kanban-card-bottom{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px}.kanban-empty{padding:16px 0;text-align:center}.rating-pill{margin-left:6px;padding:1px 7px;border-radius:var(--radius-full);background:#fef3c7;color:#b45309;font-size:11px;font-weight:800}.side-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}.workbench-side>.field{margin-bottom:10px}.side-actions{display:flex;flex-wrap:wrap;gap:8px}.side-form{display:flex;flex-direction:column;gap:8px;margin-top:10px;padding:10px;border:1px solid var(--border-subtle);border-radius:var(--radius-md);background:var(--bg-subtle)}.side-form select,.side-form textarea{padding:7px 10px;border:1px solid var(--border-subtle);border-radius:var(--radius-sm);font-size:13px}.canned-select{margin-left:auto;padding:5px 8px;border:1px solid var(--border-subtle);border-radius:var(--radius-full);font-size:12.5px}.composer-actions{justify-content:space-between}.attachment-list,.file-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}.file-chip{display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border:1px solid var(--border-subtle);border-radius:var(--radius-full);background:var(--bg-card);color:var(--text-primary);font-size:12px;text-decoration:none}.file-chip button{border:0;background:none;color:var(--text-muted);font-size:15px;cursor:pointer}.thumb img{display:block;max-width:160px;max-height:110px;border:1px solid var(--border-subtle);border-radius:var(--radius-sm);object-fit:cover}.message.rating-message{align-self:center;border:1px solid #fde68a;background:#fffbeb}.checkbox-list{display:flex;flex-direction:column;gap:6px}.checkbox-field>label{font-weight:400}.wide-field{grid-column:1 / -1}.narrow-field{max-width:420px;margin-bottom:12px}.wide-field textarea,.form-grid textarea,.client-details input,.client-details select,.contact-row input,.data-table.compact input{padding:7px 10px;border:1px solid var(--border-subtle);border-radius:var(--radius-sm);font-size:13.5px}.data-table.compact td{padding:6px 10px}.data-table.compact input[type=number]{width:110px}.launcher-preview{display:flex;align-items:center;gap:12px}.preview-launcher{display:inline-flex;align-items:center;gap:8px;padding:11px 18px;border-radius:var(--radius-full);color:#fff;font-weight:700;box-shadow:var(--shadow-md)}.radio-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;margin:10px 0}.radio-card{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border:1.5px solid var(--border-subtle);border-radius:var(--radius-md);cursor:pointer}.radio-card.selected{border-color:var(--primary);background:var(--primary-light)}.radio-card input{align-self:flex-start}.client-details{display:flex;flex-direction:column;gap:12px;padding:14px;border:1px solid var(--border-subtle);border-radius:var(--radius-md);background:var(--bg-subtle)}.details-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:16px}.details-grid .field{gap:6px}.contact-row input{width:150px}.canned-row{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:10px 0;border-bottom:1px solid var(--border-light)}.canned-body{max-width:900px;white-space:pre-wrap}fieldset.field{margin:0;padding:0;border:0}fieldset.field legend{margin-bottom:6px;padding:0}.nav-badge{display:inline-block;min-width:18px;margin-left:6px;padding:0 5px;border-radius:var(--radius-full);background:var(--status-critical);color:var(--text-inverse);font-size:11px;line-height:18px;text-align:center}a.btn-small{display:inline-block;text-decoration:none}.agent-avatar.large{width:42px;height:42px;font-size:14px}.count-pill.unread{background:var(--status-critical);color:var(--text-inverse);font-size:11px;font-weight:800}.chat-thread{display:flex;flex:1;flex-direction:column;min-height:0}.chat-thread-stream{display:flex;flex:1;flex-direction:column;gap:10px;overflow-y:auto;padding:14px 16px}.chat-thread-loading{padding:16px}.chat-msg{max-width:78%;padding:8px 12px;border-radius:var(--radius-md);white-space:pre-wrap;overflow-wrap:anywhere}.chat-msg p{margin:0}.chat-msg.from-user{align-self:flex-start;border:1px solid var(--border-subtle);border-bottom-left-radius:var(--radius-xs);background:var(--bg-subtle)}.chat-msg.from-agent{align-self:flex-end;border:1px solid var(--primary-border);border-bottom-right-radius:var(--radius-xs);background:var(--primary-light)}.chat-msg-meta{display:block;margin-bottom:3px;color:var(--text-muted);font-size:11.5px;font-weight:700}.chat-system{align-self:center;max-width:90%;padding:6px 12px;border:1px solid var(--status-reopened-border);border-radius:var(--radius-md);background:var(--status-reopened-light);color:var(--text-secondary);font-size:12.5px;text-align:center}.chat-typing{align-self:flex-start;color:var(--text-muted);font-size:12px}.typing-dots{display:inline-flex;gap:3px;margin-left:6px}.typing-dots i{width:5px;height:5px;border-radius:50%;background:var(--text-muted);animation:typing-dot 1.2s infinite}.typing-dots i:nth-child(2){animation-delay:.2s}.typing-dots i:nth-child(3){animation-delay:.4s}@keyframes typing-dot{30%{opacity:.25;transform:translateY(-2px)}}.chat-thread-composer{display:flex;flex-direction:column;gap:8px;padding:10px 14px 12px;border-top:1px solid var(--border-subtle)}.chat-quick-replies{display:flex;flex-wrap:wrap;gap:6px}.chat-quick{padding:3px 10px;border:1px solid var(--border-subtle);border-radius:var(--radius-full);background:var(--bg-card);color:var(--text-secondary);font-size:12px;font-weight:600;cursor:pointer}.chat-quick:hover{border-color:var(--primary);color:var(--primary)}.chat-input-row{display:flex;gap:8px;align-items:flex-end}.chat-input-row textarea{flex:1;padding:8px 11px;border:1px solid var(--border-subtle);border-radius:var(--radius-sm);background:var(--bg-card);color:var(--text-primary);font:inherit;font-size:13.5px;resize:vertical}.chat-thread-ended{margin:0;padding:12px 16px;border-top:1px solid var(--border-subtle)}.chat-popup{position:fixed;right:24px;bottom:24px;z-index:60;display:flex;flex-direction:column;width:380px;max-width:calc(100vw - 32px);height:540px;max-height:calc(100vh - 100px);border:1px solid var(--border-subtle);border-radius:var(--radius-lg);background:var(--bg-card);box-shadow:var(--shadow-xl)}.chat-popup-head{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid var(--border-subtle)}.chat-popup-who{flex:1;min-width:0}.chat-popup-name{font-weight:800}.chat-popup-ctrls{display:flex;gap:2px}.chat-popup-ctrls button{width:28px;height:28px;border:0;border-radius:var(--radius-sm);background:none;color:var(--text-secondary);font-size:15px;cursor:pointer}.chat-popup-ctrls button:hover{background:var(--bg-hover)}.chat-popup-context{padding:6px 14px;border-bottom:1px solid var(--border-subtle);background:var(--bg-subtle);color:var(--text-secondary);font-size:12px}.chat-popup-other{padding:7px 14px;border:0;border-bottom:1px solid var(--border-subtle);background:var(--status-reopened-light);color:var(--text-primary);font-size:12.5px;font-weight:700;text-align:left;cursor:pointer}.chat-popup-convert{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 14px;border-bottom:1px solid var(--border-subtle);font-size:12.5px}.chat-popup .form-error{margin:6px 14px}.chat-docked{position:fixed;right:24px;bottom:24px;z-index:60;display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border:1px solid var(--primary-border);border-radius:var(--radius-full);background:var(--bg-card);color:var(--text-primary);box-shadow:var(--shadow-lg);font-size:13px;cursor:pointer}.chat-docked-dot{width:9px;height:9px;border-radius:50%;background:var(--status-resolved)}.chat-docked-unread{min-width:20px;padding:0 6px;border-radius:var(--radius-full);background:var(--status-critical);color:var(--text-inverse);font-size:11.5px;font-weight:800;line-height:20px}.chat-hub-toolbar{flex-wrap:wrap}.chat-pills{display:flex;flex-wrap:wrap;gap:6px}.chat-pill{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border:1px solid var(--border-subtle);border-radius:var(--radius-full);background:var(--bg-card);color:var(--text-secondary);font-size:12.5px;font-weight:700;cursor:pointer}.chat-pill .count-pill{background:var(--bg-subtle);font-size:11.5px}.chat-pill.active{border-color:var(--primary);background:var(--primary-light);color:var(--primary)}.chat-hub-grid{display:grid;grid-template-columns:300px minmax(0,1fr) 280px;height:calc(100vh - 250px);min-height:480px;padding:0;overflow:hidden}.chat-hub-grid.no-selection{grid-template-columns:300px minmax(0,1fr)}.chat-hub-sidebar{overflow-y:auto;border-right:1px solid var(--border-subtle)}.chat-session-list{margin:0;padding:0;list-style:none}.chat-session-item{display:flex;gap:10px;width:100%;padding:12px 14px;border:0;border-bottom:1px solid var(--border-subtle);background:none;color:var(--text-primary);font:inherit;text-align:left;cursor:pointer}.chat-session-item:hover{background:var(--bg-hover)}.chat-session-item.active{background:var(--primary-light);box-shadow:inset 3px 0 0 var(--primary)}.chat-session-body{display:flex;flex:1;flex-direction:column;gap:2px;min-width:0}.chat-session-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.chat-session-preview{overflow:hidden;color:var(--text-secondary);font-size:12.5px;white-space:nowrap;text-overflow:ellipsis}.chat-session-tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:3px}.chat-empty{padding:16px}.chat-hub-main{display:flex;flex-direction:column;min-width:0;min-height:0}.chat-hub-placeholder{display:grid;place-items:center;padding:24px;text-align:center}.chat-hub-main-head{display:flex;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid var(--border-subtle)}.chat-hub-who{flex:1;min-width:0}.chat-hub-who h2{margin:0 0 2px;font-size:16px}.chat-hub-strip{display:flex;flex-wrap:wrap;gap:6px 16px;padding:8px 16px;border-bottom:1px solid var(--border-subtle);background:var(--bg-subtle);color:var(--text-secondary);font-size:12.5px}.chat-hub-main>.form-error{margin:8px 16px 0}.chat-hub-context{overflow-y:auto;padding:4px 16px 16px;border-left:1px solid var(--border-subtle);background:var(--bg-subtle)}.chat-context-card .facts{grid-template-columns:84px 1fr}.chat-ticket-link{display:flex;flex-direction:column;gap:2px;margin-bottom:8px;padding:8px 10px;border:1px solid var(--border-subtle);border-radius:var(--radius-sm);background:var(--bg-card);color:var(--text-primary);text-decoration:none}.chat-ticket-link:hover{border-color:var(--primary)}.chat-audit-table tbody tr{cursor:pointer}.chat-audit-preview{max-width:340px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}@media (max-width: 1100px){.chat-hub-grid,.chat-hub-grid.no-selection{grid-template-columns:260px minmax(0,1fr)}.chat-hub-context{display:none}}
