:root {
  --bg: #07111f;
  --bg-soft: #0b1626;
  --panel: #101d2e;
  --panel-2: #142337;
  --panel-3: #192a40;
  --line: rgba(169, 195, 226, .12);
  --line-strong: rgba(169, 195, 226, .22);
  --text: #f3f7fc;
  --muted: #91a5bd;
  --muted-2: #627890;
  --blue: #47a7ff;
  --blue-strong: #1989ef;
  --blue-soft: rgba(71, 167, 255, .13);
  --mint: #39d5a1;
  --mint-soft: rgba(57, 213, 161, .12);
  --amber: #f4b84a;
  --amber-soft: rgba(244, 184, 74, .13);
  --red: #ff6b7a;
  --red-soft: rgba(255, 107, 122, .12);
  --purple: #a98bff;
  --shadow: 0 24px 70px rgba(0, 0, 0, .23);
  --radius: 16px;
  --radius-sm: 10px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; color: var(--text); background: radial-gradient(circle at 75% -10%, rgba(29, 120, 205, .10), transparent 34%), var(--bg); font-size: 15px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img { max-width: 100%; }
code { padding: 2px 6px; border: 1px solid var(--line); border-radius: 6px; color: #b8d9f8; background: rgba(0, 0, 0, .18); font-family: "SFMono-Regular", Consolas, monospace; font-size: .88em; }

.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; width: 244px; flex-direction: column; padding: 26px 18px 20px; border-right: 1px solid var(--line); background: rgba(7, 17, 31, .92); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 12px; padding: 2px 6px; }
.brand > span:last-child { display: flex; flex-direction: column; }
.brand strong { letter-spacing: .22em; font-size: 14px; }
.brand small { margin-top: -2px; color: var(--muted-2); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.brand-mark { position: relative; display: grid; width: 33px; height: 33px; place-items: center; border: 1px solid rgba(71, 167, 255, .45); border-radius: 50%; box-shadow: inset 0 0 18px rgba(71, 167, 255, .08), 0 0 24px rgba(71, 167, 255, .08); }
.brand-mark::before { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 14px var(--mint); content: ""; }
.brand-mark i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); }
.brand-mark i:nth-child(1) { left: 4px; top: 15px; }.brand-mark i:nth-child(2) { right: 5px; top: 7px; }.brand-mark i:nth-child(3) { right: 6px; bottom: 6px; background: var(--purple); }
.main-nav { display: flex; flex-direction: column; gap: 7px; margin-top: 42px; }
.main-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid transparent; border-radius: 10px; color: var(--muted); transition: .18s ease; }
.main-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .025); }
.main-nav a.active { border-color: rgba(71, 167, 255, .16); color: #dceeff; background: var(--blue-soft); }
.nav-icon { display: grid; width: 24px; height: 24px; place-items: center; color: var(--blue); font-size: 18px; }
.sidebar-foot { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding: 16px 8px 0; border-top: 1px solid var(--line); color: var(--muted-2); }
.system-dot { color: var(--muted); font-size: 12px; }.system-dot span { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.nav-logout { padding: 0; border: 0; color: var(--muted); background: none; cursor: pointer; }.nav-logout:hover { color: var(--text); }
.mobile-menu { display: none; }
.app-main { width: calc(100% - 244px); min-height: 100vh; margin-left: 244px; padding: 44px clamp(28px, 4vw, 64px) 80px; }

.page-head, .company-head, .section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.page-head h1, .company-head h1 { margin: 3px 0 4px; font-size: clamp(27px, 3vw, 38px); line-height: 1.15; letter-spacing: -.035em; }
.page-head.compact { align-items: flex-start; max-width: 1180px; }
.eyebrow { margin: 0; color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.muted { color: var(--muted); }.max-text { max-width: 560px; }.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
h1, h2, h3, p { overflow-wrap: anywhere; } h2 { margin: 3px 0 0; font-size: 22px; letter-spacing: -.025em; } h3 { margin: 0; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(18, 33, 51, .98), rgba(13, 26, 42, .96)); box-shadow: 0 1px 0 rgba(255, 255, 255, .018), var(--shadow); }

.button { display: inline-flex; min-height: 41px; align-items: center; justify-content: center; gap: 8px; padding: 9px 15px; border: 1px solid var(--line-strong); border-radius: 9px; color: #dce7f3; background: rgba(255, 255, 255, .025); font-weight: 650; font-size: 13px; cursor: pointer; transition: transform .15s ease, border-color .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); border-color: rgba(103, 178, 245, .44); background: rgba(255, 255, 255, .05); }
.button.primary { border-color: rgba(71, 167, 255, .5); color: white; background: linear-gradient(135deg, #258fe8, #1474ca); box-shadow: 0 8px 28px rgba(20, 116, 202, .25); }
.button.primary:hover { background: linear-gradient(135deg, #36a0f5, #1880d9); }
.button.warning { border-color: rgba(244, 184, 74, .35); color: #ffd98e; background: var(--amber-soft); }
.button.ghost { background: transparent; }.button.large { min-height: 49px; padding-inline: 20px; }.button.small { min-height: 34px; padding: 6px 11px; }.button.tiny { min-height: 29px; padding: 4px 9px; font-size: 11px; }.button.full { width: 100%; }.danger-text, .link-danger { color: #ff98a3; }
.button-row, .form-actions { display: flex; align-items: center; gap: 10px; }.form-actions { justify-content: flex-end; margin-top: 8px; }.form-actions.split { justify-content: space-between; }

.flash { position: fixed; z-index: 100; top: 24px; right: 28px; display: flex; max-width: min(480px, calc(100vw - 40px)); align-items: center; gap: 16px; padding: 13px 16px; border: 1px solid rgba(57, 213, 161, .32); border-radius: 11px; color: #c9f9e9; background: rgba(15, 54, 50, .96); box-shadow: var(--shadow); animation: slide-in .25s ease; }
.flash-error { border-color: rgba(255,107,122,.4); color: #ffd4d8; background: rgba(67, 26, 36, .96); }.flash-warning { border-color: rgba(244,184,74,.4); color: #ffe4ad; background: rgba(66, 48, 23, .96); }
.flash button { border: 0; color: inherit; background: none; font-size: 20px; cursor: pointer; }
@keyframes slide-in { from { opacity: 0; transform: translateY(-10px); } }

.security-banner { display: flex; align-items: center; gap: 14px; margin-bottom: 25px; padding: 14px 17px; border: 1px solid rgba(244, 184, 74, .25); border-radius: 12px; background: var(--amber-soft); }.security-banner.error { border-color: rgba(255,107,122,.3); background: var(--red-soft); }
.security-banner p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }.banner-icon { display: grid; width: 29px; height: 29px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--amber); background: rgba(244,184,74,.12); font-weight: 800; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 42px; }.compact-metrics { margin-bottom: 24px; }
.metric { position: relative; min-height: 143px; padding: 20px; overflow: hidden; }.metric::after { position: absolute; right: -22px; bottom: -35px; width: 100px; height: 100px; border: 1px solid rgba(71,167,255,.08); border-radius: 50%; content: ""; }
.metric-label { color: var(--muted); font-size: 12px; }.metric > strong { display: block; margin: 11px 0 4px; font-size: 31px; letter-spacing: -.04em; }.metric > .metric-word { margin-top: 17px; font-size: 18px; letter-spacing: -.02em; }.metric small { color: var(--muted-2); }.accent-amber { color: var(--amber); }
.content-grid { display: grid; gap: 22px; }.two-one { grid-template-columns: minmax(0, 2fr) minmax(290px, 1fr); }.content-grid + section, section + section { margin-top: 42px; }
.section-head { align-items: center; margin-bottom: 17px; }.section-head h2 { margin-top: 2px; }.action-head { align-items: flex-end; }.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 21px; }

.company-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.company-card { display: block; min-width: 0; padding: 19px; transition: transform .18s ease, border-color .18s ease; }.company-card:hover { transform: translateY(-2px); border-color: rgba(71,167,255,.32); }.company-card h3 { margin: 17px 0 2px; font-size: 18px; }.company-top { display: flex; align-items: center; justify-content: space-between; }
.company-avatar { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(71,167,255,.24); border-radius: 11px; color: #b9dcfc; background: var(--blue-soft); font-weight: 800; }.company-avatar.large { width: 50px; height: 50px; border-radius: 14px; font-size: 19px; }
.status-chip { display: inline-flex; width: max-content; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; font-weight: 650; white-space: nowrap; }.status-chip i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted-2); }.status-chip.success { border-color: rgba(57,213,161,.2); color: #8ceacb; background: var(--mint-soft); }.status-chip.success i { background: var(--mint); }.status-chip.warning { border-color: rgba(244,184,74,.2); color: #f4cc7e; background: var(--amber-soft); }.status-chip.warning i { background: var(--amber); }.status-chip.danger { border-color: rgba(255,107,122,.2); color: #ff9ba5; background: var(--red-soft); }.status-chip.danger i { background: var(--red); }
.mini-stats { display: flex; gap: 16px; margin: 19px 0 12px; color: var(--muted); font-size: 11px; }.mini-stats strong { color: var(--text); }.coverage { height: 4px; margin-bottom: 9px; overflow: hidden; border-radius: 4px; background: rgba(255,255,255,.05); }.coverage span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--blue),var(--mint)); }.company-card > small { display: flex; justify-content: space-between; color: var(--muted-2); }
.empty-state { display: flex; min-height: 250px; align-items: center; justify-content: center; flex-direction: column; padding: 36px; text-align: center; }.empty-state > span { display: grid; width: 54px; height: 54px; place-items: center; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 16px; color: var(--blue); background: var(--blue-soft); font-size: 25px; }.empty-state h3 { font-size: 19px; }.empty-state p { max-width: 430px; margin: 6px auto 18px; color: var(--muted); }
.usage-card { display: flex; align-items: center; flex-wrap: wrap; gap: 17px; padding: 21px; }.usage-ring { display: grid; width: 86px; height: 86px; flex: 0 0 auto; place-content: center; border-radius: 50%; background: radial-gradient(circle closest-side, var(--panel) 78%, transparent 80% 99%), conic-gradient(var(--blue) calc(var(--progress) * 1%), rgba(255,255,255,.06) 0); text-align: center; }.usage-ring span { font-size: 23px; font-weight: 750; }.usage-ring small { color: var(--muted-2); }.usage-card > div:nth-child(2) { flex: 1; min-width: 130px; }.usage-card p { margin: 4px 0; font-size: 12px; }.usage-card dl { width: 100%; margin: 7px 0 0; padding-top: 13px; border-top: 1px solid var(--line); }.usage-card dl div, .config-list div { display: flex; justify-content: space-between; gap: 15px; padding: 5px 0; }.usage-card dt, .config-list dt { color: var(--muted); }.usage-card dd, .config-list dd { margin: 0; color: #cfdeed; }

.table-card { overflow: auto; }.table-card table { width: 100%; border-collapse: collapse; }.table-card th { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted-2); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-align: left; text-transform: uppercase; }.table-card td { padding: 14px 16px; border-bottom: 1px solid var(--line); color: #c6d3e0; vertical-align: middle; }.table-card tbody tr:last-child td { border-bottom: 0; }.table-card tbody tr[data-href] { cursor: pointer; }.table-card tbody tr:hover { background: rgba(71,167,255,.025); }.table-card td strong, .table-card td small { display: block; }.table-card td small { max-width: 420px; color: var(--muted-2); }.actions-cell { display: flex; gap: 6px; justify-content: flex-end; }.actions-cell form { margin: 0; }

.auth-page { overflow-x: hidden; background: radial-gradient(circle at 20% 30%, rgba(36,132,216,.16), transparent 35%), radial-gradient(circle at 75% 85%, rgba(57,213,161,.08), transparent 32%), #06101c; }.auth-main { min-height: 100vh; }.login-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(0, 1.4fr) minmax(400px, .8fr); align-items: center; gap: clamp(40px, 8vw, 120px); max-width: 1240px; margin: auto; padding: 50px; }.login-visual { display: flex; min-height: 670px; justify-content: space-between; flex-direction: column; }.brand-large { padding: 0; }.brand-large .brand-mark { width: 39px; height: 39px; }.brand-large strong { font-size: 17px; }.login-visual h1 { margin: 9px 0 15px; font-size: clamp(38px,5vw,62px); line-height: 1.05; letter-spacing: -.055em; }.login-card { padding: 34px; }.login-card h2 { margin: 27px 0 5px; font-size: 27px; }.stack-form { display: flex; flex-direction: column; gap: 17px; margin-top: 25px; }.fineprint { margin: 21px 0 0; color: var(--muted-2); font-size: 11px; }.orbit-visual { position: relative; width: 280px; height: 280px; align-self: center; }.orbit, .orbit-core, .orbit-node { position: absolute; border-radius: 50%; }.orbit { inset: 12%; border: 1px solid rgba(71,167,255,.18); }.orbit-two { inset: 29%; border-color: rgba(57,213,161,.22); }.orbit-core { inset: 41%; display: grid; place-items: center; color: #b8dcfb; background: radial-gradient(circle at 35% 30%, #2c9cf3, #112d4d); box-shadow: 0 0 70px rgba(71,167,255,.25); font-weight: 800; }.orbit-node { width: 9px; height: 9px; background: var(--mint); box-shadow: 0 0 18px var(--mint); }.n1 { top: 11%; left: 50%; }.n2 { right: 12%; bottom: 31%; background: var(--purple); }.n3 { left: 27%; bottom: 18%; background: var(--blue); }

.setup-layout { display: grid; max-width: 1180px; grid-template-columns: minmax(0, 1.45fr) minmax(300px,.8fr); gap: 22px; }.form-card { padding: 24px; }.form-card > label, .stack-form > label, .knowledge-edit > label { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; color: #c7d5e3; font-size: 12px; font-weight: 650; }.form-card label small, label > small { color: var(--muted-2); font-weight: 400; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 9px; outline: none; color: var(--text); background: rgba(3, 12, 23, .42); transition: border-color .15s ease, box-shadow .15s ease; }.form-card input, .form-card textarea, .form-card select, .stack-form input, .knowledge-edit input, .knowledge-edit textarea, .knowledge-edit select, .manager-compose textarea, .gap-card textarea { padding: 11px 12px; }.form-card input:focus, textarea:focus, select:focus, .stack-form input:focus { border-color: rgba(71,167,255,.6); box-shadow: 0 0 0 3px rgba(71,167,255,.09); } textarea { resize: vertical; }.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }.check-line { display: flex !important; align-items: flex-start; flex-direction: row !important; gap: 11px !important; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.018); cursor: pointer; }.check-line input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--blue); }.check-line span { display: flex; flex-direction: column; }.step-label { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }.step-label > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; color: var(--blue); background: var(--blue-soft); font-size: 11px; font-weight: 800; }.step-label div { display: flex; flex-direction: column; }.step-label small { color: var(--muted-2); }.promise-card { padding: 24px; }.promise-card h3 { margin-top: 5px; font-size: 21px; }.timeline { display: flex; flex-direction: column; gap: 21px; margin: 26px 0; padding: 0; list-style: none; }.timeline li { display: flex; gap: 12px; }.timeline li > span { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--blue); font-size: 11px; }.timeline p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }.safe-note { padding: 11px 13px; border: 1px solid rgba(57,213,161,.15); border-radius: 9px; color: #a8d9ca; background: var(--mint-soft); font-size: 11px; }.safe-note.wide { margin: 14px 0 20px; }
.password-field { position: relative; display: block; }.password-field input { padding-right: 44px; }.password-field button { position: absolute; top: 50%; right: 8px; width: 30px; height: 30px; border: 0; transform: translateY(-50%); color: var(--muted); background: none; cursor: pointer; }

.company-head { align-items: center; }.company-identity { display: flex; flex-direction: column; gap: 12px; }.back-link { color: var(--muted); font-size: 12px; }.back-link:hover { color: var(--blue); }.identity-row, .title-line { display: flex; align-items: center; gap: 13px; }.title-line { flex-wrap: wrap; }.title-line h1 { margin: 0; }.identity-row p { margin: 3px 0 0; }.tab-bar { display: flex; gap: 3px; margin: 0 0 28px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }.tab-bar a { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; padding: 12px 13px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 12px; }.tab-bar a:hover { color: var(--text); }.tab-bar a.active { border-color: var(--blue); color: #d9ecff; }.tab-bar a span { display: grid; min-width: 18px; height: 18px; place-items: center; border-radius: 9px; color: var(--muted); background: rgba(255,255,255,.05); font-size: 9px; }
.launch-card { padding: 23px; }.check-list { display: flex; flex-direction: column; gap: 14px; margin: 22px 0; padding: 0; list-style: none; }.check-list li { display: flex; align-items: center; gap: 11px; color: var(--muted); }.check-list i { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 10px; font-style: normal; }.check-list span { display: flex; flex-direction: column; }.check-list small { color: var(--muted-2); }.check-list li.done { color: var(--text); }.check-list li.done i { border-color: rgba(57,213,161,.25); color: var(--mint); background: var(--mint-soft); }

.scan-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 15px; padding: 15px 17px; }.scan-progress > div { flex: 1; }.scan-progress p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }.spinner { width: 24px; height: 24px; border: 2px solid rgba(71,167,255,.16); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }@keyframes spin { to { transform: rotate(360deg); } }
.knowledge-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 15px; padding: 10px 12px; }.filter-pills { display: flex; gap: 4px; overflow-x: auto; }.filter-pills a { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 8px; color: var(--muted); font-size: 11px; }.filter-pills a.active { color: var(--text); background: rgba(255,255,255,.05); }.filter-pills a.pending.active { color: #f6cf85; background: var(--amber-soft); }.filter-pills a.confirmed.active { color: #8ee8cb; background: var(--mint-soft); }.filter-pills span { color: var(--muted-2); }.collapsible.hidden { display: none; }.collapsible { margin-bottom: 15px; }
.knowledge-list { display: flex; flex-direction: column; gap: 9px; }.knowledge-item { position: relative; overflow: hidden; }.knowledge-item summary { display: flex; align-items: center; gap: 13px; padding: 15px; cursor: pointer; list-style: none; }.knowledge-item summary::-webkit-details-marker { display: none; }.knowledge-item[open] { border-color: rgba(71,167,255,.22); }.source-icon { display: grid; width: 35px; height: 35px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: var(--blue); background: var(--blue-soft); font-size: 11px; font-weight: 800; }.source-icon.manual { color: var(--mint); background: var(--mint-soft); }.source-icon.image { color: var(--purple); background: rgba(169,139,255,.12); }.knowledge-summary { display: flex; min-width: 0; flex: 1; flex-direction: column; }.knowledge-summary > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.knowledge-summary > small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.source-line { overflow: hidden; color: var(--muted-2); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.chevron { color: var(--muted-2); transition: transform .15s ease; }.knowledge-item[open] .chevron { transform: rotate(180deg); }.knowledge-edit { padding: 18px; border-top: 1px solid var(--line); background: rgba(0,0,0,.08); }.inline-delete { position: absolute; right: 120px; bottom: 30px; }.link-danger { border: 0; background: none; font-size: 11px; cursor: pointer; }.asset-preview { display: flex; max-width: 360px; align-items: center; gap: 10px; margin-bottom: 15px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 11px; }.asset-preview img { width: 64px; height: 64px; border-radius: 7px; object-fit: cover; }

.upload-zone { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 15px; padding: 23px; border-style: dashed; }.upload-zone label { display: flex; flex: 1; align-items: center; gap: 14px; cursor: pointer; }.upload-zone label > span:not(.upload-icon) { display: flex; flex-direction: column; }.upload-zone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }.upload-zone strong, .upload-zone small { display: block; }.upload-zone small { color: var(--muted); }.upload-icon { display: grid; width: 45px; height: 45px; flex: 0 0 auto; place-items: center; border-radius: 12px; color: var(--blue); background: var(--blue-soft); font-size: 22px; }
.behavior-grid { align-items: start; }.prompt-card { position: sticky; top: 24px; padding: 21px; }.prompt-card pre { max-height: 540px; margin: 0 0 15px; padding: 14px; overflow: auto; border: 1px solid var(--line); border-radius: 9px; color: #a9bed3; background: rgba(2,9,17,.42); font: 10px/1.55 "SFMono-Regular",Consolas,monospace; white-space: pre-wrap; }

.test-layout, .conversation-layout { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(280px,.7fr); gap: 20px; align-items: start; }.chat-shell { display: flex; min-height: 670px; max-height: calc(100vh - 180px); flex-direction: column; overflow: hidden; }.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 17px; border-bottom: 1px solid var(--line); }.chat-head > div { display: flex; align-items: center; gap: 10px; }.chat-head > div > div { display: flex; flex-direction: column; }.chat-head small { color: var(--muted); }.chat-head small i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); }.bot-avatar { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(71,167,255,.3); border-radius: 50%; color: #cbe6ff; background: radial-gradient(circle at 30% 25%, #309ae9, #12314f); font-weight: 800; }.chat-messages { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 20px; overflow-y: auto; }.chat-welcome { margin: auto; max-width: 520px; text-align: center; }.chat-welcome > span { display: grid; width: 50px; height: 50px; margin: 0 auto 13px; place-items: center; border-radius: 16px; color: var(--blue); background: var(--blue-soft); }.chat-welcome p { color: var(--muted); }.suggestion-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 17px; }.suggestion-row button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: transparent; font-size: 11px; cursor: pointer; }.suggestion-row button:hover { color: var(--text); border-color: rgba(71,167,255,.35); }.chat-bubble { max-width: 78%; padding: 10px 13px; border: 1px solid var(--line); border-radius: 13px 13px 13px 4px; background: rgba(255,255,255,.025); white-space: pre-wrap; }.chat-bubble.user { align-self: flex-end; border-color: rgba(71,167,255,.23); border-radius: 13px 13px 4px 13px; background: var(--blue-soft); }.chat-bubble small { display: block; margin-top: 6px; color: var(--muted-2); }.chat-bubble.error { border-color: rgba(255,107,122,.25); }.chat-loader { display: flex; gap: 4px; padding: 13px; }.chat-loader i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: bounce 1s infinite; }.chat-loader i:nth-child(2){animation-delay:.14s}.chat-loader i:nth-child(3){animation-delay:.28s}@keyframes bounce{50%{transform:translateY(-4px);opacity:.5}}
.chat-compose { display: flex; align-items: flex-end; gap: 10px; padding: 13px; border-top: 1px solid var(--line); }.chat-compose textarea { min-height: 44px; max-height: 140px; padding: 11px 13px; resize: none; }.chat-compose button { display: grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(71,167,255,.45); border-radius: 12px; color: white; background: var(--blue-strong); font-size: 20px; cursor: pointer; }.test-aside, .conversation-aside { display: flex; flex-direction: column; gap: 14px; }.test-aside .card, .conversation-aside .card { padding: 20px; }.test-aside h3 { margin-top: 5px; }.plain-checks { display: flex; flex-direction: column; gap: 9px; padding: 0; list-style: none; color: var(--muted); font-size: 12px; }.plain-checks li::before { margin-right: 8px; color: var(--mint); content: "✓"; }.fact-readiness { display: flex; align-items: center; gap: 12px; margin: 14px 0; }.fact-readiness strong { font-size: 34px; }.fact-readiness span { color: var(--muted); font-size: 12px; }
.connected-bot { display: flex; align-items: center; gap: 12px; margin-bottom: 19px; padding: 14px; border: 1px solid rgba(57,213,161,.16); border-radius: 10px; background: var(--mint-soft); }.connected-bot > div { display: flex; flex-direction: column; }.connected-bot small { color: var(--muted); }.form-card hr { margin: 22px 0; border: 0; border-top: 1px solid var(--line); }.config-list { margin: 18px 0; font-size: 12px; }

.lead-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }.lead-card { display: block; padding: 18px; transition: transform .15s ease, border-color .15s ease; }.lead-card:hover { transform: translateY(-2px); border-color: rgba(71,167,255,.3); }.lead-top { display: flex; align-items: center; justify-content: space-between; }.lead-score { display: grid; width: 40px; height: 40px; place-items: center; border: 2px solid var(--blue); border-radius: 50%; color: #dcefff; background: var(--blue-soft); font-weight: 800; }.lead-card h3 { margin: 14px 0 0; }.lead-contact { margin: 2px 0 15px; color: var(--blue); font-size: 12px; }.lead-card dl { margin: 0; }.lead-card dl div { margin-top: 9px; }.lead-card dt { color: var(--muted-2); font-size: 10px; text-transform: uppercase; }.lead-card dd { margin: 2px 0; color: #c1cfdd; font-size: 12px; }.lead-card > small { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted-2); }.lead-card > small b { color: var(--blue); }
.gap-list { display: flex; flex-direction: column; gap: 10px; }.gap-card { display: flex; gap: 15px; padding: 17px; }.gap-card.resolved { opacity: .65; }.gap-count { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 11px; color: var(--amber); background: var(--amber-soft); font-weight: 750; }.gap-card > div:last-child { flex: 1; }.gap-card h3 { margin: 10px 0 2px; font-size: 15px; }.gap-card small { color: var(--muted-2); }.gap-card form { display: flex; align-items: flex-end; gap: 10px; margin-top: 13px; }.gap-card textarea { flex: 1; }

.dialog-card { overflow: hidden; }.dialog-stream { display: flex; min-height: 470px; max-height: calc(100vh - 330px); flex-direction: column; gap: 12px; padding: 20px; overflow-y: auto; }.dialog-message { max-width: 82%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px 13px 13px 4px; background: rgba(255,255,255,.02); }.dialog-message.client { align-self: flex-start; }.dialog-message.ai { align-self: flex-end; border-color: rgba(71,167,255,.18); border-radius: 13px 13px 4px 13px; background: var(--blue-soft); }.dialog-message.human { align-self: flex-end; border-color: rgba(57,213,161,.2); border-radius: 13px 13px 4px 13px; background: var(--mint-soft); }.message-meta { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 10px; }.message-meta strong { color: #c7d7e6; }.dialog-message p { margin: 6px 0 0; white-space: pre-wrap; }.dialog-message > small { color: var(--muted-2); }.manager-compose { display: grid; grid-template-columns: 1fr auto; gap: 9px; padding: 14px; border-top: 1px solid var(--line); }.manager-compose small { grid-column: 1/-1; color: var(--muted-2); }.lead-score-block { display: flex; align-items: center; gap: 10px; margin: 14px 0; }.lead-score-block strong { font-size: 41px; line-height: 1; }.lead-score-block span { color: var(--muted); font-size: 11px; }.detail-list { margin: 0; }.detail-list div { padding: 9px 0; border-top: 1px solid var(--line); }.detail-list dt { color: var(--muted-2); font-size: 10px; text-transform: uppercase; }.detail-list dd { margin: 2px 0 0; }.summary-box { padding: 11px; border-radius: 9px; color: var(--muted); background: rgba(255,255,255,.025); font-size: 12px; }

.product-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }.product-card { position: relative; overflow: hidden; }.product-card summary { display: flex; height: 100%; flex-direction: column; cursor: pointer; list-style: none; }.product-card summary::-webkit-details-marker { display: none; }.product-card summary > img, .product-placeholder { width: 100%; height: 210px; object-fit: cover; background: linear-gradient(145deg,rgba(71,167,255,.09),rgba(169,139,255,.08)); }.product-placeholder { display: grid; place-items: center; color: var(--blue); font-size: 38px; }.product-summary { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 15px; }.product-summary > strong { margin-top: 12px; font-size: 17px; }.product-summary > b { margin: 3px 0 7px; color: var(--mint); }.product-summary > small { color: var(--muted); }.product-summary > em { margin-top: auto; padding-top: 15px; color: var(--blue); font-size: 11px; font-style: normal; }.product-card[open] { grid-column: span 2; }.product-card[open] summary { display: grid; grid-template-columns: 230px 1fr; border-bottom: 1px solid var(--line); }.product-card[open] summary > img, .product-card[open] .product-placeholder { height: 100%; min-height: 210px; }.product-edit { padding: 18px; }.product-edit > label { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; color: #c7d5e3; font-size: 12px; font-weight: 650; }.product-edit input, .product-edit textarea, .product-edit select { padding: 11px 12px; }.product-delete { position: absolute; right: 19px; bottom: 29px; }
.media-metrics { margin-bottom: 17px; }.media-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }.media-card { overflow: hidden; }.media-card > a { display: block; aspect-ratio: 4/3; overflow: hidden; background: rgba(0,0,0,.18); }.media-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }.media-card:hover img { transform: scale(1.025); }.media-card > div:nth-child(2) { position: relative; display: flex; min-width: 0; flex-direction: column; padding: 12px 13px 9px; }.media-card strong { padding-right: 39px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.media-card small { color: var(--muted); }.media-card > div:nth-child(2) > span { position: absolute; top: 11px; right: 12px; padding: 2px 6px; border-radius: 6px; color: var(--mint); background: var(--mint-soft); font-size: 9px; }.media-actions { display: flex; gap: 4px; padding: 0 11px 11px; }.media-actions a { flex: 1; padding: 5px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); text-align: center; font-size: 9px; }.media-actions a:hover { color: var(--text); border-color: rgba(71,167,255,.3); }
.chat-product-card { display: grid; width: min(500px,90%); grid-template-columns: 110px 1fr; gap: 12px; padding: 10px; border: 1px solid rgba(71,167,255,.22); border-radius: 14px; background: linear-gradient(145deg,rgba(71,167,255,.08),rgba(255,255,255,.025)); }.chat-product-card img { width: 110px; height: 100px; border-radius: 9px; object-fit: cover; }.chat-product-card > div { display: flex; min-width: 0; flex-direction: column; }.chat-product-card b { margin: 2px 0 4px; color: var(--mint); }.chat-product-card small { overflow: hidden; color: var(--muted); font-size: 11px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }.chat-product-card a { margin-top: auto; color: var(--blue); font-size: 11px; }.client-media-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-top: 12px; }.client-media-grid a { position: relative; overflow: hidden; border-radius: 9px; aspect-ratio: 1; }.client-media-grid img { width: 100%; height: 100%; object-fit: cover; }.client-media-grid span { position: absolute; right: 4px; bottom: 4px; left: 4px; padding: 3px 5px; border-radius: 5px; color: white; background: rgba(0,0,0,.65); font-size: 8px; text-align: center; }

@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(2,1fr); }.lead-grid, .product-grid { grid-template-columns: repeat(2,1fr); }.media-grid { grid-template-columns: repeat(3,1fr); }.two-one { grid-template-columns: 1fr; }.prompt-card { position: static; }.content-grid aside { min-width: 0; }.login-shell { gap: 50px; padding: 38px; }.orbit-visual { width: 220px; height: 220px; }
}
@media (max-width: 820px) {
  .sidebar { transform: translateX(-102%); transition: transform .22s ease; }.sidebar.open { transform: translateX(0); }.mobile-menu { position: fixed; z-index: 40; top: 15px; left: 15px; display: grid; width: 39px; height: 39px; place-items: center; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--text); background: rgba(10,23,38,.92); box-shadow: var(--shadow); }.app-main { width: 100%; margin-left: 0; padding: 72px 18px 60px; }.page-head, .company-head, .section-head.action-head { align-items: flex-start; flex-direction: column; }.page-head > .button { width: 100%; }.company-head > .button-row { width: 100%; flex-wrap: wrap; }.metric-grid { gap: 10px; }.company-grid { grid-template-columns: 1fr; }.setup-layout, .test-layout, .conversation-layout { grid-template-columns: 1fr; }.chat-shell { min-height: 590px; max-height: none; }.login-shell { min-height: 100vh; grid-template-columns: 1fr; padding: 24px; }.login-visual { display: none; }.login-card { max-width: 480px; width: 100%; margin: auto; }.lead-grid, .product-grid { grid-template-columns: 1fr; }.product-card[open] { grid-column: auto; }.media-grid { grid-template-columns: repeat(2,1fr); }.upload-zone { align-items: stretch; flex-direction: column; }.knowledge-toolbar { align-items: stretch; flex-direction: column; }.gap-card form { align-items: stretch; flex-direction: column; }
}
@media (max-width: 540px) {
  .metric-grid { grid-template-columns: 1fr 1fr; }.metric { min-height: 125px; padding: 15px; }.metric > strong { font-size: 25px; }.metric small { font-size: 10px; }.field-grid { grid-template-columns: 1fr; gap: 0; }.form-card { padding: 18px; }.identity-row { align-items: flex-start; }.company-avatar.large { width: 42px; height: 42px; }.company-head h1 { font-size: 25px; }.button-row { flex-wrap: wrap; }.button-row .button { flex: 1; }.knowledge-item summary { align-items: flex-start; }.knowledge-summary > small, .source-line { display: none; }.knowledge-item summary .status-chip { margin-left: auto; }.inline-delete, .product-delete { position: static; padding: 0 18px 18px; }.product-card[open] summary { grid-template-columns: 1fr; }.product-card[open] summary > img, .product-card[open] .product-placeholder { height: 200px; }.media-grid { grid-template-columns: 1fr; }.chat-product-card { grid-template-columns: 85px 1fr; }.chat-product-card img { width: 85px; height: 85px; }.chat-bubble, .dialog-message { max-width: 92%; }.manager-compose { grid-template-columns: 1fr; }.manager-compose small { grid-column: auto; }.table-card td, .table-card th { padding: 11px; }.actions-cell { min-width: 130px; flex-wrap: wrap; }
}

/* ENTER_C5_2A_WORKSPACE_COMPANY_SWITCHER_V1 */

.workspace-actions {
  align-items: center;
}

.company-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.company-switcher > span {
  font-size: 12px;
  opacity: .68;
}

.company-switcher select {
  min-width: 190px;
  max-width: 280px;
  height: 42px;
  padding: 0 36px 0 12px;
  border-radius: 12px;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 720px) {
  .workspace-actions {
    width: 100%;
    align-items: stretch;
  }

  .company-switcher {
    width: 100%;
    display: flex;
  }

  .company-switcher select {
    flex: 1;
    min-width: 0;
    max-width: none;
  }
}


/* ENTER_C5_2B_ACTIVE_COMPANY_ONBOARDING_V1 */

.sidebar-company-context {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 12px 2px;
  padding: 11px;
  border-radius: 14px;
  text-decoration: none;
}

.sidebar-company-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 11px;
  font-weight: 700;
}

