/* SPDX-FileCopyrightText: 2026 Zixar contributors
 * SPDX-License-Identifier: GPL-3.0-or-later */
:root {
  --bg:#f3f5f2;
  --paper:#fff;
  --ink:#202b25;
  --muted:#59665e;
  --line:#dfe5df;
  --purple:#315c43;
  --purple-dark:#224631;
  --tint:#eaf0e9;
  --green:#448164;
  --radius:12px;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:var(--bg);
  font-synthesis:none}

* {
  box-sizing:border-box}
body {
  margin:0;
  -webkit-font-smoothing:antialiased}
a {
  color:inherit;
  text-decoration:none}
button,input {
  font:inherit}
button,a,input {
  touch-action:manipulation}
a:focus-visible,button:focus-visible,input:focus-visible {
  outline:3px solid #a68bd4;
  outline-offset:4px}
a:hover {
  color:var(--purple)}
h1,h2,h3,p {
  margin-top:0}
h1,h2,h3 {
  font-weight:570;
  letter-spacing:-.04em}
h1 {
  font-size:40px;
  line-height:1.12;
  margin-bottom:15px}
h2 {
  font-size:24px;
  line-height:1.3}
h3 {
  font-size:17px;
  letter-spacing:-.02em}
p {
  line-height:1.65;
  color:var(--muted)}
svg {
  display:block}
small {
  font-size:12px;
  color:var(--muted)}
.site-header {
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.52)}
.header-inner {
  max-width:1240px;
  padding:21px 38px;
  display:flex;
  align-items:center;
  gap:45px;
  margin:auto}
.brand {
  display:flex;
  align-items:center;
  gap:11px;
  font-size:23px;
  font-weight:650;
  letter-spacing:-1px}
.brand-mark {
  background:var(--ink);
  color:white;
  border-radius:10px;
  width:39px;
  height:39px;
  padding:5px}
.brand-caption {
  display:block;
  letter-spacing:1.8px;
  font-size:8px;
  font-weight:650;
  margin-top:2px;
  color:var(--muted)}
nav {
  display:flex;
  gap:28px;
  font-size:13px;
  color:var(--muted)}
nav a[aria-current] {
  color:var(--ink);
  font-weight:600}
.service-status {
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:8px;
  font-size:11px;
  color:#58715c;
  white-space:nowrap}
.service-status i {
  width:6px;
  height:6px;
  border-radius:50%;
  background:#6a9576;
  box-shadow:0 0 0 4px #e9eee6}
.header-label {
  font-size:12px;
  color:var(--muted)}
main {
  max-width:1164px;
  margin:auto;
  padding:54px 0 35px;
  min-height:calc(100vh - 150px)}
.site-footer {
  max-width:1164px;
  margin:auto;
  padding:22px 0 26px;
  display:flex;
  justify-content:space-between;
  border-top:1px solid var(--line);
  font-size:11px;
  color:var(--muted)}
.site-footer a {
  display:flex;
  gap:8px}
.eyebrow {
  display:block;
  font-size:10px;
  letter-spacing:2px;
  font-weight:650;
  color:var(--purple);
  margin-bottom:22px}
.auth-layout {
  display:grid;
  grid-template-columns:1.12fr 1fr;
  gap:80px;
  align-items:center;
  padding:0 26px}
.intro {
  padding:14px 0}
.intro h1 {
  font-size:clamp(42px,4.5vw,61px);
  line-height:1.06;
  letter-spacing:-3px;
  margin-bottom:23px}
.intro h1 em {
  font-style:normal;
  color:var(--purple)}
.intro>p {
  font-size:15px;
  max-width:330px}
.scene {
  width:100%;
  max-width:450px;
  margin:-3px 0 -4px}
.intro-bottom {
  display:flex;
  gap:25px;
  font-size:11px;
  color:var(--muted);
  border-top:1px solid var(--line);
  padding-top:20px;
  max-width:400px}
.intro-bottom span::before {
  content:'✓';
  color:var(--purple);
  margin-right:7px}
.panel {
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--paper);
  padding:30px}
.auth-card {
  box-shadow:0 12px 42px #24202906;
  padding:35px 37px}
.auth-card h2 {
  font-size:30px;
  margin-bottom:10px;
  letter-spacing:-1px}
