:root {
  --bg: #f5f7fb;
  --bg-deep: #edf2f8;
  --surface: #ffffff;
  --surface-soft: #f5f8ff;
  --surface-mint: #eef8f3;
  --ink: #0b1f3a;
  --ink-soft: #334a67;
  --muted: #5b718d;
  --line: #dce5f0;
  --line-strong: #c8d6e8;
  --brand: #2872e2;
  --brand-strong: #1d5fc4;
  --brand-vivid: #2872e2;
  --brand-soft: #eaf3ff;
  --accent: #5d8fe8;
  --accent-soft: #eef4ff;
  --plum: #61718a;
  --plum-soft: #eef2f7;
  --danger: #b83f39;
  --danger-soft: #fce8e6;
  --warning: #8a570d;
  --warning-soft: #fff0d1;
  --success: #176b48;
  --success-soft: #e5f3ea;
  --admin: #45697a;
  --admin-soft: #e8f0f3;
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, 0.04), 0 8px 24px rgba(11, 31, 58, 0.06);
  --shadow-md: 0 16px 45px rgba(11, 31, 58, 0.11);
  --shadow-lg: 0 28px 80px rgba(11, 31, 58, 0.15);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 34px;
  --container: 1180px;
  --font-display: "MiSans VF", "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color-scheme: light;
  font-family: var(--font-body);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
}

body.modal-open {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--brand-strong);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  color: var(--muted);
}

