html[data-brand="zhejun"] {
  --z-night: #050b18;
  --z-navy: #091528;
  --z-blue: #0068d2;
  --z-cyan: #62e5ff;
  --z-line: #dce4ef;
  --z-muted: #526176;
  --z-font: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --z-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --z-gutter: max(6%, calc((100vw - 1240px) / 2));
  --z-hero-image: url("/static/assets/zhejun/hero.webp");
  --z-logo: url("/static/assets/zhejun/brand-dark.png");
  --paper: #f2f6fb;
  --surface: #fff;
  --ink: #101c32;
  --muted: var(--z-muted);
  --line: var(--z-line);
  --subtle: #eaf0f8;
  --accent: var(--z-blue);
  --accent-soft: #e7f2ff;
  --sidebar: 264px;
  font-family: var(--z-font);
}

html[data-brand="zhejun"] :is(a, button, input, select, textarea):focus-visible {
  outline: 2px solid #168dde;
  outline-offset: 3px;
}

html[data-brand="zhejun"] .brand-mark {
  flex: none;
  width: 48px;
  height: 38px;
  border-radius: 0;
  background: var(--z-logo) center / contain no-repeat;
}
html[data-brand="zhejun"] .brand-mark svg { display: none; }
html[data-brand="zhejun"] .brand em { font-weight: inherit; margin-left: 0; }

