:root {
  --ink: #0c100e;
  --ink-soft: #111713;
  --ink-raised: #171e1a;
  --paper: #f2f0e8;
  --paper-deep: #d9d6ca;
  --muted: #8b958f;
  --muted-dark: #657069;
  --line: rgba(235, 239, 231, 0.13);
  --line-dark: rgba(12, 16, 14, 0.12);
  --acid: #c8f36b;
  --acid-bright: #dcff8e;
  --coral: #ff795d;
  --teal: #73d7ca;
  --danger: #ff756e;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  --sans: "Avenir Next", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --header-h: 72px;
  --rail-w: 292px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--ink); }
body { margin: 0; min-height: 100%; color: var(--paper); background: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.drawer-open, body.modal-open { overflow: hidden; }
body::selection { color: var(--ink); background: var(--acid); }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; }

.skip-link { position: fixed; z-index: 1000; left: 16px; top: -80px; padding: 12px 18px; color: var(--ink); background: var(--acid); border-radius: 999px; transition: top .2s; }
.skip-link:focus { top: 16px; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.noise { position: fixed; z-index: 200; inset: 0; opacity: .032; pointer-events: none; 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='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E"); }
.brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; }
.brand-symbol { position: relative; flex: 0 0 auto; width: 38px; height: 38px; border: 1px solid rgba(200,243,107,.55); border-radius: 50%; transform: rotate(-16deg); }
.brand-symbol::before, .brand-symbol::after { content: ""; position: absolute; border: 2px solid var(--paper); border-top-color: transparent; border-radius: 50%; }
.brand-symbol::before { width: 13px; height: 20px; left: 6px; top: 5px; transform: rotate(23deg); }
.brand-symbol::after { width: 13px; height: 20px; right: 6px; bottom: 5px; transform: rotate(23deg); }
.brand-symbol i { position: absolute; width: 5px; height: 5px; right: -2px; top: 6px; background: var(--acid); border-radius: 50%; box-shadow: 0 0 12px var(--acid); }
.brand-name { display: grid; line-height: 1; }
.brand-name strong { font-family: var(--serif); font-size: 17px; letter-spacing: .18em; font-weight: 700; }
.brand-name small { margin-top: 5px; color: var(--muted); font-size: 8px; letter-spacing: .21em; }
.eyebrow, .section-index { color: var(--acid); font-size: 9px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow > span { width: 28px; height: 1px; background: var(--acid); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 26px; min-height: 56px; padding: 0 23px 0 28px; border: 1px solid transparent; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 700; transition: .25s ease; }
.button svg { width: 21px; height: 21px; transition: transform .25s ease; }
.button:hover svg { transform: translateX(3px); }
.button-primary { color: var(--ink); background: var(--acid); box-shadow: 0 15px 40px rgba(200,243,107,.12); }
.button-primary:hover { background: var(--acid-bright); box-shadow: 0 17px 48px rgba(200,243,107,.18); }

/* Login */
.login-view { min-height: 100svh; display: grid; grid-template-columns: minmax(0,1.08fr) minmax(430px,.92fr); background: radial-gradient(circle at 18% 78%, rgba(200,243,107,.08), transparent 30rem), var(--ink); }
.login-story { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: clamp(28px,4vw,62px); border-right: 1px solid var(--line); }
.login-story::after { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(circle at 65% 70%,black,transparent 62%); pointer-events: none; }
.story-copy { position: relative; z-index: 2; max-width: 750px; margin-top: 8vh; }
.story-copy .eyebrow { margin: 0 0 25px; }
.story-copy h1 { margin: 0; font-family: var(--serif); font-size: clamp(56px,6vw,96px); font-weight: 500; line-height: 1.04; letter-spacing: -.055em; }
.story-copy h1 em { color: var(--acid); font-weight: inherit; }
.story-copy > p:last-child { max-width: 620px; margin: 32px 0 0; color: #919b95; font-size: 14px; line-height: 2; }
.story-foot { position: relative; z-index: 3; margin: 0; color: #56605a; font-size: 9px; letter-spacing: .04em; }
.login-orbit { position: absolute; z-index: 1; right: clamp(-100px,-3vw,-30px); bottom: -60px; width: min(50vw,620px); aspect-ratio: 1; transform-style: preserve-3d; }
.orbit-ring { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(200,243,107,.18); border-radius: 50%; transform-style: preserve-3d; }
.orbit-a { width: 96%; height: 96%; transform: translate(-50%,-50%) rotateX(69deg) rotateZ(-17deg); animation: orbitA 24s linear infinite; }
.orbit-b { width: 68%; height: 68%; border-style: dashed; transform: translate(-50%,-50%) rotateX(68deg) rotateZ(27deg); animation: orbitB 18s linear infinite; }
.orbit-ring i { position: absolute; width: 7px; height: 7px; background: var(--acid); border-radius: 50%; box-shadow: 0 0 18px var(--acid); }
.orbit-a i { left: 7%; top: 24%; }.orbit-b i:first-child { right: 4%; top: 30%; background: var(--coral); box-shadow: 0 0 18px var(--coral); }.orbit-b i:last-child { left: 20%; bottom: 8%; width: 4px; height: 4px; background: var(--teal); box-shadow: 0 0 14px var(--teal); }
.login-mascot { position: absolute; left: 50%; top: 50%; width: 46%; transform: translate(-50%,-49%); filter: drop-shadow(0 25px 34px rgba(0,0,0,.35)); }
.orbit-label { position: absolute; color: #4e5952; font-size: 7px; letter-spacing: .18em; }.label-one { left: 8%; top: 40%; }.label-two { right: 4%; bottom: 34%; }
.login-panel { position: relative; display: flex; align-items: center; justify-content: center; padding: 60px clamp(28px,6vw,110px); background: linear-gradient(145deg,rgba(20,27,23,.7),rgba(11,15,13,.96)); }
.login-panel::before { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -90px; border: 1px solid rgba(200,243,107,.08); border-radius: 50%; box-shadow: 0 0 0 60px rgba(200,243,107,.012),0 0 0 120px rgba(200,243,107,.008); }
.login-card { position: relative; z-index: 2; width: min(100%,430px); animation: loginIn .7s cubic-bezier(.2,.75,.15,1) both; }
.login-card .section-index { margin: 0 0 24px; }
.login-card h2 { margin: 0; font-family: var(--serif); font-size: clamp(46px,4vw,64px); font-weight: 500; letter-spacing: -.05em; }
.login-intro { margin: 18px 0 38px; color: #7c8680; font-size: 13px; line-height: 1.8; }
.field { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.field > span { color: inherit; font-size: 10px; font-weight: 600; letter-spacing: .08em; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 0 14px; color: inherit; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 8px; outline: 0; transition: border-color .2s,background .2s,box-shadow .2s; }
.field textarea { padding-top: 13px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg,transparent 50%,#87918b 50%),linear-gradient(135deg,#87918b 50%,transparent 50%); background-position: calc(100% - 17px) 20px,calc(100% - 12px) 20px; background-size: 5px 5px; background-repeat: no-repeat; }
.field option { color: var(--paper); background: var(--ink-raised); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(200,243,107,.55); background: rgba(200,243,107,.025); box-shadow: 0 0 0 3px rgba(200,243,107,.06); }
.field input::placeholder, .field textarea::placeholder { color: #4f5953; }
.login-field { margin-top: 18px; }.login-field > span { color: #b3bab5; }
.login-field input { min-height: 58px; padding: 0 18px; font-size: 14px; background: rgba(255,255,255,.03); }
.password-wrap { position: relative; display: block; }
.password-wrap input { padding-right: 52px; }
.password-toggle { position: absolute; right: 8px; top: 50%; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; color: #657069; background: transparent; border: 0; border-radius: 50%; cursor: pointer; }
.password-toggle:hover { color: var(--acid); background: rgba(200,243,107,.05); }.password-toggle svg { width: 18px; height: 18px; }
.form-feedback { min-height: 20px; margin: 15px 0 6px; color: var(--danger); font-size: 11px; line-height: 1.6; }
.login-button { width: 100%; margin-top: 4px; border-radius: 9px; }
.login-assurance { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 20px; color: #58625c; font-size: 9px; }.login-assurance i { width: 5px; height: 5px; background: var(--acid); border-radius: 50%; box-shadow: 0 0 9px var(--acid); }
.back-home { position: absolute; left: 34px; bottom: 30px; display: flex; gap: 9px; color: #5c665f; font-size: 10px; transition: color .2s; }.back-home:hover { color: var(--acid); }

/* Application shell */
.app-view { min-height: 100svh; background: radial-gradient(circle at 75% 20%,rgba(200,243,107,.035),transparent 28rem),var(--ink); }
.app-header { position: fixed; z-index: 100; left: 0; right: 0; top: 0; height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 22px; background: rgba(12,16,14,.88); border-bottom: 1px solid var(--line); backdrop-filter: blur(20px); }
.header-left { display: flex; align-items: center; gap: 10px; }.compact-brand .brand-symbol { width: 34px; height: 34px; }.compact-brand .brand-name strong { font-size: 14px; }.compact-brand .brand-name small { font-size: 7px; }
.header-center { display: grid; grid-template-columns: 7px auto; align-items: center; gap: 1px 9px; line-height: 1; }.online-dot { grid-row: 1/3; width: 6px; height: 6px; background: var(--acid); border-radius: 50%; box-shadow: 0 0 10px var(--acid); }.header-center strong { font-family: var(--serif); font-size: 16px; letter-spacing: .06em; }.header-center small { color: #667069; font-size: 8px; letter-spacing: .12em; }
.header-actions { position: relative; justify-self: end; display: flex; align-items: center; gap: 9px; }
.header-button, .account-button, .icon-button { border: 0; cursor: pointer; }
.header-button { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 13px; color: #a0a8a2; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 8px; font-size: 10px; }.header-button:hover { color: var(--acid); border-color: rgba(200,243,107,.25); }.header-button svg { width: 16px; height: 16px; }
.account-button { display: grid; grid-template-columns: 32px auto 14px; align-items: center; gap: 9px; padding: 4px 8px 4px 4px; color: var(--paper); background: transparent; border-radius: 8px; text-align: left; }.account-button:hover { background: rgba(255,255,255,.04); }.account-avatar { width: 32px; height: 32px; display: grid; place-items: center; color: var(--ink); background: var(--acid); border-radius: 50%; font-size: 11px; font-weight: 800; }.account-copy { display: grid; min-width: 58px; }.account-copy strong { font-size: 10px; font-weight: 600; }.account-copy small { margin-top: 4px; color: #657069; font-size: 8px; }.account-button > svg { width: 14px; height: 14px; color: #59635d; }
.account-menu { position: absolute; z-index: 5; right: 0; top: 48px; width: 210px; overflow: hidden; background: rgba(23,30,26,.96); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 20px 55px rgba(0,0,0,.4); backdrop-filter: blur(18px); animation: menuIn .18s ease both; }.account-menu > div { display: grid; padding: 17px; border-bottom: 1px solid var(--line); }.account-menu strong { font-size: 12px; }.account-menu span { margin-top: 5px; color: #69736d; font-size: 9px; }.account-menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 13px 17px; color: #a6aea8; background: transparent; border: 0; cursor: pointer; text-align: left; font-size: 10px; }.account-menu button:hover { color: var(--coral); background: rgba(255,121,93,.04); }.account-menu svg { width: 16px; height: 16px; }
.mobile-menu-button { display: none; width: 38px; height: 38px; place-items: center; padding: 0; color: #aab2ac; background: transparent; border-radius: 8px; }.mobile-menu-button svg { width: 21px; height: 21px; }
.app-body { min-height: 100svh; padding-top: var(--header-h); }

/* Side rail */
.side-rail { position: fixed; z-index: 80; left: 0; top: var(--header-h); bottom: 0; width: var(--rail-w); display: flex; flex-direction: column; padding: 20px 16px 16px; background: #101512; border-right: 1px solid var(--line); }
.new-chat-button { position: relative; width: 100%; min-height: 68px; display: grid; grid-template-columns: 34px minmax(0,1fr) 18px; align-items: center; gap: 12px; padding: 10px 13px; overflow: hidden; color: #152017; background: linear-gradient(120deg,var(--acid),#dcff8d); border: 1px solid rgba(230,255,173,.7); border-radius: 12px; box-shadow: 0 13px 30px rgba(145,184,65,.12); cursor: pointer; text-align: left; transition: transform .2s,box-shadow .2s; }.new-chat-button::after { content: ""; position: absolute; width: 85px; height: 85px; right: -38px; top: -48px; background: rgba(255,255,255,.32); border-radius: 50%; }.new-chat-button:hover { transform: translateY(-2px); box-shadow: 0 17px 34px rgba(145,184,65,.2); }.new-chat-icon { width: 34px; height: 34px; display: grid; place-items: center; color: var(--acid); background: #172019; border-radius: 50%; }.new-chat-button svg { width: 15px; height: 15px; stroke-width: 2; }.new-chat-copy { min-width: 0; display: grid; gap: 3px; }.new-chat-copy strong { font-size: 13px; font-weight: 750; }.new-chat-copy small { color: rgba(21,32,23,.64); font-size: 9px; }.new-chat-arrow { position: relative; z-index: 1; color: #172019; }
.rail-section { margin-top: 34px; }.rail-section > p, .rail-section-head p { margin: 0 0 12px 9px; color: #555f59; font-size: 8px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }.rail-prompt { width: 100%; display: flex; align-items: center; gap: 11px; padding: 10px 9px; color: #a1aaa4; background: transparent; border: 0; border-radius: 8px; cursor: pointer; text-align: left; transition: .2s; }.rail-prompt:hover { color: var(--paper); background: rgba(255,255,255,.035); }.rail-prompt > span { display: grid; gap: 4px; }.rail-prompt strong { font-size: 10px; font-weight: 500; }.rail-prompt small { color: #59635d; font-size: 8px; }
.prompt-icon { position: relative; flex: 0 0 auto; width: 29px; height: 29px; border: 1px solid var(--line); border-radius: 50%; }.home-icon::before { content: ""; position: absolute; width: 9px; height: 8px; left: 9px; top: 11px; border: 1px solid #77817b; border-top: 0; }.home-icon::after { content: ""; position: absolute; width: 8px; height: 8px; left: 10px; top: 7px; border-left: 1px solid #77817b; border-top: 1px solid #77817b; transform: rotate(45deg); }.bowl-icon::before { content: ""; position: absolute; left: 7px; right: 7px; top: 11px; height: 7px; border: 1px solid #77817b; border-radius: 2px 2px 8px 8px; }.moon-icon::before { content: ""; position: absolute; width: 11px; height: 11px; left: 8px; top: 7px; border: 1px solid #77817b; border-top-color: transparent; border-right-color: transparent; border-radius: 50%; transform: rotate(-35deg); }.pulse-icon::before { content: ""; position: absolute; left: 6px; right: 6px; top: 14px; height: 1px; background: #77817b; box-shadow: 4px -5px 0 -0.2px #77817b,8px 4px 0 -0.2px #77817b; transform: rotate(-8deg); }
.recent-section { min-height: 0; flex: 1; }.rail-section-head { display: flex; align-items: center; justify-content: space-between; }.rail-section-head p { margin-bottom: 0; }.rail-section-head span { color: #4c5650; font-size: 8px; }.conversation-summary { display: flex; align-items: center; gap: 10px; margin-top: 13px; padding: 10px 9px; color: #89938d; font-size: 9px; line-height: 1.5; }.conversation-summary > i { width: 5px; height: 5px; background: #56615a; border-radius: 50%; }.conversation-summary small { color: #505a54; }
.rail-foot { padding-top: 14px; border-top: 1px solid var(--line); }.rail-foot button { width: 100%; display: grid; grid-template-columns: 34px 1fr 15px; align-items: center; gap: 10px; padding: 8px; color: inherit; background: transparent; border: 0; border-radius: 8px; cursor: pointer; text-align: left; }.rail-foot button:hover { background: rgba(255,255,255,.035); }.pet-ring { width: 34px; height: 34px; display: grid; place-items: center; color: var(--acid); border: 1px solid rgba(200,243,107,.22); border-radius: 50%; }.pet-ring svg { width: 18px; height: 18px; }.rail-foot button > span:nth-child(2) { display: grid; gap: 4px; }.rail-foot strong { font-size: 10px; }.rail-foot small { color: #57615b; font-size: 8px; }.rail-foot button > svg { width: 14px; height: 14px; color: #53605a; }
.rail-backdrop { display: none; }

/* Chat */
.chat-main { position: relative; min-height: calc(100svh - var(--header-h)); margin-left: var(--rail-w); display: flex; flex-direction: column; }
.empty-state { width: min(850px,calc(100% - 40px)); min-height: calc(100svh - var(--header-h) - 176px); display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0 auto; padding: 50px 0 32px; text-align: center; animation: emptyIn .75s cubic-bezier(.2,.75,.15,1) both; }
.mascot-stage { position: relative; width: 210px; height: 190px; margin-bottom: 13px; }
.mascot-halo { position: absolute; width: 150px; height: 80px; left: 30px; bottom: 7px; background: rgba(200,243,107,.1); border-radius: 50%; filter: blur(28px); }
.mascot-orbit { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(200,243,107,.18); border-radius: 50%; }.mascot-orbit i { position: absolute; width: 5px; height: 5px; background: var(--acid); border-radius: 50%; box-shadow: 0 0 12px var(--acid); }.orbit-one { width: 190px; height: 145px; transform: translate(-50%,-50%) rotate(-12deg); animation: mascotOrbit 16s linear infinite; }.orbit-one i { right: 9px; top: 25px; }.orbit-two { width: 155px; height: 155px; border-style: dashed; transform: translate(-50%,-50%) rotate(32deg); animation: mascotOrbitBack 20s linear infinite; }.orbit-two i:first-child { left: 6px; top: 34px; background: var(--coral); box-shadow: 0 0 12px var(--coral); }.orbit-two i:last-child { right: 13px; bottom: 19px; width: 3px; height: 3px; }
.mascot-image { position: absolute; z-index: 2; width: 145px; height: 165px; left: 33px; top: 9px; object-fit: contain; filter: drop-shadow(0 20px 20px rgba(0,0,0,.3)); opacity: 0; }
.mascot-idle { opacity: 1; }.mascot-stage.is-thinking .mascot-idle,.mascot-stage.is-answering .mascot-idle,.mascot-stage.is-error .mascot-idle { opacity: 0; }.mascot-stage.is-thinking .mascot-thinking,.mascot-stage.is-answering .mascot-answer,.mascot-stage.is-error .mascot-error { opacity: 1; animation: mascotPop .35s ease both; }
.mascot-signal { position: absolute; z-index: 3; right: 1px; top: 16px; display: flex; align-items: center; gap: 6px; color: #657069; font-size: 6px; letter-spacing: .15em; }.mascot-signal i { width: 4px; height: 4px; background: var(--acid); border-radius: 50%; box-shadow: 0 0 8px var(--acid); }
.empty-state .section-index { margin: 0 0 14px; }.empty-state h1 { margin: 0; font-family: var(--serif); font-size: clamp(42px,4.5vw,64px); font-weight: 500; letter-spacing: -.045em; }.empty-state > p:not(.section-index) { margin: 18px 0 33px; color: #77817b; font-size: 12px; line-height: 1.9; }
.landing-chat-cta { width: min(100%,520px); min-height: 76px; display: grid; grid-template-columns: 42px minmax(0,1fr) 22px; align-items: center; gap: 15px; margin: -6px 0 28px; padding: 12px 15px; color: #162019; background: linear-gradient(115deg,var(--acid),#dfff91 72%,#c9f36b); border: 1px solid rgba(235,255,192,.72); border-radius: 15px; box-shadow: 0 18px 55px rgba(142,183,57,.14); cursor: pointer; text-align: left; transition: transform .22s,box-shadow .22s; }.landing-chat-cta:hover { transform: translateY(-3px); box-shadow: 0 23px 65px rgba(142,183,57,.22); }.landing-chat-cta-icon { width: 42px; height: 42px; display: grid; place-items: center; color: var(--acid); background: #172019; border-radius: 50%; }.landing-chat-cta-icon svg { width: 18px; height: 18px; }.landing-chat-cta > span:nth-child(2) { min-width: 0; display: grid; gap: 4px; }.landing-chat-cta strong { font-size: 15px; font-weight: 750; }.landing-chat-cta small { color: rgba(22,32,25,.62); font-size: 11px; }.landing-chat-cta-arrow { width: 20px; height: 20px; }
.starter-grid { width: min(100%,690px); display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }.starter-grid button { position: relative; min-height: 112px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 17px; color: inherit; background: rgba(255,255,255,.018); border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; text-align: left; transition: .25s; }.starter-grid button:hover { background: rgba(200,243,107,.045); transform: translateY(-4px); }.starter-grid span { color: var(--acid); font-size: 7px; }.starter-grid strong { max-width: 150px; color: #aab2ac; font-family: var(--serif); font-size: 12px; font-weight: 500; line-height: 1.5; }.starter-grid i { position: absolute; right: 14px; top: 13px; color: #56615a; font-size: 11px; font-style: normal; }
.conversation-thread { width: min(880px,calc(100% - 48px)); flex: 1; margin: 0 auto; padding: 54px 0 210px; }
.message { position: relative; display: grid; margin-bottom: 34px; animation: messageIn .38s cubic-bezier(.2,.75,.15,1) both; }.message-user { justify-items: end; }.message-assistant { grid-template-columns: 38px minmax(0,1fr); gap: 14px; align-items: start; }.message-avatar { width: 38px; height: 38px; display: grid; place-items: center; overflow: hidden; background: #151c18; border: 1px solid rgba(200,243,107,.18); border-radius: 50%; }.message-avatar img { width: 37px; height: 42px; object-fit: contain; transform: translateY(3px); }
.message-bubble { max-width: 760px; }.message-user .message-bubble { max-width: min(620px,85%); padding: 14px 18px; color: #d7dcd7; background: #1a211d; border: 1px solid var(--line); border-radius: 16px 16px 3px 16px; font-size: 13px; line-height: 1.8; }.message-label { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: #59635d; font-size: 8px; letter-spacing: .14em; text-transform: uppercase; }.message-label i { width: 4px; height: 4px; background: var(--acid); border-radius: 50%; box-shadow: 0 0 7px var(--acid); }
.answer-content { color: #c6cdc7; font-family: var(--serif); font-size: 15px; line-height: 2; }.answer-content p { margin: 0 0 14px; }.answer-content p:last-child { margin-bottom: 0; }.answer-content ul { margin: 5px 0 16px; padding: 0; list-style: none; }.answer-content li { position: relative; margin: 8px 0; padding-left: 18px; }.answer-content li::before { content: ""; position: absolute; left: 2px; top: .88em; width: 5px; height: 5px; background: var(--acid); border-radius: 50%; }
.risk-badge { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 13px; padding: 6px 9px; color: #9ca69f; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 999px; font-size: 8px; }.risk-badge i { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }.risk-badge.risk-medium i { background: #f5c65c; }.risk-badge.risk-high i { background: var(--coral); box-shadow: 0 0 8px var(--coral); }
.answer-extras { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 20px; }.answer-extra { padding: 16px; background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 9px; }.answer-extra > strong { display: block; margin-bottom: 10px; color: #89938d; font-size: 9px; letter-spacing: .08em; }.answer-extra ul { margin: 0; padding: 0; list-style: none; }.answer-extra li { position: relative; margin: 8px 0; padding-left: 13px; color: #78837c; font-size: 10px; line-height: 1.7; }.answer-extra li::before { content: ""; position: absolute; left: 0; top: .65em; width: 4px; height: 4px; background: var(--acid); border-radius: 50%; }
.followup-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }.followup-row button { padding: 8px 11px; color: #8d9791; background: transparent; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 9px; }.followup-row button:hover { color: var(--ink); background: var(--acid); border-color: var(--acid); }
.thinking-message .answer-content { color: #717c75; }.typing-dots { display: flex; gap: 4px; padding: 8px 0; }.typing-dots i { width: 5px; height: 5px; background: #758079; border-radius: 50%; animation: typing 1.1s ease-in-out infinite; }.typing-dots i:nth-child(2) { animation-delay: .13s; }.typing-dots i:nth-child(3) { animation-delay: .26s; }
.composer-zone { position: fixed; z-index: 40; left: var(--rail-w); right: 0; bottom: 0; padding: 26px 24px 17px; background: linear-gradient(180deg,transparent,rgba(12,16,14,.9) 24%,var(--ink) 55%); }
.composer { width: min(880px,100%); margin: 0 auto; padding: 13px 14px 10px 17px; background: rgba(23,30,26,.94); border: 1px solid rgba(235,239,231,.17); border-radius: 14px; box-shadow: 0 20px 55px rgba(0,0,0,.28),0 0 0 1px rgba(0,0,0,.25); backdrop-filter: blur(20px); transition: border-color .2s,box-shadow .2s; }.composer:focus-within { border-color: rgba(200,243,107,.4); box-shadow: 0 20px 55px rgba(0,0,0,.3),0 0 0 3px rgba(200,243,107,.04); }
.composer textarea { width: 100%; max-height: 150px; min-height: 39px; padding: 8px 2px; color: #d8ddd8; background: transparent; border: 0; outline: 0; resize: none; font-size: 13px; line-height: 1.65; }.composer textarea::placeholder { color: #606a64; }
.composer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; }.composer-tools { display: flex; align-items: center; gap: 13px; }.composer-tools > button { position: relative; display: flex; align-items: center; gap: 7px; padding: 6px 8px; color: #737e77; background: transparent; border: 0; border-radius: 6px; cursor: pointer; font-size: 9px; }.composer-tools > button:hover { color: var(--acid); background: rgba(200,243,107,.04); }.composer-tools svg { width: 16px; height: 16px; }.composer-tools button > i { position: absolute; right: 3px; top: 3px; width: 5px; height: 5px; background: var(--acid); border: 1px solid var(--ink-raised); border-radius: 50%; }.composer-hint { color: #4f5953; font-size: 8px; }.composer-hint kbd { padding: 2px 4px; color: #6f7973; background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 3px; font-family: var(--sans); font-size: 7px; }
.composer-submit-wrap { display: flex; align-items: center; gap: 12px; }.composer-submit-wrap > span { color: #4f5953; font-size: 8px; }.composer-submit-wrap button { width: 37px; height: 37px; display: grid; place-items: center; padding: 0; color: var(--ink); background: var(--acid); border: 0; border-radius: 50%; cursor: pointer; transition: .2s; }.composer-submit-wrap button:hover { background: var(--acid-bright); transform: translateX(2px); }.composer-submit-wrap button:disabled { color: #687069; background: #2d352f; cursor: wait; transform: none; }.composer-submit-wrap svg { width: 20px; height: 20px; }
.composer-note { margin: 8px auto 0; color: #48524c; font-size: 8px; text-align: center; }

/* Drawers and forms */
.drawer-layer { position: fixed; z-index: 300; inset: 0; }.drawer-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; background: rgba(3,6,4,.68); border: 0; backdrop-filter: blur(5px); cursor: default; animation: fadeIn .2s ease both; }.drawer { position: absolute; right: 0; top: 0; bottom: 0; width: min(680px,100%); display: flex; flex-direction: column; color: var(--paper); background: #121814; border-left: 1px solid var(--line); box-shadow: -30px 0 80px rgba(0,0,0,.35); animation: drawerIn .35s cubic-bezier(.2,.75,.15,1) both; }
.drawer-header { position: relative; display: flex; justify-content: space-between; gap: 30px; padding: 38px 42px 30px; border-bottom: 1px solid var(--line); }.drawer-header .section-index { margin: 0 0 12px; }.drawer-header h2 { margin: 0; font-family: var(--serif); font-size: 38px; font-weight: 500; letter-spacing: -.04em; }.drawer-header p:last-child { max-width: 500px; margin: 11px 0 0; color: #68736c; font-size: 10px; line-height: 1.7; }.drawer-close { flex: 0 0 auto; width: 39px; height: 39px; display: grid; place-items: center; padding: 0; color: #77827b; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }.drawer-close:hover { color: var(--acid); border-color: rgba(200,243,107,.3); }.drawer-close svg { width: 17px; height: 17px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 0 42px 42px; scrollbar-color: #354038 transparent; scrollbar-width: thin; }.form-section { padding: 33px 0; border-bottom: 1px solid var(--line); }.form-section-title { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 24px; }.form-section-title > span,.summary-number { color: var(--acid); font-size: 8px; }.form-section-title > div { display: grid; gap: 5px; }.form-section-title strong,.collar-section summary strong { font-family: var(--serif); font-size: 17px; font-weight: 500; }.form-section-title small,.collar-section summary small { color: #5f6963; font-size: 9px; }
.pet-editor-panel { scroll-margin-top: 14px; animation: petEditorReveal .34s cubic-bezier(.2,.75,.15,1) both; }.pet-editor-toolbar { position: sticky; z-index: 4; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 -42px; padding: 19px 42px; background: rgba(18,24,20,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }.pet-editor-toolbar > div { min-width: 0; display: grid; gap: 4px; }.pet-editor-toolbar > div > span { color: var(--acid); font-size: 8px; font-weight: 700; letter-spacing: .15em; }.pet-editor-toolbar strong { overflow: hidden; font-family: var(--serif); font-size: 21px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }.pet-editor-toolbar small { color: #606b64; font-size: 9px; }.pet-editor-toolbar button { flex: 0 0 auto; min-height: 36px; display: inline-flex; align-items: center; gap: 5px; padding: 0 11px; color: #8d9891; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 10px; }.pet-editor-toolbar button:hover { color: var(--acid); border-color: rgba(200,243,107,.3); }.pet-editor-toolbar svg { width: 14px; height: 14px; }
.form-grid { display: grid; gap: 15px; margin-top: 15px; }.form-grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }.form-grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }.drawer .field > span { color: #88928c; }.drawer .field input,.drawer .field select { font-size: 11px; }
.check-row { display: block; margin-top: 18px; cursor: pointer; }.check-row input { position: absolute; opacity: 0; }.check-row > span { display: flex; align-items: center; gap: 10px; color: #7d8781; font-size: 10px; }.check-row i { width: 17px; height: 17px; border: 1px solid var(--line); border-radius: 4px; }.check-row input:checked + span i { background: var(--acid); border-color: var(--acid); box-shadow: inset 0 0 0 4px var(--ink-raised); }
.collar-section { padding: 0; }.collar-section summary { display: grid; grid-template-columns: 22px 1fr 18px; align-items: center; gap: 8px; padding: 30px 0; cursor: pointer; list-style: none; }.collar-section summary::-webkit-details-marker { display: none; }.collar-section summary > div { display: grid; gap: 5px; }.collar-section summary > svg { width: 16px; height: 16px; color: #647069; transition: transform .2s; }.collar-section[open] summary > svg { transform: rotate(180deg); }.collar-fields { padding-bottom: 30px; }
.pet-danger-zone { margin-top: 20px; border: 1px solid rgba(232,122,115,.14); border-radius: 10px; }.pet-danger-zone summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 14px; color: #827a75; cursor: pointer; list-style: none; font-size: 10px; }.pet-danger-zone summary::-webkit-details-marker { display: none; }.pet-danger-zone summary svg { width: 15px; height: 15px; transition: transform .2s; }.pet-danger-zone[open] summary svg { transform: rotate(180deg); }.pet-danger-zone > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px; background: rgba(232,122,115,.025); border-top: 1px solid rgba(232,122,115,.12); }.pet-danger-zone p { margin: 0; color: #746f6a; font-size: 10px; line-height: 1.65; }.pet-danger-zone .danger-text-button { flex: 0 0 auto; min-height: 36px; padding: 0 12px; border: 1px solid rgba(232,122,115,.25); border-radius: 7px; }
.drawer-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 17px 42px; background: #101512; border-top: 1px solid var(--line); }.drawer-footer .button { min-height: 48px; }.text-button { color: #68736c; background: transparent; border: 0; cursor: pointer; font-size: 10px; }.text-button:hover { color: var(--coral); }

/* Admin */
.admin-drawer { width: min(640px,100%); }.admin-status-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; padding: 28px 0; }.admin-status-grid article { position: relative; display: grid; gap: 8px; padding: 15px; background: rgba(255,255,255,.022); border: 1px solid var(--line); border-radius: 8px; }.admin-status-grid span { color: #59635d; font-size: 8px; }.admin-status-grid strong { font-size: 12px; font-weight: 500; }.admin-status-grid i { position: absolute; right: 12px; top: 13px; width: 5px; height: 5px; background: #56615a; border-radius: 50%; }.admin-status-grid .status-light { background: var(--acid); box-shadow: 0 0 8px var(--acid); }
.admin-section { padding: 27px 0; border-top: 1px solid var(--line); }.admin-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }.admin-section-head > div { display: flex; gap: 11px; align-items: center; }.admin-section-head span,.debug-section summary span { color: var(--acid); font-size: 8px; }.admin-section-head strong,.debug-section summary strong { font-family: var(--serif); font-size: 16px; font-weight: 500; }.admin-section-head > small { color: #58635c; font-size: 8px; }
.model-options { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }.model-options label { cursor: pointer; }.model-options input { position: absolute; opacity: 0; }.model-options label > span { display: grid; min-height: 105px; padding: 15px; background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 8px; transition: .2s; }.model-options input:checked + span { background: rgba(200,243,107,.05); border-color: rgba(200,243,107,.42); box-shadow: inset 0 0 0 1px rgba(200,243,107,.08); }.model-options label i { position: relative; width: 23px; height: 23px; margin-bottom: 14px; color: var(--acid); }.model-options strong { font-size: 10px; }.model-options small { margin-top: 5px; color: #5c665f; font-size: 8px; }.flash-mark::before { content: ""; position: absolute; inset: 2px 8px 2px 7px; background: var(--acid); clip-path: polygon(55% 0,100% 0,64% 40%,100% 40%,0 100%,36% 53%,0 53%); }.pro-mark { border: 1px solid var(--acid); border-radius: 50%; box-shadow: inset 0 0 0 5px var(--ink-raised); }.grid-mark { background-image: linear-gradient(var(--acid) 1px,transparent 1px),linear-gradient(90deg,var(--acid) 1px,transparent 1px); background-size: 7px 7px; opacity: .8; }
.thinking-controls { display: grid; grid-template-columns: 1fr 160px; gap: 18px; align-items: end; margin-top: 18px; }.switch-row { display: flex; justify-content: space-between; align-items: center; cursor: pointer; }.switch-row > span { display: grid; gap: 4px; }.switch-row strong { font-size: 10px; }.switch-row small { color: #58635c; font-size: 8px; }.switch-row input { position: absolute; opacity: 0; }.switch-row > i { position: relative; width: 39px; height: 22px; background: #2d352f; border-radius: 999px; transition: .2s; }.switch-row > i::after { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #7a847e; border-radius: 50%; transition: .2s; }.switch-row input:checked + i { background: var(--acid); }.switch-row input:checked + i::after { left: 20px; background: var(--ink); }.thinking-controls .field input,.thinking-controls .field select { min-height: 41px; }
.usage-panel { min-height: 82px; padding: 16px; color: #66716a; background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 8px; font-size: 9px; }.usage-panel p { margin: 0; line-height: 1.7; }.usage-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }.usage-grid div { display: grid; gap: 6px; }.usage-grid span { color: #59645d; }.usage-grid strong { color: #bec5c0; font-size: 12px; font-weight: 500; }
.admin-links { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }.admin-links a,.admin-links button { display: flex; align-items: center; justify-content: space-between; min-height: 78px; padding: 14px; color: inherit; background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; text-align: left; }.admin-links a:hover,.admin-links button:hover { border-color: rgba(200,243,107,.3); background: rgba(200,243,107,.035); }.admin-links > * > span { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 2px 9px; }.admin-links svg { grid-row: 1/3; width: 22px; height: 22px; color: var(--acid); }.admin-links strong { font-size: 9px; }.admin-links small { color: #56615a; font-size: 7px; }.admin-links > * > i { color: #5a655e; font-size: 11px; font-style: normal; }
.debug-section { padding-bottom: 0; }.debug-section summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; }.debug-section summary::-webkit-details-marker { display: none; }.debug-section summary > div { display: flex; gap: 11px; align-items: center; }.debug-section summary > svg { width: 16px; height: 16px; transition: transform .2s; }.debug-section[open] summary > svg { transform: rotate(180deg); }.debug-section pre { max-height: 340px; overflow: auto; margin: 18px 0 0; padding: 15px; color: #8da397; background: #090d0b; border: 1px solid var(--line); border-radius: 8px; font: 8px/1.7 "SFMono-Regular",Consolas,monospace; white-space: pre-wrap; word-break: break-word; }
.toast { position: fixed; z-index: 500; left: 50%; bottom: 25px; display: flex; align-items: center; gap: 9px; padding: 12px 16px; color: #cbd1cc; background: rgba(23,30,26,.96); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 15px 40px rgba(0,0,0,.35); transform: translateX(-50%); font-size: 9px; backdrop-filter: blur(15px); animation: toastIn .25s ease both; }.toast i { width: 5px; height: 5px; background: var(--acid); border-radius: 50%; box-shadow: 0 0 8px var(--acid); }

/* Evidence card admin page */
.page-shell.card-review-shell { width: min(1320px,calc(100% - 40px)); margin: 0 auto; padding: 60px 0 100px; }
.review-header { display: flex; justify-content: space-between; gap: 60px; align-items: end; padding-bottom: 42px; border-bottom: 1px solid var(--line); }.review-header .section-tag { margin: 0 0 18px; color: var(--acid); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; }.review-header h1 { margin: 0; font-family: var(--serif); font-size: clamp(42px,5vw,70px); font-weight: 500; letter-spacing: -.045em; }.panel-copy { max-width: 700px; color: #7d8781; font-size: 11px; line-height: 1.8; }.ghost-button { min-height: 42px; padding: 0 15px; color: #a0aaa3; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }.ghost-button:hover { color: var(--acid); border-color: rgba(200,243,107,.3); }.review-back-link { display: inline-flex; align-items: center; white-space: nowrap; }
.review-toolbar { display: grid; grid-template-columns: 1.5fr repeat(3,1fr) auto; gap: 12px; align-items: end; padding: 30px 0 20px; }.review-toolbar .field > span { color: #7e8882; }.review-summary-row { display: flex; gap: 8px; margin-bottom: 24px; }.chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; color: #7f8983; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 999px; font-size: 8px; }.risk-medium { color: #e8bd63; }
.card-review-list { display: grid; gap: 14px; }.review-card { padding: 26px; background: #111713; border: 1px solid var(--line); }.review-card-head { display: flex; justify-content: space-between; gap: 24px; }.mini-label { margin: 0 0 9px; color: var(--acid); font-size: 8px; letter-spacing: .14em; text-transform: uppercase; }.review-card h2 { margin: 0; font-family: var(--serif); font-size: 24px; font-weight: 500; }.review-card code { display: inline-block; margin-top: 9px; color: #59645d; font-size: 9px; }.review-summary { margin: 22px 0; color: #9ba49e; font-size: 12px; line-height: 1.9; }.review-meta-grid,.review-range-grid,.review-columns { display: grid; gap: 12px; margin-top: 14px; }.review-meta-grid,.review-range-grid { grid-template-columns: repeat(2,1fr); }.review-columns { grid-template-columns: repeat(3,1fr); }.review-meta-grid > div,.review-range-grid > div,.review-field-block { padding: 15px; background: rgba(255,255,255,.018); border: 1px solid var(--line); }.review-card strong { color: #adb5af; font-size: 10px; }.review-card p,.review-card li { color: #707b74; font-size: 9px; line-height: 1.8; }.review-card ul { padding-left: 16px; }.review-card pre { overflow: auto; color: #82958a; font: 8px/1.6 monospace; white-space: pre-wrap; }.review-card a { color: var(--acid); }.review-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }.review-pill { padding: 5px 8px; color: #758078; border: 1px solid var(--line); border-radius: 999px; font-size: 8px; }.muted { color: #68736c; font-size: 11px; }

@keyframes loginIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes orbitA { to { transform: translate(-50%,-50%) rotateX(69deg) rotateZ(343deg); } }
@keyframes orbitB { to { transform: translate(-50%,-50%) rotateX(68deg) rotateZ(-333deg); } }
@keyframes mascotOrbit { to { transform: translate(-50%,-50%) rotate(348deg); } }
@keyframes mascotOrbitBack { to { transform: translate(-50%,-50%) rotate(392deg); } }
@keyframes mascotPop { from { opacity: 0; transform: translateY(5px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes menuIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
@keyframes emptyIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes messageIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes typing { 0%,100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes drawerIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes drawerUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%,8px); } to { opacity: 1; transform: translate(-50%,0); } }

@media (max-width: 1050px) {
  :root { --rail-w: 260px; }
  .login-story { padding: 38px; }.story-copy h1 { font-size: 62px; }.login-panel { padding: 50px; }
  .form-grid.three { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .login-view { grid-template-columns: 1fr; }.login-story { min-height: 42svh; padding: 25px 24px 45px; }.story-copy { margin-top: 8vh; }.story-copy h1 { font-size: clamp(45px,11vw,66px); }.story-copy > p:last-child,.story-foot { display: none; }.login-orbit { width: 330px; right: -80px; bottom: -100px; opacity: .7; }.login-panel { min-height: 58svh; padding: 55px 24px 80px; }.login-card { width: min(100%,460px); }.back-home { left: 24px; bottom: 24px; }
  .app-header { grid-template-columns: 1fr auto; padding: 0 13px; }.header-center { display: none; }.mobile-menu-button { display: grid; }.compact-brand .brand-name { display: none; }
  .side-rail { z-index: 120; width: min(310px,86vw); transform: translateX(-105%); transition: transform .3s cubic-bezier(.2,.75,.15,1); box-shadow: 25px 0 55px rgba(0,0,0,.35); }.side-rail.open { transform: none; }.rail-backdrop { position: fixed; z-index: 110; inset: var(--header-h) 0 0; display: block; width: 100%; background: rgba(3,6,4,.62); border: 0; backdrop-filter: blur(3px); }
  .chat-main { margin-left: 0; }.composer-zone { left: 0; }.empty-state { min-height: calc(100svh - var(--header-h) - 170px); }.conversation-thread { width: min(100% - 32px,760px); }
  .review-toolbar { grid-template-columns: repeat(2,1fr); }.review-toolbar .ghost-button { grid-column: 1/-1; }.review-columns { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .login-story { min-height: 38svh; }.story-copy { margin-top: 5vh; }.story-copy .eyebrow { margin-bottom: 17px; }.story-copy h1 { font-size: 45px; }.login-orbit { width: 270px; }.login-panel { min-height: 62svh; padding-top: 45px; }.login-card .section-index { margin-bottom: 15px; }.login-card h2 { font-size: 43px; }.login-intro { margin: 12px 0 25px; }.login-field input { min-height: 52px; }
  .app-header { padding: 0 9px; }.account-copy,.account-button > svg { display: none; }.account-button { grid-template-columns: 34px; padding: 0; }.account-avatar { width: 34px; height: 34px; }.header-button { padding: 0 10px; }.header-button span { display: none; }.header-button svg { width: 18px; height: 18px; }
  .empty-state { width: calc(100% - 28px); min-height: calc(100svh - var(--header-h) - 150px); padding-top: 20px; }.mascot-stage { width: 175px; height: 155px; }.mascot-image { width: 120px; height: 140px; left: 28px; }.orbit-one { width: 165px; height: 125px; }.orbit-two { width: 130px; height: 130px; }.mascot-signal { display: none; }.empty-state h1 { font-size: 39px; }.empty-state > p:not(.section-index) { font-size: 10px; }.starter-grid { grid-template-columns: 1fr; border-top: 0; }.starter-grid button { min-height: 58px; flex-direction: row; align-items: center; justify-content: flex-start; gap: 11px; border-top: 1px solid var(--line); }.starter-grid strong { max-width: none; font-size: 11px; }.starter-grid i { top: 22px; }
  .conversation-thread { width: calc(100% - 24px); padding-top: 30px; padding-bottom: 180px; }.message { margin-bottom: 27px; }.message-assistant { grid-template-columns: 31px minmax(0,1fr); gap: 10px; }.message-avatar { width: 31px; height: 31px; }.message-avatar img { width: 31px; height: 36px; }.answer-content { font-size: 14px; line-height: 1.9; }.message-user .message-bubble { max-width: 92%; font-size: 12px; }.answer-extras { grid-template-columns: 1fr; }
  .composer-zone { padding: 20px 10px 9px; }.composer { border-radius: 12px; }.composer-hint,.composer-submit-wrap > span { display: none; }.composer-note { font-size: 7px; }
  .drawer-header { padding: 28px 20px 23px; }.drawer-header h2 { font-size: 32px; }.drawer-body { padding: 0 20px 30px; }.drawer-footer { padding: 13px 20px; }.form-grid.two,.form-grid.three { grid-template-columns: 1fr; }.admin-status-grid { grid-template-columns: repeat(3,1fr); }.admin-status-grid article { padding: 12px 9px; }.model-options { grid-template-columns: 1fr; }.model-options label > span { min-height: 67px; grid-template-columns: 30px 1fr; align-items: center; }.model-options label i { grid-row: 1/3; margin: 0; }.thinking-controls { grid-template-columns: 1fr; }.admin-links { grid-template-columns: 1fr; }
  .page-shell.card-review-shell { width: calc(100% - 24px); padding-top: 30px; }.review-header { display: block; }.review-back-link { margin-top: 22px; }.review-toolbar,.review-meta-grid,.review-range-grid { grid-template-columns: 1fr; }.review-card { padding: 18px; }.review-card-head { display: block; }.review-card-head .chip { margin-top: 12px; }
}

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

/* 2026 LUOWA product system: larger type, persistent history, abstract Xiaoxu identity */
:root {
  --header-h: 78px;
  --rail-w: 320px;
  --luowa-orange: #fb9718;
  --xiaoxu-blue: #0160d1;
}

body { font-size: 16px; line-height: 1.6; }
.eyebrow, .section-index { font-size: 11px; }
.button { min-height: 58px; padding-inline: 30px 24px; font-size: 15px; }
.luowa-brand { flex: 0 0 auto; }
.brand-logo { width: 148px; height: auto; filter: drop-shadow(0 9px 24px rgba(251,151,24,.08)); }
.compact-brand .brand-logo { width: 112px; }

/* Login identity */
.story-copy > p:last-child { max-width: 680px; color: #a0aaa4; font-size: 17px; line-height: 1.85; }
.story-foot { color: #657069; font-size: 12px; line-height: 1.75; }
.story-foot span { color: #88938c; }
.login-intro { max-width: 440px; color: #929c96; font-size: 16px; line-height: 1.8; }
.field > span { font-size: 13px; }
.login-field input, .field input, .field select, .field textarea { font-size: 16px; }
.form-feedback { font-size: 13px; }
.login-assurance, .back-home { font-size: 12px; }
.orbit-label { font-size: 10px; }
.login-app-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 38%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform: translate(-50%,-50%);
}
.login-app-icon::before {
  content: "";
  position: absolute;
  inset: -14%;
  border: 1px solid rgba(1,96,209,.34);
  border-radius: 31%;
  transform: rotate(9deg);
  box-shadow: 0 0 70px rgba(1,96,209,.13), inset 0 0 35px rgba(1,96,209,.06);
}
.login-app-icon img { position: relative; width: 72%; filter: drop-shadow(0 24px 40px rgba(0,0,0,.34)); }

/* Header */
.app-header { padding-inline: 26px; }
.header-center strong { font-size: 19px; }
.header-center small { margin-top: 3px; font-size: 11px; }
.header-button { min-height: 42px; padding-inline: 15px; font-size: 13px; }
.account-avatar { width: 36px; height: 36px; font-size: 13px; }
.account-button { grid-template-columns: 36px auto 14px; gap: 10px; }
.account-copy { min-width: 66px; }
.account-copy strong { font-size: 13px; }
.account-copy small { font-size: 11px; }
.account-menu { width: 228px; }
.account-menu strong { font-size: 14px; }
.account-menu span, .account-menu button { font-size: 12px; }

/* Conversation rail */
.side-rail { padding: 22px 18px 18px; }
.new-chat-button { min-height: 54px; gap: 13px; padding-inline: 15px; font-size: 14px; }
.new-chat-button > span { width: 29px; height: 29px; }
.recent-section { min-height: 120px; display: flex; flex: 1 1 auto; flex-direction: column; margin-top: 26px; }
.rail-section-head { padding: 0 8px 12px; border-bottom: 1px solid var(--line); }
.rail-section-head p { margin: 0; font-size: 11px; letter-spacing: .14em; }
.rail-section-head span { min-width: 24px; padding: 2px 7px; color: #8b958f; background: rgba(255,255,255,.035); border-radius: 999px; font-size: 11px; text-align: center; }
.conversation-list { min-height: 0; overflow-y: auto; margin: 8px -5px 0; padding: 0 5px 10px; scrollbar-color: #354038 transparent; scrollbar-width: thin; }
.history-empty { min-height: 150px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; padding: 20px 12px; color: #67726b; }
.history-empty > span { width: 28px; height: 1px; margin-bottom: 8px; background: linear-gradient(90deg,var(--acid),transparent); }
.history-empty strong { color: #929c96; font-size: 14px; font-weight: 500; }
.history-empty small { max-width: 220px; font-size: 12px; line-height: 1.65; }
.conversation-item { position: relative; width: 100%; margin: 2px 0; color: #8d9791; background: transparent; border: 1px solid transparent; border-radius: 10px; transition: .2s ease; }
.conversation-item:hover { color: #d7dcd7; background: rgba(255,255,255,.03); }
.conversation-item.active { color: #e2e6e2; background: linear-gradient(100deg,rgba(200,243,107,.075),rgba(1,96,209,.035)); border-color: rgba(200,243,107,.17); }
.conversation-select { width: 100%; min-width: 0; display: grid; gap: 6px; padding: 12px 48px 12px 12px; color: inherit; background: transparent; border: 0; border-radius: inherit; cursor: pointer; text-align: left; }
.conversation-item.no-delete .conversation-select { padding-right: 12px; }
.conversation-item-head { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: baseline; gap: 8px; }
.conversation-item-head strong { overflow: hidden; font-size: 14px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.conversation-item time { color: #58635c; font-size: 11px; }
.conversation-select > small { overflow: hidden; color: #626d66; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.conversation-delete { position: absolute; right: 5px; top: 6px; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; color: #68726c; background: transparent; border: 0; border-radius: 9px; cursor: pointer; opacity: .46; transition: color .2s, background .2s, opacity .2s, transform .2s; }
.conversation-delete svg { width: 17px; height: 17px; }
.conversation-item:hover .conversation-delete, .conversation-delete:focus-visible { opacity: 1; }
.conversation-delete:hover { color: var(--danger); background: rgba(255,117,110,.09); transform: translateY(-1px); }
.conversation-owner { width: max-content; padding: 2px 7px; color: #8ba8c8; background: rgba(1,96,209,.09); border: 1px solid rgba(1,96,209,.18); border-radius: 999px; font-size: 11px; }
.conversation-pet { width: max-content; max-width: 100%; display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; color: #9cae91; background: rgba(200,243,107,.055); border: 1px solid rgba(200,243,107,.12); border-radius: 999px; font-size: 11px; }
.conversation-pet svg { width: 13px; height: 13px; flex: 0 0 auto; }
.rail-starters { flex: 0 0 auto; margin: 10px 0 8px; padding-block: 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rail-starters summary { display: flex; align-items: center; justify-content: space-between; padding: 3px 8px; color: #7d8781; cursor: pointer; font-size: 12px; list-style: none; }
.rail-starters summary::-webkit-details-marker { display: none; }
.rail-starters summary i { color: var(--acid); font-size: 17px; font-style: normal; transition: transform .2s; }
.rail-starters[open] summary i { transform: rotate(45deg); }
.rail-starters > div { max-height: min(250px,32svh); overflow-y: auto; margin-top: 7px; scrollbar-color: #354038 transparent; scrollbar-width: thin; }
.rail-prompt { padding: 9px 8px; }
.rail-prompt strong { font-size: 13px; }
.rail-prompt small { font-size: 11px; }
.rail-foot { padding-top: 12px; }
.rail-foot strong { font-size: 13px; }
.rail-foot small { font-size: 11px; }
.pet-ring { overflow: hidden; background: rgba(200,243,107,.035); }
.pet-ring img { width: 100%; height: 100%; object-fit: cover; }.pet-ring.has-photo { padding: 0; border-color: rgba(255,255,255,.2); }.pet-ring.is-dog { color: var(--teal); }

/* Xiaoxu without a character illustration */
.assistant-icon {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  transform: translate(-50%,-50%);
  transition: filter .3s, transform .3s;
}
.assistant-icon::before { content: ""; position: absolute; inset: -12px; border: 1px solid rgba(1,96,209,.26); border-radius: 31%; transform: rotate(8deg); box-shadow: 0 0 45px rgba(1,96,209,.13); }
.assistant-icon img { position: relative; width: 82px; height: 82px; filter: drop-shadow(0 15px 25px rgba(0,0,0,.32)); }
.mascot-stage.is-thinking .assistant-icon { animation: assistantPulse 1.25s ease-in-out infinite; filter: saturate(1.1); }
.mascot-stage.is-answering .assistant-icon { filter: drop-shadow(0 0 24px rgba(200,243,107,.22)); }
.mascot-stage.is-error .assistant-icon { filter: hue-rotate(120deg) saturate(1.2); }
.mascot-signal { right: -8px; top: 12px; font-size: 10px; }
.empty-state > p:not(.section-index) { color: #8a948e; font-size: 16px; line-height: 1.85; }
.chat-main.landing-mode .empty-state { min-height: calc(100svh - var(--header-h)); padding-bottom: 54px; }
.starter-grid { width: min(100%,760px); }
.starter-grid button { min-height: 126px; padding: 20px; }
.starter-grid span { font-size: 11px; }
.starter-grid strong { max-width: 180px; font-size: 15px; line-height: 1.55; }

/* Messages and composer */
.conversation-thread { width: min(940px,calc(100% - 56px)); padding-top: 62px; }
.message { margin-bottom: 42px; }
.message-assistant { grid-template-columns: 44px minmax(0,1fr); gap: 16px; }
.message-avatar { position: relative; width: 44px; height: 44px; padding: 5px; background: rgba(1,96,209,.055); border-color: rgba(1,96,209,.28); border-radius: 13px; overflow: visible; }
.message-avatar::after { content: ""; position: absolute; width: 5px; height: 5px; margin: 34px 0 0 33px; background: var(--acid); border: 2px solid var(--ink); border-radius: 50%; box-shadow: 0 0 8px var(--acid); }
.message-avatar.error::after { background: var(--coral); box-shadow: 0 0 8px var(--coral); }
.message-avatar img { width: 100%; height: 100%; object-fit: contain; transform: none; }
.message-bubble { max-width: 820px; }
.message-user .message-bubble { max-width: min(680px,88%); padding: 16px 20px; font-size: 16px; line-height: 1.75; }
.message-user-image { width: min(360px,68vw); max-height: 320px; display: grid; place-items: center; overflow: hidden; margin-bottom: 12px; background: #0e1310; border: 1px solid rgba(235,239,231,.14); border-radius: 12px; }
.message-user-image img { width: 100%; max-height: 320px; object-fit: contain; }
.message-user-text { display: block; }
.message-label { margin-bottom: 14px; font-size: 11px; }
.answer-content { font-size: 17.5px; line-height: 1.95; }
.answer-content p { margin-bottom: 18px; }
.answer-content h3, .answer-content h4 { margin: 28px 0 12px; color: #e4e9e4; font-family: var(--sans); font-weight: 650; line-height: 1.45; letter-spacing: -.015em; }
.answer-content h3:first-child, .answer-content h4:first-child { margin-top: 0; }
.answer-content h3 { font-size: 1.08em; }
.answer-content h4 { font-size: 1em; }
.answer-content strong { color: #edf1ed; font-weight: 700; }
.answer-content code { padding: .16em .4em; color: #d9efaa; background: rgba(200,243,107,.075); border: 1px solid rgba(200,243,107,.14); border-radius: 5px; font-family: "SFMono-Regular", Consolas, monospace; font-size: .84em; }
.answer-content ol { margin: 7px 0 18px; padding-left: 1.55em; }
.answer-content ol li { padding-left: .25em; }
.answer-content ol li::before { display: none; }
.answer-content blockquote { margin: 12px 0 20px; padding: 13px 17px; color: #aab6ae; background: rgba(1,96,209,.055); border-left: 2px solid rgba(1,96,209,.5); border-radius: 0 8px 8px 0; }
.answer-content pre { overflow-x: auto; margin: 14px 0 20px; padding: 16px; color: #cad7ce; background: #090d0b; border: 1px solid var(--line); border-radius: 9px; white-space: pre-wrap; word-break: break-word; }
.answer-content pre code { padding: 0; color: inherit; background: transparent; border: 0; font-size: .82em; }
.risk-badge { gap: 8px; margin-bottom: 16px; padding: 7px 11px; font-size: 12px; }
.answer-extra { padding: 18px; }
.answer-extra > strong { font-size: 13px; }
.answer-extra li { font-size: 14px; line-height: 1.75; }
.followup-row { gap: 9px; margin-top: 20px; }
.followup-row button { padding: 9px 13px; font-size: 13px; }
.pending-status { width: max-content; max-width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 13px; color: #a8b3ac; background: rgba(115,215,202,.045); border: 1px solid rgba(115,215,202,.18); border-radius: 10px; font-size: 13px; line-height: 1.55; }
.pending-status.unavailable { color: #c3aaa5; background: rgba(255,121,93,.04); border-color: rgba(255,121,93,.18); }
.pending-status .typing-dots { flex: 0 0 auto; padding: 0; }
.pending-status.unavailable .typing-dots i { background: var(--coral); }
.answer-preview { margin-top: 16px; opacity: .78; }
.image-analysis-result { margin: 0 0 20px; padding: 15px 16px; color: #aebbb3; background: linear-gradient(135deg,rgba(115,215,202,.07),rgba(255,255,255,.018)); border: 1px solid rgba(115,215,202,.2); border-radius: 11px; font-family: var(--sans); }
.image-analysis-result.unavailable { background: rgba(255,121,93,.035); border-color: rgba(255,121,93,.18); }
.image-analysis-head { display: grid; grid-template-columns: 8px auto minmax(0,1fr); align-items: center; gap: 8px; }
.image-analysis-head > i { width: 7px; height: 7px; background: var(--teal); border-radius: 50%; box-shadow: 0 0 9px rgba(115,215,202,.45); }
.image-analysis-result.unavailable .image-analysis-head > i { background: var(--coral); box-shadow: 0 0 9px rgba(255,121,93,.35); }
.image-analysis-head strong { color: #dce5df; font-size: 13px; }
.image-analysis-head small { min-width: 0; overflow: hidden; color: #6f7d75; font-size: 10px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.image-analysis-result > p { margin: 11px 0 0; color: #9ba8a0; font-size: 13px; line-height: 1.7; }
.image-analysis-result > p.image-analysis-message { color: #76837b; font-size: 11px; }
.image-analysis-result > div:not(.image-analysis-head) { margin-top: 12px; }
.image-analysis-result > div:not(.image-analysis-head) > strong { display: block; margin-bottom: 7px; color: #7f8d85; font-size: 11px; }
.image-analysis-result ul { margin: 0; padding: 0; list-style: none; }
.image-analysis-result li { position: relative; margin: 5px 0; padding-left: 13px; color: #a2aea7; font-size: 12px; line-height: 1.65; }
.image-analysis-result li::before { content: ""; position: absolute; left: 0; top: .7em; width: 4px; height: 4px; background: var(--teal); border-radius: 50%; }
.composer-zone { padding: 28px 26px 18px; }
.composer-zone:not([hidden]) { animation: composerIn .28s cubic-bezier(.2,.75,.15,1) both; }
.composer { width: min(940px,100%); padding: 15px 16px 12px 19px; border-radius: 16px; }
.composer-attachment { display: grid; grid-template-columns: 76px minmax(0,1fr) 44px; align-items: center; gap: 12px; margin: 0 0 8px -3px; padding: 9px; background: rgba(115,215,202,.035); border: 1px solid rgba(115,215,202,.17); border-radius: 12px; animation: attachmentIn .24s cubic-bezier(.2,.75,.15,1) both; }
.composer-attachment-preview { width: 76px; height: 62px; display: grid; place-items: center; overflow: hidden; background: #0d1210; border: 1px solid var(--line); border-radius: 9px; }
.composer-attachment-preview img { width: 100%; height: 100%; object-fit: contain; }
.composer-attachment-copy { min-width: 0; display: grid; gap: 5px; }
.composer-attachment-copy strong { overflow: hidden; color: #cbd5ce; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.composer-attachment-copy small { color: #6e7b73; font-size: 11px; }
.composer-attachment-remove { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; color: #87938b; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; transition: color .18s,background .18s,border-color .18s; }
.composer-attachment-remove:hover { color: var(--coral); background: rgba(255,121,93,.055); border-color: rgba(255,121,93,.22); }
.composer-attachment-remove svg { width: 17px; height: 17px; }
.composer-attachment-remove:disabled { cursor: wait; opacity: .45; }
.composer-image-status { margin: 0 2px 4px; color: #8e9a92; font-size: 11px; line-height: 1.5; }
.composer-image-status:empty { display: none; }
.composer-image-status.success { color: #91b9ac; }
.composer-image-status.error { color: #d49a90; }
.composer textarea { min-height: 45px; padding-block: 9px; font-size: 16px; line-height: 1.6; }
.composer-tools > button { font-size: 13px; }
.composer-tools > .composer-pet-chip { min-height: 36px; gap: 8px; padding: 4px 9px 4px 4px; color: #939d96; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 999px; }
.composer-tools > .composer-pet-chip:hover { color: #dce1dc; background: rgba(200,243,107,.045); border-color: rgba(200,243,107,.25); }
.composer-tools > .composer-image-button { min-height: 44px; gap: 7px; padding: 0 11px; color: #89968e; background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 999px; }
.composer-tools > .composer-image-button:hover { color: var(--teal); background: rgba(115,215,202,.045); border-color: rgba(115,215,202,.28); }
.composer-tools > .composer-image-button.has-image { color: #c6e5dd; background: rgba(115,215,202,.065); border-color: rgba(115,215,202,.34); }
.composer-tools > .composer-image-button:disabled { cursor: wait; opacity: .45; }
.composer-image-button > i { background: var(--teal) !important; box-shadow: 0 0 7px rgba(115,215,202,.55); }
.composer-pet-avatar { width: 27px; height: 27px; display: grid; place-items: center; overflow: hidden; color: var(--acid); background: rgba(200,243,107,.07); border-radius: 50%; }.composer-pet-avatar svg { width: 17px; height: 17px; }.composer-pet-avatar img { width: 100%; height: 100%; object-fit: cover; }.composer-pet-avatar.is-dog { color: var(--teal); }.composer-pet-chip .chip-chevron { width: 12px; height: 12px; color: #5f6963; }
.composer-hint, .composer-submit-wrap > span { font-size: 11px; }
.composer-hint kbd { font-size: 10px; }
.composer-submit-wrap button { width: 42px; height: 42px; }
.composer-note { display: grid; gap: 3px; color: #87948c; font-size: 11px; line-height: 1.5; }
.composer-note span:last-child { color: #aebbb3; }
.history-readonly { width: min(940px,100%); margin: 0 auto 9px; padding: 9px 13px; color: #9eb2c8; background: rgba(1,96,209,.08); border: 1px solid rgba(1,96,209,.18); border-radius: 9px; font-size: 12px; text-align: center; }
.composer.is-readonly { opacity: .58; }
.chat-main.has-composer-image .conversation-thread { padding-bottom: 300px; }

/* Drawers and admin details stay secondary but readable */
.drawer-header p:last-child { font-size: 14px; }
.form-section-title > span, .summary-number { font-size: 11px; }
.form-section-title strong, .collar-section summary strong { font-size: 19px; }
.form-section-title small, .collar-section summary small { font-size: 12px; }
.drawer .field input, .drawer .field select { font-size: 16px; }
.check-row > span, .text-button { font-size: 13px; }

/* Saved multi-pet workspace */
.profile-drawer { width: min(760px,100%); }
.pet-picker-section { margin: 0 -42px; padding: 24px 42px 28px; background: rgba(255,255,255,.014); border-bottom: 1px solid var(--line); }
.pet-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }.pet-picker-head > div { display: grid; gap: 3px; }.pet-picker-head strong { font-size: 14px; font-weight: 600; }.pet-picker-head small { color: #626d66; font-size: 11px; }.pet-picker-head button { min-height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 0 13px; color: #bac3bc; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 12px; }.pet-picker-head button span { color: var(--acid); font-size: 16px; }.pet-picker-head button:hover { color: var(--paper); border-color: rgba(200,243,107,.32); }
.pet-picker-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }.pet-list-empty { grid-column: 1/-1; margin: 0; padding: 23px 16px; color: #68736c; background: rgba(255,255,255,.018); border: 1px dashed rgba(255,255,255,.1); border-radius: 11px; font-size: 13px; text-align: center; }
.pet-picker-card { min-width: 0; min-height: 82px; display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; gap: 10px; padding: 11px; color: #9ba59e; background: rgba(255,255,255,.018); border: 1px solid var(--line); border-radius: 11px; cursor: pointer; text-align: left; transition: .2s; }.pet-picker-card:hover { color: #d8ddd8; background: rgba(255,255,255,.035); }.pet-picker-card.active { color: #e4e8e4; background: linear-gradient(125deg,rgba(200,243,107,.075),rgba(115,215,202,.025)); border-color: rgba(200,243,107,.33); box-shadow: inset 0 0 0 1px rgba(200,243,107,.04); }.pet-picker-avatar { grid-row: 1/3; width: 42px; height: 42px; display: grid; place-items: center; overflow: hidden; color: var(--acid); background: #19211c; border: 1px solid var(--line); border-radius: 13px; }.pet-picker-avatar svg { width: 25px; height: 25px; }.pet-picker-avatar img { width: 100%; height: 100%; object-fit: cover; }.pet-picker-avatar.is-dog { color: var(--teal); }.pet-picker-card > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }.pet-picker-card strong { overflow: hidden; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }.pet-picker-card small { overflow: hidden; color: #626d66; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.pet-picker-card > i { grid-column: 2; color: #657069; font-size: 9px; font-style: normal; }.pet-picker-card.active > i { color: var(--acid); }
.pet-identity-editor { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 20px; margin-bottom: 20px; }.avatar-editor { min-width: 0; display: flex; align-items: center; gap: 15px; }.avatar-preview { flex: 0 0 auto; width: 78px; height: 78px; display: grid; place-items: center; overflow: hidden; color: var(--acid); background: radial-gradient(circle at 35% 30%,rgba(200,243,107,.11),transparent 60%),#171e1a; border: 1px solid rgba(200,243,107,.18); border-radius: 23px; }.avatar-preview svg { width: 40px; height: 40px; }.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }.avatar-preview.has-photo { border-color: rgba(255,255,255,.2); }.avatar-editor > div { min-width: 0; display: grid; grid-template-columns: auto auto; align-items: center; justify-content: start; gap: 7px; }.avatar-upload,.avatar-editor button { min-height: 34px; display: inline-flex; align-items: center; padding: 0 11px; border-radius: 999px; cursor: pointer; font-size: 11px; }.avatar-upload { color: var(--ink); background: var(--acid); font-weight: 650; }.avatar-editor button { color: #a98680; background: transparent; border: 1px solid rgba(255,121,93,.18); }.avatar-editor small { grid-column: 1/-1; max-width: 230px; color: #5d6861; font-size: 10px; line-height: 1.55; }.pet-name-field input { min-height: 52px; }
.species-picker { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 0 0 18px; padding: 0; border: 0; }.species-picker legend { width: 100%; margin-bottom: 9px; color: #88928c; font-size: 13px; font-weight: 600; letter-spacing: .08em; }.species-picker label { cursor: pointer; }.species-picker input { position: absolute; opacity: 0; pointer-events: none; }.species-picker label > span { min-height: 68px; display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 2px 10px; padding: 11px 14px; color: #88938c; background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 10px; transition: .2s; }.species-picker svg { grid-row: 1/3; width: 32px; height: 32px; color: #748078; }.species-picker strong { font-size: 14px; font-weight: 600; }.species-picker small { color: #5b665f; font-size: 9px; letter-spacing: .12em; }.species-picker input:checked + span { color: #e0e5e0; background: rgba(200,243,107,.055); border-color: rgba(200,243,107,.4); box-shadow: inset 0 0 0 1px rgba(200,243,107,.05); }.species-picker input:checked + span svg { color: var(--acid); }
.profile-footer { display: grid; grid-template-columns: auto minmax(100px,1fr) auto; }.profile-footer > div { display: flex; align-items: center; gap: 12px; }.danger-text-button { color: #a4726e; background: transparent; border: 0; cursor: pointer; font-size: 13px; }.danger-text-button:hover { color: var(--danger); }.profile-feedback { min-width: 0; margin: 0; color: #8e9992; font-size: 11px; line-height: 1.5; text-align: center; }.profile-footer .button:disabled { cursor: wait; opacity: .58; }
.admin-status-grid span, .admin-section-head span, .debug-section summary span { font-size: 11px; }
.admin-status-grid strong { font-size: 14px; }
.admin-section-head strong, .debug-section summary strong { font-size: 18px; }
.admin-section-head > small, .model-options small, .switch-row small { font-size: 11px; }
.model-options strong, .switch-row strong { font-size: 13px; }
.usage-panel { font-size: 12px; }
.usage-grid strong { font-size: 14px; }
.admin-links strong { font-size: 13px; }
.admin-links small { font-size: 11px; }
.debug-section pre { font-size: 11px; }
.toast { padding: 13px 18px; font-size: 12px; }

/* Destructive action confirmation */
.confirm-layer { position: fixed; z-index: 450; inset: 0; display: grid; place-items: center; padding: 24px; }
.confirm-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; background: rgba(3,6,4,.76); border: 0; backdrop-filter: blur(7px); cursor: default; animation: fadeIn .2s ease both; }
.confirm-card { position: relative; z-index: 1; width: min(440px,100%); padding: 34px; background: linear-gradient(150deg,#171e1a,#111713); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; box-shadow: 0 28px 90px rgba(0,0,0,.55); animation: confirmIn .28s cubic-bezier(.2,.75,.15,1) both; }
.confirm-mark { position: absolute; right: 28px; top: 28px; width: 43px; height: 43px; display: grid; place-items: center; color: var(--danger); background: rgba(255,117,110,.07); border: 1px solid rgba(255,117,110,.22); border-radius: 50%; }
.confirm-mark i { position: relative; width: 2px; height: 13px; background: currentColor; border-radius: 999px; }
.confirm-mark i::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 2px; height: 2px; background: currentColor; border-radius: 50%; }
.confirm-card .section-index { margin: 0 0 13px; color: var(--danger); }
.confirm-card h2 { max-width: 300px; margin: 0; font-family: var(--serif); font-size: 34px; font-weight: 500; letter-spacing: -.035em; }
.confirm-card > p:not(.section-index) { margin: 14px 0 20px; color: #849089; font-size: 14px; line-height: 1.75; }
.confirm-card > strong { display: block; overflow: hidden; padding: 12px 14px; color: #cbd2cc; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 9px; font-size: 14px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.confirm-actions button { min-height: 48px; border-radius: 9px; cursor: pointer; font-size: 14px; font-weight: 650; transition: .2s; }
.confirm-cancel { color: #a9b2ac; background: rgba(255,255,255,.025); border: 1px solid var(--line); }
.confirm-cancel:hover { color: var(--paper); background: rgba(255,255,255,.05); }
.confirm-delete { color: #1a0c0a; background: var(--danger); border: 1px solid var(--danger); }
.confirm-delete:hover { background: #ff918b; border-color: #ff918b; }
.confirm-actions button:disabled { cursor: wait; opacity: .5; }

@keyframes assistantPulse {
  0%,100% { transform: translate(-50%,-50%) scale(1); }
  50% { transform: translate(-50%,-52%) scale(1.035); }
}
@keyframes composerIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes attachmentIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes confirmIn { from { opacity: 0; transform: translateY(18px) scale(.975); } to { opacity: 1; transform: none; } }
@keyframes petEditorReveal { from { opacity: 0; transform: translateY(-13px); } to { opacity: 1; transform: none; } }

@media (max-width: 1120px) and (min-width: 921px) {
  :root { --rail-w: 290px; }
  .side-rail { padding-inline: 14px; }
  .compact-brand .brand-logo { width: 100px; }
}

@media (max-width: 920px) {
  .app-header { grid-template-columns: 1fr auto; padding-inline: 15px; }
  .header-center { display: none; }
  .mobile-menu-button { display: grid; }
  .side-rail { z-index: 120; width: min(360px,90vw); transform: translateX(-105%); transition: transform .3s cubic-bezier(.2,.75,.15,1); box-shadow: 25px 0 55px rgba(0,0,0,.35); }
  .side-rail.open { transform: none; }
  .rail-backdrop { position: fixed; z-index: 110; inset: var(--header-h) 0 0; display: block; width: 100%; background: rgba(3,6,4,.62); border: 0; backdrop-filter: blur(3px); }
  .chat-main { margin-left: 0; }
  .composer-zone { left: 0; }
  .conversation-thread { width: min(100% - 36px,820px); }
}

@media (max-width: 560px) {
  :root { --header-h: 66px; }
  body { font-size: 16px; }
  .brand-logo { width: 122px; }
  .compact-brand .brand-logo { width: 94px; }
  .login-story { min-height: 42svh; }
  .login-panel { min-height: 58svh; padding: 46px 22px 82px; }
  .story-copy > p:last-child { font-size: 16px; }
  .login-intro { font-size: 16px; }
  .login-field input, .field input, .field select, .field textarea { font-size: 16px; }
  .login-app-icon { width: 42%; }
  .app-header { padding-inline: 9px; }
  .mobile-menu-button { width: 36px; height: 36px; }
  .side-rail { width: min(350px,92vw); padding: 14px 13px max(14px,env(safe-area-inset-bottom)); }
  .new-chat-button { min-height: 72px; }
  .conversation-delete { width: 44px; height: 44px; right: 3px; top: 4px; opacity: .78; }
  .chat-main.landing-mode .empty-state { width: calc(100% - 28px); min-height: auto; justify-content: flex-start; padding: 32px 0 96px; }
  .mascot-stage { width: 164px; height: 142px; margin-bottom: 5px; }
  .assistant-icon { width: 80px; height: 80px; }
  .assistant-icon img { width: 64px; height: 64px; }
  .empty-state h1 { font-size: clamp(38px,11vw,48px); }
  .empty-state > p:not(.section-index) { font-size: 16px; }
  .empty-state > p:not(.section-index) br { display: none; }
  .landing-chat-cta { min-height: 72px; margin: -4px 0 20px; padding: 10px 13px; border-radius: 14px; }
  .landing-chat-cta small { font-size: 10px; }
  .starter-grid strong { font-size: 15px; }
  .conversation-thread { width: calc(100% - 24px); padding-top: 34px; padding-bottom: 205px; }
  .chat-main.has-composer-image .conversation-thread { padding-bottom: 300px; }
  .message { margin-bottom: 31px; }
  .message-assistant { grid-template-columns: 36px minmax(0,1fr); gap: 11px; }
  .message-avatar { width: 36px; height: 36px; padding: 4px; border-radius: 10px; }
  .message-avatar::after { margin: 27px 0 0 26px; }
  .answer-content { font-size: 16px; line-height: 1.9; }
  .message-user .message-bubble { max-width: 94%; font-size: 16px; }
  .answer-extras { grid-template-columns: 1fr; }
  .answer-extra li { font-size: 14px; }
  .composer-zone { padding: 20px 8px max(8px,env(safe-area-inset-bottom)); }
  .composer { padding: 11px 11px 9px 13px; border-radius: 16px; }
  .composer-attachment { grid-template-columns: 64px minmax(0,1fr) 44px; gap: 9px; margin-left: -2px; padding: 7px; }
  .composer-attachment-preview { width: 64px; height: 56px; }
  .composer-attachment-copy strong { font-size: 12px; }
  .composer-attachment-copy small { font-size: 10px; }
  .composer-image-status { margin-left: 0; font-size: 10px; }
  .composer-bottom { gap: 8px; }
  .composer-tools { gap: 5px; min-width: 0; }
  .composer-hint,.composer-submit-wrap > span { display: none; }
  .composer textarea { font-size: 16px; }
  .composer-note { font-size: 11px; }
  .composer-tools > .composer-image-button { width: 44px; flex: 0 0 44px; justify-content: center; padding: 0; }
  .composer-image-button > span { display: none; }
  .message-user-image { width: min(300px,76vw); max-height: 280px; }
  .message-user-image img { max-height: 280px; }
  .pending-status { width: 100%; align-items: flex-start; padding: 9px 10px; font-size: 12px; }
  .image-analysis-result { padding: 13px; }
  .image-analysis-head { grid-template-columns: 8px 1fr; }
  .image-analysis-head small { grid-column: 1/-1; padding-left: 16px; text-align: left; white-space: normal; }
  .history-readonly { font-size: 12px; }
  .confirm-layer { padding: 14px; }
  .confirm-card { padding: 28px 22px 22px; border-radius: 15px; }
  .confirm-mark { right: 20px; top: 20px; }
  .confirm-card h2 { max-width: 245px; font-size: 31px; }
  .confirm-actions { grid-template-columns: 1fr; }
  .drawer-layer { padding-top: 8svh; }
  .drawer { top: auto; width: 100%; height: 92svh; border: 1px solid var(--line); border-bottom: 0; border-radius: 22px 22px 0 0; box-shadow: 0 -28px 70px rgba(0,0,0,.4); animation-name: drawerUp; }
  .drawer-header { flex: 0 0 auto; padding: 24px 20px 19px; }
  .drawer-header h2 { font-size: 34px; }
  .drawer-header p:last-child { margin-top: 8px; font-size: 13px; line-height: 1.6; }
  .drawer-close { width: 42px; height: 42px; }
  .drawer-body { padding-bottom: 26px; overscroll-behavior: contain; }
  .drawer .field input, .drawer .field select { font-size: 16px; }
  .pet-picker-section { margin-inline: -20px; padding: 20px; }
  .pet-picker-head { align-items: flex-start; }
  .pet-picker-head button { min-height: 42px; }
  .pet-picker-list { display: flex; overflow-x: auto; margin-inline: -2px; padding: 2px 2px 7px; scrollbar-width: thin; }.pet-picker-card { flex: 0 0 190px; }.pet-list-empty { flex: 1 0 100%; }
  .pet-editor-toolbar { margin-inline: -20px; padding: 16px 20px; }
  .pet-editor-toolbar strong { font-size: 20px; }
  .pet-editor-toolbar small { display: none; }
  .pet-editor-toolbar button { min-height: 40px; }
  .pet-identity-editor { grid-template-columns: 1fr; align-items: stretch; }.avatar-editor { padding-bottom: 3px; }.avatar-preview { width: 72px; height: 72px; border-radius: 21px; }
  .species-picker { grid-template-columns: 1fr 1fr; }.species-picker label > span { grid-template-columns: 31px 1fr; padding-inline: 10px; }.species-picker svg { width: 27px; height: 27px; }
  .pet-danger-zone > div { align-items: stretch; flex-direction: column; gap: 12px; }
  .pet-danger-zone .danger-text-button { align-self: flex-start; min-height: 42px; }
  .profile-footer { grid-template-columns: minmax(0,1fr) auto; gap: 9px; padding: 11px 16px max(11px,env(safe-area-inset-bottom)); }.profile-footer > div { align-items: flex-start; flex-direction: column; gap: 2px; }.profile-feedback { grid-column: 1/-1; grid-row: 1; min-height: 0; text-align: left; }.profile-footer > div,.profile-footer > .button { grid-row: 2; }.profile-footer .button { min-height: 50px; padding-inline: 18px 15px; }
  .composer-tools > .composer-pet-chip { max-width: 155px; }.composer-pet-chip > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
