:root{--bg:#f5f8f7;--surface:#ffffff;--surface-2:#e8efed;--text:#1b3335;--muted:#52696b;--line:#d8e4e1;--accent:#236b64;--accent-hover:#19554f;--soft:#e0efea;--shadow:0 18px 50px #302a2010;--radius:22px;--serif:Georgia,'Times New Roman',serif;--sans:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color-scheme:light}
[data-theme=dark]{--bg:#182326;--surface:#202f33;--surface-2:#2a3d40;--text:#e8f2ef;--muted:#b3c7c7;--line:#34484b;--accent:#83c7bc;--accent-hover:#9ed9ce;--soft:#263f3e;--shadow:0 18px 50px #0002;color-scheme:dark}
*{box-sizing:border-box}body{margin:0;font-family:var(--sans);background:var(--bg);color:var(--text);font-size:15px;line-height:1.5}button,input,textarea,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}a{color:inherit;text-decoration:none}button{color:inherit}button,input,textarea,select{outline-offset:5px}button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:5px}input:focus,textarea:focus{outline:2px solid var(--accent);outline-offset:1px}button{border:0}svg{display:block}h1,h2,h3,p{margin:0}h1,h2,h3{font-weight:500}h1,h2{font-family:var(--serif)}.shell{max-width:1440px;margin:auto;padding:0 56px}.site-header{height:100px;display:flex;align-items:center;gap:42px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:9px;font-family:var(--sans);font-size:29px;font-weight:500;letter-spacing:-1.2px}.brand-mark{display:inline-block;flex:none;width:1em;height:1em;font-size:43px;color:var(--accent);background:currentColor;-webkit-mask:url(/static/brand-mark.svg) center/contain no-repeat;mask:url(/static/brand-mark.svg) center/contain no-repeat}.top-nav{display:flex;gap:8px;margin:auto}.nav-link{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;letter-spacing:.01em;padding:11px 17px;border-radius:30px;color:var(--muted)}.nav-link.active{background:var(--surface-2);color:var(--text)}.nav-link:hover{color:var(--text)}.nav-link svg{width:16px;height:16px}.header-actions{display:flex;align-items:center;gap:13px}.icon-btn{width:38px;height:38px;border-radius:50%;background:transparent;display:grid;place-items:center;color:var(--muted)}.icon-btn:hover{background:var(--surface-2);color:var(--text)}.icon-btn svg{width:19px;height:19px}.profile{display:grid;place-items:center;background:#e8d4b9;color:#594a36;border:1px solid #bfae9730;width:34px;height:34px;border-radius:50%;font-size:11px;font-weight:700}.user-menu{position:relative}.user-menu summary{cursor:pointer;list-style:none}.user-menu summary::-webkit-details-marker{display:none}.profile-menu{position:absolute;right:0;top:46px;z-index:20;padding:17px;background:var(--surface);border:1px solid var(--line);border-radius:14px;min-width:220px;box-shadow:var(--shadow)}.profile-menu p{font-size:13px;overflow-wrap:anywhere}.profile-menu small{color:var(--muted)}.profile-menu button{margin-top:13px;background:var(--surface-2);width:100%;border-radius:8px;padding:8px}.dev-badge{display:inline-flex;border:1px solid var(--line);padding:3px 8px;border-radius:6px;color:var(--muted);font-size:10px;font-weight:600;letter-spacing:.04em}.hero{padding:62px 0 39px;display:flex;align-items:flex-end;justify-content:space-between;gap:28px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--accent);display:flex;align-items:center;gap:8px;margin-bottom:16px}.eyebrow:before{content:'';height:5px;width:5px;border-radius:50%;background:var(--accent)}h1{font-size:52px;line-height:1.14;letter-spacing:-1.8px}.hero h1 em{font-weight:400;color:var(--accent)}.hero p{color:var(--muted);font-size:14px;margin-top:17px;max-width:510px;line-height:1.7}.hero-note{max-width:178px;font-family:var(--serif);font-style:italic;font-size:18px;color:var(--muted);line-height:1.5;padding-bottom:4px}.hero-note .brand-mark-note{display:block;font-size:33px;color:var(--accent);margin-bottom:9px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:25px 0 27px;border-top:1px solid var(--line)}.filters{display:flex;gap:8px;flex-wrap:wrap}.filter{background:transparent;border:1px solid var(--line);border-radius:24px;padding:8px 16px;font-size:12px;color:var(--muted);white-space:nowrap}.filter.active{background:var(--text);color:var(--bg);border-color:var(--text)}.filter:hover{border-color:var(--muted)}.search{display:flex;align-items:center;gap:10px;padding:9px 0 9px 12px;min-width:190px}.search svg{width:16px;height:16px;color:var(--muted)}.search input{background:transparent;border:0;color:var(--text);width:170px;font-size:12px;padding:4px}.search input::placeholder{color:var(--muted)}.results-count{display:flex;align-items:center;justify-content:space-between;margin:0 0 20px;font-size:11px;color:var(--muted)}.results-count .tiny-label{letter-spacing:.12em;text-transform:uppercase;font-size:9px}.gallery{columns:3;column-gap:22px;padding-bottom:35px}.character-card{display:inline-block;width:100%;margin:0 0 22px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;text-align:left;box-shadow:0 3px 10px #2c2b221a;transition:transform .22s,box-shadow .22s;break-inside:avoid;padding:0}.character-card:hover{transform:translateY(-5px);box-shadow:var(--shadow)}.portrait{width:100%;position:relative;overflow:hidden;isolation:isolate;height:240px;background:#d9dfd0;color:#384c43}.portrait svg{width:100%;height:100%;position:absolute;inset:0}.character-card:nth-child(4n+2) .portrait{height:288px}.character-card:nth-child(4n+3) .portrait{height:215px}.character-card:nth-child(4n+4) .portrait{height:265px}.portrait-name{position:absolute;bottom:15px;left:18px;font-size:9px;letter-spacing:.18em;text-transform:uppercase;opacity:.75;z-index:2}.portrait-badge{position:absolute;top:13px;right:13px;background:#fffc;border:1px solid #fff5;border-radius:15px;padding:4px 9px;font-size:8px;font-weight:600;letter-spacing:.08em;color:#3e453e;text-transform:uppercase}.card-content{padding:20px 20px 17px}.card-title{display:flex;align-items:center;gap:9px;margin-bottom:6px}.card-title h3{font-family:var(--serif);font-size:25px;letter-spacing:-.6px}.status-dot{width:5px;height:5px;border-radius:50%;background:#7d9673}.card-tagline{font-size:11px;color:var(--accent);font-weight:600;margin-bottom:10px}.card-description{font-size:12px;color:var(--muted);line-height:1.7;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.card-bottom{margin-top:18px;border-top:1px solid var(--line);padding-top:13px;display:flex;align-items:center;justify-content:space-between}.tags{display:flex;gap:5px;flex-wrap:wrap}.tag{font-size:9px;padding:3px 7px;background:var(--surface-2);color:var(--muted);border-radius:5px}.card-arrow{width:25px;height:25px;background:var(--soft);color:var(--accent);border-radius:50%;display:grid;place-items:center}.card-arrow svg{width:13px;height:13px}.footer{border-top:1px solid var(--line);padding:23px 0 30px;display:flex;justify-content:space-between;font-size:10px;color:var(--muted)}.footer .brand{font-size:17px;gap:5px}.footer .brand-mark{font-size:24px}.footer div{display:flex;align-items:center;gap:16px}.btn{display:inline-flex;justify-content:center;align-items:center;gap:9px;min-height:43px;border-radius:10px;padding:11px 18px;background:var(--accent);color:#fff;font-size:12px;font-weight:600;transition:background .2s}.btn:hover{background:var(--accent-hover)}.btn svg{width:16px;height:16px}.btn.secondary{color:var(--text);background:var(--surface-2);border:1px solid var(--line)}.btn.secondary:hover{background:var(--line)}.btn.quiet{color:var(--muted);background:transparent}.btn.danger{color:#bd4b41;background:#bd4b4115}.empty-state{text-align:center;padding:70px 24px}.empty-state .empty-icon{width:65px;height:65px;border-radius:24px;background:var(--soft);color:var(--accent);display:grid;place-items:center;margin:0 auto 20px}.empty-icon svg{width:28px;height:28px}.empty-state h2{font-size:28px;margin-bottom:10px}.empty-state p{max-width:420px;margin:auto;color:var(--muted);font-size:13px}.empty-state .btn{margin-top:23px}.notice{padding:13px 17px;border-radius:10px;border:1px solid var(--line);background:var(--soft);font-size:12px;line-height:1.6;color:var(--text);margin-bottom:20px}.notice.error{background:#bf423510;border-color:#bf423540;color:#c05b4a}.chat-layout{height:calc(100dvh - 101px);display:grid;grid-template-columns:255px minmax(0,1fr);margin:0 -56px}.chat-sidebar{border-right:1px solid var(--line);padding:26px 18px 20px 28px;overflow-y:auto}.sidebar-top{display:flex;align-items:center;justify-content:space-between;padding:0 8px 20px}.sidebar-top h2{font-family:var(--sans);font-size:12px;font-weight:600}.chat-entry{display:flex;width:100%;text-align:left;padding:13px 10px;border-radius:11px;gap:10px;background:transparent;margin-bottom:4px}.chat-entry:hover,.chat-entry.active{background:var(--surface-2)}.mini-avatar{width:36px;height:36px;flex:none;border-radius:12px;background:#e6d1b9;overflow:hidden;position:relative}.mini-avatar svg{width:100%;height:100%}.chat-entry strong{font-size:11px;font-weight:600;display:block}.chat-entry small{display:block;font-size:10px;color:var(--muted);max-width:147px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}.chat-entry .entry-copy{min-width:0}.chat-main{display:flex;flex-direction:column;min-height:0;position:relative}.chat-heading{min-height:85px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px;padding:17px 36px}.chat-heading h2{font-family:var(--serif);font-size:23px}.chat-heading p{font-size:10px;color:var(--muted);margin-top:2px}.chat-heading .heading-actions{margin-left:auto;display:flex;gap:4px}.chat-heading .mini-avatar{width:44px;height:44px;border-radius:16px}.messages{flex:1;overflow-y:auto;scroll-behavior:smooth;padding:30px max(30px,calc((100% - 720px)/2));}.chat-intro{text-align:center;padding:35px 0 30px}.chat-intro .mini-avatar{width:84px;height:84px;border-radius:28px;margin:auto auto 19px}.chat-intro h2{font-size:30px;margin-bottom:8px}.chat-intro p{font-size:12px;max-width:380px;color:var(--muted);margin:auto;line-height:1.7}.message{display:flex;gap:12px;margin-bottom:25px;align-items:flex-start}.message .mini-avatar{height:29px;width:29px;border-radius:10px}.message-body{max-width:90%;min-width:0}.message-label{font-size:10px;font-weight:600;color:var(--muted);margin-bottom:6px}.message-text{font-size:13px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere}.message.user{justify-content:flex-end}.message.user .message-body{background:var(--surface-2);border-radius:17px 17px 4px 17px;padding:12px 18px;max-width:85%}.message.user .message-label{display:none}.message.error .message-text{color:#c86b55}.composer-area{padding:12px max(25px,calc((100% - 750px)/2)) 19px}.composer{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:12px 13px;box-shadow:0 5px 20px #00000005;display:flex;align-items:flex-end;gap:10px}.composer:focus-within{border-color:var(--accent)}.composer textarea{resize:none;max-height:160px;min-height:42px;width:100%;background:transparent;border:0;outline:none!important;color:var(--text);font-size:13px;padding:9px 7px;line-height:1.7}.send-btn{width:38px;height:38px;border-radius:12px;background:var(--accent);color:#fff;display:grid;place-items:center;flex:none}.send-btn svg{width:18px;height:18px}.composer-note{text-align:center;font-size:9px;color:var(--muted);margin-top:10px}.typing{display:flex;gap:5px;padding:10px 0}.typing span{width:5px;height:5px;background:var(--accent);border-radius:50%;animation:pulse 1.1s infinite}.typing span:nth-child(2){animation-delay:.15s}.typing span:nth-child(3){animation-delay:.3s}@keyframes pulse{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-4px)}}.chat-list{padding-bottom:60px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.chat-list-card{border:1px solid var(--line);background:var(--surface);border-radius:17px;display:flex;align-items:center;min-width:0;padding:22px;gap:15px;text-align:left}.chat-list-card>svg{width:20px;height:20px;flex:0 0 20px;color:var(--muted)}.chat-list-card .mini-avatar{width:64px;height:64px;border-radius:17px}.chat-list-card .chat-copy{flex:1;min-width:0}.chat-list-card h3{font-family:var(--serif);font-size:22px}.chat-list-card p{font-size:14px;color:var(--muted);margin-top:5px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:100%}.chat-list-card small{font-size:12px;color:var(--muted)}.chat-list-card:hover{border-color:var(--accent)}.create-card{border:1px dashed var(--line);border-radius:var(--radius);height:235px;width:100%;display:inline-flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;background:transparent;color:var(--muted);margin-bottom:22px;break-inside:avoid}.create-card:hover{border-color:var(--accent);color:var(--accent)}.create-card span{height:45px;width:45px;border-radius:50%;background:var(--surface-2);font-size:25px;display:grid;place-items:center}.create-card strong{font-family:var(--serif);font-size:24px;font-weight:400}.create-card small{font-size:11px}.owned-controls{display:flex;justify-content:flex-end;gap:8px;margin-top:-13px;margin-bottom:22px}.owned-controls button{background:transparent;color:var(--muted);font-size:10px;padding:5px 8px}.wizard-wrap{max-width:1000px;margin:42px auto 70px}.wizard-top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:38px}.wizard-top h1{font-size:38px}.steps{display:flex;gap:22px;margin:30px 0 38px;border-bottom:1px solid var(--line);padding-bottom:18px}.step{font-size:11px;display:flex;align-items:center;gap:7px;color:var(--muted)}.step span{width:21px;height:21px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;font-size:10px}.step.active{color:var(--accent);font-weight:600}.step.active span{color:#fff;background:var(--accent);border-color:var(--accent)}.wizard-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:60px}.wizard-form h2{font-size:29px;margin-bottom:8px}.wizard-form>p{color:var(--muted);font-size:12px;margin-bottom:28px}.field{display:block;margin-bottom:21px;font-size:11px;font-weight:600}.field .label-line{display:flex;justify-content:space-between;margin-bottom:8px;gap:12px}.field .optional{font-weight:400;color:var(--muted)}.field input,.field textarea,.field select{border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--text);width:100%;padding:12px;font-size:12px;line-height:1.7}.field textarea{resize:vertical;min-height:106px}.field small{font-size:10px;font-weight:400;color:var(--muted);display:block;margin-top:6px}.form-actions{border-top:1px solid var(--line);padding-top:23px;margin-top:30px;display:flex;justify-content:space-between;gap:12px}.swatches{display:flex;gap:10px}.swatch{height:31px;width:31px;background:var(--swatch);border-radius:50%;border:3px solid var(--surface)}.swatch.selected{outline:1px solid var(--text);outline-offset:2px}.wizard-preview{position:sticky;top:24px;align-self:start}.wizard-preview .character-card{cursor:default}.wizard-preview .portrait{height:230px}.preview-label{font-size:9px;color:var(--muted);text-transform:uppercase;letter-spacing:.14em;margin-bottom:13px}.review-block{background:var(--surface);border:1px solid var(--line);border-radius:13px;padding:20px;margin-top:15px}.review-block h3{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.1em;margin-bottom:9px}.review-block p{font-size:12px;white-space:pre-wrap;line-height:1.8;overflow-wrap:anywhere}.login-layout{display:grid;grid-template-columns:1fr 1fr;min-height:calc(100dvh - 160px);align-items:center;gap:90px;padding:60px 0}.login-copy h1{font-size:65px}.login-copy p{font-size:15px;line-height:1.9;color:var(--muted);margin:25px 0 30px;max-width:410px}.login-art{height:530px;position:relative}.login-art .portrait{position:absolute;width:62%;height:330px;border-radius:130px 130px 18px 18px;box-shadow:var(--shadow);transform:rotate(-9deg);left:0;top:20px}.login-art .portrait:nth-child(2){left:35%;top:165px;transform:rotate(10deg);width:60%;height:310px}.login-art .art-caption{position:absolute;bottom:0;left:12%;font-family:var(--serif);font-size:18px;color:var(--muted);font-style:italic}.login-copy .dev-badge{margin-top:22px}.initial-loading{min-height:80dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;color:var(--muted);font-size:13px}.initial-loading .brand-mark{font-size:60px;animation:brand-breathe 2s ease-in-out infinite}@keyframes brand-breathe{50%{opacity:.45;transform:translateY(-3px)}}#toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%,20px);background:var(--text);color:var(--bg);padding:12px 20px;border-radius:12px;font-size:12px;z-index:100;box-shadow:var(--shadow);opacity:0;transition:.2s;pointer-events:none;max-width:90%;text-align:center}#toast.visible{opacity:1;transform:translate(-50%,0)}.modal-backdrop{position:fixed;inset:0;background:#14221cb0;z-index:80;display:grid;place-items:center;padding:24px;backdrop-filter:blur(5px)}.modal{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:30px;max-width:410px;width:100%;box-shadow:var(--shadow)}.modal h2{font-size:27px;margin-bottom:13px}.modal p{color:var(--muted);font-size:13px;line-height:1.8}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.mobile-back{display:none}.section-loading{padding:80px;text-align:center;color:var(--muted);font-size:12px}.inset-heading{font-size:12px;font-weight:600;color:var(--muted);margin-bottom:20px}.login-help{font-size:11px!important;margin:18px 0!important}.accessibility-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(min-width:1500px){.shell{max-width:1420px}.hero{padding-top:70px}.gallery{column-gap:26px}.character-card{margin-bottom:26px}.portrait{height:265px}.character-card:nth-child(4n+2) .portrait{height:310px}.character-card:nth-child(4n+3) .portrait{height:240px}}
@media(max-width:1150px){.shell{padding:0 30px}.gallery{columns:3}.chat-layout{margin:0 -30px;grid-template-columns:220px minmax(0,1fr)}.chat-sidebar{padding-left:14px}.site-header{gap:20px}.nav-link{padding:10px 13px}.hero-note{font-size:16px}.wizard-layout{gap:35px}.chat-heading{padding:17px 25px}.messages{padding:25px}.login-copy h1{font-size:53px}.login-layout{gap:40px}.login-art{height:450px}.login-art .portrait{height:275px}.login-art .portrait:nth-child(2){height:260px;top:140px}}
@media(max-width:800px){.shell{padding:0 22px}.site-header{height:85px;gap:10px}.brand{font-size:25px}.brand-mark{font-size:36px}.top-nav{gap:0}.nav-link{padding:9px 11px;font-size:11px}.nav-link svg{display:none}.header-actions{gap:5px}.dev-badge.header-dev{font-size:8px;padding:3px 5px}.hero{padding:42px 0 30px}h1{font-size:43px}.hero-note{display:none}.gallery{columns:2;column-gap:18px}.character-card{margin-bottom:18px}.toolbar{flex-wrap:wrap;gap:15px;padding:20px 0}.search{width:100%;padding:8px 12px;border:1px solid var(--line);border-radius:9px}.search input{width:100%}.filters{gap:6px}.filter{padding:7px 12px;font-size:11px}.chat-layout{height:calc(100dvh - 86px);margin:0 -22px;grid-template-columns:190px minmax(0,1fr)}.chat-sidebar{padding:22px 8px}.sidebar-top{padding-left:8px}.chat-entry{gap:8px;padding:11px 7px}.chat-entry small{max-width:115px}.chat-heading{padding:15px;gap:9px}.chat-heading h2{font-size:22px}.chat-heading p{max-width:170px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.chat-heading .heading-actions{gap:0}.messages{padding:25px 17px}.composer-area{padding:10px 15px 15px}.chat-list{grid-template-columns:1fr}.wizard-layout{grid-template-columns:minmax(0,1fr) 230px;gap:25px}.wizard-top h1{font-size:33px}.wizard-preview .portrait{height:200px}.login-layout{grid-template-columns:1fr;min-height:auto;gap:30px;padding:60px 10px}.login-copy{max-width:520px}.login-art{display:none}.login-copy h1{font-size:61px}.footer{gap:20px}.footer div{gap:10px}.footer small{display:none}}
@media(max-width:560px){.shell{padding:0 18px}.site-header{height:80px;flex-wrap:wrap;gap:0;justify-content:space-between;position:relative;padding-bottom:32px;padding-top:10px}.brand{font-size:23px}.brand-mark{font-size:31px}.top-nav{position:absolute;bottom:0;left:0;right:0;justify-content:center;height:31px;gap:27px}.nav-link{font-size:10px;padding:5px 9px;border-radius:0;background:transparent!important;border-bottom:2px solid transparent}.nav-link.active{border-bottom-color:var(--accent);color:var(--text)}.header-actions{margin-top:-1px}.icon-btn{height:29px;width:29px}.icon-btn svg{width:16px;height:16px}.profile{height:27px;width:27px;font-size:9px}.hero{padding:34px 0 25px;align-items:flex-start}.hero h1{font-size:39px;letter-spacing:-1.4px}.hero p{font-size:12px;margin-top:13px}.eyebrow{font-size:8px;margin-bottom:12px;letter-spacing:.14em}.gallery{column-gap:12px}.character-card{border-radius:15px;margin-bottom:13px}.portrait{height:185px!important}.character-card:nth-child(even) .portrait{height:220px!important}.portrait-name{font-size:7px;left:12px;bottom:12px}.portrait-badge{font-size:6px;top:9px;right:9px;padding:3px 6px}.card-content{padding:13px 12px}.card-title{gap:6px}.card-title h3{font-size:22px}.card-tagline{font-size:9px;line-height:1.5;margin-bottom:7px}.card-description{font-size:10px;line-height:1.6;-webkit-line-clamp:3}.card-bottom{margin-top:12px;padding-top:9px;gap:5px}.tag{font-size:7px;padding:3px 5px}.tags{gap:4px}.card-arrow{height:20px;width:20px;flex:none}.card-arrow svg{width:11px;height:11px}.results-count{font-size:10px;margin-bottom:15px}.results-count .tiny-label{font-size:7px}.filter{font-size:10px;padding:6px 10px}.footer{font-size:8px;padding:20px 0;align-items:center}.footer .brand{font-size:16px}.footer .brand-mark{font-size:22px}.footer div{gap:8px}.chat-layout{margin:0 -18px;display:block;height:calc(100dvh - 81px)}.chat-sidebar{display:none}.chat-main{height:100%}.chat-heading{min-height:74px;padding:12px 13px}.chat-heading .mini-avatar{width:35px;height:35px;border-radius:12px}.chat-heading h2{font-size:21px}.chat-heading p{font-size:9px;max-width:160px}.heading-actions .icon-btn{width:30px;height:30px}.mobile-back{display:grid}.message-text{font-size:12px}.message{gap:9px;margin-bottom:23px}.message-body{max-width:87%}.messages{padding:20px 18px}.chat-intro{padding:25px 0}.chat-intro h2{font-size:27px}.chat-intro p{font-size:11px}.composer-area{padding:10px 13px 15px}.composer{border-radius:14px;padding:8px}.composer textarea{font-size:12px}.composer-note{font-size:8px}.chat-list-card{padding:16px}.chat-list-card .mini-avatar{width:56px;height:56px;border-radius:16px}.chat-list-card h3{font-size:21px}.hero .btn{font-size:10px;padding:10px 12px;min-height:38px;white-space:nowrap;margin-top:20px}.hero.has-action{flex-wrap:wrap;gap:0}.hero.has-action .btn{margin-top:20px}.wizard-wrap{margin:28px auto 45px}.wizard-top{margin-bottom:20px}.wizard-top h1{font-size:29px}.wizard-top .btn{font-size:10px;padding:8px 12px;min-height:35px}.steps{gap:15px;margin:20px 0 26px}.step{font-size:10px;gap:5px}.step span{height:19px;width:19px;font-size:9px}.wizard-layout{display:block}.wizard-preview{display:none}.wizard-form h2{font-size:27px}.wizard-form>p{font-size:11px;margin-bottom:22px}.form-actions .btn{padding:10px 15px;font-size:11px}.create-card{height:210px;border-radius:15px}.create-card strong{font-size:20px}.create-card small{font-size:9px}.empty-state{padding:50px 18px}.empty-state h2{font-size:25px}.empty-state p{font-size:12px}.login-copy h1{font-size:48px}.login-layout{padding:48px 0}.login-copy p{font-size:13px}.chat-list-card p{font-size:13px}.notice{font-size:11px}.owned-controls{margin-bottom:15px}.owned-controls button{font-size:9px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Maintain readable controls and small accent labels in both themes. */
:root{--muted:#52696b;--accent-ink:#236b64;--button-bg:#236b64;--button-hover:#19554f;--button-text:#fff}
[data-theme=dark]{--muted:#b3c7c7;--accent-ink:#83c7bc;--button-bg:#83c7bc;--button-hover:#9ed9ce;--button-text:#182326}
.eyebrow,.card-tagline,.step.active{color:var(--accent-ink)}
.btn:not(.secondary):not(.quiet):not(.danger),.send-btn,.step.active span{background:var(--button-bg);color:var(--button-text)}
.btn:not(.secondary):not(.quiet):not(.danger):hover,.send-btn:hover{background:var(--button-hover)}

@media(min-width:1151px){.gallery.many-characters{columns:4}.gallery:not(.many-characters) .portrait{height:300px}.gallery:not(.many-characters) .character-card:nth-child(4n+2) .portrait{height:350px}.gallery:not(.many-characters) .character-card:nth-child(4n+3) .portrait{height:275px}.gallery:not(.many-characters) .character-card:nth-child(4n+4) .portrait{height:325px}}

/* Local account forms share the same surfaces, typography, and theme controls. */
.auth-layout{align-items:center;gap:clamp(32px,6vw,110px);padding:64px 0 80px;grid-template-columns:minmax(0,1fr) minmax(320px,440px)}
.auth-panel{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:32px;box-shadow:0 16px 60px #173d3510;min-width:0}
.auth-panel h2{font-family:var(--serif,Georgia,serif);font-size:34px;font-weight:400;line-height:1.15;margin:0 0 10px}
.auth-intro{color:var(--muted);font-size:14px;line-height:1.6;margin:0 0 26px}
.auth-form .field{position:relative;margin:0 0 20px}.auth-form input{width:100%;box-sizing:border-box;min-height:48px}.auth-form input[type=password],.auth-form input[name=password]{padding-right:72px}
.auth-form .field small{display:block;line-height:1.5;margin-top:8px}.auth-form .password-reveal{position:absolute;right:8px;top:28px;min-height:36px;padding:6px 10px;font-size:12px}
.auth-submit{width:100%;justify-content:center;box-sizing:border-box}.auth-switch{font-size:13px;text-align:center;color:var(--muted);margin:22px 0 0}.auth-switch a{color:var(--accent-ink);font-weight:600;text-underline-offset:3px}
.auth-divider{display:flex;align-items:center;gap:12px;margin:24px 0;color:var(--muted);font-size:12px}.auth-divider:before,.auth-divider:after{content:'';height:1px;background:var(--line);flex:1}
.auth-voices{display:flex;align-items:center;margin-top:36px}.auth-voices .mini-avatar{width:44px;height:44px;border-radius:50%;border:3px solid var(--bg);margin-right:-10px;flex-shrink:0}.auth-voices>span{margin-left:24px;max-width:200px;color:var(--muted);font-size:12px;line-height:1.6}
.auth-form .notice{margin-bottom:20px}.btn:disabled{cursor:wait;opacity:.65}
@media(max-width:800px){.auth-layout{display:grid;grid-template-columns:1fr;max-width:520px;margin:auto;padding:36px 0 48px;gap:30px}.auth-layout .login-copy h1{font-size:36px}.auth-voices{display:none}.auth-panel{padding:26px}.auth-panel h2{font-size:30px}.auth-layout .login-copy>p{margin-bottom:0}}

.site-header>.header-actions{margin-left:auto}