/* The public entry follows the company site's dark hero and light content. */
html[data-brand="zhejun"] .logged-out-landing {
  z-index: auto;
  padding: 0;
  color: var(--ink);
  background: #fff;
}
html[data-brand="zhejun"] .logged-out-landing::before,
html[data-brand="zhejun"] .landing-preview-frame,
html[data-brand="zhejun"] .landing-proof,
html[data-brand="zhejun"] .landing-item-number { display: none; }
html[data-brand="zhejun"] .landing-header {
  min-height: 76px;
  padding: 0 var(--z-gutter);
  gap: clamp(16px, 2.6vw, 38px);
  border-bottom: 1px solid rgba(166, 200, 233, .14);
  background: #040a17;
}
html[data-brand="zhejun"] .landing-brand {
  gap: 10px;
  color: #f5f9ff;
  font-size: clamp(1rem, 1.6vw, 1.23rem);
  letter-spacing: .045em;
}
html[data-brand="zhejun"] .landing-brand .brand-mark { width: 52px; height: 39px; }
html[data-brand="zhejun"] .zhejun-landing-nav {
  display: flex;
  gap: clamp(16px, 2.7vw, 40px);
  margin-left: auto;
}
html[data-brand="zhejun"] .zhejun-landing-nav a {
  display: grid;
  place-items: center;
  min-height: 44px;
  color: #bac7d9;
  font-size: .94rem;
  text-decoration: none;
  white-space: nowrap;
}
html[data-brand="zhejun"] .zhejun-landing-nav a:hover { color: var(--z-cyan); }
html[data-brand="zhejun"] .landing-header-actions { gap: 12px; }
html[data-brand="zhejun"] .landing-language {
  border-color: #29425a;
  border-radius: 6px;
  background: #091528;
}
html[data-brand="zhejun"] .landing-language button { color: #aabed5; }
html[data-brand="zhejun"] .landing-language button.active {
  color: #dff8ff;
  background: #183548;
}
html[data-brand="zhejun"] :is(.landing-login, .landing-secondary) {
  border: 1px solid #365c70;
  border-radius: 6px;
  color: #d5f5fc;
  background: #102737;
  white-space: nowrap;
}
html[data-brand="zhejun"] :is(.landing-login, .landing-secondary):hover {
  border-color: #5292aa;
  color: #fff;
  background: #15384b;
}
html[data-brand="zhejun"] .landing-main {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
}
html[data-brand="zhejun"] .landing-hero {
  position: relative;
  display: flex;
  align-items: center;
  isolation: isolate;
  min-height: clamp(460px, 38vw, 568px);
  padding: 58px var(--z-gutter);
  overflow: hidden;
  background: radial-gradient(ellipse at 77% 47%, #071a33 0, transparent 51%),
    linear-gradient(115deg, #07111f, #050c1b 56%, #050b18);
}
html[data-brand="zhejun"] .landing-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image: linear-gradient(#4b89bb19 1px, transparent 1px), linear-gradient(90deg, #4b89bb19 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(110deg, transparent, #000 61%, transparent);
}
html[data-brand="zhejun"] .zhejun-hero-art {
  position: absolute;
  z-index: -1;
  inset: 0 2% 0 45%;
  background: var(--z-hero-image) center / contain no-repeat;
  mix-blend-mode: screen;
  mask-image: radial-gradient(ellipse at 52% 50%, #000 48%, transparent 76%);
  pointer-events: none;
}
html[data-brand="zhejun"] .landing-intro { width: min(57%, 650px); max-width: none; }
html[data-brand="zhejun"] .landing-kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #126597;
  font: 650 .77rem/1.4 var(--z-mono);
  letter-spacing: .13em;
}
html[data-brand="zhejun"] .landing-kicker::before {
  content: "";
  width: 23px;
  height: 2px;
  flex: none;
  background: #1599c8;
}
html[data-brand="zhejun"] .landing-intro .landing-kicker { color: #79e6ff; }
html[data-brand="zhejun"] .landing-intro .landing-kicker::before { background: var(--z-cyan); }
html[data-brand="zhejun"] .landing-intro h1 {
  max-width: none;
  color: #f5f9ff;
  font-size: clamp(2.55rem, 4.2vw, 4.2rem);
  font-weight: 770;
  letter-spacing: -.045em;
  line-height: 1.12;
}
html[data-brand="zhejun"] .landing-intro h1 span {
  display: inline;
  color: var(--z-cyan);
  font: inherit;
}
html[data-brand="zhejun"][data-locale="en"] .landing-intro h1 span::before { content: " "; }
html[data-brand="zhejun"] .landing-summary {
  width: min(100%, 32em);
  margin-top: 23px;
  color: #b9c9de;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.8;
  text-wrap: pretty;
}
html[data-brand="zhejun"] .landing-actions { gap: 12px; }
html[data-brand="zhejun"] :is(.landing-primary, .landing-secondary) {
  min-height: 46px;
  padding: 9px 20px;
  font-size: .95rem;
}
html[data-brand="zhejun"] .landing-primary {
  border: 1px solid #0085ed;
  border-radius: 6px;
  color: #fff;
  background: #0068d2;
}
html[data-brand="zhejun"] .landing-primary:hover { background: #0876e2; }
html[data-brand="zhejun"] .zhejun-hero-details {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 22px;
  margin-top: 33px;
  color: #b1c4dc;
  font-size: .875rem;
}
html[data-brand="zhejun"] .zhejun-hero-details span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
html[data-brand="zhejun"] .zhejun-hero-details span::before {
  width: 5px;
  height: 5px;
  content: "";
  background: #43c8ef;
  transform: rotate(45deg);
}
html[data-brand="zhejun"] .landing-section {
  margin: 0;
  padding: clamp(56px, 7vw, 96px) var(--z-gutter);
}
html[data-brand="zhejun"] .landing-agents { order: 1; }
html[data-brand="zhejun"] .landing-models { order: 2; background: #eff5fb; }
html[data-brand="zhejun"] .landing-section h2 {
  color: #101c32;
  font-size: clamp(1.85rem, 3.4vw, 2.85rem);
  letter-spacing: -.045em;
}
html[data-brand="zhejun"] .zhejun-section-summary {
  margin: 13px 0 0;
  color: var(--z-muted);
  line-height: 1.7;
}
html[data-brand="zhejun"] :is(.landing-agent-grid, .landing-model-grid) {
  gap: clamp(12px, 1.5vw, 22px);
  border: 0;
  background: transparent;
}
html[data-brand="zhejun"] :is(.landing-agent, .landing-model-item) {
  min-height: 0;
  padding: clamp(19px, 2.25vw, 28px);
  border: 1px solid var(--z-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 15px #19324b07;
}
html[data-brand="zhejun"] .landing-agent-featured { grid-column: auto; }
html[data-brand="zhejun"] .landing-agent::before {
  width: 32px;
  height: 3px;
  margin-bottom: 20px;
  border-radius: 2px;
  content: "";
  background: var(--z-agent-color, #3091da);
}
html[data-brand="zhejun"] .landing-agent:nth-child(-n+2) { --z-agent-color: #258b78; }
html[data-brand="zhejun"] .landing-agent:nth-child(4) { --z-agent-color: #bf8b49; }
html[data-brand="zhejun"] .landing-agent:nth-child(n+5) { --z-agent-color: #7865ca; }
html[data-brand="zhejun"] .landing-agent-label { display: none; }
html[data-brand="zhejun"] :is(.landing-agent, .landing-agent-featured) h3,
html[data-brand="zhejun"] .landing-model-item strong { color: #101c32; }
html[data-brand="zhejun"] :is(.landing-agent, .landing-agent-featured) p:not(.landing-agent-label),
html[data-brand="zhejun"] .landing-model-item > span:last-child { color: var(--z-muted); }
html[data-brand="zhejun"] .landing-agent small { color: #506783; }
html[data-brand="zhejun"] .landing-agent small:empty { display: none; }
html[data-brand="zhejun"] .landing-footer {
  margin: 0;
  padding: 23px var(--z-gutter);
  border: 0;
  color: #a8bed7;
  background: var(--z-night);
}
html[data-brand="zhejun"] .landing-footer a { color: #d5f3ff; }
html[data-brand="zhejun"] .zhejun-footer-brand { margin-right: auto; color: #f5f9ff; }

/* Workbench and conversation controls keep their existing interaction model. */
html[data-brand="zhejun"] body[data-page="app"] { overflow: hidden; }
html[data-brand="zhejun"] body[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0c1424;
  --surface: #121e32;
  --ink: #e8f1fc;
  --muted: #adbed3;
  --line: #2c3e58;
  --subtle: #18273e;
  --accent: #86d1ff;
  --accent-soft: #20384f;
}
html[data-brand="zhejun"] .sidebar {
  padding: 20px 15px 12px;
  border-color: #1c3049;
  color: #e5effc;
  background: linear-gradient(157deg, #102039 0%, #081325 45%, #070f1f 100%);
}
html[data-brand="zhejun"] .sidebar .brand { color: #f2f8ff; font-size: 1rem; }
html[data-brand="zhejun"] .sidebar .new-chat {
  border-color: #2672a6;
  border-radius: 7px;
  color: #eff8ff;
  background: #123658;
}
html[data-brand="zhejun"] .sidebar .new-chat:hover { background: #194b73; }
html[data-brand="zhejun"] .sidebar .new-chat svg { stroke: var(--z-cyan); }
html[data-brand="zhejun"] .sidebar .new-chat kbd { color: #a6c7e6; }
html[data-brand="zhejun"] .sidebar :is(.skill-library-button, .history-search) {
  border-color: #29415d;
  color: #c8e2fb;
  background: #0b192c;
}
html[data-brand="zhejun"] .sidebar .history-search input { color: #eef6ff; }
html[data-brand="zhejun"] .sidebar .history-search input::placeholder { color: #a0b2c9; }
html[data-brand="zhejun"] .sidebar :is(.history-heading, .history-empty) { color: #a0b2c9; }
html[data-brand="zhejun"] .sidebar :is(.history-toggle, .side-action, .conversation-item, .conversation-more, .load-more, .sidebar-close) { color: #c7d7eb; }
html[data-brand="zhejun"] .sidebar :is(.side-action, .conversation-item, .conversation-more, .skill-library-button, .sidebar-close):hover,
html[data-brand="zhejun"] .sidebar .conversation-item.active {
  color: #f5f9ff;
  background: #1a314c;
}
html[data-brand="zhejun"] .sidebar .conversation-item.active { box-shadow: inset 2px 0 #47c9ed; }
html[data-brand="zhejun"] .sidebar-foot { border-color: #273952; }
html[data-brand="zhejun"] .main-area { background: var(--paper); }
html[data-brand="zhejun"] .topbar {
  gap: 8px;
  border-bottom-color: var(--line);
  background: var(--surface);
}
html[data-brand="zhejun"] .model-trigger:hover,
html[data-brand="zhejun"] .topbar .icon-button:hover { background: var(--accent-soft); }
html[data-brand="zhejun"] .picker-search input { background: var(--paper); }
html[data-brand="zhejun"] .welcome {
  width: min(880px, calc(100% - 48px));
  margin-top: clamp(35px, 8vh, 92px);
  text-align: left;
}
html[data-brand="zhejun"] .welcome-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 228px;
  padding: clamp(26px, 5vw, 46px);
  border: 1px solid #173653;
  border-radius: 15px;
  background: linear-gradient(110deg, #09172b, #07192e 67%, #081326);
}
html[data-brand="zhejun"] .welcome-intro::after {
  position: absolute;
  z-index: -1;
  inset: 0 1% 0 50%;
  content: "";
  background: var(--z-hero-image) center / cover no-repeat;
  mix-blend-mode: screen;
  mask-image: linear-gradient(90deg, transparent, #000 36%, #000 76%, transparent);
  opacity: .78;
  pointer-events: none;
}
html[data-brand="zhejun"] .welcome-mark { display: none; }
html[data-brand="zhejun"] .welcome .zhejun-workspace-kicker {
  margin: 0 0 13px;
  color: #77e1fa;
  font: 650 .85rem/1.3 var(--z-font);
  letter-spacing: .09em;
}
html[data-brand="zhejun"] .welcome h1 { color: #f5f9ff; font-size: clamp(1.65rem, 3vw, 2.35rem); }
html[data-brand="zhejun"] .welcome-intro p:last-child { margin: 13px 0 0; color: #b9c9de; }
html[data-brand="zhejun"] .prompt-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
html[data-brand="zhejun"] .prompt-chips button {
  min-height: 58px;
  padding: 10px 13px;
  border-radius: 9px;
  color: var(--ink);
  text-align: left;
}
html[data-brand="zhejun"] .prompt-chips button::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 10px 2px 0;
  border-radius: 1px;
  content: "";
  background: #188ed2;
  transform: rotate(45deg);
}
html[data-brand="zhejun"] .prompt-chips button:hover { border-color: #79bceb; }
html[data-brand="zhejun"] .composer-zone { width: min(880px, calc(100% - 48px)); }
html[data-brand="zhejun"] .composer { border-color: var(--line); border-radius: 12px; }
html[data-brand="zhejun"] .composer:focus-within { border-color: #68aadc; box-shadow: 0 0 0 3px #168dde21; }
html[data-brand="zhejun"] .composer textarea { min-height: calc(1.42em + 14px); }
html[data-brand="zhejun"] .composer textarea::placeholder { color: var(--muted); }
html[data-brand="zhejun"] .send-button:not(.stop),
html[data-brand="zhejun"] .login-submit { color: #fff; background: #0068d2; }
html[data-brand="zhejun"] .send-button:not(.stop):hover,
html[data-brand="zhejun"] .login-submit:hover { background: #075baa; }
html[data-brand="zhejun"] .composer-hint { color: var(--muted); }
html[data-brand="zhejun"] .assistant-dot { color: #c8f3ff; background: #163e5c; }
html[data-brand="zhejun"] .message.user .message-body { background: var(--accent-soft); }
html[data-brand="zhejun"] .login-card {
  border-top: 3px solid #249bdc;
  box-shadow: 0 24px 75px #020a2266;
}
html[data-brand="zhejun"] .login-mark { width: 63px; height: 42px; margin-bottom: 8px; }

/* Member pages and administration use the same palette and brand treatment. */
html[data-brand="zhejun"] {
  --billing-paper: #f2f6fb;
  --billing-surface: #fff;
  --billing-ink: #101c32;
  --billing-muted: var(--z-muted);
  --billing-line: var(--z-line);
  --billing-accent: var(--z-blue);
  --billing-soft: #e7f2ff;
}
html[data-brand="zhejun"] :is(.admin-shell, .billing-shell) {
  width: min(1240px, calc(100% - 48px));
  min-width: 0;
}
html[data-brand="zhejun"] .billing-page { overflow-x: hidden; overflow-y: auto; font-family: var(--z-font); }
html[data-brand="zhejun"] :is(.admin-header, .billing-header) {
  position: relative;
  min-height: 70px;
  padding: 12px 0;
  color: #e5effc;
  background: var(--z-night);
  box-shadow: 0 0 0 100vmax var(--z-night);
  clip-path: inset(0 -100vmax);
}
html[data-brand="zhejun"] .billing-shell { padding-top: 0; }
html[data-brand="zhejun"] :is(.admin-header .brand, .billing-brand) {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: max-content;
  color: #f6faff;
  font-size: 1.08rem;
}
html[data-brand="zhejun"] .billing-brand::before {
  width: 42px;
  height: 32px;
  content: "";
  background: var(--z-logo) center / contain no-repeat;
}
html[data-brand="zhejun"] .billing-brand em { margin-left: -5px; color: #d3e3f6; }
html[data-brand="zhejun"] :is(.admin-header-actions, .admin-header-actions a, .billing-nav a) { color: #c1d7ee; }
html[data-brand="zhejun"] :is(.admin-header-actions a, .billing-nav a):hover { color: var(--z-cyan); }
html[data-brand="zhejun"] .admin-header-actions button {
  border-color: #365c70;
  color: #d5f5fc;
  background: #102737;
}
html[data-brand="zhejun"] .admin-header-actions button:hover { background: #15384b; }
html[data-brand="zhejun"] .admin-title h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
html[data-brand="zhejun"] :is(.admin-panel, .billing-card) {
  border-radius: 12px;
  box-shadow: 0 6px 24px #1734510a;
}
html[data-brand="zhejun"] .billing-card h1 { font-size: 1.8rem; }
html[data-brand="zhejun"] .billing-stat { background: #f6faff; }
html[data-brand="zhejun"] .billing-table { overflow-wrap: anywhere; }

@media (min-width: 900px) {
  html[data-brand="zhejun"] .admin-shell {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    align-items: start;
    column-gap: 22px;
  }
  html[data-brand="zhejun"] :is(.admin-header, .admin-title) { grid-column: 1 / -1; }
  html[data-brand="zhejun"] .admin-tabs {
    grid-area: 3 / 1;
    flex-direction: column;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
  }
  html[data-brand="zhejun"] .admin-tabs button {
    min-height: 40px;
    padding: 8px 13px;
    border-radius: 6px;
    text-align: left;
  }
  html[data-brand="zhejun"] .admin-tabs button.active { box-shadow: inset 2px 0 var(--accent); }
  html[data-brand="zhejun"] .admin-panel { grid-area: 3 / 2; min-width: 0; }
}

@media (max-width: 760px) {
  html[data-brand="zhejun"] { --z-gutter: 20px; }
  html[data-brand="zhejun"] .landing-header { min-height: 66px; gap: 8px; }
  html[data-brand="zhejun"] .landing-brand { gap: 6px; letter-spacing: 0; }
  html[data-brand="zhejun"] .landing-brand .brand-mark { width: 34px; height: 29px; }
  html[data-brand="zhejun"] .landing-header-actions { gap: 6px; }
  html[data-brand="zhejun"] .zhejun-landing-nav { display: none; }
  html[data-brand="zhejun"] .landing-hero {
    align-items: flex-start;
    min-height: 0;
    padding-top: 48px;
    padding-bottom: clamp(130px, 34vw, 230px);
  }
  html[data-brand="zhejun"] .landing-intro { width: 100%; }
  html[data-brand="zhejun"] .landing-intro h1 { font-size: clamp(2rem, 8.7vw, 3.1rem); }
  html[data-brand="zhejun"] .landing-summary { margin-top: 17px; }
  html[data-brand="zhejun"] .zhejun-hero-art {
    inset: auto 0 -10% 20%;
    height: min(69vw, 365px);
    opacity: .75;
    mask-image: radial-gradient(ellipse at 57% 58%, #000 38%, transparent 70%);
  }
  html[data-brand="zhejun"] .zhejun-hero-details { margin-top: 23px; }
  html[data-brand="zhejun"] .landing-section { padding-block: 46px; }
  html[data-brand="zhejun"] .landing-agent-grid { gap: 11px; }
  html[data-brand="zhejun"] .landing-model-grid { gap: 8px; }
  html[data-brand="zhejun"] .zhejun-footer-brand { flex-basis: 100%; margin-bottom: 4px; }
  html[data-brand="zhejun"] .welcome { width: calc(100% - 26px); margin-top: 23px; }
  html[data-brand="zhejun"] .welcome-intro { min-height: 0; padding: 24px 19px; }
  html[data-brand="zhejun"] .welcome-intro::after { left: 52%; opacity: .42; }
  html[data-brand="zhejun"] .prompt-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  html[data-brand="zhejun"] .prompt-chips button { min-height: 46px; }
  html[data-brand="zhejun"] .composer-zone { width: calc(100% - 20px); }
  html[data-brand="zhejun"] :is(.admin-shell, .billing-shell) { width: calc(100% - 28px); }
}

@media (max-width: 370px) {
  html[data-brand="zhejun"] { --z-gutter: 14px; }
  html[data-brand="zhejun"] .landing-brand { font-size: .875rem; }
  html[data-brand="zhejun"] .landing-brand .brand-mark { width: 28px; }
}
