:root{color-scheme:dark;--bg:#080b11;--rail:#0c1019;--panel:#101722;--border:#263447;--text:#eef5ff;--muted:#aabacf;--accent:#82c8ff;--violet:#6dafff;--max:1040px;font:16px/1.5 Inter,system-ui,-apple-system,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}[hidden]{display:none!important}
a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}
h1,h2,p{margin:0}h1{font-family:Inter,system-ui,sans-serif;font-size:clamp(2.4rem,5.2vw,4.1rem);font-weight:680;line-height:1.03;letter-spacing:-.045em}h2{font-size:1.06rem}p{color:var(--muted)}
button,input,select,textarea,.button{font:inherit;color:var(--text);border:1px solid var(--border);background:#0c1420;border-radius:10px;padding:.55rem .8rem;min-height:42px}
button,.button,select{cursor:pointer}button:hover,.button:hover,select:hover{border-color:var(--violet);text-decoration:none}button:disabled{opacity:.55;cursor:wait}button.primary,.primary{background:var(--accent);color:#071521;font-weight:750;border-color:transparent}button.danger{color:#ffc1c1}
textarea{resize:vertical;min-width:0;display:block;width:100%}input:not([type=checkbox]){width:100%;min-width:0}input[type=checkbox]{min-height:auto;accent-color:var(--accent)}
:focus-visible{outline:2px solid var(--violet);outline-offset:3px}.skip{position:absolute;left:1rem;top:-100px;z-index:5}.skip:focus{top:1rem}
.shell{min-height:100vh;display:grid;grid-template-columns:224px minmax(0,1fr)}.sidebar{padding:27px 16px;position:sticky;top:0;height:100dvh;background:var(--rail);border-right:1px solid var(--border);display:flex;flex-direction:column;gap:34px}.brand{display:flex;align-items:center;gap:10px;padding:0 8px;color:var(--text);font-size:1.38rem;font-weight:750;line-height:1.1}.brand small{display:block;letter-spacing:.13em;font-size:.59rem;color:var(--muted);margin-top:5px}.sidebar nav{display:grid;gap:5px}.sidebar nav a{display:flex;align-items:center;gap:.8rem;color:var(--muted);padding:10px 12px;border:1px solid transparent;border-radius:9px;font-size:.93rem;white-space:nowrap}.sidebar nav a span:first-child{font-size:1.1rem;width:1.25rem;text-align:center;color:var(--violet)}.sidebar nav a[aria-current=page]{background:#12253b;border-color:#305284;color:var(--text)}.side-footer{margin-top:auto;padding:0 8px;font-size:.80rem}
main{min-width:0}.top{height:70px;border-bottom:1px solid var(--border);padding:0 clamp(16px,3.5vw,48px);display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:.9rem}.top-actions,.row{display:flex;gap:.55rem;align-items:center;flex-wrap:wrap}.mobile-brand{display:none}.small{display:inline-flex;align-items:center}.page,.notice{width:calc(100% - clamp(28px,7vw,96px));max-width:var(--max);margin:26px auto}.page{padding-bottom:30px}.notice{border:1px solid #34567d;background:#122236;padding:12px 16px;border-radius:10px;margin-bottom:0}.hero{position:relative;isolation:isolate;overflow:hidden;min-height:270px;display:flex;align-items:center;padding:clamp(24px,5vw,58px);border:1px solid #254364;border-radius:20px;background:radial-gradient(ellipse at 78% 10%,#153866 0%,#0b1a30 34%,#0a1422 70%)}.hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#0a1422 5%,#0a1422ee 37%,#0a142200 86%)}.hero h1{max-width:9em}.hero p:last-child{max-width:31ch;margin-top:14px}.eyebrow{color:#81bafb;letter-spacing:.15em;font-size:.71rem;font-weight:800;margin-bottom:16px}.panel{border:1px solid var(--border);border-radius:15px;background:var(--panel);padding:18px}.chat-panel{margin-top:16px}.panel-head,.section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.panel-head p{font-size:.86rem}.stack{display:grid;gap:.9rem}.history{margin:12px 0;max-height:50vh;overflow:auto;overflow-wrap:anywhere;align-content:start}.chat-panel .history{min-height:136px;padding:12px 0}.suggestions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.suggestions button{font-size:.86rem}.turn{padding:12px 14px;border-radius:12px;background:#142234;white-space:pre-wrap}.turn.user{justify-self:end;background:#142c48;max-width:92%}.turn header{display:flex;justify-content:space-between;align-items:center;gap:8px;color:var(--violet);font-size:.79rem;margin-bottom:6px;white-space:normal}.turn button{font-size:.76rem;min-height:32px;padding:3px 8px}.turn p{white-space:pre-wrap;color:var(--text)}#chat-form{display:flex;gap:8px;align-items:end}#chat-form textarea{min-height:58px}.page-head{margin:10px 0 20px}.page-head p{margin-top:12px}.page>p,.section-head,#more-posts{margin-top:14px}.section-head{margin-bottom:12px}label{display:grid;gap:4px;color:var(--muted);font-size:.92rem}.check{display:flex;align-items:start;gap:.5rem}.pack-grid,.dm-grid{display:grid;gap:14px}.pack-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.pack>span{color:var(--violet);font-size:1.7rem}.pack p,.post p{margin-top:8px}.post img{display:block;width:100%;max-height:520px;object-fit:contain;background:#090e17;border-radius:9px;margin-top:10px}.post pre{font:inherit;white-space:pre-wrap;overflow-wrap:anywhere;background:#0a1220;padding:10px;border-radius:8px}.post .actions{margin-top:12px}.post .handle{color:var(--muted)}.post .body{white-space:pre-wrap;overflow-wrap:anywhere}.dm-grid{grid-template-columns:minmax(200px,1fr) minmax(0,2fr)}.dm-grid .panel{align-content:start}.dm-grid input,.dm-grid textarea{flex:1;width:auto}.person{display:flex;justify-content:space-between;align-items:center;gap:5px;flex-wrap:wrap}.person button{overflow-wrap:anywhere}.legal{max-width:800px;padding:24px;margin:auto}.legal h2{margin:24px 0 6px}.legal h1{margin:16px 0}dialog{color:var(--text);background:var(--panel);border:1px solid var(--border);border-radius:14px;width:min(440px,calc(100% - 30px))}dialog::backdrop{background:#000b}
@media(max-width:740px){.shell{display:block;padding-bottom:76px}.sidebar{position:fixed;z-index:3;inset:auto 0 0;height:auto;border:0;border-top:1px solid var(--border);padding:3px 4px calc(4px + env(safe-area-inset-bottom))}.brand,.side-footer,#breadcrumb{display:none}.mobile-brand{display:block;font-weight:750;color:var(--text)}.sidebar nav{grid-template-columns:repeat(4,minmax(0,1fr));gap:0}.sidebar nav a{display:grid;gap:0;justify-items:center;padding:4px 1px;font-size:.67rem}.top{height:59px}.page,.notice{margin-top:14px}.hero{min-height:220px;background-position:72% 30%}.panel{padding:13px}.pack-grid,.dm-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.side-footer{display:grid;gap:10px}
.entrance{min-height:390px}.entrance .entrance-copy{max-width:520px}.entrance h1{max-width:12ch}.entrance .entrance-copy>p:not(.eyebrow){max-width:35ch;margin:16px 0 20px}
.start-grid,.studio-grid,.studio-options{display:grid;gap:14px}.start-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:16px}.start-card{color:var(--text);padding:20px}.start-card:hover{border-color:var(--violet);text-decoration:none}.start-card>span{color:var(--violet);font-size:1.5rem}.start-card p{margin-top:5px}
.studio-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}.studio-modes{display:grid;grid-template-columns:1fr 1fr;gap:6px;background:#090e17;border:1px solid var(--border);border-radius:13px;padding:4px}.studio-modes button{border-color:transparent;background:transparent}.studio-modes button[aria-pressed=true]{background:#193457;color:#dbecff;border-color:#345579}.studio-options{grid-template-columns:1.2fr 1fr}.studio-options select{width:100%;min-width:0}.model-note{font-size:.84rem}.studio-results{align-content:start;min-height:325px}.studio-empty{min-height:225px;display:grid;place-content:center;text-align:center;background:radial-gradient(ellipse at 55% 5%,#132a43,#0a1220 75%);border:1px dashed #324b69;border-radius:11px;padding:20px}.studio-empty span{color:var(--violet);font:2rem Georgia,serif}.image-result{background:#0c1420;border-radius:12px;border:1px solid var(--border);padding:12px;gap:7px}.image-result p{white-space:pre-wrap;overflow-wrap:anywhere}.image-result img{width:100%;max-height:460px;object-fit:contain;border-radius:9px;background:#090e17}.image-result .row a,.image-result .row button{font-size:.82rem;min-height:36px}.reference-preview{display:flex;align-items:center;gap:9px}.reference-preview img{width:64px;height:64px;object-fit:cover;border-radius:8px}
.split-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.auth-layout{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1fr);max-width:850px;margin:28px auto 0;border:1px solid var(--border);border-radius:18px;overflow:hidden;background:var(--panel)}.auth-art{min-height:360px;display:flex;align-items:end;gap:10px;padding:23px;color:var(--text);font-size:.74rem;letter-spacing:.13em;font-weight:800;background:radial-gradient(ellipse at 86% 14%,#17509a 0%,#10274a 44%,#080f1c 80%);position:relative;isolation:isolate;overflow:hidden}.auth-art span{margin-bottom:11px}.auth-content{border:0;border-radius:0;padding:clamp(18px,4vw,44px);align-content:center}.auth-content h1{font-size:clamp(2rem,4vw,3rem);margin-bottom:8px}.auth-switch button{font-size:.84rem}.auth-content form>a{font-size:.8rem}
@media(max-width:740px){.side-footer{display:none}.entrance{min-height:300px}.entrance::before{background:linear-gradient(90deg,#0a1422 5%,#0a1422dd 46%,#0a142244 100%)}.start-grid{grid-template-columns:1fr}.start-card{padding:13px 15px}.studio-grid,.auth-layout{grid-template-columns:1fr}.auth-layout{margin-top:0}.auth-art{min-height:158px;background-position:74% 29%}.auth-content{padding:18px}.studio-results{min-height:0}}
@media(max-width:390px){.studio-options{grid-template-columns:1fr}}

.quote{color:var(--accent);font-weight:750;font-size:.9rem;align-self:end;padding:.4rem 0}.chat-tools{display:flex;align-items:end;flex-wrap:wrap;gap:8px 12px;margin-top:14px;padding:10px;border-radius:12px;border:1px solid var(--border);background:#0c1420}.chat-tools select{width:100%}.chat-tools #pdf-status{flex-basis:100%}.file-button{display:inline-grid;cursor:pointer;color:var(--accent);position:relative;padding:.5rem .7rem;border:1px solid var(--border);border-radius:9px;min-height:42px;align-items:center;overflow:hidden}.file-button input{position:absolute;inset:0;opacity:0;cursor:pointer}.file-button:focus-within{outline:2px solid var(--violet);outline-offset:3px}.pack strong{display:block;color:var(--accent);font-size:1.5rem;margin-top:6px}.turn header .row{justify-content:flex-end}
@media(max-width:740px){.top-actions{flex-wrap:nowrap}.chat-tools{align-items:start}.chat-tools .quote{align-self:start}}

.member-back{margin-bottom:12px}.member-card{padding:0;overflow:hidden}.member-cover{height:clamp(125px,26vw,265px);background:radial-gradient(ellipse at 75% -15%,#2562aa8f,transparent 53%),linear-gradient(115deg,#101c2b,#214b79 54%,#142841);overflow:hidden}.member-cover img{display:block;width:100%;height:100%;object-fit:cover}.member-content{gap:6px;padding:0 clamp(15px,3vw,24px) 20px}.member-content h1{font-size:clamp(2.05rem,5vw,3.5rem)}.member-content h2{font-size:1.35rem}.member-content .member-avatar{width:82px;height:82px;margin-top:-42px;border:4px solid var(--panel);font-size:1.85rem}.member-avatar{position:relative;display:inline-grid;place-items:center;flex:none;width:42px;height:42px;overflow:hidden;border-radius:50%;background:#1c3f67;color:var(--accent);font-weight:750}.member-avatar img,.post .member-avatar img{position:absolute;inset:0;width:100%;height:100%;margin:0;object-fit:cover;border-radius:0}.member-counts{color:var(--muted);gap:1rem;font-size:.88rem}.member-actions{margin-top:5px}.member-content .body{white-space:pre-wrap;overflow-wrap:anywhere}.profile-media{width:100%;min-width:0;display:grid;gap:10px;margin:0;padding:12px;border:1px solid var(--border);border-radius:10px}.profile-media legend{padding:0 5px;color:var(--text);font-size:.94rem}.post-byline{gap:.65rem;margin-bottom:5px}.profile-link{color:var(--text);font-weight:720}.profile-link:hover{color:var(--accent)}.post-interactions{margin-top:12px}.post-discussion{padding-top:12px;border-top:1px solid var(--border)}.emoji-toolbar button,.reactions button,.comment-head button{font-size:.82rem;min-height:36px;padding:3px 8px}.reactions button[aria-pressed=true]{background:#254877;border-color:#5c9fe7;color:#d6edff}.comment-composer,.dm-compose{align-items:end;flex-wrap:nowrap}.comment-composer textarea,.dm-compose textarea{flex:1}.comment-item{padding:10px;background:#0c1420;border-radius:9px}.comment-head{font-size:.85rem;overflow-wrap:anywhere}.comment-item p{margin:0!important}.comment-item .handle{font-size:.76rem}.dm-grid #recent-dms button{text-align:left}

.hero::after,.auth-art::after{content:"";position:absolute;z-index:-1;pointer-events:none;inset:-28% -8% -40% 52%;transform:rotate(-16deg) skewX(-8deg);background:repeating-linear-gradient(90deg,#8abffd42 0%,#3a71b237 7%,#163c6755 8%,#030b18 9%,#061224 10%);mask-image:linear-gradient(110deg,transparent 7%,#000 40%,#000 85%,transparent 100%);border-radius:26px;border-top:1px solid #559fff70;box-shadow:inset 0 0 100px #050b17,0 0 60px #0c2b5b66}
.entrance::after{inset:-30% -10% -55% 55%}.auth-art::after{inset:-22% -30% -40% 6%;opacity:.8}.auth-art img,.auth-art span{z-index:1}
.social-gate{max-width:620px;margin-top:18px;padding:clamp(16px,4vw,32px);background:radial-gradient(ellipse at 100% 0%,#142f53,#101722 64%)}.social-gate h2{font-size:1.55rem}.social-gate strong,.social-pack strong{color:var(--accent);font-size:1.65rem}.social-gate .row span{color:var(--muted)}.social-pack{justify-content:space-between;margin-bottom:10px}.pack-status{margin:10px 0}.social-preview{margin-top:10px;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:#0b1626}.social-preview-head{padding:9px 12px;justify-content:space-between;gap:8px}.social-preview-head a{font-size:.84rem}.social-preview iframe{display:block;width:100%;border:0;background:#060b14;max-height:590px}.embed-video{aspect-ratio:16/9}.embed-vertical{max-width:340px;margin:auto;aspect-ratio:9/16}.social-preview .embed-audio{height:152px}.social-preview .play-preview{display:block;width:calc(100% - 24px);margin:0 12px 12px;background:#132641}.mobile-brand{white-space:nowrap}
@media(max-width:740px){.hero::after{inset:-12% -35% -35% 45%;opacity:.6}.auth-art::after{inset:-40% -18% -60% 30%}}

.chat-page{max-width:1000px}.chat-top{justify-content:space-between;margin-bottom:16px;align-items:center}.chat-top h1{font-size:clamp(1.8rem,4vw,2.7rem);letter-spacing:-.045em}.chat-top p{margin-top:4px;font-size:.94rem}.chat-workspace{display:grid;grid-template-rows:1fr auto;gap:12px;min-height:calc(68dvh - 25px);border:1px solid var(--border);border-radius:18px;background:linear-gradient(160deg,#101b2d,#0c121d 65%);padding:clamp(12px,2vw,22px)}.chat-workspace #history{margin:0;min-height:220px;max-height:53dvh;padding:4px 2px;align-content:start}.chat-empty{display:grid;place-items:center;align-content:center;gap:12px;min-height:190px;text-align:center}.chat-empty>p{color:var(--text);font-weight:650}.chat-empty .suggestions{justify-content:center;margin-top:0}.chat-empty .suggestions button{background:#101e30}.chat-workspace .turn{line-height:1.6}.chat-workspace .turn.user{width:fit-content;max-width:88%}.chat-workspace .turn.assistant{max-width:100%;background:#101c2b}.chat-workspace .turn header button{min-height:30px;font-size:.72rem}
#chat-form.chat-composer{display:grid;gap:8px;align-items:stretch;padding:10px;border:1px solid #334965;border-radius:15px;background:#101c2c;position:relative;margin:0}.chat-composer textarea{background:transparent;border:0;resize:vertical;min-height:70px;padding:6px;outline:none}.chat-composer textarea:focus-visible{outline:1px solid var(--accent);outline-offset:2px}.composer-bar{display:flex;justify-content:space-between;gap:8px;align-items:end;flex-wrap:wrap}.composer-options,.composer-send{flex-wrap:wrap;gap:6px}.composer-send{margin-left:auto}.composer-send .quote{font-size:.77rem;padding:0;white-space:nowrap;align-self:center}.composer-menu{position:relative}.composer-menu summary{display:block;padding:.45rem .62rem;border-radius:9px;background:#0c1420;border:1px solid var(--border);list-style:none;cursor:pointer;font-size:.82rem;color:var(--accent);white-space:nowrap}.composer-menu summary::-webkit-details-marker{display:none}.composer-menu summary:focus-visible{outline:2px solid var(--accent)}.composer-popover{position:absolute;z-index:3;bottom:calc(100% + 8px);left:0;width:min(230px,70vw);padding:10px;border:1px solid #375171;background:#132137;border-radius:12px;box-shadow:0 10px 30px #0007;gap:7px}.composer-popover select{width:100%}.composer-popover .check{background:#0c1626;padding:.48rem .55rem;border-radius:8px}
#profile-editor{max-height:90dvh;width:min(94vw,550px);overflow:auto;padding:clamp(12px,3vw,22px)}#profile-editor h2{margin-bottom:14px}.editor-actions{padding-top:5px}.profile-preview{display:block;object-fit:cover;border-radius:10px;width:100%}.profile-preview-avatar{width:70px;height:70px;border-radius:50%}.profile-preview-cover{aspect-ratio:3/1}.member-cover{position:relative}.change-cover{position:absolute;bottom:.6rem;right:.65rem;background:#0b1422e8;font-size:.78rem}.change-avatar{justify-self:start;display:inline-grid;position:relative;min-height:0;background:transparent;padding:0;border:0;border-radius:50%;margin-top:-42px}.change-avatar .member-avatar{margin-top:0}.change-avatar:hover .member-avatar{border-color:var(--accent)}.creator-character{padding:.75rem .9rem;background:#101d30;border-left:2px solid #598ed6;border-radius:9px}.creator-character h3{margin:0;font-size:.94rem}.creator-character p{font-size:.88rem}.pack-included{margin:10px 0;color:var(--accent)}.translation-control{margin-top:5px;gap:5px}.translation-control button,.translation-control select{padding:3px 8px;min-height:30px;font-size:.72rem}.translation-output{padding:.55rem .65rem;background:#11243a;border-radius:8px;color:#d8e9ff;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.84rem}.translation-output p{margin:3px 0 0}.translation-output strong{font-size:.75rem;color:var(--accent)}
@media(max-width:740px){.chat-workspace{padding:10px;min-height:0}.chat-workspace #history{min-height:180px;max-height:49dvh}.chat-top{margin-bottom:12px}.chat-top p{font-size:.84rem}.chat-top button{min-height:34px;font-size:.77rem}.chat-empty{min-height:165px}.composer-popover{width:min(205px,64vw)}.composer-options{gap:4px}.chat-composer .composer-send{align-items:center}.composer-send .quote{font-size:.7rem}}
/* Home and contextual navigation */
.shell{grid-template-columns:minmax(0,1fr);padding-bottom:0}
.sidebar{display:none}
.mobile-brand{display:inline-flex;align-items:center;color:var(--accent);text-decoration:none;white-space:nowrap;font-weight:800}
#breadcrumb{display:none}
.top{justify-content:space-between}
.view-nav{justify-content:space-between;margin-bottom:16px}
.view-nav a,.notification-item{text-decoration:none}
.model-chip,.mode-summary{font-size:.8rem;color:var(--muted)}
.model-chip{border:1px solid #295075;border-radius:999px;padding:6px 12px}
.home-destinations{gap:10px;flex-wrap:wrap}
#home .hero{border:1px solid #284569;background:radial-gradient(ellipse at 95% 0,#123b66 0,transparent 60%),#0c1626}
#studio-dialog,#publish-dialog{width:min(720px,calc(100vw - 24px));max-height:90dvh;overflow-y:auto}
#publish-dialog{width:min(540px,calc(100vw - 24px))}
#publish-dialog small{color:var(--muted)}
#studio-dialog .studio-grid{grid-template-columns:minmax(0,1fr)}
#image-approval{border:1px solid #315c83;border-radius:12px;padding:12px;background:#112539}
.chat-image-result img{display:block;max-width:100%;max-height:460px;margin:10px 0;border-radius:12px;object-fit:contain}
#community{padding-bottom:85px}
.floating-publish{position:fixed;z-index:5;bottom:calc(18px + env(safe-area-inset-bottom));right:max(16px,calc((100vw - 880px)/2));border-radius:999px;box-shadow:0 6px 25px #0008}
.reaction-box{position:relative;display:inline-flex}
.reaction-box>button{touch-action:pan-y;user-select:none;-webkit-touch-callout:none}
.reaction-picker{position:absolute;bottom:calc(100% + 7px);left:0;z-index:6;background:#102237;border:1px solid #345879;border-radius:999px;display:flex;gap:2px;padding:5px;box-shadow:0 6px 22px #0008}
.reaction-picker button{padding:4px;min-width:32px;min-height:32px;border-radius:999px;border-color:transparent}
.post-options summary{cursor:pointer;color:var(--muted);font-size:.85rem}
.post-options .row{margin-top:8px}
.notification-badge{display:inline-grid;place-items:center;min-width:1.5em;border-radius:999px;background:#15466b;color:#fff;margin-left:4px;padding:1px 5px;font-size:.78em}
.notification-item{display:block}
.notification-item.unread{border-left:3px solid var(--accent)}
@media(max-width:430px){.model-chip{font-size:.72rem}.reaction-picker button{min-width:29px}.top-actions{gap:5px}}

/* Lore Black visual system */
:root {
  --bg:#060a15;
  --panel:#0c1525;
  --border:#23364e;
  --text:#edf4ff;
  --muted:#a8b8cf;
  --accent:#8cdefb;
  --violet:#99acff;
  --max:1170px;
}
body { background:radial-gradient(ellipse 900px 470px at 70% 0,#0d1b35,transparent 75%),var(--bg); }
main { padding-bottom:env(safe-area-inset-bottom); }
.top {
  min-height:68px;
  height:auto;
  padding:10px max(clamp(16px,4vw,44px),calc((100vw - 1170px)/2));
  background:#070d19ef;
  border-color:#23334a;
  gap:12px;
}
.mobile-brand { gap:9px; color:#edf5ff; letter-spacing:.025em; }
.mobile-brand img { display:block; border-radius:10px; flex:none; }
.top-actions { justify-content:flex-end; }
.top-actions > * { font-size:.875rem; min-height:40px; padding:.35rem .7rem; white-space:nowrap; }
.page { margin-block:clamp(20px,4.5vw,46px); }
#home .hero {
  position:relative;
  isolation:isolate;
  display:flex;
  align-items:center;
  min-height:clamp(435px,49vw,590px);
  padding:clamp(26px,6vw,78px);
  overflow:hidden;
  border:1px solid #375374;
  border-radius:25px;
  background:#091528;
  box-shadow:0 34px 80px -34px #000,0 0 90px -65px #487bea;
}
#home .hero::before {
  z-index:-1;
  inset:0;
  background:linear-gradient(90deg,#060a16 3%,#060b18ed 25%,#080f20a6 47%,#09152e16 76%),linear-gradient(0deg,#07101cb8,transparent 30%);
}
#home .hero::after { content:none; }
.cinema-art { position:absolute; z-index:-2; inset:0; }
.cinema-art img { display:block; width:100%; height:100%; object-fit:cover; object-position:71% center; }
#home .entrance-copy { max-width:600px; }
#home h1 {
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(3.35rem,6vw,5.85rem);
  font-weight:400;
  line-height:.98;
  letter-spacing:-.048em;
  max-width:10.8ch;
  text-wrap:balance;
}
#home .entrance-copy > p { font-size:clamp(1rem,1.7vw,1.15rem); margin:22px 0; color:#c3d3e8; max-width:39ch; }
.entrance-actions { flex-wrap:wrap; }
.entrance-actions .button { padding:.72rem 1.05rem; min-height:46px; }
.primary { background:linear-gradient(135deg,#b7edff,#7bd1fb); color:#091526; }
.entrance .secondary { background:#0c192ccb; }
.home-previews,.home-destinations {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.home-previews { margin-top:16px; }
.home-preview {
  display:grid;
  gap:4px;
  min-width:0;
  padding:clamp(14px,3vw,25px);
  border:1px solid var(--border);
  border-radius:16px;
  background:linear-gradient(130deg,#111e34,#0a1322);
  color:var(--text);
}
.home-preview:hover { text-decoration:none; border-color:#6393bf; background:#132541; }
.home-preview strong { font-size:1.05rem; }
.home-preview span { color:var(--muted); }
#profile-panel,#studio-dialog,#publish-dialog,#install-dialog,.chat-workspace {
  border-radius:18px;
  background:linear-gradient(140deg,#101c31,#0b1424 65%);
}
#profile-panel .member-cover {
  background:linear-gradient(90deg,#101a30aa,transparent),url("./assets/cinema-wide.webp") 70% 50%/cover;
}
#chat .chat-empty {
  border-radius:15px;
  background:radial-gradient(ellipse at 50% 28%,#183558a8,transparent 62%);
}
.auth-art { background:linear-gradient(0deg,#081228d1,#03091c35),url("./assets/cinema-mobile.webp") center 42%/cover; }
.auth-art::before,.auth-art::after { content:none; }
#install-dialog { width:min(520px,calc(100% - 24px)); }
#install-dialog h2 { font-size:1.35rem; }
.offline-page { display:grid; justify-items:start; gap:18px; padding-top:36px; }
.demo-label { width:calc(100% - 28px); max-width:var(--max); margin:8px auto -8px; color:#adbdcf; font-size:.8rem; }
@media(max-width:640px) {
  .top { padding-inline:14px; gap:7px; }
  .mobile-brand { gap:5px; font-size:.9rem; letter-spacing:0; }
  .mobile-brand img { width:27px; height:27px; border-radius:7px; }
  .top-actions { gap:4px; }
  .top-actions > * { padding:.36rem .43rem; font-size:.75rem; min-height:37px; }
  #home .hero { min-height:510px; align-items:flex-end; border-radius:19px; padding:22px 18px; }
  #home .hero::before { background:linear-gradient(0deg,#070d1bf5 8%,#081225ec 38%,#0a15277d 65%,transparent 91%); }
  .cinema-art img { object-position:center 28%; }
  #home h1 { font-size:clamp(2.6rem,11vw,4rem); }
  #home .entrance-copy > p { margin:14px 0 17px; }
  .home-preview span { font-size:.91rem; }
  .home-previews { gap:8px; }
  .auth-art { min-height:125px; }
}
@media(max-width:355px) {
  .mobile-brand img { display:none; }
  .home-previews { grid-template-columns:1fr; }
}

/* Social workspace */
.orbit-page {
  --orbit-accent:#d9afff;
  --orbit-line:#342744;
  --orbit-panel:#161123;
  color:#f7f0ff;
}
.orbit-page a { color:var(--orbit-accent); }
.orbit-page .panel,.orbit-compose,.orbit-search input {
  background:var(--orbit-panel);
  border-color:var(--orbit-line);
}
.orbit-page .primary {
  color:#20132d;
  background:linear-gradient(125deg,#eddbff,#bc8af0);
}
.orbit-layout {
  display:grid;
  grid-template-columns:minmax(140px,180px) minmax(0,1fr) minmax(205px,235px);
  gap:clamp(12px,2vw,24px);
  align-items:start;
}
.orbit-rail,.orbit-discovery { position:sticky; top:18px; }
.orbit-rail {
  min-height:440px;
  border:1px solid var(--orbit-line);
  border-radius:16px;
  padding:8px;
  background:radial-gradient(ellipse at 0 100%,#2f174e,transparent 49%),#110d1c;
}
.orbit-links { display:grid; gap:4px; }
.orbit-links a,.orbit-bottom a {
  display:flex;
  align-items:center;
  gap:9px;
  line-height:1.15;
  min-height:43px;
  border-radius:9px;
  padding:.5rem .6rem;
  color:#ede4fa;
  text-decoration:none;
  font-size:.875rem;
}
.orbit-links a > span:first-child,.orbit-bottom a > span:first-child { color:var(--orbit-accent); font-size:1.15rem; }
.orbit-links a:hover,.orbit-links a[aria-current=page],.orbit-bottom a[aria-current=page] {
  background:#3a2853;
  color:#fff;
}
.orbit-main { min-width:0; }
.orbit-header { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:15px; }
.orbit-header h1 { font-size:clamp(1.7rem,4vw,2.55rem); letter-spacing:-.04em; }
.orbit-header p { margin-top:5px; }
.orbit-inbox { gap:5px; }
.orbit-inbox .button { min-height:36px; padding:.35rem .55rem; font-size:.875rem; }
.orbit-tabs { display:grid; grid-template-columns:1fr 1fr; border-bottom:1px solid var(--orbit-line); margin-bottom:14px; }
.orbit-tabs button {
  border:0;
  border-bottom:2px solid transparent;
  background:transparent;
  border-radius:0;
  color:#d4c6e2;
}
.orbit-tabs button[aria-pressed=true] { border-color:var(--orbit-accent); color:var(--orbit-accent); font-weight:700; }
.orbit-compose { display:flex; align-items:center; gap:10px; text-align:left; width:100%; margin-bottom:14px; border-radius:13px; }
.orbit-compose > span:first-child { display:grid; place-items:center; width:32px; height:32px; border-radius:50%; background:#37244e; color:var(--orbit-accent); font-size:1.35rem; }
.orbit-search { align-items:stretch; }
.orbit-search input { min-width:0; }
.orbit-filters { flex-wrap:wrap; }
.orbit-discovery .panel { border-radius:14px; }
#orbit-trends button { text-align:left; background:#211832; border-color:var(--orbit-line); overflow-wrap:anywhere; }
.orbit-publish,.orbit-bottom { display:none; }
.orbit-page article.post > img { width:100%; max-height:530px; object-fit:contain; background:#0b0911; }
.orbit-page article pre { margin:4px 0; max-width:100%; white-space:pre-wrap; overflow-wrap:anywhere; }
.post-prompt summary { color:var(--orbit-accent,#d9afff); cursor:pointer; }
.prompt-actions button:first-child { border-color:#785493; color:#ead0ff; }
.character-list { display:grid; gap:14px; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); margin:16px 0; }
.character-card { border-radius:16px; overflow:hidden; align-content:start; }
.character-card > img { width:100%; height:clamp(150px,23vw,230px); object-fit:cover; border-radius:10px; }
.character-card h2 { font-size:1.25rem; overflow-wrap:anywhere; }
.character-world { color:var(--orbit-accent); }
.character-actions { flex-wrap:wrap; }
.character-actions button { font-size:.875rem; }
#character-dialog { width:min(610px,calc(100vw - 22px)); max-height:90dvh; overflow:auto; background:#151021; border-color:#463354; }
#characters .orbit-bottom,#explore .orbit-bottom,#collections .orbit-bottom { display:none; }
@media(max-width:980px) {
  .orbit-layout { grid-template-columns:155px minmax(0,1fr); }
  .orbit-discovery { display:none; }
}
@media(max-width:700px) {
  .orbit-layout { display:block; }
  .orbit-rail { display:none; }
  .orbit-page { padding-bottom:86px; margin-top:14px; }
  .orbit-header { margin-bottom:9px; }
  .orbit-return { margin-bottom:9px; }
  .orbit-inbox .button { font-size:.75rem; }
  .orbit-bottom,#characters .orbit-bottom,#explore .orbit-bottom,#collections .orbit-bottom {
    position:fixed;
    z-index:7;
    inset:auto 0 0;
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    background:#110d1a;
    border-top:1px solid var(--orbit-line);
    padding:5px 4px calc(4px + env(safe-area-inset-bottom));
  }
  .orbit-bottom a { flex-direction:column; justify-content:center; gap:2px; padding:4px 2px; font-size:clamp(.62rem,2.5vw,.78rem); }
  .orbit-publish { display:flex; align-items:center; gap:4px; bottom:calc(64px + env(safe-area-inset-bottom)); }
  #community { padding-bottom:120px; }
}

#orbit-quick-search { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:5px; }
#orbit-quick-search button { padding-inline:.5rem; }

/* Orbit follows the approved desktop and phone composition. */
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
}
.orbit-view { background:#11101a; }
.orbit-view .top { display:none; }
.orbit-view .demo-label {
  width:auto;
  max-width:none;
  margin:0;
  padding:4px 16px;
  text-align:right;
  font-size:.69rem;
  background:#161321;
  color:#9e94ad;
}
.orbit-view #notice:not([hidden]),.orbit-view #network-status:not([hidden]) { margin:8px auto; }
.orbit-masthead {
  min-height:61px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:0 clamp(16px,2.4vw,36px);
  background:#191626;
  border-bottom:1px solid #322c40;
}
.orbit-masthead a { color:#f7f0ff; text-decoration:none; }
.orbit-wordmark {
  display:flex;
  align-items:center;
  gap:12px;
  font-size:clamp(1rem,2vw,1.44rem);
  font-weight:650;
  letter-spacing:.035em;
}
.orbit-wordmark svg { width:46px; height:36px; overflow:visible; color:#d4a8ff; }
.orbit-mast-actions { display:flex; align-items:center; gap:clamp(10px,2vw,28px); }
.orbit-header-icon,.orbit-header-profile { position:relative; display:flex; align-items:center; justify-content:center; min-width:38px; min-height:42px; gap:9px; }
.orbit-header-icon svg { width:24px; height:24px; }
.orbit-header-icon .notification-badge {
  position:absolute; top:3px; right:2px; min-width:9px; width:9px; height:9px;
  padding:0; background:#c79bed; color:transparent;
}
#orbit-header-avatar .member-avatar,#orbit-composer-avatar .member-avatar {
  margin:0; width:44px; height:44px; border:1px solid #796482; font-size:1rem;
}
#orbit-header-avatar .member-avatar { width:38px; height:38px; }
.orbit-view #community {
  --orbit-accent:#d9b4ff;
  --orbit-line:#302a3d;
  --orbit-panel:#191624;
  width:min(100%,1400px);
  max-width:none;
  margin:0 auto;
  padding:0;
}
.orbit-view .orbit-layout {
  grid-template-columns:clamp(168px,16vw,225px) minmax(0,1fr) clamp(226px,24vw,318px);
  gap:0;
  align-items:stretch;
  min-height:calc(100dvh - 83px);
}
.orbit-view .orbit-rail {
  top:0;
  align-self:start;
  height:calc(100dvh - 83px);
  border:0;
  border-right:1px solid #292637;
  border-radius:0;
  background:linear-gradient(180deg,transparent 73%,#171221 99%),url("./assets/demo-orbit-planet.webp") left bottom/min(100%,225px) auto no-repeat,#13111d;
  padding:29px 11px 190px;
}
.orbit-view .orbit-links { gap:5px; }
.orbit-view .orbit-links a { gap:13px; min-height:43px; padding:8px 13px; font-size:.9rem; }
.orbit-view .orbit-links svg,.orbit-view .orbit-bottom svg { width:22px; height:22px; flex:none; }
.orbit-view .orbit-links a[aria-current=page] {
  color:#fcf4ff;
  background:linear-gradient(140deg,#553b72,#30223f);
  box-shadow:inset 0 0 0 1px #6a4a82;
}
.orbit-view .orbit-main { padding:13px 14px 30px; }
.orbit-view .orbit-header { padding:0 8px; margin:0; }
.orbit-view .orbit-header h1 { font-size:clamp(1.55rem,2.3vw,2rem); font-weight:760; letter-spacing:-.035em; }
.orbit-view .orbit-tabs {
  display:flex;
  gap:12px;
  justify-content:flex-start;
  padding:0 6px;
  margin:7px 0 12px;
}
.orbit-view .orbit-tabs button { flex:0 1 116px; min-height:36px; padding:5px 12px; font-size:.9rem; }
.orbit-view .orbit-composer-row {
  display:flex; align-items:center; gap:10px; min-height:54px;
  margin-bottom:18px; padding:6px 9px; border:1px solid #352c44;
  background:linear-gradient(115deg,#181525,#1d192c); border-radius:12px;
}
.orbit-view .orbit-compose {
  min-height:40px; min-width:0; margin:0; padding:5px 9px;
  justify-content:space-between; border:0; background:transparent; color:#d6cde1;
}
.orbit-view .orbit-compose > span:first-child {
  width:auto; height:auto; display:block; background:transparent; color:inherit;
  border-radius:0; font-size:.9rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.orbit-view .orbit-compose svg { width:23px; height:23px; flex:none; color:#eee8f7; }
.orbit-view #orbit-publish-desktop { border-radius:999px; min-height:36px; padding:4px 17px; }
.orbit-view #feed { gap:12px; }
.orbit-view .post {
  position:relative; padding:9px 11px 8px; border:1px solid var(--orbit-line); border-radius:11px;
  background:linear-gradient(115deg,#181522,#161421); box-shadow:inset 0 1px #ffffff08;
}
.orbit-view .post-byline { gap:10px; padding-right:40px; }
.orbit-view .post-byline .member-avatar { width:44px; height:44px; margin:0; border:1px solid #796482; font-size:.9rem; }
.orbit-view .post-byline h2 { font-size:.96rem; font-weight:700; line-height:1.12; }
.orbit-view .post-byline .profile-link { color:#f5eefb; }
.orbit-view .post-byline .handle { color:#b1a8be; margin-top:3px; font-size:.78rem; }
.orbit-view .orbit-caption { color:#e8dff1; font-size:.9rem; margin:3px 3px 7px 54px; line-height:1.37; }
.orbit-view .orbit-page article.post > img {
  display:block; width:100%; max-height:none; aspect-ratio:2.25;
  object-fit:cover; margin:0; border-radius:7px; background:#21142b;
}
.orbit-view .orbit-page article.post > img[src*="demo-mary.webp"] { aspect-ratio:auto; height:auto; }
.orbit-view .post-interactions { margin-top:6px; }
.orbit-view .post .reactions { display:flex; gap:clamp(8px,2.1vw,24px); padding:0; border:0; min-height:36px; flex-wrap:wrap; }
.orbit-view .post .reactions > button,.orbit-view .reaction-box > button {
  min-height:32px; min-width:34px; border-color:transparent; padding:3px 5px; color:#eee5f5;
  background:transparent; line-height:1; font-size:.83rem;
}
.orbit-view .post .reactions .reaction-box { order:2; }
.orbit-view .post .reactions .orbit-comment { order:0; }
.orbit-view .post .reactions .orbit-comment::before {
  content:""; display:inline-block; width:13px; height:11px; margin-right:7px; vertical-align:-1px;
  border:1.4px solid currentColor; border-radius:50% 50% 50% 2px;
}
.orbit-view .post .reactions .orbit-repost,.orbit-view .post .reactions .orbit-bookmark { font-size:0; }
.orbit-view .post .reactions .orbit-repost { order:1; }
.orbit-view .post .reactions .orbit-repost::before { content:"⇄"; font-size:1.42rem; }
.orbit-view .post .reactions .orbit-bookmark { order:3; }
.orbit-view .post .reactions .orbit-bookmark::before {
  content:""; display:inline-block; width:13px; height:17px; background:currentColor;
  clip-path:polygon(0 0,100% 0,100% 100%,50% 74%,0 100%,0 0,12% 12%,12% 78%,50% 60%,88% 78%,88% 12%,12% 12%);
}
.orbit-view .post .reactions [aria-pressed=true] { color:#e89bbc; }
.orbit-view .post .reactions .orbit-copy {
  order:4; margin-left:auto; min-height:31px; padding:4px 11px; color:#ddb1ff; background:#1b1327;
  border:1px solid #8b61aa; border-radius:8px; font-weight:700; font-size:.78rem;
}
.orbit-view .orbit-copy::before { content:"‹/›"; font-size:.9rem; margin-right:6px; }
.orbit-view .post-options { position:absolute; top:14px; right:12px; z-index:3; }
.orbit-view .post-options summary {
  display:grid; place-items:center; width:31px; height:29px; margin-left:auto;
  color:#f2e5fc; font-size:1.35rem; line-height:1; list-style:none; border-radius:7px;
}
.orbit-view .post-options summary::-webkit-details-marker { display:none; }
.orbit-view .post-options[open] .actions {
  position:absolute; min-width:215px; max-width:min(320px,80vw); right:0; top:22px; padding:9px;
  border:1px solid #4f3b65; border-radius:10px; background:#21192d; box-shadow:0 8px 35px #000b;
}
.orbit-view .post-options[open] .actions > button { min-height:34px; font-size:.8rem; }
.orbit-view .post-options[open] .translation-control { width:100%; }
.orbit-view .orbit-discovery {
  top:0; align-self:start; padding:17px 12px 16px; border-left:1px solid #2b2739; gap:12px;
}
.orbit-view .orbit-discovery .panel { padding:10px 11px; border-radius:11px; gap:7px; }
.orbit-view .orbit-discovery h2 { display:flex; align-items:center; gap:7px; font-size:1rem; }
.orbit-view .orbit-discovery h2 svg,.orbit-view .orbit-search > svg { width:20px; height:20px; flex:none; }
.orbit-view #orbit-quick-search {
  position:relative; display:block; border:1px solid #443850; border-radius:11px;
  background:#201b2e; color:#c7b8d6;
}
.orbit-view #orbit-quick-search > svg { position:absolute; top:11px; left:12px; }
.orbit-view #orbit-quick-search input { background:none; border:0; padding-left:39px; min-height:41px; }
.orbit-view #orbit-trends { gap:1px; }
.orbit-view #orbit-trends button {
  border:0; border-top:1px solid #2b2238; border-radius:0; background:none;
  padding:7px 2px; display:grid; gap:0; min-width:0;
}
.orbit-view #orbit-trends button strong { font-size:.86rem; overflow-wrap:anywhere; }
.orbit-view #orbit-trends button small,.orbit-discover-card small { color:#c4b9d0; font-size:.74rem; }
.orbit-view .orbit-discover-card a {
  display:flex; align-items:center; gap:9px; padding:6px 0; color:#f2eaf9; text-decoration:none;
}
.orbit-view .orbit-discover-card a:hover { color:var(--orbit-accent); }
.orbit-view .orbit-discover-card a > svg { width:36px; height:36px; color:var(--orbit-accent); background:#2f2043; border-radius:9px; padding:7px; flex:none; }
.orbit-view .orbit-discover-card a span { display:grid; line-height:1.3; }
.orbit-view .orbit-discover-card a strong { font-size:.83rem; }
@media(max-width:960px) {
  .orbit-view .orbit-layout { grid-template-columns:170px minmax(0,1fr); }
}
@media(max-width:700px) {
  .orbit-view .orbit-layout { display:block; }
  .orbit-view #community { padding-bottom:76px; }
  .orbit-view .orbit-main { padding:0 7px 14px; }
  .orbit-view .orbit-header { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .orbit-view .orbit-tabs { justify-content:stretch; gap:4px; padding:0 5px; margin:0 0 7px; }
  .orbit-view .orbit-tabs button { flex:1; min-height:40px; }
  .orbit-view .orbit-composer-row { border:0; background:none; padding:5px 3px; gap:8px; min-height:47px; margin-bottom:8px; }
  .orbit-view .orbit-compose { border:1px solid #453b53; background:#201b2e; border-radius:11px; }
  .orbit-view #orbit-composer-avatar .member-avatar { width:36px; height:36px; }
  .orbit-view #orbit-publish-desktop,.orbit-view .orbit-header-profile { display:none; }
  .orbit-view .orbit-masthead { min-height:55px; padding-inline:12px; }
  .orbit-view .orbit-wordmark { font-size:1rem; gap:8px; }
  .orbit-view .orbit-wordmark svg { width:36px; height:30px; }
  .orbit-view .orbit-mast-actions { gap:10px; }
  .orbit-view .orbit-header-icon { min-width:30px; }
  .orbit-view .orbit-header-icon svg { width:20px; height:20px; }
  .orbit-view .post { padding:8px 7px; }
  .orbit-view .post-byline .member-avatar { width:38px; height:38px; }
  .orbit-view .orbit-caption { margin:5px 0 7px; }
  .orbit-view .orbit-page article.post > img { aspect-ratio:1.8; }
  .orbit-view .post .reactions { gap:6px 13px; justify-content:flex-start; }
  .orbit-view .post .reactions .orbit-copy { flex:1 0 100%; margin:0; }
  .orbit-view .orbit-publish { border-radius:50%; width:50px; height:50px; padding:12px; justify-content:center; }
  .orbit-view .orbit-publish svg { width:24px; height:24px; }
  .orbit-view .orbit-bottom a { min-height:42px; gap:3px; font-size:clamp(.62rem,2.5vw,.74rem); }
  .orbit-view .orbit-bottom a[aria-current=page] { background:none; color:var(--orbit-accent); }
}

.orbit-view #orbit-quick-search .sr-only { inset:0 auto auto 0; }

/* Shared orbital workspace, following the conversation, studio and profile references. */
.suite-view {
  --suite-bg:#11101b;
  --suite-panel:#1a1727;
  --suite-border:#373047;
  --suite-muted:#c5b8d1;
  --suite-accent:#e0baff;
  --suite-lilac:#c786f1;
  --compact-rail:74px;
}
.suite-view main { position:relative; }
.suite-view .suite-page,.suite-view #account,.suite-view #characters {
  width:auto;
  max-width:none;
  margin:0 0 0 var(--compact-rail);
  padding:24px clamp(18px,3vw,44px) 32px;
  min-height:calc(100dvh - 84px);
}
.suite-view #messages { padding:0; }
.suite-view .panel,.suite-view dialog { background:var(--suite-panel); border-color:var(--suite-border); }
.suite-view h1 { font-size:clamp(1.65rem,3.5vw,2.4rem); letter-spacing:-.034em; }
.suite-view a { color:var(--suite-accent); }
.suite-view .primary { background:linear-gradient(125deg,#dcb0ff,#c080ed); color:#231330; }
.suite-view .orbit-masthead a { color:#f7f1fd; }
.suite-rail {
  position:absolute; inset:84px auto 0 0; z-index:4; width:var(--compact-rail);
  background:url("./assets/demo-orbit-planet.webp") center bottom/130px auto no-repeat,#13111e;
  border-right:1px solid #30293d;
}
.suite-rail-links { position:sticky; top:5px; display:grid; justify-items:center; padding:14px 6px; gap:5px; }
.suite-rail-links a,.suite-bottom a { display:grid; place-items:center; color:#efe5fa; text-decoration:none; }
.suite-rail-links svg,.suite-bottom svg { width:22px; height:22px; }
.suite-rail-links a { position:relative; width:48px; height:43px; border-radius:7px; }
.suite-rail-links a span { position:absolute; clip-path:inset(50%); white-space:nowrap; }
.suite-rail-links a:hover,.suite-rail-links a[aria-current=page] { background:linear-gradient(135deg,#51376a,#36274a); color:#f4e6ff; }
.suite-bottom { display:none; }
.suite-page-title { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; margin:0 0 14px; }
.suite-page-title p { color:#e2d9eb; margin-top:8px; }
.studio-title { padding-bottom:13px; border-bottom:1px solid var(--suite-border); }
.studio-title .row button,.studio-title .row a { min-height:39px; border-color:#5f4d75; font-size:.86rem; }
.studio-title .row button { background:#322346; }
.suite-studio-tools { display:flex; align-items:center; gap:10px; margin:0 0 10px; }
.suite-studio-tools select { border-color:#51445e; background:#201b2d; }
.suite-studio-tools .model-chip { border-color:#51445e; color:var(--suite-muted); }
.suite-view #chat { max-width:1070px; }
.suite-view #chat .chat-workspace { background:transparent; border:0; padding:0; gap:7px; }
.suite-view #chat #history { max-height:65dvh; min-height:150px; background:none; border:0; padding:2px 0 0; }
.suite-view #chat .turn.user { max-width:min(85%,620px); background:#cb8ded; color:#211129; border:0; border-radius:20px 20px 5px 20px; padding:8px 13px; }
.suite-view #chat .turn.user header { display:none; }
.suite-view #chat .turn.user p { color:#241332; }
.suite-view #chat .turn.assistant { background:#1c182b; border-color:#39304c; }
.suite-view #chat .chat-image-result { padding:9px; border-radius:12px; width:min(100%,745px); justify-self:center; }
.suite-view #chat .chat-image-result img { margin:0 0 8px; display:block; width:100%; max-height:46dvh; border-radius:8px; object-fit:cover; }
.suite-view #chat .chat-image-result .row { flex-wrap:wrap; }
.suite-view #chat .chat-image-result button,.suite-generate .button { font-size:.82rem; min-height:34px; }
.suite-generate { display:grid; grid-template-columns:38px minmax(0,1fr) auto; align-items:center; text-align:left; gap:10px; background:#1b1729; border:1px solid #493959; margin:4px 0; border-radius:12px; padding:8px; }
.suite-generate > span:first-child { color:#e6c9ff; background:#3b2a53; border-radius:6px; text-align:center; font-size:1.45rem; }
.suite-generate small { display:block; color:var(--suite-muted); }
.suite-view #chat-form.chat-composer { background:#1c192a; border-color:#473955; }
.suite-view #chat-form textarea { border-radius:8px; outline-offset:0; color:#f6eefb; }
.suite-view #chat .composer-popover { background:#21192e; }
.suite-view #messages-body { grid-template-columns:clamp(235px,27vw,350px) minmax(0,1fr); gap:0; min-height:calc(100dvh - 84px); }
.suite-inbox { border-right:1px solid var(--suite-border); padding:17px 15px 15px; display:flex; flex-direction:column; gap:10px; min-width:0; }
.suite-inbox h1 { margin:0 6px 5px; }
.suite-conversation-search { position:relative; }
.suite-conversation-search > span { position:absolute; left:12px; top:7px; font-size:19px; color:var(--suite-muted); pointer-events:none; }
.suite-conversation-search input { background:#201b2e; border-color:#493d57; padding-left:33px; }
.inbox-tabs { margin:0; }
.inbox-tabs button { font-size:.88rem; }
.suite-inbox #recent-dms-panel { flex:1; }
.suite-inbox #recent-dms { display:grid; gap:0; }
.suite-conversation {
  display:grid; grid-template-columns:46px minmax(0,1fr) auto; gap:10px; align-items:center;
  width:100%; border:0; border-bottom:1px solid #30283e; border-radius:0; min-height:70px;
  background:transparent; padding:8px 4px; color:#f1e7fa; text-align:left;
}
.suite-conversation[aria-current=true],.suite-conversation:hover { border-color:transparent; border-radius:11px; background:linear-gradient(135deg,#322343,#241b34); }
.suite-conversation-copy { display:grid; gap:4px; min-width:0; }
.suite-conversation-copy small { color:#dfd4e9; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.suite-conversation time { color:var(--suite-muted); font-size:.73rem; align-self:start; padding-top:3px; }
.suite-conversation .member-avatar,.suite-peer .member-avatar,.suite-dm-message .member-avatar { width:45px; height:45px; margin:0; font-size:1rem; border:1px solid #826a87; }
.suite-inbox #new-dm { margin:12px 4px 0; }
.suite-empty { margin:16px 6px; font-size:.9rem; }
.suite-thread { min-width:0; display:grid; grid-template-rows:auto minmax(0,1fr) auto; min-height:0; max-height:calc(100dvh - 84px); }
.suite-peer { display:flex; align-items:center; gap:12px; min-height:72px; padding:11px 17px; border-bottom:1px solid var(--suite-border); }
.suite-peer h2 { font-size:1.1rem; }
.suite-peer p { font-size:.82rem; color:var(--suite-muted); }
.suite-peer #peer-profile { margin-left:auto; border-color:#453b55; font-size:.83rem; }
.suite-view .suite-thread #dm-history { min-width:0; min-height:0; max-height:none; overflow:auto; padding:16px; background:none; border:none; gap:13px; }
.suite-dm-date { justify-self:center; margin:auto; font-size:.8rem; border:1px solid #3b314c; background:#21192a; border-radius:999px; padding:4px 12px; color:#ede0f6; }
.suite-dm-message { display:flex; max-width:min(86%,670px); align-items:flex-start; gap:9px; }
.suite-dm-message.outgoing { justify-self:end; }
.suite-dm-message .member-avatar { width:35px; height:35px; flex:none; }
.suite-dm-content { min-width:0; }
.suite-bubble { padding:10px 13px; background:#2a2239; color:#f1e7fa; border:1px solid #493b5e; border-radius:16px 16px 16px 4px; overflow-wrap:anywhere; white-space:pre-wrap; }
.outgoing .suite-bubble { border-color:#cb8aed; background:#ce8ff0; color:#21102c; border-radius:16px 16px 4px 16px; }
.suite-dm-footer { display:flex; align-items:center; gap:8px; margin-top:2px; }
.outgoing .suite-dm-footer { justify-content:flex-end; }
.suite-dm-footer time,.suite-dm-options { color:var(--suite-muted); font-size:.76rem; }
.suite-dm-options summary { cursor:pointer; list-style:none; }
.suite-dm-options button,.suite-dm-options select { min-height:26px; font-size:.72rem; }
.suite-message-image { display:block; overflow:hidden; border:1px solid #594765; border-radius:12px; background:#231b2d; }
.suite-view .suite-message-image img { display:block; max-height:270px; max-width:100%; object-fit:contain; }
.suite-message-image span { display:block; padding:8px 11px; color:#f1e5fa; font-size:.86rem; }
.suite-view #dm-form { padding:8px; margin:6px 12px 15px; border:1px solid #44374e; border-radius:12px; background:#20192d; }
.suite-view .dm-compose textarea { min-height:43px; height:43px; background:#231d32; border-color:#54445e; color:#f6eafc; font-size:.9rem; }
.suite-view .dm-compose details { position:relative; }
.suite-view .dm-compose summary { list-style:none; cursor:pointer; display:grid; place-items:center; width:30px; height:37px; font-size:1.2rem; }
.suite-view #dm-emojis { position:absolute; bottom:100%; left:0; background:#271b37; min-width:180px; border-radius:10px; padding:4px; z-index:1; }
#dm-people-dialog { width:min(550px,calc(100vw - 20px)); max-height:80dvh; overflow:auto; border-color:#51405f; background:#191426; }
.suite-view #member .suite-page-title { justify-content:flex-start; }
.suite-view #member .suite-page-title a { order:0; font-size:.82rem; }
.suite-view #member .member-cover,.suite-view #account .member-cover { height:clamp(135px,19vw,240px); border-radius:12px 12px 0 0; }
.suite-view .member-card { overflow:visible; width:100%; background:transparent; border:0; }
.suite-view .member-content { display:grid; position:relative; gap:6px; padding:14px 10px 9px 139px; min-height:110px; }
.suite-view .member-content > .member-avatar,.suite-view .member-content > .change-avatar { position:absolute; top:-36px; left:12px; margin:0; }
.suite-view .member-content .member-avatar { width:112px; height:112px; margin:0; border-color:#68536e; }
.suite-view .member-content h1,.suite-view .member-content h2 { font-size:1.65rem; }
.suite-view .member-content .handle { color:var(--suite-muted); }
.suite-view .member-content .creator-character { display:none; }
.suite-view .member-content .member-actions { flex-wrap:wrap; }
.suite-view .member-content .member-actions button,.suite-view .member-content .member-actions .button { font-size:.82rem; min-height:34px; }
.suite-view #member-tabs { width:min(100%,610px); grid-template-columns:repeat(3,minmax(0,1fr)); }
.suite-public-gallery,.suite-account-library { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.suite-account-library { grid-template-columns:minmax(0,2fr) minmax(170px,1fr); }
.suite-account-library .character-list { margin:0; grid-template-columns:repeat(2,minmax(0,1fr)); }
.suite-character-tile { display:grid; align-content:start; min-height:86px; padding:0 0 10px; overflow:hidden; border:1px solid #3d324d; border-radius:10px; background:#1a1524; color:#faf1ff; text-align:left; }
.suite-character-tile img { width:100%; aspect-ratio:1; object-fit:cover; border-radius:8px 8px 0 0; }
.suite-character-tile strong,.suite-character-tile small { margin:6px 9px 0; }
.suite-character-tile small { color:#d2c4df; }
@media(max-width:740px) {
  .suite-view .suite-page,.suite-view #account,.suite-view #characters { margin:0; padding:13px 12px 81px; min-height:calc(100dvh - 76px); }
  .suite-view #messages { padding:0 0 60px; }
  .suite-view .suite-rail { display:none; }
  .suite-view .suite-bottom { display:grid; position:fixed; inset:auto 0 0; z-index:8; grid-template-columns:repeat(5,minmax(0,1fr)); background:#1a1523; padding:4px 2px calc(5px + env(safe-area-inset-bottom)); border-top:1px solid #3d3148; }
  .suite-bottom a { min-height:42px; align-content:center; gap:3px; font-size:clamp(.57rem,2.5vw,.72rem); }
  .suite-bottom a[aria-current=page] { color:var(--suite-accent); }
  .suite-view #messages-body { display:block; min-height:calc(100dvh - 135px); }
  .suite-inbox { border:0; min-height:calc(100dvh - 135px); }
  .suite-view .suite-thread { display:none; max-height:calc(100dvh - 135px); min-height:calc(100dvh - 135px); }
  .suite-view .thread-open .suite-inbox { display:none; }
  .suite-view .thread-open .suite-thread { display:grid; }
  .suite-view .suite-dm-message { max-width:93%; }
  .suite-view #chat #history { max-height:53dvh; }
  .suite-view .suite-generate { grid-template-columns:30px minmax(0,1fr); }
  .suite-view .suite-generate .button { display:none; }
  .suite-view .member-content { padding-left:91px; }
  .suite-view .member-content .member-avatar { width:68px; height:68px; }
  .suite-view .member-content > .member-avatar,.suite-view .member-content > .change-avatar { top:-20px; }
  .suite-account-library,.suite-public-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

.suite-view .orbit-masthead { position:sticky; top:0; z-index:6; }
.suite-view { --orbit-accent:var(--suite-accent); --orbit-line:var(--suite-border); }
.suite-view #member .suite-character-tile img { aspect-ratio:1.2; max-height:255px; }
.suite-view #member .suite-public-gallery { grid-template-columns:repeat(3,minmax(0,1fr)); }
.suite-member-library { align-content:start; }
.suite-view #chat #chat-form textarea { min-height:50px; height:55px; }
@media(max-width:740px) {
  .suite-view #member .suite-public-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .suite-member-library { grid-column:1/-1; }
}

/* Finish: readable controls, keyboard focus, and lightweight feedback. */
:focus-visible { outline:2px solid #e2baff; outline-offset:3px; }
.quick-preferences { position:relative; color:#f7edff; }
.quick-preferences summary {
  display:grid; place-items:center; width:35px; height:38px; border-radius:8px;
  color:#f4eaff; font-size:1.05rem; cursor:pointer; list-style:none;
}
.quick-preferences summary::-webkit-details-marker { display:none; }
.quick-preferences[open] summary,.quick-preferences summary:hover { background:#302340; }
#orbit-preferences-actions {
  position:absolute; z-index:12; right:0; top:calc(100% + 3px); min-width:184px;
  padding:7px; border:1px solid #544367; background:#20182d; border-radius:10px; box-shadow:0 10px 30px #0008;
}
#orbit-preferences-actions .top-actions { display:grid; gap:5px; }
#orbit-preferences-actions .top-actions > * { text-align:left; justify-content:flex-start; }
.suite-view .quick-preferences[open] { z-index:9; }
#notice:not([hidden]),#network-status:not([hidden]) { width:min(92%,760px); margin-inline:auto; overflow-wrap:anywhere; }
.dm-post-draft { justify-content:space-between; gap:7px; color:#ecdbff; padding:6px 8px; background:#2e2241; border:1px solid #5d477a; border-radius:7px; font-size:.85rem; }
.dm-post-draft button { min-height:32px; padding:4px 8px; background:#231931; font-size:.78rem; }
#publish-dialog label > small { color:#c8b8d8; }
#image-approval > p { color:#f5e9ff; }
@media(max-width:740px) {
  .quick-preferences summary { width:30px; }
  .orbit-mast-actions { gap:7px; }
  .suite-conversation { min-height:68px; }
  .suite-view #dm-form { padding-bottom:max(8px,env(safe-area-inset-bottom)); }
  #orbit-preferences-actions { min-width:155px; }
}

/* Keep chat controls in separate rows and above the mobile navigation. */
.suite-view #chat .chat-workspace { grid-template-rows:minmax(150px,1fr) auto auto; }
.suite-view #chat-form { z-index:5; }
.suite-view #chat-form:has(.composer-menu[open]) { z-index:10; }
.suite-view .composer-popover { max-height:min(60dvh,480px); overflow:auto; overscroll-behavior:contain; }
@media(max-width:740px) {
  .suite-view #chat { padding-bottom:calc(90px + env(safe-area-inset-bottom)); }
  .suite-view #chat .chat-workspace { min-height:0; grid-template-rows:auto auto auto; }
  .suite-view #chat .composer-popover { max-height:min(50dvh,380px); }
  .suite-view #chat .composer-send { margin-left:0; }
}

/* Entrada com a paleta da rede social. */
body:has(#home:not([hidden])),body:has(#auth-panel:not([hidden])) { background:radial-gradient(ellipse at 70% 0,#251831,transparent 66%),#100e19; }
body:has(#home:not([hidden])) .top,body:has(#auth-panel:not([hidden])) .top { background:#191626; border-color:#322c40; }
body:has(#home:not([hidden])) .mobile-brand,body:has(#auth-panel:not([hidden])) .mobile-brand { color:#f6efff; }
#home .hero { background:#171222; border-color:#483752; box-shadow:0 32px 70px -38px #000; }
#home .cinema-art img { filter:hue-rotate(46deg) saturate(.85) brightness(.82); }
#home .hero::before { background:linear-gradient(90deg,#100e19 3%,#100e19ed 28%,#160f20aa 50%,#1a102520 78%),linear-gradient(0deg,#120d1eb8,transparent 30%); }
#home h1 { font-family:Inter,system-ui,sans-serif; font-size:clamp(2.8rem,5vw,5rem); font-weight:750; letter-spacing:-.05em; max-width:12ch; }
#home .entrance-copy > p { color:#ddd0e8; }
#home .primary,#auth-panel .primary { background:linear-gradient(125deg,#dfb4ff,#bf83ed); color:#22122d; }
#home .entrance .secondary { background:#241b30d9; border-color:#594766; }
#home .home-preview { background:linear-gradient(135deg,#21192e,#181322); border-color:#382b46; }
#home .home-preview:hover { background:#2c1d3b; border-color:#9570ad; }
#auth-panel { background:#191523; border-color:#3e304a; }
#auth-panel .auth-art { background:linear-gradient(0deg,#160f23df,#1a102a55),url("./assets/cinema-mobile.webp") center/cover; background-blend-mode:normal,luminosity; }
#auth-panel .auth-content { background:#191523; }
#auth-panel input { background:#211b2c; border-color:#4c3d59; }
@media(max-width:640px) {
  #home .hero::before { background:linear-gradient(0deg,#100d19fa 8%,#140e1def 40%,#1b102482 68%,transparent 94%); }
  #home h1 { font-size:clamp(2.4rem,10vw,3.65rem); }
}

/* A quieter, responsive workspace for conversation and point packs. */
.suite-view #chat .chat-workspace { background:linear-gradient(155deg,#12101d,#0d0b15 70%); border-color:#30273f; border-radius:22px; min-height:min(72dvh,850px); padding:clamp(14px,2vw,26px); }
.suite-view #chat #history { min-height:250px; align-content:start; }
.suite-view #chat .chat-empty { min-height:330px; gap:12px; }
.chat-spark { display:grid; place-items:center; width:56px; height:56px; border:1px solid #6f4f8d; border-radius:19px; color:#e2b5ff; background:linear-gradient(145deg,#49345d,#211a30); font-size:28px; box-shadow:0 0 32px #9b55cc33; }
.suite-view #chat .chat-empty>p { font-size:clamp(1.35rem,3vw,1.9rem); letter-spacing:-.035em; }
.chat-empty small { color:#b9a8c9; font-size:.9rem; }
.suite-view #chat .suggestions { margin-top:12px; }
.suite-view #chat .suggestions button { border:1px solid #493a59; border-radius:999px; background:#1b1727; color:#e4dced; padding:9px 14px; }
.suite-view #chat .suggestions button:hover { border-color:#b176db; background:#2b2039; }
#studio-image-action { display:none; }
.suite-view #chat-form.chat-composer { border:1px solid #51415e; border-radius:20px; background:#1a1625; box-shadow:0 10px 35px #0004; padding:13px; }
.suite-view #chat-form textarea { min-height:70px; color:#f6f2fa; }
.suite-view #chat-form .composer-menu summary { border-radius:50%; width:40px; height:40px; display:grid; place-items:center; font-size:1.3rem; background:#282033; color:#e4c5fa; padding:0; }
.suite-view #chat-form .composer-popover { border-color:#574366; background:#1b1727; }
.suite-view #chat-form #send-chat { border-radius:999px; padding-inline:22px; }
.points-page { max-width:1120px; }
.points-heading { display:flex; justify-content:space-between; align-items:end; gap:18px; flex-wrap:wrap; margin:34px 0 24px; }
.points-heading h1 { font-size:clamp(2rem,5vw,3.5rem); letter-spacing:-.045em; margin:8px 0; }
.points-heading p:not(.points-kicker) { color:#b9abc9; max-width:56ch; }
.points-kicker { color:#cc9dec; letter-spacing:.13em; font-size:.72rem; font-weight:800; }
.points-explainer { display:flex; align-items:center; gap:15px; border:1px solid #4f3b60; border-radius:18px; background:linear-gradient(100deg,#2a1e3e,#171421); padding:18px; }
.points-explainer>span { display:grid; place-items:center; flex:none; width:48px; height:48px; border-radius:15px; background:#503570; color:#edceff; font-size:1.5rem; }
.points-explainer strong { color:#f8f2fc; }.points-explainer p { color:#c3b4d0; margin-top:4px; }
.points-page .pack-status { color:#c8b5d7; background:#181421; border:1px solid #3f334b; border-radius:12px; padding:12px 15px; margin:20px 0; font-size:.9rem; }
.points-page .pack-grid { grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:14px; }
.points-page .pack { display:flex; flex-direction:column; align-items:flex-start; gap:10px; padding:22px; min-height:220px; background:linear-gradient(155deg,#20192a,#14111d); border:1px solid #44354f; border-radius:18px; }
.points-page .pack-featured { border-color:#ad76d2; box-shadow:0 0 30px #af68df1a; }
.points-page .pack-icon { display:grid; place-items:center; width:42px; height:42px; border-radius:13px; background:#332541; color:#e4afff; font-size:1.3rem; }
.points-page .pack h2 { font-size:1rem; color:#d6c8df; }.points-page .pack strong { font-size:1.5rem; color:#f7effc; }.points-page .pack p { color:#d9a9f4; font-weight:700; margin:0; }.points-page .pack small { color:#a99ab6; margin-top:auto; }
@media(max-width:740px){ .suite-view #chat .chat-workspace { min-height:calc(100dvh - 230px); padding:14px; }.suite-view #chat .chat-empty { min-height:240px; }.suite-view #chat .suggestions button { font-size:.79rem; }.points-heading { margin-top:20px; }.points-page .pack-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.points-page .pack { padding:16px; min-height:195px; }.points-page .pack strong { font-size:1.15rem; } }
@media(max-width:360px){ .points-page .pack-grid { grid-template-columns:1fr; } }

.home-legal{margin-top:18px;text-align:center;font-size:.85rem}

/* Menu unico no celular */
.tabbar { display:none; }
@media(max-width:740px) {
  .tabbar:not([hidden]) { display:grid; position:fixed; inset:auto 0 0; z-index:9; grid-template-columns:repeat(5,minmax(0,1fr)); gap:2px; background:#15111f; border-top:1px solid #3d3148; padding:6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display:grid; justify-items:center; align-content:center; gap:3px; min-height:46px; min-width:0; border-radius:11px; color:#d8cde4; font-size:clamp(.6rem,2.8vw,.74rem); text-decoration:none; }
  .tabbar svg { width:22px; height:22px; }
  .tabbar a[aria-current=page] { color:#e3c2ff; background:#2c203f; }
  .has-tabbar #notifications,.has-tabbar #post,.has-tabbar #packs { padding-bottom:90px; }
  .has-tabbar .floating-publish { bottom:calc(76px + env(safe-area-inset-bottom)); }
  #characters .view-nav,#explore .view-nav { display:none; }
}

/* Fotos inteiras, sem cortar a cabeca */
article.post > img,.orbit-view .orbit-page article.post > img { display:block; width:100%; height:auto; aspect-ratio:auto; max-height:min(72dvh,620px); object-fit:contain; background:#0b0911; border-radius:9px; }
.character-card > img { width:100%; height:auto; max-height:440px; object-fit:contain; background:#0b0911; }
.suite-character-tile img,.suite-view #member .suite-character-tile img { aspect-ratio:3/4; height:auto; max-height:none; object-fit:cover; object-position:50% 12%; }
.member-avatar img,.post .member-avatar img { object-position:50% 15%; }
.member-cover img,.profile-preview { object-position:50% 15%; }
.suite-view #chat .chat-image-result img { object-fit:contain; background:#0b0911; }
.reference-preview img { object-fit:contain; background:#0b0911; }

/* Perfil */
.suite-view #account #profile-panel { display:grid; grid-template-columns:minmax(0,1fr); gap:18px; width:min(100%,720px); background:transparent; border:0; padding:0; }
.suite-view #account #profile-panel[hidden] { display:none; }
#profile-panel .suite-page-title { margin:0; }
.suite-view #member .member-cover,.suite-view #account .member-cover { height:clamp(150px,30vw,240px); border-radius:18px; }
.suite-view .member-card { padding:0; }
.suite-view .member-content { display:grid; gap:8px; padding:60px 4px 2px; min-height:0; }
.suite-view .member-content > .member-avatar,.suite-view .member-content > .change-avatar { position:absolute; top:-48px; left:14px; margin:0; }
.suite-view .member-content .member-avatar { width:100px; height:100px; font-size:2rem; border:4px solid #11101a; }
.suite-view .member-content > .change-avatar::after { content:"✎"; position:absolute; right:0; bottom:2px; display:grid; place-items:center; width:30px; height:30px; border-radius:50%; background:#c996f5; color:#22112f; border:3px solid #11101a; font-size:.85rem; }
.suite-view .member-content h1,.suite-view .member-content h2 { font-size:1.55rem; line-height:1.2; overflow-wrap:anywhere; }
.suite-view .member-content .handle { margin-top:-6px; }
.suite-view .member-content .creator-character { display:grid; gap:4px; margin-top:4px; padding:12px 14px; background:#1c1729; border:1px solid #3d324d; border-left:3px solid #c996f5; border-radius:12px; }
.suite-view .creator-character p { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:4; overflow:hidden; }
.suite-view .member-counts { gap:8px; flex-wrap:wrap; margin-top:4px; }
.suite-view .member-counts span { padding:6px 12px; border:1px solid #3d324d; border-radius:999px; background:#1a1524; }
.suite-view .member-content .member-actions { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:8px; }
.suite-view .member-content .member-actions button,.suite-view .member-content .member-actions .button { display:grid; place-items:center; min-height:42px; text-align:center; }
.change-cover { border-radius:999px; }
.change-cover::before { content:"✎ "; }
.profile-shortcuts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.profile-shortcuts a { display:flex; align-items:center; gap:10px; min-height:56px; padding:10px 13px; border:1px solid #3d324d; border-radius:14px; background:#1a1524; text-decoration:none; font-size:.9rem; }
.profile-shortcuts a strong { color:#f6eefc; min-width:0; }
.profile-shortcuts svg { width:22px; height:22px; flex:none; color:#d9afff; }
.profile-characters h2 { font-size:1.1rem; }
.profile-characters .character-list { grid-template-columns:repeat(auto-fill,minmax(135px,1fr)); gap:10px; margin:10px 0 0; }
.account-settings { border:1px solid #3d324d; border-radius:14px; padding:12px 14px; }
.account-settings summary { cursor:pointer; font-weight:650; }
.account-settings > .stack { margin-top:14px; }
.account-settings h2 { font-size:.95rem; }

/* Editor de perfil */
#profile-editor .editor-actions { position:sticky; bottom:calc(-1 * clamp(12px,3vw,22px)); z-index:2; margin:0; padding:10px 0 clamp(12px,3vw,22px); background:#1a1524; }
#profile-editor .editor-actions button { flex:1; }
#profile-editor input[type=file] { max-width:100%; font-size:.8rem; }
.profile-preview-avatar { width:84px; height:84px; }

/* Videos no formato certo */
.format-chip { margin-right:auto; padding:2px 9px; border:1px solid #4a3b60; border-radius:999px; color:#dccbee; font-size:.7rem; white-space:nowrap; }
.social-preview-head { flex-wrap:wrap; }
.social-preview .play-preview.play-video,.social-preview .play-preview.play-vertical { display:grid; place-content:center; justify-items:center; gap:8px; font-weight:700; background:radial-gradient(ellipse at 50% 40%,#3a2958,#120e1d 72%); border:1px solid #44365a; }
.social-preview .play-preview.play-video::before,.social-preview .play-preview.play-vertical::before { content:"▶"; display:grid; place-items:center; width:52px; height:52px; border-radius:50%; background:#c996f5; color:#22112f; }
.social-preview .play-preview.play-video { aspect-ratio:16/9; }
.social-preview .play-preview.play-vertical { aspect-ratio:9/16; width:min(240px,calc(100% - 24px)); margin:0 auto 12px; }
.social-preview iframe.embed-vertical { width:min(100%,330px); height:auto; max-height:none; }

@media(max-width:640px) {
  #studio-dialog { padding:12px; }
  #studio-dialog .studio-grid > .panel { padding:0; border:0; background:transparent; }
}

/* Conversa privada cabe na tela */
.suite-thread { grid-template-columns:minmax(0,1fr); }
.suite-thread > *,.suite-peer > div,.suite-view .dm-compose > * { min-width:0; }
.suite-view .dm-compose textarea { width:0; flex:1 1 0; }
.suite-view .dm-compose details,.suite-view .dm-compose > button { flex:none; }
.suite-peer > div { overflow-wrap:anywhere; }
#studio-dialog > .split-head { margin-bottom:14px; }

/* Community actions and creator profile */
.orbit-view .post .reactions {
  display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); align-items:center;
  gap:4px; padding:5px 0; min-height:52px; border-top:1px solid #33273e;
}
.orbit-view .post .reactions:has(.orbit-repost) { grid-template-columns:repeat(5,minmax(0,1fr)); }
.orbit-view .post .reactions:not(:has(.orbit-repost)) { grid-template-columns:repeat(4,minmax(0,1fr)); }
.orbit-view .post .reactions > button:not(.orbit-copy),.orbit-view .reaction-box > button {
  display:inline-flex; align-items:center; justify-content:center; gap:5px;
  border-radius:9px; min-width:0; min-height:44px; font-size:.78rem; font-variant-numeric:tabular-nums;
}
.orbit-view .post .reactions button:hover { background:#2a2036; }
.orbit-view .post .reactions .orbit-comment::before,.orbit-view .post .reactions .orbit-repost::before,
.orbit-view .post .reactions .orbit-bookmark::before { content:none; }
.post .reactions svg { width:21px; height:21px; flex:none; }
.orbit-view .post .reactions .orbit-repost[aria-pressed=true] { color:#97dec2; }
.orbit-view .post .reactions .orbit-bookmark[aria-pressed=true] { color:#dcb5ff; }
.orbit-like[aria-pressed=true] svg,.orbit-bookmark[aria-pressed=true] svg { fill:currentColor; }
.orbit-view .reaction-box { justify-content:center; min-width:0; }
.orbit-view .reaction-box .reaction-trigger { width:23px; padding:0; color:#c6b6d3; }
.orbit-view .reaction-box .reaction-trigger svg { width:13px; height:13px; }
.emoji-action { font-size:1.03rem; }
.orbit-view .post .reactions .orbit-share { order:4; }
.orbit-view .post .reactions .orbit-copy { order:5; grid-column:1/-1; margin:0; justify-self:start; }
.orbit-view .post .reaction-picker { left:50%; transform:translateX(-50%); white-space:nowrap; z-index:5; }
.post-discussion .comment-item { background:#1d1829; padding:10px 12px; border:1px solid #372d44; gap:7px; }
.comment-head .member-avatar { width:26px; height:26px; font-size:.75rem; }
.comment-head time { margin-left:auto; }
.comment-head button { min-height:32px; }
.comment-status,.post-action-status { color:#e6c2ff; font-size:.85rem; }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.post .post-photo { display:block; width:100%; padding:0; border:0; border-radius:12px; background:#0b0911; overflow:hidden; }
.post .post-photo img { display:block; width:100%; height:auto; max-height:min(72dvh,620px); margin:0; object-fit:contain; }
#post-lightbox { width:max-content; max-width:calc(100vw - 20px); max-height:calc(100dvh - 20px); padding:0; background:#0b0911; overflow:auto; }
#post-lightbox img { display:block; max-width:100%; max-height:calc(100dvh - 28px); object-fit:contain; }
#post-lightbox form { position:absolute; top:8px; right:8px; }
#publish-dialog,#account-settings-dialog { background:#171122; border-color:#4c3c5c; border-radius:20px; padding:clamp(14px,4vw,24px); max-height:calc(100dvh - 20px); overflow:auto; }
#publish-dialog :is(input,textarea) { background:#100d19; border-color:#44364f; }
.publish-heading { display:flex; gap:10px; align-items:center; }
.publish-heading h2 { flex:1; font-size:1.2rem; }
.publish-heading .member-avatar { width:38px; height:38px; }
.dialog-close { display:grid; place-items:center; width:44px; height:44px; padding:0; border-radius:50%; font-size:1.45rem; background:#241a32; }
#post-form textarea[name=body] { min-height:90px; }
.publish-upload,.publish-extra { border:1px solid #453752; padding:10px 12px; border-radius:10px; }
.publish-upload input { padding:6px 0; border:0; }
.publish-extra summary { cursor:pointer; color:#ecdbf7; }
.publish-extra[open] > :not(summary) { margin-top:10px; }
#publish-photo-preview { position:relative; margin:0; border-radius:10px; background:#0b0911; overflow:hidden; }
#publish-photo-preview img { display:block; width:100%; max-height:210px; object-fit:contain; }
#remove-post-photo { position:absolute; right:8px; bottom:8px; }
.publish-footer { display:flex; justify-content:flex-end; padding-top:10px; border-top:1px solid #453752; }
.publish-footer .primary { background:#dcb7ff; color:#251437; border-color:#dcb7ff; min-height:44px; border-radius:999px; padding-inline:22px; }
#member-body { max-width:740px; }
.suite-view #member .member-card { border:1px solid #3e314a; border-radius:19px; background:linear-gradient(160deg,#21192d,#171321); }
.suite-view #member .member-cover {
  border-radius:18px 18px 0 0;
  background:radial-gradient(ellipse at 78% 18%,#a978ce5c,transparent 54%),linear-gradient(125deg,#241735,#4c3264 55%,#242541);
}
.suite-view #member .member-content { padding:60px clamp(14px,4vw,24px) 20px; }
.suite-view #member .member-content h1 { font-size:clamp(1.5rem,5vw,2.2rem); }
.suite-view #member .member-content .member-actions { display:flex; flex-wrap:wrap; gap:8px; }
.suite-view #member .member-actions :is(button,.button),.member-options summary { min-height:44px; }
.suite-view #member .member-actions .primary { border-color:#dcb7ff; background:#dcb7ff; color:#251437; }
.member-options { position:relative; }
.member-options summary { display:grid; place-items:center; cursor:pointer; width:44px; border-radius:10px; border:1px solid #564660; }
.member-option-menu { position:absolute; right:0; top:calc(100% + 4px); z-index:4; width:max-content; padding:8px; border-radius:12px; background:#251a33; border:1px solid #564660; }
#account-settings-dialog details { border:1px solid #4b3a59; padding:10px; border-radius:10px; }
#account-settings-dialog details > div { padding:10px 0; }
#account-settings-dialog h2 { font-size:1rem; }
#account-settings-dialog #account-settings-title { font-size:1.2rem; }
@media(max-width:740px) {
  .orbit-view .orbit-caption { margin-left:0; }
  .comment-composer { flex-wrap:wrap; }
  .comment-composer textarea { flex-basis:100%; }
  .comment-composer button { margin-left:auto; }
}

.science-directory { background:#191423; border-color:#463552; }
.science-directory > summary { cursor:pointer; color:#f5eafe; font-weight:720; }
.science-directory > summary .science-badge { margin-left:8px; }
.science-roster { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,165px),1fr)); gap:9px; margin-top:14px; }
.science-tile { display:flex; align-items:center; gap:9px; min-height:58px; padding:8px; background:#20192d; border:1px solid #43354e; border-radius:12px; text-decoration:none; }
.science-tile:hover { border-color:#caa2ed; }
.science-tile-label { display:grid; min-width:0; gap:2px; }
.science-tile-label strong { color:#f8efff; }
.science-tile-label > span { color:#d7c9e3; font-size:.8rem; overflow-wrap:anywhere; }
[data-palette=violet] { --science-hue:#bc95f4; }
[data-palette=blue] { --science-hue:#79caf1; }
[data-palette=amber] { --science-hue:#f0bf7c; }
[data-palette=green] { --science-hue:#9edab2; }
[data-palette=rose] { --science-hue:#f19fbd; }
.science-avatar { display:grid; place-items:center; flex:none; width:38px; height:38px; border-radius:12px; color:var(--science-hue); font-size:1.4rem; border:1px solid color-mix(in srgb,var(--science-hue),transparent 55%); background:radial-gradient(circle at 30% 18%,color-mix(in srgb,var(--science-hue),#21152e 28%),#21152e 68%); text-shadow:0 1px 8px #140c21; }
.science-badge { display:inline-block; padding:3px 8px; border:1px solid #8f6bb1; border-radius:999px; background:#2d2040; color:#efdcff; font-size:.7rem; line-height:1.3; white-space:nowrap; }
.science-profile { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:clamp(12px,4vw,30px); padding:clamp(16px,5vw,36px); border:1px solid #624b72; border-radius:18px; background:radial-gradient(circle at 6% 0%,color-mix(in srgb,var(--science-hue),#201629 62%),transparent 54%),#181320; }
.science-profile-identity { display:grid; gap:8px; color:#ead8f7; }
.science-profile-identity .primary { justify-self:start; margin-top:5px; }
.science-profile-identity h1 { font-size:clamp(1.6rem,7vw,3rem); color:#fff3ff; }
.science-profile > .science-avatar { width:clamp(58px,18vw,112px); height:clamp(58px,18vw,112px); font-size:clamp(1.8rem,9vw,4rem); border-radius:28%; }
.science-reply-link { text-decoration:none; color:#ead8f7; }
.science-reply-link span { color:#d9a9f6; font-size:.8rem; }
.post-discussion .science-comment { border-color:#5d4571; background:#251930; }
.science-comment .science-avatar { width:28px; height:28px; font-size:1rem; border-radius:8px; }
#science-invite { min-height:44px; }
#member-tabs[hidden] { display:none; }


.science-followers { margin-top:10px; }
.science-followers > summary { cursor:pointer; font-weight:650; }
.science-followers > ul { padding:0; margin-block:10px 0; list-style:none; }
.science-followers li { gap:8px; }
.science-followers .science-avatar { width:30px; height:30px; font-size:1rem; border-radius:8px; }
.science-followers button { margin-left:auto; }

.science-avatar { position:relative; overflow:hidden; }
.science-avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.science-member-card .member-cover img { display:block; width:100%; height:100%; object-fit:cover; object-position:50% 48%; }
.science-member-card .science-member-identity { gap:10px; }
.science-member-card .member-content > .body { max-width:56ch; line-height:1.55; }
.science-specialty { justify-self:start; padding:5px 11px; border-radius:999px; font-size:.8rem; color:#efdcff; border:1px solid color-mix(in srgb,var(--science-hue),transparent 65%); background:#241b32; }
#science-profile-tabs { grid-template-columns:repeat(3,minmax(0,1fr)); width:min(100%,740px); }
#science-profile-tabs[hidden] { display:none; }
.science-profile-gallery { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr)); gap:12px; }
.science-artwork { margin:0; padding:0; overflow:hidden; }
.science-artwork img { width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; display:block; }
.science-artwork figcaption { padding:10px 12px; color:#e5c7f2; }
.science-search { margin-top:14px; }
.science-search input { margin-top:3px; }


.post-title-line { gap:6px; }
.post-avatar-link { display:flex; flex:none; border-radius:50%; }
.orbit-view .post-byline .science-avatar { width:44px; height:44px; border-radius:50%; }
.science-post-source { display:block; width:fit-content; max-width:100%; margin:9px 3px 5px 54px; color:#dfc4ff; font-size:.8rem; overflow-wrap:anywhere; }
@media(max-width:740px) { .science-post-source { margin-left:0; } }

.science-copy .body { margin:0; }
.science-copy .science-translate { min-height:38px; margin-top:4px; padding:4px 0; font-size:.82rem; color:#e0bbff; background:transparent; border:0; text-align:left; }
.science-copy .science-translate:hover { text-decoration:underline; }
#post-body:not([hidden]) { display:grid; width:min(100%,760px); }
.discussion-view { gap:12px; min-width:0; }
.discussion-view h2 { scroll-margin-top:72px; font-size:clamp(1.18rem,4vw,1.45rem); }
.discussion-thread,.discussion-root { gap:6px; }
.discussion-root > .discussion-comment { padding:12px 14px 9px; }
.discussion-comment { background:#1c1729; border:1px solid #3d314b; border-radius:12px; min-width:0; }
.discussion-comment .body,.discussion-comment .profile-link { overflow-wrap:anywhere; }
.discussion-comment .comment-head { gap:8px; }
.discussion-comment .comment-head time { margin-left:auto; font-size:.74rem; }
.discussion-options { position:relative; }
.discussion-options summary { display:grid; place-items:center; list-style:none; min-width:35px; min-height:35px; cursor:pointer; }
.discussion-options button { display:block; white-space:nowrap; margin-top:4px; }
.discussion-view .discussion-actions button { min-height:38px; padding:4px 8px; color:#ddd1ed; background:transparent; border-color:transparent; font-size:.82rem; }
.discussion-view .discussion-actions button:hover { background:#30223f; }
.discussion-replies { margin-left:16px; padding-left:12px; border-left:2px solid #543f67; gap:6px; }
.discussion-replies:not([hidden]) > .discussion-comment { background:#191525; }
.discussion-form { position:sticky; bottom:12px; z-index:3; gap:6px; padding:10px; border:1px solid #5e4670; border-radius:13px; background:#21182e; }
.discussion-form textarea { min-width:0; min-height:54px; resize:vertical; background:#17111f; }
.discussion-form .primary { min-height:44px; }
.discussion-reply-cue { justify-content:space-between; font-size:.82rem; color:#e0c6ef; }
.discussion-reply-cue button { min-height:36px; }
.discussion-emojis summary { cursor:pointer; font-size:.8rem; min-height:30px; width:fit-content; display:list-item; }
.discussion-empty { padding:14px; border:1px solid #3a2d46; border-radius:12px; }
@media(max-width:740px) {
  .discussion-form { bottom:calc(64px + env(safe-area-inset-bottom)); }
  .discussion-view .comment-composer { flex-wrap:nowrap; }
  .discussion-view .comment-composer textarea { flex-basis:auto; }
  .discussion-view .comment-composer button { margin-left:0; }
  .discussion-replies { margin-left:8px; padding-left:8px; }
}
