:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --brand: #183d39;
  --brand-2: #2d5a50;
  --accent: #c7a872;
  --ink: #1d2925;
  --muted: #6e7b74;
  --line: #e3e8e2;
  --surface: #fff;
  --wash: #f4f5f1;
  --danger: #9d3d35;
  --shadow: 0 18px 50px #1d312414;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--wash); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); background: var(--wash); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid #4d8980; outline-offset: 2px; }
.boot { min-height: 100dvh; display: grid; place-content: center; justify-items: center; color: var(--muted); gap: 14px; }
.boot p { margin: 0; font-size: 13px; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 15px; color: #fff; background: var(--brand); font-weight: 800; font-size: 21px; }
.auth-wrap { min-height: 100dvh; display: grid; grid-template-columns: minmax(280px, 1.1fr) minmax(360px, .9fr); background: var(--surface); }
.auth-story { min-height: 100dvh; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(30px, 7vw, 90px); color: #f7f6f0; background: radial-gradient(ellipse at 13% 13%, #47746b 0, transparent 37%), radial-gradient(ellipse at 88% 86%, #c7a87255 0, transparent 38%), linear-gradient(145deg, #102d2a, #183d39 56%, #285348); }
.auth-story::after { content: ""; position: absolute; width: 460px; height: 460px; right: -220px; bottom: -230px; border: 1px solid #ffffff27; border-radius: 50%; box-shadow: 0 0 0 45px #ffffff09, 0 0 0 92px #ffffff06; }
.auth-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.auth-brand .brand-mark { color: #fff; background: #ffffff1c; border: 1px solid #ffffff31; }
.auth-brand strong { font-size: 16px; letter-spacing: .015em; }
.auth-brand small { display: block; margin-top: 2px; color: #c6d2ca; font-size: 11px; font-weight: 500; }
.story-copy { position: relative; z-index: 1; max-width: 580px; }
.eyebrow { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.story-copy h1 { max-width: 540px; margin: 16px 0; font-size: clamp(36px, 5vw, 66px); line-height: 1.01; letter-spacing: -.05em; font-weight: 650; }
.story-copy p { max-width: 420px; color: #cfdbd4; font-size: 15px; line-height: 1.7; }
.story-footer { position: relative; z-index: 1; color: #c3d0c8; font-size: 11px; }
.auth-panel { display: grid; align-content: center; padding: clamp(24px, 6vw, 76px); }
.auth-panel-inner { width: min(100%, 420px); margin: auto; }
.auth-panel h2 { margin: 0 0 8px; font-size: 30px; letter-spacing: -.045em; }
.sub { margin: 0 0 24px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.stack { display: grid; gap: 15px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { color: #35433c; font-size: 12px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid #d9e0d9; border-radius: 11px; color: var(--ink); background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 102px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #6c968b; box-shadow: 0 0 0 3px #183d3915; }
.field-help { color: var(--muted); font-size: 11px; line-height: 1.5; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 9px 13px; border: 1px solid transparent; border-radius: 11px; font-size: 12px; font-weight: 700; transition: transform .12s, background .12s, border-color .12s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { cursor: wait; opacity: .6; }
.btn-primary { color: #fff; background: var(--brand); }
.btn-primary:hover { background: var(--brand-2); }
.btn-secondary { color: var(--ink); border-color: var(--line); background: #fff; }
.btn-secondary:hover { background: #f8faf7; border-color: #becbc1; }
.btn-quiet { color: var(--muted); background: transparent; }
.btn-danger { color: var(--danger); border-color: #f0d8d5; background: #fff5f3; }
.btn-block { width: 100%; min-height: 44px; }
.btn-sm { min-height: 31px; padding: 6px 9px; border-radius: 9px; font-size: 10px; }
.link-btn { padding: 0; border: 0; color: var(--brand-2); background: transparent; font-size: 12px; font-weight: 700; }
.auth-links { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 19px; }
.alert { padding: 12px 14px; border: 1px solid #d8e3dc; border-radius: 12px; color: #3e5a4d; background: #f0f6f1; font-size: 12px; line-height: 1.55; }
.alert.warn { color: #76592f; border-color: #f0e1c6; background: #fff8ed; }
.alert.error { color: #963c34; border-color: #f1d6d2; background: #fff3f1; }
.app-shell { min-height: 100dvh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; z-index: 5; display: flex; flex-direction: column; height: 100dvh; padding: 22px 14px 15px; color: #edf2ee; background: var(--brand); }
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 2px 10px 26px; }
.sidebar-brand .brand-mark { width: 38px; height: 38px; color: #fff; background: #ffffff1d; font-size: 18px; }
.sidebar-brand strong { font-size: 14px; line-height: 1.2; }
.sidebar-brand small { display: block; margin-top: 4px; color: #bfd0c6; font-size: 10px; }
.nav-section { padding: 10px 11px 7px; color: #a9beb3; font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.nav-list { display: grid; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 11px; border: 0; border-radius: 10px; color: #d6e0da; background: transparent; text-align: left; font-size: 12px; }
.nav-item:hover { background: #ffffff10; }
.nav-item.active { color: #fff; background: #ffffff19; font-weight: 750; }
.nav-icon { width: 18px; color: var(--accent); text-align: center; font-size: 14px; }
.nav-count { min-width: 19px; margin-left: auto; padding: 2px 5px; border-radius: 99px; color: #173b35; background: var(--accent); text-align: center; font-size: 9px; font-weight: 850; }
.sidebar-bottom { margin-top: auto; padding: 13px 7px 0; border-top: 1px solid #ffffff20; }
.user-mini { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 7px 4px 11px; }
.avatar { display: grid; place-items: center; flex: none; width: 33px; height: 33px; border-radius: 11px; color: #fff; background: #ffffff21; font-size: 11px; font-weight: 800; }
.user-mini-name { overflow: hidden; color: #fff; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.user-mini-role { margin-top: 3px; color: #bfd0c6; font-size: 9px; }
.sidebar-bottom > .btn { width: 100%; color: #d9e2dc; }
.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; min-height: 74px; padding: 10px clamp(16px, 4vw, 48px); border-bottom: 1px solid var(--line); background: #ffffffed; backdrop-filter: blur(15px); }
.topbar-title { min-width: 0; }
.topbar-title h1 { overflow: hidden; margin: 0; font-size: 17px; letter-spacing: -.03em; text-overflow: ellipsis; white-space: nowrap; }
.topbar-title p { overflow: hidden; margin: 4px 0 0; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #fff; }
.icon-btn:hover { background: var(--wash); }
.unread-dot { position: absolute; top: 6px; right: 7px; width: 7px; height: 7px; border: 1px solid #fff; border-radius: 50%; background: #d36d51; }
.content { width: min(100%, 1480px); margin: 0 auto; padding: clamp(18px, 3.4vw, 42px); padding-bottom: max(34px, env(safe-area-inset-bottom)); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 21px; }
.page-head-copy { min-width: 0; }
.page-head h2 { margin: 0; font-size: 23px; letter-spacing: -.04em; }
.page-head p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.back-link { padding: 0; border: 0; color: var(--brand-2); background: transparent; font-size: 11px; font-weight: 750; }
.grid { display: grid; gap: 15px; }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.stat-card, .panel, .workspace-card, .plan-card, .setting-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 2px 12px #1c332808; }
.stat-card { position: relative; min-height: 112px; padding: 17px; overflow: hidden; }
.stat-label { color: var(--muted); font-size: 11px; font-weight: 650; }
.stat-value { margin-top: 13px; font-size: 28px; font-weight: 720; letter-spacing: -.045em; }
.stat-note { margin-top: 4px; color: var(--muted); font-size: 10px; }
.stat-mark { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 11px; color: var(--brand); background: #eef3ed; font-size: 13px; font-weight: 850; }
.two-col { grid-template-columns: minmax(0, 1.2fr) minmax(270px, .8fr); }
.panel { padding: 18px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.panel-head h3 { margin: 0; font-size: 13px; }
.panel-head p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.list { display: grid; }
.list-row { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 11px 0; border-bottom: 1px solid #edf0ed; }
.list-row:last-child { border-bottom: 0; }
.list-icon { display: grid; place-items: center; flex: none; width: 33px; height: 33px; border-radius: 10px; color: var(--brand); background: #eff4ef; font-size: 10px; font-weight: 850; }
.list-copy { flex: 1; min-width: 0; }
.list-copy strong { display: block; overflow: hidden; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.list-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.list-right { color: var(--muted); font-size: 9px; white-space: nowrap; }
.chart-bars { display: flex; align-items: flex-end; gap: 10px; min-height: 160px; padding: 10px 4px 0; border-bottom: 1px solid var(--line); }
.chart-col { display: grid; flex: 1; justify-items: center; align-items: end; gap: 7px; height: 145px; }
.chart-bar-wrap { display: flex; align-items: flex-end; width: min(100%, 36px); height: 112px; }
.chart-bar { width: 100%; min-height: 3px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #7eaa9e, var(--brand-2)); }
.chart-label { color: var(--muted); font-size: 8px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.data-table { width: 100%; min-width: 700px; border-collapse: collapse; text-align: left; }
.data-table th { padding: 11px 12px; border-bottom: 1px solid var(--line); color: var(--muted); background: #f8faf7; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.data-table td { padding: 11px 12px; border-bottom: 1px solid #edf0ed; font-size: 11px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.primary-cell { font-weight: 750; }
.secondary-cell { margin-top: 3px; color: var(--muted); font-size: 9px; }
.table-actions { display: flex; flex-wrap: wrap; gap: 5px; white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 99px; color: #406353; background: #eef4ef; font-size: 9px; font-weight: 800; text-transform: capitalize; white-space: nowrap; }
.pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill.demo, .pill.trial, .pill.pending { color: #8a6935; background: #fbf4e8; }
.pill.paused, .pill.archived, .pill.denied, .pill.cancelled, .pill.suspended { color: #9c4941; background: #f8ecea; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 13px; }
.filters input, .filters select { min-width: min(190px, 100%); padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; font-size: 11px; }
.subtabs { display: flex; gap: 5px; width: max-content; max-width: 100%; margin-bottom: 14px; padding: 4px; border-radius: 11px; background: #edf1ed; }
.subtab { padding: 7px 10px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 700; }
.subtab.active { color: var(--ink); background: #fff; box-shadow: 0 1px 3px #18291e14; }
.feature-list { display: grid; gap: 8px; }
.feature-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.feature-row strong { font-size: 11px; }
.feature-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.switch { appearance: none; position: relative; flex: none; width: 38px; height: 22px; margin: 0; border: 0; border-radius: 99px; background: #d5ddd7; transition: background .15s; }
.switch::before { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0002; transition: transform .15s; }
.switch:checked { background: var(--brand-2); }
.switch:checked::before { transform: translateX(16px); }
.plan-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.plan-card { padding: 18px; }
.plan-card h3 { margin: 0; font-size: 15px; }
.plan-price { margin: 16px 0 4px; font-size: 24px; font-weight: 750; letter-spacing: -.045em; }
.plan-price small { color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: 0; }
.plan-feature { padding: 3px 0; color: var(--muted); font-size: 10px; }
.plan-feature.enabled { color: #356054; }
.workspace-card { padding: 17px; }
.workspace-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.workspace-card h3 { margin: 0; font-size: 14px; }
.workspace-card p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.workspace-card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.brand-preview { display: flex; flex-direction: column; justify-content: space-between; min-height: 126px; padding: 19px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--preview-primary, var(--brand)), var(--preview-accent, var(--accent))); }
.brand-preview strong { font-size: 19px; }
.brand-preview small { opacity: .84; }
.conversation { display: flex; flex-direction: column; gap: 10px; min-height: 180px; max-height: 48vh; overflow: auto; padding: 5px; }
.bubble { align-self: flex-start; max-width: min(82%, 600px); padding: 10px 12px 8px; border-radius: 13px 13px 13px 4px; color: var(--ink); background: #edf2ed; overflow-wrap: anywhere; white-space: pre-wrap; font-size: 11px; line-height: 1.5; }
.bubble.mine { align-self: flex-end; border-radius: 13px 13px 4px 13px; color: #fff; background: var(--brand); }
.bubble-meta { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 4px; opacity: .7; font-size: 8px; }
.compose { display: flex; align-items: flex-end; gap: 8px; margin-top: 10px; }
.compose textarea { flex: 1; min-height: 44px; max-height: 130px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; resize: vertical; font-size: 11px; }
.empty { padding: 26px 16px; border: 1px dashed #d5dfd7; border-radius: 14px; color: var(--muted); background: #fbfcfa; text-align: center; }
.empty strong { display: block; margin-bottom: 5px; color: #46584e; font-size: 12px; }
.empty p { max-width: 480px; margin: 0 auto; font-size: 10px; line-height: 1.55; }
.request-card { margin-bottom: 9px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.request-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.request-top h3 { margin: 0; font-size: 12px; }
.request-top p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.request-data { margin-top: 11px; color: #52635a; font-size: 10px; line-height: 1.55; overflow-wrap: anywhere; }
.request-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.setting-card { padding: 16px; }
.setting-card h3 { margin: 0 0 5px; font-size: 12px; }
.setting-card > p { margin: 0 0 14px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.modal-backdrop { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom)); background: #14251fbd; }
.modal { width: min(100%, 580px); max-height: min(90dvh, 850px); overflow: auto; border-radius: 18px; background: #fff; box-shadow: 0 24px 80px #07171055; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 17px 19px 12px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 15px; }
.modal-close { border: 0; color: var(--muted); background: transparent; font-size: 22px; line-height: 1; }
.modal-body { padding: 16px 19px 19px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 7px; padding: 0 19px 17px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check-option { display: flex; align-items: flex-start; gap: 7px; padding: 9px; border: 1px solid var(--line); border-radius: 10px; color: #405249; font-size: 10px; }
.callout { padding: 10px 12px; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; color: #6d5732; background: #fbf7ee; font-size: 10px; line-height: 1.55; }
.toast-root { position: fixed; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); z-index: 50; display: grid; gap: 7px; }
.toast { max-width: min(360px, calc(100vw - 28px)); padding: 11px 14px; border-radius: 11px; color: #fff; background: #1d3029; box-shadow: var(--shadow); font-size: 11px; animation: slide-in .18s ease-out; }
.toast.error { background: #8e3831; }
@keyframes slide-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.loading { padding: 24px; color: var(--muted); text-align: center; font-size: 12px; }
.center { text-align: center; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.hidden { display: none !important; }
.qr-code { display: block; width: min(100%, 220px); height: auto; margin: 10px auto; }
.mobile-tabs { display: none; }
.demo-note { margin-top: 10px; color: #84683a; font-size: 9px; }
@media (max-width: 1020px) {
  .app-shell { grid-template-columns: 218px minmax(0, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 740px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-story { min-height: 240px; padding: 22px 24px; }
  .auth-story .story-copy { margin: 40px 0 20px; }
  .story-copy h1 { max-width: 460px; font-size: clamp(30px, 8vw, 46px); }
  .story-copy p { margin-bottom: 0; font-size: 12px; }
  .story-footer { font-size: 9px; }
  .auth-panel { padding: 27px 22px max(30px, env(safe-area-inset-bottom)); }
  .auth-panel h2 { font-size: 26px; }
  .app-shell { display: block; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .sidebar { display: none; }
  .topbar { min-height: 64px; padding: 8px 15px; }
  .topbar-title h1 { font-size: 15px; }
  .content { padding: 18px 14px 22px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .page-head h2 { font-size: 20px; }
  .page-actions { width: 100%; }
  .mobile-tabs { position: fixed; right: 0; bottom: 0; left: 0; z-index: 10; display: flex; justify-content: space-around; gap: 3px; padding: 6px 5px max(7px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fffffff2; backdrop-filter: blur(16px); }
  .mobile-tab { display: grid; justify-items: center; gap: 2px; min-width: 53px; padding: 4px 3px; border: 0; border-radius: 9px; color: #728079; background: transparent; font-size: 8px; }
  .mobile-tab span:first-child { font-size: 14px; }
  .mobile-tab.active { color: var(--brand); background: #eef3ed; font-weight: 800; }
  .settings-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .check-grid { grid-template-columns: 1fr; }
  .data-table { min-width: 610px; }
  .stat-card { min-height: 98px; padding: 13px; }
  .stat-value { font-size: 24px; }
  .panel { padding: 14px; }
  .workspace-card { padding: 14px; }
  .modal-backdrop { align-items: end; padding: 0; }
  .modal { width: 100%; max-height: 93dvh; border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .toast-root { right: 10px; bottom: calc(72px + env(safe-area-inset-bottom)); left: 10px; }
  .toast { max-width: 100%; }
}
@media (max-width: 380px) {
  .stats-grid { gap: 9px; }
  .stat-card { min-height: 90px; }
  .stat-value { margin-top: 10px; font-size: 22px; }
  .nav-item { font-size: 11px; }
  .mobile-tab { min-width: 48px; font-size: 7px; }
}

.provider-setup { grid-column: 1 / -1; min-width: 0; margin-top: 16px; }
.provider-setup .panel-head { margin-bottom: 12px; }
.integration-card { min-width: 0; }
.integration-endpoint { margin-top: 9px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: #f7f9f6; font-size: 9px; overflow-wrap: anywhere; }
.integration-card .field-help { overflow-wrap: anywhere; }
.provider-setup .alert { overflow-wrap: anywhere; }

/* Premium dark workspace palette: preserve the existing interface and layout. */
:root {
  color-scheme: dark;
  --brand: #10192d;
  --brand-2: #5068e8;
  --accent: #78d9f2;
  --ink: #eef3ff;
  --muted: #aab7d0;
  --line: #2b3852;
  --surface: #151f34;
  --wash: #0a1120;
  --danger: #ff9b9b;
  --shadow: 0 20px 56px #03071370;
}
html { background: var(--wash); }
body { color: var(--ink); background: radial-gradient(ellipse at 82% 0%, #18284a 0, transparent 38%), var(--wash); }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.brand-mark { color: #fff; background: linear-gradient(145deg, #5274f4, #7954cf 78%, #3b9bbd); box-shadow: 0 8px 24px #405edc45; }
.auth-wrap { background: var(--wash); }
.auth-story {
  background: radial-gradient(ellipse at 12% 10%, #345dc966 0, transparent 40%),
    radial-gradient(ellipse at 85% 84%, #784bd044 0, transparent 38%),
    linear-gradient(145deg, #0b1222, #111d36 58%, #151d39);
}
.auth-brand .brand-mark { background: #ffffff12; border-color: #ffffff30; box-shadow: none; }
.auth-brand small, .story-footer { color: #bac7de; }
.eyebrow { color: var(--accent); }
.story-copy p { color: #cad5e8; }
.auth-panel { background: linear-gradient(145deg, #121b2e, #0e1729); }
.field label { color: #d8e2f4; }
.field input, .field select, .field textarea, .filters input, .filters select, .compose textarea {
  border-color: #354461;
  color: var(--ink);
  background: #0d1729;
}
.field input::placeholder, .field textarea::placeholder, .filters input::placeholder { color: #8292ad; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: #78d9f2;
  box-shadow: 0 0 0 3px #78d9f226;
}
.btn-primary { color: #fff; background: linear-gradient(115deg, #4568e8, #6855d9); box-shadow: 0 7px 20px #3d59d12b; }
.btn-primary:hover { background: linear-gradient(115deg, #587bf6, #795fe9); box-shadow: 0 9px 25px #4e68ed42; }
.btn-secondary, .icon-btn { color: var(--ink); border-color: var(--line); background: #19243a; }
.btn-secondary:hover, .icon-btn:hover { border-color: #536787; background: #202d47; }
.btn-quiet { color: #bac7df; }
.btn-danger { color: #ffaaaa; border-color: #713f4b; background: #301d2c; }
.link-btn, .back-link { color: #87c9fa; }
.alert { color: #a4e3d3; border-color: #28564f; background: #142c31; }
.alert.warn { color: #f3d49a; border-color: #5f4c35; background: #2a251e; }
.alert.error { color: #ffb1b1; border-color: #693941; background: #301b27; }
.sidebar { background: linear-gradient(165deg, #131d33, #0c1425 76%); border-right: 1px solid #2b3852; }
.sidebar-brand .brand-mark { background: linear-gradient(145deg, #5474ef, #7155ce); }
.nav-section { color: #9cacc9; }
.nav-item { color: #d2dcef; transition: color .18s ease, background-color .18s ease, transform .18s ease; }
.nav-item:hover { color: #fff; background: #8194c51c; }
.nav-item.active { color: #fff; background: linear-gradient(100deg, #536ce33c, #6478d820); box-shadow: inset 2px 0 #81dcf4; }
.nav-icon { color: var(--accent); }
.nav-count { color: #0c172a; background: linear-gradient(135deg, #8be6f4, #b2c8ff); }
.sidebar-bottom { border-color: #ffffff20; }
.sidebar-brand small, .user-mini-role { color: #b5c4dc; }
.topbar { border-color: var(--line); background: #10192de8; }
.topbar-title p { color: #aab7d0; }
.content { color: var(--ink); }
.page-head p, .panel-head p { color: var(--muted); }
.stat-card, .panel, .workspace-card, .plan-card, .setting-card {
  border-color: #2b3852;
  background: linear-gradient(145deg, #172238, #131d31);
  box-shadow: 0 9px 28px #0207122b;
}
.stat-mark, .list-icon { color: #9ce7f5; background: #203650; }
.two-col .panel { background: linear-gradient(145deg, #172238, #121c2f); }
.list-row { border-color: #28344b; }
.list-copy small, .list-right { color: #aab7d0; }
.chart-bar { background: linear-gradient(180deg, #8be4f5, #5474ed 60%, #785be0); box-shadow: 0 0 18px #5c75e533; }
.table-wrap { border-color: var(--line); background: #121c30; }
.data-table th { color: #b8c6dc; border-color: var(--line); background: #1a2740; }
.data-table td { border-color: #27344b; }
.pill { color: #9ce8d5; background: #173b3b; }
.pill.demo, .pill.trial, .pill.pending { color: #f1d193; background: #393020; }
.pill.paused, .pill.archived, .pill.denied, .pill.cancelled, .pill.suspended { color: #ffaaaa; background: #3b242e; }
.subtabs { background: #1b2941; }
.subtab { color: #aebbd1; }
.subtab.active { color: #f2f5ff; background: #2b3955; box-shadow: inset 0 0 0 1px #506080; }
.feature-row, .request-card { border-color: var(--line); background: #172238; }
.feature-row small { color: var(--muted); }
.switch { background: #3a4761; }
.switch:checked { background: linear-gradient(90deg, #4f6ee8, #48adc9); }
.plan-feature.enabled { color: #9de6d5; }
.brand-preview { box-shadow: inset 0 0 0 1px #ffffff22; }
.bubble { color: #e7eefb; background: #25334b; }
.bubble.mine { color: #fff; background: linear-gradient(135deg, #4d6fe9, #6655cf); }
.empty { border-color: #3b4962; color: #aab7d0; background: #121c30; }
.empty strong { color: #e1e9f8; }
.request-data { color: #bfcae0; }
.modal-backdrop { background: #050a16d9; backdrop-filter: blur(7px); }
.modal { border: 1px solid #34415a; background: linear-gradient(145deg, #19243a, #111a2d); box-shadow: 0 24px 80px #0009; }
.modal-head { border-color: var(--line); }
.check-option { color: #d3def0; }
.callout { color: #f1d193; border-color: #d5a45f; background: #30291e; }
.toast { background: #1c2a43; box-shadow: 0 12px 32px #0006; }
.toast.error { background: #763541; }
.demo-note { color: #f1d193; }
.integration-endpoint { border-color: var(--line); background: #101a2d; }
.mobile-tabs { border-color: var(--line); background: #10192df2; }
.mobile-tab { color: #aab7d0; }
.mobile-tab.active { color: #a8e7f6; background: #263654; }
@media (hover: hover) {
  .stat-card, .panel, .workspace-card, .plan-card, .setting-card, .feature-row, .request-card {
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  }
  .stat-card:hover, .panel:hover, .workspace-card:hover, .plan-card:hover, .setting-card:hover, .feature-row:hover, .request-card:hover {
    border-color: #425579;
    box-shadow: 0 13px 34px #02071255, 0 0 22px #5269d21a;
    transform: translateY(-2px);
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
