:root {
  color-scheme: light;
  --ink: #343434;
  --muted: #6d6d6d;
  --canvas: #f5f5f4;
  --panel: #ffffff;
  --line: #dededb;
  --nav: #343434;
  --nav-soft: #444444;
  --teal: #f5821f;
  --teal-dark: #d9690e;
  --orange: #4a4a4a;
  --danger: #c43d4b;
  --warning: #a45d05;
  --success: #16784b;
  --shadow: 0 10px 28px rgba(31, 42, 51, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--teal); }
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 4px; color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 238px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow-y: auto; color: #fff; background: var(--nav); border-right: 1px solid #252525; }
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: #fff; border: 1px solid rgba(255,255,255,.28); border-radius: 5px; font-weight: 900; }
.logo-mark { overflow: hidden; }
.logo-mark img { width: 100%; height: 100%; display: block; object-fit: contain; }
.sidebar-brand { min-height: 76px; padding: 16px; border-bottom: 1px solid #505050; }
.sidebar-brand strong, .sidebar-brand small { display: block; }
.sidebar-brand strong { font-size: 17px; }
.sidebar-brand small { margin-top: 2px; color: #c9c9c9; font-size: 11px; }
.nav-list { padding: 12px 9px; display: grid; gap: 3px; }
.nav-item { position: relative; width: 100%; min-height: 39px; padding: 9px 12px 9px 38px; color: #d4d4d4; background: transparent; border: 0; border-radius: 5px; text-align: left; font-size: 13px; font-weight: 650; }
.nav-item::before { content: attr(data-icon); position: absolute; left: 12px; top: 50%; width: 16px; overflow: hidden; transform: translateY(-50%); color: #9f9f9f; font-size: 9px; text-transform: uppercase; }
.nav-item:hover { color: #fff; background: var(--nav-soft); }
.nav-item.active { color: #fff; background: var(--teal); }
.nav-item.active::before { color: #fff4e9; }
.sidebar-user { margin-top: auto; min-height: 68px; padding: 12px; display: grid; grid-template-columns: 34px minmax(0,1fr) 28px; align-items: center; gap: 9px; border-top: 1px solid #505050; }
.sidebar-user strong, .sidebar-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user strong { font-size: 12px; }.sidebar-user small { color: #8f9aa3; font-size: 10px; text-transform: capitalize; }
.sidebar-user a { color: #c7d0d6; text-decoration: none; font-size: 22px; transform: rotate(180deg); }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; }

.main-area { min-width: 0; }
.topbar { position: sticky; z-index: 20; top: 0; height: 76px; padding: 13px 24px; display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.topbar h1 { margin: 0; font-size: 23px; line-height: 1.15; }
.top-actions { margin-left: auto; display: flex; gap: 8px; }
.icon-btn, .notification-btn { width: 38px; height: 38px; display: grid; place-items: center; color: #364152; background: #fff; border: 1px solid var(--line); border-radius: 5px; }
.icon-btn:hover, .notification-btn:hover { border-color: #9ba6af; background: #f8fafb; }
.notification-btn { position: relative; font-size: 10px; color: var(--orange); }
.notification-btn span { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: var(--danger); font-size: 10px; font-weight: 800; }
.mobile-menu { display: none; }
.content { padding: 22px 24px 40px; }

.page-head { margin-bottom: 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-head h2 { margin: 0; font-size: 19px; }.page-head p { margin: 4px 0 0; max-width: 650px; color: var(--muted); font-size: 13px; }
.actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.btn { min-height: 38px; padding: 8px 13px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 5px; font-size: 12px; font-weight: 750; text-decoration: none; }
.btn.primary { color: #fff; background: var(--teal); border-color: var(--teal); }.btn.primary:hover { background: var(--teal-dark); }
.btn.secondary { color: #344054; background: #fff; border-color: var(--line); }.btn.secondary:hover { border-color: #98a2b3; }
.btn.danger { color: var(--danger); background: #fff; border-color: #efc5cb; }.btn.small { min-height: 30px; padding: 5px 9px; font-size: 11px; }.btn.full { width: 100%; }

.metric-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 10px; }
.metric { min-width: 0; padding: 15px; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: 6px; box-shadow: 0 3px 12px rgba(31,42,51,.04); }
.metric:nth-child(3n+2) { border-top-color: var(--orange); }.metric:nth-child(3n) { border-top-color: #d5a12b; }
.metric span { display: block; overflow: hidden; color: var(--muted); font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.metric strong { display: block; margin-top: 7px; font-size: 25px; }
.layout-2 { margin-top: 14px; display: grid; grid-template-columns: minmax(0,1.45fr) minmax(300px,.8fr); gap: 14px; }
.layout-equal { margin-top: 14px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.panel { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.panel-head { min-height: 50px; padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); }
.panel-head h3 { margin: 0; font-size: 14px; }.panel-body { padding: 15px; }

.chart { height: 245px; padding: 16px 8px 5px; display: flex; align-items: stretch; gap: 8px; border-left: 1px solid #e5e8eb; border-bottom: 1px solid #e5e8eb; }
.chart-col { min-width: 0; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.chart-bars { width: 100%; height: 185px; display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.bar { width: min(18px,40%); min-height: 3px; background: var(--teal); border-radius: 3px 3px 0 0; }.bar.alt { background: var(--orange); }
.chart-col small { color: var(--muted); font-size: 10px; }.legend { display: flex; gap: 14px; color: var(--muted); font-size: 11px; }.legend i { width: 9px; height: 9px; display: inline-block; margin-right: 4px; background: var(--teal); }.legend i.alt { background: var(--orange); }

.data-wrap { overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th { padding: 11px 12px; color: #475467; background: #f7f8fa; border-bottom: 1px solid var(--line); text-align: left; font-size: 10px; text-transform: uppercase; white-space: nowrap; }
.data-table td { max-width: 260px; padding: 11px 12px; border-bottom: 1px solid #edf0f2; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }.data-table tbody tr:hover { background: #fbfcfc; }
.cell-title { display: block; color: #1d2939; font-weight: 750; }.cell-sub { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.table-actions { display: flex; gap: 5px; justify-content: flex-end; }
.badge { display: inline-flex; min-height: 23px; padding: 3px 8px; align-items: center; border: 1px solid #d9dee3; border-radius: 12px; color: #475467; background: #f7f8fa; font-size: 10px; font-weight: 800; text-transform: capitalize; white-space: nowrap; }
.badge.active,.badge.approved,.badge.connected,.badge.completed,.badge.done,.badge.resolved,.badge.success { color: #0f6943; background: #eaf7f0; border-color: #b9e2ca; }
.badge.high,.badge.urgent,.badge.rejected,.badge.error,.badge.danger,.badge.critical { color: #a22d39; background: #fff0f1; border-color: #f1c5ca; }
.badge.medium,.badge.review,.badge.in_progress,.badge.warning,.badge.pending { color: #8b5309; background: #fff7e8; border-color: #f0d5a7; }
.badge.planned,.badge.onboarding,.badge.info { color: #315f9a; background: #edf4ff; border-color: #c8d8ef; }
.progress { width: 130px; max-width: 100%; }.progress-track { height: 6px; overflow: hidden; background: #e7eaed; border-radius: 3px; }.progress-fill { height: 100%; background: var(--teal); }.progress small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }

.card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.item-card { min-width: 0; padding: 15px; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 5px 18px rgba(31,42,51,.05); }
.item-card h3 { margin: 0; font-size: 14px; }.item-card p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.card-top { display: flex; justify-content: space-between; gap: 8px; }.card-footer { margin-top: 13px; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #edf0f2; }
.list { display: grid; gap: 8px; }.list-item { padding: 11px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; border: 1px solid #e6e9ec; border-radius: 5px; }.list-item strong { display: block; font-size: 12px; }.list-item p { margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.empty-state,.loading-state { min-height: 260px; padding: 35px; display: grid; place-items: center; align-content: center; gap: 10px; color: var(--muted); text-align: center; background: #fff; border: 1px dashed #cfd5da; border-radius: 6px; }
.spinner { width: 26px; height: 26px; border: 3px solid #dce3e7; border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }

.modal { width: min(720px,calc(100% - 24px)); padding: 0; color: var(--ink); background: transparent; border: 0; }.modal::backdrop { background: rgba(15,23,32,.68); backdrop-filter: blur(2px); }
.modal-card { max-height: calc(100vh - 40px); overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 25px 70px rgba(0,0,0,.28); }
.modal-card.wide { width: min(820px,100%); }.modal-card header,.modal-card footer { padding: 14px 17px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }.modal-card footer { justify-content: flex-end; border-top: 1px solid var(--line); border-bottom: 0; }.modal-card h2 { margin: 0; font-size: 18px; }
.form-grid { padding: 17px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }.form-grid.one { grid-template-columns: 1fr; padding: 0; }.form-grid label { display: grid; gap: 6px; color: #344054; font-size: 11px; font-weight: 750; }.form-grid label.wide { grid-column: 1/-1; }
input,select,textarea { width: 100%; min-height: 39px; padding: 8px 10px; color: #1d2939; background: #fff; border: 1px solid #cfd5da; border-radius: 5px; outline: none; }
input:focus,select:focus,textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(245,130,31,.14); } textarea { min-height: 95px; resize: vertical; }.check { display: flex!important; grid-template-columns: 18px 1fr; align-items: center; }.check input { width: 18px; min-height: auto; accent-color: var(--teal); }

.auth-body { background: #efefed; }.auth-shell { min-height: 100vh; padding: 28px 16px; display: grid; place-items: center; }.auth-card { width: min(430px,100%); padding: 25px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: 7px; box-shadow: 0 22px 55px rgba(31,42,51,.13); }.auth-card.setup-card { width: min(520px,100%); }.auth-card h1 { margin: 3px 0 8px; font-size: 25px; }.auth-card .muted { margin: 14px 0 20px; font-size: 13px; }.auth-foot { margin: 18px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.auth-logo { width: 126px; height: 126px; margin: 0 auto 18px; display: grid; place-items: center; }
.auth-logo img { width: 100%; height: 100%; object-fit: contain; }
.auth-card > .eyebrow, .auth-card > div:not(.auth-logo) { text-align: center; }

.brand-splash { position: fixed; z-index: 9999; inset: 0; display: grid; place-items: center; align-content: center; gap: 18px; background: #fff; transition: opacity .42s ease, visibility .42s ease; }
.brand-splash.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-logo-wrap { width: clamp(190px, 28vw, 340px); aspect-ratio: 1; display: grid; place-items: center; animation: brand-arrive 1.25s cubic-bezier(.2,.8,.2,1) both; }
.splash-logo-wrap img { width: 100%; height: 100%; display: block; object-fit: contain; }
.brand-splash p { margin: 0; color: #5e5e5e; font-size: 12px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; animation: brand-caption .8s .35s ease both; }
@keyframes brand-arrive { 0% { opacity: 0; transform: translateY(16px) scale(.78); filter: blur(10px); } 55% { opacity: 1; transform: translateY(0) scale(1.04); filter: blur(0); } 100% { transform: scale(1); } }
@keyframes brand-caption { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.integration-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(300px,.8fr); gap: 14px; }
.integration-status { display: flex; align-items: center; gap: 10px; }
.status-dot { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: #98a2b3; }
.status-dot.connected { background: var(--success); box-shadow: 0 0 0 4px rgba(22,120,75,.12); }
.secret-note { margin: 0; padding: 10px 12px; color: #5f4a22; background: #fff8e9; border: 1px solid #efd8ae; border-radius: 5px; font-size: 11px; line-height: 1.5; }
.webhook-value { padding: 10px; overflow-wrap: anywhere; color: #414141; background: #f5f5f3; border: 1px solid var(--line); border-radius: 5px; font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; }
.alert { margin: 14px 0; padding: 11px 12px; border: 1px solid; border-radius: 5px; font-size: 12px; line-height: 1.5; }.alert.success { color: var(--success); background: #edf9f2; border-color: #b8e1c9; }.alert.danger { color: var(--danger); background: #fff1f2; border-color: #f1c8cc; }.alert.info { color: #315f9a; background: #edf4ff; border-color: #c8d8ef; }.alert.warning { color: var(--warning); background: #fff8e9; border-color: #efd8ae; }
.toast-region { position: fixed; z-index: 100; top: 16px; right: 16px; width: min(360px,calc(100% - 32px)); display: grid; gap: 8px; }.toast { padding: 12px 14px; color: #fff; background: #23313c; border-left: 4px solid var(--teal); border-radius: 5px; box-shadow: 0 14px 35px rgba(0,0,0,.2); font-size: 12px; }.toast.error { border-left-color: var(--danger); }
.ai-answer { padding: 16px; color: #25313b; background: #f6fbfa; border: 1px solid #bfdfdb; border-left: 4px solid var(--teal); border-radius: 5px; font-size: 13px; line-height: 1.65; white-space: pre-wrap; }.ticket-thread { display: grid; gap: 8px; }.message { max-width: 82%; padding: 10px 12px; background: #f1f4f6; border-radius: 5px; font-size: 12px; }.message.mine { margin-left: auto; color: #fff; background: var(--teal); }.message small { display: block; margin-top: 5px; opacity: .7; }

.integration-subhead { padding: 11px 0 3px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); }
.integration-subhead strong { color: #1f2933; font-size: 12px; }.integration-subhead span { color: var(--muted); font-size: 10px; }
.auth-foot.compact { margin-top: 8px; font-size: 10px; }

.workspace-picker { min-width: 220px; display: grid; grid-template-columns: auto minmax(145px,1fr); align-items: center; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 750; }
.workspace-picker select { min-height: 38px; }
.provider-grid { margin-bottom: 14px; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; }
.provider-card { min-width: 0; padding: 13px; display: grid; grid-template-columns: 36px minmax(0,1fr); align-items: start; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.provider-content { min-width: 0; }.provider-content h3 { margin: 0; font-size: 12px; }.provider-content p { min-height: 46px; margin: 7px 0 10px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.provider-content .btn { width: 100%; min-height: 33px; padding: 6px 8px; font-size: 10px; }
.provider-mark { width: 36px; height: 36px; display: grid; place-items: center; color: #fff; background: #475467; border-radius: 5px; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.provider-mark.meta { background: #1967d2; }.provider-mark.linkedin { background: #0a66c2; }.provider-mark.google { color: #202124; background: #fff; border: 1px solid #d5d9de; }.provider-mark.tiktok { background: #161616; }.provider-mark.x { background: #1f2933; }
.provider-mark.mini { width: 30px; height: 30px; font-size: 9px; }
.provider-settings { margin-top: 9px; border-top: 1px solid #edf0f2; }.provider-settings summary { padding: 8px 0 0; cursor: pointer; color: #475467; font-size: 10px; font-weight: 750; }
.provider-settings .form-grid { padding: 9px 0 0; gap: 8px; }
.social-layout { display: grid; grid-template-columns: minmax(310px,.75fr) minmax(0,1.25fr); gap: 14px; }
.connection-list { display: grid; }.connection-row { min-height: 56px; padding: 10px 12px; display: grid; grid-template-columns: 18px 30px minmax(0,1fr) auto auto; align-items: center; gap: 9px; border-bottom: 1px solid #edf0f2; font-size: 11px; }
.connection-row:last-child { border-bottom: 0; }.connection-row input { width: 16px; min-height: auto; accent-color: var(--teal); }.connection-row strong,.connection-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.connection-row small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.mini-btn { width: 28px; height: 28px; font-size: 17px; }
.connection-actions { display: flex; gap: 4px; }

.chat-shell { height: calc(100vh - 184px); min-height: 560px; display: grid; grid-template-columns: 265px minmax(0,1fr); overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.chat-sidebar { min-width: 0; display: flex; flex-direction: column; background: #f6f7f7; border-right: 1px solid var(--line); }
.chat-new-form { padding: 12px; display: grid; gap: 10px; border-bottom: 1px solid var(--line); }.chat-new-form label { display: grid; gap: 5px; color: #475467; font-size: 10px; font-weight: 750; }.chat-new-form select { min-height: 35px; font-size: 11px; }
.chat-history { padding: 7px; display: grid; align-content: start; gap: 3px; overflow: auto; }
.chat-history-item { width: 100%; min-height: 52px; padding: 9px 10px; overflow: hidden; color: #344054; background: transparent; border: 1px solid transparent; border-radius: 5px; text-align: left; }
.chat-history-item:hover { background: #fff; border-color: #e1e5e8; }.chat-history-item.active { color: #fff; background: #2d3439; }.chat-history-item strong,.chat-history-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.chat-history-item strong { font-size: 11px; }.chat-history-item small { margin-top: 4px; color: inherit; opacity: .68; font-size: 9px; }
.chat-main { min-width: 0; display: grid; grid-template-rows: minmax(0,1fr) auto; background: #fff; }
.chat-messages { padding: 30px max(22px,8%); overflow-y: auto; }
.chat-message { max-width: 820px; margin: 0 auto 26px; display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 13px; align-items: start; }
.chat-avatar { width: 32px; height: 32px; display: grid; place-items: center; color: #fff; background: #374047; border-radius: 5px; font-size: 10px; font-weight: 900; }.chat-message.assistant .chat-avatar { background: var(--teal); }
.chat-role { margin-bottom: 6px; color: #20272d; font-size: 11px; font-weight: 850; }.chat-copy { overflow-wrap: anywhere; color: #29343d; font-size: 13px; line-height: 1.72; }.chat-message small { display: block; margin-top: 8px; color: #98a2b3; font-size: 9px; }
.chat-welcome { min-height: 100%; display: grid; place-items: center; align-content: center; text-align: center; }.chat-welcome h2 { max-width: 560px; margin: 14px 0 7px; font-size: 22px; }.chat-welcome p { margin: 0; color: var(--muted); font-size: 12px; }.chat-logo { width: 48px; height: 48px; display: grid; place-items: center; color: #fff; background: var(--teal); border-radius: 7px; font-weight: 900; }
.prompt-grid { width: min(620px,100%); margin-top: 22px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }.prompt-grid button { min-height: 66px; padding: 10px; color: #344054; background: #fff; border: 1px solid var(--line); border-radius: 5px; font-size: 10px; line-height: 1.4; }.prompt-grid button:hover { border-color: var(--teal); background: #fffaf5; }
.chat-composer { width: min(850px,calc(100% - 36px)); margin: 0 auto 18px; padding: 7px 7px 7px 14px; display: grid; grid-template-columns: minmax(0,1fr) 38px; align-items: end; gap: 8px; background: #fff; border: 1px solid #bfc6cb; border-radius: 7px; box-shadow: 0 8px 25px rgba(31,42,51,.09); }.chat-composer:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(245,130,31,.13); }
.chat-composer textarea { min-height: 38px; max-height: 150px; padding: 9px 0; border: 0; box-shadow: none; resize: none; }.chat-composer textarea:focus { box-shadow: none; }.chat-composer button { width: 38px; height: 38px; color: #fff; background: var(--teal); border: 0; border-radius: 5px; font-size: 18px; font-weight: 900; }.chat-composer button:disabled { opacity: .5; }
.chat-empty-action { padding: 20px; color: var(--muted); text-align: center; font-size: 11px; }.chat-thinking { max-width: 820px; margin: 0 auto; padding-left: 45px; }.chat-thinking span { width: 6px; height: 6px; margin-right: 4px; display: inline-block; background: #98a2b3; border-radius: 50%; animation: chat-dot 1s infinite alternate; }.chat-thinking span:nth-child(2) { animation-delay: .18s; }.chat-thinking span:nth-child(3) { animation-delay: .36s; } @keyframes chat-dot { to { opacity: .25; transform: translateY(-3px); } }
.ai-settings { margin-top: 14px; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }.ai-settings summary { min-height: 54px; padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }.ai-settings summary::-webkit-details-marker { display: none; }.ai-settings summary strong,.ai-settings summary small { display: block; }.ai-settings summary strong { font-size: 12px; }.ai-settings summary small { margin-top: 3px; color: var(--muted); font-size: 10px; }.ai-settings form { border-top: 1px solid var(--line); }

.login-roster { margin-top: auto; border-top: 1px solid #505050; }
.login-roster-toggle { width: 100%; min-height: 46px; padding: 9px 12px; display: flex; align-items: center; justify-content: space-between; color: #fff; background: transparent; border: 0; text-align: left; }
.login-roster-toggle strong,.login-roster-toggle small { display: block; }.login-roster-toggle strong { font-size: 11px; }.login-roster-toggle small { margin-top: 2px; color: #a9b0b5; font-size: 9px; }
.login-roster-list { display: none; max-height: 190px; padding: 3px 9px 9px; overflow-y: auto; }.login-roster.open .login-roster-list { display: grid; gap: 3px; }
.login-roster-row { min-width: 0; padding: 7px 8px; display: grid; grid-template-columns: 8px minmax(0,1fr); align-items: center; gap: 7px; background: #2b2b2b; border: 1px solid #474747; border-radius: 4px; }
.login-roster-row strong,.login-roster-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.login-roster-row strong { font-size: 10px; }.login-roster-row small { margin-top: 2px; color: #aeb5ba; font-size: 8px; }
.presence-dot { width: 7px; height: 7px; border-radius: 50%; background: #777; }.presence-dot.online { background: #39b777; box-shadow: 0 0 0 3px rgba(57,183,119,.13); }
.sidebar-user { margin-top: 0; }

.social-intelligence-hero { margin-bottom: 12px; padding: 16px; display: grid; grid-template-columns: 104px minmax(220px,1fr) minmax(470px,.9fr); align-items: center; gap: 18px; color: #fff; background: #303234; border: 1px solid #202224; border-left: 5px solid var(--teal); border-radius: 6px; box-shadow: var(--shadow); }
.social-intelligence-hero h2 { margin: 2px 0 6px; font-size: 20px; }.social-intelligence-hero p:not(.eyebrow) { margin: 0; color: #c9cdd0; font-size: 11px; line-height: 1.5; }
.health-score { width: 88px; aspect-ratio: 1; display: grid; place-items: center; align-content: center; color: #fff; background: #1f2224; border: 6px solid var(--teal); border-radius: 50%; }
.health-score strong { font-size: 26px; line-height: 1; }.health-score span { margin-top: 5px; font-size: 8px; text-transform: uppercase; }.health-score.compact { width: 42px; border-width: 3px; font-size: 12px; font-weight: 850; }
.social-period-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: end; }.social-period-form label { display: grid; gap: 4px; color: #d8dcdf; font-size: 9px; font-weight: 750; }.social-period-form input { min-height: 35px; }.social-period-form .check { color: #fff; }.social-period-form .btn { width: 100%; }
.social-kpis { margin-bottom: 14px; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; }.social-kpis article { min-width: 0; padding: 13px; background: #fff; border: 1px solid var(--line); border-radius: 5px; }.social-kpis span { display: block; color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; }.social-kpis strong { display: block; margin-top: 5px; overflow: hidden; font-size: 21px; text-overflow: ellipsis; white-space: nowrap; }
.metric-change { display: block; margin-top: 5px; font-size: 8px; font-weight: 750; }.metric-change.up { color: var(--success); }.metric-change.down { color: var(--danger); }.metric-change.neutral { color: var(--muted); }
.intelligence-grid { margin-bottom: 14px; display: grid; grid-template-columns: minmax(0,1.45fr) minmax(320px,.75fr); gap: 14px; }.compact-table { font-size: 10px; }.compact-table td,.compact-table th { padding: 9px; }
.insight-list { display: grid; }.insight-item { padding: 12px 14px; border-bottom: 1px solid #edf0f2; }.insight-item:last-child { border-bottom: 0; }.insight-item > div { display: flex; align-items: center; gap: 8px; }.insight-item h4 { margin: 0; font-size: 12px; }.insight-item p { margin: 7px 0 4px; color: var(--muted); font-size: 10px; }.insight-item > strong { color: #344054; font-size: 10px; line-height: 1.45; }
.data-gaps { padding: 12px 14px; color: #77420a; background: #fff8e9; }.data-gaps strong { font-size: 10px; }.data-gaps ul { margin: 6px 0 0; padding-left: 17px; font-size: 9px; line-height: 1.55; }
.social-report { margin-bottom: 18px; }.social-report .panel-head p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }.report-copy { max-height: 360px; overflow-y: auto; font-size: 11px; line-height: 1.65; }.section-heading { margin: 20px 0 10px; display: flex; justify-content: space-between; }.section-heading h2 { margin: 0; font-size: 17px; }
.field-error { margin: -3px 0 0!important; min-height: auto!important; color: var(--danger)!important; font-size: 9px!important; }
.tag-field { margin: 0; padding: 0; grid-column: 1/-1; border: 0; }.tag-field legend { margin-bottom: 6px; color: #344054; font-size: 11px; font-weight: 750; }.tag-picker { display: flex; flex-wrap: wrap; gap: 6px; }.tag-choice { min-height: 34px; padding: 6px 9px; display: inline-flex!important; grid-template-columns: 16px auto!important; align-items: center; gap: 6px!important; background: #f7f8f8; border: 1px solid var(--line); border-radius: 4px; }.tag-choice input { width: 15px; min-height: auto; accent-color: var(--teal); }.action-check { padding: 10px 11px; background: #fff8e9; border: 1px solid #efd8ae; border-radius: 5px; }

@media (max-width: 1180px) { .metric-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }.card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.social-intelligence-hero { grid-template-columns: 90px minmax(0,1fr); }.social-period-form { grid-column: 1/-1; }.social-kpis { grid-template-columns: repeat(3,minmax(0,1fr)); }.intelligence-grid { grid-template-columns: 1fr; } }
@media (max-width: 1320px) { .provider-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 820px) {
  .app-shell { grid-template-columns: 1fr; }.sidebar { position: fixed; z-index: 50; left: -250px; width: 238px; transition: left .2s ease; box-shadow: 15px 0 35px rgba(0,0,0,.2); }.sidebar.open { left: 0; }
  .mobile-menu { display: grid; }.topbar { height: 68px; padding: 10px 14px; }.topbar h1 { font-size: 19px; }.content { padding: 16px 13px 32px; }.layout-2,.layout-equal,.integration-grid,.social-layout { grid-template-columns: 1fr; }.page-head { align-items: flex-start; flex-direction: column; }.page-head .actions { width: 100%; justify-content: flex-start; }.provider-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.chat-shell { height: auto; min-height: 680px; grid-template-columns: 1fr; grid-template-rows: auto minmax(0,1fr); }.chat-sidebar { max-height: 260px; border-right: 0; border-bottom: 1px solid var(--line); }.chat-new-form { grid-template-columns: 1fr 1fr; }.chat-new-form .btn { grid-column: 1/-1; }.chat-main { min-height: 520px; }.chat-messages { padding: 22px 16px; }.social-intelligence-hero { grid-template-columns: 76px minmax(0,1fr); }.health-score { width: 70px; }.health-score strong { font-size: 21px; }
}
@media (max-width: 600px) { .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.metric strong { font-size: 21px; }.card-grid,.provider-grid { grid-template-columns: 1fr; }.form-grid { grid-template-columns: 1fr; }.form-grid label.wide { grid-column: auto; }.data-table td,.data-table th { padding: 9px 10px; }.auth-card { padding: 20px; }.workspace-picker { width: 100%; grid-template-columns: 1fr; }.chat-new-form { grid-template-columns: 1fr; }.chat-new-form .btn { grid-column: auto; }.prompt-grid { grid-template-columns: 1fr; }.chat-composer { width: calc(100% - 20px); }.chat-message { grid-template-columns: 28px minmax(0,1fr); gap: 9px; }.chat-avatar { width: 28px; height: 28px; }.connection-row { grid-template-columns: 16px 28px minmax(0,1fr) auto; }.connection-row .badge { display: none; }.social-intelligence-hero { grid-template-columns: 1fr; }.health-score { width: 72px; }.social-period-form { grid-template-columns: 1fr; }.social-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (prefers-reduced-motion: reduce) { .splash-logo-wrap,.brand-splash p { animation: none; }.brand-splash { transition-duration: .1s; } }
