* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button:focus-visible { outline-offset: 2px; }
svg { flex-shrink: 0; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 9px; font-size: 28px; line-height: 1.3; font-weight: 600; letter-spacing: -.8px; }
h2 { font-size: 17px; line-height: 1.4; font-weight: 600; }
h3 { font-size: 15px; font-weight: 650; }
p { margin-bottom: 12px; }
code, pre { font-family: var(--mono); }
code { font-size: 12px; }
pre { max-width: 100%; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 10px 14px; background: var(--surface); }
.skip-link:focus { top: 12px; }
.initial-loading { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 18px; color: var(--muted); }
.brand-symbol { width: 35px; height: 35px; background: var(--primary); color: var(--on-dark); display: grid; place-items: center; border-radius: 9px 9px 9px 3px; font-size: 18px; line-height: 1; font-weight: 600; flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.brand-name { display: block; font-size: 20px; font-weight: 650; letter-spacing: -.65px; line-height: 1.2; white-space: nowrap; }
.brand-subtitle { color: var(--muted); font-size: 10px; letter-spacing: 1.2px; display: block; margin-top: 5px; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 230px minmax(0, 1fr); }
.sidebar { background: var(--nav); color: var(--ink); height: 100dvh; position: sticky; top: 0; padding: 26px 14px 18px; display: flex; flex-direction: column; overflow-y: auto; border-right: 1px solid var(--line); }
.sidebar .brand { padding: 0 12px 25px; }
.nav-group-title { font-size: 10px; color: var(--nav-muted); letter-spacing: .8px; padding: 23px 14px 8px; font-weight: 500; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 10px 14px; color: var(--muted); border-radius: 6px; margin: 3px 0; text-decoration: none; font-size: 13px; min-height: 42px; transition: background .15s, color .15s; }
.nav-link:hover { color: var(--ink); background: var(--surface-subtle); text-decoration: none; }
.nav-link.active { color: var(--ink); background: var(--nav-active); font-weight: 600; }
.nav-link.active::after { content: ""; width: 4px; height: 4px; background: var(--accent); border-radius: 50%; margin-left: auto; }
.sidebar-bottom { margin-top: auto; padding: 28px 12px 0; }
.sidebar-note { border-top: 1px solid var(--line); padding-top: 17px; font-size: 11px; color: var(--nav-muted); }
.sidebar-note strong { display: block; color: var(--ink); font-weight: 500; margin-bottom: 4px; }
.workspace { min-width: 0; }
.topbar { min-height: 76px; padding: 0 36px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.breadcrumb { font-size: 12px; color: var(--muted); display: flex; gap: 11px; align-items: center; }
.breadcrumb strong { color: var(--ink); font-weight: 500; }
.topbar-right { display: flex; gap: 18px; align-items: center; min-width: 0; }
.identity { display: flex; align-items: center; gap: 9px; min-width: 0; }
.avatar { width: 31px; height: 31px; border-radius: 50%; color: var(--ink); background: var(--nav-active); display: grid; place-items: center; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.user-email { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.main { padding: 35px 36px 48px; max-width: 1660px; margin: 0 auto; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 28px; }
.eyebrow { font-size: 10px; letter-spacing: 1.3px; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.page-description { color: var(--muted); font-size: 13px; margin-bottom: 0; max-width: 710px; }
.button { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 14px; font-size: 12px; font-weight: 500; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.button:hover { background: var(--surface-subtle); border-color: var(--line-strong); }
.button.primary { background: var(--primary); border-color: var(--primary); color: var(--on-dark); }
.button.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.button.danger { color: var(--danger); background: var(--surface); border-color: var(--danger-line); }
.button.danger:hover { background: var(--danger-soft); }
.button.small { min-height: 32px; padding: 5px 10px; font-size: 11px; }
.button.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.button.icon-only { width: 36px; min-height: 36px; padding: 6px; }
.button-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.card-pad { padding: 24px; }
.card-header { padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.card-header h2, .card-header h3 { margin: 0; }
.card-header p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 23px; }
.metric { padding: 22px 23px; position: relative; }
.metric-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.metric-label svg { color: var(--faint); }
.metric-value { font-size: 31px; font-weight: 600; line-height: 1; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.metric-note { font-size: 11px; color: var(--muted); margin-top: 12px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: 22px; margin-bottom: 22px; }
.connection-map { padding: 31px 28px 22px; }
.map-track { display: flex; align-items: center; gap: 0; }
.map-node { display: flex; flex-direction: column; align-items: center; width: 26%; gap: 11px; text-align: center; }
.map-node span { font-size: 11px; color: var(--muted); }
.map-node strong { display: block; color: var(--ink); font-size: 12px; font-weight: 600; }
.map-node-icon { width: 46px; height: 46px; border: 1px solid var(--line); background: var(--surface-subtle); border-radius: 9px; display: grid; place-items: center; color: var(--accent); }
.map-node-icon.featured { background: var(--ink); color: var(--mint); border-color: var(--ink); }
.map-line { flex: 1; height: 1px; background: var(--line-strong); position: relative; margin-top: -42px; }
.map-line::after { content: ""; width: 5px; height: 5px; border-top: 1px solid var(--line-strong); border-right: 1px solid var(--line-strong); position: absolute; right: 0; top: -2px; transform: rotate(45deg); }
.map-caption { background: var(--surface-subtle); border-top: 1px solid var(--line); padding: 13px 24px; color: var(--muted); font-size: 11px; }
.step-list { list-style: none; padding: 5px 24px 17px; margin: 0; }
.step-list li { display: flex; gap: 12px; padding-top: 16px; }
.step-number { width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-subtle); color: var(--muted); display: grid; place-items: center; flex-shrink: 0; font: 11px var(--mono); }
.step-list strong { font-size: 12px; font-weight: 600; }
.step-list p { font-size: 11px; color: var(--muted); margin: 3px 0 0; }
.notice { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: var(--surface-subtle); margin-bottom: 22px; }
.notice svg { margin-top: 2px; }
.notice p { margin: 0; }
.notice.warning { background: var(--warning-soft); border-color: var(--warning-line); color: var(--warning); }
.notice.error { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger); }
.table-wrap { width: 100%; overflow: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; white-space: nowrap; }
th { font-size: 11px; color: var(--muted); font-weight: 500; background: var(--surface-subtle); padding: 12px 22px; border-bottom: 1px solid var(--line); }
td { padding: 16px 22px; border-bottom: 1px solid var(--line); font-size: 12px; vertical-align: middle; max-width: 360px; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--surface-subtle); }
.cell-title { display: block; font-weight: 600; }
.cell-sub { display: block; font-size: 10px; color: var(--muted); margin-top: 3px; max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.mono { font-family: var(--mono); font-size: 11px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; border-radius: 4px; padding: 3px 7px; color: var(--muted); background: var(--nav-active); white-space: nowrap; }
.badge.good { color: var(--accent-dark); background: var(--accent-soft); }
.badge.warn { color: var(--warning); background: var(--warning-soft); }
.badge.bad { color: var(--danger); background: var(--danger-soft); }
.empty { padding: 56px 22px; text-align: center; }
.empty-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 9px; background: var(--surface-subtle); border: 1px solid var(--line); color: var(--faint); margin-bottom: 16px; }
.empty h3 { margin: 0 0 6px; }
.empty p { color: var(--muted); font-size: 12px; max-width: 390px; margin: 0 auto 18px; }
.loading { padding: 54px; text-align: center; color: var(--muted); font-size: 12px; }
.spinner { width: 17px; height: 17px; display: inline-block; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: middle; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
.field { display: block; margin-bottom: 18px; min-width: 0; }
.field-label { display: block; color: var(--ink); font-size: 12px; font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea, .field select, .input { width: 100%; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--surface); padding: 10px 12px; min-height: 41px; color: var(--ink); outline-offset: 2px; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field textarea { min-height: 105px; resize: vertical; }
.field small { display: block; color: var(--muted); font-size: 11px; margin-top: 5px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.check-field { display: flex; align-items: center; gap: 9px; font-size: 12px; cursor: pointer; margin: 10px 0 18px; }
.check-field input { accent-color: var(--accent); width: 16px; height: 16px; }
.dialog-backdrop { position: fixed; inset: 0; z-index: 40; background: var(--scrim); display: grid; place-items: center; padding: 24px; overflow: auto; }
.dialog { width: min(100%, 540px); max-height: calc(100dvh - 48px); overflow: auto; border-radius: 10px; background: var(--surface); box-shadow: var(--dialog-shadow); }
.dialog.wide { width: min(100%, 720px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); gap: 14px; }
.dialog-header h2 { margin: 0; }
.dialog-body { padding: 24px; }
.dialog-footer { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 9px; background: var(--surface-subtle); }
.form-footer { margin: 24px -24px -24px; }
.space-bottom { margin-bottom: 22px; }
.no-bottom { margin-bottom: 0; }
.wrap-text { white-space: normal; overflow-wrap: anywhere; }
.chat-list-empty { padding: 15px 22px; }
.form-error { color: var(--danger); background: var(--danger-soft); padding: 9px 12px; font-size: 12px; border-radius: 5px; margin-top: 8px; }
.toast-region { position: fixed; bottom: 24px; right: 24px; z-index: 80; display: grid; gap: 8px; max-width: min(460px, calc(100vw - 40px)); }
.toast { padding: 13px 18px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); color: var(--accent-dark); box-shadow: var(--shadow); font-size: 12px; overflow-wrap: anywhere; }
.toast.error { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger); }
.key-reveal { background: var(--ink); color: var(--on-dark); border-radius: 6px; padding: 18px; margin-bottom: 18px; overflow-wrap: anywhere; white-space: pre-wrap; font: 12px/1.8 var(--mono); }
.endpoint-box { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 15px 18px; background: var(--surface-subtle); border: 1px solid var(--line); border-radius: 6px; margin: 16px 0; }
.endpoint-box code { overflow-wrap: anywhere; }
.example-code { padding: 20px 22px; color: var(--on-dark); background: var(--ink); margin: 0; font-size: 11px; line-height: 1.9; }
.split-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 22px; }
.memory-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 21px 24px; border-bottom: 1px solid var(--line); }
.memory-item:last-child { border-bottom: 0; }
.memory-item p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 7px; font-size: 13px; }
.muted { color: var(--muted); }
.small-text { font-size: 12px; }
.chat-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); min-height: 570px; height: calc(100dvh - 255px); }
.chat-list { border-right: 1px solid var(--line); overflow: auto; background: var(--surface-subtle); }
.chat-list-head { padding: 17px; border-bottom: 1px solid var(--line); }
.chat-list-head .button { width: 100%; }
.conversation-row { display: flex; align-items: center; gap: 4px; padding: 5px 10px; }
.conversation-link { background: none; border: none; flex: 1; text-align: left; min-width: 0; padding: 11px 10px; border-radius: 5px; color: var(--ink); font-size: 12px; }
.conversation-link:hover, .conversation-row.selected { background: var(--nav-active); }
.conversation-link strong { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-link small { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }
.chat-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 15px 23px; border-bottom: 1px solid var(--line); }
.chat-top select { max-width: 210px; border: 1px solid var(--line); padding: 6px 9px; border-radius: 4px; background: var(--surface); color: var(--ink); font-size: 11px; }
.chat-messages { flex: 1; overflow: auto; padding: 28px; }
.chat-message { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 23px; }
.chat-message .avatar { border-radius: 7px; width: 29px; height: 29px; font-size: 10px; }
.chat-message.user .avatar { background: var(--nav-active); color: var(--muted); }
.message-body { min-width: 0; }
.message-body strong { display: block; font-size: 11px; font-weight: 600; margin: 1px 0 6px; }
.message-body p { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; font-size: 13px; margin-bottom: 0; }
.chat-composer { border-top: 1px solid var(--line); padding: 18px 23px 13px; background: var(--surface-subtle); }
.composer-row { display: flex; align-items: flex-end; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); padding: 7px; gap: 8px; }
.composer-row textarea { border: none; flex: 1; min-width: 0; background: transparent; min-height: 54px; max-height: 140px; resize: vertical; padding: 8px; outline-offset: -2px; color: var(--ink); font-size: 13px; }
.composer-note { color: var(--muted); font-size: 10px; margin: 8px 0 0; }
.auth-layout { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr); }
.auth-story { background: var(--ink); color: var(--on-dark); display: flex; flex-direction: column; padding: 46px 11%; position: relative; overflow: hidden; }
.auth-story .brand { margin-bottom: 100px; color: var(--on-dark); }
.auth-story h1 { font-size: clamp(34px, 3.1vw, 47px); line-height: 1.38; letter-spacing: -1.2px; font-weight: 500; max-width: 470px; }
.auth-story h1 span { color: var(--mint); }
.auth-story > p { color: var(--dark-muted); font-size: 13px; line-height: 1.9; max-width: 370px; margin-top: 15px; }
.auth-diagram { border: 1px solid var(--dark-line); border-radius: 8px; margin: 35px 0; padding: 24px; max-width: 390px; }
.auth-diagram-label { font-size: 10px; color: var(--dark-muted); letter-spacing: 1px; margin-bottom: 18px; }
.auth-diagram-row { display: flex; align-items: center; gap: 15px; font-size: 12px; margin: 13px 0; }
.auth-diagram-row .line { flex: 1; height: 1px; background: var(--dark-line); position: relative; }
.auth-diagram-row .line::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); position: absolute; right: 0; top: -2px; }
.auth-diagram-row code { background: var(--ink); border: 1px solid var(--dark-line); color: var(--mint); padding: 5px 9px; border-radius: 4px; font-size: 10px; }
.auth-story-foot { margin-top: auto; padding-top: 32px; color: var(--dark-muted); font-size: 11px; }
.auth-form-panel { padding: 80px 45px; display: grid; grid-template-columns: minmax(0, 360px); place-content: center; background: var(--surface); position: relative; }
.auth-form-content { width: 360px; max-width: 100%; }
.auth-form-content h2 { font-size: 29px; margin: 23px 0 10px; font-weight: 600; letter-spacing: -.7px; }
.auth-form-content > p { color: var(--muted); font-size: 13px; margin-bottom: 30px; }
.auth-form-content .button.primary { width: 100%; margin-top: 8px; min-height: 46px; }
.auth-switch { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; font-size: 12px; color: var(--muted); margin-top: 24px; }
.link-button { border: 0; padding: 0; background: transparent; color: var(--accent); font-size: 12px; }
.auth-note { margin-top: 32px; font-size: 11px; color: var(--muted); text-align: center; line-height: 1.8; }
[hidden] { display: none !important; }
a.brand:hover, a.button:hover { text-decoration: none; }
.page-heading > div, .card-header > div, .memory-item > div { min-width: 0; }
.button.ghost:hover { background: var(--nav-active); color: var(--ink); }
.field input, .field textarea, .field select, .input { min-width: 0; }
.auth-story .brand-symbol { background: var(--on-dark); color: var(--ink); }
.auth-story .brand-subtitle { color: var(--dark-muted); }
.auth-story-content > p { color: var(--dark-muted); font-size: 13px; line-height: 1.9; max-width: 375px; margin-top: 24px; }
.auth-form-content .field input { min-height: 46px; }
.auth-toolbar, .auth-topbar { position: absolute; top: 30px; right: 36px; left: 36px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.auth-links { display: flex; align-items: center; justify-content: center; gap: 18px; font-size: 12px; color: var(--muted); margin-top: 28px; }
.auth-links a { color: var(--muted); }
.auth-home { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.auth-home svg { transform: rotate(180deg); }
.admin-label { margin: -10px 12px 15px; color: var(--muted); font-size: 11px; }
.auth-mode-label { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); border: 1px solid var(--line); padding: 5px 9px; border-radius: 4px; font-size: 10px; letter-spacing: .7px; }
.admin-mode .auth-story { background: var(--primary); }
.language-switch, .language-toggle { border: 1px solid var(--line); background: var(--surface); border-radius: 6px; color: var(--ink); min-height: 37px; padding: 7px 11px; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; }
.language-switch:hover, .language-toggle:hover { background: var(--surface-subtle); border-color: var(--line-strong); }
.portal-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.portal-toolbar .field { margin: 0; }
.main > .portal-toolbar { padding: 0 0 18px; border-bottom: 0; }
.main > .card + .card, .main > .card + .plan-grid { margin-top: 22px; }
.main > .card + .notice { margin-top: 22px; }
.filter-input, .filter-select { border: 1px solid var(--line); padding: 9px 12px; border-radius: 6px; background: var(--surface); min-height: 40px; color: var(--ink); font-size: 12px; }
.filter-input { min-width: 0; max-width: 320px; flex: 1 1 190px; }
.filter-select { min-width: 140px; width: auto; }
.quick-start { min-width: 0; }
.endpoint-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 15px 18px; border: 1px solid var(--line); background: var(--surface-subtle); border-radius: 6px; margin-bottom: 22px; }
.endpoint-bar code { min-width: 0; overflow-wrap: anywhere; }
.endpoint-bar > div { min-width: 0; }
.endpoint-bar .button { flex-shrink: 0; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; margin-bottom: 22px; }
.plan-card { padding: 26px; }
.plan-grid.card-pad .plan-card { padding: 20px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-subtle); }
.plan-card h3 { font-size: 18px; }
.plan-card p { color: var(--muted); font-size: 12px; }
.plan-card .button { margin-top: 14px; }
.plan-price { font-size: 30px; font-weight: 600; letter-spacing: -.8px; margin: 22px 0 6px; }
.feature-list { list-style: none; padding: 0; margin: 20px 0 0; }
.feature-list li { font-size: 12px; padding: 9px 0; color: var(--muted); border-top: 1px solid var(--line); }
.feature-list li:first-child { border-top: 0; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
dl.profile-grid { grid-template-columns: 130px minmax(0, 1fr); margin: 0; gap: 20px 32px; font-size: 13px; }
dl.profile-grid dt { color: var(--muted); }
dl.profile-grid dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.profile-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.profile-row:last-child { border-bottom: 0; }
.profile-row > :last-child { overflow-wrap: anywhere; text-align: right; min-width: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation-duration: .01ms !important; transition: none !important; } }
@media (max-width: 1120px) {
  .app-shell { grid-template-columns: 205px minmax(0, 1fr); }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .topbar { padding-left: 26px; padding-right: 26px; }
  .main { padding-left: 26px; padding-right: 26px; }
  .dashboard-grid, .split-layout { grid-template-columns: 1fr; }
  .metrics { gap: 11px; }
  .metric { padding: 17px; }
  .chat-layout { grid-template-columns: 205px minmax(0, 1fr); }
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .app-shell { display: block; }
  .sidebar { height: auto; position: static; padding: 19px 22px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar .brand { padding: 0 0 15px; }
  .sidebar nav { display: flex; overflow: auto; gap: 7px; padding-bottom: 3px; }
  .nav-group-title, .sidebar-bottom { display: none; }
  .nav-link { white-space: nowrap; padding: 8px 12px; margin: 0; min-height: 40px; gap: 7px; flex-shrink: 0; }
  .nav-link.active::after { display: none; }
  .topbar { min-height: 62px; padding: 12px 22px; }
  .topbar-right { gap: 10px; }
  .identity .user-email { max-width: 100px; }
  .main { padding: 26px 22px 40px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chat-layout { height: 650px; }
  .auth-story { padding: 45px 9%; }
  .auth-story .brand { margin-bottom: 48px; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-story > p, .auth-diagram, .auth-story-foot { display: none; }
  .auth-story-content > p { display: none; }
  .auth-story h1 { font-size: 30px; margin-bottom: 0; max-width: none; }
  .auth-story .brand { margin-bottom: 30px; }
  .auth-form-panel { padding: 77px 25px 55px; }
  .auth-toolbar, .auth-topbar { top: 23px; left: 25px; right: 25px; }
  .profile-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  h1 { font-size: 24px; }
  .main { padding-left: 16px; padding-right: 16px; }
  .topbar { padding-left: 16px; padding-right: 16px; }
  .topbar .breadcrumb { display: none; }
  .topbar-right { width: 100%; justify-content: space-between; }
  .identity .user-email { max-width: 135px; }
  .page-heading { flex-direction: column; gap: 15px; margin-bottom: 22px; }
  .card-header, .card-pad { padding: 18px; }
  .card-header { align-items: flex-start; flex-wrap: wrap; }
  .metrics { gap: 9px; }
  .metric-value { font-size: 27px; }
  .metric-note { font-size: 10px; }
  .metric-label { font-size: 11px; }
  .metric-label svg { display: none; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .dialog-backdrop { padding: 12px; }
  .dialog { max-height: calc(100dvh - 24px); }
  .dialog-body, .dialog-header { padding: 18px; }
  .dialog-footer { padding: 13px 18px; }
  .form-footer { margin: 20px -18px -18px; }
  .chat-layout { display: flex; flex-direction: column; min-height: 650px; height: calc(100dvh - 270px); }
  .chat-list { border: none; border-bottom: 1px solid var(--line); max-height: 146px; flex-shrink: 0; }
  .chat-list-head { padding: 10px; border-bottom: 0; }
  .chat-list-head .button { width: auto; }
  .conversation-row { display: inline-flex; width: 220px; max-width: 100%; }
  .chat-main { flex: 1; }
  .chat-messages { padding: 20px 17px; }
  .chat-top { padding: 12px 16px; }
  .chat-top .badge { display: none; }
  .chat-composer { padding: 12px; }
  .chat-composer .button { font-size: 11px; padding: 7px 10px; }
  .connection-map { padding: 25px 14px 20px; }
  .map-node-icon { width: 38px; height: 38px; }
  .map-node strong { font-size: 11px; }
  .map-node span { font-size: 9px; }
  .toast-region { bottom: 16px; right: 16px; }
  .sidebar { padding-left: 16px; padding-right: 16px; }
  .auth-story { padding: 28px 25px; }
  .auth-story .brand { margin-bottom: 25px; }
  .auth-story h1 { font-size: 29px; }
  .auth-form-content h2 { font-size: 26px; }
  .portal-toolbar { padding: 16px; gap: 10px; }
  .filter-input { max-width: none; flex-basis: 100%; }
  .filter-select { flex: 1; min-width: 0; }
  .plan-grid { grid-template-columns: 1fr; }
  dl.profile-grid { grid-template-columns: 1fr; gap: 6px; }
  dl.profile-grid dd { margin-bottom: 17px; }
}