.sidebar-company-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.sidebar-company-copy small {
  font-size: 10px;
  opacity: .58;
}

.sidebar-company-copy strong {
  max-width: 145px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.sidebar-company-arrow {
  margin-left: auto;
  opacity: .55;
}

.sidebar-switch-link {
  display: block;
  margin: 0 23px 12px 57px;
  font-size: 11px;
  opacity: .62;
  text-decoration: none;
}

.onboarding-shell {
  max-width: 1040px;
  margin: 0 auto;
  padding-top: 5vh;
}

.onboarding-hero {
  padding: clamp(24px, 5vw, 52px);
}

.onboarding-hero h1 {
  max-width: 720px;
  margin-top: 14px;
}

.onboarding-copy {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.65;
}

.onboarding-actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

.onboarding-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.onboarding-step {
  display: flex;
  gap: 14px;
  padding: 20px;
}

.onboarding-step > span {
  font-weight: 700;
  opacity: .5;
}

.onboarding-step strong {
  display: block;
  margin-bottom: 6px;
}

.onboarding-step p {
  margin: 0;
  opacity: .68;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .onboarding-shell {
    padding-top: 12px;
  }

  .onboarding-steps {
    grid-template-columns: 1fr;
  }

  .onboarding-actions .button {
    width: 100%;
  }
}
