: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; }


/* Sentinel findings slice — uses the existing Followthru design tokens. */
.finding-stats { margin-bottom: 14px; }
.finding-boundary { margin: 0 0 14px; }
.security-overview-panels { margin-bottom: 14px; }
.finding-trend-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.finding-trend-panels h4 { margin: 0 0 10px; color: var(--muted); font-size: 10px; }
.finding-trend { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.finding-trend-row { display: grid; grid-template-columns: 58px minmax(35px, 1fr) 30px 42px; align-items: center; gap: 8px; color: var(--muted); font-size: 9px; font-variant-numeric: tabular-nums; }
.finding-trend-row strong { color: var(--ink); text-align: right; }
.finding-trend-row small { font-size: 8px; }
.finding-trend-track { display: block; height: 9px; overflow: hidden; border-radius: 99px; background: #edf1ed; }
.finding-trend-fill { display: block; min-width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #49786d, #a6b895); }
.finding-source-breakdown { margin-top: 14px; }
.finding-source-breakdown .security-breakdown-row { text-transform: none; }
.security-overview-breakdowns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.security-breakdown h4 { margin: 0 0 6px; color: var(--muted); font-size: 10px; }
.security-breakdown ul, .security-asset-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.security-breakdown-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 2px; border-bottom: 1px solid #edf0ed; font-size: 10px; text-transform: capitalize; }
.security-breakdown-row:last-child { border-bottom: 0; }
.security-breakdown-row strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.security-asset-row { padding: 9px 2px; border-bottom: 1px solid #edf0ed; }
.security-asset-row:last-child { border-bottom: 0; }
.security-asset-row strong, .security-asset-row small { display: block; }
.security-asset-row strong { font-size: 10px; overflow-wrap: anywhere; }
.security-asset-row small { margin-top: 3px; color: var(--muted); font-size: 9px; text-transform: capitalize; }
.security-asset-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.security-asset-copy { min-width: 0; }
.security-asset-identifier { display: block; max-width: 100%; margin-top: 5px; color: #46564d; font-size: 9px; overflow-wrap: anywhere; white-space: pre-wrap; }
.asset-admin-scope { max-width: 460px; margin-bottom: 12px; }
.asset-data-boundary { margin: 0 0 12px; font-size: 10px; line-height: 1.55; }
.asset-management-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 10px 0 12px; }
.asset-management-toolbar .field-help { margin: 0; }
.asset-management-form { max-width: 680px; }
.asset-management-form .callout { font-size: 10px; line-height: 1.5; }
.security-asset-row .pill { margin-left: 5px; vertical-align: middle; }
.security-asset-detail { display: grid; gap: 12px; }
.security-asset-detail > h3 { margin: 3px 0 0; font-size: 12px; }
.asset-associated-findings { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.asset-finding-row { padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fafbf9; }
.asset-finding-row strong, .asset-finding-row small { display: block; overflow-wrap: anywhere; }
.asset-finding-row strong { margin-bottom: 5px; font-size: 10px; }
.asset-finding-row small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.asset-finding-row .pill { display: inline-flex; }
.security-findings-heading { margin: 20px 0 10px; font-size: 13px; }
.finding-filters { align-items: end; }
.finding-filters input[type="search"] { flex: 1 1 220px; }
.finding-filters select { min-height: 35px; }
.finding-scope-note { display: block; margin-top: 12px; }
.finding-list { display: grid; gap: 10px; }
.finding-card { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: 0 2px 12px #1c332808; }
.finding-card[hidden] { display: none; }
.finding-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.finding-card-head h3 { margin: 0; font-size: 13px; }
.finding-card-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.finding-tags, .finding-detail-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.pill.severity-critical { color: #922f36; background: #fbe7e7; }
.pill.severity-high { color: #8a4b13; background: #fff0dd; }
.pill.severity-medium { color: #766012; background: #fbf5d9; }
.pill.severity-low { color: #356552; background: #e7f3ec; }
.pill.severity-informational { color: #345575; background: #eaf1fa; }
.finding-description { margin: 12px 0; color: #46564d; font-size: 11px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.finding-meta { display: flex; flex-wrap: wrap; gap: 7px 16px; color: var(--muted); font-size: 9px; }
.finding-meta strong { color: var(--ink); text-transform: capitalize; }
.finding-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 9px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #edf0ed; }
.finding-detail { display: grid; gap: 13px; }
.finding-detail > h3, .finding-report h3 { margin: 7px 0 0; font-size: 12px; }
.finding-detail-tags { justify-content: flex-start; }
.finding-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.finding-detail-grid > div { min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: #fafbf9; }
.finding-detail-grid span, .finding-detail-grid strong { display: block; }
.finding-detail-grid span { color: var(--muted); font-size: 9px; }
.finding-detail-grid strong { margin-top: 4px; font-size: 10px; overflow-wrap: anywhere; text-transform: capitalize; }
.finding-detail-description { margin: 0; font-size: 11px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.evidence-list { display: grid; gap: 7px; }
.evidence-item { padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: #fafbf9; }
.evidence-item p { margin: 8px 0 0; color: #405249; font-size: 10px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.finding-history { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.finding-history li { display: grid; grid-template-columns: 1fr auto; gap: 3px 9px; padding: 9px 10px; border-left: 2px solid var(--accent); background: #fafbf9; }
.finding-history strong { font-size: 10px; text-transform: capitalize; }
.finding-history span, .finding-history small { color: var(--muted); font-size: 9px; }
.finding-history small { grid-column: 1 / -1; }
.finding-report { display: grid; gap: 12px; }
.report-scope { margin: 0; color: #44564c; font-size: 10px; line-height: 1.5; }
.report-summary { display: flex; flex-wrap: wrap; gap: 7px; }
.report-summary span { padding: 6px 9px; border-radius: 8px; color: #23483e; background: #edf3ee; font-size: 9px; font-weight: 750; }
.finding-report ul { display: grid; gap: 6px; margin: 0; padding-left: 18px; color: #526158; font-size: 10px; line-height: 1.5; }
@media (max-width: 740px) {
  .finding-card-head { flex-direction: column; }
  .finding-tags { justify-content: flex-start; }
  .finding-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-tabs { justify-content: flex-start; overflow-x: auto; }
  .mobile-tab { flex: 0 0 auto; min-width: 64px; }
}
@media (max-width: 380px) {
  .security-overview-breakdowns { grid-template-columns: 1fr; }
  .finding-trend-panels { grid-template-columns: 1fr; }
}
@media print {
  body { background: #fff !important; }
  #app, #toast-root { display: none !important; }
  #modal-root { position: static !important; display: block !important; }
  .modal-backdrop { position: static; display: block; padding: 0; background: #fff; }
  .modal { width: 100%; max-width: none; max-height: none; overflow: visible; border-radius: 0; box-shadow: none; }
  .modal-head { padding: 0 0 10px; }
  .modal-head h2 { font-size: 18px; }
  .modal-close, .no-print { display: none !important; }
  .modal-body { padding: 0; }
  .finding-report { color: #111; }
  .finding-report .table-wrap { overflow: visible; }
  .finding-report .data-table { min-width: 0; font-size: 8pt; }
  .finding-report .data-table th, .finding-report .data-table td { padding: 5px; color: #111; }
}

.csv-import-table-wrap { max-height: 360px; }
.csv-import-table { min-width: 760px; font-size: 9px; }
.csv-import-table th, .csv-import-table td { vertical-align: top; }
.csv-import-table td { overflow-wrap: anywhere; }
.csv-row-errors { margin-top: 5px; color: #8e3831; font-size: 9px; line-height: 1.45; }
.csv-import-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.alert.success { border-color: #b5d9c2; color: #27583c; background: #edf7ef; }

.msp-access-grid { align-items: start; gap: 12px; }
.msp-access-panel { margin-top: 14px; overflow: hidden; }
.msp-access-boundary, .delegated-readonly-note { border-left: 3px solid #c7a872; }
.delegated-scope-picker { justify-content: flex-start; margin-bottom: 12px; }
.delegated-scope-picker .field { width: min(100%, 440px); }
.finding-export-scope { display: grid; gap: 3px; min-width: min(100%, 220px); }
.finding-export-scope label { color: var(--muted); font-size: 9px; font-weight: 700; }
.finding-export-scope select { min-width: 0; max-width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; font-size: 11px; }
@media (max-width: 760px) {
  .msp-access-panel .table-wrap { margin-inline: -4px; }
  .msp-access-grid { grid-template-columns: 1fr; }
  .finding-export-scope { width: 100%; }
}


/* Security incident/case workflow */
.incident-scope-picker { display: grid; gap: 5px; width: min(100%, 480px); margin: 0 0 14px; }
.incident-scope-picker label { color: var(--muted); font-size: 10px; font-weight: 700; }
.incident-scope-picker select { min-width: 0; max-width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.incident-scope-note { margin: 8px 0 14px; color: var(--muted); font-size: 11px; }
.incident-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.incident-card { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface, #fff); box-shadow: 0 3px 14px rgb(31 43 53 / 4%); }
.incident-card-head, .incident-card-foot, .incident-meta, .incident-detail-tags, .incident-actions { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.incident-card-head { align-items: flex-start; }
.incident-card h3 { margin: 0; overflow-wrap: anywhere; font-size: 14px; }
.incident-card-head p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.incident-tags, .incident-detail-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.incident-tags { justify-content: flex-end; }
.incident-meta { justify-content: flex-start; flex-wrap: wrap; margin-top: 14px; color: var(--muted); font-size: 10px; }
.incident-meta strong { color: var(--ink); }
.incident-card-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.incident-card-foot .field-help { margin: 0; }
.incident-status-open, .incident-status-investigating, .incident-status-contained, .incident-status-resolved, .incident-status-closed,
.incident-priority-low, .incident-priority-normal, .incident-priority-high, .incident-priority-urgent { white-space: nowrap; }
.incident-finding-fieldset { min-width: 0; margin: 2px 0 6px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; }
.incident-finding-fieldset legend { padding: 0 5px; color: var(--ink); font-size: 11px; font-weight: 700; }
.incident-finding-picks { display: grid; max-height: 250px; gap: 7px; overflow: auto; }
.incident-finding-pick { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 8px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; }
.incident-finding-pick input { margin: 2px 0 0; }
.incident-finding-pick span { min-width: 0; }
.incident-finding-pick strong, .incident-finding-pick small { display: block; overflow-wrap: anywhere; }
.incident-finding-pick strong { font-size: 10px; }
.incident-finding-pick small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.security-incident-detail { display: grid; gap: 13px; }
.security-incident-detail > h3, .incident-text-section h3 { margin: 3px 0 0; font-size: 12px; }
.incident-text-section p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.incident-text-section .incident-notes { white-space: pre-wrap; }
.incident-linked-findings { display: grid; gap: 8px; }
.incident-linked-finding { display: grid; gap: 5px; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.incident-linked-finding > div { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.incident-linked-finding strong { overflow-wrap: anywhere; font-size: 10px; }
.incident-linked-finding p, .incident-linked-finding small { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; overflow-wrap: anywhere; }
.security-incident-detail .finding-detail-grid { margin: 0; }
.security-incident-detail .finding-history { margin: 0; }
.security-incident-detail .incident-actions { justify-content: flex-start; flex-wrap: wrap; }
@media (max-width: 760px) {
  .incident-list { grid-template-columns: 1fr; }
  .incident-card { padding: 12px; }
  .incident-card-head { flex-direction: column; }
  .incident-tags { justify-content: flex-start; }
  .incident-card-foot { align-items: flex-start; flex-direction: column; }
  .incident-card-foot .btn { width: 100%; }
  .incident-scope-picker { width: 100%; }
  .incident-finding-fieldset { padding: 8px; }
}

/* NIST CSF 2.0 manual self-assessment */
.csf-workspace-picker { margin-bottom: 14px; }
.csf-workspace-picker .field { max-width: 560px; margin: 0; }
.csf-disclaimer, .csf-catalog-panel { margin-bottom: 14px; }
.csf-source { display: grid; gap: 7px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.csf-source > span, .csf-source small { color: var(--muted); line-height: 1.55; }
.csf-source code { overflow-wrap: anywhere; }
.csf-search { max-width: 640px; margin-bottom: 14px; }
.csf-functions, .csf-category-list, .csf-card-list { display: grid; gap: 10px; }
.csf-function, .csf-category { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.csf-function > summary, .csf-category > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 15px; cursor: pointer; list-style-position: inside; }
.csf-function > summary { background: #f7f8f7; border-radius: 12px; }
.csf-category > summary { color: var(--ink); }
.csf-function > summary span, .csf-category > summary span { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.csf-category-list { padding: 8px; }
.csf-card-list { padding: 0 8px 8px; }
.csf-subcategory { padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.csf-outcome-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.csf-outcome-head h4 { margin: 5px 0 0; font-size: 1rem; }
.csf-response-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.csf-response-badges .pill { white-space: normal; text-align: center; }
.csf-outcome-text { margin: 12px 0; line-height: 1.6; }
.csf-item-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.csf-history-list, .csf-evidence-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.csf-history-list li, .csf-evidence-list li { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; }
.csf-history-list li small, .csf-evidence-list li small { color: var(--muted); }
.csf-evidence-list li { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.csf-evidence-list li > div { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .csf-outcome-head { display: grid; }
  .csf-response-badges { justify-content: flex-start; }
  .csf-item-actions > .btn { flex: 1 1 100%; }
  .csf-function > summary, .csf-category > summary { align-items: flex-start; }
  .csf-evidence-list li { grid-template-columns: 1fr; }
}


/* NIST CSF evidence-request workflow */
.csf-requests-panel { margin-bottom: 14px; }
.csf-request-list { display: grid; gap: 9px; }
.csf-request-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.csf-request-copy { display: grid; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.csf-request-copy small { color: var(--muted); line-height: 1.45; }
.csf-request-row-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.csf-request-detail { display: grid; gap: 16px; }
.csf-request-detail section { min-width: 0; }
.csf-request-detail h4 { margin: 0 0 9px; }
.csf-request-references, .csf-request-timeline { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.csf-request-references li { display: flex; align-items: flex-start; gap: 10px; min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 9px; overflow-wrap: anywhere; }
.csf-request-references li > span { display: grid; gap: 4px; min-width: 0; }
.csf-request-references small, .csf-request-timeline small { color: var(--muted); line-height: 1.45; }
.csf-request-timeline li { position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; padding: 5px 0 10px; }
.csf-request-timeline li > div { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.csf-timeline-mark { position: relative; display: block; width: 10px; height: 10px; margin: 4px 0 0 1px; border: 2px solid var(--primary); border-radius: 50%; background: var(--surface); }
.csf-request-timeline li:not(:last-child) .csf-timeline-mark::after { position: absolute; top: 8px; left: 2px; width: 2px; height: calc(100% + 18px); min-height: 25px; background: var(--line); content: ''; }
.csf-request-detail [hidden] { display: none !important; }
.csf-request-detail select[multiple] { min-height: 130px; }
@media (max-width: 720px) {
  .csf-request-row { align-items: stretch; flex-direction: column; }
  .csf-request-row > .btn { width: 100%; }
  .csf-request-detail .csf-item-actions > .btn { flex: 1 1 100%; }
}


/* Project Sentinel domain scope inventory: exact customer claims, never scanner findings. */
.domain-scope-panel { display: grid; gap: 16px; }
.domain-scope-disclosure { margin: 0; }
.domain-scope-list-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 8px; }
.domain-scope-list-heading h3 { margin: 0; font-size: 13px; }
.domain-scope-list-heading > span { color: var(--muted); font-size: 10px; }
.domain-scope-list { display: grid; gap: 12px; }
.domain-scope-card { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.domain-scope-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.domain-scope-card h3 { margin: 6px 0 0; font-size: 15px; overflow-wrap: anywhere; }
.domain-scope-card h3 code { color: var(--ink); font-size: 14px; }
.domain-scope-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 14px 0; }
.domain-scope-details > div { min-width: 0; }
.domain-scope-details .domain-scope-wide { grid-column: 1 / -1; }
.domain-scope-details dt { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .04em; }
.domain-scope-details dd { margin: 4px 0 0; font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
.domain-scope-details ul { margin: 0; padding-left: 18px; }
.domain-scope-details li + li { margin-top: 4px; }
.domain-scope-history-section { display: grid; gap: 10px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.domain-scope-history { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.domain-scope-history li { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #edf0ed; }
.domain-scope-history li > div { display: grid; gap: 4px; min-width: 0; }
.domain-scope-history strong { font-size: 10px; }
.domain-scope-history span, .domain-scope-history small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.domain-scope-history small { flex: none; text-align: right; }
.domain-scope-form { max-height: min(74vh, 760px); overflow: auto; padding-right: 3px; }
@media (max-width: 680px) {
  .domain-scope-details { grid-template-columns: minmax(0, 1fr); }
  .domain-scope-details .domain-scope-wide { grid-column: auto; }
  .domain-scope-history li { display: grid; }
  .domain-scope-history small { text-align: left; }
}
