:root {
  color-scheme: light;
  --ink: #0b0b0d;
  --muted: #777d89;
  --line: rgba(20, 25, 31, .11);
  --glass: rgba(255,255,255,.7);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { color: var(--ink); background: #f8f8f5; }
a { color: inherit; text-decoration: none; }
.brand-landing { overflow-x: hidden; background: linear-gradient(180deg, #fafaf8, #f6f8f6); }

.minimal-header { width: min(1180px, calc(100% - 44px)); height: 78px; margin: auto; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 5; }
.minimal-brand { display: flex; align-items: center; gap: 11px; font-size: 15px; }
.seal { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(181, 145, 74, .3); border-radius: 13px; background: linear-gradient(135deg, #fffefa, #e9dfc4); color: #9c762b; font-family: Georgia, serif; font-weight: 900; box-shadow: inset 0 0 0 4px rgba(255,255,255,.55); }
.minimal-header nav { display: flex; align-items: center; gap: 25px; color: #555c67; font-size: 13px; }
.header-cta { padding: 9px 16px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.66); }

.orbit-stage { position: relative; min-height: calc(100vh - 154px); display: grid; place-items: center; isolation: isolate; }
.orbit-stage::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: radial-gradient(#7f8896 .65px, transparent .65px); background-size: 28px 28px; mask-image: radial-gradient(circle at center, black 8%, transparent 73%); }
.soft-aura { position: absolute; width: min(820px, 84vw); aspect-ratio: 1; border-radius: 50%; z-index: -2; background: conic-gradient(from 40deg, rgba(153,170,255,.23), rgba(255,193,214,.25), rgba(161,232,211,.2), rgba(153,170,255,.23)); filter: blur(48px); opacity: .8; }
.orbit { position: absolute; width: min(630px, 78vw); aspect-ratio: 1; border: 1px dashed rgba(94,105,119,.16); border-radius: 50%; animation: rotate 38s linear infinite; }
.orbit-b { width: min(430px, 58vw); animation-direction: reverse; animation-duration: 27s; }
.orbit::after { content: ""; position: absolute; inset: 18%; border: 1px solid rgba(87,97,111,.1); border-radius: 50%; }
.orbit i { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #9692f1; box-shadow: 0 0 20px currentColor; }
.orbit i:nth-child(1) { top: 10%; left: 63%; color: #9692f1; }
.orbit i:nth-child(2) { top: 56%; right: -4px; color: #68d2bb; background: currentColor; }
.orbit i:nth-child(3) { bottom: 8%; left: 28%; color: #ef88c1; background: currentColor; }

.orbit-copy { text-align: center; position: relative; z-index: 2; padding: 40px 20px; }
.pill { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 28px; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); color: #707684; font-size: 12px; backdrop-filter: blur(12px); }
.pill span { width: 7px; height: 7px; border-radius: 50%; background: #8076f5; box-shadow: 0 0 0 4px rgba(128,118,245,.1); }
.orbit-copy h1 { margin: 0; font-size: clamp(72px, 13vw, 170px); line-height: .85; letter-spacing: -.075em; font-weight: 920; }
.orbit-copy > p:not(.pill) { margin: 36px 0 32px; color: var(--muted); font-size: clamp(20px, 3vw, 30px); }
.dark-action { display: inline-flex; align-items: center; gap: 13px; padding: 15px 28px; color: white; background: #08090a; border-radius: 13px; font-size: 14px; font-weight: 800; box-shadow: 0 13px 24px rgba(18,21,24,.17); }
.dark-action:hover { transform: translateY(-2px); }
.model-strip { min-height: 76px; border-top: 1px solid var(--line); display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 20px; }
.model-strip span { display: flex; align-items: center; gap: 7px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; color: #727986; background: rgba(255,255,255,.5); font-size: 12px; }
.model-strip i { width: 6px; height: 6px; border-radius: 50%; background: #f28047; }
.model-strip .gpt { background: #35bd70; }.model-strip .gemini { background: #53bced; }.model-strip .minimax { background: #b088f2; }.model-strip .qwen { background: #7c86ef; }
@keyframes rotate { to { transform: rotate(360deg); } }

/* BOYIN account pages — warm paper, quiet brass, focused forms. */
body.brand-related { background: #f8f8f5 !important; }
#domain-brand-panel { display: none; }
body.brand-auth {
  --background: #faf9f6;
  --foreground: #292e2a;
  --card: #faf9f6;
  --card-foreground: #292e2a;
  --muted: #efeee8;
  --muted-foreground: #72766d;
  --border: #dbddd4;
  --input: #dbddd4;
  --primary: #30392f;
  --primary-foreground: #ffffff;
  --ring: #9a8858;
  --accent: #eeeee6;
  --accent-foreground: #30392f;
  color: #292e2a;
  background: #faf9f6 !important;
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.brand-auth::before, body.brand-auth::after { content: none; }
body.brand-auth #domain-brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: fixed;
  z-index: 3;
  inset: 18px auto 18px 18px;
  width: calc(44% - 18px);
  padding: clamp(26px, 3.3vw, 52px);
  border: 1px solid #e1e1d6;
  border-radius: 15px;
  background: #eeeee5;
}
.boyin-auth-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.boyin-auth-brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.boyin-auth-brand .brand-symbol {
  display: grid;
  place-items: center;
  width: 37px;
  height: 42px;
  border: 1px solid #c8b98f;
  border-radius: 9px;
  color: #8b7444;
  background: #f8f5eb;
  box-shadow: inset 0 0 0 3px #f0eadb;
  font: 700 20px Georgia, serif;
  letter-spacing: -2px;
  padding-right: 2px;
}
.boyin-auth-wordmark { display: flex; flex-direction: column; gap: 4px; }
.boyin-auth-wordmark strong { color: #343a31; font-size: 15px; font-weight: 600; letter-spacing: .06em; line-height: 1.25; }
.boyin-auth-wordmark small { color: #656d5c; font: 10px/1.2 Inter, sans-serif; letter-spacing: .2em; }
.boyin-auth-home { color: #656d5c; font-size: 12px; white-space: nowrap; transition: color .15s; }
.boyin-auth-home span { margin-left: 5px; font-size: 16px; }
.boyin-auth-home:hover { color: #30392f; }
.boyin-auth-story { width: 100%; margin: auto 0; padding: 18px 0 28px; }
.boyin-auth-art { display: block; width: min(100%, 420px); height: auto; margin: 0 auto 22px; user-select: none; }
.boyin-auth-caption { max-width: 320px; margin: 0 auto; }
.boyin-auth-eyebrow { color: #656d5c; font-size: 9px; font-weight: 500; letter-spacing: .18em; }
.boyin-auth-caption p { margin: 15px 0 12px; color: #3e493c; font-size: clamp(20px, 1.8vw, 25px); font-weight: 450; line-height: 1.65; letter-spacing: .025em; }
.boyin-auth-description { display: block; color: #656d5c; font-size: 12px; line-height: 1.9; }
.boyin-auth-foot { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #daddd0; padding-top: 18px; color: #656d5c; font-size: 10px; line-height: 1.6; }
.boyin-auth-foot span:last-child { letter-spacing: .04em; }
body.brand-auth #root { position: relative; width: 56%; margin-left: 44%; min-height: 100svh; }
body.brand-auth #root > .relative.grid.h-svh { height: auto; min-height: 100svh; padding: 72px 32px; }
body.brand-auth #root > .relative.grid.h-svh > a[href="/"] { display: none; }
body.brand-auth #root .container { width: 100%; max-width: none; padding: 0; align-items: center; }
body.brand-auth #root .container > .mx-auto {
  width: 100%; max-width: 370px; margin: auto; padding: 0;
  background: transparent; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none;
}
body.brand-auth #root .container > .mx-auto > .space-y-8 { display: flex; flex-direction: column; gap: 30px; }
body.brand-auth #root .container > .mx-auto > .space-y-8 > * { margin-block: 0; }
body.brand-auth #root h2 { color: #293228; font-size: 26px; font-weight: 600; line-height: 1.4; letter-spacing: -.025em; text-align: left; margin-bottom: 12px; }
body.brand-auth #root h2 + p { font-size: 13px; color: #6a715f; line-height: 1.8; }
body.brand-auth #root h2 + p a { color: #535f48; font-weight: 600; text-decoration-color: #b9bfaa; text-underline-offset: 4px; }
body.brand-auth #root form { background: transparent; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; gap: 20px; }
body.brand-auth #root form label { color: #414a3d; font-size: 12px; font-weight: 500; line-height: 1.6; }
body.brand-auth #root form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
  width: 100%; min-height: 47px; border: 1px solid #d9ddd1; border-radius: 7px;
  padding: 11px 13px; background: #fdfcf9; color: #293228; font-size: 14px;
  box-shadow: 0 1px 1px rgb(38 49 29 / 2%); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
body.brand-auth #root form input::placeholder { color: #a1a596; font-size: 13px; }
body.brand-auth #root form input:focus-visible { border-color: #a3956f; box-shadow: 0 0 0 3px rgb(163 149 111 / 12%); }
body.brand-auth #root form input[aria-invalid="true"] { border-color: #bf6c60; }
body.brand-auth #root form input[type="password"] { padding-right: 43px !important; }
body.brand-auth #root form .relative > input { padding-right: 43px; }
body.brand-auth #root form .flex.items-end.gap-2 > button { min-height: 47px; padding-inline: 14px; font-size: 12px; }
body.brand-auth #root form button[type="submit"] {
  min-height: 47px; margin-top: 5px; border: 1px solid #303a2e; border-radius: 7px;
  background: #303a2e; color: #fffefa; font-size: 13px; font-weight: 500; letter-spacing: .025em;
  box-shadow: 0 2px 3px rgb(38 49 29 / 6%); transition: background .15s, transform .15s;
}
body.brand-auth #root form button[type="submit"]:hover:not(:disabled) { background: #424f3d; }
body.brand-auth #root form button[type="submit"]:active:not(:disabled) { transform: translateY(1px); }
body.brand-auth #root button:disabled { opacity: .5; cursor: not-allowed; }
body.brand-auth #root form a[href="/forgot-password"] { color: #6a715f; font-size: 11px; text-underline-offset: 3px; }
body.brand-auth #root [data-slot="form-message"] { font-size: 12px; line-height: 1.6; }
body.brand-auth #root .text-muted-foreground { color: #6a715f; }
body.brand-auth #root [data-slot="checkbox"] { border-color: #bcc3af; border-radius: 4px; }
body.brand-auth #root [data-slot="checkbox"][data-state="checked"] { background: #424f3d; border-color: #424f3d; color: white; }
body.brand-auth #root form button[type="button"] { border-radius: 7px; }
body.brand-auth a:focus-visible, body.brand-auth button:focus-visible { outline: 2px solid #a3956f; outline-offset: 4px; }
@media (min-width: 1500px) {
  body.brand-auth #domain-brand-panel { padding: 52px 60px; }
  .boyin-auth-art { width: 420px; margin-bottom: 30px; }
}
@media (max-height: 760px) and (min-width: 801px) {
  .boyin-auth-art { width: min(75%, 290px); margin-bottom: 8px; }
  .boyin-auth-caption p { font-size: 21px; margin: 8px 0; }
  .boyin-auth-story { padding: 12px 0; }
}
@media (max-width: 1000px) and (min-width: 801px) {
  .boyin-auth-home { font-size: 0; }
  .boyin-auth-home span { font-size: 16px; }
  .boyin-auth-foot span:last-child { display: none; }
}
@media (max-height: 600px) and (min-width: 801px) {
  body.brand-auth #domain-brand-panel { padding: 24px; }
  .boyin-auth-art { width: 160px; margin-bottom: 0; }
  .boyin-auth-caption p { font-size: 18px; line-height: 1.5; }
  .boyin-auth-foot { padding-top: 10px; }
}
@media (max-width: 800px) {
  body.brand-auth #domain-brand-panel { position: relative; inset: auto; width: auto; margin: 0 24px; padding: 23px 0; border: 0; border-bottom: 1px solid #e6e7dd; border-radius: 0; background: transparent; }
  .boyin-auth-story, .boyin-auth-foot { display: none; }
  .boyin-auth-wordmark strong { font-size: 14px; }
  .boyin-auth-brand .brand-symbol { width: 32px; height: 37px; font-size: 18px; }
  body.brand-auth #root { width: 100%; margin-left: 0; min-height: 0; }
  body.brand-auth #root > .relative.grid.h-svh { min-height: 0; height: auto; padding: 52px 26px 48px; }
  body.brand-auth #root .container > .mx-auto { max-width: 390px; }
  body.brand-auth #root h2 { font-size: 25px; }
  body.brand-auth #root form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) { font-size: 16px; }
}
@media (max-width: 360px) {
  body.brand-auth #domain-brand-panel { margin-inline: 18px; }
  body.brand-auth #root > .relative.grid.h-svh { padding: 36px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  body.brand-auth *, body.brand-auth *::before, body.brand-auth *::after { transition: none !important; animation: none !important; }
}

@media (max-width: 700px) { .minimal-header nav a:first-child { display: none; } .orbit-copy h1 { font-size: clamp(62px, 22vw, 110px); } }
@media (prefers-reduced-motion: reduce) { .orbit { animation: none; } * { transition: none !important; } }