.auth-card .subheading {
  font-size:13px;
  line-height:1.65;
  margin-bottom:25px}
.mode-tabs {
  display:flex;
  background:#f3f2ef;
  padding:4px;
  border-radius:9px;
  margin-bottom:27px}
.mode-tabs a {
  width:50%;
  text-align:center;
  padding:10px 8px;
  font-size:12px;
  color:var(--muted);
  border-radius:6px}
.mode-tabs a[aria-current] {
  background:white;
  box-shadow:0 1px 4px #2924320a;
  color:var(--ink);
  font-weight:600}
.field {
  display:block;
  font-size:12px;
  font-weight:550;
  margin:19px 0}
.field input {
  display:block;
  width:100%;
  border:1px solid #dedce2;
  background:#fff;
  border-radius:8px;
  padding:13px 14px;
  margin-top:8px;
  color:var(--ink);
  font-size:13px;
  transition:border-color .15s}
.field input::placeholder {
  color:#a09ca6}
.field input:focus {
  outline:none;
  border-color:#8c6abb;
  box-shadow:0 0 0 3px #f1ebf9}
.field small {
  font-weight:400;
  display:block;
  margin-top:7px;
  line-height:1.5;
  font-size:11px}
.button,button {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:26px;
  border:1px solid transparent;
  background:var(--purple);
  color:#fff;
  padding:13px 19px;
  border-radius:8px;
  font-size:12px;
  font-weight:600;
  cursor:pointer;
  min-height:43px;
  line-height:1.35}
.button:hover,button:hover {
  background:var(--purple-dark);
  color:white}
.button span:last-child {
  font-size:17px;
  font-weight:400}
.button.full {
  width:100%;
  margin-top:6px;
  justify-content:space-between}
.button.secondary {
  background:white;
  color:var(--ink);
  border-color:var(--line)}
.button.secondary:hover {
  border-color:#a48ec0;
  background:#faf8fd}
.fine-print {
  text-align:center;
  font-size:10px;
  line-height:1.7;
  color:#86818d;
  margin:19px 0 0}
.connection {
  display:flex;
  gap:12px;
  background:var(--tint);
  border:1px solid #e6ddf2;
  border-radius:10px;
  padding:13px;
  margin-bottom:25px}
.connection-icon {
  font-size:22px;
  color:var(--purple)}
.connection strong {
  font-size:11px;
  font-weight:600;
  display:block;
  margin-bottom:4px}
.connection p {
  font-size:11px;
  line-height:1.5;
  margin:0;
  color:#7c6a96}
.error {
  background:#fff2ef;
  color:#a64031;
  border:1px solid #f5d9d3;
  border-radius:8px;
  padding:12px 14px;
  font-size:12px;
  line-height:1.6;
  margin-bottom:20px}
.notice {
  font-size:12px;
  line-height:1.7;
  background:var(--tint);
  color:#715c91;
  border-radius:10px;
  padding:16px;
  margin:20px 0}
.narrow {
  max-width:580px;
  margin:65px auto}
.recovery {
  padding:40px}
.recovery h1 {
  font-size:32px}
.recovery>p {
  font-size:14px}
.workspace {
  display:grid;
  grid-template-columns:185px 1fr;
  gap:42px}
.sidebar {
  border-right:1px solid var(--line);
  padding-right:25px;
  display:flex;
  flex-direction:column;
  gap:5px}
.sidebar a {
  padding:11px 14px;
  border-radius:8px;
  font-size:12px;
  color:var(--muted)}
.sidebar a[aria-current] {
  color:var(--purple);
  background:#eae4f3;
  font-weight:600}
.sidebar .eyebrow {
  margin:9px 14px 15px;
  font-size:9px;
  color:#96909b}
.sidebar .account-mini {
  margin-top:45px;
  padding:16px 13px;
  border-top:1px solid var(--line)}
.account-mini strong {
  font-size:12px;
  display:block;
  overflow-wrap:anywhere;
  margin:10px 0 7px}
.avatar {
  display:flex;
  align-items:center;
  justify-content:center;
  width:35px;
  height:35px;
  font-size:13px;
  font-weight:600;
  border-radius:11px;
  color:var(--purple);
  background:#e7def2}
.quiet-button {
  color:var(--muted);
  background:transparent;
  padding:0;
  min-height:30px;
  font-size:11px;
  font-weight:400}
.quiet-button:hover {
  background:transparent;
  color:var(--purple)}
.page-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:28px}
.page-heading h1 {
  font-size:34px;
  margin-bottom:10px}
.page-heading p {
  font-size:13px;
  margin:0}
.page-heading .eyebrow {
  margin-bottom:12px}
.stats {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:15px;
  margin-bottom:25px}
.stat {
  padding:22px 24px}
.stat .stat-label {
  font-size:11px;
  color:var(--muted);
  display:block}
.stat .stat-value {
  display:block;
  font-size:28px;
  letter-spacing:-1px;
  margin:15px 0 7px;
  font-weight:500}
.stat small {
  font-size:10px}
.dot-label {
  color:var(--green)}
.content-grid {
  display:grid;
  grid-template-columns:1.8fr 1fr;
  gap:22px}
.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  padding-bottom:20px}
.section-heading h2 {
  font-size:17px;
  margin:0}
.count-badge {
  background:#f4f2f7;
  border-radius:5px;
  padding:4px 8px;
  font-size:10px;
  color:var(--muted)}
.empty-state {
  text-align:center;
  padding:45px 10px 20px}
.empty-icon {
  width:52px;
  height:52px;
  border-radius:14px;
  background:#f4f1f8;
  margin:0 auto 20px;
  display:grid;
  place-items:center;
  color:#937caf;
  font-size:26px}
.empty-state h3 {
  font-size:16px;
  margin-bottom:10px}
.empty-state p {
  font-size:12px;
  max-width:275px;
  margin:0 auto 25px}
.aside-card {
  background:#ede7f5;
  border-color:#e4dcef}
.aside-card .eyebrow {
  font-size:9px;
  letter-spacing:1.4px}
.aside-card h2 {
  font-size:25px;
  line-height:1.25}
.aside-card p {
  font-size:12px;
  color:#82718f}
.step {
  display:flex;
  gap:12px;
  margin:20px 0}
.step-number {
  display:flex;
  flex:0 0 23px;
  height:23px;
  align-items:center;
  justify-content:center;
  border:1px solid #cfbedf;
  border-radius:50%;
  font-size:10px;
  color:#84689e}
.step p {
  margin:0;
  font-size:11px}
.step strong {
  display:block;
  color:#5c496f;
  font-weight:600;
  margin-bottom:4px}
.conversation-list {
  list-style:none;
  padding:0;
  margin:0}
.conversation-list li+li {
  border-top:1px solid var(--line)}
.conversation-list a {
  display:flex;
  gap:15px;
  align-items:center;
  padding:17px 0;
  font-size:12px}
.conversation-list .row-title {
  flex:1;
  min-width:0;
  overflow-wrap:anywhere}
.conversation-list time {
  font-size:10px;
  white-space:nowrap;
  color:var(--muted)}
.conversation-list .row-icon {
  width:27px;
  height:27px;
  border-radius:7px;
  background:#f4f2f7;
  display:grid;
  place-items:center;
  color:var(--purple)}
.help-heading {
  max-width:620px;
  margin-bottom:35px}
.help-heading p {
  font-size:14px}
.help-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px}
.help-grid p,.help-grid li {
  font-size:13px;
  line-height:1.8;
  color:var(--muted)}
.help-grid h2 {
  font-size:21px}
.help-grid ol {
  padding-left:20px}
.help-grid li {
  margin:14px 0}
.text-link {
  color:var(--purple);
  font-weight:550;
  text-decoration:underline;
  text-underline-offset:4px}
.back-link {
  display:inline-block;
  font-size:12px;
  color:var(--muted);
  margin-bottom:25px}
.message {
  margin:18px 0;
  padding:24px 27px;
  border:1px solid var(--line);
  border-radius:14px;
  background:white}
.message.assistant {
  background:#f1ecf6}
.message strong {
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:1px;
  color:var(--purple)}
.message pre {
  font-family:inherit;
  font-size:14px;
  line-height:1.75;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  margin-bottom:0}
.landing {
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:50px;
  align-items:center;
  padding:30px}
.landing h1 {
  font-size:60px;
  letter-spacing:-3px}
.landing h1 em {
  font-style:normal;
  color:var(--purple)}
.landing .actions {
  display:flex;
  gap:12px;
  margin-top:28px}
.landing .scene {
  max-width:100%}
.landing-note {
  border-top:1px solid var(--line);
  padding-top:26px;
  margin-top:35px;
  font-size:12px}
.skip-link {
  position:absolute;
  top:-80px;
  left:16px;
  background:white;
  padding:12px;
  z-index:10}
.skip-link:focus {
  top:10px}
code {
  padding:3px 6px;
  background:#f3f1f6;
  border-radius:5px;
  color:#765492;
  font-size:12px}

@media(min-width:1400px) {
  .auth-layout {
  padding-top:28px;
  padding-bottom:28px}
}

@media(max-width:1230px) {
  main,.site-footer {
  margin-left:38px;
  margin-right:38px}
.auth-layout {
  gap:45px;
  padding:0}
.header-inner {
  padding-left:38px;
  padding-right:38px}
}

@media(max-width:900px) {
  .auth-layout {
  gap:30px;
  grid-template-columns:1fr 1fr}
.intro h1 {
  font-size:46px;
  letter-spacing:-2px}
.auth-card {
  padding:28px 25px}
.workspace {
  grid-template-columns:1fr;
  gap:22px}
.sidebar {
  flex-direction:row;
  border:0;
  padding:0;
  align-items:center}
.sidebar .eyebrow,.sidebar .account-mini {
  display:none}
.content-grid {
  grid-template-columns:1.6fr 1fr}
.landing h1 {
  font-size:46px}
}

@media(max-width:680px) {
  .header-inner {
  padding:18px 22px;
  gap:20px}
.brand {
  font-size:21px}
.brand-caption {
  font-size:7px}
.header-label,.site-header nav {
  display:none}
.service-status {
  font-size:10px}
main {
  margin:0;
  padding:28px 20px}
.site-footer {
  margin:0 20px;
  font-size:10px}
.auth-layout {
  display:flex;
  flex-direction:column;
  gap:25px;
  align-items:stretch}
.intro {
  padding:3px 5px}
.intro .eyebrow {
  margin-bottom:12px;
  font-size:9px}
.intro h1 {
  font-size:35px;
  letter-spacing:-1.5px;
  margin-bottom:10px}
.intro h1 br {
  display:none}
.intro>p {
  font-size:12px;
  max-width:100%;
  margin-bottom:0}
.intro .scene,.intro-bottom {
  display:none}
.auth-card {
  padding:27px 24px}
.auth-card h2 {
  font-size:28px}
.auth-card .subheading {
  margin-bottom:19px}
.connection {
  margin-bottom:20px}
.stats {
  gap:8px}
.stat {
  padding:17px 12px}
.stat .stat-value {
  font-size:24px}
.stat .stat-label {
  font-size:10px}
.stat small {
  font-size:9px}
.page-heading h1 {
  font-size:29px}
.page-heading {
  align-items:flex-start}
.page-heading .button {
  font-size:10px;
  padding:10px 12px;
  white-space:nowrap}
.content-grid,.help-grid {
  grid-template-columns:1fr}
.panel {
  padding:24px}
.narrow {
  margin:20px auto}
.landing {
  padding:5px;
  grid-template-columns:1fr;
  gap:15px}
.landing h1 {
  font-size:43px}
.landing .scene {
  max-width:400px;
  margin:auto}
.landing-note {
  margin-top:15px}
.conversation-list time {
  display:none}
.help-heading h1 {
  font-size:32px}
}

@media(prefers-reduced-motion:reduce) {
  * {
  transition:none!important}
}


.mobile-signout { display: none; }
@media (max-width: 900px) {
  .mobile-signout { display: block; margin-left: auto; }
}

/* Workspace controls share the desktop's forest accent and neutral surfaces. */
main { min-height:calc(100dvh - 150px); }
.workspace-content { min-width:0; }
.workspace-content > .panel { margin-bottom:24px; }
.workspace .sidebar { align-self:start; position:sticky; top:24px; }
.sidebar a[aria-current],.avatar,.empty-icon,.conversation-list .row-icon { background:var(--tint); color:var(--purple); }
.aside-card,.message.assistant { background:var(--tint); border-color:var(--line); }
.aside-card p,.aside-card .step strong,.notice,.connection p { color:var(--muted); }
.connection,.step-number { border-color:var(--line); }
.settings-section { display:grid; grid-template-columns:minmax(180px, .9fr) minmax(220px, 1fr); gap:42px; }
.settings-section h2 { margin-bottom:10px; }
.settings-section p { font-size:14px; max-width:36ch; }
.settings-section .field:first-child { margin-top:0; }
.field select { display:block; width:100%; padding:12px; margin-top:8px; border:1px solid var(--line); border-radius:8px; background:white; color:var(--ink); font:inherit; }
.field textarea { display:block; width:100%; padding:14px; margin-top:8px; border:1px solid var(--line); border-radius:8px; background:white; color:var(--ink); font:inherit; line-height:1.6; resize:vertical; }
.field input::placeholder { color:#657368; }
.field input:focus { border-color:var(--purple); box-shadow:0 0 0 3px var(--tint); }
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible { outline:3px solid #68856f; outline-offset:3px; }
.button.secondary:hover { border-color:var(--purple); background:var(--tint); }
.button { white-space:nowrap; }
.block { display:block; margin-top:7px; overflow-wrap:anywhere; }
.check-field { display:flex; align-items:center; gap:10px; font-size:14px; margin:20px 0; }
.check-field input { width:18px; height:18px; accent-color:var(--purple); }
.table-scroll { overflow-x:auto; }
table { width:100%; border-collapse:collapse; text-align:left; font-size:13px; }
th { font-size:11px; color:var(--muted); font-weight:600; padding:14px 12px; border-bottom:1px solid var(--line); }
td { padding:18px 12px; vertical-align:middle; line-height:1.5; }
tbody tr:nth-child(even) { background:#f7f9f6; }
td:first-child,th:first-child { padding-left:0; }
.status-tag { color:var(--purple); background:var(--tint); border-radius:4px; padding:5px 8px; font-size:11px; }
.admin-metrics { display:grid; grid-template-columns:repeat(4,1fr); border-block:1px solid var(--line); margin-bottom:26px; }
.admin-metrics > div { padding:24px 16px; border-right:1px solid var(--line); }
.admin-metrics > div:first-child { padding-left:0; }
.admin-metrics > div:last-child { border-right:0; }
.admin-metrics span { display:block; font-size:12px; color:var(--muted); }
.admin-metrics strong { display:block; margin-top:12px; font-size:34px; font-weight:500; font-variant-numeric:tabular-nums; }
.service-strip { display:flex; flex-wrap:wrap; gap:20px; font-size:11px; color:var(--muted); margin-bottom:28px; }
.service-strip strong { display:block; margin-top:6px; color:var(--ink); font-size:12px; }
.search-form { display:flex; gap:12px; align-items:end; margin:22px 0; }
.search-form .field { margin:0; flex:1; }
.search-form button { min-height:44px; }
.pagination { display:flex; justify-content:flex-end; margin-top:22px; gap:12px; }
.image-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.image-tile { border:1px solid var(--line); border-radius:var(--radius); background:white; overflow:hidden; }
.image-tile img { width:100%; height:180px; object-fit:contain; display:block; background:var(--tint); }
.image-tile > div { padding:18px; }
.image-tile strong { font-size:13px; overflow-wrap:anywhere; }
.image-tile small { font-size:10px; }
details { margin-top:20px; font-size:13px; }
summary { cursor:pointer; color:var(--purple); padding:8px 0; }
details p { font-size:12px; }
.mono { font-family:ui-monospace,monospace; font-size:11px; overflow-wrap:anywhere; max-width:180px; }
.model-list { display:grid; gap:10px; margin:24px 0; }
.model-list code { color:var(--ink); background:var(--tint); padding:12px; overflow-wrap:anywhere; }
.mode-tabs a { flex:1; }
.fine-print { color:var(--muted); }
@media(max-width:900px) {
  .workspace .sidebar { position:static; flex-wrap:wrap; gap:4px; }
  .sidebar a { padding:10px 12px; }
  .image-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:680px) {
  .settings-section { grid-template-columns:1fr; gap:20px; }
  .admin-metrics { grid-template-columns:repeat(2,1fr); }
  .admin-metrics > div:nth-child(odd) { padding-left:0; }
  .admin-metrics > div:nth-child(2) { border-right:0; }
  .image-grid { grid-template-columns:1fr; }
  .page-heading { flex-wrap:wrap; }
}
