/* Shared with the approved homepage. No external fonts or product mockups. */
:root { color-scheme: light; --ink:#172433; --ink-soft:#626c7a; --muted:#69788d; --line:#dce1e8; --paper:#fff; --cloud:#f6f7fa; --sky-pale:#edf2f9; --momo-pale:#f8edf3; --shadow:0 24px 70px -40px #20365140; --shadow-soft:0 14px 36px -24px #20365124; }
body { color:var(--ink); background:#f6f7fa; font-family:Inter,"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif; -webkit-font-smoothing:antialiased; }
body::before,.sky-grid,.paper-noise { display:none; }
[hidden] { display:none !important; }
button,input,textarea,select { font-family:inherit; }
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible { outline:3px solid #327fe7; outline-offset:4px; }
button { cursor:pointer; }
button:disabled { cursor:not-allowed; opacity:.55; }
.shell { width:min(1180px,calc(100% - 96px)); }
.site-header { top:0; width:100%; min-height:80px; margin:0; padding:12px max(28px,calc((100% - 1240px)/2)); gap:24px; border:0; border-bottom:1px solid #1724330d; border-radius:0; background:#f6f7faeb; box-shadow:none; backdrop-filter:blur(24px); }
.brand img { width:34px; height:34px; filter:none; }
.brand-word { font-size:23px; }
.site-nav { margin-left:auto; gap:4px; }
.site-nav a { min-height:46px; padding-inline:12px; color:#3d4858; font-size:16px; font-weight:500; border-radius:7px; }
.site-nav a:hover,.site-nav a[aria-current=page] { color:#226ed0; background:#e9edf5; box-shadow:none; transform:none; }
.account-trigger { flex:0 0 auto; min-height:42px; max-width:160px; padding:0 14px; border:1px solid #17243326; border-radius:7px; background:transparent; color:#344356; font-size:15px; font-weight:500; box-shadow:none; }
.eyebrow { display:block; color:#647183; font-size:12px; font-weight:600; letter-spacing:.16em; }
.eyebrow span { padding:0; min-height:0; color:inherit; background:none; clip-path:none; font:inherit; margin-right:12px; }
.page-hero { padding:72px 0 40px; }
.page-hero::after { display:none; }
.page-hero h1 { margin:0 0 20px; font-size:clamp(38px,4.4vw,56px); line-height:1.25; font-weight:600; letter-spacing:-.055em; }
.page-hero h1 em,.page-hero.pink h1 em { color:#4182d0; }
.page-hero > p:last-child { max-width:640px; font-size:17px; line-height:1.85; }
.breadcrumb { font-size:12px; font-weight:400; color:var(--muted); margin-bottom:32px; }
.content-section { padding:20px 0 90px; }
.content-grid { gap:24px; }
.content-card { padding:32px; border:1px solid var(--line); border-radius:12px; background:#ffffffb3; box-shadow:none; }
.content-card h2 { font-size:26px; font-weight:600; margin-top:18px; }
.content-card h3 { font-weight:600; }
.content-card p,.content-card li { font-size:15px; line-height:1.85; }
.content-card .pill { margin-bottom:10px; }
.pill { min-height:26px; padding:0 9px; border-radius:5px; color:#4d6581; background:#edf2f8; font-size:10px; font-weight:500; letter-spacing:.04em; }
.pill.pink { color:#8d5c78; background:#f4ebf0; }
.notice { padding:22px; border:1px solid #dae3ed; border-left:3px solid #82a6cf; border-radius:8px; background:#f0f4f9; }
.notice.pink { border:1px solid #e6dce4; border-left:3px solid #c894b0; background:#f7f1f5; }
.notice p { font-size:14px; }
.button,.admin-action,.mini-button { min-height:44px; padding:0 17px; border-radius:7px; font-size:14px; font-weight:500; clip-path:none; box-shadow:none; }
.button.primary,.button.primary.pink { border:1px solid #263c58; background:#263c58; color:#fff; clip-path:none; box-shadow:none; }
.button.secondary { color:#344960; border-color:#bac7d9; background:transparent; }
.button:hover,.button:focus-visible { transform:none; }
.button.primary:hover { background:#346798; }
.button.secondary:hover { background:#e5edf7; }
.admin-action { color:#344960; border-color:#cbd5e2; background:#fff; }
.mini-button { min-height:36px; padding:0 12px; font-size:12px; }
.artifact { grid-template-columns:1fr auto; padding:18px 0; border-width:1px 0 0; border-radius:0; background:transparent; }
.artifact-icon { display:none; }
.artifact h3 { font-size:17px; }
.artifact p { font-size:13px; }
.test-card { grid-template-columns:1fr auto; gap:32px; padding:38px; }
.test-visual { display:none; }
.code-block { background:#142a3c; color:#d4e6f1; border-radius:8px; }
.api-table { font-size:14px; }
.api-table th,.api-table td { padding:15px 12px; }
.site-footer { grid-template-columns:1fr auto auto; gap:28px; padding:30px 0; font-size:12px; }
.footer-brand img { width:28px; height:28px; }
.footer-brand b { font-size:17px; font-weight:600; }
.footer-brand small { display:none; }
.site-footer nav { gap:24px; }
/* Reading is quieter than a marketing page. */
.doc-page-shell,.doc-page-shell.doc-with-tree { width:min(1240px,calc(100% - 96px)); margin:60px auto 90px; gap:32px; grid-template-columns:240px minmax(0,1fr); }
.doc-tree { padding:18px 12px; border:0; border-right:1px solid var(--line); border-radius:0; background:transparent; box-shadow:none; font-size:14px; }
.doc-tree-heading span { color:var(--muted); font-weight:500; font-size:10px; }
.doc-tree-heading b { font-weight:600; }
.doc-tree a.active { box-shadow:none; font-weight:500; background:#e9edf5; }
.doc-tree-folder summary { font-weight:500; }
.doc-paper { min-width:0; padding:40px 46px; border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:none; }
.doc-paper-header span { color:var(--muted); font-weight:500; font-size:11px; }
.doc-paper-header h1 { font-size:clamp(30px,3.7vw,44px); font-weight:600; margin-top:14px; }
.markdown-body { color:#425166; font-size:16px; line-height:1.9; overflow-wrap:anywhere; }
.markdown-body h1,.markdown-body h2,.markdown-body h3 { font-weight:600; }
.markdown-body pre { background:#142a3c; overflow-wrap:normal; }
.markdown-body table { width:100%; margin:24px 0; border-collapse:collapse; font-size:.9em; }
.markdown-body th,.markdown-body td { padding:12px 14px; border-bottom:1px solid var(--line); text-align:left; }
.markdown-body th { background:#f3f5f9; color:var(--ink); font-weight:600; }
.markdown-body blockquote { margin:24px 0; padding:2px 20px; border-left:3px solid #82a6cf; background:#f3f6fa; color:#626c7a; }
.markdown-empty { color:var(--muted); font-size:14px; }
.markdown-empty span { font-size:24px; color:#8ea9ca; }
/* Operational screens use the same palette and control geometry. */
.admin-shell { width:min(1240px,calc(100% - 64px)); margin:48px auto 80px; }
.admin-top h1 { font-size:42px; line-height:1.3; font-weight:600; }
.admin-top .eyebrow { margin-bottom:16px; }
.admin-top > div > p:last-child { font-size:15px; }
.admin-tabs { padding:0; gap:22px; border:0; border-bottom:1px solid var(--line); border-radius:0; background:transparent; margin:30px 0 26px; }
.admin-tabs button { min-height:48px; padding:0 4px; border-bottom:2px solid transparent; border-radius:0; font-size:15px; font-weight:500; }
.admin-tabs button.active { color:#226ed0; background:transparent; border-bottom-color:#4182d0; }
.admin-panel { padding:28px; border-radius:12px; box-shadow:none; background:#fff; }
.admin-panel-heading h2 { font-weight:600; font-size:24px; }
.admin-panel-heading p { font-size:14px; line-height:1.7; max-width:760px; }
.user-row,.usage-user-row { border-radius:8px; padding:18px; }
.user-name { font-weight:600; }
.user-meta,.risk-event small { font-size:12px; line-height:1.6; }
.risk-events { border-radius:8px; background:#f3f5f9; }
.status-chip { font-weight:500; font-size:11px; }
.document-workspace { padding:0; }
.document-sidebar { background:#f5f6fa; }
.document-item b,.admin-tree-toggle b { font-size:13px; font-weight:500; }
.document-item span { font-size:11px; }
.document-item.active { box-shadow:none; background:#e7edf6; }
.editor-meta { grid-template-columns:minmax(140px,1fr) minmax(130px,1fr) 110px auto; }
.editor-meta input,.editor-meta select { font-size:13px; border-color:#cdd5df; border-radius:6px; }
.editor-meta > * { min-width:0; max-width:100%; }
.editor-toolbar { background:#f6f7fa; }
.editor-source { font-size:14px; line-height:1.85; }
.editor-preview { font-size:15px; }
.ai-version-form { padding:24px; background:#f8f9fb; border-radius:10px; }
.provider-status { background:#edf2f9; font-size:13px; }
.provider-form label { font-size:14px; font-weight:500; }
.provider-form label small,.ai-version-heading p { font-size:12px; font-weight:400; }
.ai-version-heading { flex-wrap:wrap; }
.ai-version-checkbox span { min-width:0; }
.admin-modal,.account-dialog { border-radius:14px; box-shadow:0 24px 90px -24px #17243366; }
.admin-modal-header { background:#f3f5f9; }
.admin-modal-header::after { display:none; }
.admin-modal-header h2 { font-weight:600; font-size:28px; }
.admin-modal-header p { color:var(--muted); }
.admin-modal-mark { border-radius:8px; clip-path:none; background:#263c58; box-shadow:none; }
.admin-modal-header .admin-modal-mark > span { display:block; color:#fff; opacity:1; font-size:26px; line-height:1; margin:0; }
.admin-field textarea { width:100%; min-height:104px; padding:12px 14px; border:1px solid #cdd5df; border-radius:7px; color:var(--ink); background:#fff; font-family:inherit; font-size:14px; font-weight:400; line-height:1.65; resize:vertical; }
.admin-modal-footer { background:#f8f9fb; }
.admin-field > span,.document-visibility legend { font-weight:500; }
.document-visibility label { border-radius:8px; background:#f8f9fb; }
.new-document-summary { border-radius:8px; background:#edf2f8; }
.toast { border-radius:8px; }
.account-dialog-card { border-radius:14px; padding:36px; }
.account-dialog-brand img { width:34px; height:34px; }
.account-tabs { background:#edf0f6; border-radius:8px; }
.account-tabs button { font-size:14px; font-weight:500; }
.account-tabs button.active { box-shadow:none; color:#263c58; }
.account-dialog form h2,.account-session h2 { font-weight:600; }
.account-dialog label { font-size:14px; font-weight:500; }
.account-dialog input { border-color:#cdd5df; border-radius:7px; background:#fff; }
/* Public authentication pages retain their no-image and no-icon contract. */
body[data-surface=auth] { min-height:100svh; background:radial-gradient(ellipse at 68% 35%,#c8dff04a,transparent 50%),radial-gradient(ellipse at 22% 80%,#edd5e640,transparent 50%),#f6f7fa; }
[data-surface=auth] .login-shell { min-height:100svh; padding:40px 20px; }
[data-surface=auth] .login-card { width:min(440px,100%); padding:40px; border:1px solid #dce1e8; border-radius:14px; box-shadow:0 24px 64px -40px #20365140; }
[data-surface=auth] h1 { font-size:30px; font-weight:600; letter-spacing:-.04em; }
[data-surface=auth] .login-description { margin:14px 0 28px; font-size:15px; line-height:1.8; color:#626c7a; }
[data-surface=auth] .auth-tabs { margin:0 0 32px; border:1px solid #dce1e8; background:#f3f5f9; }
[data-surface=auth] .auth-tabs .auth-tab { min-height:42px; border:0; font-weight:500; }
[data-surface=auth] .auth-tabs .auth-tab.active { box-shadow:none; color:#263c58; background:#fff; }
[data-surface=auth] form { gap:12px; }
[data-surface=auth] input { min-height:46px; border-color:#cdd5df; border-radius:7px; }
[data-surface=auth] button,[data-surface=auth] .session-actions a { min-height:46px; border-radius:7px; border-color:#263c58; background:#263c58; font-weight:500; }
[data-surface=auth] .session-actions .secondary { color:#344960; border-color:#bac7d9; background:transparent; }
[data-surface=auth] .form-hint { font-size:12px; color:#69788d; }
[data-surface=auth] .form-hint a { display:inline-flex; align-items:center; min-height:44px; color:#4182d0; text-decoration:none; }
[data-surface=auth] .form-hint a:hover { text-decoration:underline; }
[data-surface=auth] .login-message { font-size:13px; }
@media(max-width:1060px) {
  .account-trigger { order:2; margin-left:auto; }
  .nav-toggle { order:3; display:grid; place-content:center; gap:4px; flex:0 0 44px; width:44px; height:44px; border:0; border-radius:7px; background:#e9edf5; }
  .nav-toggle i { width:20px; height:2px; background:#243e56; }
  .site-nav { position:absolute; inset:calc(100% + 1px) 24px auto; display:none; grid-template-columns:1fr 1fr; gap:8px; margin:0; padding:16px; border:1px solid #dce1e8; border-radius:12px; background:#fafbfe; box-shadow:0 22px 50px #27375218; }
  .site-header.nav-open .site-nav { display:grid; }
  .shell,.doc-page-shell,.doc-page-shell.doc-with-tree { width:calc(100% - 64px); }
  .doc-page-shell.doc-with-tree { grid-template-columns:200px minmax(0,1fr); gap:22px; }
  .doc-paper { padding:30px; }
}
@media(max-width:760px) {
  .doc-page-shell.doc-with-tree { display:block; }
  .doc-tree { position:static; max-height:260px; margin-bottom:24px; border:1px solid var(--line); border-radius:8px; }
  .editor-meta { grid-template-columns:1fr; }
  .admin-tabs { gap:20px; overflow-x:auto; }
  .admin-panel { padding:20px; }
  .document-workspace { padding:0; }
  .usage-user-row { grid-template-columns:1fr; }
  .usage-controls { flex-wrap:wrap; }
  .admin-panel-heading { align-items:flex-start; }
  .admin-panel-heading .admin-action { flex:0 0 auto; }
}
@media(max-width:640px) {
  .site-header { min-height:70px; padding:10px 18px; gap:10px; }
  .brand { gap:7px; }
  .brand-word { font-size:19px; }
  .brand img { width:28px; height:28px; }
  .account-trigger { max-width:88px; padding-inline:9px; font-size:13px; }
  .site-nav { inset-inline:12px; grid-template-columns:1fr; }
  .site-nav a { padding-inline:12px; font-size:16px; }
  .shell,.admin-shell,.doc-page-shell,.doc-page-shell.doc-with-tree { width:calc(100% - 40px); }
  .page-hero { padding:46px 0 24px; }
  .page-hero h1 { font-size:36px; }
  .page-hero > p:last-child { font-size:16px; }
  .content-section { padding:16px 0 58px; }
  .content-card { padding:24px; }
  .test-card { grid-template-columns:1fr; padding:26px; }
  .test-card .button { grid-column:1; justify-self:start; }
  .site-footer { grid-template-columns:1fr; gap:18px; }
  .doc-page-shell { margin:32px auto 60px; }
  .doc-paper { padding:26px 22px; }
  .doc-paper-header h1 { font-size:32px; }
  .markdown-body { font-size:15px; }
  .admin-top h1 { font-size:34px; }
  .admin-shell { margin-top:32px; }
  .admin-panel-heading { flex-wrap:wrap; }
  .admin-panel-heading h2 { font-size:22px; }
  .user-row { padding:14px; gap:12px; }
  .row-actions { flex-wrap:wrap; }
  .admin-modal-header h2 { font-size:24px; }
  .account-dialog-card { padding:28px 24px; }
  [data-surface=auth] .login-card { padding:30px 26px; }
}
/* The chat workspace shares the site identity without marketing geometry. */
[data-surface=chat] { --display:Inter,"Noto Sans SC","Microsoft YaHei",sans-serif; --body:var(--display); --blue:#4182d0; --cyan:#dce9f5; --coral:#9a647f; --ink:#172433; --paper:#fff; --line:#dce1e8; --shadow:none; }
[data-surface=chat] input,[data-surface=chat] textarea,[data-surface=chat] select { border:1px solid #cdd5df; border-radius:7px; background:#fff; box-shadow:none; font:400 14px/1.5 var(--body); }
[data-surface=chat] label { font-weight:500; }
[data-surface=chat] input:not([type=checkbox]):not([type=range]),[data-surface=chat] select { min-height:42px; padding:10px 12px; }
[data-surface=chat] input[type=checkbox] { width:16px; height:16px; min-height:0; padding:0; margin:0; flex:0 0 16px; }
[data-surface=chat] input[type=range] { min-height:0; height:20px; padding:0; border:0; background:transparent; }
[data-surface=chat] .memory-toggle { white-space:nowrap; }
[data-surface=chat] .memory-toggle,[data-surface=chat] .affection-control label { margin:0; }
[data-surface=chat] .primary-button,[data-surface=chat] .send-button { min-height:44px; border:1px solid #263c58; border-radius:7px; background:#263c58; color:#fff; box-shadow:none; font-weight:500; }
[data-surface=chat] .primary-button:hover,[data-surface=chat] .send-button:hover { background:#346798; transform:none; }
[data-surface=chat] .secondary-button,[data-surface=chat] .context-panel-button { min-height:42px; border-color:#bac7d9; border-radius:7px; font-weight:500; box-shadow:none; }
[data-surface=chat] .topbar { height:80px; padding:0 28px; grid-template-columns:1fr auto 1fr; border-bottom:1px solid #1724330d; background:#f6f7fa; }
[data-surface=chat] .brand-icon { width:34px; height:34px; box-shadow:none; }
[data-surface=chat] .brand-button strong { font-size:21px; font-weight:600; }
[data-surface=chat] .brand-button small { color:var(--muted); font-weight:500; }
[data-surface=chat] .nav-button { min-height:44px; padding:10px 16px; border-radius:7px; font-size:15px; font-weight:500; }
[data-surface=chat] .nav-button.active { background:#e9edf5; color:#226ed0; }
[data-surface=chat] .account-box { justify-self:end; font-weight:500; }
[data-surface=chat] .text-button { min-height:44px; color:#626c7a; font-weight:500; }
[data-surface=chat] .workspace { grid-template-columns:260px minmax(0,1fr); min-height:calc(100svh - 80px); margin-right:320px; }
[data-surface=chat] .persona-rail { padding:26px 20px; background:#f6f7fa; max-height:calc(100svh - 80px); overflow:auto; }
[data-surface=chat] .persona-settings > summary { display:none; }
[data-surface=chat] .rail-label,[data-surface=chat] .stage-heading span { font-weight:500; font-size:10px; color:var(--muted); }
[data-surface=chat] .persona-search-label { margin-top:22px; }
[data-surface=chat] .skill-result-count { font-weight:400; font-size:10px; }
[data-surface=chat] .agent-context-panel { padding:14px 12px; border-radius:8px; background:#fff; }
[data-surface=chat] .memory-toggle,[data-surface=chat] .context-link-button,[data-surface=chat] .context-select-label,[data-surface=chat] .affection-control label,[data-surface=chat] .affection-control output { font-weight:500; }
[data-surface=chat] .context-link-button { min-height:32px; }
[data-surface=chat] .persona-card { min-height:0; margin:20px 0 16px; padding:18px; border:1px solid #dce1e8; border-radius:8px; background:#edf2f9; color:#172433; box-shadow:none; }
[data-surface=chat] .persona-card::after,[data-surface=chat] .persona-orbit { display:none; }
[data-surface=chat] .persona-card p { margin:0 0 10px; color:#626c7a; font-weight:500; }
[data-surface=chat] .persona-card h2 { font-size:24px; font-weight:600; }
[data-surface=chat] .persona-card small { color:#626c7a; font-size:11px; }
[data-surface=chat] .rail-note { margin-top:22px; padding-top:18px; font-size:11px; }
[data-surface=chat] .chat-stage { height:calc(100svh - 80px); padding:30px clamp(24px,3vw,48px) 24px; background:#fbfcfe; }
[data-surface=chat] .stage-heading h1 { font-size:25px; font-weight:600; }
[data-surface=chat] .connection-badge { border:0; border-radius:5px; background:#eaf1ed; color:#487461; font-size:10px; font-weight:500; padding:6px 9px; }
[data-surface=chat] .connection-badge.unavailable { color:#69788d; background:#edf0f5; }
[data-surface=chat] .message-list { padding:24px 0; }
[data-surface=chat] .empty-symbol { color:#89a9ca; background:none; border:0; box-shadow:none; font-size:34px; }
[data-surface=chat] .empty-chat h2 { font-size:24px; font-weight:600; }
[data-surface=chat] .empty-chat p { font-size:13px; line-height:1.8; }
[data-surface=chat] .bubble { border:1px solid #dce1e8; border-radius:10px; box-shadow:none; background:#fff; }
[data-surface=chat] .message.user .bubble { background:#edf2f9; }
[data-surface=chat] .message-bubble { border:1px solid #dce1e8; border-radius:10px; box-shadow:none; background:#fff; }
[data-surface=chat] .message-row.user .message-bubble { background:#edf2f9; }
[data-surface=chat] .composer { grid-template-columns:minmax(0,1fr) 84px; padding-top:18px; gap:12px; border-color:#dce1e8; }
[data-surface=chat] .composer textarea { min-height:74px; }
[data-surface=chat] .send-button { width:84px; }
[data-surface=chat] .background-sidebar { top:80px; width:320px; border-color:#dce1e8; background:#fff; box-shadow:none; }
[data-surface=chat] .background-sidebar-card { padding:26px 20px; gap:12px; }
[data-surface=chat] .background-sidebar-card h2 { font-size:20px; font-weight:600; }
[data-surface=chat] .background-sidebar-card header small { color:var(--muted); font-weight:500; }
[data-surface=chat] .background-sidebar-card label { margin:8px 0 0; font-weight:500; }
[data-surface=chat] .background-actions { display:grid; grid-template-columns:minmax(80px,1fr) minmax(140px,2fr); gap:12px; }
[data-surface=chat] .background-actions button { min-width:0; min-height:44px; white-space:nowrap; }
[data-surface=chat] .auth-shell { margin:64px auto; width:min(920px,calc(100% - 48px)); min-height:0; border:1px solid #dce1e8; border-radius:14px; overflow:hidden; box-shadow:0 24px 64px -40px #20365140; }
[data-surface=chat] .auth-poster { padding:48px; background:#edf2f9; color:#172433; }
[data-surface=chat] .auth-poster::before,[data-surface=chat] .auth-poster::after,[data-surface=chat] .poster-stamp { display:none; }
[data-surface=chat] .poster-icon { width:64px; height:64px; box-shadow:none; }
[data-surface=chat] .auth-poster h1 { font-size:42px; font-weight:600; }
[data-surface=chat] .auth-poster h1 span { color:#4182d0; }
[data-surface=chat] .auth-poster p { color:#626c7a; font-size:15px; }
[data-surface=chat] .poster-kicker { color:#647183; font-weight:500; }
[data-surface=chat] .auth-panel { padding:48px; background:#fff; }
[data-surface=chat] .tab-button { min-height:44px; font-weight:500; }
[data-surface=chat] .tab-button.active { color:#226ed0; }
[data-surface=chat] .form-heading h2 { font-size:26px; font-weight:600; }
@media(max-width:1100px) { [data-surface=chat] .workspace { grid-template-columns:240px minmax(0,1fr); margin-right:0; } [data-surface=chat] .background-sidebar { top:0; width:min(360px,92vw); visibility:hidden; transform:translateX(105%); transition:transform 180ms ease,visibility 180ms; box-shadow:-24px 0 70px #17243326; } [data-surface=chat] .background-sidebar.open { visibility:visible; transform:translateX(0); } [data-surface=chat] .dialog-close { display:block; } }
@media(max-width:760px) {
  [data-surface=chat] .topbar { height:auto; min-height:70px; padding:12px 20px; grid-template-columns:1fr auto; gap:8px; }
  [data-surface=chat] .topnav { grid-column:1/-1; grid-row:2; justify-content:flex-start; }
  [data-surface=chat] .brand-button strong { font-size:19px; }
  [data-surface=chat] .account-box { gap:8px; font-size:12px; }
  [data-surface=chat] .app-shell { height:100svh; display:flex; flex-direction:column; }
  [data-surface=chat] .topbar { flex:0 0 auto; }
  [data-surface=chat] .workspace { display:grid; grid-template-columns:1fr; grid-template-rows:auto minmax(0,1fr); flex:1; min-height:0; }
  [data-surface=chat] .app-shell:has(.persona-settings[open]) { height:auto; min-height:100svh; }
  [data-surface=chat] .workspace:has(.persona-settings[open]) { flex:none; grid-template-rows:auto 560px; }
  [data-surface=chat] .persona-rail { max-height:none; padding:0; border-right:0; border-bottom:1px solid #dce1e8; display:block; }
  [data-surface=chat] .persona-settings > summary { display:flex; align-items:center; gap:12px; min-height:60px; padding:14px 20px; cursor:pointer; list-style:none; }
  [data-surface=chat] .persona-settings > summary::-webkit-details-marker { display:none; }
  [data-surface=chat] .persona-settings > summary strong { flex:0 0 auto; font-size:14px; font-weight:500; }
  [data-surface=chat] .persona-settings > summary span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); font-size:12px; }
  [data-surface=chat] .persona-settings > summary::after { content:'⌄'; margin-left:auto; color:var(--muted); }
  [data-surface=chat] .persona-settings[open] > summary::after { content:'⌃'; }
  [data-surface=chat] .persona-rail-content { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:10px 16px; padding:20px; border-top:1px solid #dce1e8; }
  [data-surface=chat] .rail-label,[data-surface=chat] .persona-search-label,[data-surface=chat] .persona-search,[data-surface=chat] .agent-context-panel,[data-surface=chat] .rail-note { grid-column:1/-1; }
  [data-surface=chat] .rail-label,[data-surface=chat] .persona-card,[data-surface=chat] .persona-search-label,[data-surface=chat] .select-label,[data-surface=chat] .model-select-label { display:block; }
  [data-surface=chat] .rail-note { display:grid; }
  [data-surface=chat] .brand-button > span:last-child { display:block; }
  [data-surface=chat] .rail-label { grid-row:1; }
  [data-surface=chat] .persona-search-label { grid-row:2; }
  [data-surface=chat] .persona-search { grid-row:3; }
  [data-surface=chat] .agent-context-panel { grid-row:6; }
  [data-surface=chat] .persona-search-label { margin:10px 0 0; }
  [data-surface=chat] .select-label { grid-column:1; grid-row:4; margin:8px 0 0; } [data-surface=chat] #skill-select { grid-column:1; grid-row:5; }
  [data-surface=chat] .model-select-label { grid-column:2; grid-row:4; margin:8px 0 0; } [data-surface=chat] #model-select { grid-column:2; grid-row:5; }
  [data-surface=chat] .persona-card { grid-row:7; grid-column:1; margin:0; padding:14px; }
  [data-surface=chat] #new-chat-button { grid-column:2; grid-row:7; height:auto; align-self:center; }
  [data-surface=chat] .rail-note { grid-row:8; margin:0; padding-top:10px; }
  [data-surface=chat] .chat-stage { height:auto; max-height:none; min-height:380px; padding:24px 20px; }
  [data-surface=chat] .empty-chat { min-height:0; }
  [data-surface=chat] .empty-chat h2 { font-size:21px; }
  [data-surface=chat] .stage-heading h1 { font-size:23px; }
  [data-surface=chat] .composer { grid-template-columns:minmax(0,1fr) 64px; }
  [data-surface=chat] .send-button { width:auto; }
  [data-surface=chat] .auth-shell { grid-template-columns:1fr; margin:32px auto; }
  [data-surface=chat] .auth-poster { padding:28px; }
  [data-surface=chat] .auth-poster h1 { font-size:30px; } [data-surface=chat] .auth-poster h1 br { display:none; }
  [data-surface=chat] .auth-panel { padding:28px; }
}
.error-shell { min-height:70svh; display:grid; place-content:center; gap:20px; padding-block:60px; }
.error-shell h1 { margin:0; font-size:clamp(32px,4vw,48px); font-weight:600; letter-spacing:-.04em; }
.error-shell p { margin:0; color:var(--muted); line-height:1.8; }
.error-shell .button { justify-self:start; margin-top:8px; }
/* Purposeful compositions for release, playground, reading and workspaces. */
.button { gap:28px; min-height:50px; padding:0 12px 0 20px; border-radius:11px; font-size:15px; transition:transform .22s ease,box-shadow .22s ease,background .22s ease; }
.button.primary,.button.primary.pink { background:linear-gradient(145deg,#314d6c,#1d324c); border-color:#273f5b; box-shadow:inset 0 1px #ffffff25,0 8px 18px -12px #19385280; }
.button b { display:grid; place-content:center; width:30px; height:30px; border:1px solid #ffffff22; border-radius:7px; background:#ffffff0c; font-size:18px; font-weight:400; transition:transform .22s ease; }
.button.secondary { padding-inline:20px; background:#ffffff80; border-color:#cbd4e0; }
.button.primary:hover { background:linear-gradient(145deg,#3d5e80,#243e5b); box-shadow:inset 0 1px #ffffff25,0 12px 24px -12px #19385280; transform:translateY(-2px); }
.button:hover b { transform:translate(1px,-1px); }
.button:active { transform:translateY(0); }
.site-header:not(:has(.home-reading-progress)) .account-trigger { border-radius:10px; background:#ffffff6b; box-shadow:inset 0 1px #fff; }
.route-link { display:inline-flex; align-items:center; gap:24px; min-height:44px; color:#344960; font-size:14px; font-weight:500; }
.route-link span { display:grid; place-content:center; width:30px; height:30px; border:1px solid #cbd5e2; border-radius:50%; transition:transform .22s ease,background .22s ease; }
.route-link:hover span { background:#e1eaf5; transform:translate(2px,-2px); }
.route-intro { display:grid; grid-template-columns:.8fr 1.2fr; gap:70px; align-items:center; padding-block:58px 66px; }
.route-copy .breadcrumb { margin:0 0 36px; }
.route-copy .eyebrow { margin:0 0 18px; color:#6484ac; }
.route-copy h1 { margin:0; font-size:clamp(42px,4.3vw,58px); font-weight:600; line-height:1.3; letter-spacing:-.05em; }
.route-copy h1 span { color:#4182d0; }
.route-copy > p:not(.eyebrow) { margin:24px 0 20px; color:#626c7a; font-size:16px; line-height:1.85; }
.release-preview { min-width:0; margin:28px 0 0; padding:20px 20px 0; border:1px solid #e0e6ee; border-radius:22px; background:linear-gradient(145deg,#e4edf7,#edeaf2); }
.release-preview img { display:block; width:100%; height:auto; border:1px solid #ffffffa6; border-radius:9px; box-shadow:0 22px 40px -24px #26415a60; }
.release-preview figcaption { display:flex; justify-content:space-between; gap:12px; padding:18px 0; color:#69788d; font-size:11px; }
.release-preview figcaption span:first-child { letter-spacing:.14em; }
.release-catalog { display:grid; grid-template-columns:.8fr 1.2fr; gap:70px; padding:48px 0 90px; border-top:1px solid #dce1e8; }
.catalog-heading .eyebrow { margin:0 0 18px; }
.catalog-heading h2 { margin:0; font-size:29px; font-weight:600; letter-spacing:-.03em; }
.catalog-heading > p:last-child { color:#69788d; font-size:14px; margin-top:14px; }
.catalog-stack { min-width:0; }
.release-state { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:0 0 26px; border-bottom:1px solid #dce1e8; }
.state-label { display:inline-flex; align-items:center; gap:8px; font-size:14px; font-weight:500; }
.state-label::before { content:''; width:6px; height:6px; border-radius:50%; background:#9aa9bc; }
.release-state p { max-width:300px; margin:10px 0 0; color:#69788d; font-size:13px; line-height:1.8; }
.release-state .button { flex:0 0 auto; }
.release-row { display:flex; align-items:center; gap:20px; padding:26px 0; border-bottom:1px solid #dce1e8; }
.release-type { display:grid; place-content:center; flex:0 0 54px; width:54px; height:54px; border:1px solid #dce5f0; border-radius:12px; color:#4d729e; background:#ecf1f8; font-size:10px; font-weight:600; letter-spacing:.06em; }
.release-type.pack { color:#966a83; background:#f3edf2; border-color:#e8dde6; }
.release-row h3 { margin:0 0 7px; font-size:19px; font-weight:600; }
.release-row p { margin:0; color:#69788d; font-size:12px; line-height:1.8; }
.release-pending { margin-left:auto; flex:0 0 auto; color:#788494; font-size:11px; }
.manifest-details { margin-top:12px; font-size:13px; }
.manifest-details summary { display:flex; align-items:center; gap:16px; min-height:64px; list-style:none; cursor:pointer; }
.manifest-details summary::-webkit-details-marker { display:none; }
.manifest-details summary > span:first-child { font-weight:500; }
.manifest-details summary code { color:#788494; font-size:11px; }
.detail-toggle { display:inline-flex; align-items:center; gap:8px; margin-left:auto; color:#69788d; font-size:11px; }
.detail-toggle b { font-size:16px; font-weight:400; transition:transform .22s; }
.manifest-details[open] .detail-toggle b { transform:rotate(180deg); }
.manifest-details > div { padding:16px 20px; border:1px solid #dce1e8; border-radius:10px; background:#fff; }
.manifest-details p { margin:0 0 16px; color:#69788d; line-height:1.8; }
.manifest-details .api-table { margin:0; font-size:12px; }
.playground-heading { padding:48px 0 36px; }
.playground-heading .breadcrumb { margin-bottom:34px; }
.playground-heading > div:last-child { display:grid; grid-template-columns:1fr auto; column-gap:30px; align-items:end; }
.playground-heading .eyebrow { grid-column:1/-1; margin:0 0 18px; }
.playground-heading h1 { margin:0; font-size:clamp(34px,3.5vw,46px); font-weight:600; letter-spacing:-.055em; }
.playground-heading p:last-child { max-width:270px; margin:0 0 4px; color:#69788d; font-size:14px; line-height:1.8; }
.playground-feature { display:grid; grid-template-columns:.65fr 1.35fr; align-items:center; gap:44px; padding:50px 44px; border:1px solid #272f45; border-radius:24px; color:#fff; background:radial-gradient(ellipse at 85% 80%,#70557542,transparent 65%),#202938; overflow:hidden; }
.playground-copy { min-width:0; }
.playground-label { color:#c5b4d5; font-size:11px; letter-spacing:.1em; }
.playground-copy h2 { margin:24px 0; color:#f5f7fc; font-size:clamp(34px,3.5vw,48px); line-height:1.32; font-weight:500; letter-spacing:-.04em; }
.playground-copy p { margin:0 0 28px; color:#b5c0cf; font-size:15px; line-height:1.9; }
.playground-feature .button.primary { color:#243954; background:linear-gradient(145deg,#f1f4fb,#dce6f3); border-color:#eff4fc; box-shadow:inset 0 1px #fff,0 10px 24px -16px #0007; }
.playground-feature .button b { border-color:#bdcbde; background:#cedbed60; }
.playground-feature .button:hover { background:#fff; }
.playground-caption { display:block; margin-top:16px; color:#aeb8c9; font-size:11px; }
.playground-capture { min-width:0; margin:0; padding:16px 16px 0; border:1px solid #ffffff15; border-radius:14px; background:#ffffff08; }
.playground-capture img { display:block; width:100%; height:auto; border:1px solid #ffffff44; border-radius:6px; box-shadow:0 24px 36px -24px #0008; }
.playground-capture figcaption { padding:16px 0; color:#aeb8c9; font-size:11px; }
.playground-notes { display:grid; grid-template-columns:1fr 1fr; gap:64px; padding-block:48px 72px; }
.playground-notes article { padding-top:24px; border-top:1px solid #dce1e8; }
.playground-notes .eyebrow { font-size:10px; margin:0 0 20px; }
.playground-notes h3 { margin:0 0 16px; font-size:20px; font-weight:500; letter-spacing:-.02em; }
.playground-notes p { max-width:420px; margin:0 0 14px; color:#69788d; font-size:14px; line-height:1.8; }
.route-intro,.playground-feature { animation:surface-arrival .7s cubic-bezier(.2,.7,.2,1) both; }
@keyframes surface-arrival { from { opacity:.3; transform:translateY(14px); } to { opacity:1; transform:none; } }
/* Documents have their own quieter, continuous reading surface. */
.doc-page-shell,.doc-page-shell.doc-with-tree { width:min(1240px,calc(100% - 96px)); margin:48px auto 80px; grid-template-columns:210px minmax(0,1fr); gap:48px; align-items:start; }
.doc-page-shell:not(.doc-with-tree) { grid-template-columns:minmax(0,800px) 160px; justify-content:center; }
.doc-page-shell:has(.doc-outline:not([hidden])) { grid-template-columns:190px minmax(0,1fr) 160px; gap:36px; }
.doc-page-shell:not(.doc-with-tree):has(.doc-outline:not([hidden])) { grid-template-columns:minmax(0,800px) 160px; }
.doc-tree { top:116px; max-height:calc(100svh - 148px); padding:12px 0 28px; border-right:0; }
.doc-tree-heading { gap:7px; margin:0 0 26px; padding-left:14px; }
.doc-tree-heading b { font-size:17px; letter-spacing:-.02em; }
.doc-tree a { position:relative; min-height:42px; padding:11px 14px; border-radius:8px; font-size:13px; }
.doc-tree a.active { color:#356baf; background:#e8edf6; }
.doc-tree a.active::before { content:''; position:absolute; left:0; top:14px; bottom:14px; width:2px; border-radius:2px; background:#4182d0; }
.doc-tree-folder summary { min-height:42px; }
.doc-paper { min-height:480px; padding:38px 46px 54px; border:0; border-radius:14px; background:#fff; box-shadow:0 8px 40px -30px #20365125; }
.doc-paper-header { padding-bottom:28px; margin-bottom:28px; border-bottom:1px solid #e4e8ee; }
.doc-breadcrumb { display:flex; align-items:center; gap:10px; font-size:12px; color:#69788d; }
.doc-paper-header .doc-breadcrumb span { font-size:12px; font-weight:400; }
.doc-breadcrumb a { color:#69788d; }
.doc-breadcrumb a:hover { color:#356baf; }
.doc-paper-header h1 { margin:24px 0 0; font-size:clamp(30px,3vw,40px); line-height:1.4; letter-spacing:-.04em; }
.doc-meta { margin:14px 0 0; color:#788494; font-size:11px; }
.doc-meta:empty { display:none; }
.doc-paper > .markdown-body { border-top:0; padding-top:0; }
.doc-outline { position:sticky; top:128px; display:grid; gap:4px; max-height:calc(100svh - 160px); overflow:auto; font-size:12px; }
.doc-outline > span { margin-bottom:12px; color:#788494; font-size:11px; }
.doc-outline a { padding:7px 0 7px 12px; border-left:1px solid #dce1e8; color:#626c7a; line-height:1.8; overflow-wrap:anywhere; }
.doc-outline a:hover,.doc-outline a:focus-visible { color:#356baf; border-left-color:#4182d0; }
.doc-outline .outline-child { padding-left:22px; }
.markdown-body h2,.markdown-body h3 { scroll-margin-top:116px; }
.markdown-body h2 { margin-top:36px; font-size:24px; letter-spacing:-.025em; }
.markdown-body h3 { margin-top:28px; font-size:19px; }
.markdown-body pre { border-radius:10px; }
.markdown-empty { display:grid; min-height:260px; place-content:center; text-align:center; }
.markdown-empty p { display:grid; gap:16px; margin:0; color:#788494; font-size:14px; font-weight:400; }
.markdown-empty span { display:block; width:50px; height:50px; margin:auto; border:1px solid #e2e8f1; border-radius:14px; background:#f5f7fb; font-size:24px; line-height:50px; }
/* Operational navigation sits beside the task, rather than above every panel. */
.admin-shell { width:min(1320px,calc(100% - 64px)); margin-top:36px; }
#admin-app { display:grid; grid-template-columns:190px minmax(0,1fr); column-gap:28px; align-items:start; }
.admin-top { grid-column:1/-1; padding:0 0 28px; margin:0 0 28px; border-bottom:1px solid #dce1e8; align-items:center; }
.admin-top h1 { font-size:36px; letter-spacing:-.04em; }
.admin-top .eyebrow { margin:0 0 12px; font-size:10px; }
.admin-top > div > p:last-child { margin-top:12px; font-size:13px; }
.admin-top > .button { min-height:44px; font-size:13px; }
.admin-tabs { position:sticky; top:108px; display:grid; gap:7px; padding:16px 10px; margin:0; border:1px solid #e0e5ec; border-radius:14px; background:#ffffff7a; }
.admin-nav-label { padding:0 14px 14px; color:#8893a3; font-size:11px; }
.admin-tabs button { position:relative; display:flex; align-items:center; gap:12px; width:100%; min-height:48px; padding:0 14px; text-align:left; border:1px solid transparent; border-radius:9px; color:#626c7a; background:transparent; font-size:14px; }
.admin-tabs button svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; opacity:.8; }
.admin-tabs button.active { color:#356baf; border-color:#dce5f0; background:linear-gradient(135deg,#fff,#edf2f9); box-shadow:0 6px 12px -10px #3b567540; }
.admin-tabs button:hover { color:#356baf; background:#edf2f8; }
.admin-panel { min-width:0; grid-column:2; padding:30px; border-color:#e0e5ec; border-radius:16px; box-shadow:0 10px 40px -32px #20365130; }
.admin-panel-heading { padding-bottom:24px; margin-bottom:4px; border-bottom:1px solid #e5e9ef; }
.admin-panel-heading h2 { font-size:24px; letter-spacing:-.025em; }
.admin-panel-heading p { max-width:600px; margin-top:10px; font-size:13px; }
.admin-action { border-radius:9px; min-height:42px; background:linear-gradient(#fff,#f9fafc); box-shadow:inset 0 1px #fff,0 2px 3px #17243305; transition:background .2s,border-color .2s; }
.admin-action:hover { background:#eef3fa; border-color:#95aecb; }
.users-list { gap:0; }
.user-row,.usage-user-row { margin:0; padding:24px 0; border:0; border-bottom:1px solid #e5e9ef; border-radius:0; }
.user-row:last-child,.usage-user-row:last-child { border-bottom:0; }
.user-name { font-size:16px; margin-bottom:7px; }
.user-meta { color:#788494; font-size:11px; }
.status-chip { display:inline-flex; align-items:center; gap:6px; border-radius:5px; padding:6px 9px; font-size:10px; }
.status-chip::before { content:''; width:4px; height:4px; border-radius:50%; background:currentColor; }
.mini-button { min-height:36px; padding-inline:12px; border-radius:7px; font-size:12px; border:1px solid #dde5ef; }
.mini-button.reject { border-color:#ebdce3; }
.risk-layout { gap:24px; margin-top:24px; grid-template-columns:minmax(0,1fr) minmax(240px,.65fr); }
.risk-events { padding:20px; border-color:#e5e9ef; background:#f8f9fc; border-radius:12px; }
.risk-events h3 { font-size:16px; font-weight:500; }
.risk-event { padding-block:16px; border-color:#e0e6ee; }
.risk-event b { font-weight:500; font-size:13px; }
.risk-event small { margin-top:6px; font-size:11px; overflow-wrap:anywhere; }
.usage-user-row { grid-template-columns:1fr; }
.usage-controls { justify-content:flex-start; flex-wrap:wrap; }
.usage-controls input[type=number],.usage-controls select { min-height:40px; }
.admin-message { grid-column:2; font-size:13px; font-weight:400; }
.provider-status { margin:24px 0; padding:0; border-radius:0; background:transparent; white-space:normal; }
.service-summary { display:grid; grid-template-columns:1fr 1fr; gap:22px 32px; margin:0; padding:0 0 24px; border-bottom:1px solid #e5e9ef; }
.service-summary dt { margin-bottom:10px; font-size:11px; color:#788494; }
.service-summary dd { margin:0; color:#344960; font-size:15px; line-height:1.7; overflow-wrap:anywhere; }
.ai-version-form { padding:24px; border-color:#e1e6ee; background:#f8f9fc; }
.ai-version-heading h3 { font-size:18px; font-weight:500; }
.ai-version-checkbox b { font-weight:500; }
.document-workspace { padding:0; grid-template-columns:220px minmax(0,1fr); }
.document-sidebar { padding:20px 14px; background:#f8f9fc; }
.document-sidebar-actions { padding-inline:6px; margin-bottom:22px; }
.document-sidebar-actions > b { font-size:16px; font-weight:500; }
.admin-tree-root > strong { color:#788494; font-weight:500; font-size:10px; }
.document-item { padding-block:12px; }
.document-item span { color:#8893a3; font-size:10px; }
.document-item.active { color:#356baf; background:#e8edf6; }
.editor-meta { gap:10px; padding:20px; grid-template-columns:minmax(0,1fr) 110px auto; }
#document-url { grid-column:1/-1; grid-row:2; min-height:34px; border:0; padding:0; color:#788494; background:transparent; font-size:11px; }
.editor-toolbar { padding:10px 20px; background:#f8f9fc; }
.editor-toolbar button { background:#fff; border:1px solid #e1e6ee; font-weight:500; }
.editor-toolbar button:hover { color:#356baf; border-color:#b0c2d8; }
.editor-source { background:#fcfdff; }
.editor-preview { padding:24px; }
.admin-modal { border-color:#dce1e8; border-radius:18px; }
.admin-modal-header { background:linear-gradient(135deg,#f2f5fb,#f6f2f7); }
.admin-modal-mark { border:1px solid #d7e1ef; background:#e4ecf7; }
.admin-modal-header .admin-modal-mark > span { color:#50759f; }
.admin-modal-footer .button { min-height:46px; font-size:14px; }
.document-visibility label { background:#fff; border-color:#dce1e8; }
.document-visibility label:has(input:checked) { background:#edf2f9; border-color:#9bb4d2; }
/* The chat center is a calm canvas; controls remain compact and accessible. */
[data-surface=chat] .topbar { background:#f6f7fa; }
[data-surface=chat] .persona-rail { padding-top:28px; background:#f4f6fa; }
[data-surface=chat] .rail-label { color:#8893a3; letter-spacing:.13em; }
[data-surface=chat] .agent-context-panel { padding:18px 14px; border:1px solid #e1e6ee; border-radius:12px; background:#ffffffa6; }
[data-surface=chat] .agent-context-panel label { color:#4e6076; font-size:12px; }
[data-surface=chat] .context-link-button { color:#7287a2; font-weight:400; font-size:11px; }
[data-surface=chat] .context-panel-button { min-height:42px; border-radius:8px; background:#fff; }
[data-surface=chat] .persona-card { padding:18px; border-radius:12px; background:linear-gradient(135deg,#e5edf8,#eceaf4); border-color:#dbe3ef; }
[data-surface=chat] .persona-card h2 { font-size:24px; line-height:1.5; }
[data-surface=chat] .persona-card p { font-size:10px; letter-spacing:.08em; }
[data-surface=chat] .persona-card small { color:#7287a2; font-size:10px; }
[data-surface=chat] .secondary-button { min-height:44px; border:1px solid #cbd5e2; border-radius:10px; background:#ffffff9c; }
[data-surface=chat] .chat-stage { background:#fff; }
[data-surface=chat] .stage-heading { padding-bottom:22px; border-bottom:1px solid #e5e9ef; }
[data-surface=chat] .stage-heading h1 { margin-top:8px; font-size:27px; letter-spacing:-.025em; }
[data-surface=chat] .stage-heading span { color:#8893a3; letter-spacing:.13em; }
[data-surface=chat] .connection-badge { border:1px solid #e2e6ed; border-radius:6px; font-size:10px; }
[data-surface=chat] .connection-badge.unavailable { color:#788494; background:#f6f7fa; }
[data-surface=chat] .empty-chat { background:radial-gradient(ellipse at 50% 50%,#eff3fb8c,transparent 65%); border:0; }
[data-surface=chat] .empty-symbol { display:block; width:52px; height:52px; padding:0; border-radius:15px; box-shadow:0 14px 24px -16px #637ea14d; }
[data-surface=chat] .empty-chat h2 { margin-top:24px; font-size:30px; font-weight:500; letter-spacing:-.035em; }
[data-surface=chat] .empty-chat p { color:#8893a3; font-size:13px; }
[data-surface=chat] .composer { position:relative; padding:10px; border:1px solid #d7e0ec; border-radius:16px; background:#fbfcff; box-shadow:0 10px 28px -22px #3b567560; align-items:end; }
[data-surface=chat] .composer:focus-within { border-color:#97b2d6; box-shadow:0 0 0 3px #e8eef9; }
[data-surface=chat] .composer textarea { min-height:72px; padding:12px; border:0; border-radius:8px; outline:0; background:transparent; resize:none; }
[data-surface=chat] .send-button { min-height:44px; height:44px; margin-bottom:2px; border-radius:9px; background:linear-gradient(145deg,#314d6c,#1d324c); font-size:13px; }
[data-surface=chat] .background-sidebar { border-left:1px solid #e1e6ee; background:#f8f9fc; }
[data-surface=chat] .background-sidebar-card { padding-top:28px; }
[data-surface=chat] .background-sidebar-card header { padding-bottom:20px; margin-bottom:4px; border-bottom:1px solid #e1e6ee; }
[data-surface=chat] .background-sidebar-card header small { font-size:9px; color:#8893a3; letter-spacing:.12em; }
[data-surface=chat] .background-sidebar-card h2 { margin-top:8px; font-size:19px; }
[data-surface=chat] .background-sidebar-card label { font-size:12px; color:#4e6076; }
[data-surface=chat] .background-sidebar-card textarea { border-radius:10px; background:#fff; }
[data-surface=chat] .primary-button { border-radius:9px; font-size:13px; background:linear-gradient(145deg,#314d6c,#1d324c); }
/* Public account forms use typography, never invented application artwork. */
[data-surface=auth] .login-shell { display:grid; grid-template-columns:1fr minmax(360px,440px); gap:100px; align-items:center; width:min(1080px,calc(100% - 96px)); margin:auto; padding:64px 0; }
.auth-identity { display:flex; flex-direction:column; align-self:stretch; justify-content:space-between; min-height:570px; padding:24px 0; }
.auth-identity > a { width:max-content; color:#344960; font-size:25px; letter-spacing:-.035em; font-weight:600; text-decoration:none; }
.auth-identity div > span { color:#8893a3; font-size:10px; letter-spacing:.13em; }
.auth-identity h2 { margin:26px 0 22px; color:#344960; font-size:56px; line-height:1.4; font-weight:500; letter-spacing:-.045em; }
.auth-identity p { color:#788494; font-size:14px; line-height:1.8; }
.auth-identity > small { color:#8893a3; font-size:11px; }
[data-surface=auth] .login-card { padding:40px; border-radius:20px; box-shadow:0 30px 80px -60px #20365180; }
[data-surface=auth] h1 { font-size:29px; }
[data-surface=auth] .auth-tabs { margin-bottom:32px; padding:4px; border-radius:10px; border:0; }
[data-surface=auth] .auth-tabs .auth-tab { border-radius:7px; }
[data-surface=auth] .auth-tabs .auth-tab.active { box-shadow:0 2px 4px #2036510d; }
[data-surface=auth] .login-description { margin-bottom:32px; color:#788494; font-size:14px; }
[data-surface=auth] form label { margin-top:6px; color:#4e6076; font-size:13px; font-weight:500; }
[data-surface=auth] input { min-height:48px; border-radius:9px; background:#fbfcfe; }
[data-surface=auth] input:focus-visible { outline:2px solid #91aed1; outline-offset:1px; background:#fff; }
[data-surface=auth] form button { margin-top:18px; min-height:50px; border-radius:10px; background:linear-gradient(145deg,#314d6c,#1d324c); box-shadow:inset 0 1px #ffffff25,0 8px 18px -12px #19385280; }
.error-shell { position:relative; isolation:isolate; min-height:78svh; }
.error-shell::before { position:absolute; content:'404'; inset:15% 0 auto; z-index:-1; color:#e5eaf2; font-size:clamp(130px,22vw,260px); font-weight:600; letter-spacing:-.07em; text-align:center; opacity:.55; pointer-events:none; }
.error-shell > .eyebrow { color:#6484ac; }
.error-shell h1 { font-size:38px; font-weight:500; }
@media(max-width:1100px) {
  .route-intro,.release-catalog { gap:36px; }
  .playground-feature { grid-template-columns:.7fr 1.3fr; padding:36px 30px; gap:28px; }
  .playground-copy h2 { font-size:36px; }
  .doc-page-shell,.doc-page-shell.doc-with-tree { gap:28px; grid-template-columns:180px minmax(0,1fr); }
  .doc-page-shell:has(.doc-outline:not([hidden])) { grid-template-columns:180px minmax(0,1fr); }
  .doc-page-shell:not(.doc-with-tree),.doc-page-shell:not(.doc-with-tree):has(.doc-outline:not([hidden])) { grid-template-columns:1fr; }
  .doc-outline { display:none; }
  .doc-paper { padding:32px; }
  #admin-app { grid-template-columns:165px minmax(0,1fr); column-gap:20px; }
  .admin-panel { padding:24px; }
  .document-workspace { padding:0; grid-template-columns:185px minmax(0,1fr); }
  .editor-meta { padding:15px; grid-template-columns:minmax(0,1fr) 100px; }
  #document-url { grid-row:3; }
  .editor-meta .admin-action { grid-column:1/-1; }
  .editor-split { grid-template-columns:1fr; }
  .editor-source { min-height:320px; border-right:0; border-bottom:1px solid #e1e6ee; }
  .editor-preview { min-height:320px; }
  .risk-layout { grid-template-columns:1fr; }
  [data-surface=auth] .login-shell { gap:50px; width:calc(100% - 64px); }
  .auth-identity h2 { font-size:46px; }
}
@media(max-width:760px) {
  .route-intro { grid-template-columns:1fr; padding-block:36px 42px; gap:28px; }
  .route-copy h1 { font-size:44px; }
  .route-copy h1 br { display:none; }
  .route-copy > p:not(.eyebrow) br { display:none; }
  .release-preview { margin:0; }
  .release-catalog { grid-template-columns:1fr; gap:28px; padding-block:34px 58px; }
  .catalog-heading > p:last-child { margin-bottom:0; }
  .playground-heading > div:last-child { display:block; }
  .playground-heading p:last-child { max-width:none; margin:18px 0 0; }
  .playground-feature { grid-template-columns:1fr; padding:30px; gap:28px; }
  .playground-copy h2 { font-size:38px; }
  .playground-copy h2 br { display:initial; }
  .playground-copy p br { display:none; }
  .playground-notes { gap:28px; padding-block:32px 54px; }
  .playground-notes h3 { font-size:18px; }
  .doc-page-shell,.doc-page-shell.doc-with-tree,.doc-page-shell:has(.doc-outline:not([hidden])) { display:block; }
  .doc-page-shell,.doc-page-shell.doc-with-tree { width:calc(100% - 40px); }
  .doc-tree { max-height:220px; padding:14px 8px; margin-bottom:24px; border:1px solid #e0e5ec; border-radius:12px; }
  .doc-tree-heading { margin-bottom:14px; }
  .doc-paper { padding:28px; }
  #admin-app { display:block; }
  .admin-shell { width:calc(100% - 40px); }
  .admin-top { align-items:flex-start; padding-bottom:24px; margin-bottom:20px; }
  .admin-tabs { position:static; display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:6px; margin:0 0 20px; padding:6px; overflow:visible; border-radius:12px; }
  .admin-nav-label { display:none; }
  .admin-tabs button { grid-column:span 2; gap:8px; justify-content:center; width:auto; min-height:44px; padding-inline:6px; font-size:12px; }
  .admin-tabs button:nth-last-child(-n+2) { grid-column:span 3; }
  .admin-tabs button svg { width:17px; height:17px; }
  .admin-panel { padding:22px; }
  .admin-panel-heading { flex-wrap:nowrap; align-items:flex-start; }
  .admin-panel-heading h2 { font-size:22px; }
  .admin-panel-heading .admin-action { flex:0 0 auto; }
  .user-row { padding-block:20px; }
  .document-workspace { display:block; padding:0; }
  .document-sidebar { max-height:250px; }
  .editor-meta { grid-template-columns:minmax(0,1fr) 100px; }
  .editor-preview { padding:24px; }
  [data-surface=chat] .persona-rail { padding-top:0; }
  [data-surface=chat] .stage-heading h1 { font-size:23px; }
  [data-surface=chat] .empty-chat h2 { font-size:27px; }
  [data-surface=chat] .composer { gap:6px; grid-template-columns:minmax(0,1fr) 60px; padding:8px; border-radius:13px; }
  [data-surface=chat] .composer textarea { min-height:60px; padding:8px; font-size:14px; }
  [data-surface=chat] .send-button { width:60px; }
  [data-surface=chat] .auth-shell { width:calc(100% - 40px); margin:24px auto; border-radius:18px; }
  [data-surface=chat] .auth-poster { padding:28px; }
  [data-surface=chat] .poster-kicker { padding-right:38px; font-size:9px; line-height:1.6; }
  [data-surface=chat] .auth-poster .poster-icon { position:absolute; top:24px; right:24px; width:32px; height:32px; }
  [data-surface=chat] .auth-poster h1 { margin:30px 0 12px; font-size:28px; line-height:1.4; }
  [data-surface=chat] .auth-poster h1 span { margin-left:6px; }
  [data-surface=chat] .auth-poster p { width:auto; max-width:none; margin:0; font-size:13px; line-height:1.8; }
  [data-surface=auth] .login-shell { display:block; width:min(460px,calc(100% - 40px)); padding:32px 0; }
  .auth-identity { min-height:0; padding:0 0 28px; }
  .auth-identity > a { font-size:24px; }
  .auth-identity div,.auth-identity > small { display:none; }
  [data-surface=auth] .login-card { width:100%; padding:32px; }
}
@media(max-width:480px) {
  .route-intro,.playground-heading { padding-top:28px; }
  .route-copy .breadcrumb { margin-bottom:28px; }
  .route-copy h1 { font-size:38px; }
  .release-preview { padding:12px 12px 0; border-radius:16px; }
  .release-preview figcaption { padding-block:14px; font-size:10px; }
  .release-state { flex-direction:column; align-items:flex-start; gap:20px; }
  .release-row { gap:14px; padding-block:24px; }
  .release-type { flex-basis:46px; width:46px; height:46px; border-radius:10px; font-size:9px; }
  .release-row h3 { font-size:17px; }
  .release-row p { font-size:11px; }
  .release-pending { font-size:10px; }
  .manifest-details summary { flex-wrap:wrap; gap:8px 16px; padding-block:18px; }
  .manifest-details summary code { order:3; width:100%; }
  .manifest-details > div { padding:16px 12px; }
  .manifest-details .api-table th,.manifest-details .api-table td { padding:12px 6px; font-size:11px; }
  .playground-heading h1 { font-size:32px; }
  .playground-feature { padding:26px 20px; border-radius:18px; }
  .playground-copy h2 { font-size:36px; }
  .playground-capture { padding:10px 10px 0; }
  .playground-capture figcaption { padding-block:12px; font-size:10px; }
  .playground-notes { grid-template-columns:1fr; gap:12px; }
  .doc-page-shell,.doc-page-shell.doc-with-tree { margin-block:28px 48px; }
  .doc-paper { min-height:420px; padding:26px 22px; }
  .doc-paper-header h1 { font-size:28px; }
  .doc-paper-header { padding-bottom:22px; margin-bottom:22px; }
  .service-summary { grid-template-columns:1fr; }
  .ai-version-form { padding:18px; }
  .ai-version-actions { align-items:stretch; flex-direction:column; }
  .ai-version-actions .button { align-self:flex-start; }
  .admin-modal-header { grid-template-columns:minmax(0,1fr) auto; gap:14px; }
  .admin-modal-mark { display:none; }
  .admin-modal-header h2 { font-size:22px; line-height:1.4; text-wrap:balance; }
  .admin-top h1 { font-size:32px; }
  .admin-top .eyebrow { display:none; }
  .admin-top > .button { display:none; }
  .admin-panel { padding:20px; }
  .document-workspace { padding:0; }
  .risk-events { padding:16px; }
  [data-surface=auth] .login-card { padding:28px 24px; }
  .error-shell h1 { font-size:29px; }
}
/* Route-specific symbols replace repeated arrows and decorative English labels. */
.site-symbol { display:block; flex:0 0 auto; width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round; }
[data-icon] > .site-symbol { width:100%; height:100%; }
.site-nav a,.site-footer nav a,.text-link,.route-link,.topnav a { display:inline-flex; align-items:center; gap:10px; }
.site-nav .site-symbol,.site-footer .site-symbol { width:19px; height:19px; }
.action-glyph { display:grid; place-content:center; width:30px; height:30px; flex:0 0 30px; }
.action-glyph > .site-symbol { width:24px; height:24px; }
.home-action .action-glyph > .site-symbol { width:23px; height:23px; }
.utility-heading { display:flex; align-items:center; gap:24px; padding-block:64px 46px; }
.utility-heading h1 { margin:0; font-size:48px; font-weight:600; letter-spacing:-.05em; }
.page-emblem { display:grid; place-content:center; width:72px; height:72px; color:#3e78b4; background:#e9eff7; border-radius:20px; }
.page-emblem > .site-symbol { width:45px; height:45px; }
.download-layout { display:grid; grid-template-columns:.85fr 1.15fr; gap:72px; padding-bottom:100px; align-items:start; }
.download-state { padding-top:34px; border-top:1px solid #c9d5e3; }
.download-state h2 { margin:0; font-size:27px; font-weight:500; letter-spacing:-.035em; }
.download-state p { max-width:340px; margin:20px 0 30px; color:#626c7a; font-size:16px; line-height:1.9; }
.download-state .button { padding-right:14px; }
.release-files { padding:8px 32px 0; border:1px solid #e0e5ec; border-radius:18px; background:#ffffffa6; }
.release-file { display:flex; align-items:center; gap:24px; padding:30px 0; border-bottom:1px solid #e0e5ec; }
.artifact-emblem { display:block; width:52px; height:52px; flex:0 0 52px; color:#537fae; }
.release-file:nth-child(2) .artifact-emblem { color:#98738c; }
.release-file h2 { margin:0; font-size:24px; font-weight:500; letter-spacing:-.025em; }
.release-file p { margin:10px 0 0; color:#69788d; font-size:14px; }
.release-links { display:flex; justify-content:space-between; align-items:center; gap:24px; min-height:76px; font-size:14px; }
.release-links > a:last-child { color:#69788d; text-decoration:underline; text-underline-offset:5px; }
.playground-entry { display:grid; grid-template-columns:112px minmax(0,1fr) auto; align-items:center; gap:40px; min-height:320px; padding:56px 48px; border:1px solid #273447; border-radius:24px; color:#fff; background:radial-gradient(ellipse at 10% 120%,#3b5b7c66,transparent 60%),#202938; }
.playground-emblem { display:block; width:112px; height:112px; color:#bacce6; }
.playground-entry h2 { margin:0; color:#f5f7fc; font-size:34px; font-weight:500; letter-spacing:-.035em; }
.playground-entry p { max-width:360px; margin:22px 0 0; color:#c0c9d7; font-size:17px; line-height:1.85; }
.playground-entry .button.primary { color:#243954; background:linear-gradient(145deg,#f1f4fb,#dce6f3); border-color:#eff4fc; box-shadow:inset 0 1px #fff,0 10px 24px -16px #0007; }
.playground-footnote { display:flex; justify-content:space-between; align-items:center; gap:40px; padding-block:32px 100px; }
.playground-footnote p { margin:0; font-size:14px; line-height:1.8; color:#69788d; }
.admin-top { min-height:98px; }
.admin-modal-mark [data-icon] { width:32px; height:32px; }
.doc-tree-heading { margin-bottom:18px; }
.auth-identity { justify-content:flex-start; gap:90px; }
.auth-identity h2 { margin-top:0; }
[data-surface=chat] .stage-heading h1 { margin-top:0; }
[data-surface=chat] .rail-note strong { display:none; }
[data-surface=chat] .send-button b { width:20px; height:20px; display:block; }
@media(max-width:1060px) {
  .download-layout { gap:40px; }
  .playground-entry { grid-template-columns:90px minmax(0,1fr); padding:40px; gap:30px; }
  .playground-emblem { width:90px; height:90px; grid-row:1/3; }
  .playground-entry .button { grid-column:2; justify-self:start; }
}
@media(max-width:640px) {
  .site-nav .site-symbol { width:22px; height:22px; }
  .utility-heading { gap:18px; padding-block:36px 32px; }
  .utility-heading h1 { font-size:36px; }
  .page-emblem { width:58px; height:58px; border-radius:16px; }
  .page-emblem > .site-symbol { width:36px; height:36px; }
  .download-layout { grid-template-columns:1fr; gap:36px; padding-bottom:60px; }
  .download-state { padding-top:26px; }
  .download-state h2 { font-size:25px; }
  .download-state p { margin-block:16px 24px; }
  .release-files { padding-inline:24px; }
  .release-file { gap:20px; padding-block:26px; }
  .release-file h2 { font-size:22px; }
  .artifact-emblem { width:46px; height:46px; flex-basis:46px; }
  .release-links { gap:16px; font-size:13px; }
  .playground-entry { grid-template-columns:1fr; padding:30px 26px; gap:28px; border-radius:18px; }
  .playground-emblem { grid-row:auto; width:72px; height:72px; }
  .playground-entry .button { grid-column:auto; }
  .playground-entry h2 { font-size:29px; }
  .playground-entry p { margin-top:16px; font-size:16px; }
  .playground-footnote { display:block; padding-block:26px 60px; }
  .playground-footnote .route-link { margin-top:16px; }
  .auth-identity { gap:0; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; } }
