/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:block))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer theme{:host,:root{--font-sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,::backdrop,:after,:before{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}:host,html{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,optgroup,select,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.visible{visibility:visible}.absolute{position:absolute}.static{position:static}.block{display:block}.hidden{display:none}.resize{resize:both}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.filter{filter:var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, )}}:root{color-scheme:light;--paper:#fdfdfc;--panel-soft:#f7f8f8;--ink:#202329;--muted:#858a91;--hairline:#e6e7e8;--accent:#636ec2;--accent-soft:#eff0fb;--accent-ink:#525da8;--user-bubble:#f1f2f4;--shadow:0 14px 44px #1b1e2d12;background:var(--paper);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif}:root[data-theme=dark]{color-scheme:dark;--paper:#131518;--panel:#1c1f23;--panel-soft:#24282d;--ink:#edf0f1;--muted:#9ba3a9;--hairline:#363a40;--accent:#a3abf1;--accent-soft:#303653;--accent-ink:#b3baf4;--user-bubble:#282c32;--shadow:0 18px 48px #00000040}*{box-sizing:border-box}body,html{width:100%;min-width:320px;height:100%;margin:0;overflow:hidden}body{background:var(--paper);color:var(--ink);-webkit-font-smoothing:antialiased;font-size:16px}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:3px}a{color:var(--accent-ink)}.app-root{width:100%;height:var(--app-height,100dvh);background:var(--paper);min-height:320px;overflow:hidden}.chat-shell,.gallery-shell{flex-direction:column;height:100%;min-height:0;display:flex}.chat-header,.gallery-header{height:calc(70px + env(safe-area-inset-top));padding:env(safe-area-inset-top) max(22px,env(safe-area-inset-right)) 0 max(22px,env(safe-area-inset-left));border-bottom:1px solid var(--hairline);flex:none;grid-template-columns:100px minmax(0,1fr) 100px;align-items:center;display:grid}@supports (color:color-mix(in lab,red,red)){.chat-header,.gallery-header{background:color-mix(in srgb,var(--paper) 94%,transparent)}}.chat-header,.gallery-header{z-index:2}.chat-header-person{flex-direction:column;align-items:center;gap:2px;min-width:0;display:flex}.chat-header-person strong{letter-spacing:.03em;white-space:nowrap;text-overflow:ellipsis;max-width:100%;font-weight:640;overflow:hidden}.chat-header-person small{color:var(--muted);letter-spacing:.02em;align-items:center;gap:6px;font-size:12px;display:flex}.status-dot{background:#84b496;border-radius:50%;width:6px;height:6px;display:inline-block}.status-dot.typing{background:var(--accent);box-shadow:0 0 0 4px var(--accent-soft);animation:pulse 1.2s ease-in-out infinite}@keyframes pulse{50%{opacity:.5}}.header-actions{justify-content:flex-end;gap:3px;display:flex}.header-icon,.icon-button{width:40px;height:40px;color:var(--ink);background:0 0;border:0;border-radius:50%;justify-content:center;align-items:center;padding:0;display:inline-flex}.header-icon:hover,.icon-button:hover{background:var(--panel-soft)}.icon-button.small{width:30px;height:30px}.chat-scroll{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scroll-behavior:smooth;min-height:0;padding:0 max(20px,env(safe-area-inset-right)) 20px max(20px,env(safe-area-inset-left));flex:auto;overflow-y:auto}.compliance-line{text-align:center;max-width:740px;color:var(--muted);letter-spacing:.015em;margin:0 auto;padding:16px 0 8px;font-size:12px;line-height:1.55}.chat-welcome{text-align:center;flex-direction:column;justify-content:center;align-items:center;max-width:640px;min-height:calc(100% - 54px);margin:auto;padding:10px 20px 50px;display:flex}.welcome-mark{border:1px solid var(--hairline);width:52px;height:52px;color:var(--accent);background:var(--panel);box-shadow:var(--shadow);border-radius:20px;place-items:center;margin-bottom:31px;font-family:Georgia,serif;font-size:29px;display:grid}.welcome-eyebrow{color:var(--muted);letter-spacing:.22em;margin:0 0 13px!important;font-size:13px!important}.chat-welcome h1{max-width:580px;color:var(--ink);letter-spacing:.02em;margin:0;font-family:Songti SC,STSong,Noto Serif CJK SC,serif;font-size:clamp(27px,5vw,38px);font-weight:600;line-height:1.55}.chat-welcome p:not(.welcome-eyebrow){color:var(--muted);margin:20px 0 0;font-size:15px}.text-button{color:var(--accent-ink);background:0 0;border:0;margin-top:23px;font-size:14px;font-weight:600}.messages{margin:22px auto 0;padding:0 4px 44px}.message{margin:0 0 38px}.user-message{justify-content:flex-end;display:flex}.user-bubble{background:var(--user-bubble);max-width:min(84%,550px);color:var(--ink);white-space:pre-wrap;overflow-wrap:anywhere;border-radius:22px 22px 6px;padding:13px 18px;font-size:15px;line-height:1.75}.message-speaker{color:var(--accent-ink);letter-spacing:.04em;margin-bottom:12px;font-size:13px;font-weight:650}.message-prose{color:var(--ink);letter-spacing:.015em;overflow-wrap:anywhere;font-size:16px;line-height:2.02}.message-prose p{margin:0 0 1.08em}.message-prose p:last-child{margin-bottom:0}.message-prose .action-text{color:var(--muted);font-family:Songti SC,STSong,Noto Serif CJK SC,serif;font-style:italic;font-weight:400}.message-prose strong{font-weight:700}.message-prose ol,.message-prose ul{padding-left:1.5em}.message-prose blockquote{border-left:2px solid var(--hairline);color:var(--muted);margin:1.1em 0;padding:.2em 0 .2em 1.1em}.message-prose code{background:var(--panel-soft);border-radius:5px;padding:2px 5px;font-size:.87em}.message-prose pre{background:var(--panel-soft);border-radius:12px;padding:13px;font-size:13px;line-height:1.5;overflow:auto}.message-prose pre code{background:0 0;padding:0}.message-prose table{border-collapse:collapse;width:100%;font-size:14px;display:block;overflow-x:auto}.message-prose td,.message-prose th{border:1px solid var(--hairline);padding:7px 10px}.message-tools{gap:15px;margin-top:14px;display:flex}.message-tools button{color:var(--muted);background:0 0;border:0;align-items:center;gap:5px;padding:2px;font-size:12px;display:inline-flex}.message-tools button:hover{color:var(--ink)}.composer-wrap{width:min(100%,820px);padding:8px 20px calc(13px + env(safe-area-inset-bottom));background:var(--paper);flex:none;margin:0 auto}.composer{background:var(--panel);border:1px solid #d8dadd;border-radius:28px;padding:14px 16px 12px;box-shadow:0 8px 38px #24262e0f}:root[data-theme=dark] .composer{border-color:var(--hairline)}.composer textarea{resize:none;width:100%;max-height:136px;color:var(--ink);background:0 0;border:0;outline:0;padding:3px 5px;font-size:16px;line-height:1.6;display:block;overflow-y:auto}.composer textarea::placeholder{color:#a2a6ab}.composer-bottom,.composer-chips{align-items:center;display:flex}.composer-bottom{justify-content:space-between;padding-top:13px}.composer-chip{background:var(--panel);white-space:nowrap;border-radius:999px;align-items:center;padding:0 12px;font-size:12px;display:inline-flex}.send-button{background:var(--ink);width:34px;height:34px;color:var(--paper);border:0;border-radius:50%;flex:none;place-items:center;padding:0;display:grid}.send-button:not(:disabled):hover{background:var(--accent);color:#fff}.composer-hint{color:var(--muted);text-align:center;margin-top:7px;font-size:11px;display:block}.drawer-backdrop,.modal-backdrop{background:#0f121959;border:0;width:100%;position:fixed;inset:0}.drawer-backdrop{opacity:0;pointer-events:none;transition:opacity .22s}.drawer-backdrop.is-open{opacity:1;pointer-events:auto}.sidebar{width:min(360px,90vw);height:var(--app-height,100dvh);padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom);background:var(--panel);border-right:1px solid var(--hairline);flex-direction:column;transition:transform .24s;display:flex;position:fixed;inset:0 auto 0 0;transform:translate(-102%);box-shadow:8px 0 48px #00000014}.sidebar.is-open{transform:translate(0)}.sidebar-head{justify-content:space-between;align-items:center;padding:18px 22px 20px;display:flex}.sidebar-head h2{letter-spacing:.02em;margin:2px 0 0;font-size:22px;font-weight:650}.sidebar-kicker{color:var(--muted);letter-spacing:.19em;font-size:11px}.sidebar-scroll{overscroll-behavior:contain;flex:1;min-height:0;padding:0 13px 26px;overflow-y:auto}.sidebar-unlock{border:1px solid var(--accent);align-items:center;gap:13px;width:100%;padding:17px 14px;display:flex}@supports (color:color-mix(in lab,red,red)){.sidebar-unlock{border:1px solid color-mix(in srgb,var(--accent) 30%,var(--hairline))}}.sidebar-unlock{background:var(--accent-soft);text-align:left;color:var(--ink);border-radius:18px}.unlock-icon{background:var(--panel);width:39px;height:39px;color:var(--accent-ink);border-radius:13px;flex:0 0 39px;place-items:center;display:grid}.sidebar-unlock>span:nth-child(2){flex-direction:column;flex:1;gap:3px;display:flex}.sidebar-unlock strong{font-size:14px;font-weight:650}.sidebar-unlock small{color:var(--muted);font-size:12px}.sidebar-unlock>svg{color:var(--accent-ink)}.sidebar-nav{width:100%;min-height:49px;color:var(--ink);text-align:left;background:0 0;border:0;border-radius:12px;align-items:center;gap:13px;padding:0 12px;display:flex}.sidebar-character:hover,.sidebar-nav:hover{background:var(--panel-soft)}.sidebar-nav span{flex:1}.sidebar-character svg,.sidebar-nav svg:last-child{color:var(--muted)}.sidebar-section{margin-top:19px}.sidebar-section-label{color:var(--muted);letter-spacing:.04em;padding:0 12px 9px;font-size:12px}.sidebar-section-title{justify-content:space-between;padding:0 9px 9px 12px;font-size:12px}.sidebar-search,.sidebar-section-title{color:var(--muted);align-items:center;display:flex}.sidebar-search{border:1px solid var(--hairline);height:40px;background:var(--panel-soft);border-radius:99px;gap:9px;padding:0 13px}.sidebar-search input{width:100%;color:var(--ink);background:0 0;border:0;outline:0;font-size:13px}.sidebar-search input::placeholder{color:var(--muted)}.history-list{padding-top:8px}.sidebar-empty{color:var(--muted);margin:10px;font-size:13px;line-height:1.7}.history-row{border-radius:12px;align-items:center;min-height:58px;display:flex;position:relative}.history-row.active{background:var(--panel-soft)}.history-select{text-align:left;min-width:0;color:var(--ink);background:0 0;border:0;flex-direction:column;flex:1;justify-content:center;gap:4px;padding:9px 10px;display:flex}.history-title{text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:14px;display:block;overflow:hidden}.history-select small{color:var(--muted);font-size:11px}.history-actions{gap:0;padding-right:5px;display:flex}.history-actions button{width:27px;height:29px;color:var(--muted);background:0 0;border:0;place-items:center;padding:0;display:grid}.history-actions button:hover{color:var(--ink)}.history-edit{flex:1;padding:7px}.history-edit input{border:1px solid var(--accent);background:var(--panel);width:100%;color:var(--ink);border-radius:6px;font-size:13px}.import-entry{border-top:1px solid var(--hairline);border-radius:0;margin-top:15px}.sidebar-character{width:100%;min-height:43px;color:var(--ink);text-align:left;background:0 0;border:0;border-radius:10px;align-items:center;gap:11px;padding:3px 12px;font-size:13px;display:flex}.sidebar-character span:nth-child(2){flex:1}.character-monogram{background:var(--accent-soft);width:29px;height:29px;color:var(--accent-ink);border-radius:10px;place-items:center;font-family:Songti SC,serif;display:grid}.sidebar-energy{border:1px solid var(--hairline);background:var(--panel-soft);width:calc(100% - 26px);color:var(--ink);text-align:left;border-radius:17px;margin:8px 13px 14px;padding:15px 16px 13px}.energy-foot,.energy-label{align-items:center;gap:8px;display:flex}.energy-label{font-size:13px}.energy-label svg{color:var(--accent-ink)}.energy-label span{flex:1}.energy-label strong{font-size:16px}.battery-track{background:var(--hairline);border-radius:99px;height:7px;margin:13px 0 10px;overflow:hidden}.battery-track span{border-radius:inherit;background:var(--accent);min-width:0;height:100%;transition:width .3s;display:block}.energy-foot{color:var(--muted);justify-content:space-between;font-size:11px}.energy-foot>span:last-child{color:var(--accent-ink);align-items:center;display:flex}.modal-layer{z-index:20;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.modal-backdrop{z-index:0;background:#0c0f147a}.modal-panel{z-index:1;border:1px solid var(--hairline);background:var(--panel);width:min(100%,480px);max-height:min(88dvh,760px);color:var(--ink);border-radius:24px;flex-direction:column;display:flex;position:relative;overflow:hidden;box-shadow:0 24px 80px #0000002e}.modal-head{border-bottom:1px solid var(--hairline);justify-content:space-between;align-items:center;padding:21px 23px 16px;display:flex}.modal-head h2{margin:0;font-size:19px;font-weight:650}.modal-content{padding:23px;overflow-y:auto}.dialog-icon{background:var(--accent-soft);width:46px;height:46px;color:var(--accent-ink);border-radius:15px;place-items:center;display:grid}.dialog-intro{color:var(--muted);margin:17px 0 25px;font-size:14px;line-height:1.8}.field-label{margin-bottom:9px;font-size:13px;font-weight:600;display:block}.text-field{border:1px solid var(--hairline);background:var(--panel);width:100%;min-height:44px;color:var(--ink);border-radius:12px;outline:0;padding:0 13px;font-size:15px}.code-field{letter-spacing:.13em;text-transform:uppercase}.primary-button{background:var(--ink);width:100%;min-height:46px;color:var(--paper);border:0;border-radius:12px;justify-content:center;align-items:center;gap:7px;margin-top:17px;font-size:14px;font-weight:600;display:flex}.primary-button:hover:not(:disabled){background:var(--accent);color:#fff}.fine-print{color:var(--muted);margin:14px 0 0;font-size:12px;line-height:1.65}.account-content .dialog-intro{margin-bottom:22px}.account-form .text-field{font-size:16px}.account-code-row{align-items:center;gap:12px;display:flex}.account-code-row input{letter-spacing:.15em;flex:1;min-width:0}.account-code-row button{flex-shrink:0;font-size:12px}.account-change-email{margin:10px 0 20px}.account-identity{align-items:center;gap:13px;margin-bottom:25px;display:flex}.account-identity>svg{color:var(--accent-ink);flex-shrink:0}.account-identity strong{overflow-wrap:anywhere;font-size:15px}.account-identity p{color:var(--muted);margin:6px 0 0;font-size:12px}.account-actions{flex-wrap:wrap;justify-content:space-between;gap:12px;margin-top:24px;display:flex}.account-actions button{align-items:center;gap:7px;display:flex}.account-error{color:#cf5263;font-size:13px;line-height:1.7}.account-conflict{background:var(--panel-soft);border-radius:14px;margin-top:18px;padding:14px}.account-conflict p{color:var(--muted);margin:0;font-size:13px;line-height:1.8}.sheet-handle{display:none}.memory-capacity{color:var(--muted);justify-content:space-between;font-size:13px;display:flex}.memory-capacity strong{color:var(--accent-ink)}.memory-list{max-height:35dvh;margin:16px 0;overflow-y:auto}.memory-empty{border:1px dashed var(--hairline);color:var(--muted);text-align:center;border-radius:13px;padding:28px 12px;font-size:13px;line-height:1.7}.memory-item{border-bottom:1px solid var(--hairline);align-items:flex-start;gap:10px;padding:13px 4px;display:flex}.memory-item p{white-space:pre-wrap;overflow-wrap:anywhere;flex:1;margin:0;font-size:14px;line-height:1.65}.memory-delete,.memory-pin{width:28px;height:28px;color:var(--muted);background:0 0;border:0;flex:none;place-items:center;display:grid}.memory-pin.active{color:var(--accent-ink)}.memory-add{border:1px solid var(--hairline);border-radius:14px;padding:10px}.memory-add textarea{resize:vertical;width:100%;min-height:55px;color:var(--ink);background:0 0;border:0;outline:0;font-size:14px}.memory-add button{background:var(--accent-soft);color:var(--accent-ink);border:0;border-radius:8px;align-items:center;gap:5px;margin-left:auto;padding:7px 10px;font-size:13px;display:flex}.energy-summary{border:1px solid var(--hairline);background:var(--panel-soft);border-radius:16px;padding:18px}.energy-summary>div:first-child{color:var(--muted);justify-content:space-between;font-size:13px;display:flex}.energy-summary strong{color:var(--ink);font-size:22px}.energy-summary .battery-track{height:9px;margin:14px 0 8px}.energy-summary small{color:var(--muted);font-size:12px}.plans-list{margin-top:16px}.plan-row{border-bottom:1px solid var(--hairline);justify-content:space-between;align-items:center;gap:8px;min-height:75px;padding:12px 11px;display:flex}.plan-row.featured{border:1px solid var(--accent)}@supports (color:color-mix(in lab,red,red)){.plan-row.featured{border:1px solid color-mix(in srgb,var(--accent) 45%,var(--hairline))}}.plan-row.featured{background:var(--accent-soft);border-radius:13px}.plan-name{flex-wrap:wrap;align-items:center;gap:7px;font-size:14px;font-weight:620;display:flex}.plan-name span{background:var(--panel-soft);color:var(--accent-ink);border-radius:5px;padding:2px 6px;font-size:10px;font-weight:500}.plan-row small{color:var(--muted);margin-top:5px;font-size:11px;display:block}.plan-side{white-space:nowrap;align-items:center;gap:10px;display:flex}.plan-side strong{font-size:15px}.plan-side button,.redeem-form button{border:1px solid var(--hairline);background:var(--panel);color:var(--ink);border-radius:8px;padding:6px 10px;font-size:12px}.plan-side svg{color:var(--accent-ink)}.redeem-form{margin-top:22px}.redeem-form label{margin-bottom:9px;font-size:13px;font-weight:600;display:block}.redeem-form>div{gap:8px;display:flex}.redeem-form button{padding:0 15px}.upload-zone{border:1px dashed var(--hairline);background:var(--panel-soft);min-height:145px;color:var(--accent-ink);cursor:pointer;border-radius:14px;flex-direction:column;justify-content:center;align-items:center;gap:9px;display:flex;position:relative}.upload-zone strong{text-overflow:ellipsis;white-space:nowrap;max-width:90%;color:var(--ink);font-size:14px;overflow:hidden}.upload-zone span{color:var(--muted);font-size:12px}.upload-zone input{opacity:0;cursor:pointer;width:100%;position:absolute;inset:0}.gallery-header>span{text-align:center;letter-spacing:.08em;font-size:15px;font-weight:600}.gallery-header>button:last-child{justify-self:end}.gallery-main{flex:1;width:min(100%,940px);min-height:0;margin:auto;padding:25px 26px 60px;overflow-y:auto}.gallery-back{color:var(--muted);background:0 0;border:0;align-items:center;gap:6px;padding:3px 0;font-size:13px;display:inline-flex}.gallery-title{margin:35px 0 32px}.gallery-title p{color:var(--accent-ink);letter-spacing:.25em;margin:0 0 10px;font-size:11px}.gallery-title h1{margin:0 0 11px;font-family:Songti SC,STSong,serif;font-size:clamp(28px,5vw,42px);font-weight:600}.gallery-title span{color:var(--muted);font-size:14px;line-height:1.8}.gallery-empty{border:1px dashed var(--hairline);color:var(--muted);text-align:center;border-radius:17px;padding:65px 25px;font-size:14px}.character-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;display:grid}.character-card{border:1px solid var(--hairline);background:var(--panel);color:var(--ink);text-align:left;border-radius:18px;flex-direction:column;padding:0;transition:transform .18s,box-shadow .18s;display:flex;overflow:hidden}.character-card:hover{box-shadow:var(--shadow);transform:translateY(-2px)}.character-art{background:#e8e9f2;place-items:center;height:180px;display:grid;position:relative;overflow:hidden}.character-art.art-1{background:#e9e4e3}.character-art.art-2{background:#e6eceb}.character-art.art-3{background:#eae7ef}.character-art i{color:#504b7473;font-family:Songti SC,serif;font-size:84px;font-style:normal}.character-art>span{background-position:50%;background-size:cover;position:absolute;inset:0}.character-card-meta{flex-direction:column;min-height:125px;padding:15px 16px 18px;display:flex}.character-card-meta small{color:var(--muted);align-items:center;gap:5px;font-size:11px;display:flex}.character-card-meta strong{margin:7px 0;font-size:18px;font-weight:650}.character-card-meta>span{-webkit-line-clamp:2;color:var(--muted);-webkit-box-orient:vertical;font-size:13px;line-height:1.6;display:-webkit-box;overflow:hidden}.toast{z-index:40;left:50%;bottom:calc(24px + env(safe-area-inset-bottom));background:var(--ink);width:max-content;max-width:calc(100vw - 32px);color:var(--paper);box-shadow:var(--shadow);text-align:center;border-radius:11px;padding:11px 17px;font-size:13px;position:fixed;transform:translate(-50%)}@media (max-width:700px){.chat-header,.gallery-header{height:calc(60px + env(safe-area-inset-top));grid-template-columns:82px minmax(0,1fr) 82px;padding-left:14px;padding-right:14px}.gallery-header{grid-template-columns:1fr 1fr 1fr}.header-icon{width:38px;height:38px}.chat-scroll{padding-left:17px;padding-right:17px}.compliance-line{padding:14px 6px 6px;font-size:11px}.chat-welcome{padding-bottom:24px}.welcome-mark{margin-bottom:25px}.messages{margin-top:21px;padding-bottom:15px}.message{margin-bottom:29px}.message-prose{font-size:15.5px;line-height:1.94}.composer-wrap{padding:6px 12px calc(7px + env(safe-area-inset-bottom))}.composer{border-radius:25px;padding:12px 13px 10px}.composer-bottom{padding-top:10px}.composer-chip{padding:0 10px;font-size:11px}.composer-hint{display:none}.modal-layer{padding:0;display:block}.modal-panel{width:100%;max-height:min(90dvh,800px);padding-bottom:env(safe-area-inset-bottom);border-radius:23px 23px 0 0;position:absolute;bottom:0}.sheet-handle{background:var(--hairline);border-radius:99px;width:34px;height:4px;margin:9px auto 0;display:block}.modal-head{padding:18px 20px 14px}.modal-content{padding:20px}.character-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.character-art{height:140px}.character-card-meta{min-height:120px;padding:12px}.gallery-main{padding:19px 16px 40px}.gallery-title{margin:27px 0}}@media (max-width:380px){.composer-chip{gap:4px;padding:0 8px}.character-grid{grid-template-columns:1fr}}@media (prefers-reduced-motion:reduce){*,:after,:before{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}.import-preview{font-size:14px;line-height:1.8}.import-preview h3{color:var(--accent-ink);margin:18px 0 8px;font-size:14px}.import-preview p{white-space:pre-wrap}.import-preview ul{padding-left:20px}.compliance-line{z-index:1;background:var(--paper);position:sticky;top:0}@media (max-width:700px){.message-prose{font-size:16px}}.chat-scroll:has(.chat-welcome){flex-direction:column;display:flex}.chat-scroll:has(.chat-welcome) .compliance-line{flex:none;width:100%}.chat-welcome{flex:1;width:100%;min-height:0}.app-root{left:0;position:fixed}.app-root,.modal-layer{top:var(--viewport-offset-top,0)}.modal-layer{height:var(--app-height,100dvh);bottom:auto}.modal-panel{max-height:min(calc(var(--app-height,100dvh) - 40px),760px)}.sidebar{top:var(--viewport-offset-top,0)}.two-line-menu{width:21px;height:14px;display:block;position:relative}.two-line-menu:after,.two-line-menu:before{content:"";background:currentColor;border-radius:2px;height:2px;position:absolute;left:0}.two-line-menu:before{width:21px;top:2px}.two-line-menu:after{width:13px;bottom:2px}@media (max-width:700px){.modal-panel{max-height:calc(var(--app-height,100dvh) - 24px)}}.payment-method{gap:8px;margin-top:18px;display:flex}.payment-method button{border:1px solid var(--hairline);background:var(--panel);color:var(--muted);border-radius:10px;flex:1;padding:9px;font-size:13px}.payment-method button[aria-pressed=true]{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-ink)}:root{--paper:#fff;--panel:#fff;--panel-soft:#f7f7f8;--ink:#141414;--muted:#909195;--hairline:#e2e2e4;--accent:#4d6bfe;--accent-soft:#edf2ff;--accent-ink:#4d6bfe;--user-bubble:#f3f4f6;--shadow:0 8px 26px #0000000b;--drawer-width:332px;--float-surface:linear-gradient(145deg,#fff,#fafafa)}:root[data-theme=dark]{--paper:#171717;--panel:#212121;--panel-soft:#292929;--ink:#f2f2f2;--muted:#939396;--hairline:#373737;--accent:#7d95ff;--accent-soft:#27334d;--accent-ink:#92a5ff;--user-bubble:#303030;--shadow:0 8px 26px #00000026;--float-surface:linear-gradient(145deg,#242424,#202020)}.main-surface{z-index:2;background:var(--paper);border:1px solid #0000;width:100%;height:100%;transition:transform .28s,border-radius .28s,border-color .28s;position:relative;overflow:hidden}.main-surface.drawer-open{transform:translateX(var(--drawer-width));border-color:var(--hairline);border-radius:38px;box-shadow:-12px 0 45px #0000000b}.chat-header,.gallery-header{height:calc(88px + env(safe-area-inset-top));padding:calc(18px + env(safe-area-inset-top)) 16px 16px;background:var(--paper);border-bottom:0;grid-template-columns:92px minmax(0,1fr) 92px}.header-icon{width:42px;height:42px}.menu-button{width:45px}.header-actions,.menu-button{border:1px solid var(--hairline);background:var(--float-surface);height:45px;box-shadow:var(--shadow)}.header-actions{width:90px;border-radius:26px;justify-self:end;gap:0;padding:1px 2px}.header-actions .header-icon{flex:1;height:41px}.header-actions .header-icon:hover{color:var(--accent-ink);background:0 0}.chat-header-person strong{letter-spacing:0;font-size:16px;font-weight:600}.chat-header-person small{font-size:11px}.status-dot{display:none}.compliance-line{letter-spacing:0;padding:4px 3px 9px;font-size:11px;font-weight:400;line-height:1.6}.chat-welcome{padding:0 8px 12px}.chat-welcome h1{letter-spacing:0;max-width:600px;font-family:inherit;font-size:22px;font-weight:650;line-height:1.6}.chat-welcome p:not(.welcome-eyebrow){max-width:430px;margin-top:13px;font-size:14px;line-height:1.8}.chat-welcome .text-button{color:var(--muted);margin-top:18px;font-size:13px;font-weight:400}.chat-welcome .text-button:hover{color:var(--accent-ink)}.welcome-actions{flex-wrap:wrap;justify-content:center;gap:10px;margin-top:22px;display:flex}.chat-welcome:has(.welcome-actions) p{text-wrap:balance}.welcome-pill{border:1px solid var(--hairline);background:var(--paper);min-height:39px;color:var(--ink);border-radius:999px;padding:8px 16px;font-size:13px;line-height:1.5}.welcome-pill:hover{background:var(--panel-soft)}.welcome-primary{border-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.welcome-primary{border-color:color-mix(in srgb,var(--accent) 25%,var(--hairline))}}.welcome-primary{color:var(--accent-ink);background:var(--accent-soft)}.welcome-primary:hover{background:var(--accent)}@supports (color:color-mix(in lab,red,red)){.welcome-primary:hover{background:color-mix(in srgb,var(--accent) 14%,var(--paper))}}.composer-wrap{width:min(100%,840px);padding:8px 12px max(22px,env(safe-area-inset-bottom))}.composer{background:var(--float-surface);border:1px solid #d4d4d6;border-radius:32px;min-height:112px;padding:15px 14px 13px;box-shadow:0 9px 25px #00000013,inset 0 0 20px #f7f7f966}:root[data-theme=dark] .composer{box-shadow:var(--shadow);border-color:#414141}.composer textarea{min-height:36px;padding:1px 4px;font-size:18px;line-height:1.65}.composer textarea:disabled{opacity:1;-webkit-text-fill-color:var(--ink)}.composer textarea::placeholder{color:#a1a1a6;-webkit-text-fill-color:#a1a1a6}.composer-bottom{gap:10px;padding-top:14px}.composer-chips{flex-wrap:nowrap;gap:8px}.composer-chip{border:1px solid var(--hairline);min-height:33px;color:var(--muted);background:0 0;gap:6px;padding:0 11px;font-size:14px}.composer-chip.memory-chip{color:var(--accent-ink);background:var(--accent-soft);border-color:#d6e0ff}:root[data-theme=dark] .memory-chip{border-color:#3d507a}.send-button{border:1.8px solid var(--ink);width:31px;height:31px;color:var(--ink);background:0 0}.send-button:disabled{opacity:.3}.send-button:not(:disabled){color:#fff;background:#4d6bfe;border-color:#4d6bfe}.send-button.select-character-send{color:var(--muted);border-color:var(--muted);background:0 0}.composer textarea[readonly]{cursor:pointer}.messages{max-width:720px;padding:0 3px 26px}.message-speaker{color:var(--muted);font-size:12px;font-weight:500}.message-prose{letter-spacing:0;line-height:1.95}.message-prose .action-text{font-family:inherit}.user-bubble{border-radius:20px;padding:12px 17px}.drawer-backdrop{left:var(--drawer-width);width:calc(100% - var(--drawer-width));z-index:8;background:#ffffffa6;border-radius:38px 0 0 38px}:root[data-theme=dark] .drawer-backdrop{background:#1717178c}.sidebar{width:var(--drawer-width);z-index:9;background:var(--paper);box-shadow:none;border:0}.sidebar-search-area{flex:none;padding:20px 24px 12px 16px}.sidebar-search{border-color:var(--hairline);background:var(--float-surface);border-radius:26px;gap:10px;height:48px;padding:0 15px;box-shadow:0 4px 14px #00000006}.sidebar-search input{font-size:16px}.sidebar-scroll{scrollbar-width:thin;padding:0 20px 22px 14px}.sidebar-destinations{padding:4px 0 16px}.sidebar-unlock{min-height:42px;color:var(--accent-ink);box-shadow:none;background:0 0;border:0;border-radius:11px;gap:10px;padding:8px;font-size:14px}.sidebar-unlock>span{flex:1}.sidebar-unlock:hover{background:var(--accent-soft)}.sidebar-nav{border-radius:10px;gap:10px;min-height:42px;padding:0 8px;font-size:14px}.sidebar-nav>svg{color:var(--muted)}.sidebar-code-form{margin:4px 8px 14px}.sidebar-code-form label{color:var(--muted);margin:0 0 7px;font-size:12px;display:block}.sidebar-code-form>div{gap:7px;display:flex}.sidebar-code-form input{background:var(--panel-soft);width:100%;min-width:0;color:var(--ink);flex:1;padding:10px 12px;font-size:16px}.sidebar-code-form button,.sidebar-code-form input{border:1px solid var(--hairline);border-radius:13px}.sidebar-code-form button{color:var(--accent-ink);background:var(--accent-soft);flex-shrink:0;padding:8px 12px;font-size:13px}.sidebar-code-form button:disabled{opacity:.45}.sidebar-gallery{border:1px solid #0000;border-radius:15px;margin:0 0 18px;scroll-margin-top:8px}.sidebar-gallery.is-highlighted{border-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.sidebar-gallery.is-highlighted{border-color:color-mix(in srgb,var(--accent) 32%,var(--hairline))}}.sidebar-gallery.is-highlighted{background:var(--accent-soft)}@supports (color:color-mix(in lab,red,red)){.sidebar-gallery.is-highlighted{background:color-mix(in srgb,var(--accent-soft) 45%,var(--paper))}}.sidebar-gallery .sidebar-character{min-height:58px;padding:8px}.sidebar-character-copy{flex-direction:column;gap:4px;min-width:0;display:flex}.sidebar-character-copy strong{color:var(--ink);font-size:14px;font-weight:500}.sidebar-character-copy small{text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:12px;overflow:hidden}.sidebar-gallery-more{color:var(--muted);background:0 0;border:0;margin:6px 8px 12px;padding:3px 0;font-size:12px}.history-section{margin:0}.history-group+.history-group{margin-top:22px}.history-group-label{color:var(--muted);padding:7px 8px 8px;font-size:14px;font-weight:500}.history-row{border-radius:11px;min-height:46px}.history-select{min-height:46px;padding:9px 8px}.history-title{font-size:16px;line-height:1.7}.history-more{width:29px;height:34px;color:var(--muted);opacity:.65;background:0 0;border:0;flex:0 0 29px;place-items:center;padding:0;display:grid}.history-more:hover,.history-more[aria-expanded=true]{opacity:1;color:var(--ink)}.history-menu{z-index:3;border:1px solid var(--hairline);background:var(--panel);border-radius:13px;min-width:132px;padding:6px;position:absolute;top:40px;right:4px;box-shadow:0 8px 24px #0000001a}.history-menu button{width:100%;color:var(--ink);background:0 0;border:0;border-radius:8px;align-items:center;gap:9px;padding:10px;font-size:14px;display:flex}.history-menu button:hover{background:var(--panel-soft)}.sidebar-empty{margin:6px 8px 24px;font-size:14px}.import-entry{color:var(--muted);border-top:0;margin-top:22px}.sidebar-footer{background:var(--paper);box-shadow:0 -14px 25px var(--paper);flex:none;padding:8px 20px 18px 16px}.sidebar-account{width:100%;color:var(--ink);text-align:left;background:0 0;border:0;align-items:center;gap:13px;padding:0;display:flex}.account-avatar{background:var(--hairline);width:34px;height:34px;color:var(--muted);border-radius:50%;place-items:center;display:grid}.sidebar-account>span:nth-child(2){text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:16px;overflow:hidden}.sidebar-account>svg,.sidebar-energy{color:var(--muted)}.sidebar-energy{width:100%;background:0 0;border:0;border-radius:0;align-items:center;gap:8px;margin:14px 0 0;padding:0 0 0 2px;font-size:12px;display:flex}.sidebar-energy small{text-align:left;flex:1;font-size:12px}.energy-recharge{color:var(--accent-ink)}.mini-battery{border:1px solid var(--muted);border-radius:3px;width:27px;height:12px;padding:2px;display:block;position:relative}.mini-battery:after{content:"";background:var(--muted);border-radius:0 2px 2px 0;width:2px;height:5px;position:absolute;top:2.5px;right:-4px}.mini-battery>span{background:var(--muted);border-radius:1px;max-width:100%;height:100%;display:block}.gallery-header{grid-template-columns:1fr 1fr 1fr}.gallery-header>.header-icon{border:1px solid var(--hairline);background:var(--float-surface);box-shadow:var(--shadow)}.gallery-title h1{font-family:inherit;font-size:30px;font-weight:650}.gallery-title p{display:none}.dialog-icon,.unlock-icon{border-radius:50%}@media (max-width:700px){:root{--drawer-width:min(360px,calc(100vw - 70px))}.chat-header,.gallery-header{height:calc(84px + env(safe-area-inset-top));padding:calc(18px + env(safe-area-inset-top)) 15px 14px}.chat-header{grid-template-columns:90px minmax(0,1fr) 90px}.chat-header-person strong{font-size:15px}.chat-header-person small{font-size:10px}.chat-scroll{padding-left:19px;padding-right:19px}.chat-welcome h1{font-size:20px}.chat-welcome{padding-bottom:0}.compliance-line{font-size:10px}.composer-wrap{padding:8px 11px max(24px,env(safe-area-inset-bottom))}.composer{border-radius:32px}.composer-bottom{padding-top:14px}.composer-chip{padding:0 10px;font-size:14px}.sidebar-search-area{padding-top:22px}}@media (max-width:360px){:root{--drawer-width:calc(100vw - 54px)}.chat-header{grid-template-columns:70px minmax(0,1fr) 88px}.composer{padding-left:12px;padding-right:12px}.composer-chips{gap:6px}.composer-chip{padding:0 8px;font-size:12px}.composer-chip svg{width:16px}.chat-welcome h1{font-size:18px}}@media (max-height:520px){.chat-header,.composer-wrap{padding-bottom:8px}.chat-header{height:62px;padding-top:8px}.chat-welcome{padding:5px}}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}