@font-face {
  font-family: xVf;
  src: url('/assets/XVF-Variable.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #08090b;
  --panel: #121419;
  --raised: #181b22;
  --text: #f3f4f6;
  --muted: #a5a8b1;
  --brand: #2448ed;
  --accent: #9eb2ff;
  --line: #ffffff19;
  --ease: cubic-bezier(.22,.7,.24,1);
  font: 16px/1.48 xVf, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p { margin: 0; }
body { min-width: 290px; }
a { color: inherit; text-decoration: none; }
svg { flex-shrink: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #90abff; outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, strong { font-weight: 500; }
h1 { font-size: clamp(2.35rem, 5vw, 4.25rem); letter-spacing: -.037em; line-height: 1.03; overflow-wrap: anywhere; }
h2 { font-size: 1.23rem; letter-spacing: -.02em; line-height: 1.15; }
.muted, small { color: var(--muted); }
small { font-size: .79rem; }
.preline { white-space: pre-wrap; overflow-wrap: anywhere; }
.mark { display: block; object-fit: contain; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 42px; padding: 8px 16px; border: 1px solid transparent;
  border-radius: 999px; font-size: .88rem; font-weight: 500; color: var(--text); white-space: nowrap;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.button.primary { background: var(--brand); border-color: #5270ff; color: #fff; }
.button.primary:hover { background: #3558fa; }
.button.secondary { border-color: #ffffff30; background: transparent; }
.button.secondary:hover { border-color: #ffffff68; background: #ffffff0a; }
.button.wide { width: 100%; }
.button.compact { min-height: 34px; padding: 5px 11px; }
.text-link { color: var(--accent); font-size: .87rem; }
.text-link:hover { text-decoration: underline; }
.stack { display: grid; align-items: start; justify-items: start; gap: 13px; margin-top: 16px; }
.field { width: 100%; display: grid; gap: 5px; min-width: 0; }
.field label { font-size: .88rem; font-weight: 500; }
.field :is(input, select, textarea) {
  width: 100%; min-width: 0; min-height: 43px; padding: 9px 11px; color: var(--text); background-color: #0c0e13;
  border: 1px solid #ffffff27; border-radius: 9px; font-size: .92rem;
}
.field :is(input, textarea)::placeholder { color: #888d9a; }
.field :is(input, select, textarea):focus { border-color: #7195ff; }
.field textarea { resize: vertical; }
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #a2b3df 50%),
                    linear-gradient(135deg, #a2b3df 50%, transparent 50%);
  background-position: right 17px center, right 12px center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.field select { padding-right: 31px; }
.field-grid { width: 100%; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.alert { display: flex; align-items: center; gap: 7px; background: #142039; border: 1px solid #2d436f; color: #c9d7ff; padding: 9px 13px; border-radius: 10px; font-size: .88rem; margin-bottom: 14px; }
.alert.error { background: #2b191d; border-color: #61363f; color: #ffc0c3; }
.auth-shell { display: grid; grid-template-columns: minmax(390px, .86fr) minmax(0, 1fr); min-height: 100dvh; }
.auth-main { min-width: 0; display: flex; flex-direction: column; padding: 24px clamp(23px,5vw,72px); }
.auth-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand-mark { display: inline-flex; align-items: center; }
.auth-form { width: min(390px, 100%); margin: auto; padding: 42px 0 46px; }
.auth-form h1 { font-size: clamp(2.4rem,4.7vw,3.8rem); margin: 8px 0 11px; }
.auth-form .stack { gap: 14px; margin-top: 25px; }
.auth-form .alert { margin-top: 16px; margin-bottom: 0; }
.auth-form .button.wide { margin-top: 3px; }
.auth-art {
  background:
    linear-gradient(90deg, #08090b, transparent 26%),
    linear-gradient(0deg, #08090b 0%, transparent 28%, transparent 84%, #0a0a13b8 100%),
    url('/assets/caesar.jpeg') 57% center / cover no-repeat, #131c72;
}
.workspace-frame { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.workspace-header { border-bottom: 1px solid var(--line); background: #0c0e12; }
.workspace-bar { display: flex; justify-content: space-between; align-items: center; min-height: 65px; gap: 16px; }
.workspace-bar > div { display: flex; align-items: center; gap: 14px; }
.preview-label { color: var(--muted); font-size: .79rem; white-space: nowrap; }
.workspace-bar .button { min-height: 36px; }
.workspace { display: grid; gap: 24px; padding-block: 24px 40px; }
.workspace > .alert { margin: 0; }
.workspace-hero {
  display: flex; align-items: center; min-height: 150px; padding: 22px 28px;
  position: relative; isolation: isolate; overflow: hidden;
  border: 1px solid #536ff441; border-radius: 14px; background: #10152a;
}
.workspace-hero::before {
  content: ""; z-index: -1; position: absolute; inset: 0 0 0 39%;
  background: linear-gradient(0deg,#0d132968,#111a3d22), url('/assets/caesar.jpeg') right 39% / cover no-repeat;
  mask-image: linear-gradient(90deg, transparent, #000 50%);
}
.workspace-hero h1 { font-size: clamp(2.05rem,4.7vw,3.55rem); max-width: 22ch; }
.connector-section { display: grid; gap: 12px; }
.connector-section h2 { font-size: 1.36rem; }
.connector-grid, .access-grid { display: grid; gap: 12px; }
.connector-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.connector-card {
  min-width: 0; display: grid; align-content: space-between; gap: 12px;
  padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.connector-card:hover, .connector-card:focus-within { background: var(--raised); border-color: #8398f94d; }
.connector-card .button { width: 100%; min-height: 37px; border-radius: 8px; padding: 6px 10px; }
.connector-name {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 26px; padding: 1px;
  font-size: .92rem; text-align: center;
}
.connector-logo { object-fit: contain; flex: 0 0 24px; }
.logo-chatgpt, .logo-grok, .logo-hermes { border-radius: 5px; background: #f3f4f6; padding: 2px; }
.panel { min-width: 0; min-height: 150px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.panel p { font-size: .88rem; color: var(--muted); overflow-wrap: anywhere; }
.count { font-variant-numeric: tabular-nums; background: #20305a; color: #d7e1ff; border-radius: 6px; padding: 2px 6px; font-size: .73rem; }
.disclosure, .record { min-width: 0; }
.disclosure { margin-top: 9px; border-top: 1px solid var(--line); }
:is(.disclosure,.record,.access) summary {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 40px; cursor: pointer; list-style: none; font-size: .88rem;
}
:is(.disclosure,.record,.access) summary::-webkit-details-marker { display:none; }
:is(.disclosure,.record,.access) summary > svg { color: var(--muted); transition: transform .18s var(--ease); }
:is(.disclosure,.record,.access)[open] > summary > svg { transform: rotate(90deg); }
.disclosure summary .count { margin-left: 4px; }
.disclosure[open], .record[open] { padding-bottom: 4px; }
.disclosure[open] > summary, .record[open] > summary { color: var(--accent); }
.panel .stack { margin-top: 9px; }
.items { display: grid; margin-block: 2px; }
.item { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 3px; border-radius: 7px; font-size: .87rem; }
.item + .item, .record + .record { border-top: 1px solid var(--line); }
.item svg { color: var(--muted); }
a.item:hover, a.item[aria-current] { background: #ffffff09; }
.item strong, .item small, .record strong, .record small { display: block; overflow-wrap: anywhere; }
.item small, .record small { margin-top: 2px; }
.record { padding-inline: 3px; font-size: .87rem; }
.record p + p { margin-top: 5px; }
.record .button, .sample-action { margin-top: 8px; }
.access.panel { min-height: auto; padding-block: 8px; }
.access-grid { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; padding-block: 8px 10px; }
.copy-field div { display: flex; min-width: 0; gap: 6px; }
.copy-field input { font: .78rem ui-monospace, monospace; }
.copy-field .button { flex-shrink: 0; }
.button.compact { min-height: 34px; padding: 5px 11px; }
.secret-box { margin-top: 10px; padding: 10px; border: 1px solid #6784fe61; border-radius: 9px; background: #161e37; }
.secret-box small { display: block; margin-top: 4px; }
.inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.setup-dialog {
  width: min(470px,calc(100% - 30px)); max-height: calc(100dvh - 26px); overflow: auto;
  padding: 20px; color: var(--text); background: var(--panel); border: 1px solid #ffffff30; border-radius: 15px;
}
.setup-dialog::backdrop { background: #05060bb8; }
.setup-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.setup-dialog p { margin-block: 10px; color: var(--muted); font-size: .88rem; }
.setup-dialog pre {
  max-width: 100%; max-height: 235px;  margin: 0 0 12px;
  overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; padding: 10px;
  border: 1px solid var(--line); border-radius: 8px; background: #090b10; color: #dce5ff; font: .79rem/1.5 ui-monospace,monospace;
}
.setup-dialog small { display: block; margin-top: 9px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.workspace-tabs {
  display: flex; flex-wrap: wrap; gap: 5px 14px; align-items: center;
  border-bottom: 1px solid var(--line); padding: 3px 0 0;
}
.workspace-tabs a {
  display: inline-flex; align-items: center; padding: 10px 12px 12px;
  min-height: 44px; margin-bottom: -1px; color: var(--muted);
  border-bottom: 2px solid transparent; font-size: .92rem;
}
.workspace-tabs a:hover { color: var(--text); background: #ffffff07; }
.workspace-tabs a[aria-current] { color: #e3eaff; border-color: #819dff; font-weight: 500; }
.workspace-content { min-width: 0; padding-block: 25px 9px; }
.section-head, .section-tools {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 14px 22px; flex-wrap: wrap;
}
.section-head > div:first-child { min-width: 0; }
.section-head h2 { font-size: clamp(1.65rem,3vw,2.1rem); }
.section-head p { color: var(--muted); margin-top: 6px; max-width: 63ch; }
.section-tools { margin: 24px 0 12px; align-items: center; }
.graph-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px 12px; }
.graph-title span { color: var(--muted); font-size: .86rem; }
.search-form { min-width: 0; display: flex; align-items: center; gap: 7px; }
.search-form input {
  flex: 1; width: 100%; min-width: 0; min-height: 38px; padding: 8px 11px;
  color: var(--text); background: #10131a; border: 1px solid #ffffff27; border-radius: 8px;
  font-size: .9rem;
}
.search-results { display: grid; gap: 4px; max-width: 530px; margin-bottom: 14px; }
.search-results .text-link { margin-top: 3px; }
.brain-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(240px, 1fr); gap: 27px; align-items: start; }
.graph-layout {
  display: grid; grid-template-columns: minmax(0,3fr) minmax(220px,1fr);
  align-items: start; gap: 20px;
}
.memory-map {
  min-width: 0; overflow: hidden; border: 1px solid #536eac5c; border-radius: 14px;
  background: #050608;
}
.graph-bar, .graph-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; }
.graph-bar { position: relative; z-index: 1; }
.graph-footer { color: #a4afcd; font-size: .79rem; flex-wrap: wrap; }
.graph-picker { width: min(250px, 100%); }
.graph-picker .ui-select-trigger { min-height: 36px; }
.graph-tools { gap: 5px; flex-wrap: nowrap; }
.graph-tools button { min-width: 36px; }
.map-canvas {
  display: block; width: 100%; height: clamp(355px,55vh,580px); cursor: grab; touch-action: none;
  background: radial-gradient(ellipse at center,#10173144,transparent 70%), #050608;
}
.map-canvas.is-panning { cursor: grabbing; }
.map-canvas:focus-visible { outline-offset: -3px; }
.graph-path ol { list-style: none; margin: 3px 0 0; padding: 0 0 0 10px; border-left: 1px solid #718cde; }
.graph-path li { display: grid; gap: 2px; padding: 4px 0; color: var(--text); overflow-wrap: anywhere; }
.graph-path li:last-child { color: #b6c8ff; }
.graph-inspector { padding: 13px 15px; background: #101520; border-radius: 12px; }
.memory-inspector { display: grid; justify-items: start; gap: 9px; min-width: 0; padding-block: 11px; }
.memory-inspector h2 { overflow-wrap: anywhere; }
.memory-inspector p { max-height: 270px; overflow: auto; color: var(--muted); font-size: .91rem; }
.workspace-editor { max-width: 780px; margin: 19px 0 22px; }
.link-fields { grid-template-columns: repeat(3,minmax(0,1fr)); }
.workspace-disclosure { margin-top: 19px; }
.workspace-disclosure > summary { min-height: 49px; font-size: .95rem; }
.workspace-disclosure summary small { margin-left: 5px; }
.library-layout, .billing-layout { display: grid; grid-template-columns: minmax(230px, .7fr) minmax(0, 1.6fr); gap: 24px 34px; margin-top: 23px; }
.library-list { min-width: 0; }
.library-list .search-form { margin-bottom: 9px; }
.library-list .items { gap: 3px; }
.library-item { min-height: 50px; justify-content: flex-start; gap: 9px; padding: 7px 9px; }
.library-item + .library-item { border-top: 0; }
.library-item[aria-current] { background: #192342; }
.library-item svg { color: var(--accent); }
.library-detail { min-width: 0; border-left: 1px solid var(--line); padding-left: 27px; }
.compact-head h2 { font-size: 1.4rem; overflow-wrap: anywhere; }
.compact-head p { font-size: .86rem; }
.document-body { margin: 16px 0; }
.empty-detail { margin-top: 8px; }
.context-picker { width: 100%; min-width: 0; padding: 0; margin: 0; border: 0; }
.context-picker legend { padding: 0 0 4px; font-weight: 500; }
.context-picker legend small { margin-left: 5px; font-weight: 400; }
.context-picker label { display: flex; align-items: baseline; gap: 6px; padding: 3px 0; overflow-wrap: anywhere; }
.context-picker input { accent-color: #6787ff; }
.context-picker label small { margin-left: 4px; }
.linked-context { margin-top: 22px; }
.agent-goal { margin-top: 12px; color: var(--accent); overflow-wrap: anywhere; }
.billing-layout { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px 50px; }
.billing-layout > div { max-width: 480px; }
.billing-layout h2 + p { margin-top: 10px; }
.billing-details { margin: 8px 0 10px; }
.billing-details div { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.billing-details dt { color: var(--muted); }
.billing-details dd { margin: 0; }
.ai-prompt {
  justify-self: start; max-width: 100%; display: grid; align-items: center;
  grid-template-columns: auto minmax(0,1fr) auto; gap: 12px;
  min-height: 51px; padding: 5px 5px 5px 12px;
  border: 1px solid #39415a; border-radius: 12px; background: #141925;
}
.ai-prompt:hover, .ai-prompt:focus-within { border-color: #6984d9; }
.prompt-logos { display: flex; align-items: center; gap: 6px; border-right: 1px solid var(--line); padding-right: 12px; }
.prompt-logos img { object-fit: contain; }
.ai-prompt p { font-size: .99rem; font-weight: 500; padding-right: 4px; }
.prompt-copy {
  display: grid; place-items: center; width: 43px; height: 41px;
  color: #e6ecff; background: #222b42; border: 1px solid #8299de50; border-radius: 8px;
}
.prompt-copy:hover { background: #2b3c64; }
.prompt-copy span { display: grid; place-items: center; }
.prompt-copy .copied-icon, .prompt-copy[data-copied] .copy-icon { display: none; }
.prompt-copy[data-copied] .copied-icon { display: grid; color: #b6efda; }
.ai-prompt textarea {
  grid-column: 1/-1; width: 100%; background: #0c0e13; color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; padding: 9px;
}
.subnav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 18px 0; }
.subnav a { display: inline-flex; min-height: 37px; align-items: center; padding: 5px 11px; border-radius: 7px; color: var(--muted); font-size: .88rem; }
.subnav a:hover { background: #ffffff0b; color: var(--text); }
.subnav a[aria-current] { background: #1d2b4d; color: #e7edff; }
.organization-layout { display: grid; grid-template-columns: minmax(210px,.8fr) minmax(0,1.35fr); gap: 24px 44px; }
.org-pane { min-width: 0; }
.org-pane > h2 { margin-bottom: 10px; }
.org-pane > p, .org-source-head p { color: var(--muted); margin-top: 6px; }
.org-pane .stack { max-width: 510px; }
.org-pane .pending-invites { margin-top: 25px; }
.pending-invites h2 { margin-bottom: 7px; }
.member-row { padding-block: 9px; flex-wrap: wrap; }
.member-row small.inline-meta { display: inline; }
.member-row .inline-actions small { margin: 0; }
.org-source-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 17px; }
.org-source-head > div { min-width: 0; }
.source-row { flex-wrap: wrap; padding-block: 13px; }
.source-row p { margin-top: 5px; max-width: 62ch; overflow-wrap: anywhere; }
.token-pane { margin-top: 24px; max-width: 590px; }
.token-pane > .items { margin-top: 12px; }
.brain-controls { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0; }
.brain-controls .subnav { margin: 0; }
.brain-search select {
  max-width: 190px; min-height: 38px; padding: 5px 31px 5px 8px; font-size: .85rem;
  color: var(--text); background-color: #10131a; border: 1px solid #ffffff27; border-radius: 8px;
}
.brain-search input { min-width: 175px; }
.ui-select { min-width: 0; width: 100%; position: relative; }
.ui-select:has(.ui-select-menu:not([hidden])) { z-index: 4; }
.ui-select-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 43px; padding: 8px 13px 8px 11px;
  border: 1px solid #ffffff27; border-radius: 9px;
  background: #10131c; color: var(--text); font-size: .92rem; text-align: left;
  transition: background .16s var(--ease), border-color .16s var(--ease);
}
.ui-select-trigger span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ui-select-trigger::after {
  content: ""; width: 7px; height: 7px; flex: 0 0 7px;
  border: solid var(--accent); border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg); transition: transform .16s var(--ease);
}
.ui-select-trigger:hover, .ui-select-trigger[aria-expanded="true"] { background: #181f30; border-color: #8398f99c; }
.ui-select-trigger[aria-expanded="true"]::after { transform: translateY(2px) rotate(225deg); }
.ui-select-trigger[aria-invalid="true"] { border-color: #db7a80; }
.ui-select-error { display: block; color: #ffb5bd; font-size: .83rem; margin-top: 5px; }
.ui-select-menu {
  position: absolute; inset-inline: 0; top: calc(100% + 6px);
  max-height: min(250px, 42dvh); overflow: auto; overscroll-behavior: contain;
  padding: 4px; background: #141a29; border: 1px solid #5b6d9d; border-radius: 10px;
  box-shadow: 0 10px 24px #020308ac; color: var(--text);
  animation: select-open .16s var(--ease) both;
}
.ui-select.drop-up .ui-select-menu { top: auto; bottom: calc(100% + 6px); }
.ui-select-option { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 37px; border-radius: 6px; padding: 6px 9px; font-size: .88rem; cursor: pointer; overflow-wrap: anywhere; }
.ui-select-option:is(:hover,[data-active]):not([aria-disabled]) { background: #26375f; color: #fff; }
.ui-select-option[aria-selected="true"]:not([aria-disabled])::after {
  content: ""; width: 6px; height: 10px; flex: 0 0 6px;
  margin-right: 5px; transform: rotate(45deg); border: solid #aebeff; border-width: 0 2px 2px 0;
}
.ui-select-option[aria-disabled] { color: var(--muted); cursor: default; }
.brain-search .ui-select { width: 182px; min-width: min(155px,100%); }
.brain-search .ui-select-trigger { min-height: 38px; font-size: .85rem; }
@keyframes select-open { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: translateY(0); } }
.update-queue { display: grid; gap: 14px; margin-top: 21px; }
.update-card { display: grid; gap: 9px; background: #11151e; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.update-heading { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; overflow-wrap: anywhere; }
.update-heading p { color: var(--muted); margin-top: 4px; font-size: .87rem; }
.update-evidence { margin: 0; display: grid; gap: 6px; font-size: .9rem; }
.update-evidence div { display: grid; grid-template-columns: 113px minmax(0, 1fr); gap: 9px; }
.update-evidence dt { color: var(--muted); }
.update-evidence dd { margin: 0; }
.update-preview { margin-top: 0; }
.update-texts { display: grid; gap: 10px; }
.update-texts.comparison { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.update-texts div { min-width: 0; background: #0c0e14; padding: 10px; border-radius: 8px; overflow-wrap: anywhere; }
.update-texts p { max-height: 280px; overflow: auto; margin-top: 4px; color: #c1cae1; }
@supports (interpolate-size: allow-keywords) {
  :is(.record,.disclosure)::details-content {
    interpolate-size: allow-keywords; overflow: clip; block-size: 0;
    transition: block-size .18s var(--ease), content-visibility .18s allow-discrete;
  }
  :is(.record,.disclosure)[open]::details-content { block-size: auto; }
}
.brain-layout.brain-browse { grid-template-columns: minmax(235px, .85fr) minmax(0, 1.45fr); }
.brain-records { min-width: 0; }
.brain-records-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.brain-records .items { gap: 3px; }
.brain-record {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 10px;
  padding: 8px 9px; color: var(--text);
}
.brain-record + .brain-record { border-top: 0; }
.brain-record.item[aria-current] { background: #1a2544; }
.brain-record .node-icon { width: 31px; height: 31px; }
.list-empty { margin-block: 9px; }
.record-inspector { padding: 16px 19px; background: #11151e; border-radius: 12px; }
.record-inspector h2 { font-size: 1.32rem; }
.record-inspector p { max-height: 320px; }
.graph-title { margin-bottom: 10px; }
.memory-review { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.review-tag, .item .review-tag { display: inline-flex; align-items: center; gap: 4px; color: #b7ecda; }
.record-links { width: 100%; margin-top: 8px; }
.record-links h2 { font-size: 1rem; margin-bottom: 7px; }
.record-links .item { flex-wrap: wrap; }
@media (max-width: 770px) {
  .auth-shell { min-height: 100dvh; grid-template-columns: 1fr; position: relative; }
  .auth-main { position: relative; z-index: 1; min-height: 100dvh; }
  .auth-art { position: absolute; inset: 0; opacity: .19; background-position: center; }
  .auth-form { width: min(420px,100%); }
  .workspace-frame { width: calc(100% - 30px); }
  .workspace { gap: 18px; padding-block: 16px 28px; }
  .connector-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .workspace-hero { min-height: 126px; padding: 19px; }
  .brain-layout, .brain-layout.brain-browse, .graph-layout { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .organization-layout { grid-template-columns: 1fr; }
  .brain-search { flex-wrap: wrap; }
  .memory-inspector p { max-height: none; }
  .library-layout { grid-template-columns: 1fr; gap: 15px; }
  .library-detail { border-left: 0; border-top: 1px solid var(--line); padding: 14px 0 0; }
}
@media (max-width: 525px) {
  .access-grid, .billing-layout, .link-fields { grid-template-columns: 1fr; }
  .workspace-tabs { gap: 0 2px; }
  .ai-prompt { gap: 7px; padding-left: 9px; }
  .ai-prompt p { font-size: .88rem; padding-right: 0; }
  .prompt-logos { gap: 4px; padding-right: 7px; }
  .prompt-logos img { width: 18px; height: 18px; }
  .brain-search input { min-width: min(185px,100%); }
  .update-texts.comparison { grid-template-columns: 1fr; }
  .record-inspector { padding: 13px; }
  .workspace-tabs a { padding-inline: 8px; font-size: .84rem; }
  .section-tools .search-form { width: 100%; }
  .panel { padding-inline: 13px; min-height: 0; }
  .connector-card { padding: 10px; gap: 8px; }
  .connector-grid { gap: 7px; }
  .connector-name { font-size: .82rem; gap: 5px; }
  .connector-logo { width: 21px; height: 21px; flex-basis: 21px; }
  .workspace-hero::before { inset-inline-start: 22%; opacity: .65; }
}
.auth-options { display: grid; gap: 8px; margin-top: 21px; }
.auth-options .button { justify-content: flex-start; min-height: 44px; padding-inline: 16px; }
.auth-form .button:disabled { opacity: .64; cursor: default; }
.provider-icon { display: block; width: 19px; height: 19px; flex: 0 0 19px; object-fit: contain; margin-right: 3px; }
.email-option { color: var(--muted); font-size: .86rem; margin-top: 16px; }
.email-option + .stack { margin-top: 9px; }
.code-intro { color: var(--muted); margin: 8px 0 12px; overflow-wrap: anywhere; }
.code-intro strong { color: var(--text); }
.field .code-input { font: 1.12rem ui-monospace, monospace; letter-spacing: .22em; }
.code-message { display: grid; justify-items: start; gap: 5px; background: #151d32; border: 1px solid #6f8de848; border-radius: 12px; padding: 12px 15px; }
.code-message strong { font: 600 1.2rem ui-monospace, monospace; letter-spacing: .16em; }
.resend-code { margin-top: 14px; }
.workspace-content { view-transition-name: workspace-content; }
#section-heading[tabindex="-1"]:focus { outline: none; }
.workspace-tabs a, .subnav a { transition: color .16s var(--ease), background .16s var(--ease), border-color .16s var(--ease); }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-old(workspace-content) { animation: workspace-out .11s ease both; }
::view-transition-new(workspace-content) { animation: workspace-in .18s var(--ease) both; }
.auth-form { animation: workspace-in .21s var(--ease) both; }
@keyframes workspace-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes workspace-out { to { opacity: 0; transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  .ui-select-menu, .auth-form { animation: none; }
}

.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.plan-card {
  position: relative; isolation: isolate; min-width: 0; min-height: 284px;
  display: flex; flex-direction: column; padding: 24px 18px 18px; gap: 11px; text-align: center;
  background: #101520; border: 1px solid #ffffff24; border-radius: 12px;
}
.plan-card[data-plan="free"] { --plan-art: url('/assets/billing/rome-arch.webp'); }
.plan-card[data-plan="starter"] { --plan-art: url('/assets/billing/caesar.webp'); --plan-art-position: center 26%; }
.plan-card[data-plan="team"] { --plan-art: url('/assets/billing/roman-woman.webp'); --plan-art-position: center 18%; }
.plan-card[data-plan="enterprise"] { --plan-art: url('/assets/billing/winged-victory.webp'); --plan-art-position: center 22%; }
.plan-card::before, .plan-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.plan-card::before {
  z-index: -2; background: #2b3f86 var(--plan-art) var(--plan-art-position, center) / cover no-repeat;
  background-blend-mode: luminosity;
}
.plan-card::after {
  z-index: -1; background: linear-gradient(180deg, #070a16ba, #080c19bf 39%, #0a0f1ee6 72%, #0d1320 100%);
}
.plan-card.selected-plan { border-color: #708de9; }
.plan-price { display: grid; align-content: start; gap: 2px; min-height: 55px; }
.plan-price strong { font-size: 1.65rem; line-height: 1.14; }
.plan-price small, .plan-features { color: #d3dbef; }
.plan-features { flex: 1; list-style: none; padding: 0; margin: 0 0 8px; font-size: .88rem; }
.plan-features li + li { margin-top: 5px; }
.plan-card .button.secondary { background: #0c1123ab; }
.plan-card a.button.secondary:hover { background: #242f53; }
.plan-card .button:disabled, .plan-card .plan-current { background: #ffffff0a; border-color: #ffffff30; color: #b2bccf; cursor: default; }
.billing-note { margin-top: 12px; overflow-wrap: anywhere; }
.billing-overview { display: flex; flex-wrap: wrap; gap: 15px 34px; margin-top: 17px; }
.billing-overview div { min-width: 128px; display: grid; gap: 3px; }
.billing-overview strong { font-size: 1.08rem; }

@media (max-width: 920px) {
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 505px) {
  .plan-grid { grid-template-columns: 1fr; }
  .plan-price { min-height: auto; }
}
