:root {
  color-scheme: dark;
  --bg: #070908;
  --surface: #0d110f;
  --surface-2: #121714;
  --surface-3: #181e1b;
  --line: #232b27;
  --line-strong: #344139;
  --text: #f3f8f5;
  --muted: #87938d;
  --muted-2: #5e6963;
  --accent: #5cf29b;
  --accent-strong: #2cdf7c;
  --accent-soft: rgba(92, 242, 155, .11);
  --warning: #f7c86a;
  --danger: #ff707d;
  --info: #75b7ff;
  --radius: 16px;
  --shadow: 0 22px 60px rgba(0, 0, 0, .28);
  --sidebar: 246px;
  font-family: Montserrat, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { min-height: 100vh; margin: 0; background: var(--bg); color: var(--text); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; }
::selection { background: rgba(92, 242, 155, .25); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #29332e; border-radius: 20px; }

.boot-screen { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 22px; color: var(--muted); }
.brand-mark { width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: 14px; display: grid; place-content: center; background: linear-gradient(145deg, #151d19, #0a0e0c); position: relative; box-shadow: inset 0 1px rgba(255,255,255,.04); }
.brand-mark span { font-size: 21px; line-height: 1; font-weight: 800; letter-spacing: -.08em; transform: translateX(-1px); }
.brand-mark i { width: 6px; height: 6px; border-radius: 2px; position: absolute; right: 7px; top: 7px; background: var(--accent); box-shadow: 0 0 14px rgba(92,242,155,.6); }
.loader { width: 124px; height: 2px; overflow: hidden; border-radius: 10px; background: #171c19; }
.loader span { display: block; width: 45%; height: 100%; background: var(--accent); animation: load 1.2s ease-in-out infinite; }
@keyframes load { from { transform: translateX(-110%); } to { transform: translateX(260%); } }

.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, .78fr) 1.22fr; background: var(--bg); }
.login-panel { padding: clamp(28px, 6vw, 86px); display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); position: relative; z-index: 2; background: rgba(7,9,8,.94); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 750; letter-spacing: -.02em; font-size: 16px; }
.brand small { display: block; color: var(--muted); font-size: 9px; line-height: 1.3; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-top: 2px; }
.login-box { width: min(100%, 410px); margin: 64px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 10px; text-transform: uppercase; letter-spacing: .16em; font-weight: 750; }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.login-box h1 { margin: 18px 0 10px; font-size: clamp(30px, 4vw, 45px); letter-spacing: -.05em; line-height: 1.04; font-weight: 720; }
.login-box > p { color: var(--muted); max-width: 360px; line-height: 1.7; margin: 0 0 34px; }
.login-footer { color: var(--muted-2); font-size: 11px; display: flex; justify-content: space-between; gap: 12px; }
.login-visual { position: relative; overflow: hidden; display: grid; place-items: center; padding: 40px; background: radial-gradient(circle at 72% 28%, rgba(69,225,138,.11), transparent 29%), radial-gradient(circle at 16% 88%, rgba(92,242,155,.06), transparent 25%), #090c0b; }
.grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent); }
.visual-card { width: min(630px, 90%); border: 1px solid var(--line); border-radius: 24px; padding: 24px; background: rgba(14,19,16,.84); backdrop-filter: blur(14px); box-shadow: var(--shadow); position: relative; transform: rotate(-1.5deg); }
.visual-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.visual-head strong { font-size: 13px; }.visual-head span { color: var(--muted); font-size: 10px; }
.visual-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.visual-metric { border: 1px solid var(--line); border-radius: 13px; padding: 16px; background: rgba(255,255,255,.018); }
.visual-metric small { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.visual-metric b { display: block; margin-top: 10px; font-size: 26px; letter-spacing: -.04em; }
.visual-line { height: 140px; margin-top: 12px; border: 1px solid var(--line); border-radius: 13px; padding: 18px; display: flex; align-items: flex-end; gap: 8px; }
.visual-line i { flex: 1; background: linear-gradient(to top, rgba(92,242,155,.12), var(--accent)); border-radius: 3px 3px 1px 1px; opacity: .88; }

.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label { color: #b4beb8; font-size: 11px; font-weight: 650; }
.input, .select, .textarea { width: 100%; border: 1px solid var(--line); background: #0d1210; color: var(--text); border-radius: 11px; outline: 0; transition: .18s ease; }
.input, .select { height: 45px; padding: 0 13px; }
.textarea { min-height: 100px; padding: 12px 13px; resize: vertical; line-height: 1.55; }
.input:focus, .select:focus, .textarea:focus { border-color: rgba(92,242,155,.65); box-shadow: 0 0 0 3px rgba(92,242,155,.08); }
.input::placeholder, .textarea::placeholder { color: #56615b; }
.input-wrap { position: relative; }.input-wrap .input { padding-left: 40px; }.input-wrap .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.field-hint { color: var(--muted-2); font-size: 10px; line-height: 1.5; margin-top: -2px; }
.field-error { color: var(--danger); font-size: 11px; min-height: 17px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 14px; }
.field.span-2 { grid-column: 1/-1; }
.check-row { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; }

.btn { height: 39px; padding: 0 15px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; font-weight: 650; font-size: 11px; transition: .18s ease; white-space: nowrap; text-decoration: none; }
.btn:hover { transform: translateY(-1px); }.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent); color: #06100a; box-shadow: 0 8px 22px rgba(92,242,155,.12); }
.btn-primary:hover { background: #75f5aa; }
.btn-secondary { border-color: var(--line); background: var(--surface-2); color: var(--text); }
.btn-secondary:hover { border-color: var(--line-strong); background: var(--surface-3); }
.btn-ghost { background: transparent; color: var(--muted); }.btn-ghost:hover { background: var(--surface-3); color: var(--text); }
.btn-danger { background: rgba(255,112,125,.1); border-color: rgba(255,112,125,.18); color: #ff9aa3; }
.btn-block { width: 100%; height: 46px; }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; color: var(--muted); }
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
.icon { width: 17px; height: 17px; display: inline-block; vertical-align: middle; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0,1fr); }
.sidebar { width: var(--sidebar); height: 100vh; position: fixed; inset: 0 auto 0 0; padding: 22px 14px 16px; border-right: 1px solid var(--line); background: #090c0b; display: flex; flex-direction: column; z-index: 30; }
.sidebar .brand { padding: 0 10px 20px; }
.sidebar .brand-mark { width: 38px; height: 38px; border-radius: 11px; }.sidebar .brand-mark span { font-size: 17px; }
.nav-label { padding: 15px 11px 8px; color: var(--muted-2); font-size: 9px; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; }
.nav { display: grid; gap: 3px; }
.nav-item { height: 41px; padding: 0 11px; border: 0; border-radius: 10px; display: flex; align-items: center; gap: 11px; background: transparent; color: #909c95; cursor: pointer; font-size: 12px; text-align: left; position: relative; }
.nav-item:hover { background: rgba(255,255,255,.025); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); }
.nav-item.active::after { content:""; position:absolute; right:0; width:2px; height:17px; border-radius:2px; background:var(--accent); box-shadow:0 0 10px rgba(92,242,155,.5); }
.nav-item .nav-count { margin-left:auto; min-width:21px; height:19px; border-radius:7px; padding:0 6px; display:grid; place-content:center; background:#202722; color:#aab5ae; font-size:9px; }
.sidebar-bottom { margin-top:auto; display:grid; gap:10px; }
.connection-chip { border:1px solid var(--line); border-radius:11px; padding:11px; display:flex; gap:9px; align-items:center; color:var(--muted); font-size:10px; line-height:1.35; }
.status-dot { width:7px; height:7px; border-radius:50%; background:var(--muted-2); flex:0 0 auto; }.status-dot.connected { background:var(--accent); box-shadow:0 0 10px rgba(92,242,155,.55); }.status-dot.error { background:var(--danger); }
.user-menu { padding:9px 8px; border-radius:11px; display:flex; align-items:center; gap:10px; cursor:pointer; }.user-menu:hover { background:var(--surface-2); }
.avatar { width:33px; height:33px; border-radius:10px; background:linear-gradient(145deg,#26342c,#151d19); color:var(--accent); display:grid; place-content:center; font-size:11px; font-weight:800; border:1px solid var(--line-strong); }
.user-menu b { display:block; max-width:128px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:10px; }.user-menu small { display:block; color:var(--muted); font-size:9px; margin-top:3px; text-transform:capitalize; }
.main { grid-column:2; min-width:0; }
.topbar { height:68px; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; padding:0 clamp(18px,3vw,38px); position:sticky; top:0; z-index:20; background:rgba(7,9,8,.88); backdrop-filter:blur(16px); }
.topbar-left { display:flex; align-items:center; gap:12px; }.topbar h1 { font-size:15px; letter-spacing:-.02em; margin:0; }.topbar p { margin:3px 0 0; color:var(--muted); font-size:9px; }
.topbar-actions { display:flex; align-items:center; gap:8px; }
.mobile-menu { display:none; }
.content { padding:28px clamp(18px,3vw,38px) 46px; max-width:1600px; margin:0 auto; }
.page-head { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:24px; }.page-head h2 { margin:0 0 7px; font-size:24px; line-height:1.15; letter-spacing:-.04em; font-weight:700; }.page-head p { margin:0; color:var(--muted); line-height:1.55; font-size:11px; }.page-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }

.kpi-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:20px; }
.kpi-card { min-height:126px; border:1px solid var(--line); background:linear-gradient(145deg,rgba(18,23,20,.92),rgba(11,15,13,.92)); border-radius:var(--radius); padding:18px; position:relative; overflow:hidden; }
.kpi-card::after { content:""; position:absolute; inset:auto -35px -55px auto; width:110px; height:110px; border-radius:50%; background:radial-gradient(circle,rgba(92,242,155,.08),transparent 70%); }
.kpi-top { display:flex; justify-content:space-between; align-items:center; color:var(--muted); font-size:10px; }.kpi-icon { width:29px; height:29px; display:grid; place-items:center; border:1px solid var(--line); border-radius:9px; color:var(--accent); background:rgba(92,242,155,.045); }
.kpi-value { margin-top:20px; font-size:30px; letter-spacing:-.05em; font-weight:720; }.kpi-foot { margin-top:7px; color:var(--muted-2); font-size:9px; }
.grid-2 { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr); gap:16px; }.grid-equal { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.panel { border:1px solid var(--line); background:var(--surface); border-radius:var(--radius); min-width:0; }
.panel-head { min-height:58px; padding:0 18px; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; align-items:center; gap:12px; }.panel-head h3 { margin:0; font-size:12px; letter-spacing:-.01em; }.panel-head p { margin:4px 0 0; color:var(--muted); font-size:9px; }.panel-body { padding:18px; }
.empty { min-height:220px; display:grid; place-content:center; justify-items:center; text-align:center; padding:34px; color:var(--muted); }.empty-icon { width:48px; height:48px; border:1px solid var(--line); border-radius:14px; display:grid; place-items:center; margin-bottom:13px; color:var(--muted-2); background:var(--surface-2); }.empty b { color:var(--text); font-size:12px; }.empty p { margin:8px 0 16px; max-width:300px; font-size:10px; line-height:1.6; }
.bars { display:grid; gap:13px; }.bar-row { display:grid; grid-template-columns:110px minmax(0,1fr) 28px; gap:12px; align-items:center; font-size:10px; }.bar-label { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#b8c1bc; }.bar-track { height:6px; border-radius:8px; background:#1b221e; overflow:hidden; }.bar-fill { height:100%; border-radius:8px; background:linear-gradient(90deg,var(--accent-strong),#7df7b0); min-width:3px; }.bar-value { color:var(--muted); text-align:right; }
.activity-list { display:grid; }.activity { display:grid; grid-template-columns:28px minmax(0,1fr) auto; gap:10px; align-items:center; padding:11px 0; border-bottom:1px solid var(--line); }.activity:last-child { border:0; }.activity-icon { width:28px; height:28px; border:1px solid var(--line); border-radius:8px; display:grid; place-content:center; color:var(--accent); }.activity b { display:block; font-size:10px; }.activity span { color:var(--muted); font-size:9px; }.activity time { color:var(--muted-2); font-size:8px; }

.toolbar { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:14px; }.toolbar-group { display:flex; gap:8px; flex-wrap:wrap; }.search { position:relative; min-width:270px; }.search .input { padding-left:38px; }.search .icon { position:absolute; left:12px; top:50%; transform:translateY(-50%); color:var(--muted); }
.table-wrap { overflow:auto; }.data-table { width:100%; border-collapse:collapse; min-width:850px; }.data-table th { padding:12px 15px; text-align:left; color:var(--muted-2); text-transform:uppercase; letter-spacing:.08em; font-size:8px; border-bottom:1px solid var(--line); font-weight:750; }.data-table td { padding:13px 15px; border-bottom:1px solid rgba(35,43,39,.72); font-size:10px; color:#b9c3bd; }.data-table tbody tr { transition:.14s; }.data-table tbody tr:hover { background:rgba(255,255,255,.018); }.data-table tr:last-child td { border-bottom:0; }.table-company { display:flex; align-items:center; gap:10px; }.company-avatar { width:31px; height:31px; border-radius:9px; display:grid; place-content:center; background:#18221d; color:var(--accent); border:1px solid var(--line); font-weight:750; font-size:10px; }.table-company b { display:block; color:var(--text); font-size:10px; max-width:220px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }.table-company small { display:block; color:var(--muted); margin-top:3px; font-size:8px; }.row-actions { display:flex; gap:4px; justify-content:flex-end; }
.badge { min-height:22px; display:inline-flex; align-items:center; gap:6px; padding:0 8px; border:1px solid var(--line); border-radius:8px; background:var(--surface-2); color:#aab4ae; font-size:8px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; white-space:nowrap; }.badge.green { color:var(--accent); border-color:rgba(92,242,155,.16); background:var(--accent-soft); }.badge.yellow { color:var(--warning); border-color:rgba(247,200,106,.17); background:rgba(247,200,106,.08); }.badge.red { color:#ff949e; border-color:rgba(255,112,125,.18); background:rgba(255,112,125,.08); }.badge.blue { color:#94c9ff; border-color:rgba(117,183,255,.18); background:rgba(117,183,255,.08); }.badge.gray { color:var(--muted); }
.score { width:30px; height:30px; display:grid; place-content:center; border-radius:9px; font-size:9px; font-weight:800; border:1px solid var(--line); background:var(--surface-2); }.score.hot,.score.high { color:var(--accent); border-color:rgba(92,242,155,.2); }.score.medium { color:var(--warning); }.score.low { color:var(--muted); }
.pagination { padding:13px 15px; border-top:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; color:var(--muted); font-size:9px; }

.kanban-wrap { overflow-x:auto; padding-bottom:12px; }.kanban { display:flex; gap:12px; min-width:max-content; align-items:flex-start; }.kanban-col { width:274px; border:1px solid var(--line); border-radius:14px; background:#0a0d0c; }.kanban-head { height:48px; padding:0 13px; display:flex; align-items:center; gap:9px; border-bottom:1px solid var(--line); position:sticky; top:68px; background:#0a0d0c; z-index:2; border-radius:14px 14px 0 0; }.kanban-head b { font-size:10px; }.kanban-head span { margin-left:auto; min-width:20px; height:20px; display:grid; place-content:center; border-radius:7px; background:#181e1b; color:var(--muted); font-size:8px; }.kanban-dot { width:6px; height:6px; border-radius:50%; background:var(--accent); }.kanban-body { min-height:470px; padding:9px; display:grid; align-content:start; gap:8px; }.kanban-body.drag-over { background:rgba(92,242,155,.04); }.lead-card { border:1px solid var(--line); border-radius:11px; background:var(--surface-2); padding:13px; cursor:grab; transition:.16s ease; }.lead-card:hover { border-color:#35423b; transform:translateY(-1px); }.lead-card.dragging { opacity:.45; }.lead-card-top { display:flex; justify-content:space-between; gap:10px; }.lead-card h4 { margin:0; font-size:11px; line-height:1.35; }.lead-card .score { width:26px; height:26px; border-radius:8px; flex:0 0 auto; }.lead-card-meta { margin:9px 0; color:var(--muted); font-size:8px; display:flex; gap:6px; align-items:center; overflow:hidden; white-space:nowrap; }.lead-card-foot { border-top:1px solid var(--line); padding-top:10px; display:flex; justify-content:space-between; align-items:center; color:var(--muted-2); font-size:8px; }

.message-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:16px; }.approval-card { border:1px solid var(--line); border-radius:13px; background:var(--surface); padding:16px; display:grid; grid-template-columns:minmax(160px,.25fr) minmax(300px,1fr) auto; gap:18px; align-items:center; margin-bottom:9px; }.approval-company b { display:block; font-size:11px; }.approval-company span { color:var(--muted); font-size:9px; display:block; margin-top:5px; }.approval-text { color:#c6cec9; font-size:10px; line-height:1.6; border-left:1px solid var(--line); padding-left:18px; }.approval-actions { display:flex; gap:5px; }.risk-list { display:grid; gap:10px; }.risk-item { display:flex; align-items:flex-start; gap:10px; padding:11px; border:1px solid var(--line); border-radius:10px; background:var(--surface-2); }.risk-item .icon { color:var(--accent); flex:0 0 auto; }.risk-item b { display:block; font-size:9px; }.risk-item span { color:var(--muted); font-size:8px; line-height:1.45; display:block; margin-top:3px; }

.conversation-shell { min-height:650px; height:calc(100vh - 130px); display:grid; grid-template-columns:310px minmax(380px,1fr) 280px; border:1px solid var(--line); border-radius:16px; overflow:hidden; background:var(--surface); }.conversation-list { border-right:1px solid var(--line); overflow:auto; }.conversation-search { padding:12px; border-bottom:1px solid var(--line); position:sticky; top:0; z-index:2; background:var(--surface); }.conversation-item { padding:14px; display:grid; grid-template-columns:36px minmax(0,1fr); gap:10px; border-bottom:1px solid var(--line); cursor:pointer; }.conversation-item:hover,.conversation-item.active { background:var(--surface-2); }.conversation-item.active { box-shadow:inset 2px 0 var(--accent); }.conversation-item h4 { margin:1px 0 4px; font-size:10px; }.conversation-item p { margin:0; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:8px; }.chat { display:flex; flex-direction:column; min-width:0; background:#090c0b; }.chat-head { height:61px; padding:0 16px; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; }.chat-head h3 { margin:0; font-size:11px; }.chat-head span { display:block; margin-top:4px; color:var(--muted); font-size:8px; }.chat-body { flex:1; overflow:auto; padding:22px; display:flex; flex-direction:column; gap:10px; background-image:radial-gradient(circle at center,rgba(255,255,255,.018) 1px,transparent 1px); background-size:22px 22px; }.bubble { max-width:min(76%,520px); border:1px solid var(--line); border-radius:13px 13px 13px 3px; padding:11px 12px 8px; background:var(--surface-2); font-size:10px; line-height:1.55; }.bubble.outbound { margin-left:auto; border-radius:13px 13px 3px 13px; background:#12321f; border-color:#205036; }.bubble-meta { display:flex; justify-content:flex-end; gap:7px; margin-top:6px; font-size:7px; color:var(--muted); }.chat-compose { padding:12px; border-top:1px solid var(--line); display:flex; gap:8px; background:var(--surface); }.chat-compose .textarea { min-height:44px; max-height:110px; }.contact-panel { border-left:1px solid var(--line); padding:18px; overflow:auto; }.contact-hero { text-align:center; border-bottom:1px solid var(--line); padding-bottom:18px; }.contact-hero .company-avatar { width:52px; height:52px; border-radius:15px; margin:0 auto 11px; font-size:14px; }.contact-hero h3 { margin:0; font-size:12px; }.contact-hero p { margin:5px 0 0; color:var(--muted); font-size:8px; }.contact-list { display:grid; gap:14px; margin-top:18px; }.contact-detail span { color:var(--muted-2); font-size:8px; text-transform:uppercase; letter-spacing:.08em; display:block; }.contact-detail b { font-size:9px; margin-top:4px; display:block; font-weight:550; }.note-box { margin-top:18px; padding-top:18px; border-top:1px solid var(--line); }

.integration-hero { border:1px solid var(--line); border-radius:18px; padding:28px; background:radial-gradient(circle at 90% 10%,rgba(92,242,155,.1),transparent 30%),var(--surface); display:grid; grid-template-columns:minmax(0,1fr) 270px; gap:30px; align-items:center; }.integration-hero h2 { font-size:25px; letter-spacing:-.04em; margin:10px 0; }.integration-hero p { color:var(--muted); line-height:1.7; max-width:620px; font-size:10px; }.integration-status { border:1px solid var(--line); border-radius:14px; background:rgba(8,11,9,.7); padding:18px; }.integration-status-top { display:flex; justify-content:space-between; align-items:center; }.integration-status-code { font-size:34px; font-weight:750; letter-spacing:-.05em; margin:16px 0 3px; }.integration-status small { color:var(--muted); font-size:8px; }.steps { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:16px; }.step { border:1px solid var(--line); border-radius:14px; background:var(--surface); padding:18px; }.step-num { width:28px; height:28px; display:grid; place-content:center; border-radius:9px; color:var(--accent); background:var(--accent-soft); border:1px solid rgba(92,242,155,.14); font-weight:800; font-size:9px; }.step h3 { margin:15px 0 7px; font-size:11px; }.step p { color:var(--muted); font-size:9px; line-height:1.6; margin:0; }
.qr-box { width:280px; height:280px; padding:18px; background:#fff; border-radius:18px; display:grid; place-items:center; margin:auto; }.qr-box img { max-width:100%; max-height:100%; }.warning-box { display:flex; gap:11px; padding:13px; border:1px solid rgba(247,200,106,.17); background:rgba(247,200,106,.06); border-radius:11px; color:#d7bd83; font-size:9px; line-height:1.55; }.warning-box .icon { flex:0 0 auto; color:var(--warning); }

.settings-layout { display:grid; grid-template-columns:190px minmax(0,1fr); gap:16px; }.settings-nav { padding:8px; align-self:start; position:sticky; top:96px; }.settings-tab { width:100%; height:38px; border:0; border-radius:9px; background:transparent; color:var(--muted); padding:0 10px; display:flex; gap:9px; align-items:center; text-align:left; cursor:pointer; font-size:10px; }.settings-tab:hover,.settings-tab.active { color:var(--text); background:var(--surface-3); }.settings-section { padding:20px; }.settings-section h3 { margin:0 0 6px; font-size:13px; }.settings-section > p { margin:0 0 23px; color:var(--muted); font-size:9px; line-height:1.6; }.divider { height:1px; background:var(--line); margin:23px 0; }

.modal-backdrop { position:fixed; inset:0; z-index:100; background:rgba(0,0,0,.74); backdrop-filter:blur(6px); display:grid; place-items:center; padding:18px; animation:fade .16s ease; }.modal { width:min(720px,100%); max-height:min(860px,94vh); overflow:auto; border:1px solid var(--line-strong); background:#0d110f; border-radius:18px; box-shadow:var(--shadow); animation:rise .2s ease; }.modal.sm { width:min(480px,100%); }.modal-head { min-height:65px; padding:0 20px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); position:sticky; top:0; background:rgba(13,17,15,.96); backdrop-filter:blur(12px); z-index:2; }.modal-head h3 { margin:0; font-size:13px; }.modal-head p { margin:4px 0 0; color:var(--muted); font-size:8px; }.modal-body { padding:20px; }.modal-foot { min-height:67px; padding:12px 20px; border-top:1px solid var(--line); display:flex; justify-content:flex-end; gap:8px; position:sticky; bottom:0; background:rgba(13,17,15,.96); backdrop-filter:blur(12px); }
@keyframes fade { from{opacity:0}to{opacity:1} } @keyframes rise { from{opacity:0;transform:translateY(10px) scale(.99)}to{opacity:1;transform:none} }
.toast-root { position:fixed; z-index:200; right:18px; top:18px; display:grid; gap:8px; width:min(370px,calc(100% - 36px)); }.toast { border:1px solid var(--line-strong); border-radius:12px; background:#121814; box-shadow:var(--shadow); padding:13px; display:grid; grid-template-columns:28px minmax(0,1fr); gap:10px; animation:toast-in .24s ease; }.toast-icon { width:28px; height:28px; display:grid; place-content:center; border-radius:8px; background:var(--accent-soft); color:var(--accent); }.toast.error .toast-icon { color:var(--danger); background:rgba(255,112,125,.09); }.toast b { font-size:10px; display:block; }.toast p { margin:4px 0 0; color:var(--muted); font-size:9px; line-height:1.45; } @keyframes toast-in{from{opacity:0;transform:translateX(12px)}to{opacity:1;transform:none}}
.skeleton { background:linear-gradient(90deg,#121714,#1a211d,#121714); background-size:200% 100%; animation:shimmer 1.2s infinite; border-radius:10px; min-height:90px; } @keyframes shimmer { to{background-position:-200% 0} }
.muted { color:var(--muted); }.text-accent { color:var(--accent); }.hidden { display:none!important; }

@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .conversation-shell { grid-template-columns:280px minmax(380px,1fr); }.contact-panel { display:none; }
  .approval-card { grid-template-columns:160px 1fr; }.approval-actions { grid-column:1/-1; justify-content:flex-end; }
}
@media (max-width: 860px) {
  :root { --sidebar: 0px; }
  .app-shell { display:block; }.main { grid-column:auto; }
  .sidebar { width:246px; transform:translateX(-102%); transition:.22s ease; box-shadow:var(--shadow); }.sidebar.open { transform:none; }
  .sidebar-scrim { display:block; position:fixed; inset:0; z-index:25; background:rgba(0,0,0,.55); }
  .mobile-menu { display:inline-grid; }
  .grid-2,.grid-equal,.message-layout { grid-template-columns:1fr; }
  .conversation-shell { height:calc(100vh - 116px); grid-template-columns:1fr; }.conversation-list { border-right:0; }.chat { display:none; }.conversation-shell.chat-open .conversation-list { display:none; }.conversation-shell.chat-open .chat { display:flex; }
  .integration-hero { grid-template-columns:1fr; }.steps { grid-template-columns:1fr; }
  .settings-layout { grid-template-columns:1fr; }.settings-nav { position:static; display:flex; overflow:auto; }.settings-tab { min-width:max-content; }
}
@media (max-width: 640px) {
  .login-page { grid-template-columns:1fr; }.login-panel { min-height:100vh; border:0; padding:24px; }.login-visual { display:none; }.login-box { margin:60px 0; }
  .content { padding-top:20px; }.page-head { flex-direction:column; }.page-actions { justify-content:flex-start; width:100%; }.page-actions .btn { flex:1; }
  .kpi-grid { grid-template-columns:1fr 1fr; gap:9px; }.kpi-card { min-height:112px; padding:14px; }.kpi-value { font-size:25px; }
  .topbar { height:61px; }.topbar-actions .btn span { display:none; }
  .toolbar { display:grid; }.search { min-width:0; width:100%; }.toolbar-group { display:grid; grid-template-columns:1fr 1fr; }
  .approval-card { grid-template-columns:1fr; }.approval-text { border-left:0; padding:12px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }.approval-actions { grid-column:auto; justify-content:flex-start; flex-wrap:wrap; }
  .form-grid { grid-template-columns:1fr; }.field.span-2 { grid-column:auto; }
  .modal { max-height:96vh; }.modal-body { padding:17px; }
  .integration-hero { padding:20px; }.integration-status { min-width:0; }.qr-box { width:230px; height:230px; }
}
