:root {
  --ink: #eef0e9;
  --muted: #8b918b;
  --faint: #5e645f;
  --bg: #0a0c0b;
  --panel: #101311;
  --panel-2: #151916;
  --line: #272c28;
  --acid: #c8ff3d;
  --acid-soft: rgba(200, 255, 61, .12);
  --orange: #ff8157;
  --sans: "Noto Sans SC", sans-serif;
  --display: "Syne", "Noto Sans SC", sans-serif;
  --mono: "DM Mono", monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; overflow: hidden; background: var(--bg); color: var(--ink); font-family: var(--sans); }
button, input, textarea, select { color: inherit; font: inherit; }
button { cursor: pointer; }
.noise { position: fixed; inset: 0; opacity: .035; pointer-events: none; z-index: 10; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E"); }
.app-shell { height: 100%; display: grid; grid-template-columns: 280px minmax(0, 1fr); }

.sidebar { position: relative; z-index: 4; display: flex; flex-direction: column; min-width: 0; background: #0e110f; border-right: 1px solid var(--line); }
.brand { height: 74px; display: flex; align-items: center; gap: 12px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; position: relative; border: 1px solid #3b423b; transform: rotate(45deg); }
.brand-mark i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 10px var(--acid); }
.brand-mark i:nth-child(1) { transform: translate(-8px, 7px); }.brand-mark i:nth-child(2) { transform: translate(8px, 7px); }.brand-mark i:nth-child(3) { transform: translate(0, -7px); }
.brand strong { display: block; font: 700 17px/1 var(--display); letter-spacing: .12em; }.brand span { display: block; margin-top: 5px; color: var(--faint); font: 10px var(--mono); letter-spacing: .1em; }
.new-chat { margin: 18px 16px; min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid #394037; background: transparent; border-radius: 4px; text-align: left; transition: .2s ease; }
.new-chat:hover { border-color: var(--acid); background: var(--acid-soft); }.new-chat span { color: var(--acid); font-size: 20px; }.new-chat kbd { margin-left: auto; color: var(--faint); background: none; font: 10px var(--mono); }
.conversation-panel { min-height: 0; display: flex; flex-direction: column; flex: 1; padding: 0 10px; }
.section-label { display: flex; justify-content: space-between; padding: 7px 8px 11px; color: var(--faint); font: 10px var(--mono); letter-spacing: .13em; }
.conversation-list { min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #343a35 transparent; }
.conversation-item { position: relative; width: 100%; display: flex; align-items: center; gap: 11px; margin-bottom: 3px; padding: 11px 36px 11px 10px; border: 0; border-left: 2px solid transparent; border-radius: 2px; background: transparent; text-align: left; }
.conversation-item:hover { background: #161a17; }.conversation-item.active { border-left-color: var(--acid); background: #181d19; }
.conversation-icon { color: var(--faint); font-family: var(--mono); }.conversation-text { min-width: 0; }.conversation-text strong { display: block; overflow: hidden; color: #ccd0ca; font-size: 13px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }.conversation-text small { color: var(--faint); font: 9px var(--mono); }
.delete-chat { position: absolute; right: 8px; opacity: 0; padding: 5px; border: 0; background: none; color: var(--muted); }.conversation-item:hover .delete-chat { opacity: 1; }.delete-chat:hover { color: var(--orange); }
.empty-list { padding: 25px 12px; color: var(--faint); font-size: 12px; text-align: center; }
.generation-lock-notice { display: flex; align-items: center; gap: 9px; margin: 10px 0 0; padding: 10px 11px; border: 1px solid rgba(157, 230, 195, .24); border-radius: 10px; color: #dcebe4; background: rgba(26, 66, 56, .58); }
.generation-lock-notice[hidden] { display: none; }
.generation-lock-notice strong, .generation-lock-notice small { display: block; }
.generation-lock-notice strong { font-size: 11px; }
.generation-lock-notice small { margin-top: 2px; color: #91b6a7; font-size: 9px; line-height: 1.4; }
.generation-lock-spinner { flex: 0 0 auto; width: 14px; height: 14px; border: 2px solid rgba(157, 230, 195, .22); border-top-color: #9de6c3; border-radius: 50%; animation: spin .8s linear infinite; }
.generation-locked .conversation-item { opacity: .58; cursor: not-allowed; pointer-events: none; }
.generation-locked .conversation-item.active { opacity: 1; border-left-color: #9de6c3; }
.generation-locked .new-chat:disabled, .generation-locked .side-action:disabled, .generation-locked .agent-chip:disabled, .generation-locked .icon-button:disabled { opacity: .45; cursor: not-allowed; }
.sidebar-bottom { padding: 10px; border-top: 1px solid var(--line); }

.conversation-maintenance {
  padding: 10px;
  border-top: 1px solid var(--line);
  background: rgba(7, 25, 22, .22);
}
.cache-clear-button {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 10px 11px; border: 1px solid rgba(229, 171, 126, .24); border-radius: 11px;
  color: #d9e8e1; background: rgba(22, 46, 40, .54); text-align: left; cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.cache-clear-button:hover:not(:disabled) { transform: translateY(-1px); border-color: rgba(239, 177, 126, .55); background: rgba(82, 51, 39, .42); }
.cache-clear-button:disabled { opacity: .42; cursor: not-allowed; }
.cache-clear-button strong, .cache-clear-button small { display: block; }
.cache-clear-button strong { font-size: 13px; font-weight: 650; }
.cache-clear-button small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.cache-clear-icon { color: #efb17e; font-size: 18px; }
.auto-cleanup-control { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; color: var(--muted); font-size: 11px; }
.auto-cleanup-control select { min-width: 126px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; color: #dcebe4; background: rgba(8, 25, 22, .72); }
.auto-cleanup-control select:disabled { opacity: .45; }
.auto-cleanup-hint { display: block; margin: 6px 2px 0; color: rgba(180, 204, 194, .52); font-size: 9px; line-height: 1.45; }
.side-action { width: 100%; display: flex; align-items: center; gap: 11px; padding: 11px; border: 0; background: transparent; color: #b8bdb7; text-align: left; }.side-action:hover { background: #171b18; color: var(--ink); }.side-action small { margin-left: auto; color: var(--faint); font: 9px var(--mono); }.action-glyph { color: var(--acid); font-size: 18px; }

.main-stage { min-width: 0; min-height: 0; display: grid; grid-template-rows: 74px minmax(0,1fr) auto; background: radial-gradient(circle at 60% 25%, rgba(47, 61, 37, .16), transparent 36%), var(--bg); }
.topbar { display: flex; align-items: center; gap: 14px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.agent-chip { display: flex; align-items: center; gap: 10px; min-width: 170px; padding: 6px 10px 6px 6px; border: 0; border-radius: 4px; background: transparent; text-align: left; }.agent-chip:hover { background: var(--panel-2); }.agent-chip small { display: block; margin-bottom: 3px; color: var(--faint); font: 8px var(--mono); letter-spacing: .12em; }.agent-chip strong { display: block; font-size: 13px; font-weight: 600; }.agent-chip b { margin-left: auto; color: var(--faint); }
.agent-avatar { width: 36px; height: 36px; display: grid; place-items: center; background: var(--acid); color: #11150d; font-size: 17px; border-radius: 2px; box-shadow: 5px 5px 0 #29301f; }
.model-control { min-width: 0; margin-left: auto; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 4px; background: #0e110f; }
.model-control select, .model-control input { height: 36px; border: 0; outline: 0; background: transparent; font: 11px var(--mono); }.model-control select { width: 145px; padding: 0 10px 0 3px; }.model-control input { width: 170px; padding: 0 10px; border-left: 1px solid var(--line); }
.model-control select:disabled, .model-control input:read-only { color: #dce8e2; opacity: 1; cursor: default; -webkit-text-fill-color: #dce8e2; }
.model-control select:disabled { appearance: none; background-image: none; }
.model-readonly-badge { flex: 0 0 auto; margin-right: 9px; padding: 3px 6px; border: 1px solid rgba(157, 230, 195, .15); border-radius: 5px; color: rgba(182, 216, 201, .58); font: 8px var(--mono); letter-spacing: .08em; cursor: help; user-select: none; }
.status-dot { width: 6px; height: 6px; margin: 0 7px 0 10px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 8px var(--acid); }
.icon-button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 3px; background: transparent; color: var(--muted); font-size: 18px; }.icon-button:hover { border-color: #596058; color: var(--ink); }
.mobile-only { display: none; }

.chat-stage { min-height: 0; overflow-y: auto; scroll-behavior: smooth; }
.welcome { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 24px 40px; text-align: center; animation: reveal .65s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(12px); } }
.orb { position: relative; width: 74px; height: 74px; margin-bottom: 27px; border: 1px solid #59634e; border-radius: 50%; animation: orbit 12s linear infinite; }.orb:before,.orb:after,.orb span { content:""; position:absolute; border-radius:50%; }.orb:before { inset: 12px; border: 1px dashed #5c684d; }.orb:after { width: 12px; height: 12px; top: 29px; left: 29px; background: var(--acid); box-shadow: 0 0 25px 6px rgba(200,255,61,.25); }.orb span { width: 5px; height: 5px; background: var(--acid); }.orb span:nth-child(1){top:-3px;left:34px}.orb span:nth-child(2){right:5px;bottom:9px}.orb span:nth-child(3){left:4px;bottom:12px}
@keyframes orbit { to { transform: rotate(360deg); } }
.eyebrow { margin: 0 0 15px; color: var(--acid); font: 10px var(--mono); letter-spacing: .18em; }
.welcome h1 { max-width: 700px; margin: 0; font: 700 clamp(34px, 5vw, 65px)/1.04 var(--display); letter-spacing: -.045em; }.welcome h1 em { display: block; color: transparent; -webkit-text-stroke: 1px #80877e; font-style: normal; }
.welcome-copy { max-width: 580px; margin: 23px 0 30px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.starter-grid { width: min(720px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.starter { min-height: 54px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 3px; background: rgba(16,19,17,.65); color: #bac0b9; text-align: left; font-size: 12px; transition: .2s; }.starter:before { content: "↗"; margin-right: 10px; color: var(--acid); font-family: var(--mono); }.starter:hover { border-color: #556044; background: var(--acid-soft); transform: translateY(-2px); }
.messages { width: min(900px, calc(100% - 36px)); margin: 0 auto; padding: 34px 0 60px; }
.message { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 15px; margin-bottom: 30px; animation: reveal .25s ease both; }.message.user { margin-left: 13%; }.message-avatar { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #3c433d; border-radius: 2px; color: var(--acid); font: 13px var(--mono); }.message.user .message-avatar { background: #262c27; color: #d8dcd7; }
.message-head { display: flex; align-items: center; gap: 9px; margin: 2px 0 8px; }.message-head strong { font-size: 12px; }.message-head span { color: var(--faint); font: 9px var(--mono); }.message-body { color: #d6dad4; font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }.message.user .message-body { padding: 13px 16px; border: 1px solid var(--line); background: #131714; border-radius: 3px; }.message-body p { margin: 0 0 12px; }.message-body p:last-child { margin-bottom: 0; }.message-body h1,.message-body h2,.message-body h3 { font-family: var(--display); }.message-body pre { overflow-x: auto; padding: 14px; border: 1px solid #2f3630; border-radius: 3px; background: #090b0a; }.message-body code { font: 12px/1.65 var(--mono); color: #d9e5c5; }.message-body :not(pre)>code { padding: 2px 5px; background: #20251f; }.message-body a { color: var(--acid); }.message-body ul,.message-body ol { padding-left: 22px; }.message-body blockquote { margin-left: 0; padding-left: 14px; border-left: 2px solid var(--acid); color: #aab0aa; }
.typing { display: inline-flex; gap: 4px; padding-top: 5px; }.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--acid); animation: blink 1s infinite alternate; }.typing i:nth-child(2){animation-delay:.2s}.typing i:nth-child(3){animation-delay:.4s}@keyframes blink{to{opacity:.2;transform:translateY(-3px)}}
.file-pill { display: inline-flex; align-items: center; gap: 8px; margin: 8px 6px 0 0; padding: 7px 9px; border: 1px solid var(--line); background: #0e110f; font: 10px var(--mono); }.file-pill img { width: 34px; height: 34px; object-fit: cover; }

.composer-wrap { width: min(900px, calc(100% - 36px)); margin: 0 auto; padding-bottom: 12px; }
.composer { position: relative; display: grid; grid-template-columns: 42px 1fr 46px; align-items: end; min-height: 70px; padding: 10px; border: 1px solid #3b423d; border-radius: 5px; background: rgba(17,20,18,.95); box-shadow: 0 20px 70px rgba(0,0,0,.35); transition: border .2s; }.composer:focus-within { border-color: #657153; box-shadow: 0 0 0 1px rgba(200,255,61,.08), 0 20px 70px rgba(0,0,0,.35); }
.attach-button { width: 35px; height: 35px; display: grid; place-items: center; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); cursor: pointer; }.attach-button:hover { color: var(--acid); border-color: #566148; }.attach-button input { display: none; }
.composer textarea { width: 100%; max-height: 180px; min-height: 28px; padding: 5px 8px 20px; resize: none; border: 0; outline: 0; background: transparent; line-height: 1.6; }.composer textarea::placeholder { color: #646a64; }
.composer-meta { position: absolute; left: 59px; bottom: 7px; right: 68px; display: flex; justify-content: space-between; color: #555c56; font: 8px var(--mono); pointer-events: none; }
.send-button { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 7px; border: 0; border-radius: 3px; background: var(--acid); color: #10140c; font-size: 21px; box-shadow: 4px 4px 0 #384226; }.send-button:hover { transform: translate(-1px,-1px); box-shadow: 6px 6px 0 #384226; }.send-button:disabled { opacity: .35; cursor: not-allowed; }.send-button.stop { background: var(--orange); }.send-button.stop span { font-size: 0; }.send-button.stop span:after { content:"■"; font-size:12px; }
.disclaimer { margin: 7px 0 0; color: #505650; font: 8px var(--mono); text-align: center; }.attachment-tray { display: flex; gap: 7px; overflow-x: auto; }.attachment-tray:not(:empty) { padding: 8px 0; }.attachment-item { flex: 0 0 auto; display: flex; gap: 8px; align-items: center; padding: 7px 9px; border: 1px solid var(--line); background: var(--panel); font: 10px var(--mono); }.attachment-item button { border: 0; background: none; color: var(--orange); }

.backdrop { position: fixed; inset: 0; z-index: 19; visibility: hidden; opacity: 0; background: rgba(0,0,0,.62); backdrop-filter: blur(5px); transition: .25s; }.backdrop.open { visibility: visible; opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; z-index: 20; width: min(760px, 94vw); height: 100%; display: flex; flex-direction: column; visibility: hidden; transform: translateX(100%); border-left: 1px solid #404841; background: #101310; box-shadow: -30px 0 90px rgba(0,0,0,.45); transition: .3s cubic-bezier(.2,.8,.2,1); }.drawer.open { visibility: visible; transform: none; }
.drawer-head { height: 82px; display: flex; align-items: center; justify-content: space-between; padding: 0 25px; border-bottom: 1px solid var(--line); }.drawer-head small { color: var(--acid); font: 9px var(--mono); letter-spacing: .16em; }.drawer-head h2 { margin: 4px 0 0; font: 700 24px var(--display); }.drawer-body { min-height: 0; display: grid; grid-template-columns: 180px 1fr; flex: 1; }
.agent-rail,.provider-list { overflow-y: auto; padding: 16px 10px; border-right: 1px solid var(--line); }.rail-item { width: 100%; display: flex; align-items: center; gap: 9px; padding: 10px; border: 0; border-left: 2px solid transparent; background: none; text-align: left; }.rail-item:hover { background: #181c19; }.rail-item.active { border-left-color: var(--acid); background: #1b201b; }.rail-icon { width: 28px; height: 28px; display: grid; place-items:center; background:#262c27; color:var(--acid); }.rail-item strong { display:block;font-size:11px; }.rail-item small { color:var(--faint);font:8px var(--mono); }
.settings-form { min-width: 0; overflow-y: auto; padding: 24px; }.settings-form label { display: block; margin-bottom: 16px; }.settings-form label > span { display: flex; justify-content: space-between; margin-bottom: 7px; color: #9da39d; font: 10px var(--mono); letter-spacing: .04em; }.settings-form input:not([type="range"]):not([type="checkbox"]),.settings-form textarea,.settings-form select { width:100%; border:1px solid #303630; border-radius:3px; outline:0; background:#0b0e0c; padding:10px 11px; }.settings-form textarea { resize:vertical; line-height:1.6; }.settings-form input:focus,.settings-form textarea:focus,.settings-form select:focus { border-color:#667252; }.form-row { display:grid;grid-template-columns:1fr 1fr;gap:12px; }.icon-name-row { grid-template-columns:80px 1fr; }.form-row label { min-width:0; }.settings-form input[type="range"] { width:100%;accent-color:var(--acid); }.form-actions { display:flex;justify-content:flex-end;gap:9px;padding-top:12px;border-top:1px solid var(--line); }.primary-button,.secondary-button,.danger-text { min-height:38px;padding:0 14px;border-radius:3px; }.primary-button { border:0;background:var(--acid);color:#10140c;font-weight:700; }.secondary-button { border:1px solid #3b423c;background:transparent; }.danger-text { margin-right:auto;border:0;background:transparent;color:var(--orange); }.protocol-note { margin:-4px 0 17px;padding:11px;border-left:2px solid var(--acid);background:var(--acid-soft);color:#9ea79a;font-size:11px;line-height:1.6; }.switch-row { display:flex!important;align-items:center;justify-content:space-between; }.switch-row > span { margin:0!important; }.switch-row input { display:none; }.switch-row i { position:relative;width:38px;height:20px;border-radius:20px;background:#343a34; }.switch-row i:after { content:"";position:absolute;width:14px;height:14px;top:3px;left:3px;border-radius:50%;background:#8c938c;transition:.2s; }.switch-row input:checked+i { background:#4c5d2f; }.switch-row input:checked+i:after { left:21px;background:var(--acid); }
.toast { position:fixed;left:50%;bottom:28px;z-index:50;transform:translate(-50%,15px);visibility:hidden;opacity:0;padding:10px 14px;border:1px solid #465044;background:#171c18;color:#d9ddd7;font-size:12px;box-shadow:0 10px 35px #000;transition:.2s; }.toast.show { visibility:visible;opacity:1;transform:translate(-50%,0); }.toast.error { border-color:#744033;color:#ffc2ae; }

@media (max-width: 760px) {
  .app-shell { grid-template-columns: 1fr; }.sidebar { position:fixed;inset:0 auto 0 0;width:min(310px,88vw);transform:translateX(-100%);transition:.25s;box-shadow:20px 0 60px #000; }.sidebar.open { transform:none; }.mobile-only { display:inline-grid;place-items:center; }.brand .mobile-only { margin-left:auto; }.topbar { padding:0 12px;gap:7px; }.agent-chip { min-width:0; }.agent-chip small,.agent-chip b { display:none; }.model-control { flex:1; }.model-control select { width:105px; }.model-control input { width:100%;min-width:70px; }.welcome h1 { font-size:38px; }.starter-grid { grid-template-columns:1fr; }.messages,.composer-wrap { width:calc(100% - 20px); }.message.user { margin-left:5%; }.drawer-body { grid-template-columns:1fr;grid-template-rows:auto 1fr; }.agent-rail,.provider-list { display:flex;gap:5px;overflow-x:auto;border-right:0;border-bottom:1px solid var(--line); }.rail-item { min-width:145px; }.form-row { grid-template-columns:1fr; }.icon-name-row { grid-template-columns:75px 1fr; }.composer-meta span:last-child { display:none; }
}

/* Spring & Autumn visual system */
[hidden] { display: none !important; }

:root {
  --ink: #f4f1e8;
  --muted: #a4aaa7;
  --faint: #6d7875;
  --bg: #07100f;
  --panel: rgba(12, 24, 23, .72);
  --panel-2: rgba(21, 39, 36, .72);
  --line: rgba(198, 226, 214, .13);
  --acid: #9de6c3;
  --acid-soft: rgba(108, 216, 170, .1);
  --orange: #f2a77f;
  --display: "Noto Serif SC", serif;
}

body {
  background: #07100f;
  color: var(--ink);
  background-image:
    radial-gradient(circle at 48% -15%, rgba(87, 181, 153, .1), transparent 42%),
    linear-gradient(145deg, #07100f 0%, #091412 48%, #070d0d 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .28;
  background-image:
    linear-gradient(rgba(174, 221, 204, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(174, 221, 204, .035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.ambient-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora {
  position: absolute;
  display: block;
  border-radius: 999px;
  filter: blur(85px);
  opacity: .22;
  will-change: transform;
}

.aurora-one {
  width: 48vw;
  height: 42vw;
  left: 10%;
  top: -24%;
  background: #5bd4a5;
  animation: aurora-drift-one 22s ease-in-out infinite alternate;
}

.aurora-two {
  width: 44vw;
  height: 48vw;
  right: -18%;
  top: 24%;
  background: #3a8f91;
  animation: aurora-drift-two 28s ease-in-out infinite alternate;
}

.aurora-three {
  width: 30vw;
  height: 30vw;
  left: 32%;
  bottom: -24%;
  background: #b7a86d;
  opacity: .1;
  animation: aurora-drift-three 25s ease-in-out infinite alternate;
}

.light-thread {
  position: absolute;
  display: block;
  width: 46vw;
  height: 1px;
  opacity: .2;
  background: linear-gradient(90deg, transparent, rgba(185, 238, 215, .85), transparent);
  transform-origin: center;
}

.thread-one { top: 23%; right: -8%; transform: rotate(-20deg); animation: thread-pulse 8s ease-in-out infinite; }
.thread-two { bottom: 19%; left: 12%; transform: rotate(12deg); animation: thread-pulse 10s 2s ease-in-out infinite; }

@keyframes aurora-drift-one {
  to { transform: translate3d(18vw, 12vh, 0) scale(1.12) rotate(8deg); }
}
@keyframes aurora-drift-two {
  to { transform: translate3d(-13vw, -10vh, 0) scale(.9) rotate(-7deg); }
}
@keyframes aurora-drift-three {
  to { transform: translate3d(9vw, -15vh, 0) scale(1.18); }
}
@keyframes thread-pulse {
  0%, 100% { opacity: .08; transform: translateX(-3vw) rotate(-20deg); }
  50% { opacity: .28; transform: translateX(3vw) rotate(-20deg); }
}

.noise { z-index: 8; opacity: .026; }
.app-shell { position: relative; z-index: 1; grid-template-columns: 264px minmax(0, 1fr); }

.sidebar {
  background: rgba(6, 15, 14, .7);
  border-color: var(--line);
  backdrop-filter: blur(28px) saturate(125%);
  box-shadow: 24px 0 80px rgba(0, 0, 0, .18);
}

.brand { height: 82px; padding: 0 22px; border-color: var(--line); }
.brand-mark {
  width: 38px;
  height: 38px;
  border-color: rgba(157, 230, 195, .34);
  border-radius: 10px;
  background: rgba(157, 230, 195, .045);
  box-shadow: inset 0 0 22px rgba(157, 230, 195, .05);
}
.brand-mark i { background: #baf1d7; box-shadow: 0 0 12px rgba(157, 230, 195, .9); }
.brand strong { font: 700 17px/1 var(--display); letter-spacing: .12em; }
.brand span { margin-top: 7px; color: #73847f; font-size: 8px; letter-spacing: .18em; }

.new-chat {
  margin: 20px 16px;
  min-height: 50px;
  border-color: rgba(157, 230, 195, .22);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(157, 230, 195, .075), rgba(157, 230, 195, .02));
}
.new-chat:hover { border-color: rgba(157, 230, 195, .58); background: rgba(157, 230, 195, .11); transform: translateY(-1px); }
.section-label { padding-inline: 12px; color: #687772; }
.conversation-item { margin-bottom: 6px; padding: 13px 38px 13px 13px; border-left: 0; border-radius: 12px; }
.conversation-item:hover { background: rgba(157, 230, 195, .055); }
.conversation-item.active {
  border-left: 0;
  background: linear-gradient(110deg, rgba(157, 230, 195, .14), rgba(157, 230, 195, .035));
  box-shadow: inset 0 0 0 1px rgba(157, 230, 195, .12);
}
.conversation-item.active::before { content: ""; width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: var(--acid); box-shadow: 0 0 12px var(--acid); }
.conversation-item.active .conversation-icon { display: none; }
.sidebar-bottom { padding: 12px; border-color: var(--line); }
.side-action { border-radius: 11px; }
.side-action:hover { background: rgba(157, 230, 195, .06); }

.main-stage { grid-template-rows: 82px minmax(0, 1fr) auto; background: transparent; }
.topbar {
  padding: 0 28px;
  border-color: var(--line);
  background: rgba(7, 16, 15, .48);
  backdrop-filter: blur(24px) saturate(125%);
}
.agent-chip { min-width: 190px; padding: 7px 12px 7px 7px; border-radius: 13px; }
.agent-chip:hover { background: rgba(157, 230, 195, .055); }
.agent-avatar {
  border-radius: 11px;
  background: linear-gradient(145deg, #b8f1d5, #72caa5);
  color: #082119;
  box-shadow: 0 8px 24px rgba(67, 190, 140, .2);
}
.model-control {
  padding: 3px;
  border-color: rgba(198, 226, 214, .15);
  border-radius: 13px;
  background: rgba(9, 20, 18, .62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.model-control select, .model-control input { height: 38px; }
.status-dot { background: #9de6c3; box-shadow: 0 0 12px rgba(157, 230, 195, .9); }
.icon-button { border-color: var(--line); border-radius: 12px; background: rgba(11, 23, 21, .42); }
.icon-button:hover { border-color: rgba(157, 230, 195, .35); background: rgba(157, 230, 195, .07); }

.chat-stage { position: relative; scrollbar-color: rgba(157, 230, 195, .24) transparent; }
.welcome {
  width: min(900px, calc(100% - 48px));
  min-height: 100%;
  margin: 0 auto;
  justify-content: center;
  padding: 46px 24px 54px;
}
.orb {
  width: 86px;
  height: 86px;
  margin-bottom: 30px;
  border-color: rgba(157, 230, 195, .3);
  box-shadow: 0 0 60px rgba(86, 195, 151, .09), inset 0 0 24px rgba(157, 230, 195, .04);
}
.orb::before { border-color: rgba(157, 230, 195, .3); }
.orb::after { width: 13px; height: 13px; top: 36px; left: 36px; background: #baf1d7; box-shadow: 0 0 34px 8px rgba(94, 224, 170, .24); }
.orb span { background: #c7f4df; }
.eyebrow { margin-bottom: 18px; color: #8ed7b7; letter-spacing: .25em; }
.welcome h1 {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .16em;
  max-width: none;
  font: 900 clamp(52px, 7.4vw, 94px)/.98 var(--display);
  letter-spacing: .03em;
  text-shadow: 0 18px 55px rgba(0, 0, 0, .32);
}
.welcome h1 span { color: #f4f0e5; }
.welcome h1 em {
  display: inline;
  color: #9de6c3;
  -webkit-text-stroke: 0;
  text-shadow: 0 0 46px rgba(111, 220, 172, .18);
}
.welcome-copy { margin: 24px 0 34px; color: #9aa8a3; font-size: 14px; letter-spacing: .04em; }
.starter-grid { width: min(760px, 100%); gap: 12px; }
.starter {
  min-height: 62px;
  padding: 15px 18px;
  border-color: rgba(198, 226, 214, .14);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(18, 37, 33, .67), rgba(10, 24, 22, .45));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 14px 35px rgba(0,0,0,.09);
  backdrop-filter: blur(12px);
}
.starter::before { content: "↗"; color: #9de6c3; }
.starter:hover { border-color: rgba(157, 230, 195, .42); background: rgba(33, 69, 58, .56); transform: translateY(-3px); }

.messages { width: min(980px, calc(100% - 56px)); padding: 46px 0 72px; }
.message { grid-template-columns: 42px minmax(0, 1fr); gap: 16px; margin-bottom: 34px; }
.message.user { margin-left: 10%; }
.message-avatar { border-color: rgba(157, 230, 195, .22); border-radius: 12px; background: rgba(11, 27, 23, .52); }
.message.user .message-avatar { background: rgba(226, 231, 221, .1); color: #e6e8e1; }
.message-head { margin-bottom: 10px; }
.message-body { color: #dbe1dc; line-height: 1.82; }
.message.error .message-body { padding: 13px 15px; border: 1px solid rgba(255, 145, 111, .32); border-radius: 12px; background: rgba(105, 37, 29, .22); color: #ffd4c6; }
.generated-image { width: min(100%, 720px); margin: 14px 0 4px; overflow: hidden; border: 1px solid rgba(191, 232, 215, .2); border-radius: 18px; background: rgba(5, 20, 17, .48); box-shadow: 0 22px 70px rgba(2, 17, 14, .24); }
.generated-image > a { display: block; }
.generated-image img { display: block; width: 100%; height: auto; max-height: 680px; object-fit: contain; background: rgba(3, 12, 10, .58); }
.generated-image figcaption { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 14px; color: rgba(226, 238, 232, .7); font: 10px var(--mono); }
.generated-image figcaption a { flex: 0 0 auto; color: #b8f0d5; text-decoration: none; }
.generation-status { display: inline-flex; align-items: center; gap: 11px; padding: 12px 15px; border: 1px solid rgba(157, 230, 195, .2); border-radius: 13px; background: rgba(16, 50, 43, .42); color: #d9ebe2; }
.generation-spinner { width: 17px; height: 17px; border: 2px solid rgba(184, 240, 213, .2); border-top-color: #b8f0d5; border-radius: 50%; animation: generation-spin .85s linear infinite; }
@keyframes generation-spin { to { transform: rotate(360deg); } }
.composer.image-mode { border-color: rgba(157, 230, 195, .44); box-shadow: 0 0 0 3px rgba(157, 230, 195, .045), 0 24px 80px rgba(0,0,0,.3); }

/* Dream-pop girl group stage — atmospheric enough to stay behind the work UI. */
.dance-stage {
  position: absolute;
  inset: 82px 0 0 264px;
  overflow: hidden;
  opacity: .72;
  isolation: isolate;
  mask-image: linear-gradient(to bottom, transparent 0, #000 13%, #000 84%, transparent 100%);
}

.dance-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 76%, rgba(255, 207, 225, .15), transparent 21%),
    repeating-linear-gradient(90deg, transparent 0 8vw, rgba(204, 250, 233, .025) 8vw 8.1vw);
  animation: stage-pulse 3.2s ease-in-out infinite;
}

.stage-beam {
  position: absolute;
  top: -18%;
  width: 18%;
  height: 94%;
  transform-origin: 50% 0;
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  filter: blur(16px);
  mix-blend-mode: screen;
}
.beam-one { left: 18%; background: linear-gradient(to bottom, rgba(132, 241, 208, .28), transparent 88%); animation: beam-sweep-left 9s ease-in-out infinite alternate; }
.beam-two { left: 43%; background: linear-gradient(to bottom, rgba(255, 182, 215, .25), transparent 88%); animation: beam-sweep-center 7s ease-in-out infinite alternate; }
.beam-three { right: 14%; background: linear-gradient(to bottom, rgba(134, 195, 255, .25), transparent 88%); animation: beam-sweep-right 10s ease-in-out infinite alternate; }

.stage-glow {
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: 72%;
  height: 42%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 187, 217, .18), rgba(103, 224, 190, .09) 40%, transparent 70%);
  filter: blur(34px);
  animation: stage-glow 4s ease-in-out infinite alternate;
}

.dance-floor {
  position: absolute;
  left: 50%;
  bottom: 5.5%;
  width: 72%;
  height: 17%;
  transform: translateX(-50%) perspective(220px) rotateX(66deg);
  border: 1px solid rgba(220, 249, 239, .18);
  border-radius: 50%;
  background: repeating-radial-gradient(ellipse, transparent 0 13%, rgba(216, 251, 239, .08) 14% 14.5%, transparent 15% 23%);
  box-shadow: 0 0 55px rgba(120, 225, 190, .14), inset 0 0 44px rgba(255, 191, 220, .09);
  animation: floor-beat 1.6s ease-in-out infinite;
}

.girl-group { position: absolute; inset: 0; }
.dancer {
  --scale: 1;
  --tone: rgba(227, 255, 245, .68);
  position: absolute;
  left: var(--x);
  bottom: 12%;
  width: 74px;
  height: 238px;
  transform: translateX(-50%) scale(var(--scale));
  transform-origin: 50% 100%;
  filter: drop-shadow(0 0 14px rgba(172, 243, 218, .26));
  animation: dancer-groove 2.1s cubic-bezier(.46, 0, .54, 1) infinite;
  animation-delay: var(--delay);
}
.dancer i { position: absolute; display: block; background: var(--tone); }
.dancer .hair { z-index: 1; top: 2px; left: 21px; width: 34px; height: 45px; border-radius: 52% 48% 42% 42%; background: rgba(18, 49, 44, .88); box-shadow: 0 0 13px color-mix(in srgb, var(--tone), transparent 55%); }
.dancer .head { z-index: 2; top: 8px; left: 25px; width: 27px; height: 30px; border-radius: 48% 48% 52% 52%; }
.dancer .neck { z-index: 1; top: 34px; left: 33px; width: 11px; height: 14px; border-radius: 5px; }
.dancer .torso { z-index: 2; top: 43px; left: 20px; width: 37px; height: 70px; border-radius: 14px 14px 9px 9px; clip-path: polygon(18% 0, 82% 0, 100% 88%, 67% 100%, 33% 100%, 0 88%); }
.dancer .skirt { z-index: 3; top: 101px; left: 12px; width: 53px; height: 42px; clip-path: polygon(25% 0, 75% 0, 100% 100%, 0 100%); background: color-mix(in srgb, var(--tone), rgba(255, 180, 215, .72) 34%); }
.dancer .arm { z-index: 1; top: 51px; width: 12px; height: 82px; border-radius: 8px; transform-origin: 50% 8px; animation: arm-wave 2.1s ease-in-out infinite; animation-delay: var(--delay); }
.dancer .arm::after { content: ""; position: absolute; left: 2px; bottom: -9px; width: 8px; height: 14px; border-radius: 50%; background: var(--tone); }
.dancer .arm-left { left: 15px; transform: rotate(24deg); }
.dancer .arm-right { right: 15px; transform: rotate(-24deg); animation-name: arm-wave-right; }
.dancer .leg { z-index: 1; top: 136px; width: 14px; height: 96px; border-radius: 9px; transform-origin: 50% 5px; animation: leg-step 2.1s ease-in-out infinite; animation-delay: var(--delay); }
.dancer .leg::after { content: ""; position: absolute; bottom: -3px; width: 24px; height: 9px; border-radius: 9px; background: var(--tone); }
.dancer .leg-left { left: 20px; transform: rotate(5deg); }
.dancer .leg-left::after { right: 1px; }
.dancer .leg-right { right: 20px; transform: rotate(-5deg); animation-name: leg-step-right; }
.dancer .leg-right::after { left: 1px; }

.dancer-one { --x: 22%; --scale: .78; --delay: -.35s; --tone: rgba(171, 237, 227, .61); }
.dancer-two { --x: 36%; --scale: .94; --delay: -.72s; --tone: rgba(216, 231, 255, .65); }
.dancer-three { --x: 50%; --scale: 1.08; --delay: -1.05s; --tone: rgba(255, 221, 236, .72); }
.dancer-four { --x: 64%; --scale: .94; --delay: -1.4s; --tone: rgba(225, 245, 225, .65); }
.dancer-five { --x: 78%; --scale: .78; --delay: -1.75s; --tone: rgba(180, 222, 248, .61); }
.dancer-two, .dancer-four { animation-name: dancer-groove-alt; }

@keyframes dancer-groove {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(var(--scale)) rotate(-2deg); }
  25% { transform: translateX(-50%) translateY(-13px) scale(var(--scale)) rotate(3deg); }
  50% { transform: translateX(-50%) translateY(-2px) scale(var(--scale)) rotate(0); }
  75% { transform: translateX(-50%) translateY(-10px) scale(var(--scale)) rotate(-3deg); }
}
@keyframes dancer-groove-alt {
  0%, 100% { transform: translateX(-50%) translateY(-7px) scale(var(--scale)) rotate(3deg); }
  25% { transform: translateX(-50%) translateY(0) scale(var(--scale)) rotate(-2deg); }
  50% { transform: translateX(-50%) translateY(-12px) scale(var(--scale)) rotate(2deg); }
  75% { transform: translateX(-50%) translateY(-1px) scale(var(--scale)) rotate(-3deg); }
}
@keyframes arm-wave { 0%, 100% { transform: rotate(30deg); } 30% { transform: rotate(112deg); } 60% { transform: rotate(-18deg); } 82% { transform: rotate(62deg); } }
@keyframes arm-wave-right { 0%, 100% { transform: rotate(-30deg); } 30% { transform: rotate(-108deg); } 60% { transform: rotate(20deg); } 82% { transform: rotate(-68deg); } }
@keyframes leg-step { 0%, 100% { transform: rotate(4deg); } 35% { transform: rotate(17deg); } 70% { transform: rotate(-9deg); } }
@keyframes leg-step-right { 0%, 100% { transform: rotate(-4deg); } 35% { transform: rotate(-18deg); } 70% { transform: rotate(10deg); } }
@keyframes stage-pulse { 0%, 100% { opacity: .62; } 50% { opacity: 1; } }
@keyframes stage-glow { from { transform: translateX(-50%) scale(.9); opacity: .58; } to { transform: translateX(-50%) scale(1.12); opacity: 1; } }
@keyframes floor-beat { 0%, 100% { opacity: .42; } 50% { opacity: .88; } }
@keyframes beam-sweep-left { from { transform: rotate(-18deg); } to { transform: rotate(17deg); } }
@keyframes beam-sweep-center { from { transform: rotate(10deg); } to { transform: rotate(-12deg); } }
@keyframes beam-sweep-right { from { transform: rotate(16deg); } to { transform: rotate(-19deg); } }

@media (max-width: 760px) {
  .dance-stage { inset: 72px 0 0; opacity: .54; }
  .dancer { bottom: 16%; }
  .dancer-one, .dancer-five { display: none; }
  .dancer-two { --x: 27%; --scale: .72; }
  .dancer-three { --x: 50%; --scale: .86; }
  .dancer-four { --x: 73%; --scale: .72; }
}

@media (prefers-reduced-motion: reduce) {
  .dance-stage *, .dance-stage::before { animation: none !important; }
}
.message.user .message-body {
  padding: 15px 18px;
  border-color: rgba(198, 226, 214, .13);
  border-radius: 14px;
  background: rgba(18, 33, 30, .64);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 14px 42px rgba(0,0,0,.09);
  backdrop-filter: blur(14px);
}
.message-body pre { border-color: rgba(198, 226, 214, .13); border-radius: 12px; background: rgba(3, 10, 9, .72); }

.composer-wrap { width: min(980px, calc(100% - 56px)); padding-bottom: 17px; }
.composer {
  min-height: 74px;
  padding: 11px;
  border-color: rgba(198, 226, 214, .2);
  border-radius: 18px;
  background: rgba(12, 26, 23, .78);
  box-shadow: 0 24px 80px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.035);
  backdrop-filter: blur(24px) saturate(135%);
}
.composer:focus-within { border-color: rgba(157, 230, 195, .55); box-shadow: 0 0 0 3px rgba(157, 230, 195, .055), 0 24px 80px rgba(0,0,0,.3); }
.attach-button { border-radius: 11px; }
.send-button {
  border-radius: 12px;
  background: linear-gradient(145deg, #b9f1d7, #7bd1ad);
  box-shadow: 0 10px 26px rgba(64, 188, 137, .23);
}
.send-button:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(64, 188, 137, .3); }
.disclaimer { color: #5e706a; }

.drawer {
  border-color: var(--line);
  background: rgba(8, 19, 17, .94);
  backdrop-filter: blur(28px);
}
.drawer-head, .agent-rail, .provider-list, .form-actions { border-color: var(--line); }
.rail-item { border-radius: 10px; }
.rail-item.active { border-left-color: transparent; background: rgba(157, 230, 195, .12); }
.settings-form input:not([type="range"]):not([type="checkbox"]), .settings-form textarea, .settings-form select { border-color: var(--line); border-radius: 10px; background: rgba(5, 13, 12, .72); }
.agent-capability { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 11px; padding: 12px 13px; border: 1px solid rgba(157, 230, 195, .18); border-radius: 10px; background: rgba(157, 230, 195, .055); }
.agent-capability input { width: 17px; height: 17px; margin-top: 2px; accent-color: #91dfbd; }
.agent-capability strong, .agent-capability small { display: block; }
.agent-capability strong { color: #deeee6; font-size: 13px; }
.agent-capability small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.primary-button, .secondary-button, .danger-text { border-radius: 10px; }
.primary-button { background: linear-gradient(145deg, #b9f1d7, #7bd1ad); color: #092018; }
.toast { border-radius: 12px; background: rgba(18, 36, 32, .94); backdrop-filter: blur(18px); }

@media (max-width: 760px) {
  html, body { width: 100%; max-width: 100vw; overflow-x: hidden; }
  .app-shell { grid-template-columns: 1fr; }
  .topbar { height: 72px; padding: 0 10px; }
  .main-stage { grid-template-rows: 72px minmax(0, 1fr) auto; }
  .agent-chip { width: 44px; min-width: 44px; padding: 4px; }
  .agent-chip > span:nth-child(2), .agent-chip b { display: none; }
  .model-control { min-width: 0; flex: 1; }
  .model-control select { width: 92px; min-width: 0; }
  .model-control input { width: 100%; min-width: 0; }
  .welcome { width: 100%; padding: 32px 18px 38px; }
  .welcome h1 { font-size: clamp(48px, 16vw, 68px); }
  .welcome-copy { margin-bottom: 26px; }
  .starter-grid { gap: 9px; }
  .messages, .composer-wrap { width: calc(100% - 20px); }
  .message { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; }
  .message.user { margin-left: 0; }
  .composer-wrap { padding-bottom: 9px; }
  .composer { border-radius: 15px; }
  .aurora-one { width: 90vw; height: 90vw; }
  .aurora-two { width: 80vw; height: 80vw; }
}

@media (max-width: 420px) {
  .topbar { gap: 6px; padding-inline: 8px; }
  .topbar > .icon-button:last-child { display: none; }
  .model-control select { width: 86px; }
}

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

/* Brighter moving landscape canvas */
:root { --bg: #173f39; }

body {
  background-color: #173f39;
  background-image:
    radial-gradient(circle at 16% 12%, rgba(116, 207, 169, .58), transparent 30%),
    radial-gradient(circle at 84% 20%, rgba(84, 157, 174, .48), transparent 34%),
    radial-gradient(circle at 72% 86%, rgba(191, 133, 91, .43), transparent 34%),
    radial-gradient(circle at 20% 82%, rgba(75, 139, 112, .5), transparent 33%),
    linear-gradient(125deg, #17473e 0%, #285b65 31%, #526854 56%, #76533f 79%, #20594f 100%);
  background-size: 120% 120%, 125% 125%, 130% 130%, 125% 125%, 260% 260%;
  animation: canvas-color-drift 24s ease-in-out infinite alternate;
}

@keyframes canvas-color-drift {
  0% { background-position: 0% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 45%; }
  50% { background-position: 12% 8%, 88% 16%, 82% 90%, 14% 78%, 55% 55%; }
  100% { background-position: 20% 16%, 76% 8%, 68% 82%, 5% 68%, 100% 48%; }
}

.ambient-background {
  background:
    linear-gradient(112deg, rgba(19, 76, 66, .22), rgba(45, 90, 105, .18) 38%, rgba(132, 94, 68, .2) 72%, rgba(31, 98, 80, .2));
}

.ambient-background::before,
.ambient-background::after {
  content: "";
  position: absolute;
  width: 80vw;
  height: 80vw;
  border-radius: 38% 62% 58% 42% / 44% 42% 58% 56%;
  filter: blur(55px);
  opacity: .38;
  will-change: transform;
}

.ambient-background::before {
  left: -24vw;
  top: -42vw;
  background: conic-gradient(from 30deg, rgba(111, 224, 176, .62), rgba(66, 147, 170, .48), rgba(226, 163, 105, .38), rgba(111, 224, 176, .62));
  animation: silk-turn 34s linear infinite;
}

.ambient-background::after {
  right: -32vw;
  bottom: -48vw;
  background: conic-gradient(from 180deg, rgba(226, 154, 103, .5), rgba(66, 155, 145, .56), rgba(84, 132, 170, .46), rgba(226, 154, 103, .5));
  animation: silk-turn-reverse 42s linear infinite;
}

@keyframes silk-turn {
  to { transform: rotate(360deg) scale(1.08); }
}

@keyframes silk-turn-reverse {
  to { transform: rotate(-360deg) scale(.9); }
}

.aurora { filter: blur(72px); opacity: .42; mix-blend-mode: screen; }
.aurora-one { background: #50c998; }
.aurora-two { background: #4396a5; opacity: .38; }
.aurora-three { background: #d09363; opacity: .32; }

body::after { opacity: .4; }
.sidebar { background: rgba(10, 38, 33, .56); }
.topbar { background: rgba(14, 45, 40, .48); }
.model-control { background: rgba(15, 43, 39, .58); }
.composer { background: rgba(14, 39, 35, .76); }
.message.user .message-body { background: rgba(22, 52, 47, .68); }
.starter { background: linear-gradient(135deg, rgba(31, 71, 62, .7), rgba(31, 59, 62, .54)); }

/* Rotating Bagua emblem */
.orb.bagua {
  position: relative;
  width: 132px;
  height: 132px;
  margin-bottom: 24px;
  border: 1px solid rgba(221, 244, 231, .26);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(223, 248, 236, .11) 0 27%, transparent 28%),
    radial-gradient(circle at center, transparent 0 42%, rgba(157, 230, 195, .13) 43% 44%, transparent 45%);
  box-shadow:
    0 0 60px rgba(93, 222, 169, .18),
    inset 0 0 32px rgba(210, 244, 229, .06);
  animation: bagua-breathe 5s ease-in-out infinite;
}

.orb.bagua::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(224, 246, 235, .22);
  border-radius: 50%;
}

.orb.bagua::after {
  content: "";
  position: absolute;
  inset: 19px;
  width: auto;
  height: auto;
  top: 19px;
  left: 19px;
  border: 1px solid rgba(157, 230, 195, .2);
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

.bagua-ring {
  position: absolute;
  inset: 0;
  animation: bagua-turn 22s linear infinite;
}

.bagua-ring::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: repeating-conic-gradient(from 22.5deg, rgba(217, 244, 231, .24) 0deg 1deg, transparent 1deg 44deg);
  mask: radial-gradient(circle, transparent 0 61%, #000 62% 64%, transparent 65%);
}

.trigram {
  position: absolute;
  z-index: 2;
  color: rgba(235, 248, 239, .86);
  font: 400 17px/1 "Noto Serif SC", serif;
  text-shadow: 0 0 13px rgba(157, 230, 195, .45);
}
.trigram.t1 { top: 5px; left: 50%; transform: translateX(-50%); }
.trigram.t2 { top: 20px; right: 17px; transform: rotate(45deg); }
.trigram.t3 { top: 50%; right: 4px; transform: translateY(-50%) rotate(90deg); }
.trigram.t4 { right: 17px; bottom: 20px; transform: rotate(135deg); }
.trigram.t5 { bottom: 5px; left: 50%; transform: translateX(-50%) rotate(180deg); }
.trigram.t6 { bottom: 20px; left: 17px; transform: rotate(225deg); }
.trigram.t7 { top: 50%; left: 4px; transform: translateY(-50%) rotate(270deg); }
.trigram.t8 { top: 20px; left: 17px; transform: rotate(315deg); }

.orb.bagua .yin-yang {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: transparent;
  color: #c4f3dc;
  font: 400 42px/1 serif;
  text-shadow: 0 0 23px rgba(102, 232, 176, .48);
  animation: taiji-turn 15s linear infinite reverse;
}

@keyframes bagua-turn { to { transform: rotate(360deg); } }
@keyframes taiji-turn { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes bagua-breathe {
  0%, 100% { filter: brightness(.92); box-shadow: 0 0 50px rgba(93, 222, 169, .14), inset 0 0 32px rgba(210, 244, 229, .05); }
  50% { filter: brightness(1.12); box-shadow: 0 0 75px rgba(93, 222, 169, .26), inset 0 0 38px rgba(210, 244, 229, .09); }
}

@media (max-width: 760px) {
  .orb.bagua { width: 112px; height: 112px; margin-bottom: 20px; }
  .trigram { font-size: 14px; }
  .trigram.t2 { top: 17px; right: 14px; }
  .trigram.t4 { right: 14px; bottom: 17px; }
  .trigram.t6 { bottom: 17px; left: 14px; }
  .trigram.t8 { top: 17px; left: 14px; }
  .orb.bagua .yin-yang { font-size: 36px; }
}

/* Enlarged Bagua focal point */
.orb.bagua { width: 198px; height: 198px; margin-bottom: 20px; }
.orb.bagua::after { inset: 29px; top: 29px; left: 29px; }
.trigram { font-size: 24px; }
.trigram.t1 { top: 9px; }
.trigram.t2 { top: 29px; right: 25px; }
.trigram.t3 { right: 8px; }
.trigram.t4 { right: 25px; bottom: 29px; }
.trigram.t5 { bottom: 9px; }
.trigram.t6 { bottom: 29px; left: 25px; }
.trigram.t7 { left: 8px; }
.trigram.t8 { top: 29px; left: 25px; }
.orb.bagua .yin-yang { font-size: 64px; }

@media (max-width: 760px) {
  .orb.bagua { width: 168px; height: 168px; margin-bottom: 18px; }
  .orb.bagua::after { inset: 25px; top: 25px; left: 25px; }
  .trigram { font-size: 20px; }
  .trigram.t1 { top: 8px; }
  .trigram.t2 { top: 25px; right: 21px; }
  .trigram.t3 { right: 7px; }
  .trigram.t4 { right: 21px; bottom: 25px; }
  .trigram.t5 { bottom: 8px; }
  .trigram.t6 { bottom: 25px; left: 21px; }
  .trigram.t7 { left: 7px; }
  .trigram.t8 { top: 25px; left: 21px; }
  .orb.bagua .yin-yang { font-size: 54px; }
}

.welcome-copy { margin-bottom: 0; }

/* Cinematic generated background — no figures, quiet center, luminous edges. */
.ambient-background {
  background-image:
    radial-gradient(ellipse at 52% 38%, rgba(4, 16, 18, .18) 0 22%, rgba(5, 19, 20, .38) 54%, rgba(4, 14, 14, .62) 100%),
    linear-gradient(90deg, rgba(6, 31, 27, .26), transparent 28%, transparent 70%, rgba(5, 25, 27, .25)),
    url("/assets/chunqiu-future-bg.png");
  background-size: cover;
  background-position: center 50%;
  animation: cinematic-background-drift 20s ease-in-out infinite alternate;
}

.ambient-background::before {
  inset: -12%;
  width: auto;
  height: auto;
  border-radius: 0;
  background:
    radial-gradient(circle at 16% 35%, rgba(42, 244, 193, .16), transparent 25%),
    radial-gradient(circle at 88% 24%, rgba(255, 205, 136, .12), transparent 23%);
  filter: blur(24px);
  opacity: .74;
  animation: cinematic-light-drift 13s ease-in-out infinite alternate;
}

.ambient-background::after {
  right: auto;
  bottom: auto;
  left: -35%;
  top: -60%;
  width: 42%;
  height: 220%;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(213, 255, 239, .08), transparent);
  filter: blur(18px);
  opacity: .6;
  transform: rotate(18deg);
  animation: cinematic-sheen 15s ease-in-out infinite;
}

.aurora { opacity: .12; filter: blur(105px); }
.light-thread { opacity: .09; }

@keyframes cinematic-background-drift {
  0% { background-position: center 47%; }
  100% { background-position: center 53%; }
}

@keyframes cinematic-light-drift {
  from { transform: translate3d(-2%, -1%, 0) scale(.96); }
  to { transform: translate3d(3%, 2%, 0) scale(1.05); }
}

@keyframes cinematic-sheen {
  0%, 16% { transform: translateX(0) rotate(18deg); opacity: 0; }
  42% { opacity: .62; }
  72%, 100% { transform: translateX(330%) rotate(18deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-background, .ambient-background::before, .ambient-background::after { animation: none !important; }
}

/* Permanent brand lockup: large, centered and intentionally non-interactive. */
.welcome h1#fixedBrandTitle {
  flex: 0 0 auto;
  width: max-content;
  max-width: 100%;
  font-size: clamp(82px, 9.2vw, 138px);
  line-height: .94;
  white-space: nowrap;
  cursor: default;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

.welcome h1#fixedBrandTitle span,
.welcome h1#fixedBrandTitle em {
  user-select: none;
  -webkit-user-select: none;
}

/* Cloud member edition */
.account-control { display: flex; align-items: center; gap: 10px; }
.credit-balance { min-width: 84px; padding: 5px 10px; border: 1px solid rgba(157,230,195,.18); border-radius: 9px; background: rgba(8,31,27,.5); text-align: right; }
.credit-balance small { display: block; color: #77968a; font: 8px var(--mono); letter-spacing: .08em; }
.credit-balance strong { color: #b8f3d8; font: 600 13px var(--mono); }
.account-name { max-width: 110px; overflow: hidden; color: #c9dbd3; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.agent-lock-banner { display:flex; align-items:center; gap:11px; margin-bottom:18px; padding:12px 13px; border:1px solid rgba(157,230,195,.2); border-radius:10px; color:#c9eadd; background:rgba(75,155,123,.1); }
.agent-lock-banner > span { color:#9de6c3; }
.agent-lock-banner strong,.agent-lock-banner small { display:block; }
.agent-lock-banner strong { font-size:12px; }
.agent-lock-banner small { margin-top:3px; color:#78988b; font-size:9px; }
.settings-form input:disabled,.settings-form textarea:disabled { color:#99aaa3; opacity:.72; cursor:not-allowed; }
.rail-item small { white-space:nowrap; }
.expired-file { color:#d6a27f; border-color:rgba(242,167,127,.22); background:rgba(81,45,35,.28); }

.auth-page, .admin-page { min-height: 100%; overflow: auto; background: #071210; }
.auth-shell { position:relative; z-index:1; min-height:100vh; display:grid; grid-template-columns:minmax(0,1.25fr) minmax(400px,.75fr); }
.auth-story { position:relative; display:flex; flex-direction:column; justify-content:center; min-width:0; padding:clamp(42px,7vw,110px); }
.auth-story::after { content:""; position:absolute; top:12%; right:4%; width:1px; height:76%; background:linear-gradient(transparent,rgba(157,230,195,.3),transparent); }
.auth-bagua { width:94px; height:94px; display:grid; place-items:center; margin-bottom:28px; border:1px solid rgba(157,230,195,.3); border-radius:50%; box-shadow:0 0 60px rgba(70,229,173,.16); animation:bagua-turn 18s linear infinite; }
.auth-bagua::before { content:""; position:absolute; width:70px; height:70px; border:1px dashed rgba(157,230,195,.25); border-radius:50%; }
.auth-bagua span { color:#c7f6df; font-size:52px; line-height:1; }
.auth-story h1 { margin:0; font:900 clamp(64px,8vw,126px)/.88 var(--display); letter-spacing:-.08em; }
.auth-story h1 span,.auth-story h1 em { display:block; }
.auth-story h1 em { margin-left:.42em; color:#9de6c3; font-style:normal; text-shadow:0 0 60px rgba(85,233,176,.22); }
.auth-story .auth-copy { max-width:590px; margin:28px 0 20px; color:#b0c6bd; font-size:14px; line-height:1.85; }
.auth-points { display:flex; flex-wrap:wrap; gap:8px; }
.auth-points span { padding:7px 10px; border:1px solid rgba(157,230,195,.16); border-radius:999px; color:#89aa9e; background:rgba(5,25,21,.46); font:9px var(--mono); letter-spacing:.08em; }
.auth-visual { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: clamp(34px,6vw,82px); overflow: hidden; background: radial-gradient(circle at 20% 22%, rgba(88,230,178,.28), transparent 26%), radial-gradient(circle at 82% 78%, rgba(226,165,104,.2), transparent 31%), linear-gradient(145deg,#0a2924,#0a1616 68%,#18221e); }
.auth-visual::before { content:""; position:absolute; inset:-20%; opacity:.38; background: repeating-radial-gradient(ellipse at 20% 80%, transparent 0 44px, rgba(172,238,210,.1) 45px 46px); transform: rotate(-14deg); }
.auth-brand, .auth-copy { position:relative; z-index:1; }
.auth-brand { color:#dff8ed; font:700 22px var(--display); letter-spacing:.14em; }
.auth-brand small { display:block; margin-top:7px; color:#7ea797; font:9px var(--mono); letter-spacing:.18em; }
.auth-copy h1 { max-width:720px; margin:0; font:800 clamp(54px,8vw,118px)/.93 var(--display); letter-spacing:-.08em; }
.auth-copy h1 em { color:#9de6c3; font-style:normal; }
.auth-copy p { max-width:520px; color:#a6bdb4; line-height:1.8; }
.auth-panel { display:grid; place-items:center; padding:28px; background:rgba(4,15,13,.94); }
.auth-card { align-self:center; justify-self:center; width:min(420px,calc(100% - 48px)); padding:34px; border:1px solid rgba(157,230,195,.17); border-radius:22px; background:rgba(7,24,20,.86); box-shadow:0 35px 90px rgba(0,0,0,.3); backdrop-filter:blur(24px); }
.auth-card-head small { color:#79b89e; font:9px var(--mono); letter-spacing:.15em; }
.auth-card-head p { margin:5px 0 24px; color:#779188; font-size:12px; }
.auth-card h2 { margin:0 0 8px; font:700 30px var(--display); }
.auth-card > p { margin:0 0 26px; color:#779188; font-size:12px; }
.auth-tabs { display:grid; grid-template-columns:1fr 1fr; gap:6px; margin-bottom:22px; padding:4px; border-radius:10px; background:#071613; }
.auth-tabs button { min-height:38px; border:0; border-radius:7px; color:#789087; background:transparent; }
.auth-tabs button.active { color:#092019; background:#9de6c3; font-weight:700; }
.auth-form label { display:block; margin-bottom:15px; color:#8da79d; font-size:11px; }
.auth-form input { width:100%; margin-top:7px; padding:13px 14px; border:1px solid rgba(157,230,195,.17); border-radius:9px; outline:0; background:#071411; }
.auth-form input:focus { border-color:#75d4ad; box-shadow:0 0 0 3px rgba(117,212,173,.08); }
.auth-submit { width:100%; min-height:48px; margin-top:8px; border:0; border-radius:10px; color:#082018; background:#9de6c3; font-weight:800; }
.auth-message { min-height:20px; margin-top:14px; color:#f2a77f; font-size:11px; }
.setup-link { width:100%; margin-top:14px; border:0; color:#7f9f93; background:transparent; font-size:10px; }
.setup-link:hover { color:#b7ead5; }
.auth-error { min-height:18px; margin:12px 0 0; color:#f2a77f; font-size:11px; }

.admin-shell { position:relative; z-index:1; width:min(1180px,calc(100% - 36px)); margin:0 auto; padding:30px 0 70px; }
.admin-header { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:26px; }
.admin-header small,.admin-card-title small { color:#79b89e; font:9px var(--mono); letter-spacing:.14em; }
.admin-header h1 { margin:5px 0 0; font:800 34px var(--display); }
.admin-header p { margin:6px 0 0; color:#789087; font-size:11px; }
.admin-metrics { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:18px; }
.admin-grid { display:grid; grid-template-columns:minmax(280px,.7fr) minmax(500px,1.3fr); gap:16px; }
.admin-card-title { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:15px; }
.admin-card-title h2 { margin:4px 0 0; font:700 19px var(--display); }
.admin-chip { padding:6px 9px; border-radius:999px; color:#9de6c3; background:rgba(89,210,163,.1); font-size:9px; }
.admin-form label { display:block; margin-bottom:14px; color:#789087; font-size:10px; }
.admin-form label > span { display:block; margin-bottom:7px; }
.admin-form input:not([type=checkbox]) { width:100%; padding:11px 12px; border:1px solid rgba(157,230,195,.16); border-radius:8px; outline:0; background:#071411; }
.price-preview { margin:6px 0 18px; padding:14px; border-radius:10px; background:rgba(157,230,195,.07); }
.price-preview span { display:block; color:#789087; font-size:9px; }
.price-preview strong { display:block; margin-top:5px; color:#bdf2da; font:700 22px var(--mono); }
.admin-page table { width:100%; border-collapse:collapse; font-size:12px; }
.admin-page th,.admin-page td { padding:12px 10px; border-bottom:1px solid rgba(157,230,195,.09); text-align:left; white-space:nowrap; }
.admin-page th { color:#6e8b80; font:9px var(--mono); letter-spacing:.08em; }
.admin-page td small { display:block; margin-top:3px; color:#61776f; font-size:9px; }
.credit-dialog { width:min(450px,calc(100% - 28px)); padding:0; border:1px solid rgba(157,230,195,.2); border-radius:18px; color:#e8f2ee; background:#0a1d19; }
.credit-dialog::backdrop { background:rgba(0,0,0,.68); backdrop-filter:blur(6px); }
.credit-dialog form { padding:24px; }
.admin-topbar { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:26px; }
.admin-topbar h1 { margin:0; font:800 34px var(--display); }
.admin-topbar p { margin:5px 0 0; color:#789087; font-size:11px; }
.admin-actions { display:flex; gap:9px; }
.admin-button { min-height:40px; padding:0 15px; border:1px solid rgba(157,230,195,.2); border-radius:9px; color:#cae8dc; background:rgba(12,35,30,.72); }
.admin-button.primary { border:0; color:#082018; background:#9de6c3; font-weight:800; }
.metric-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:18px; }
.metric-card, .admin-card { border:1px solid rgba(157,230,195,.14); border-radius:15px; background:rgba(10,29,25,.72); box-shadow:0 20px 60px rgba(0,0,0,.12); }
.metric-card { padding:18px; }
.metric-card small { color:#719084; font:9px var(--mono); }
.metric-card strong { display:block; margin-top:8px; font:700 25px var(--mono); }
.admin-card { margin-bottom:16px; padding:20px; }
.admin-card-head { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:15px; }
.admin-card h2 { margin:0; font:700 19px var(--display); }
.admin-table-wrap { overflow:auto; }
.admin-table { width:100%; border-collapse:collapse; font-size:12px; }
.admin-table th,.admin-table td { padding:12px 10px; border-bottom:1px solid rgba(157,230,195,.09); text-align:left; white-space:nowrap; }
.admin-table th { color:#6e8b80; font:9px var(--mono); letter-spacing:.08em; }
.admin-table td { color:#ccddd6; }
.admin-table button { padding:6px 9px; border:1px solid rgba(157,230,195,.2); border-radius:6px; background:transparent; }
.admin-search,.admin-field input,.admin-field select { padding:10px 12px; border:1px solid rgba(157,230,195,.16); border-radius:8px; outline:0; background:#071411; }
.pricing-form { display:grid; grid-template-columns:1fr 1fr 1fr auto; align-items:end; gap:12px; }
.admin-field { color:#789087; font-size:10px; }
.admin-field input,.admin-field select { width:100%; margin-top:6px; }
.admin-dialog { width:min(450px,calc(100% - 28px)); padding:0; border:1px solid rgba(157,230,195,.2); border-radius:18px; color:#e8f2ee; background:#0a1d19; }
.admin-dialog::backdrop { background:rgba(0,0,0,.68); backdrop-filter:blur(6px); }
.admin-dialog form { padding:24px; }
.admin-dialog h3 { margin:0 0 18px; font:700 23px var(--display); }
.dialog-actions { display:flex; justify-content:flex-end; gap:9px; margin-top:20px; }

@media (max-width: 820px) {
  .auth-shell { grid-template-columns:1fr; }
  .auth-story { min-height:38vh; padding:42px 25px 26px; }
  .auth-story::after { display:none; }
  .auth-story h1 { font-size:58px; }
  .auth-bagua { width:68px; height:68px; margin-bottom:18px; }
  .auth-bagua::before { width:50px; height:50px; }
  .auth-bagua span { font-size:38px; }
  .auth-card { margin:20px 0 38px; }
  .metric-grid { grid-template-columns:1fr 1fr; }
  .admin-metrics { grid-template-columns:1fr 1fr; }
  .admin-grid { grid-template-columns:1fr; }
  .pricing-form { grid-template-columns:1fr; }
  .account-name { display:none; }
  .credit-balance { min-width:64px; }
}

@media (max-width: 760px) {
  .welcome h1#fixedBrandTitle { font-size: clamp(62px, 19vw, 88px); }
}

/* Animated login wallpaper — jade aurora, orbital light and cinematic depth. */
.auth-page .ambient-background {
  inset:-4%;
  animation:auth-wallpaper-drift 24s cubic-bezier(.45,.05,.55,.95) infinite alternate;
  filter:saturate(1.08) contrast(1.04);
  will-change:transform,background-position;
}
.auth-page .ambient-background::before {
  background:
    radial-gradient(ellipse at 18% 30%,rgba(54,255,190,.24),transparent 27%),
    radial-gradient(ellipse at 82% 68%,rgba(255,196,115,.16),transparent 25%),
    conic-gradient(from 210deg at 46% 52%,transparent,rgba(130,255,216,.06),transparent 38%);
  animation:auth-aurora-breathe 10s ease-in-out infinite alternate;
}
.auth-page .ambient-background::after {
  left:-28%; top:-65%; width:36%; height:230%;
  opacity:.72;
  animation:auth-light-sweep 13s ease-in-out infinite;
}
.auth-motion { position:fixed; inset:0; z-index:0; overflow:hidden; pointer-events:none; }
.motion-veil { position:absolute; width:62vw; height:62vw; border-radius:43% 57% 64% 36%; filter:blur(70px); mix-blend-mode:screen; opacity:.12; will-change:transform; }
.veil-one { left:-18vw; top:-24vw; background:radial-gradient(circle at 65% 65%,#65ffd0,transparent 58%); animation:auth-veil-one 18s ease-in-out infinite alternate; }
.veil-two { right:-24vw; bottom:-35vw; background:radial-gradient(circle at 38% 32%,#ffc776,transparent 58%); animation:auth-veil-two 22s ease-in-out infinite alternate; }
.motion-orbit { position:absolute; left:5%; top:8%; width:70vw; height:70vw; border:1px solid rgba(174,239,214,.1); border-radius:50%; box-shadow:0 0 0 9vw rgba(157,230,195,.018),0 0 0 18vw rgba(157,230,195,.012); animation:auth-orbit-drift 34s linear infinite; }
.motion-stars { position:absolute; inset:0; opacity:.28; background-image:radial-gradient(circle,rgba(224,255,244,.85) 0 1px,transparent 1.6px); background-size:97px 97px; mask-image:linear-gradient(110deg,black,transparent 42%,black); animation:auth-stars-slide 30s linear infinite; }

.auth-bagua { position:relative; width:clamp(128px,10vw,164px); height:clamp(128px,10vw,164px); display:grid; place-items:center; margin-bottom:24px; border:0; border-radius:50%; box-shadow:0 0 80px rgba(70,229,173,.22); animation:auth-core-float 5s ease-in-out infinite; isolation:isolate; }
.auth-bagua::before,.auth-bagua::after,.auth-bagua i,.auth-bagua b { content:""; position:absolute; border-radius:50%; pointer-events:none; }
.auth-bagua::before { inset:-10px; border:1px solid rgba(181,250,222,.26); box-shadow:0 0 32px rgba(78,235,177,.18); animation:auth-ring-turn 16s linear infinite; }
.auth-bagua::after { inset:-22px; border:1px dashed rgba(244,214,157,.22); animation:auth-ring-turn 25s linear infinite reverse; }
.auth-bagua i { inset:-34px; border:1px solid rgba(157,230,195,.09); }
.auth-bagua b { width:7px; height:7px; top:-13px; left:50%; background:#f8dfaa; box-shadow:0 0 16px 5px rgba(248,223,170,.42); animation:auth-satellite 9s linear infinite; transform-origin:0 calc(50% + 77px); }
.auth-bagua img { width:100%; height:100%; display:block; border-radius:50%; object-fit:cover; user-select:none; filter:drop-shadow(0 0 20px rgba(94,240,186,.22)); animation:auth-core-turn 40s linear infinite; }
.auth-story .eyebrow { margin:12px 0 18px; font-size:11px; letter-spacing:.24em; text-shadow:0 0 18px rgba(157,230,195,.42); }
.auth-story .auth-copy { max-width:650px; margin:30px 0 24px; color:#d1e2dc; font-size:clamp(17px,1.22vw,20px); font-weight:500; line-height:1.9; text-shadow:0 2px 18px rgba(0,0,0,.52); }
.auth-points { gap:11px; }
.auth-points span { padding:9px 14px; border-color:rgba(157,230,195,.23); color:#b8d8cc; background:rgba(5,25,21,.58); font-size:11px; backdrop-filter:blur(8px); }
.auth-card { position:relative; overflow:hidden; animation:auth-card-arrive .85s cubic-bezier(.18,.84,.25,1) both,auth-card-glow 6s ease-in-out 1s infinite alternate; }
.auth-card::before { content:""; position:absolute; z-index:-1; top:-60%; left:-80%; width:38%; height:220%; background:linear-gradient(90deg,transparent,rgba(215,255,240,.12),transparent); filter:blur(10px); transform:rotate(18deg); animation:auth-card-sheen 8s ease-in-out 1.5s infinite; }
.auth-card::after { content:""; position:absolute; inset:0; z-index:-2; border-radius:inherit; background:linear-gradient(145deg,rgba(28,74,62,.62),rgba(4,20,17,.92) 48%,rgba(31,47,35,.78)); }

@keyframes auth-wallpaper-drift { from{transform:scale(1.04) translate3d(-1.5%,-.8%,0);background-position:48% 47%} to{transform:scale(1.1) translate3d(1.4%,1%,0);background-position:54% 53%} }
@keyframes auth-aurora-breathe { from{transform:translate3d(-2%,-2%,0) rotate(-3deg);opacity:.48} to{transform:translate3d(4%,3%,0) rotate(4deg);opacity:.86} }
@keyframes auth-light-sweep { 0%,12%{transform:translateX(-20%) rotate(18deg);opacity:0} 42%{opacity:.75} 78%,100%{transform:translateX(390%) rotate(18deg);opacity:0} }
@keyframes auth-veil-one { to{transform:translate3d(16vw,10vw,0) rotate(32deg) scale(1.12)} }
@keyframes auth-veil-two { to{transform:translate3d(-12vw,-8vw,0) rotate(-24deg) scale(.9)} }
@keyframes auth-orbit-drift { to{transform:rotate(360deg) scale(1.06)} }
@keyframes auth-stars-slide { to{background-position:194px 97px} }
@keyframes auth-core-float { 0%,100%{transform:translateY(0) scale(1)} 50%{transform:translateY(-9px) scale(1.025)} }
@keyframes auth-core-turn { to{transform:rotate(360deg)} }
@keyframes auth-ring-turn { to{transform:rotate(360deg)} }
@keyframes auth-satellite { to{transform:rotate(360deg)} }
@keyframes auth-card-arrive { from{opacity:0;transform:translate3d(35px,18px,0) scale(.97)} }
@keyframes auth-card-glow { to{box-shadow:0 38px 100px rgba(0,0,0,.38),0 0 45px rgba(93,231,177,.12)} }
@keyframes auth-card-sheen { 0%,18%{transform:translateX(0) rotate(18deg);opacity:0} 48%{opacity:1} 78%,100%{transform:translateX(560%) rotate(18deg);opacity:0} }

@media (max-width:820px) {
  .auth-bagua { width:104px; height:104px; margin:4px 0 14px; }
  .auth-bagua b { transform-origin:0 calc(50% + 53px); }
  .auth-story .auth-copy { margin:20px 0 16px; font-size:15px; line-height:1.75; }
  .auth-points span { padding:7px 10px; font-size:9px; }
  .motion-orbit { width:120vw; height:120vw; }
}

@media (prefers-reduced-motion:reduce) {
  .auth-page .ambient-background,.auth-page .ambient-background::before,.auth-page .ambient-background::after,.auth-motion *,.auth-bagua,.auth-bagua::before,.auth-bagua::after,.auth-bagua b,.auth-bagua img,.auth-card,.auth-card::before { animation:none!important; }
}