.brand-logo {
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-logo--large {
  width: 60px;
  height: 60px;
}

.icon {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.header-inner {
  width: min(calc(100% - 40px), var(--container));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
  transition: 0.18s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand);
  background: var(--brand-soft);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
}

.mobile-nav {
  display: none;
}

.prototype-banner {
  min-height: 34px;
  padding: 7px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #ffffff;
  background: var(--ink);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.prototype-banner .icon { color: #8eb8f6; }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.page {
  min-height: calc(100vh - 104px);
  padding: 34px 0 72px;
  animation: page-in 0.28s ease both;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  letter-spacing: -0.025em;
}

.display-title {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(39px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.display-title em {
  position: relative;
  color: var(--brand);
  font-style: normal;
  white-space: nowrap;
}

.display-title em::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -2px;
  right: -5px;
  bottom: 4px;
  height: 15px;
  border-radius: 12px 4px 10px 3px;
  background: rgba(40, 114, 226, 0.16);
  transform: rotate(-1.5deg);
}

.lead {
  max-width: 670px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.8;
}

.section-header {
  margin-bottom: 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-title {
  margin-bottom: 7px;
  font-size: clamp(25px, 3vw, 34px);
}

.section-copy {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 13px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.btn-primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 10px 24px rgba(40, 114, 226, 0.2);
}

.btn-primary:hover:not(:disabled) {
  background: var(--brand-strong);
  box-shadow: 0 14px 30px rgba(29, 95, 196, 0.24);
}

.btn-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
}

.btn-secondary:hover:not(:disabled) {
  border-color: #9fb4ce;
  background: var(--surface);
}

.btn-ghost {
  color: var(--ink-soft);
  background: transparent;
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(11, 31, 58, 0.06);
}

.btn-danger {
  color: #fff;
  background: var(--danger);
}

.btn-danger-soft {
  color: var(--danger);
  border-color: #efc8c4;
  background: var(--danger-soft);
}

.btn-sm {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
}

.btn-lg {
  min-height: 52px;
  padding: 0 23px;
  border-radius: 15px;
  font-size: 15px;
}

.btn-icon {
  width: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
}

.text-link:hover {
  color: var(--brand-strong);
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.badge,
.status-pill,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  border-radius: 999px;
  white-space: nowrap;
}

.badge {
  min-height: 28px;
  padding: 0 10px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 800;
}

.badge-ai {
  color: var(--brand-strong);
  border: 1px solid #bcd2f5;
  background: var(--accent-soft);
}

.badge-verified {
  color: var(--success);
  background: var(--success-soft);
}

.status-pill {
  min-height: 26px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 750;
}

.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-success { color: var(--success); background: var(--success-soft); }
.status-warning { color: var(--warning); background: var(--warning-soft); }
.status-danger { color: var(--danger); background: var(--danger-soft); }
.status-neutral { color: var(--muted); background: var(--bg-deep); }

.tag {
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: var(--surface-soft);
  font-size: 12px;
  font-weight: 650;
}

.avatar {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.96);
  border-radius: 32%;
  color: #fff;
  box-shadow: 0 8px 24px rgba(11, 31, 58, 0.16);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 23px;
  font-weight: 800;
}

.avatar-sm { width: 42px; height: 42px; border-width: 2px; border-radius: 14px; font-size: 17px; }
.avatar-md { width: 58px; height: 58px; border-radius: 18px; }
.avatar-lg { width: 92px; height: 92px; font-size: 38px; }
.avatar-xl { width: 118px; height: 118px; border-radius: 34px; font-size: 48px; }

.avatar--green { background: #39845f; }
.avatar--plum { background: #65728d; }
.avatar--gold { background: #a97b2b; }
.avatar--blue { background: #527d9c; }
.avatar--rose { background: #a86662; }

.avatar-presence {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 14px;
  height: 14px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #34a36a;
}

/* Home */
.hero {
  padding: 54px 0 62px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: 72px;
}

.hero-actions {
  margin: 28px 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-row .icon {
  color: var(--success);
}

.hero-visual {
  position: relative;
  min-height: 465px;
  display: grid;
  place-items: center;
}

.hero-orbit {
  position: absolute;
  width: 390px;
  height: 390px;
  border: 1px dashed rgba(40, 114, 226, 0.22);
  border-radius: 50%;
  animation: orbit 30s linear infinite;
}

@keyframes orbit { to { transform: rotate(360deg); } }

.hero-orbit::before,
.hero-orbit::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(93, 143, 232, 0.16);
}

.hero-orbit::before { top: 35px; left: 55px; }
.hero-orbit::after { right: 12px; bottom: 105px; background: var(--brand-vivid); box-shadow: 0 0 0 8px rgba(40, 114, 226, 0.13); }

.hero-demo {
  position: relative;
  z-index: 2;
  width: min(100%, 410px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg);
}

.demo-header {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--line);
}

.demo-header strong { display: block; font-size: 14px; }
.demo-header small { color: var(--muted); }

.demo-body {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.demo-bubble {
  max-width: 87%;
  padding: 12px 14px;
  border-radius: 16px 16px 16px 5px;
  color: var(--ink-soft);
  background: var(--surface-soft);
  font-size: 13px;
  line-height: 1.65;
}

.demo-bubble--user {
  margin-left: auto;
  border-radius: 16px 16px 5px 16px;
  color: #fff;
  background: var(--brand);
}

.demo-citation {
  display: flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--success);
  border-color: rgba(23, 107, 72, 0.2);
  background: var(--success-soft);
  font-size: 11px;
}

.floating-note {
  position: absolute;
  z-index: 3;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  font-size: 12px;
  font-weight: 750;
}

.floating-note--one { top: 36px; right: 3px; transform: rotate(-2deg); }
.floating-note--two { left: -5px; bottom: 48px; transform: rotate(2deg); }
.floating-note--one .icon { color: var(--success); }
.floating-note--two .icon { color: var(--brand); }

.search-stage {
  position: relative;
  z-index: 5;
  margin-top: -4px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.search-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-field {
  min-width: 0;
  flex: 1;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: var(--surface-soft);
}

.search-field:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(40, 114, 226, 0.12);
}

.search-field input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.quick-prompts {
  margin-top: 13px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.quick-chip {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-soft);
  background: var(--surface-soft);
  font-size: 12px;
}

.quick-chip:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

.home-section { padding: 58px 0 24px; }

.category-tabs {
  margin-bottom: 22px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar { display: none; }

.category-tab {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  color: var(--ink-soft);
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
}

.category-tab.is-active,
.category-tab:hover {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.avatar-card {
  position: relative;
  min-height: 316px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: 0.22s ease;
}

.avatar-card:hover {
  transform: translateY(-4px);
  border-color: #aac0dc;
  box-shadow: var(--shadow-md);
}

.avatar-card::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -55px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--card-tint, var(--brand-soft));
  opacity: 0.6;
}

.card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.avatar-card h3 { margin: 18px 0 7px; font-size: 20px; }
.avatar-card .creator-line { color: var(--muted); font-size: 12px; }
.avatar-card .value-line { margin: 16px 0; color: var(--ink-soft); line-height: 1.65; }
.avatar-card .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card-footer {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.card-footer .text-link { font-size: 13px; }

.results-note {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
}

.value-strip {
  margin: 72px 0 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.value-item {
  padding: 25px;
  border-right: 1px solid var(--line);
}

.value-item:last-child { border-right: 0; }
.value-icon { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 17px; border-radius: 12px; color: var(--brand); background: var(--brand-soft); }
.value-item h3 { margin-bottom: 7px; font-size: 15px; }
.value-item p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }

/* Brand home */
.home-page { padding-bottom: 38px; }
.home-hero { padding-bottom: 50px; }
.home-intro { padding-top: 34px; }
.home-section-heading { max-width: 780px; }

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.use-case-card {
  min-height: 132px;
  padding: 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: left;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: .2s ease;
}

.use-case-card:hover { transform: translateY(-3px); border-color: #aac0dc; box-shadow: var(--shadow-md); }
.use-case-index { color: var(--brand); font-size: 11px; font-weight: 850; letter-spacing: .08em; }
.use-case-card strong { display: block; margin-bottom: 9px; font-size: 17px; }
.use-case-card small { display: block; color: var(--muted); line-height: 1.65; }
.use-case-arrow { align-self: center; color: var(--brand); }

.home-process {
  padding: clamp(28px, 5vw, 52px);
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: 55px;
  border-radius: var(--radius-xl);
  color: #ffffff;
  background: var(--ink);
  box-shadow: var(--shadow-md);
}

.home-process-copy p { margin: 0; color: rgba(255,255,255,.72); line-height: 1.75; }
.home-process .eyebrow { color: #8db8f8; }
.process-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.process-steps div { padding: 18px; display: grid; grid-template-columns: auto 1fr; gap: 3px 11px; border: 1px solid rgba(255,255,255,.12); border-radius: 17px; background: rgba(255,255,255,.06); }
.process-steps span { grid-row: 1 / 3; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; color: #ffffff; background: var(--brand); font-size: 11px; font-weight: 850; }
.process-steps strong { font-size: 14px; }
.process-steps small { color: rgba(255,255,255,.65); line-height: 1.5; }
.home-trust-strip { margin-top: 0; }

.creator-callout {
  padding: clamp(28px, 5vw, 50px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  border: 1px solid #cfe0f6;
  border-radius: var(--radius-xl);
  background: var(--brand-soft);
}
.creator-callout h2 { margin-bottom: 10px; font-size: clamp(26px, 3vw, 38px); }
.creator-callout p { max-width: 720px; margin: 0; color: var(--ink-soft); line-height: 1.75; }
.creator-callout .btn { flex: 0 0 auto; }

.final-cta {
  margin-top: 68px;
  padding: 62px 25px;
  display: grid;
  justify-items: center;
  text-align: center;
  border-top: 1px solid var(--line);
}
.final-cta h2 { margin: 17px 0 10px; font-size: clamp(30px, 4vw, 46px); }
.final-cta p { margin-bottom: 24px; color: var(--muted); }

/* Home V9.2 — result-first editorial system */
.v92-home.page {
  --v92-rule: #c8d6e8;
  --v92-space: clamp(66px, 8vw, 108px);
  padding: 0 0 72px;
}

.v92-hero {
  padding: clamp(48px, 7vw, 86px) 0 clamp(60px, 8vw, 96px);
}

.v92-hero-grid {
  grid-template-columns: minmax(0, 7fr) minmax(340px, 5fr);
  align-items: start;
  gap: clamp(36px, 5vw, 72px);
}

.v92-hero-copy {
  min-width: 0;
  padding-top: clamp(4px, 1.6vw, 22px);
  text-align: left;
}

.v92-home .display-title {
  max-width: 10.8em;
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-size: clamp(44px, 5.1vw, 68px);
  line-height: 1.06;
}

.v92-home .display-title em { white-space: normal; }
.v92-home .display-title em::after { display: none; }
.v92-home .lead { max-width: 650px; font-size: 17px; line-height: 1.78; }

.home-question-form {
  max-width: 680px;
  margin: 29px 0 15px;
  padding: 17px;
  border: 1px solid var(--v92-rule);
  border-top: 3px solid var(--brand);
  border-radius: 3px 22px 3px 3px;
  background: var(--surface);
}

.home-query-label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.home-query-control {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface-soft);
}

.home-query-control:focus-within {
  border-color: var(--brand-strong);
  box-shadow: 0 0 0 3px rgba(29, 95, 196, 0.14);
}

.home-query-control > .icon { color: var(--brand-strong); }

.home-query-control input {
  min-width: 0;
  min-height: 52px;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 16px;
}

.home-query-control .btn {
  min-width: 118px;
  min-height: 52px;
  margin: -1px;
  border-radius: 13px;
  white-space: nowrap;
}

.home-prompts {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}

.home-prompts button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-soft);
  background: transparent;
  font-size: 11px;
}

.home-prompts button:hover { border-color: var(--brand); color: var(--brand-strong); background: var(--brand-soft); }

.creator-inline-link {
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  cursor: pointer;
  color: var(--brand-strong);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.v92-trust-row { margin-top: 11px; }

.result-proof {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #203957;
  border-top: 4px solid var(--brand);
  border-radius: 2px 28px 2px 2px;
  color: #ffffff;
  background: var(--ink);
  box-shadow: 0 28px 70px rgba(11, 31, 58, 0.2);
}

.result-proof-kicker {
  min-height: 48px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #aac7ee;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.result-proof-status {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #ffffff;
  letter-spacing: 0;
}

.proof-identity {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.proof-identity > div { min-width: 0; }
.proof-identity strong, .proof-identity small { display: block; }
.proof-identity strong { margin-bottom: 6px; font-size: 14px; }
.proof-identity small { color: #9fb2ca; font-size: 10px; line-height: 1.5; }

.proof-dialog { padding: 22px 20px 19px; }
.proof-label { display: block; margin-bottom: 7px; color: #8eb8f6; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.proof-dialog blockquote { margin: 0 0 20px; color: #d8e5f4; font-size: 13px; line-height: 1.65; }
.proof-dialog p { margin: 0; font-size: 15px; line-height: 1.78; }

.proof-ledger { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.proof-ledger > div {
  padding: 15px 20px;
  display: grid;
  grid-template-columns: minmax(92px, .35fr) minmax(0, 1fr);
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.proof-ledger span { display: flex; align-items: center; gap: 6px; color: #9fb2ca; font-size: 10px; }
.proof-ledger strong { overflow-wrap: anywhere; font-size: 11px; line-height: 1.55; }
.proof-ledger .proof-outcome { background: rgba(23, 107, 72, 0.24); }
.proof-ledger .proof-outcome span { color: #9cdbbd; }

.proof-action {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: #14355d;
  font-size: 12px;
  font-weight: 800;
}

.proof-action:hover { background: var(--brand-strong); }

.v92-home .home-section { padding-top: var(--v92-space); }
.v92-section-header { margin-bottom: 28px; }
.v92-section-header .section-copy { max-width: 720px; }

.v92-task-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  border-top: 1px solid var(--v92-rule);
}

.v92-task-item {
  min-width: 0;
  min-height: 142px;
  grid-column: span 6;
  padding: 24px 22px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 17px;
  border: 0;
  border-bottom: 1px solid var(--v92-rule);
  cursor: pointer;
  text-align: left;
  color: var(--ink);
  background: transparent;
}

.v92-task-item:nth-child(odd) { border-right: 1px solid var(--v92-rule); }
.v92-task-item:hover { background: var(--surface); }
.v92-task-index { color: var(--brand-strong); font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.v92-task-copy strong, .v92-task-copy small { display: block; }
.v92-task-copy strong { margin-bottom: 9px; font-family: var(--font-display); font-size: 19px; }
.v92-task-copy small { color: var(--muted); font-size: 12px; line-height: 1.65; }
.v92-task-arrow { color: var(--brand-strong); transition: transform .18s ease; }
.v92-task-item:hover .v92-task-arrow { transform: translateX(4px); }

.v92-service-grid {
  display: grid;
  grid-template-columns: 1.28fr 1fr 1fr;
  gap: 14px;
}

.v92-service-card {
  min-width: 0;
  min-height: 490px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--v92-rule);
  border-top: 3px solid var(--ink);
  border-radius: 2px 20px 2px 2px;
  background: var(--surface);
}

.v92-service-card.is-featured { border-top-color: var(--brand); background: var(--brand-soft); }
.v92-service-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.v92-service-person { min-width: 0; display: flex; align-items: center; gap: 12px; }
.v92-service-person > div { min-width: 0; }
.v92-service-person h3 { margin: 7px 0 0; font-size: 18px; }
.service-demo-label { flex: 0 0 auto; color: var(--muted); font-size: 9px; }
.service-result { margin: 24px 0 18px; }
.service-result span, .service-result strong { display: block; }
.service-result span { margin-bottom: 7px; color: var(--brand-strong); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.service-result strong { font-family: var(--font-display); font-size: 22px; line-height: 1.35; }

.service-facts { margin: 0; display: grid; }
.service-facts > div { padding: 11px 0; border-top: 1px solid var(--line); }
.service-facts dt { margin-bottom: 5px; color: var(--muted); font-size: 9px; }
.service-facts dd { margin: 0; overflow-wrap: anywhere; color: var(--ink-soft); font-size: 11px; line-height: 1.55; }
.service-action { min-height: 46px; margin-top: auto; padding: 0; display: flex; align-items: center; justify-content: space-between; border: 0; border-top: 1px solid var(--line-strong); cursor: pointer; color: var(--brand-strong); background: transparent; font-size: 12px; font-weight: 850; }

.v92-case-panel {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border: 1px solid var(--v92-rule);
  border-radius: 2px 28px 2px 2px;
  background: var(--surface);
}

.v92-case-intro { padding: clamp(30px, 4vw, 48px); color: #ffffff; background: var(--ink); }
.v92-case-intro .eyebrow { color: #8eb8f6; }
.v92-case-intro h2 { max-width: 430px; margin-bottom: 15px; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.14; }
.v92-case-intro > p { color: #aebed1; font-size: 11px; line-height: 1.6; }
.v92-case-intro blockquote { margin: 42px 0 28px; padding-left: 18px; border-left: 2px solid var(--brand); color: #ffffff; font-size: 17px; line-height: 1.75; }
.v92-case-intro .btn-secondary { color: #ffffff; border-color: rgba(255, 255, 255, .26); background: transparent; }

.case-journey { display: grid; grid-template-columns: 1fr 1fr; }
.case-step { min-width: 0; padding: 27px; border-bottom: 1px solid var(--line); }
.case-step:nth-child(odd) { border-right: 1px solid var(--line); }
.case-step > span { display: block; margin-bottom: 15px; color: var(--brand-strong); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.case-step p, .case-step li { color: var(--ink-soft); font-size: 12px; line-height: 1.7; }
.case-step ul { margin: 0; padding-left: 17px; }
.case-step small { display: flex; align-items: flex-start; gap: 6px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.case-step--result { display: flex; flex-direction: column; justify-content: center; background: var(--success-soft); }
.case-step--result > span { color: var(--success); }
.case-step--result strong { margin-bottom: 14px; font-family: var(--font-display); font-size: 22px; line-height: 1.35; }
.case-step--result small { color: var(--success); }

.v92-trust-ledger { border-top: 3px solid var(--ink); border-bottom: 1px solid var(--v92-rule); }
.v92-trust-heading { padding: 31px 0 27px; }
.v92-trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--v92-rule); }
.v92-trust-grid article { min-width: 0; padding: 25px 22px; border-right: 1px solid var(--v92-rule); }
.v92-trust-grid article:last-child { border-right: 0; }
.v92-trust-grid article > span { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 50%; color: var(--brand-strong); background: var(--brand-soft); }
.v92-trust-grid h3 { margin-bottom: 10px; font-size: 15px; }
.v92-trust-grid p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.v92-risk-note { margin: 0; padding: 14px 22px; border-top: 1px solid var(--v92-rule); color: var(--warning); background: var(--warning-soft); font-size: 11px; line-height: 1.6; }

.v92-creator-section {
  padding: clamp(30px, 5vw, 52px);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, .8fr) auto;
  align-items: center;
  gap: clamp(25px, 4vw, 48px);
  border-top: 3px solid var(--brand);
  border-radius: 2px 28px 2px 2px;
  background: var(--brand-soft);
}

.v92-creator-copy h2 { max-width: 620px; margin-bottom: 13px; font-size: clamp(29px, 3.5vw, 42px); line-height: 1.18; }
.v92-creator-copy p { margin: 0; color: var(--ink-soft); line-height: 1.75; }
.v92-creator-points { margin: 0; padding: 0; display: grid; gap: 12px; list-style: none; }
.v92-creator-points li { display: flex; align-items: flex-start; gap: 8px; color: var(--ink-soft); font-size: 12px; line-height: 1.55; }
.v92-creator-points .icon { margin-top: 2px; color: var(--success); }
.v92-creator-section .btn { white-space: nowrap; }

/* Discover */
.discover-page { padding-top: 0; }
.discover-hero {
  padding-top: 70px;
  padding-bottom: 26px;
  text-align: center;
}
.discover-hero > h1 { margin-bottom: 14px; font-size: clamp(38px, 6vw, 66px); letter-spacing: -.05em; }
.discover-hero > p { max-width: 680px; margin: 0 auto 30px; color: var(--ink-soft); font-size: 16px; line-height: 1.75; }
.discover-hero .search-stage {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}
.discover-hero .search-form {
  min-height: 90px;
  gap: 0;
  padding: 8px;
  border: 1.5px solid var(--brand);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 18px 46px rgba(11, 31, 58, 0.11);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.discover-hero .search-form:focus-within {
  border-color: var(--brand-strong);
  box-shadow: 0 0 0 4px rgba(40, 114, 226, 0.12), 0 20px 50px rgba(11, 31, 58, 0.14);
}
.discover-hero .search-field {
  min-height: 70px;
  gap: 13px;
  padding: 0 20px;
  border: 0;
  border-radius: 17px;
  background: transparent;
}
.discover-hero .search-field:focus-within {
  border-color: transparent;
  box-shadow: none;
}
.discover-hero .search-field > .icon { color: var(--ink-soft); font-size: 22px; }
.discover-hero .search-field input { font-size: 17px; line-height: 1.5; }
.discover-hero .search-form .btn {
  min-width: 118px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-size: 14px;
  box-shadow: 0 7px 18px rgba(40, 114, 226, 0.2);
}
.discover-hero .quick-prompts { margin-top: 16px; padding: 0 10px; }
.discover-results { padding-top: 46px; }
.discover-principle { margin-top: 62px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.discover-principle > div { padding: 20px; display: flex; align-items: flex-start; gap: 12px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface-soft); }
.discover-principle > div > .icon { margin-top: 3px; color: var(--brand); font-size: 20px; }
.discover-principle strong, .discover-principle small { display: block; }
.discover-principle strong { margin-bottom: 6px; font-size: 14px; }
.discover-principle small { color: var(--muted); line-height: 1.6; }

/* Public footer */
.site-footer { margin-top: 64px; border-top: 1px solid var(--line); background: var(--bg-deep); }
.footer-grid { min-height: 230px; padding-top: 42px; padding-bottom: 38px; display: grid; grid-template-columns: 1fr .9fr 1.1fr; align-items: start; gap: 40px; }
.footer-brand p { max-width: 330px; margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.footer-links button { padding: 7px 0; border: 0; cursor: pointer; text-align: left; color: var(--ink-soft); background: transparent; font-size: 12px; }
.footer-links button:hover { color: var(--brand); }
.footer-legal { display: grid; justify-items: end; gap: 9px; color: var(--muted); font-size: 11px; text-align: right; }
.footer-legal strong { color: var(--ink-soft); font-size: 13px; }
.filing-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.filing-row a { color: var(--muted); text-decoration: none; transition: color .16s ease; }
.filing-row a:hover, .filing-row a:focus-visible { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* Avatar profile */
.profile-page { padding-top: 22px; }
.profile-back { margin-bottom: 18px; }
.profile-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 44px;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.profile-hero::before {
  content: "";
  position: absolute;
  top: -90px;
  left: 45%;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(40, 114, 226, 0.12);
  border-radius: 50%;
}

.profile-identity {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 24px;
}

.profile-copy { min-width: 0; }
.profile-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.profile-copy h1 { margin-bottom: 6px; font-size: clamp(34px, 5vw, 52px); }
.short-code { color: var(--muted); font-size: 13px; font-weight: 700; }
.profile-value { max-width: 650px; margin: 19px 0 24px; color: var(--ink-soft); font-size: 19px; line-height: 1.65; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 9px; }

.creator-trust-card {
  position: relative;
  z-index: 1;
  padding: 22px;
  align-self: center;
  border: 1px solid rgba(23,107,72,.2);
  border-radius: 20px;
  background: var(--surface-mint);
}

.creator-trust-card .label { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.creator-row { margin: 13px 0 15px; display: flex; align-items: center; gap: 12px; }
.creator-row strong { display: block; font-size: 14px; }
.creator-row small { display: flex; align-items: center; gap: 4px; color: var(--muted); }
.creator-row small .icon { color: var(--success); }
.trust-detail { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.7; }

.profile-content {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr);
  gap: 20px;
}

.profile-panel { padding: 27px; }
.profile-panel h2 { margin-bottom: 18px; font-size: 20px; }
.question-list { display: grid; gap: 9px; }
.question-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  color: var(--ink-soft);
  background: var(--surface-soft);
  transition: .18s ease;
}
.question-card:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); transform: translateX(3px); }
.question-number { width: 26px; height: 26px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; color: var(--brand); background: var(--brand-soft); font-size: 11px; font-weight: 800; }

.boundary-list { display: grid; gap: 14px; }
.boundary-item { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.boundary-item .icon { margin-top: 3px; color: var(--success); }
.boundary-item.is-caution .icon { color: var(--warning); }
.meta-grid { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.meta-box { padding: 13px; border-radius: 12px; background: var(--surface-soft); }
.meta-box span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; }
.meta-box strong { font-size: 12px; }

/* Chat */
.chat-page { min-height: calc(100vh - 104px); padding: 18px 0; }
.chat-layout {
  height: calc(100vh - 140px);
  min-height: 650px;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.chat-sidebar {
  padding: 24px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--surface-soft);
}

.chat-profile { text-align: center; }
.chat-profile .avatar { margin: 12px auto 15px; }
.chat-profile .profile-badges { justify-content: center; margin: 0 0 9px; }
.chat-profile h2 { margin-bottom: 5px; font-size: 20px; }
.chat-profile p { color: var(--muted); font-size: 12px; line-height: 1.65; }
.chat-short-code { width: fit-content; margin: 8px auto 0; padding: 5px 8px 5px 10px; display: flex; align-items: center; gap: 4px; border-radius: 9px; color: var(--muted); background: rgba(11,31,58,.055); font-size: 11px; font-weight: 750; }
.chat-short-code .text-link { padding: 0; }
.chat-value { margin: 15px 0 0; padding: 13px; border: 1px solid rgba(40,114,226,.16); border-radius: 13px; color: var(--ink-soft); background: var(--brand-soft); font-size: 12px; font-weight: 700; line-height: 1.6; }
.chat-side-section { margin-top: 22px; padding-top: 19px; border-top: 1px solid var(--line); }
.chat-side-section h3 { margin-bottom: 11px; color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.chat-side-list { display: grid; gap: 9px; }
.chat-side-list span { display: flex; gap: 8px; color: var(--ink-soft); font-size: 12px; line-height: 1.55; }
.chat-side-list .icon { margin-top: 2px; color: var(--success); }
.chat-source-summary .text-link { margin-top: 12px; font-size: 11px; }
.chat-sidebar-actions { margin-top: auto; display: grid; gap: 7px; }

.chat-main { min-width: 0; display: flex; flex-direction: column; background: var(--surface); }
.chat-topbar {
  min-height: 72px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--line);
}
.chat-topbar-copy { min-width: 0; }
.chat-topbar-copy strong { display: block; font-size: 14px; }
.chat-topbar-copy small { color: var(--muted); font-size: 11px; }
.chat-topbar-actions { margin-left: auto; display: flex; gap: 6px; }

.message-list {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 28px clamp(20px, 6vw, 72px);
  scroll-behavior: smooth;
}

.chat-identity-card {
  max-width: 760px;
  margin: 0 auto 26px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.chat-identity-head { margin-bottom: 16px; display: flex; align-items: center; gap: 14px; }
.chat-identity-head .profile-badges { margin-bottom: 5px; }
.chat-identity-head h1 { margin-bottom: 3px; font-size: 23px; }
.chat-identity-head p { margin: 0; color: var(--muted); font-size: 11px; }
.chat-identity-card > strong { display: block; margin-bottom: 8px; font-size: 15px; }
.chat-identity-card > p { color: var(--ink-soft); font-size: 12px; line-height: 1.65; }
.chat-identity-meta { padding-top: 13px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); }
.chat-identity-meta > span { display: flex; align-items: flex-start; gap: 7px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.chat-identity-meta > span .icon { margin-top: 2px; color: var(--warning); }

.message-row {
  margin-bottom: 22px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  animation: message-in .24s ease both;
}

@keyframes message-in { from { opacity: 0; transform: translateY(6px); } }
.message-row--user { justify-content: flex-end; }
.message-avatar { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; color: #fff; background: var(--brand); font-size: 11px; font-weight: 800; }
.message-content { max-width: min(76%, 680px); }
.message-author { margin-bottom: 6px; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.message-bubble { padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px 17px 17px 17px; color: var(--ink-soft); background: var(--surface); line-height: 1.75; box-shadow: 0 5px 17px rgba(11,31,58,.04); }
.message-bubble p:last-child { margin-bottom: 0; }
.message-row--user .message-bubble { color: #fff; border-color: var(--brand); border-radius: 17px 6px 17px 17px; background: var(--brand); }
.message-status { margin-top: 6px; color: var(--muted); font-size: 10px; text-align: right; }
.typing-indicator { min-height: 21px; display: flex; align-items: center; gap: 5px; }
.typing-indicator i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); animation: typing 1s infinite ease-in-out; }
.typing-indicator i:nth-child(2) { animation-delay: .15s; }
.typing-indicator i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 70%, 100% { opacity: .25; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-4px); } }

.citation-list { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 7px; }
.citation-chip { min-height: 32px; display: inline-flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid #bdd9c7; border-radius: 10px; cursor: pointer; color: var(--success); background: var(--success-soft); font-size: 11px; font-weight: 700; }
.citation-chip:hover { border-color: var(--success); }
.message-actions { margin-top: 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.message-action { min-height: 30px; display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; border: 0; border-radius: 8px; cursor: pointer; color: var(--muted); background: transparent; font-size: 11px; }
.message-action:hover, .message-action.is-active { color: var(--brand); background: var(--brand-soft); }

.suggestion-row { margin: 3px 0 22px 41px; display: flex; flex-wrap: wrap; gap: 7px; }
.suggestion-chip { min-height: 37px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; color: var(--ink-soft); background: var(--surface); font-size: 12px; text-align: left; }
.suggestion-chip:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }

.chat-composer-wrap { padding: 12px 22px 17px; border-top: 1px solid var(--line); background: var(--surface); }
.guest-notice { margin: 0 auto 9px; display: flex; align-items: center; justify-content: space-between; gap: 10px; max-width: 860px; color: var(--muted); font-size: 11px; }
.composer { max-width: 860px; margin: 0 auto; display: flex; align-items: flex-end; gap: 9px; padding: 7px 7px 7px 15px; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--surface); box-shadow: 0 8px 28px rgba(11,31,58,.07); }
.composer:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(40,114,226,.12), 0 8px 28px rgba(11,31,58,.07); }
.composer textarea { min-height: 34px; max-height: 110px; flex: 1; resize: none; border: 0; outline: 0; background: transparent; line-height: 1.55; }
.composer-send { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border: 0; border-radius: 13px; cursor: pointer; color: #fff; background: var(--brand); }
.composer-send:disabled { cursor: not-allowed; opacity: .45; }
.composer-meta { max-width: 860px; margin: 7px auto 0; color: var(--muted); font-size: 10px; text-align: center; }

/* Modal / drawer / toast */
.modal-backdrop {
  position: fixed;
  z-index: 200;
  inset: 0;
  padding: 20px;
  display: grid;
  place-items: center;
  background: rgba(11, 31, 58, 0.52);
  animation: fade-in .18s ease both;
}
@keyframes fade-in { from { opacity: 0; } }
.modal {
  width: min(100%, 470px);
  max-height: min(90vh, 760px);
  overflow-y: auto;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 25px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: modal-in .22s ease both;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal-lg { width: min(100%, 650px); }
.modal-header { margin-bottom: 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal-header h2 { margin-bottom: 7px; font-size: 24px; }
.modal-header p { margin: 0; color: var(--muted); line-height: 1.65; }
.modal-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 17px; border-radius: 16px; color: var(--brand); background: var(--brand-soft); }
.modal-actions { margin-top: 22px; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.close-button { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border: 0; border-radius: 11px; cursor: pointer; color: var(--muted); background: var(--surface-soft); }
.close-button:hover { color: var(--ink); background: var(--bg-deep); }
.login-benefits { margin: 18px 0; display: grid; gap: 9px; }
.login-benefit { display: flex; align-items: center; gap: 9px; color: var(--ink-soft); font-size: 13px; }
.login-benefit .icon { color: var(--success); }
.login-steps { margin-bottom: 18px; display: flex; align-items: center; gap: 7px; }
.login-step { height: 4px; flex: 1; border-radius: 999px; background: var(--line); }
.login-step.is-active { background: var(--brand); }

.toast-region { position: fixed; z-index: 500; right: 20px; bottom: 20px; display: grid; gap: 9px; }
.toast { width: min(360px, calc(100vw - 40px)); padding: 13px 15px; display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink-soft); background: var(--surface); box-shadow: var(--shadow-md); animation: toast-in .25s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.toast .icon { margin-top: 2px; color: var(--success); }
.toast strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 13px; }
.toast span { font-size: 11px; line-height: 1.5; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { min-width: 0; display: grid; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { display: flex; justify-content: space-between; gap: 8px; color: var(--ink-soft); font-size: 12px; font-weight: 750; }
.form-hint { color: var(--muted); font-size: 10px; font-weight: 500; }
.input, .textarea, .select { width: 100%; border: 1px solid var(--line-strong); border-radius: 12px; outline: 0; color: var(--ink); background: var(--surface); transition: .16s ease; }
.input, .select { min-height: 44px; padding: 0 13px; }
.textarea { min-height: 104px; padding: 12px 13px; resize: vertical; line-height: 1.65; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(40,114,226,.12); }
.input::placeholder, .textarea::placeholder { color: #8a9bb1; }
.checkbox-row { display: flex; align-items: flex-start; gap: 9px; color: var(--ink-soft); font-size: 12px; line-height: 1.55; }
.checkbox-row input { width: 16px; height: 16px; margin-top: 1px; accent-color: var(--brand); }
.switch { position: relative; width: 45px; height: 25px; flex: 0 0 auto; border: 0; border-radius: 999px; cursor: pointer; background: #94a3b8; transition: .2s ease; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.16); transition: .2s ease; }
.switch.is-on { background: var(--success); }
.switch.is-on::after { transform: translateX(20px); }
.segmented { padding: 4px; display: inline-flex; gap: 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.segment { min-height: 34px; padding: 0 12px; border: 0; border-radius: 9px; cursor: pointer; color: var(--muted); background: transparent; font-size: 12px; font-weight: 700; }
.segment.is-active { color: var(--brand); background: var(--surface); box-shadow: 0 2px 8px rgba(11,31,58,.07); }

/* User center */
.user-center-page { padding-top: 28px; }
.user-center-layout { display: grid; grid-template-columns: 238px minmax(0, 1fr); align-items: start; gap: 22px; }
.user-center-sidebar { position: sticky; top: 94px; padding: 14px; }
.user-center-person { padding: 9px 7px 18px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); }
.user-center-person strong, .user-center-person small { display: block; }
.user-center-person strong { margin-bottom: 4px; font-size: 13px; }
.user-center-person small { color: var(--muted); font-size: 11px; }
.user-center-sidebar nav { padding: 12px 0; display: grid; gap: 14px; }
.user-center-nav-group { display: grid; gap: 3px; }
.user-center-nav-group > span { padding: 0 12px 6px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.user-center-nav-group.is-future { padding-top: 12px; border-top: 1px solid var(--line); }
.user-center-nav-group.is-future .user-center-link { color: var(--muted); }
.user-center-nav-group.is-future .user-center-link small { margin-left: auto; padding: 3px 6px; border-radius: 999px; color: var(--muted); background: var(--surface-soft); font-size: 9px; }
.user-center-link, .user-center-return { width: 100%; min-height: 42px; padding: 0 11px; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 11px; cursor: pointer; text-align: left; color: var(--ink-soft); background: transparent; font-size: 12px; font-weight: 650; }
.user-center-link:hover, .user-center-link.is-active { color: var(--brand); background: var(--brand-soft); }
.user-center-link i { min-width: 18px; height: 18px; margin-left: auto; display: grid; place-items: center; border-radius: 999px; color: #fff; background: var(--danger); font-size: 9px; font-style: normal; }
.user-center-return { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0; color: var(--muted); }
.user-center-main { min-width: 0; }
.user-center-heading { min-height: 64px; margin-bottom: 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.user-center-heading-actions { display: flex; align-items: center; gap: 8px; }
.user-center-heading .eyebrow { margin-bottom: 6px; }
.user-center-heading h1 { margin: 0; font-size: 30px; }
.user-center-gate { min-height: 430px; padding: 50px 24px; display: grid; place-items: center; align-content: center; text-align: center; }
.user-center-gate h2 { margin-bottom: 8px; }
.user-center-gate p { max-width: 480px; color: var(--muted); line-height: 1.7; }
.user-center-gate > div:last-child { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

.user-welcome-card { min-height: 250px; margin-bottom: 16px; padding: clamp(26px, 5vw, 48px); overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-radius: var(--radius-xl); color: #ffffff; background: var(--ink); box-shadow: var(--shadow-md); }
.user-welcome-card > div { max-width: 610px; }
.user-welcome-card span { color: #8db8f8; font-size: 12px; font-weight: 750; }
.user-welcome-card h2 { margin: 8px 0 10px; font-size: clamp(27px, 4vw, 40px); }
.user-welcome-card p { margin-bottom: 22px; color: rgba(255,255,255,.75); line-height: 1.7; }
.user-welcome-card .avatar { margin-right: 34px; box-shadow: 0 24px 60px rgba(0,0,0,.25); transform: rotate(3deg); }
.user-summary-grid { margin-bottom: 16px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 11px; }
.user-summary-grid button { min-height: 118px; padding: 16px; display: grid; grid-template-columns: 1fr auto; align-items: center; border: 1px solid var(--line); border-radius: 16px; cursor: pointer; text-align: left; background: var(--surface); }
.user-summary-grid button:hover { border-color: #aac0dc; box-shadow: var(--shadow-sm); }
.user-summary-grid span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; color: var(--brand); background: var(--brand-soft); }
.user-summary-grid strong { font-size: 25px; }
.user-summary-grid small { grid-column: 1 / -1; color: var(--muted); }
.user-dashboard-grid { margin-bottom: 16px; display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr); gap: 16px; }
.user-list { display: grid; }
.user-list-row { min-width: 0; padding: 15px 17px; display: flex; align-items: center; gap: 12px; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; text-align: left; background: transparent; }
.user-list-row:last-child { border-bottom: 0; }
.user-list-row:hover { background: var(--surface-soft); }
.user-list-row > span { min-width: 0; flex: 1; }
.user-list-row strong, .user-list-row small { display: block; }
.user-list-row strong { margin-bottom: 4px; font-size: 12px; }
.user-list-row small, .user-list-row time { color: var(--muted); font-size: 11px; }
.user-next-list { display: grid; gap: 8px; }
.user-next-list button { padding: 13px; display: grid; justify-items: start; gap: 6px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; text-align: left; background: var(--surface-soft); }
.user-next-list strong { font-size: 11px; line-height: 1.45; }
.user-next-list small { color: var(--muted); font-size: 11px; }
.user-saved-grid { padding: 14px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.user-saved-grid button { min-width: 0; padding: 13px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; text-align: left; background: var(--surface-soft); }
.user-saved-grid button > span { min-width: 0; flex: 1; }
.user-saved-grid strong, .user-saved-grid small { display: block; }
.user-saved-grid strong { margin-bottom: 4px; font-size: 11px; }
.user-saved-grid small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.user-toolbar { margin-bottom: 15px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.user-toolbar p { margin: 0; color: var(--muted); }
.user-saved-list, .user-settings-stack { display: grid; gap: 12px; }
.user-saved-card { padding: 18px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 15px; }
.user-saved-card h3 { margin: 6px 0; font-size: 17px; }
.user-saved-card p { margin-bottom: 5px; color: var(--ink-soft); }
.user-saved-card small { color: var(--muted); }
.user-saved-actions { display: grid; gap: 5px; }
.user-conversation-panel { padding: 12px; }
.user-conversation-panel .conversation-card { border-radius: 13px; box-shadow: none; }
.conversation-copy > small { color: var(--muted); font-size: 11px; }

.request-detail-card { overflow: hidden; }
.request-detail-head { padding: 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.request-detail-head > div { display: flex; gap: 12px; }
.request-detail-head h2 { margin: 8px 0 4px; font-size: 22px; }
.request-detail-head p, .request-detail-head > strong { color: var(--muted); font-size: 12px; }
.request-timeline { padding: 22px; display: grid; grid-template-columns: repeat(4,1fr); }
.request-timeline > div { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; color: var(--muted); }
.request-timeline > div::after { content:""; position:absolute; top:15px; left:calc(50% + 20px); right:calc(-50% + 20px); height:2px; background:var(--line); }
.request-timeline > div:last-child::after { display:none; }
.request-timeline span { z-index: 1; width: 30px; height: 30px; display:grid; place-items:center; border-radius:50%; background:var(--bg-deep); }
.request-timeline .is-done span { color:#fff; background:var(--success); }
.request-timeline .is-done::after { background:rgba(23,107,72,.35); }
.request-timeline strong { font-size: 11px; }
.request-timeline small { font-size: 11px; }
.request-copy { margin: 0 22px; padding: 16px; border-radius: 13px; background: var(--surface-soft); }
.request-copy span { color: var(--muted); font-size: 10px; }
.request-copy p { margin: 7px 0 0; line-height: 1.7; }
.request-detail-card > .modal-actions { padding: 0 22px 22px; }

.memory-dashboard-list { display: grid; }
.memory-dashboard-list article { padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); }
.memory-dashboard-list article > div { display: flex; align-items: center; gap: 11px; }
.memory-dashboard-list article > div:first-child { min-width: 0; }
.memory-dashboard-list article span { min-width: 0; }
.memory-dashboard-list article small, .memory-dashboard-list article strong, .memory-dashboard-list article time { display: block; }
.memory-dashboard-list article small, .memory-dashboard-list article time { color: var(--muted); font-size: 11px; }
.memory-dashboard-list article strong { margin: 4px 0; font-size: 12px; }
.user-danger-row { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #efc8c4; border-radius: 16px; background: rgba(252,232,230,.6); }
.user-danger-row strong { font-size: 13px; }
.user-danger-row p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.user-profile-form { padding: 24px; }
.profile-edit-head { margin-bottom: 24px; display: flex; align-items: center; gap: 16px; }
.profile-edit-head small { display:block; margin-top:6px; color:var(--muted); }
.tag-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-checks input { position: absolute; opacity: 0; }
.tag-checks span { min-height: 34px; padding: 0 12px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; background: var(--surface-soft); font-size: 11px; }
.tag-checks input:checked + span { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); font-weight: 700; }
.session-list { display: grid; }
.session-list > div { padding: 16px 20px; display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); }
.session-list > div:first-child { border-top: 0; }
.session-list > div > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: var(--brand); background: var(--brand-soft); }
.session-list p { min-width:0; flex:1; margin:0; }
.session-list strong, .session-list small { display:block; }
.session-list strong { margin-bottom:4px; font-size:11px; }
.session-list small { color:var(--muted); font-size:11px; }
.session-list em { font-style:normal; }

.user-plan-card { padding: clamp(28px,5vw,50px); display: grid; grid-template-columns: minmax(0,1fr) 260px auto; align-items: center; gap: 35px; border: 1px solid #cfe0f6; border-radius: var(--radius-xl); background: var(--brand-soft); box-shadow:var(--shadow-md); }
.user-plan-card h2 { margin:13px 0 8px; font-size:28px; }
.user-plan-card p { margin:0; color:var(--ink-soft); line-height:1.7; }
.plan-usage span { height:9px; overflow:hidden; display:block; border-radius:999px; background:var(--line); }
.plan-usage i { height:100%; display:block; border-radius:inherit; background:var(--brand); }
.plan-usage strong { display:block; margin-top:9px; color:var(--muted); font-size:10px; }
.plan-principles { margin-top:16px; display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.plan-principles > div { padding:17px; display:flex; align-items:flex-start; gap:10px; border:1px solid var(--line); border-radius:14px; background:var(--surface); }
.plan-principles .icon { color:var(--brand); font-size:19px; }
.plan-principles strong, .plan-principles small { display:block; }
.plan-principles strong { margin-bottom:5px; font-size:11px; }
.plan-principles small { color:var(--muted); font-size:9px; line-height:1.5; }
.notification-list { display:grid; }
.notification-list article { padding:18px 20px; display:flex; align-items:flex-start; gap:12px; border-bottom:1px solid var(--line); }
.notification-list article.is-unread { background:var(--brand-soft); }
.notification-list article > span { width:38px; height:38px; display:grid; place-items:center; flex:0 0 auto; border-radius:12px; color:var(--brand); background:var(--brand-soft); }
.notification-list article > div { min-width:0; flex:1; }
.notification-list strong, .notification-list time { display:block; }
.notification-list p { margin:5px 0; color:var(--muted); font-size:11px; }
.notification-list time { color:var(--muted); font-size:11px; }

.creator-access-page { padding-top: 38px; }
.creator-access-wrap { max-width: 1120px; }
.creator-access-card { overflow: hidden; display: grid; grid-template-columns:minmax(0,1.4fr) minmax(280px,.6fr); border:1px solid var(--line); border-radius:28px; background:var(--surface); box-shadow:var(--shadow-lg); }
.creator-access-copy { padding:48px; background:var(--surface); }
.creator-access-copy h1 { max-width:720px; margin:18px 0 14px; font-size:clamp(34px,5vw,58px); line-height:1.05; letter-spacing:-.045em; }
.creator-access-copy > p { max-width:690px; margin:0; color:var(--ink-soft); font-size:16px; line-height:1.8; }
.creator-identity-flow { margin:30px 0; padding:18px; display:flex; align-items:center; gap:16px; border:1px solid var(--line); border-radius:18px; background:var(--surface-soft); }
.creator-identity-flow > div { min-width:0; display:flex; align-items:center; gap:11px; }
.creator-identity-flow span { min-width:0; }
.creator-identity-flow small,.creator-identity-flow strong,.creator-identity-flow em { display:block; }
.creator-identity-flow small { color:var(--muted); font-size:11px; }
.creator-identity-flow strong { margin:2px 0; font-size:14px; }
.creator-identity-flow em { color:var(--muted); font-size:11px; font-style:normal; }
.creator-identity-flow > .icon { flex:0 0 auto; color:var(--brand); }
.creator-capability-chip { padding:11px 13px; border-radius:14px; color:var(--success); background:var(--success-soft); }
.creator-access-actions { display:flex; flex-wrap:wrap; gap:10px; }
.creator-access-note { max-width:720px; margin-top:18px; display:block; color:var(--muted); font-size:12px; line-height:1.7; }
.creator-access-steps { padding:32px; display:grid; align-content:center; gap:22px; background:var(--ink); color:#fff; }
.creator-access-steps > div { display:grid; grid-template-columns:38px 1fr; align-items:start; gap:12px; }
.creator-access-steps > div > span { width:38px; height:38px; display:grid; place-items:center; border-radius:12px; color:#ffffff; background:var(--brand); font-weight:850; }
.creator-access-steps p { margin:0; }
.creator-access-steps strong,.creator-access-steps small { display:block; }
.creator-access-steps strong { margin:1px 0 5px; font-size:14px; }
.creator-access-steps small { color:rgba(255,255,255,.65); font-size:12px; line-height:1.55; }

/* Console shell */
.console-shell { min-height: 100vh; display: grid; grid-template-columns: 246px minmax(0, 1fr); background: var(--bg); }
.console-sidebar { position: sticky; top: 0; height: 100vh; padding: 22px 16px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--surface); }
.console-brand { padding: 0 8px 24px; display: flex; align-items: center; gap: 10px; font-weight: 800; }
.console-context { margin: 0 3px 20px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); }
.console-context small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; }
.console-context strong { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.console-nav { display: grid; gap: 4px; }
.console-nav-label { margin: 18px 11px 7px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.console-link { min-height: 42px; padding: 0 11px; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 11px; cursor: pointer; text-align: left; color: var(--ink-soft); background: transparent; font-size: 13px; font-weight: 650; }
.console-link:hover, .console-link.is-active { color: var(--brand); background: var(--brand-soft); }
.console-link .count { min-width: 19px; height: 19px; margin-left: auto; display: grid; place-items: center; padding: 0 5px; border-radius: 999px; color: #fff; background: var(--danger); font-size: 9px; }
.console-user { margin-top: auto; padding: 12px 9px 0; display: flex; align-items: center; gap: 9px; border-top: 1px solid var(--line); }
.console-user-copy { min-width: 0; }
.console-user strong { display: block; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.console-user small { color: var(--muted); font-size: 10px; }

.console-main { min-width: 0; }
.console-topbar { min-height: 68px; padding: 0 30px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
.console-topbar h1 { margin: 0; font-size: 17px; }
.console-topbar .breadcrumb { color: var(--muted); font-size: 11px; }
.console-topbar-actions { margin-left: auto; display: flex; gap: 8px; }
.console-content { width: min(100%, 1320px); margin: 0 auto; padding: 28px 30px 60px; }
.console-page-header { margin-bottom: 24px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.console-page-header h2 { margin-bottom: 7px; font-size: 28px; }
.console-page-header p { margin: 0; color: var(--muted); line-height: 1.6; }
.console-actions { display: flex; gap: 8px; }

.todo-banner { margin-bottom: 19px; padding: 18px 20px; display: flex; align-items: center; gap: 15px; border: 1px solid #ead39a; border-radius: 17px; background: var(--warning-soft); }
.todo-banner-icon { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; color: var(--warning); background: var(--surface); }
.todo-banner-copy { min-width: 0; flex: 1; }
.todo-banner-copy strong { display: block; margin-bottom: 3px; font-size: 13px; }
.todo-banner-copy span { color: var(--warning); font-size: 11px; }
.todo-banner-actions { display: flex; gap: 7px; }

.metric-grid { margin-bottom: 19px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric-card { padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.metric-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; }
.metric-value { margin: 10px 0 6px; display: flex; align-items: baseline; gap: 5px; font-size: 26px; font-weight: 800; letter-spacing: -.04em; }
.metric-value small { color: var(--muted); font-size: 11px; font-weight: 600; }
.metric-trend { display: flex; align-items: center; gap: 4px; color: var(--success); font-size: 10px; font-weight: 700; }
.metric-trend.is-down { color: var(--danger); }
.sparkline { width: 64px; height: 24px; color: var(--brand); }

.console-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .55fr); gap: 18px; }
.panel { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.panel-header { min-height: 58px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.panel-header h3 { margin: 0; font-size: 14px; }
.panel-body { padding: 18px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { padding: 11px 12px; color: var(--muted); background: var(--surface-soft); font-size: 12px; text-align: left; white-space: nowrap; }
.data-table td { padding: 13px 12px; border-top: 1px solid var(--line); color: var(--ink-soft); vertical-align: middle; }
.data-table tbody tr:hover { background: var(--surface-soft); }
.table-hint { color: var(--muted); font-size: 11px; }
.creator-summary-row { margin-bottom: 16px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.creator-summary-row > div { padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.creator-summary-row span, .creator-summary-row strong { display: block; }
.creator-summary-row span { margin-bottom: 8px; color: var(--muted); font-size: 10px; }
.creator-summary-row strong { font-size: 24px; }
.creator-summary-row .summary-text { font-size: 16px; }
.creator-avatar-table td { white-space: nowrap; }
.creator-avatar-hero { margin-bottom: 16px; padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.creator-avatar-hero > div:first-child { display:flex; align-items:center; gap:16px; }
.creator-avatar-hero h2 { margin:8px 0 5px; font-size:27px; }
.creator-avatar-hero p { margin:0 0 5px; color:var(--ink-soft); }
.creator-avatar-hero small { color:var(--muted); }
.creator-health-grid { margin-bottom:16px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.creator-health-grid button { min-width:0; padding:16px; display:grid; grid-template-columns:1fr auto; align-items:center; gap:6px; border:1px solid var(--line); border-radius:15px; cursor:pointer; text-align:left; background:var(--surface); }
.creator-health-grid button:hover { border-color:var(--brand); box-shadow:var(--shadow-sm); }
.creator-health-grid .status-pill { grid-column:1/-1; }
.creator-health-grid strong { font-size:13px; }
.creator-health-grid small { min-width:0; overflow:hidden; color:var(--muted); font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.release-check-list { display:grid; }
.release-check-list > div { padding:15px 18px; display:flex; align-items:flex-start; gap:10px; border-bottom:1px solid var(--line); }
.release-check-list > div:last-child { border-bottom:0; }
.release-check-list .icon { margin-top:2px; color:var(--success); font-size:18px; }
.release-check-list .is-warning .icon { color:var(--warning); }
.release-check-list strong, .release-check-list small { display:block; }
.release-check-list strong { margin-bottom:4px; font-size:11px; }
.release-check-list small { color:var(--muted); font-size:11px; }
.version-list { display:grid; }
.version-list > div { padding:15px 18px; display:grid; grid-template-columns:auto 1fr; align-items:center; gap:4px 9px; border-bottom:1px solid var(--line); }
.version-list > div:last-child { border-bottom:0; }
.version-list .status-pill { grid-row:1/3; }
.version-list strong, .version-list small { display:block; }
.version-list strong { font-size:11px; }
.version-list small { color:var(--muted); font-size:11px; }
.knowledge-list { display:grid; }
.knowledge-list article { padding:16px 18px; display:grid; grid-template-columns:auto minmax(0,1fr) auto auto; align-items:center; gap:13px; border-bottom:1px solid var(--line); }
.knowledge-list article:last-child { border-bottom:0; }
.knowledge-file-icon { width:42px; height:42px; display:grid; place-items:center; border-radius:13px; color:var(--brand); background:var(--brand-soft); }
.knowledge-list strong, .knowledge-list small { display:block; }
.knowledge-list strong { margin-bottom:4px; font-size:11px; }
.knowledge-list small { color:var(--muted); font-size:11px; }
.knowledge-list p { margin:6px 0 0; color:var(--danger); font-size:9px; }
.knowledge-row-actions { display:flex; gap:5px; }
.knowledge-test-card { margin-top:16px; padding:24px; display:flex; align-items:center; justify-content:space-between; gap:18px; border:1px solid #cfe0f6; border-radius:17px; background:var(--brand-soft); }
.knowledge-test-card h3 { margin:10px 0 6px; }
.knowledge-test-card p { margin:0; color:var(--muted); }
.creator-funnel { padding:18px; display:grid; gap:12px; }
.creator-funnel > div { display:grid; grid-template-columns:minmax(120px,1fr) 65px 110px; align-items:center; gap:12px; }
.creator-funnel span { width:var(--funnel); max-width:100%; height:25px; display:block; border-radius:7px; background:var(--brand); opacity:.82; }
.creator-funnel strong { font-size:12px; }
.creator-funnel small { color:var(--muted); font-size:11px; }
.analytics-question-list { display:grid; }
.analytics-question-list > div { padding:15px 18px; display:flex; align-items:flex-start; justify-content:space-between; gap:12px; border-bottom:1px solid var(--line); }
.analytics-question-list > div:last-child { border-bottom:0; }
.analytics-question-list strong { font-size:10px; line-height:1.5; }
.analytics-question-list span { flex:0 0 auto; color:var(--muted); font-size:9px; }
.analytics-source-panel { margin-top:16px; }
.creator-settings-grid { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr); gap:16px; }
.creator-settings-grid .profile-edit-head strong, .creator-settings-grid .profile-edit-head small { display:block; }
.creator-settings-grid .profile-edit-head strong { font-size:17px; }
.creator-settings-grid .profile-edit-head small { margin:5px 0; color:var(--muted); }
.table-avatar { display: flex; align-items: center; gap: 9px; min-width: 150px; }
.table-avatar strong { display: block; color: var(--ink); font-size: 11px; }
.table-avatar small { color: var(--muted); font-size: 11px; }
.progress { width: 100%; height: 6px; overflow: hidden; border-radius: 999px; background: var(--bg-deep); }
.progress span { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.issue-list { display: grid; gap: 0; }
.issue-item { padding: 15px 18px; display: flex; align-items: flex-start; gap: 11px; border-bottom: 1px solid var(--line); }
.issue-item:last-child { border-bottom: 0; }
.issue-dot { width: 8px; height: 8px; margin-top: 5px; flex: 0 0 auto; border-radius: 50%; background: var(--warning); box-shadow: 0 0 0 5px var(--warning-soft); }
.issue-dot.is-danger { background: var(--danger); box-shadow: 0 0 0 5px var(--danger-soft); }
.issue-copy { min-width: 0; flex: 1; }
.issue-copy strong { display: block; margin-bottom: 4px; font-size: 11px; }
.issue-copy p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.issue-time { color: var(--muted); font-size: 9px; white-space: nowrap; }

/* Wizard */
.wizard-shell { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; }
.wizard-card { overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); }
.wizard-steps { padding: 17px 22px; display: flex; align-items: center; border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.wizard-step { min-width: 0; display: flex; align-items: center; flex: 1; color: var(--muted); font-size: 10px; font-weight: 700; }
.wizard-step::after { content: ""; height: 1px; flex: 1; margin: 0 7px; background: var(--line-strong); }
.wizard-step:last-child::after { display: none; }
.wizard-step-index { width: 25px; height: 25px; margin-right: 6px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--muted); background: var(--surface); font-size: 9px; }
.wizard-step.is-active { color: var(--brand); }
.wizard-step.is-active .wizard-step-index { color: #fff; border-color: var(--brand); background: var(--brand); }
.wizard-step.is-done { color: var(--ink-soft); }
.wizard-step.is-done .wizard-step-index { color: var(--success); border-color: var(--success); background: var(--success-soft); }
.wizard-body { min-height: 560px; padding: 28px; }
.wizard-body h2 { margin-bottom: 7px; font-size: 23px; }
.wizard-body > p { margin-bottom: 25px; color: var(--muted); line-height: 1.65; }
.wizard-footer { min-height: 70px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); background: var(--surface-soft); }
.autosave { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.autosave .icon { color: var(--success); }
.wizard-preview { position: sticky; top: 86px; height: fit-content; }
.preview-label { margin-bottom: 9px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; font-weight: 700; }
.mini-profile { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-md); }
.mini-profile-cover { height: 86px; background: var(--brand-soft); }
.mini-profile-body { padding: 0 20px 21px; }
.mini-profile .avatar { margin-top: -34px; margin-bottom: 12px; }
.mini-profile h3 { margin-bottom: 4px; }
.mini-profile p { color: var(--ink-soft); font-size: 11px; line-height: 1.6; }
.mini-tags { margin: 13px 0; display: flex; flex-wrap: wrap; gap: 5px; }
.preview-note { margin-top: 11px; padding: 12px; display: flex; align-items: flex-start; gap: 8px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: var(--surface); font-size: 10px; line-height: 1.55; }
.avatar-upload { display: flex; align-items: center; gap: 15px; }
.avatar-upload-actions { display: grid; gap: 6px; }
.avatar-upload-actions small { color: var(--muted); font-size: 10px; }
.style-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.style-option { padding: 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--surface-soft); }
.style-option.is-active { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.style-option strong { display: block; margin-bottom: 4px; font-size: 11px; }
.style-option span { color: var(--muted); font-size: 9px; }
.policy-box { padding: 14px; display: flex; align-items: flex-start; gap: 10px; border: 1px solid #ead39a; border-radius: 13px; color: var(--warning); background: var(--warning-soft); font-size: 11px; line-height: 1.6; }
.upload-zone { padding: 32px 20px; display: grid; place-items: center; text-align: center; border: 1.5px dashed var(--line-strong); border-radius: 16px; background: var(--surface-soft); }
.upload-zone.is-processing { border-color: var(--brand); background: var(--brand-soft); }
.upload-icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 15px; color: var(--brand); background: var(--brand-soft); }
.upload-zone h3 { margin-bottom: 6px; font-size: 14px; }
.upload-zone p { margin-bottom: 13px; color: var(--muted); font-size: 10px; }
.file-list { margin-top: 15px; display: grid; gap: 8px; }
.file-row { padding: 12px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; }
.file-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; color: var(--plum); background: var(--plum-soft); }
.file-copy { min-width: 0; flex: 1; }
.file-copy strong { display: block; overflow: hidden; margin-bottom: 4px; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.file-copy small { color: var(--muted); font-size: 9px; }
.test-console { height: 365px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-soft); }
.test-console-header { min-height: 48px; padding: 0 14px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); background: var(--surface); }
.test-messages { flex: 1; overflow-y: auto; padding: 15px; display: grid; align-content: start; gap: 9px; }
.test-message { max-width: 85%; padding: 10px 12px; border-radius: 12px 12px 12px 4px; color: var(--ink-soft); background: var(--surface); font-size: 10px; line-height: 1.6; }
.test-message.user { margin-left: auto; color: #fff; border-radius: 12px 12px 4px 12px; background: var(--brand); }
.test-input { padding: 10px; display: flex; gap: 7px; border-top: 1px solid var(--line); background: var(--surface); }
.test-input input { min-width: 0; flex: 1; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; font-size: 10px; }
.eval-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.eval-item { padding: 14px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); }
.eval-item-icon { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); background: var(--surface); }
.eval-item.is-pass .eval-item-icon { color: var(--success); background: var(--success-soft); }
.eval-item strong { display: block; margin-bottom: 3px; font-size: 10px; }
.eval-item small { color: var(--muted); font-size: 9px; }
.eval-summary { margin-top: 15px; padding: 17px; display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.eval-score { width: 55px; height: 55px; display: grid; place-items: center; flex: 0 0 auto; border: 5px solid var(--success-soft); border-top-color: var(--success); border-radius: 50%; color: var(--success); font-size: 15px; font-weight: 850; }
.eval-summary strong { display: block; margin-bottom: 3px; font-size: 12px; }
.eval-summary p { margin: 0; color: var(--muted); font-size: 10px; }

/* Privacy / conversations */
.settings-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; }
.settings-nav { height: fit-content; padding: 10px; }
.settings-nav button { width: 100%; min-height: 42px; padding: 0 11px; display: flex; align-items: center; gap: 9px; border: 0; border-radius: 10px; cursor: pointer; text-align: left; color: var(--ink-soft); background: transparent; font-size: 12px; }
.settings-nav button.is-active { color: var(--brand); background: var(--brand-soft); font-weight: 700; }
.settings-panel { overflow: hidden; }
.settings-header { padding: 25px; border-bottom: 1px solid var(--line); }
.settings-header h1 { margin-bottom: 6px; font-size: 26px; }
.settings-header p { margin: 0; color: var(--muted); line-height: 1.6; }
.settings-section { padding: 22px 25px; border-bottom: 1px solid var(--line); }
.settings-section:last-child { border-bottom: 0; }
.setting-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.setting-copy h3 { margin-bottom: 5px; font-size: 14px; }
.setting-copy p { max-width: 600px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.memory-card { margin-top: 15px; padding: 14px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); }
.memory-card-copy { min-width: 0; flex: 1; }
.memory-card-copy strong { display: block; font-size: 11px; }
.memory-card-copy span { color: var(--muted); font-size: 9px; }
.request-row { margin-top: 13px; padding: 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 12px; }

.conversation-list { display: grid; gap: 10px; }
.conversation-card { padding: 16px; display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); transition: .18s ease; }
.conversation-card:hover { border-color: var(--brand); transform: translateX(3px); }
.conversation-copy { min-width: 0; flex: 1; }
.conversation-copy strong { display: block; margin-bottom: 4px; }
.conversation-copy p { overflow: hidden; margin: 0; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.conversation-time { color: var(--muted); font-size: 10px; white-space: nowrap; }

/* Admin */
.admin-shell { --brand: var(--admin); --brand-strong: #2e4b5a; --brand-soft: var(--admin-soft); }
.admin-alert-grid { margin-bottom: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.alert-card { padding: 16px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.alert-icon { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; color: var(--brand); background: var(--brand-soft); }
.alert-icon.is-danger { color: var(--danger); background: var(--danger-soft); }
.alert-icon.is-warning { color: var(--warning); background: var(--warning-soft); }
.alert-copy strong { display: block; margin-bottom: 2px; font-size: 19px; }
.alert-copy span { color: var(--muted); font-size: 9px; }
.risk-card { padding: 17px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px; border-bottom: 1px solid var(--line); }
.risk-card:last-child { border-bottom: 0; }
.risk-level { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--danger); background: var(--danger-soft); font-size: 10px; font-weight: 850; }
.risk-copy strong { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; font-size: 11px; }
.risk-copy p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.risk-actions { display: flex; gap: 6px; }
.propagation-list { margin-top: 18px; display: grid; gap: 8px; }
.propagation-item { padding: 11px 12px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink-soft); background: var(--surface-soft); font-size: 11px; }
.propagation-item .icon { color: var(--success); }
.propagation-item.is-waiting .icon { color: var(--warning); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.audit-note { margin-top: 14px; padding: 12px; border-left: 3px solid var(--brand); color: var(--muted); background: var(--surface-soft); font-size: 10px; line-height: 1.6; }
.admin-resource-search { margin-bottom:16px; padding:14px; display:flex; gap:9px; border:1px solid var(--line); border-radius:16px; background:var(--surface); }
.admin-resource-search label { min-width:0; flex:1; min-height:44px; padding:0 13px; display:flex; align-items:center; gap:9px; border:1px solid var(--line-strong); border-radius:12px; background:var(--surface-soft); }
.admin-resource-search input { min-width:0; flex:1; border:0; outline:0; background:transparent; }
.admin-resource-grid { margin-bottom:16px; display:grid; grid-template-columns:minmax(0,1.35fr) minmax(290px,.65fr); gap:16px; }
.admin-resource-profile { display:flex; align-items:center; gap:16px; }
.admin-resource-profile h2 { margin:0 0 6px; font-size:22px; }
.admin-resource-profile p { margin:0 0 10px; color:var(--muted); }
.admin-resource-profile .tags { display:flex; flex-wrap:wrap; gap:5px; }
.admin-resource-facts { margin:0 18px; display:grid; grid-template-columns:repeat(4,1fr); border:1px solid var(--line); border-radius:13px; background:var(--surface-soft); }
.admin-resource-facts div { padding:13px; border-right:1px solid var(--line); }
.admin-resource-facts div:last-child { border-right:0; }
.admin-resource-facts span, .admin-resource-facts strong { display:block; }
.admin-resource-facts span { margin-bottom:5px; color:var(--muted); font-size:11px; }
.admin-resource-facts strong { font-size:11px; }
.admin-creator-summary > div:first-child { margin-bottom:17px; display:flex; align-items:center; gap:11px; }
.admin-creator-summary strong, .admin-creator-summary small { display:block; }
.admin-creator-summary small { margin-top:4px; color:var(--muted); }
.admin-creator-summary dl { margin:0 0 18px; display:grid; grid-template-columns:90px 1fr; gap:11px; font-size:10px; }
.admin-creator-summary dt { color:var(--muted); }
.admin-creator-summary dd { margin:0; text-align:right; }
.admin-related-table { margin-top:0; }
.admin-filter-row { margin-bottom:14px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.admin-risk-list { display:grid; gap:10px; }
.admin-risk-item { padding:17px; display:grid; grid-template-columns:auto minmax(0,1fr) auto auto; align-items:center; gap:14px; }
.admin-risk-level { width:45px; height:45px; display:grid; place-items:center; border-radius:14px; color:var(--warning); background:var(--warning-soft); font-size:10px; font-weight:800; }
.admin-risk-level.is-danger { color:#fff; background:var(--danger); }
.admin-risk-item h3 { margin:8px 0 5px; font-size:13px; }
.admin-risk-item p { margin:0 0 5px; color:var(--ink-soft); font-size:10px; line-height:1.5; }
.admin-risk-item small { color:var(--muted); font-size:11px; }
.admin-risk-actions { display:flex; gap:5px; }
.admin-safety-note { margin-top:14px; padding:14px 16px; display:flex; align-items:center; gap:9px; border:1px solid rgba(69,105,122,.2); border-radius:13px; color:var(--admin); background:var(--admin-soft); font-size:10px; }
.admin-budget-card { margin-bottom:16px; padding:24px; display:grid; grid-template-columns:1fr 1.2fr .7fr; align-items:center; gap:30px; border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--surface); }
.admin-budget-card > div:first-child span, .admin-budget-card > div:first-child strong, .admin-budget-card > div:first-child small { display:block; }
.admin-budget-card > div:first-child span { color:var(--muted); font-size:10px; }
.admin-budget-card > div:first-child strong { margin:7px 0; font-size:30px; }
.admin-budget-card > div:first-child small, .budget-progress small { color:var(--muted); font-size:11px; }
.budget-progress > span { height:10px; overflow:hidden; display:block; margin-bottom:8px; border-radius:999px; background:var(--line); }
.budget-progress i { height:100%; display:block; border-radius:inherit; background:var(--admin); }
.admin-budget-card > div:last-child { justify-self:end; text-align:right; }
.admin-budget-card p { margin:7px 0 0; color:var(--muted); font-size:9px; }
.admin-slot-layout { margin-bottom:16px; display:grid; grid-template-columns:minmax(0,1.4fr) minmax(300px,.6fr); gap:16px; }
.slot-list { display:grid; }
.slot-list article { padding:14px 17px; display:grid; grid-template-columns:auto auto minmax(0,1fr) auto auto; align-items:center; gap:12px; border-bottom:1px solid var(--line); }
.slot-list article:last-child { border-bottom:0; }
.slot-order { width:27px; height:27px; display:grid; place-items:center; border-radius:9px; color:var(--admin); background:var(--admin-soft); font-size:10px; font-weight:800; }
.slot-list strong, .slot-list small { display:block; }
.slot-list strong { margin-bottom:4px; font-size:11px; }
.slot-list small { color:var(--muted); font-size:9px; }
.slot-list article > div:last-child { display:flex; gap:4px; }
.slot-history { margin-top:0; }
.audit-mini-list { display:grid; }
.audit-mini-list > div { padding:14px 18px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid var(--line); }
.audit-mini-list > div:last-child { border-bottom:0; }
.audit-mini-list strong { font-size:10px; }
.audit-mini-list span { color:var(--muted); font-size:9px; }
.audit-list { display:grid; }
.audit-list article { padding:17px 19px; display:flex; align-items:flex-start; gap:12px; border-bottom:1px solid var(--line); }
.audit-list article:last-child { border-bottom:0; }
.audit-icon { width:38px; height:38px; display:grid; place-items:center; flex:0 0 auto; border-radius:12px; color:var(--admin); background:var(--admin-soft); }
.audit-icon.is-danger { color:var(--danger); background:var(--danger-soft); }
.audit-list article > div { min-width:0; flex:1; }
.audit-list strong, .audit-list small { display:block; }
.audit-list p { margin:5px 0; color:var(--ink-soft); font-size:10px; }
.audit-list small { color:var(--muted); font-size:9px; }
.audit-detail { margin-top:10px; padding:11px; display:grid; gap:5px; border-radius:10px; background:var(--surface-soft); color:var(--muted); font-size:9px; }
.access-role-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.access-role-grid .panel-body > p { color:var(--muted); font-size:10px; line-height:1.6; }
.permission-tags { display:flex; flex-wrap:wrap; gap:6px; }
.permission-tags span, .permission-tags em { min-height:28px; padding:0 9px; display:inline-flex; align-items:center; border-radius:999px; font-size:9px; font-style:normal; }
.permission-tags span { color:var(--success); background:var(--success-soft); }
.permission-tags em { color:var(--muted); background:var(--surface-soft); }

/* Empty/success states */
.empty-state { padding: 45px 25px; display: grid; justify-items: center; text-align: center; }
.empty-icon { width: 60px; height: 60px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 19px; color: var(--brand); background: var(--brand-soft); }
.empty-state h3 { margin-bottom: 7px; }
.empty-state p { max-width: 420px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.success-hero { padding: 20px 5px 4px; text-align: center; }
.success-check { width: 68px; height: 68px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 23px; color: #fff; background: var(--success); box-shadow: 0 12px 30px rgba(23,107,72,.22); }
.success-hero h2 { margin-bottom: 8px; }
.success-hero p { color: var(--muted); line-height: 1.65; }
.share-box { margin-top: 18px; padding: 11px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); }
.share-box code { min-width: 0; flex: 1; overflow: hidden; color: var(--ink-soft); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

/* Responsive */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .trust-row { justify-content: center; }
  .hero-visual { min-height: 420px; }
  .avatar-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .value-strip { grid-template-columns: 1fr 1fr; }
  .value-item:nth-child(2) { border-right: 0; }
  .value-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .profile-hero { grid-template-columns: 1fr; }
  .home-process { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-legal { grid-column: 1 / -1; justify-items: start; text-align: left; }
  .filing-row { justify-content: flex-start; }
  .creator-trust-card { max-width: 600px; }
  .user-center-layout { grid-template-columns: 210px minmax(0,1fr); }
  .user-summary-grid { grid-template-columns: 1fr 1fr; }
  .user-dashboard-grid { grid-template-columns: 1fr; }
  .user-plan-card { grid-template-columns: 1fr; gap: 22px; }
  .creator-access-card { grid-template-columns:1fr; }
  .creator-access-steps { grid-template-columns:repeat(3,1fr); }
  .console-shell { grid-template-columns: 76px minmax(0, 1fr); }
  .console-sidebar { padding-left: 10px; padding-right: 10px; }
  .console-brand .brand-name, .console-context, .console-nav-label, .console-link span:not(.count), .console-user-copy { display: none; }
  .console-brand, .console-link, .console-user { justify-content: center; }
  .console-link .count { position: absolute; margin: -24px 0 0 25px; }
  .console-link { position: relative; }
  .console-user { padding-left: 0; padding-right: 0; }
  .metric-grid, .admin-alert-grid { grid-template-columns: 1fr 1fr; }
  .creator-health-grid { grid-template-columns:1fr 1fr; }
  .creator-settings-grid { grid-template-columns:1fr; }
  .admin-resource-grid, .admin-slot-layout { grid-template-columns:1fr; }
  .admin-budget-card { grid-template-columns:1fr 1fr; }
  .admin-budget-card > div:last-child { justify-self:start; text-align:left; }
  .wizard-shell { grid-template-columns: 1fr; }
  .wizard-preview { position: static; display: none; }
}

@media (max-width: 760px) {
  body { padding-bottom: calc(65px + env(safe-area-inset-bottom)); }
  .container, .header-inner { width: min(calc(100% - 28px), var(--container)); }
  .site-header { position: sticky; }
  .header-inner { min-height: 62px; }
  .brand-copy small, .main-nav, .header-actions .btn-secondary, .header-actions .btn-ghost { display: none; }
  .header-actions .btn { min-height: 38px; padding: 0 12px; }
  .mobile-nav { position: fixed; z-index: 80; left: 0; right: 0; bottom: 0; height: calc(65px + env(safe-area-inset-bottom)); padding: 6px 8px max(6px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); background: var(--surface); }
  .mobile-nav-link { padding:0; border:0; cursor:pointer; display: grid; place-items: center; align-content: center; gap: 3px; color: var(--muted); background:transparent; font-size: 9px; }
  .mobile-nav-link .icon { font-size: 20px; }
  .mobile-nav-link.is-active { color: var(--brand); font-weight: 750; }
  .page { min-height: calc(100vh - 161px); padding: 25px 0 50px; }
  .hero { padding-top: 36px; }
  .display-title { font-size: 43px; }
  .lead { font-size: 15px; }
  .hero-visual { min-height: 360px; }
  .hero-orbit { width: 310px; height: 310px; }
  .hero-demo { width: min(92%, 380px); }
  .floating-note--one { right: -2px; }
  .floating-note--two { left: 0; bottom: 24px; }
  .search-stage { padding: 15px; }
  .search-form { align-items: stretch; flex-direction: column; }
  .search-form .btn { min-height: 48px; }
  .avatar-grid { grid-template-columns: 1fr; }
  .avatar-card { min-height: 285px; }
  .home-section { padding-top: 42px; }
  .use-case-grid, .discover-principle { grid-template-columns: 1fr; }
  .use-case-card { min-height: 112px; }
  .process-steps { grid-template-columns: 1fr; }
  .creator-callout { align-items: stretch; flex-direction: column; }
  .creator-callout .btn { width: 100%; }
  .discover-hero { padding-top: 44px; }
  .discover-hero > h1 { font-size: 40px; }
  .discover-hero > p { font-size: 14px; }
  .discover-hero .search-stage { padding: 0; }
  .discover-hero .search-form {
    min-height: 74px;
    padding: 7px;
    align-items: center;
    flex-direction: row;
    border-radius: 21px;
  }
  .discover-hero .search-field { min-height: 58px; gap: 9px; padding: 0 11px; }
  .discover-hero .search-field > .icon { font-size: 19px; }
  .discover-hero .search-field input { font-size: 16px; }
  .discover-hero .search-form .btn {
    min-width: 98px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 13px;
  }
  .discover-hero .quick-prompts { margin-top: 14px; padding: 0 3px; }
  .footer-grid { min-height: 0; padding-top: 34px; padding-bottom: calc(96px + env(safe-area-inset-bottom)); grid-template-columns: 1fr; gap: 28px; }
  .footer-legal { grid-column: auto; }
  .user-center-page { padding-top: 16px; }
  .user-center-layout { display: block; }
  .user-center-sidebar { position: static; margin-bottom: 16px; padding: 8px; }
  .user-center-person, .user-center-return { display: none; }
  .user-center-sidebar nav { padding: 0; display: flex; overflow-x: auto; scrollbar-width: none; }
  .user-center-sidebar nav::-webkit-scrollbar { display:none; }
  .user-center-nav-group { display:contents; }
  .user-center-nav-group > span,.user-center-nav-group.is-future { display:none; }
  .user-center-link { width: auto; flex: 0 0 auto; white-space: nowrap; }
  .user-center-heading { min-height: 48px; align-items:flex-start; flex-direction:column; }
  .user-center-heading-actions { width:100%; overflow-x:auto; }
  .user-center-heading-actions .btn { flex:0 0 auto; }
  .user-center-heading h1 { font-size: 25px; }
  .user-center-heading .eyebrow { display: none; }
  .user-welcome-card { min-height: 230px; }
  .user-welcome-card .avatar { display:none; }
  .user-summary-grid { grid-template-columns: 1fr 1fr; }
  .user-saved-grid, .plan-principles { grid-template-columns: 1fr; }
  .user-saved-card { grid-template-columns: auto 1fr; }
  .user-saved-actions { grid-column:1/-1; grid-template-columns:1fr 1fr; }
  .request-timeline { padding:18px 12px; grid-template-columns:1fr; gap:14px; }
  .request-timeline > div { grid-template-columns:auto 1fr; justify-items:start; text-align:left; }
  .request-timeline > div::after { top:34px; bottom:-14px; left:14px; width:2px; height:auto; right:auto; }
  .request-timeline span { grid-row:1/3; }
  .memory-dashboard-list article { align-items:flex-start; flex-direction:column; }
  .memory-dashboard-list article > div:last-child { width:100%; }
  .memory-dashboard-list article > div:last-child .btn { flex:1; }
  .user-danger-row { align-items:flex-start; flex-direction:column; }
  .user-danger-row .btn { width:100%; }
  .value-strip { grid-template-columns: 1fr; }
  .value-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .value-item:last-child { border-bottom: 0; }
  .section-header { align-items: flex-start; }
  .section-header .text-link { display: none; }
  .profile-page { padding-top: 14px; }
  .profile-hero { padding: 26px 20px; border-radius: 24px; }
  .profile-identity { flex-direction: column; }
  .profile-identity .avatar-xl { width: 86px; height: 86px; border-radius: 25px; font-size: 36px; }
  .profile-copy h1 { font-size: 34px; }
  .profile-value { font-size: 16px; }
  .profile-actions .btn-primary { flex: 1; }
  .profile-content { grid-template-columns: 1fr; }
  .profile-panel { padding: 20px; }
  .chat-page { padding: 0; }
  .chat-page .container { width: 100%; }
  .chat-layout { height: calc(100vh - 161px); min-height: 500px; grid-template-columns: 1fr; border-width: 0; border-radius: 0; box-shadow: none; }
  .chat-sidebar { display: none; }
  .chat-topbar { min-height: 62px; padding: 0 13px; }
  .message-list { padding: 20px 14px; }
  .chat-identity-card { padding: 17px; border-radius: 17px; }
  .chat-identity-head { align-items: flex-start; }
  .chat-identity-head h1 { font-size: 20px; }
  .chat-identity-head .badge-verified { display: none; }
  .chat-identity-meta { align-items: flex-start; flex-direction: column; }
  .message-content { max-width: 87%; }
  .suggestion-row { margin-left: 0; flex-wrap: nowrap; overflow-x: auto; }
  .suggestion-chip { flex: 0 0 auto; }
  .chat-composer-wrap { padding: 9px 11px 11px; }
  .guest-notice { font-size: 10px; }
  .modal { padding: 22px; border-radius: 21px; }
  .creator-access-page { padding-top:18px; }
  .creator-access-card { border-radius:22px; }
  .creator-access-copy { padding:27px 22px; }
  .creator-access-copy h1 { font-size:36px; }
  .creator-access-copy > p { font-size:14px; }
  .creator-identity-flow { align-items:stretch; flex-direction:column; }
  .creator-identity-flow > .icon { transform:rotate(90deg); align-self:center; }
  .creator-access-actions { display:grid; grid-template-columns:1fr; }
  .creator-access-steps { padding:25px 22px; grid-template-columns:1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: auto; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { display: flex; overflow-x: auto; }
  .settings-nav button { width: auto; flex: 0 0 auto; }
  .settings-header, .settings-section { padding: 20px; }
  .console-shell { display: block; }
  .console-sidebar { display: none; }
  .console-topbar { min-height: 60px; padding: 0 15px; }
  .console-account-return { display:none; }
  .console-content { padding: 20px 14px 45px; }
  .console-page-header { align-items: stretch; flex-direction: column; }
  .console-actions .btn { flex: 1; }
  .todo-banner { align-items: flex-start; flex-wrap: wrap; }
  .todo-banner-actions { width: 100%; }
  .metric-grid, .admin-alert-grid { grid-template-columns: 1fr 1fr; }
  .console-grid { grid-template-columns: 1fr; }
  .creator-summary-row, .creator-health-grid { grid-template-columns:1fr 1fr; }
  .creator-avatar-hero { align-items:flex-start; flex-direction:column; }
  .creator-avatar-hero .console-actions { width:100%; }
  .knowledge-list article { grid-template-columns:auto 1fr auto; }
  .knowledge-row-actions { grid-column:2/-1; }
  .knowledge-test-card { align-items:flex-start; flex-direction:column; }
  .creator-funnel > div { grid-template-columns:minmax(90px,1fr) 45px 90px; }
  .admin-resource-facts { grid-template-columns:1fr 1fr; }
  .admin-resource-facts div:nth-child(2) { border-right:0; }
  .admin-resource-facts div:nth-child(-n+2) { border-bottom:1px solid var(--line); }
  .admin-risk-item { grid-template-columns:auto 1fr; align-items:start; }
  .admin-risk-item > .status-pill, .admin-risk-actions { grid-column:2; }
  .admin-filter-row { align-items:flex-start; flex-direction:column; }
  .admin-filter-row .segmented { max-width:100%; overflow-x:auto; }
  .admin-budget-card { grid-template-columns:1fr; gap:18px; }
  .slot-list article { grid-template-columns:auto auto 1fr; }
  .slot-list article > .status-pill, .slot-list article > div:last-child { grid-column:3; }
  .access-role-grid { grid-template-columns:1fr; }
  .wizard-steps { padding: 13px; }
  .wizard-step span:last-child { display: none; }
  .wizard-body { min-height: 520px; padding: 21px 17px; }
  .wizard-footer { padding: 0 15px; }
  .style-options, .eval-grid { grid-template-columns: 1fr; }
  .risk-card { grid-template-columns: auto 1fr; }
  .risk-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (max-width: 480px) {
  .display-title { font-size: 37px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { min-height: 330px; }
  .hero-orbit { width: 270px; height: 270px; }
  .floating-note { padding: 8px 10px; font-size: 10px; }
  .demo-body { padding: 16px; }
  .profile-actions { flex-direction: column; }
  .profile-actions .btn { width: 100%; }
  .meta-grid, .metric-grid, .admin-alert-grid { grid-template-columns: 1fr; }
  .metric-card { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .metric-value { margin-bottom: 0; }
  .metric-trend { justify-self: end; }
  .todo-banner-icon { display: none; }
  .console-topbar .breadcrumb { display: none; }
  .wizard-footer .autosave { display: none; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn { width: 100%; }
  .setting-row { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1020px) {
  .v92-hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .v92-hero-copy { text-align: left; }
  .v92-hero-copy .lead { margin-left: 0; margin-right: 0; }
  .v92-trust-row { justify-content: flex-start; }
  .result-proof { width: min(100%, 760px); }
  .v92-service-grid { grid-template-columns: 1fr 1fr; }
  .v92-service-card.is-featured { grid-column: 1 / -1; min-height: 0; }
  .v92-creator-section { grid-template-columns: 1fr 1fr; }
  .v92-creator-copy { grid-column: 1 / -1; }
  .v92-creator-section .btn { justify-self: end; }
}

@media (max-width: 820px) {
  .v92-case-panel { grid-template-columns: 1fr; }
  .v92-case-intro blockquote { margin-top: 30px; }
  .v92-trust-grid { grid-template-columns: 1fr 1fr; }
  .v92-trust-grid article:nth-child(2) { border-right: 0; }
  .v92-trust-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--v92-rule); }
}

@media (max-width: 760px) {
  .prototype-banner { min-height: 42px; padding: 7px 14px; justify-content: flex-start; text-align: left; font-size: 10px; }
  .v92-home.page { padding-top: 0; }
  .v92-hero { padding: 34px 0 54px; }
  .v92-hero-grid { gap: 34px; }
  .v92-home .display-title { max-width: 11em; font-size: 40px; line-height: 1.08; }
  .v92-home .lead { font-size: 15px; line-height: 1.7; }
  .home-question-form { margin-top: 23px; padding: 14px; }
  .home-query-control { gap: 7px; padding-left: 11px; }
  .home-query-control .btn { min-width: 106px; padding: 0 12px; }
  .home-prompts button { min-height: 44px; }
  .v92-trust-row { justify-content: flex-start; gap: 9px 14px; }
  .v92-home .home-section { padding-top: 60px; }
  .v92-task-item { grid-column: span 12; min-height: 122px; padding: 21px 12px; }
  .v92-task-item:nth-child(odd) { border-right: 0; }
  .v92-service-grid { grid-template-columns: 1fr; }
  .v92-service-card.is-featured { grid-column: auto; }
  .v92-service-card { min-height: 0; }
  .service-action { margin-top: 18px; }
  .v92-case-intro { padding: 30px 23px; }
  .v92-case-intro h2 { font-size: 32px; }
  .case-step { padding: 22px; }
  .v92-creator-section { padding: 28px 22px; grid-template-columns: 1fr; }
  .v92-creator-copy { grid-column: auto; }
  .v92-creator-section .btn { width: 100%; justify-self: stretch; }
  .footer-prototype { max-width: 520px; line-height: 1.55; }
}

@media (max-width: 560px) {
  .v92-home .display-title { max-width: none; font-size: 37px; }
  .result-proof { border-radius: 2px 22px 2px 2px; }
  .proof-ledger > div { grid-template-columns: 1fr; gap: 5px; padding: 14px 16px; }
  .proof-dialog, .proof-identity { padding-left: 16px; padding-right: 16px; }
  .case-journey { grid-template-columns: 1fr; }
  .case-step:nth-child(odd) { border-right: 0; }
  .v92-trust-grid { grid-template-columns: 1fr; }
  .v92-trust-grid article { border-right: 0; border-bottom: 1px solid var(--v92-rule); }
  .v92-trust-grid article:last-child { border-bottom: 0; }
  .v92-trust-grid article:nth-child(2) { border-right: 0; }
  .v92-trust-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--v92-rule); }
  .v92-trust-grid article:last-child { border-bottom: 0; }
  .v92-trust-grid article > span { margin-bottom: 15px; }
}

@media (max-width: 360px) {
  .home-query-control { padding: 10px; display: grid; grid-template-columns: auto minmax(0, 1fr); }
  .home-query-control input { min-height: 44px; }
  .home-query-control .btn { width: 100%; grid-column: 1 / -1; margin: 0; }
  .home-prompts > span { width: 100%; }
  .discover-hero .search-form { padding: 8px; align-items: stretch; flex-direction: column; }
  .discover-hero .search-field { min-height: 56px; }
  .discover-hero .search-form .btn { width: 100%; min-height: 48px; }
  .discover-hero .quick-prompts > span { width: 100%; }
  .v92-task-item { grid-template-columns: auto minmax(0, 1fr); }
  .v92-task-arrow { display: none; }
}
