:root{
  --bg:#0a0e14;--panel:#111722;--panel2:#151d2a;--panel3:#0e141e;--line:#273244;--line2:#36445a;
  --text:#edf2f7;--muted:#98a6b9;--gold:#f4b544;--gold2:#ffcc6b;--blue:#69a8ff;--green:#72d69a;--red:#ff8181;
  --purple:#bb8cff;--cyan:#6dd6dd;--shadow:0 18px 50px rgba(0,0,0,.25);--radius:16px;--radius-sm:10px;
  --site-header-h:59px;--nav-h:49px;--sticky-panel-top:120px;
}
*{box-sizing:border-box}
html{background:var(--bg);color-scheme:dark;scroll-behavior:smooth}
body{margin:0;font:14px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;background:radial-gradient(circle at 15% 0%,rgba(244,181,68,.08),transparent 28%),var(--bg);color:var(--text);min-height:100vh}
button,input,select,textarea{font:inherit}
button,a{touch-action:manipulation}
a{color:inherit;text-decoration:none}
.hidden{display:none!important}.center{display:flex;align-items:center;justify-content:center}.full{width:100%}.small{font-size:12px}.muted{color:var(--muted)}
.skip-link{position:fixed;top:-60px;left:10px;z-index:1000;background:var(--gold);color:#17120a;padding:10px 14px;border-radius:8px}.skip-link:focus{top:10px}
.site-header{position:sticky;top:0;z-index:80;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;padding:10px 18px;background:rgba(10,14,20,.92);border-bottom:1px solid var(--line);backdrop-filter:blur(16px)}
.brand-wrap,.brand,.header-actions,.hero-actions,.heading-actions,.toolbar-row{display:flex;align-items:center;gap:10px}.brand-wrap{justify-self:start}.header-actions{justify-self:end}.brand{min-width:0}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border:1px solid rgba(244,181,68,.55);border-radius:12px;background:linear-gradient(145deg,#2c2416,#141922);color:var(--gold2);font-size:20px;font-weight:900;box-shadow:inset 0 0 20px rgba(244,181,68,.08)}
.brand strong{display:block;letter-spacing:.13em;font-size:15px}.brand small{display:block;color:var(--muted);font-size:10px;letter-spacing:.08em}.version-chip,.plan-badge{border:1px solid var(--line);border-radius:999px;padding:4px 8px;font-size:10px;letter-spacing:.07em;color:var(--muted)}.plan-badge{border-color:rgba(244,181,68,.38);color:var(--gold2);background:rgba(244,181,68,.08);display:inline-flex;align-items:center;justify-content:center;text-align:center;min-width:92px;white-space:nowrap}
.primary-nav{position:sticky;top:var(--site-header-h);z-index:70;display:flex;gap:4px;padding:7px 18px;background:rgba(10,14,20,.88);border-bottom:1px solid rgba(39,50,68,.72);backdrop-filter:blur(12px);overflow:auto}.nav-btn{border:0;background:transparent;color:var(--muted);border-radius:9px;padding:7px 11px;cursor:pointer;white-space:nowrap}.nav-btn:hover,.nav-btn.active{background:rgba(255,255,255,.06);color:var(--text)}.nav-btn.active{box-shadow:inset 0 -2px 0 var(--gold)}.uhu-nav{color:var(--gold2)}
main{max-width:1500px;margin:0 auto;padding:18px}.view{display:none}.active-view{display:block}.eyebrow{margin:0 0 6px;color:var(--gold2);font-size:11px;font-weight:800;letter-spacing:.15em}.view-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:14px}.view-heading h2,.hero-panel h1,.uhu-hero h2{margin:0}.view-heading h2{font-size:27px}.view-heading p{margin:4px 0 0}
.hero-panel,.uhu-hero{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,.75fr);gap:18px;padding:28px;border:1px solid var(--line);border-radius:22px;background:linear-gradient(135deg,rgba(244,181,68,.08),rgba(105,168,255,.035) 55%,rgba(17,23,34,.9));box-shadow:var(--shadow)}.hero-copy{max-width:850px}.hero-panel h1{font-size:clamp(34px,5vw,62px);line-height:1.02;letter-spacing:-.04em;max-width:900px}.hero-copy>p:not(.eyebrow){font-size:16px;color:#c1ccda;max-width:820px}.hero-actions{margin-top:20px;flex-wrap:wrap}
.primary-btn,.secondary-btn,.ghost-btn,.text-btn{border-radius:10px;padding:9px 13px;cursor:pointer;transition:.15s ease}.primary-btn{border:1px solid #ffc75a;background:linear-gradient(180deg,#ffc85d,#eba83a);color:#171109;font-weight:800}.primary-btn:hover{filter:brightness(1.05);transform:translateY(-1px)}.secondary-btn{border:1px solid var(--line2);background:linear-gradient(180deg,#202b3a,#17202c);color:var(--text);font-weight:700}.secondary-btn:hover,.ghost-btn:hover{border-color:#53627a;background:#202b3a}.ghost-btn{border:1px solid var(--line);background:rgba(255,255,255,.025);color:#d8e0ea}.text-btn{border:0;background:transparent;color:var(--gold2);padding:5px 0;text-align:left}.text-btn:hover{text-decoration:underline}button:disabled{opacity:.45;cursor:not-allowed;transform:none!important}
.hero-card,.inspector-card,.feature-card,.price-card,.coming-panel,.architecture-note,.gallery-callout,.uhu-domain-card{border:1px solid var(--line);background:rgba(12,17,25,.78);border-radius:var(--radius);padding:16px}.hero-card-title{font-size:11px;letter-spacing:.12em;color:var(--muted);font-weight:800}.dashboard-stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.stat{padding:12px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.025)}.stat strong{display:block;font-size:24px;color:var(--gold2)}.stat span{font-size:11px;color:var(--muted)}
.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:14px}.feature-card{min-height:190px;display:flex;flex-direction:column}.feature-card h3{margin:10px 0 5px}.feature-card p{margin:0;color:var(--muted)}.feature-card .text-btn{margin-top:auto}.feature-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:rgba(105,168,255,.09);border:1px solid rgba(105,168,255,.25);color:var(--blue);font-weight:900}.uhu-card .feature-icon{width:auto;padding:0 9px;color:var(--gold2);border-color:rgba(244,181,68,.28);background:rgba(244,181,68,.08)}
.workspace-grid{display:grid;grid-template-columns:230px minmax(0,1fr) 300px;gap:12px;align-items:start}.workspace-sidebar,.inspector-panel{position:sticky;top:var(--sticky-panel-top)}.workspace-sidebar,.editor-panel,.inspector-card{border:1px solid var(--line);background:rgba(15,20,30,.86);border-radius:var(--radius)}.workspace-sidebar{padding:12px}.editor-panel{padding:14px;min-height:680px}.sidebar-block{margin-bottom:11px}.sidebar-block label,.field label{display:block;margin-bottom:5px;font-size:11px;color:#b7c2d1;font-weight:700}.sidebar-block select,.field input,.field select,.field textarea,.search-input,.toolbar-row select{width:100%;border:1px solid var(--line2);background:#0c121b;color:var(--text);border-radius:9px;padding:8px 9px;outline:none}.field textarea{min-height:92px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus,.search-input:focus,.sidebar-block select:focus{border-color:var(--gold);box-shadow:0 0 0 3px rgba(244,181,68,.10)}.module-nav{display:flex;flex-direction:column;gap:3px;margin:12px 0}.module-btn{display:flex;justify-content:space-between;gap:8px;border:0;background:transparent;color:var(--muted);padding:7px 8px;border-radius:8px;cursor:pointer;text-align:left}.module-btn:hover,.module-btn.active{color:var(--text);background:rgba(255,255,255,.05)}.module-btn.active{box-shadow:inset 3px 0 0 var(--gold)}.module-btn small{font-size:10px}.module-btn.optional-complete small,.module-btn small.optional-complete{color:var(--green);font-weight:900}.sidebar-actions{display:flex;flex-direction:column;gap:7px;padding-top:10px;border-top:1px solid var(--line)}
.module-section{display:none}.module-section.active{display:block}.module-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px;padding-bottom:10px;border-bottom:1px solid var(--line)}.module-heading h3{margin:0;font-size:20px}.module-heading p{margin:3px 0 0;color:var(--muted);font-size:12px}.form-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:9px}.field{grid-column:span 6}.field.wide{grid-column:span 12}.field.third{grid-column:span 4}.field.quarter{grid-column:span 3}.field.compact textarea{min-height:68px}.help{display:block;margin-top:4px;color:#758398;font-size:10px}.field-row{display:flex;gap:7px}.field-row>*{flex:1}.color-input{height:38px;padding:4px!important}
.range-wrap{display:grid;grid-template-columns:1fr 46px;gap:8px;align-items:center}.range-wrap input[type=range]{padding:0;border:0;box-shadow:none;background:transparent}.range-value{text-align:center;border:1px solid var(--line);border-radius:8px;padding:5px;color:var(--gold2);font-size:11px}
.inspiration-panel{border:1px solid rgba(187,140,255,.24);background:linear-gradient(145deg,rgba(187,140,255,.06),rgba(105,168,255,.025));border-radius:14px;padding:12px}.preset-chip-row{display:flex;gap:6px;flex-wrap:wrap}.preset-chip{border:1px solid var(--line2);border-radius:999px;padding:5px 8px;background:rgba(255,255,255,.03);color:#d9e2ef;font-size:11px;cursor:pointer}.preset-chip.selected{border-color:var(--purple);background:rgba(187,140,255,.14);color:#eadcff}.selected-pill-row{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px}.selected-pill{padding:3px 7px;border-radius:999px;background:rgba(105,168,255,.08);border:1px solid rgba(105,168,255,.20);font-size:10px;color:#bdd7ff}
.relationship-list{display:flex;flex-direction:column;gap:7px}.relationship-row{display:grid;grid-template-columns:1.2fr 1fr 1.4fr 34px;gap:6px}.relationship-row input,.relationship-row select{width:100%;border:1px solid var(--line2);background:#0c121b;color:var(--text);border-radius:8px;padding:7px}.icon-btn{width:34px;border:1px solid var(--line);border-radius:8px;background:rgba(255,255,255,.03);color:var(--muted);cursor:pointer}.icon-btn:hover{color:var(--red);border-color:rgba(255,129,129,.4)}
.inspector-panel{display:flex;flex-direction:column;gap:10px}.inspector-card{padding:12px}.inspector-title{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:11px;color:var(--muted);letter-spacing:.06em;text-transform:uppercase}.inspector-title strong{color:var(--text);font-size:11px}.progress{height:6px;background:#0a1018;border-radius:999px;overflow:hidden;margin:9px 0}.progress span{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--gold),var(--blue));transition:width .2s}.mini-progress-list{display:flex;flex-direction:column;gap:5px}.mini-progress-item{display:flex;justify-content:space-between;font-size:10px;color:var(--muted)}.mini-progress-item.optional-complete strong{color:var(--green);font-size:13px;line-height:1}.validation-results{margin-top:8px}.validation-item{border-left:3px solid var(--line2);padding:6px 8px;margin-bottom:6px;border-radius:6px;background:rgba(255,255,255,.025);font-size:11px}.validation-item.error{border-color:var(--red)}.validation-item.warn{border-color:var(--gold)}.validation-item.ok{border-color:var(--green)}.validation-item strong{display:block;margin-bottom:2px}
.toolbar-row{margin-bottom:12px}.toolbar-row.wrap{flex-wrap:wrap}.search-input{max-width:500px}.toolbar-row select{width:auto;min-width:150px}.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:10px}.char-card,.gallery-card,.template-card,.realm-card{border:1px solid var(--line);background:linear-gradient(180deg,rgba(20,27,39,.95),rgba(13,18,27,.95));border-radius:14px;padding:13px;min-height:170px}.char-card-head,.gallery-card-head{display:flex;justify-content:space-between;gap:10px}.char-card h3,.gallery-card h3,.template-card h3,.realm-card h3{margin:0}.card-kicker{color:var(--gold2);font-size:10px;letter-spacing:.08em;text-transform:uppercase}.tag-row{display:flex;gap:5px;flex-wrap:wrap;margin:8px 0}.tag{font-size:9px;padding:3px 6px;border:1px solid var(--line);border-radius:999px;color:var(--muted)}.card-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.card-actions button{padding:6px 8px;font-size:10px}.empty-state{text-align:center;padding:70px 20px;border:1px dashed var(--line2);border-radius:16px;color:var(--muted)}
.gallery-callout{margin-bottom:12px;border-color:rgba(105,168,255,.22);background:rgba(105,168,255,.04)}.gallery-card .gallery-art{height:120px;margin:-13px -13px 12px;border-radius:13px 13px 0 0;background:radial-gradient(circle at 30% 20%,rgba(244,181,68,.23),transparent 35%),linear-gradient(135deg,#202a3b,#101722);display:grid;place-items:center;font-size:40px;font-weight:900;color:rgba(255,255,255,.25);letter-spacing:.08em}.gallery-card.local .gallery-art{background:radial-gradient(circle at 70% 10%,rgba(187,140,255,.28),transparent 35%),linear-gradient(135deg,#1b2638,#101722)}
.template-grid,.realm-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:10px}.template-card p,.realm-card p{color:var(--muted);font-size:12px}.template-card .primary-btn,.realm-card .secondary-btn{margin-top:8px}.coming-panel,.architecture-note{margin-top:14px}.coming-panel h3,.architecture-note h3{margin-top:0}.uhu-hero{margin-bottom:12px}.uhu-domain-card{display:flex;flex-direction:column;gap:7px}.uhu-domain-card strong{color:var(--gold2);font-size:17px}.uhu-domain-card span{padding:7px 8px;border:1px solid var(--line);border-radius:8px;color:#c5d0df}.realm-card{position:relative;overflow:hidden}.realm-card:before{content:"";position:absolute;top:0;left:0;right:0;height:2px;background:linear-gradient(90deg,var(--gold),var(--blue))}.realm-code{font-size:10px;color:var(--gold2);letter-spacing:.1em}
.pricing-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:1000px}.price-card{padding:20px}.price-card.pro{border-color:rgba(244,181,68,.45);box-shadow:0 0 0 1px rgba(244,181,68,.06),var(--shadow)}.price-head{display:flex;justify-content:space-between;align-items:center}.price-head span{font-size:11px;color:var(--gold2);letter-spacing:.12em}.price-head strong{font-size:28px}.price-head small{font-size:11px;color:var(--muted)}.price-card ul{padding-left:20px;color:#c6d0dd}.price-card li{margin:6px 0}.price-card>small{display:block;margin-top:8px;color:var(--muted)}
.prompt-preview{white-space:pre-wrap;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;line-height:1.55;background:#090d13;border:1px solid var(--line);border-radius:10px;padding:12px;min-height:250px;max-height:460px;overflow:auto}.prompt-actions{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:8px}
.site-footer{max-width:1500px;margin:8px auto 0;padding:16px 18px 26px;display:flex;justify-content:space-between;gap:10px;color:#68768a;font-size:10px;border-top:1px solid rgba(39,50,68,.5)}.toast{position:fixed;right:18px;bottom:18px;z-index:200;max-width:360px;background:#182130;border:1px solid #3e4d63;color:var(--text);border-radius:11px;padding:10px 13px;box-shadow:var(--shadow);opacity:0;transform:translateY(12px);pointer-events:none;transition:.18s}.toast.show{opacity:1;transform:translateY(0)}
.modal-backdrop{position:fixed;inset:0;z-index:150;background:rgba(0,0,0,.65);display:grid;place-items:center;padding:20px}.modal{width:min(720px,100%);max-height:86vh;overflow:auto;border:1px solid var(--line2);border-radius:16px;background:#111824;padding:16px;box-shadow:var(--shadow)}.modal-head{display:flex;justify-content:space-between;gap:10px}.modal h3{margin-top:0}.modal-close{border:0;background:transparent;color:var(--muted);font-size:22px;cursor:pointer}
@media(max-width:1120px){.feature-grid{grid-template-columns:repeat(2,1fr)}.workspace-grid{grid-template-columns:210px minmax(0,1fr)}.inspector-panel{position:static;grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr)}.workspace-sidebar{top:108px}}
@media(max-width:820px){.site-header{position:relative}.primary-nav{top:0}.hero-panel,.uhu-hero{grid-template-columns:1fr}.workspace-grid{grid-template-columns:1fr}.workspace-sidebar{position:static}.module-nav{display:grid;grid-template-columns:repeat(2,1fr)}.editor-panel{min-height:0}.inspector-panel{grid-template-columns:1fr}.view-heading{flex-direction:column}.feature-grid,.pricing-grid{grid-template-columns:1fr}.field,.field.third,.field.quarter{grid-column:span 12}.relationship-row{grid-template-columns:1fr 1fr}.relationship-row .relationship-note{grid-column:1/-1}.relationship-row .icon-btn{grid-column:2;justify-self:end}.header-actions .plan-badge{display:none}}
@media(max-width:560px){main{padding:11px}.site-header{padding:9px 11px}.version-chip{display:none}.primary-nav{padding:6px 10px}.hero-panel,.uhu-hero{padding:18px}.hero-panel h1{font-size:36px}.feature-grid{grid-template-columns:1fr}.dashboard-stat-grid{grid-template-columns:1fr 1fr}.header-actions .ghost-btn:not(#installBtn){display:none}.module-nav{grid-template-columns:1fr 1fr}.heading-actions{width:100%;flex-wrap:wrap}.heading-actions button{flex:1 1 calc(50% - 6px)}.toolbar-row{align-items:stretch;flex-direction:column}.toolbar-row select,.search-input{max-width:none;width:100%}.card-grid,.template-grid,.realm-grid{grid-template-columns:1fr}.site-footer{flex-direction:column}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* v3.0 public beta additions */
.beta-banner{display:flex;align-items:center;justify-content:center;gap:10px;padding:7px 40px 7px 14px;background:#19130a;border-bottom:1px solid rgba(244,181,68,.35);color:#d9c8a1;font-size:11px;position:relative}.beta-banner strong{color:var(--gold2);letter-spacing:.1em}.beta-banner button{position:absolute;right:10px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:#aa9c7d;font-size:18px;cursor:pointer}.brand-svg{width:38px;height:38px;border-radius:12px}.launch-grid,.help-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:14px}.launch-card,.help-card,.project-card{border:1px solid var(--line);background:linear-gradient(180deg,rgba(20,27,39,.95),rgba(13,18,27,.95));border-radius:14px;padding:14px}.launch-card h3,.help-card h3,.project-card h3{margin:4px 0 6px}.launch-card p,.help-card p,.project-card p{margin:0;color:var(--muted)}.status-chip{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:999px;padding:5px 9px;font-size:10px;letter-spacing:.06em}.status-chip.warn{border-color:rgba(244,181,68,.4);color:var(--gold2);background:rgba(244,181,68,.07)}.status-chip.ok{border-color:rgba(114,214,154,.45);color:#9ae6b4;background:rgba(114,214,154,.08)}.footer-links{display:flex;gap:12px;flex-wrap:wrap}.footer-links a:hover{color:var(--text)}.danger-lite:hover{color:var(--red)!important;border-color:rgba(255,129,129,.4)!important}.project-assignment{padding-bottom:8px;border-bottom:1px dashed var(--line)}
.workspace-sidebar{max-height:calc(100vh - 122px);overflow:auto}.module-nav{max-height:52vh;overflow:auto;padding-right:3px}.structured-list,.variant-list{display:flex;flex-direction:column;gap:9px}.structured-row,.variant-card{border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.022);padding:9px}.relationship-row{display:grid;grid-template-columns:1.05fr 1fr .8fr 1.25fr 1.25fr 34px;gap:6px;align-items:center}.timeline-row{display:grid;grid-template-columns:1fr 1.25fr 1fr 2fr 34px;gap:6px;align-items:start}.structured-row input,.structured-row select,.structured-row textarea,.variant-card input,.variant-card select,.variant-card textarea{width:100%;border:1px solid var(--line2);background:#0c121b;color:var(--text);border-radius:8px;padding:7px}.timeline-row textarea{min-height:58px;resize:vertical}.mini-range{display:grid;grid-template-columns:1fr 36px;gap:4px;align-items:center;font-size:9px;color:var(--muted)}.mini-range span{grid-column:1/-1}.mini-range input{padding:0;border:0}.mini-range b{text-align:center;color:var(--gold2);font-size:10px}.empty-inline{padding:28px 14px;text-align:center;border:1px dashed var(--line2);border-radius:12px;color:var(--muted);font-size:12px}.variant-card{padding:11px}.variant-head{display:grid;grid-template-columns:1.4fr 1fr 34px;gap:7px;margin-bottom:10px}.inline-note{padding:8px 10px;border:1px solid rgba(244,181,68,.22);background:rgba(244,181,68,.04);border-radius:9px;color:#c8b78f;font-size:10px;margin-bottom:10px}.preset-group{padding:7px 0;border-bottom:1px solid rgba(39,50,68,.55)}.preset-group:last-of-type{border-bottom:0}.preset-group-title{display:block;color:var(--gold2);font-size:9px;letter-spacing:.1em;text-transform:uppercase;margin-bottom:5px}.production-box{margin-top:12px}.continuity-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.wide-card{grid-column:1/-1}.score-ring{--score:0;width:84px;height:84px;margin:12px auto;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--green) calc(var(--score)*1%),#202a37 0);position:relative}.score-ring:before{content:"";position:absolute;inset:8px;border-radius:50%;background:#111824}.score-ring span{position:relative;font-size:22px;font-weight:900}.compact-list{padding-left:18px;color:var(--muted);font-size:11px}.compact-list li{margin:5px 0}.validation-good{color:var(--green);font-size:11px}.question-list{display:grid;grid-template-columns:repeat(2,1fr);gap:7px;margin-top:9px}.question-card{border:1px solid var(--line);border-radius:9px;padding:9px;background:rgba(255,255,255,.025);font-size:11px;color:#c7d1df}.snapshot-list{display:flex;flex-direction:column;gap:8px}.snapshot-row{display:flex;justify-content:space-between;gap:10px;align-items:center;border:1px solid var(--line);border-radius:10px;padding:9px}.snapshot-row strong,.snapshot-row span{display:block}.snapshot-row span{font-size:10px;color:var(--muted);margin-top:2px}.snapshot-row>div:last-child{display:flex;gap:6px}.modal-actions{display:flex;justify-content:flex-end;margin-top:12px}.help-grid{grid-template-columns:repeat(3,1fr)}
.legal-shell{max-width:980px;margin:0 auto;padding:28px 18px 60px}.legal-nav{display:flex;justify-content:space-between;gap:12px;align-items:center;padding-bottom:14px;border-bottom:1px solid var(--line)}.legal-card{margin-top:18px;border:1px solid var(--line);background:rgba(15,20,30,.88);border-radius:16px;padding:20px}.legal-card h1{margin:0 0 6px;font-size:34px}.legal-card h2{margin-top:24px}.legal-card p,.legal-card li{color:#c2ccda}.legal-card .muted{color:var(--muted)}
@media(max-width:1180px){.relationship-row{grid-template-columns:1fr 1fr 1fr}.relationship-row input[data-rel="publicNote"],.relationship-row input[data-rel="privateNote"]{grid-column:span 1}.relationship-row .icon-btn{justify-self:end}.timeline-row{grid-template-columns:1fr 1fr}.timeline-row textarea{grid-column:1/-1}.timeline-row .icon-btn{grid-column:2;justify-self:end}}
@media(max-width:900px){.launch-grid,.help-grid{grid-template-columns:1fr 1fr}.continuity-grid{grid-template-columns:1fr}.wide-card{grid-column:auto}.workspace-sidebar{max-height:none}.module-nav{max-height:none}.question-list{grid-template-columns:1fr}}
@media(max-width:650px){.beta-banner{align-items:flex-start;justify-content:flex-start;flex-direction:column;gap:2px;padding:7px 38px 7px 10px}.launch-grid,.help-grid{grid-template-columns:1fr}.relationship-row,.timeline-row,.variant-head{grid-template-columns:1fr}.relationship-row>*{grid-column:1!important}.timeline-row>*{grid-column:1!important}.variant-head .icon-btn{justify-self:end}.snapshot-row{align-items:flex-start;flex-direction:column}.site-footer .footer-links{gap:8px}.legal-card{padding:15px}.legal-card h1{font-size:28px}}


/* UX pass 2: guided workspace, discoverable Prompt Studio, contextual help */
.prompt-nav,.prompt-jump-btn,.prompt-module{border-color:rgba(95,181,255,.38)!important}.prompt-nav{color:#b9e0ff}.new-user-panel{margin:14px 0;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;border:1px solid rgba(95,181,255,.26);border-radius:16px;background:linear-gradient(135deg,rgba(29,79,122,.16),rgba(20,27,39,.96) 55%,rgba(244,181,68,.055))}.new-user-panel h3{margin:4px 0 5px;font-size:18px}.new-user-panel p{margin:0;color:var(--muted);max-width:850px}.new-user-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.workspace-mode-block{border:1px solid rgba(95,181,255,.25)!important;background:rgba(54,133,201,.06)!important}.guided-note{margin:0 0 11px;padding:9px 11px;border:1px solid rgba(95,181,255,.22);border-radius:10px;background:rgba(54,133,201,.055);font-size:11px;color:#b8c8dc}.guided-note strong{color:#b9e0ff}.field>label,.sidebar-block>label{display:flex;align-items:center;justify-content:space-between;gap:7px}.field>label>span:first-child{min-width:0}.info-dot{position:relative;flex:0 0 auto;width:18px;height:18px;border-radius:50%;border:1px solid rgba(126,157,195,.45);background:rgba(95,181,255,.07);color:#a8d8ff;font:700 11px/16px Georgia,serif;text-align:center;padding:0;cursor:help}.info-dot:hover,.info-dot:focus{outline:none;border-color:#80c7ff;background:rgba(95,181,255,.15);color:#fff}.info-dot:hover:after,.info-dot:focus:after{content:attr(data-tip);position:absolute;z-index:400;right:-2px;top:24px;width:min(310px,70vw);padding:9px 10px;border:1px solid #41536c;border-radius:9px;background:#0b111a;color:#d6e0ec;font:400 11px/1.45 system-ui,-apple-system,Segoe UI,sans-serif;letter-spacing:0;text-transform:none;text-align:left;box-shadow:0 12px 28px rgba(0,0,0,.4);white-space:normal}.static-tip:hover:after,.static-tip:focus:after{right:0}.prompt-studio-panel{border:1px solid rgba(95,181,255,.15);border-radius:14px}.model-guide-card{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:14px;padding:13px;border:1px solid rgba(95,181,255,.25);border-radius:12px;background:linear-gradient(135deg,rgba(54,133,201,.09),rgba(255,255,255,.018))}.model-guide-card h4{margin:3px 0 7px;font-size:16px}.model-guide-card p{margin:3px 0;color:var(--muted);font-size:11px}.model-guide-card strong{color:#cdd9e7}.model-guide-card .service-link{flex:0 0 auto}.new-ai-guide{margin:0 0 13px;border:1px solid rgba(244,181,68,.24);border-radius:12px;background:rgba(244,181,68,.035);overflow:visible}.new-ai-guide summary{cursor:pointer;padding:10px 12px;color:#ecd49c;font-weight:700;font-size:12px}.new-ai-guide>p{padding:0 12px 11px;margin:0}.new-ai-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:0 12px 10px}.new-ai-steps>div{display:flex;gap:8px;align-items:flex-start;padding:8px;border:1px solid var(--line);border-radius:9px;background:rgba(255,255,255,.02)}.new-ai-steps strong{display:grid;place-items:center;flex:0 0 22px;width:22px;height:22px;border-radius:50%;background:rgba(95,181,255,.12);color:#a8d8ff}.new-ai-steps span{font-size:10px;color:#c3cedd;line-height:1.4}.service-link{text-decoration:none!important}.prompt-module:before{content:'✦';color:#7cc8ff;margin-right:5px}
@media(max-width:900px){.new-user-panel{align-items:flex-start;flex-direction:column}.new-user-actions{justify-content:flex-start}.new-ai-steps{grid-template-columns:1fr}.model-guide-card{align-items:flex-start;flex-direction:column}}
@media(max-width:650px){.new-user-panel{padding:13px}.new-user-actions{width:100%}.new-user-actions button{flex:1 1 100%}.info-dot:hover:after,.info-dot:focus:after{position:fixed;left:12px;right:12px;top:auto;bottom:16px;width:auto}.model-guide-card .service-link{width:100%;text-align:center}.prompt-actions button{flex:1 1 100%}.prompt-jump-btn{order:4}}

.aisys-mini-logo{width:28px;height:28px;object-fit:contain;vertical-align:middle;margin-right:4px;border-radius:50%;filter:drop-shadow(0 0 7px rgba(55,180,255,.26))}.brand small{display:flex;align-items:center;gap:3px}.footer-brand{display:flex;align-items:center;gap:7px}.aisys-footer-logo{width:40px;height:40px;object-fit:contain;border-radius:50%;filter:drop-shadow(0 0 8px rgba(55,180,255,.24))}

/* UX Pass 3: clearer AISYS parent branding */
.aisys-parent-badge{display:flex;align-items:center;gap:8px;text-decoration:none;padding:5px 9px 5px 6px;border:1px solid rgba(62,174,255,.30);border-radius:12px;background:linear-gradient(145deg,rgba(9,34,58,.82),rgba(10,18,30,.82));box-shadow:inset 0 0 18px rgba(33,150,243,.06)}
.aisys-parent-badge:hover{border-color:rgba(98,197,255,.62);background:linear-gradient(145deg,rgba(12,47,79,.9),rgba(12,22,36,.9))}
.aisys-parent-badge img{width:42px;height:42px;object-fit:contain;border-radius:50%;filter:drop-shadow(0 0 8px rgba(47,183,255,.28))}
.aisys-parent-badge span{display:flex;flex-direction:column;line-height:1.05}
.aisys-parent-badge small{font-size:8px;letter-spacing:.12em;color:#8ca4ba}
.aisys-parent-badge strong{font-size:11px;letter-spacing:.11em;color:#cbeaff;margin-top:3px}
.aisys-hero-brand{display:flex;align-items:center;gap:12px;margin-bottom:12px;padding:9px 11px;border:1px solid rgba(62,174,255,.22);border-radius:13px;background:rgba(6,20,35,.56)}
.aisys-hero-brand img{width:58px;height:58px;object-fit:contain;border-radius:50%;filter:drop-shadow(0 0 10px rgba(47,183,255,.28))}
.aisys-hero-brand div{display:flex;flex-direction:column;min-width:0}
.aisys-hero-brand span{font-size:9px;letter-spacing:.14em;color:#7e98ae}
.aisys-hero-brand strong{font-size:15px;letter-spacing:.10em;color:#dff5ff;margin:2px 0}
.aisys-hero-brand small{font-size:9px;color:#91a6b8}
@media(max-width:880px){.site-header{grid-template-columns:1fr auto}.aisys-header-center{grid-column:1/-1;grid-row:2;justify-self:center}.aisys-parent-badge{display:flex}}
@media(max-width:640px){.aisys-hero-brand img{width:48px;height:48px}.aisys-hero-brand strong{font-size:13px}.aisys-footer-logo{width:34px;height:34px}.aisys-parent-badge img{width:36px;height:36px}.aisys-parent-badge strong{font-size:10px}.aisys-parent-badge small{font-size:7px}}


/* UX Pass 4: character images, reference uploads, gallery cover editor */
.media-module{display:flex;flex-direction:column;gap:14px}
.media-intro{display:grid;grid-template-columns:minmax(220px,.75fr) 1.25fr;gap:14px;align-items:stretch}
.gallery-cover-panel,.media-help-card{border:1px solid var(--line);border-radius:14px;background:linear-gradient(180deg,rgba(20,27,39,.96),rgba(12,17,25,.97));padding:12px}
.gallery-cover-preview{position:relative;overflow:hidden;aspect-ratio:4/3;border:1px solid var(--line2);border-radius:12px;background:radial-gradient(circle at 50% 38%,rgba(68,141,210,.16),rgba(9,14,22,.96) 62%);display:grid;place-items:center}
.gallery-cover-preview img{width:100%;height:100%;object-fit:cover;will-change:transform;transition:transform .08s linear,object-position .08s linear}
.gallery-cover-placeholder{font-size:34px;font-weight:900;color:#7591ad;letter-spacing:.08em}
.gallery-cover-panel h4,.media-help-card h4{margin:2px 0 8px}
.media-help-card p{margin:5px 0;color:var(--muted);font-size:11px;line-height:1.45}
.cover-controls{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}
.cover-control label{display:flex;justify-content:space-between;gap:6px;color:var(--muted);font-size:10px;margin-bottom:4px}
.cover-control input[type=range]{width:100%}
.media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.media-card{border:1px solid var(--line);border-radius:13px;background:rgba(255,255,255,.022);overflow:hidden;display:flex;flex-direction:column;min-width:0}
.media-card.is-gallery{border-color:rgba(95,181,255,.58);box-shadow:inset 0 0 0 1px rgba(95,181,255,.12)}
.media-card-preview{aspect-ratio:4/3;display:grid;place-items:center;background:#0a1018;border-bottom:1px solid var(--line);overflow:hidden;position:relative}
.media-card-preview img{width:100%;height:100%;object-fit:contain;background:#060a10}
.media-card-empty{display:flex;flex-direction:column;align-items:center;gap:5px;color:var(--muted);font-size:10px;text-align:center;padding:10px}
.media-card-empty b{font-size:22px;color:#69839d;font-weight:500}
.media-card-body{padding:9px;display:flex;flex-direction:column;gap:6px;flex:1}
.media-card-body h4{margin:0;font-size:12px}
.media-card-body p{margin:0;color:var(--muted);font-size:9px;line-height:1.4;min-height:25px}
.media-file-name{font-size:9px;color:#8ea5bb;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.media-card-actions{display:flex;gap:5px;flex-wrap:wrap;margin-top:auto}
.media-card-actions button{font-size:9px;padding:6px 8px;flex:1 1 auto}
.media-gallery-tag{position:absolute;top:7px;right:7px;padding:4px 6px;border-radius:999px;background:rgba(11,26,40,.88);border:1px solid rgba(95,181,255,.45);font-size:8px;color:#bde3ff;letter-spacing:.07em;text-transform:uppercase}
.media-storage-note{padding:8px 10px;border:1px solid rgba(95,181,255,.18);border-radius:10px;background:rgba(95,181,255,.04);font-size:10px;color:#aebfd0}
.char-card-with-image{display:grid;grid-template-columns:88px 1fr;gap:11px}
.char-thumb{width:88px;height:106px;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#0a1018;display:grid;place-items:center;color:#748aa1;font-weight:900;font-size:18px}
.char-thumb img{width:100%;height:100%;object-fit:cover}
.char-card-content{min-width:0}
.gallery-art.has-image{padding:0;overflow:hidden}
.gallery-art.has-image img{width:100%;height:100%;object-fit:cover}
@media(max-width:900px){.media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.media-intro{grid-template-columns:1fr}}
@media(max-width:560px){.media-grid{grid-template-columns:1fr}.cover-controls{grid-template-columns:1fr}.char-card-with-image{grid-template-columns:66px 1fr}.char-thumb{width:66px;height:82px}.aisys-header-center{width:min(100%,330px);justify-content:center}.site-header{grid-template-columns:1fr auto}.brand-wrap{min-width:0}.brand small{font-size:8px}}

/* UX6: RPG System Converter */
.converter-nav{border-color:rgba(92,200,255,.22)}
.converter-card{background:linear-gradient(145deg,rgba(22,42,66,.86),rgba(16,23,36,.94))}
.converter-panel{position:relative}
.converter-plan-strip{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:stretch;margin:12px 0;padding:10px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.025)}
.converter-plan-strip>div{padding:8px 10px;border-radius:10px;background:rgba(255,255,255,.03)}
.converter-plan-strip strong,.converter-plan-strip span{display:block}.converter-plan-strip span{margin-top:3px;color:var(--muted);font-size:11px;line-height:1.35}
.converter-core-card{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:12px 0;padding:12px 14px;border:1px solid rgba(92,200,255,.24);border-radius:14px;background:linear-gradient(135deg,rgba(26,65,91,.24),rgba(255,255,255,.025))}
.converter-core-card strong{font-size:16px}.converter-core-card>span:last-child{color:var(--muted);font-size:12px}
.converter-controls{margin-top:10px}.converter-actions-top,.conversion-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.converter-empty{display:flex;flex-direction:column;gap:4px;margin:14px 0;padding:16px;border:1px dashed var(--line);border-radius:14px;color:var(--muted)}
.converter-empty strong{color:var(--text)}
.conversion-preview{margin:16px 0;padding:14px;border:1px solid rgba(92,200,255,.2);border-radius:16px;background:rgba(8,16,28,.72)}
.conversion-score{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:12px}.conversion-score>div{padding:10px;border-radius:12px;background:rgba(255,255,255,.04);border:1px solid var(--line)}.conversion-score span,.conversion-score strong{display:block}.conversion-score span{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}.conversion-score strong{font-size:20px;margin-top:3px}
.conversion-summary{font-size:13px;line-height:1.55;color:var(--text)}
.conversion-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}.conversion-field{padding:10px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.025)}.conversion-field span,.conversion-field strong{display:block}.conversion-field span{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;margin-bottom:4px}.conversion-field strong{font-size:12px;line-height:1.45;font-weight:600}
.conversion-map{display:flex;flex-direction:column;gap:6px}.conversion-map-row{display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr) auto;gap:8px;align-items:center;padding:8px 10px;border-radius:10px;background:rgba(255,255,255,.025);font-size:11px}.conversion-map-row b{text-align:center;color:var(--muted)}.conversion-map-row em{font-style:normal;font-size:9px;text-transform:uppercase;letter-spacing:.05em;padding:3px 7px;border-radius:999px}.map-direct{background:rgba(34,197,94,.12);color:#9ff0b8}.map-approx{background:rgba(245,158,11,.12);color:#fcd34d}.map-choice{background:rgba(239,68,68,.12);color:#fca5a5}
.conversion-notes{margin-top:10px;padding:10px 12px;border-radius:12px;border:1px solid var(--line);background:rgba(255,255,255,.025)}.conversion-notes.warn{border-color:rgba(245,158,11,.25);background:rgba(245,158,11,.05)}.conversion-notes p{margin:4px 0;color:var(--muted);font-size:11px;line-height:1.4}
.linked-build-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:20px 0 10px}.linked-build-heading h4{margin:2px 0 0}.system-build-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.system-build-card{padding:12px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.025)}.system-build-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.system-build-head h4{margin:2px 0}.system-build-card p{font-size:11px;line-height:1.45;color:var(--muted)}.confidence-chip{font-size:10px;padding:4px 7px;border-radius:999px;background:rgba(34,197,94,.1);color:#9ff0b8;white-space:nowrap}
.compare-scroll{overflow:auto;max-width:100%}.build-compare-table{border-collapse:collapse;width:100%;min-width:760px}.build-compare-table th,.build-compare-table td{border:1px solid var(--line);padding:9px;text-align:left;vertical-align:top;font-size:11px;line-height:1.4}.build-compare-table thead th{background:rgba(255,255,255,.04)}.build-compare-table th small{display:block;color:var(--muted);font-weight:400;margin-top:3px}.template-toolbar{margin-bottom:10px}
@media(max-width:900px){.converter-plan-strip{grid-template-columns:1fr}.conversion-field-grid,.system-build-list{grid-template-columns:1fr}.conversion-map-row{grid-template-columns:1fr 18px 1fr}.conversion-map-row em{grid-column:1/-1;justify-self:start}.conversion-score{grid-template-columns:1fr 1fr 1fr}}
@media(max-width:620px){.conversion-score{grid-template-columns:1fr}.converter-core-card{align-items:flex-start;flex-direction:column}.linked-build-heading{align-items:flex-start;flex-direction:column}.converter-actions-top>* ,.conversion-actions>*{width:100%}}

/* UX7: first-visit onboarding and persistent getting-started access */
body.onboarding-open{overflow:hidden}
.help-quick-btn{white-space:nowrap}
.onboarding-backdrop{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:22px;background:rgba(3,7,12,.82);backdrop-filter:blur(10px)}
.onboarding-dialog{width:min(760px,100%);max-height:min(760px,92vh);overflow:auto;border:1px solid #40516a;border-radius:20px;background:linear-gradient(155deg,#121a27,#0b111a 68%);box-shadow:0 28px 90px rgba(0,0,0,.62);display:flex;flex-direction:column}
.onboarding-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px 10px;border-bottom:1px solid rgba(54,68,90,.72)}
.onboarding-brand{display:flex;align-items:center;gap:9px}.onboarding-brand img{width:35px;height:35px;border-radius:10px}.onboarding-brand div{display:flex;flex-direction:column;line-height:1.08}.onboarding-brand span{font-size:12px;font-weight:900;letter-spacing:.13em}.onboarding-brand small{margin-top:3px;color:var(--muted);font-size:9px;letter-spacing:.08em;text-transform:uppercase}
.onboarding-close{width:34px;height:34px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.025);color:var(--muted);font-size:22px;line-height:1;cursor:pointer}.onboarding-close:hover{color:var(--text);border-color:#53627a}
.onboarding-progress{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding:10px 16px 0}.onboarding-progress span{height:4px;border-radius:999px;background:#263245}.onboarding-progress span.done{background:#6d8fb3}.onboarding-progress span.active{background:linear-gradient(90deg,var(--gold),var(--blue))}
.onboarding-content{padding:24px 28px 20px}.onboarding-step-icon{display:grid;place-items:center;width:46px;height:46px;margin-bottom:14px;border:1px solid rgba(105,168,255,.34);border-radius:14px;background:linear-gradient(145deg,rgba(105,168,255,.14),rgba(244,181,68,.07));color:#cde5ff;font-size:21px;font-weight:900}.onboarding-kicker{margin:0 0 6px;color:var(--gold2);font-size:10px;font-weight:900;letter-spacing:.15em}.onboarding-content h2{margin:0;max-width:650px;font-size:clamp(25px,4vw,39px);line-height:1.08;letter-spacing:-.025em}.onboarding-body{margin:12px 0 17px;max-width:680px;color:#becbd9;font-size:14px;line-height:1.6}.onboarding-points{display:grid;gap:8px}.onboarding-points>div{display:grid;grid-template-columns:24px 1fr;gap:8px;align-items:start;padding:9px 10px;border:1px solid rgba(54,68,90,.75);border-radius:10px;background:rgba(255,255,255,.018)}.onboarding-points b{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:rgba(114,214,154,.10);color:var(--green);font-size:11px}.onboarding-points span{color:#c6d1df;font-size:11px;line-height:1.45}
.onboarding-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:auto;padding:13px 16px;border-top:1px solid rgba(54,68,90,.72);background:rgba(7,11,17,.55)}.onboarding-remember{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:10px;cursor:pointer}.onboarding-remember input{accent-color:var(--gold)}.onboarding-manual-note{color:var(--muted);font-size:10px}.onboarding-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
@media(max-width:720px){.onboarding-backdrop{padding:0;place-items:stretch}.onboarding-dialog{width:100%;height:100dvh;max-height:none;border:0;border-radius:0}.onboarding-top{padding:max(12px,env(safe-area-inset-top)) 14px 10px}.onboarding-content{padding:20px 18px;overflow:auto;flex:1}.onboarding-content h2{font-size:30px}.onboarding-footer{position:sticky;bottom:0;flex-direction:column;align-items:stretch;padding:11px 14px max(11px,env(safe-area-inset-bottom));background:#0a1018}.onboarding-actions{display:grid;grid-template-columns:1fr 1fr}.onboarding-actions .primary-btn{grid-column:1/-1}.onboarding-actions button{width:100%;text-align:center}.onboarding-remember,.onboarding-manual-note{justify-content:center;text-align:center}}
@media(max-width:560px){.header-actions .help-quick-btn{display:inline-flex!important;width:34px;height:34px;align-items:center;justify-content:center;padding:0;font-size:0}.header-actions .help-quick-btn:before{content:'?';font-size:14px;font-weight:900}.onboarding-content{padding:17px 15px}.onboarding-content h2{font-size:27px}.onboarding-body{font-size:13px}.onboarding-actions{grid-template-columns:1fr}.onboarding-actions .primary-btn{grid-column:auto}}

/* UX8: friendlier visuals, section Auto-Complete, N/A controls, creator partners, Story/GM Studio, beta feedback */
body.pro-preview .free-plan-only{display:none!important}
.story-nav{color:#d7c0ff}
.field label{display:flex;align-items:center;justify-content:space-between;gap:8px}
.field-label-tools{display:inline-flex;align-items:center;gap:5px;flex:0 0 auto}
.na-toggle{border:1px solid var(--line);background:rgba(255,255,255,.025);color:#8493a8;border-radius:999px;padding:2px 7px;font-size:9px;font-weight:800;letter-spacing:.04em;cursor:pointer;line-height:1.5}
.na-toggle:hover{border-color:#607089;color:#d8e0ea}.na-toggle.active{border-color:rgba(244,181,68,.55);background:rgba(244,181,68,.10);color:var(--gold2)}
.field-na input,.field-na select,.field-na textarea{opacity:.45}.field-na .field-row{opacity:.55}.na-help{color:#bfa36e}
.section-autocomplete{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:14px;padding:12px 13px;border:1px solid rgba(105,168,255,.18);border-radius:13px;background:linear-gradient(135deg,rgba(105,168,255,.045),rgba(244,181,68,.025))}.section-autocomplete strong,.section-autocomplete span{display:block}.section-autocomplete strong{font-size:12px}.section-autocomplete span{margin-top:2px;color:var(--muted);font-size:10px;line-height:1.35}.section-autocomplete button{white-space:nowrap}

.visual-showcase{display:grid;grid-template-columns:minmax(280px,1.15fr) minmax(180px,.42fr) minmax(180px,.42fr);gap:12px;margin-top:14px;padding:14px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(135deg,rgba(244,181,68,.055),rgba(105,168,255,.03),rgba(17,23,34,.9));overflow:hidden}.visual-showcase-copy{align-self:center;padding:10px 12px}.visual-showcase-copy h3{font-size:24px;margin:4px 0 7px}.visual-showcase-copy p{color:#b6c2d1;max-width:620px}.visual-character-card{position:relative;margin:0;min-height:270px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#0b1017}.visual-character-card img{display:block;width:100%;height:100%;min-height:270px;object-fit:contain;object-position:center top;background:radial-gradient(circle at 50% 26%,rgba(105,168,255,.08),transparent 45%),#0b1017}.visual-character-card figcaption{position:absolute;left:0;right:0;bottom:0;padding:26px 12px 10px;background:linear-gradient(transparent,rgba(5,8,12,.94));display:flex;flex-direction:column}.visual-character-card figcaption strong{font-size:15px}.visual-character-card figcaption span{font-size:10px;color:#b8c4d2}
.creator-partner-zone{display:grid;grid-template-columns:minmax(260px,.8fr) 1.4fr;gap:14px;margin-top:14px;padding:14px 16px;border:1px dashed rgba(244,181,68,.3);border-radius:16px;background:rgba(244,181,68,.025)}.creator-partner-zone h3{margin:3px 0 5px}.creator-partner-zone p{margin:0;color:var(--muted);font-size:11px}.partner-placeholder-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.partner-placeholder-grid>div{display:flex;flex-direction:column;justify-content:center;min-height:86px;padding:10px;border:1px solid var(--line);border-radius:11px;background:rgba(255,255,255,.025)}.partner-placeholder-grid strong{font-size:11px}.partner-placeholder-grid span{font-size:9px;color:var(--muted);margin-top:3px}
.creator-tools-panel{margin-top:14px;padding:13px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.02)}.creator-tools-heading h4{margin:2px 0 4px}.creator-tools-heading p{margin:0 0 10px;color:var(--muted);font-size:10px}.creator-tool-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.creator-tool-link{display:flex;flex-direction:column;gap:2px;padding:9px;border:1px solid var(--line);border-radius:10px;background:#0d141e}.creator-tool-link:hover{border-color:#53627a;background:#121c29}.creator-tool-link strong{font-size:11px}.creator-tool-link span{font-size:9px;color:#9eacbd}.creator-tool-link small{font-size:8px;color:#6f7d8f}

.studio-mode-tabs{display:flex;gap:6px;margin-bottom:12px}.studio-mode-tabs button{border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.025);color:var(--muted);padding:8px 12px;cursor:pointer}.studio-mode-tabs button.active{border-color:rgba(187,140,255,.42);background:rgba(187,140,255,.1);color:#eadfff}.studio-mode-tabs .tag{margin-left:5px}
.story-studio-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:12px;align-items:start}.story-editor-card,.story-doc-list,.studio-locked{border:1px solid var(--line);border-radius:16px;background:rgba(15,20,30,.86);padding:14px}.story-editor-head,.story-list-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.story-editor-head h3,.story-list-head h3{margin:2px 0}.script-draft{min-height:210px!important;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;line-height:1.5}.story-actions{display:flex;flex-wrap:wrap;gap:7px;margin:13px 0}.story-prompt-wrap{padding:11px;border:1px solid rgba(187,140,255,.2);border-radius:12px;background:rgba(187,140,255,.035)}.story-prompt-wrap pre{margin:7px 0 0;white-space:pre-wrap;max-height:330px;overflow:auto;color:#c8d4e3;font:11px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace}.story-doc-list{position:sticky;top:var(--sticky-panel-top);display:flex;flex-direction:column;gap:7px}.story-doc-card{padding:10px;border:1px solid var(--line);border-radius:11px;background:rgba(255,255,255,.02)}.story-doc-card.active{border-color:rgba(187,140,255,.43);background:rgba(187,140,255,.06)}.story-doc-card strong,.story-doc-card small{display:block}.story-doc-card strong{margin:2px 0;font-size:12px}.story-doc-card small{color:var(--muted);font-size:9px}.story-doc-card>div{display:flex;gap:10px;margin-top:5px}.danger-text{color:#ff9a9a}.studio-locked{display:flex;align-items:flex-start;gap:14px;max-width:920px;padding:22px}.studio-locked h3{margin:3px 0 7px}.studio-locked p{color:var(--muted)}

.beta-feedback-fab{position:fixed;right:16px;bottom:16px;z-index:85;border:1px solid rgba(105,168,255,.44);border-radius:999px;background:linear-gradient(180deg,#1a2b42,#111b29);box-shadow:0 12px 30px rgba(0,0,0,.35);color:#d9eaff;padding:9px 13px;font-weight:800;font-size:11px;cursor:pointer}.beta-feedback-fab:hover{border-color:var(--blue);transform:translateY(-1px)}.feedback-intro p{margin-top:0;color:#bac7d6}.warn-note{border-color:rgba(244,181,68,.3)!important}.checkbox-line{justify-content:flex-start!important;gap:8px!important}.checkbox-line input{width:auto!important;accent-color:var(--gold)}

@media(max-width:1050px){.visual-showcase{grid-template-columns:1fr 1fr}.visual-showcase-copy{grid-column:1/-1}.creator-tool-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.story-studio-grid{grid-template-columns:1fr}.story-doc-list{position:static}.creator-partner-zone{grid-template-columns:1fr}}
@media(max-width:720px){.visual-showcase{grid-template-columns:1fr 1fr}.visual-character-card{min-height:220px}.visual-character-card img{min-height:220px}.partner-placeholder-grid{grid-template-columns:1fr}.creator-tool-grid{grid-template-columns:1fr 1fr}.section-autocomplete{align-items:stretch;flex-direction:column}.section-autocomplete button{width:100%}.beta-feedback-fab{right:10px;bottom:10px}.story-actions>*{flex:1 1 45%}}
@media(max-width:480px){.visual-showcase{grid-template-columns:1fr}.visual-character-card{min-height:260px}.visual-character-card img{min-height:260px}.creator-tool-grid{grid-template-columns:1fr}.story-actions>*{flex:1 1 100%}.studio-locked{flex-direction:column}}

/* UX9 visual polish: cinematic depth, richer color, stronger imagery, less document-like scanning */
:root{
  --electric:#38bdf8;--violet:#8b5cf6;--magenta:#e879f9;--ember:#ff7a45;--teal:#2dd4bf;
  --panel-glass:rgba(14,20,31,.78);
}
body{
  background:
    radial-gradient(circle at 8% 6%,rgba(56,189,248,.11),transparent 24%),
    radial-gradient(circle at 88% 12%,rgba(139,92,246,.10),transparent 22%),
    radial-gradient(circle at 55% 55%,rgba(244,181,68,.045),transparent 35%),
    linear-gradient(180deg,#08101a 0%,#0a0e14 42%,#080d14 100%);
  background-attachment:fixed;
}
body:before{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;opacity:.28;background-image:linear-gradient(rgba(104,150,194,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(104,150,194,.055) 1px,transparent 1px);background-size:42px 42px;mask-image:linear-gradient(to bottom,black,transparent 72%)}
main{padding-top:22px}
.view-heading{position:relative}
.visual-view-heading{min-height:150px;padding:26px 30px;align-items:center;border:1px solid rgba(85,115,151,.34);border-radius:20px;overflow:hidden;background:linear-gradient(115deg,rgba(14,23,36,.96),rgba(18,29,46,.82));box-shadow:0 18px 55px rgba(0,0,0,.22)}
.visual-view-heading:before,.visual-view-heading:after{content:"";position:absolute;pointer-events:none}
.visual-view-heading:before{inset:0;background:radial-gradient(circle at 85% 20%,rgba(56,189,248,.18),transparent 28%),linear-gradient(100deg,transparent 55%,rgba(255,255,255,.025));}
.visual-view-heading:after{right:-55px;top:-90px;width:330px;height:330px;border-radius:50%;border:1px solid rgba(105,168,255,.17);box-shadow:0 0 0 48px rgba(139,92,246,.025),0 0 0 96px rgba(56,189,248,.018)}
.visual-view-heading>div,.visual-view-heading>.status-chip{position:relative;z-index:2}.visual-view-heading h2{font-size:clamp(30px,4vw,45px);letter-spacing:-.03em}.visual-view-heading p.muted{max-width:700px;font-size:14px;color:#bdcadd}
.story-visual-heading{background:linear-gradient(115deg,rgba(34,19,49,.97),rgba(15,26,42,.92))}.story-visual-heading:before{background:radial-gradient(circle at 78% 25%,rgba(187,140,255,.24),transparent 28%),radial-gradient(circle at 90% 80%,rgba(56,189,248,.11),transparent 24%)}
.template-visual-heading{background:linear-gradient(115deg,rgba(15,33,39,.97),rgba(20,25,43,.92))}.template-visual-heading:before{background:radial-gradient(circle at 80% 28%,rgba(45,212,191,.20),transparent 26%),radial-gradient(circle at 92% 78%,rgba(244,181,68,.10),transparent 20%)}
.gallery-visual-heading{background:linear-gradient(115deg,rgba(37,24,20,.97),rgba(19,25,42,.92))}.gallery-visual-heading:before{background:radial-gradient(circle at 81% 28%,rgba(255,122,69,.18),transparent 27%),radial-gradient(circle at 91% 78%,rgba(244,181,68,.12),transparent 21%)}

.hero-panel-vibrant{position:relative;isolation:isolate;grid-template-columns:minmax(0,1.08fr) minmax(430px,.92fr);min-height:500px;padding:42px;border-color:rgba(92,128,166,.42);background:linear-gradient(120deg,rgba(9,20,33,.96),rgba(16,25,40,.92) 50%,rgba(23,19,36,.92));overflow:hidden;box-shadow:0 28px 80px rgba(0,0,0,.38),inset 0 1px rgba(255,255,255,.03)}
.hero-panel-vibrant:before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(circle at 20% 20%,rgba(56,189,248,.12),transparent 30%),radial-gradient(circle at 70% 12%,rgba(244,181,68,.12),transparent 25%),linear-gradient(130deg,transparent 42%,rgba(139,92,246,.08) 65%,transparent 88%)}
.hero-panel-vibrant:after{content:"LORIGINARY";position:absolute;left:36px;bottom:-24px;z-index:-1;color:rgba(255,255,255,.018);font-size:clamp(78px,13vw,190px);font-weight:1000;letter-spacing:-.07em;white-space:nowrap}
.hero-panel-vibrant .hero-copy{align-self:center;position:relative;z-index:4}.hero-panel-vibrant h1{font-size:clamp(42px,5.8vw,76px);max-width:770px;text-wrap:balance}.hero-panel-vibrant .hero-copy>p:not(.eyebrow){max-width:690px;font-size:17px;line-height:1.65;color:#cad7e6}.hero-panel-vibrant .eyebrow{color:#bcecff;text-shadow:0 0 20px rgba(56,189,248,.26)}
.hero-stage{position:relative;min-height:420px;border:0;border-radius:24px;overflow:hidden;background:linear-gradient(150deg,#0a1623,#171223);box-shadow:0 28px 65px rgba(0,0,0,.42),inset 0 0 50px rgba(56,189,248,.04)}
.hero-stage:before{content:"";position:absolute;inset:0;z-index:3;background:linear-gradient(to top,rgba(4,8,13,.97) 0%,rgba(5,9,15,.72) 22%,transparent 58%),linear-gradient(90deg,rgba(8,13,21,.25),transparent 40%,rgba(8,13,21,.22));pointer-events:none}.hero-stage:after{content:"";position:absolute;inset:0;z-index:4;box-shadow:inset 0 0 70px rgba(0,0,0,.55);pointer-events:none}
.hero-art{position:absolute;top:0;bottom:0;width:54%;overflow:hidden;filter:saturate(1.12) contrast(1.04);isolation:isolate}.hero-art img{position:relative;z-index:2;width:100%;height:100%;display:block}.hero-art-invincer{left:0;clip-path:polygon(0 0,100% 0,84% 100%,0 100%);background:linear-gradient(145deg,#0b2948,#09131f)}.hero-art-invincer:before{content:"";position:absolute;inset:0;background:url('assets/themes/uhu-science.webp') center/cover no-repeat;opacity:.62;z-index:0}.hero-art-invincer:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,10,18,.18),rgba(5,10,18,.04) 70%,rgba(5,10,18,.20));z-index:1}.hero-art-invincer img{object-fit:contain;object-position:center top}.hero-art-sunburn{right:0;clip-path:polygon(16% 0,100% 0,100% 100%,0 100%);background:#1b1512}.hero-art-sunburn img{object-fit:cover;object-position:center center}.hero-art-sunburn:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,13,20,.14),transparent 30%);z-index:3;pointer-events:none}.hero-stage-divider{display:none}
.hero-stage-overlay{position:absolute;z-index:5;left:18px;right:18px;bottom:16px;padding:12px 14px 13px;border:1px solid rgba(130,160,194,.28);border-radius:15px;background:linear-gradient(135deg,rgba(7,13,21,.76),rgba(17,24,36,.74));backdrop-filter:blur(13px);box-shadow:0 14px 30px rgba(0,0,0,.28)}.hero-stage-overlay>strong{display:block;font-size:14px;max-width:390px;margin:5px 0 8px;line-height:1.35}.hero-stage-chip{font-size:9px;font-weight:900;letter-spacing:.14em;color:#a9defd}.hero-stats{grid-template-columns:repeat(4,1fr);gap:6px;margin-top:8px}.hero-stats .stat{padding:8px 6px;background:rgba(255,255,255,.045);border-color:rgba(255,255,255,.08)}.hero-stats .stat strong{font-size:18px;color:#fff}.hero-stats .stat span{font-size:8px;color:#aab9ca;text-transform:uppercase;letter-spacing:.06em}

.workflow-ribbon{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:14px 0}.workflow-ribbon>div{position:relative;display:flex;align-items:center;gap:12px;min-height:86px;padding:13px 15px;border:1px solid rgba(72,98,130,.34);border-radius:15px;background:linear-gradient(145deg,rgba(18,27,40,.92),rgba(12,18,28,.94));overflow:hidden}.workflow-ribbon>div:before{content:"";position:absolute;inset:auto -10% -60% 35%;height:110px;transform:rotate(-12deg);background:radial-gradient(circle,rgba(56,189,248,.13),transparent 65%)}.workflow-ribbon>div:nth-child(2):before{background:radial-gradient(circle,rgba(45,212,191,.13),transparent 65%)}.workflow-ribbon>div:nth-child(3):before{background:radial-gradient(circle,rgba(244,181,68,.14),transparent 65%)}.workflow-ribbon>div:nth-child(4):before{background:radial-gradient(circle,rgba(187,140,255,.14),transparent 65%)}.workflow-ribbon b{position:relative;font-size:25px;color:#9edbff;line-height:1}.workflow-ribbon>div:nth-child(2) b{color:#83eddc}.workflow-ribbon>div:nth-child(3) b{color:#ffd37e}.workflow-ribbon>div:nth-child(4) b{color:#d8b8ff}.workflow-ribbon span{position:relative;display:flex;flex-direction:column}.workflow-ribbon strong{font-size:13px}.workflow-ribbon small{margin-top:2px;color:#8e9daf;font-size:9px}

.feature-grid{gap:14px}.feature-card{position:relative;overflow:hidden;min-height:205px;padding:18px;background:linear-gradient(155deg,rgba(19,29,44,.96),rgba(11,17,26,.98));border-color:rgba(76,101,130,.34);box-shadow:0 12px 28px rgba(0,0,0,.16);transition:.18s ease}.feature-card:before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:linear-gradient(90deg,var(--electric),transparent)}.feature-card:nth-child(2):before{background:linear-gradient(90deg,var(--teal),transparent)}.feature-card:nth-child(3):before{background:linear-gradient(90deg,var(--gold),transparent)}.feature-card:nth-child(4):before{background:linear-gradient(90deg,var(--violet),transparent)}.feature-card:nth-child(5):before{background:linear-gradient(90deg,var(--ember),transparent)}.feature-card:hover{transform:translateY(-3px);border-color:rgba(106,149,194,.52);box-shadow:0 18px 34px rgba(0,0,0,.24)}.feature-icon{width:44px;height:44px;font-size:18px;border-radius:14px;background:linear-gradient(145deg,rgba(56,189,248,.16),rgba(56,189,248,.045));box-shadow:0 0 25px rgba(56,189,248,.08)}.feature-card:nth-child(2) .feature-icon{color:#79ead9;border-color:rgba(45,212,191,.28);background:rgba(45,212,191,.08)}.feature-card:nth-child(3) .feature-icon{color:#ffd687;border-color:rgba(244,181,68,.30);background:rgba(244,181,68,.08)}.feature-card:nth-child(4) .feature-icon{color:#d3b5ff;border-color:rgba(139,92,246,.30);background:rgba(139,92,246,.10)}

.new-user-panel{box-shadow:0 14px 35px rgba(0,0,0,.15);background:linear-gradient(120deg,rgba(26,71,112,.22),rgba(17,27,42,.97) 45%,rgba(85,49,118,.10));border-color:rgba(82,153,209,.34)}
.visual-showcase{padding:18px;gap:16px;background:linear-gradient(130deg,rgba(22,18,27,.96),rgba(11,24,37,.96) 55%,rgba(22,31,46,.98));box-shadow:0 18px 45px rgba(0,0,0,.18)}.visual-character-card{box-shadow:0 16px 30px rgba(0,0,0,.34);border-color:rgba(118,142,174,.34);transition:.18s ease}.visual-character-card:hover{transform:translateY(-3px) scale(1.01);border-color:rgba(244,181,68,.42)}.visual-character-card img{filter:saturate(1.14) contrast(1.04)}
.creator-partner-zone{border-style:solid;border-color:rgba(244,181,68,.21);background:linear-gradient(135deg,rgba(51,36,13,.14),rgba(14,22,34,.94));box-shadow:0 14px 32px rgba(0,0,0,.12)}.partner-placeholder-grid>div{position:relative;overflow:hidden;min-height:108px;padding:14px;background:linear-gradient(145deg,rgba(28,38,54,.95),rgba(13,20,30,.95));transition:.15s ease}.partner-placeholder-grid>div:hover{border-color:rgba(244,181,68,.38);transform:translateY(-2px)}.partner-icon{display:grid;place-items:center;width:32px;height:32px;margin-bottom:9px;border-radius:10px;background:rgba(244,181,68,.10);border:1px solid rgba(244,181,68,.22);color:#ffd37c;font-size:16px}

.template-card,.realm-card,.char-card,.gallery-card,.project-card,.help-card{transition:.18s ease;box-shadow:0 10px 24px rgba(0,0,0,.11)}.template-card:hover,.realm-card:hover,.char-card:hover,.gallery-card:hover,.project-card:hover,.help-card:hover{transform:translateY(-2px);border-color:rgba(103,143,184,.46);box-shadow:0 16px 32px rgba(0,0,0,.20)}.template-card{position:relative;overflow:hidden;background:linear-gradient(145deg,rgba(18,29,41,.98),rgba(12,18,28,.98));min-height:190px}.template-card:before{content:"";position:absolute;inset:0 0 auto 0;height:3px;background:linear-gradient(90deg,var(--electric),var(--violet))}.template-card:nth-child(3n+2):before{background:linear-gradient(90deg,var(--teal),var(--gold))}.template-card:nth-child(3n+3):before{background:linear-gradient(90deg,var(--ember),var(--magenta))}.realm-card{min-height:190px;background:linear-gradient(150deg,rgba(20,27,40,.98),rgba(11,17,27,.98))}.help-card{position:relative;padding:18px;background:linear-gradient(145deg,rgba(18,27,40,.97),rgba(11,17,26,.98));overflow:hidden}.help-card:after{content:"?";position:absolute;right:10px;bottom:-24px;font-weight:1000;font-size:82px;color:rgba(105,168,255,.035)}

.uhu-hero{position:relative;overflow:hidden;min-height:250px;padding:34px 360px 34px 34px;background:linear-gradient(115deg,rgba(37,20,15,.96),rgba(16,25,39,.96));border-color:rgba(244,181,68,.30)}.uhu-hero:before{content:"";position:absolute;right:155px;top:-70px;width:260px;height:440px;background:url('assets/uhu/sunburn-spotlight.webp') center 8%/cover no-repeat;filter:saturate(1.18) contrast(1.05);opacity:.78;clip-path:polygon(24% 0,100% 0,83% 100%,0 100%)}.uhu-hero:after{content:"";position:absolute;right:-10px;top:-55px;width:250px;height:430px;background:url('assets/uhu/invincer-spotlight.webp') 62% 8%/cover no-repeat;filter:saturate(1.15) contrast(1.06);opacity:.72;clip-path:polygon(22% 0,100% 0,100% 100%,0 100%)}.uhu-hero>div{position:relative;z-index:2}.uhu-domain-card{background:rgba(8,13,20,.73);backdrop-filter:blur(9px);border-color:rgba(244,181,68,.24)}

.primary-btn{box-shadow:0 8px 18px rgba(235,168,58,.16)}.secondary-btn{box-shadow:inset 0 1px rgba(255,255,255,.025)}
.site-footer{border-top-color:rgba(74,102,134,.32);background:linear-gradient(180deg,rgba(8,13,20,.94),rgba(6,10,16,.98))}

@media(max-width:1150px){.hero-panel-vibrant{grid-template-columns:1fr}.hero-stage{min-height:430px}.hero-art{width:56%}.workflow-ribbon{grid-template-columns:1fr 1fr}.uhu-hero{padding-right:290px}.uhu-hero:before{right:115px;width:220px}.uhu-hero:after{width:210px}}
@media(max-width:760px){.hero-panel-vibrant{padding:25px;min-height:auto}.hero-panel-vibrant h1{font-size:clamp(38px,11vw,58px)}.hero-stage{min-height:360px}.hero-stage-overlay{left:10px;right:10px;bottom:10px}.hero-stats{grid-template-columns:1fr 1fr}.workflow-ribbon{grid-template-columns:1fr}.visual-view-heading{min-height:130px;padding:22px}.uhu-hero{padding:25px;min-height:390px}.uhu-hero:before{right:38%;top:145px;width:180px;height:300px;opacity:.42}.uhu-hero:after{right:-10px;top:135px;width:190px;height:310px;opacity:.42}.uhu-domain-card{margin-top:12px}.visual-showcase-copy h3{font-size:21px}}
@media(max-width:500px){.hero-panel-vibrant{padding:19px}.hero-stage{min-height:330px}.hero-art-invincer{width:63%;left:-10%}.hero-art-sunburn{width:64%;right:-8%}.hero-stage-overlay>strong{font-size:12px}.workflow-ribbon>div{min-height:72px}.visual-view-heading{border-radius:15px;padding:18px}.visual-view-heading h2{font-size:31px}}

/* UX10 THEME ENGINE */
:root{--theme-accent:#69a8ff;--theme-accent2:#bb8cff;--theme-heading-font:Inter,ui-sans-serif,system-ui,sans-serif}
body[data-theme-mode="immersive"]{background:
  radial-gradient(circle at 15% 0%,color-mix(in srgb,var(--theme-accent) 18%,transparent),transparent 30%),
  radial-gradient(circle at 88% 12%,color-mix(in srgb,var(--theme-accent2) 14%,transparent),transparent 28%),var(--bg)}
body[data-theme-mode="neutral"]{--theme-accent:#69a8ff;--theme-accent2:#bb8cff;--theme-heading-font:Inter,ui-sans-serif,system-ui,sans-serif}
body[data-theme-mode="neutral"] .workspace-theme-banner{display:none}
body[data-theme-mode="neutral"] .template-card-theme-art,body[data-theme-mode="neutral"] .realm-card-art{opacity:.08;filter:grayscale(.7)}
body[data-theme-key^="uhu-"] .eyebrow,body[data-theme-key^="uhu-"] .text-btn{color:var(--theme-accent)}
body[data-theme-key] .module-heading h3,body[data-theme-key] .view-heading h2,body[data-theme-key] .workspace-theme-copy strong{font-family:var(--theme-heading-font)}
body[data-theme-key] .module-btn.active{box-shadow:inset 3px 0 0 var(--theme-accent)}
body[data-theme-key] .field input:focus,body[data-theme-key] .field select:focus,body[data-theme-key] .field textarea:focus,body[data-theme-key] .sidebar-block select:focus{border-color:var(--theme-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--theme-accent) 15%,transparent)}
body[data-theme-key] .nav-btn.active{box-shadow:inset 0 -2px 0 var(--theme-accent)}

.theme-mode-control{display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:999px;padding:3px 7px;background:rgba(255,255,255,.025);color:var(--muted);font-size:10px;letter-spacing:.05em}.theme-mode-control select{border:0;background:transparent;color:var(--text);font-size:10px;outline:0;cursor:pointer}.theme-mode-control option{background:#111722;color:#edf2f7}
.theme-mini-note{padding:9px 10px;border:1px solid color-mix(in srgb,var(--theme-accent) 28%,var(--line));border-radius:10px;background:linear-gradient(145deg,color-mix(in srgb,var(--theme-accent) 8%,transparent),rgba(255,255,255,.018))}.theme-mini-note strong{display:block;color:var(--text);font-size:10px;text-transform:uppercase;letter-spacing:.07em}.theme-mini-note span{display:block;margin-top:3px;color:var(--muted);font-size:9px;line-height:1.45}

.workspace-theme-banner{--theme-art:none;position:relative;display:flex;align-items:flex-end;justify-content:space-between;gap:18px;min-height:160px;margin:0 0 14px;padding:20px 22px;overflow:hidden;border:1px solid color-mix(in srgb,var(--theme-accent) 34%,var(--line));border-radius:18px;background:radial-gradient(circle at 65% 50%,color-mix(in srgb,var(--theme-accent) 12%,#101722),#101722 64%);box-shadow:0 18px 45px rgba(0,0,0,.20)}
.workspace-theme-banner:before,.workspace-theme-banner:after{content:"";position:absolute;inset:0;pointer-events:none}
.workspace-theme-banner:before{background-image:var(--theme-art);background-size:cover;background-repeat:no-repeat;background-position:center center;filter:blur(18px) saturate(1.06) brightness(.62);opacity:.58;transform:scale(1.08)}
.workspace-theme-banner:after{background-image:var(--theme-art);background-size:contain;background-repeat:no-repeat;background-position:center center;filter:saturate(1.08) contrast(1.02);opacity:.96;z-index:1}
body[data-theme-key="fantasy"] .workspace-theme-banner:before{transform:scaleX(-1) scale(1.08);background-position:center center}
body[data-theme-key="fantasy"] .workspace-theme-banner:after{transform:scaleX(-1);background-position:center center}
.workspace-theme-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,9,14,.94) 0%,rgba(5,9,14,.68) 44%,rgba(5,9,14,.18) 72%,rgba(5,9,14,.44) 100%),linear-gradient(to top,rgba(5,8,13,.72),transparent 62%)}
body[data-theme-mode="immersive"] .workspace-theme-banner{min-height:220px}.workspace-theme-logo{position:absolute;right:20px;top:18px;width:82px;max-height:82px;object-fit:contain;filter:drop-shadow(0 8px 18px rgba(0,0,0,.55));z-index:3}.workspace-theme-copy{position:relative;z-index:3;display:flex;flex-direction:column;max-width:660px}.workspace-theme-copy>span{font-size:10px;font-weight:900;letter-spacing:.14em;color:var(--theme-accent)}.workspace-theme-title-row{display:flex;align-items:center;gap:14px;min-height:76px}.workspace-realm-logo{width:72px;height:72px;object-fit:contain;filter:drop-shadow(0 8px 16px rgba(0,0,0,.55))}.workspace-theme-copy strong{font-size:clamp(24px,3vw,38px);line-height:1.05;margin-top:2px;text-shadow:0 3px 18px rgba(0,0,0,.7)}.workspace-theme-copy small{margin-top:5px;color:#c7d3df}.workspace-theme-pill{position:relative;z-index:3;align-self:flex-end;border:1px solid color-mix(in srgb,var(--theme-accent) 48%,transparent);border-radius:999px;padding:6px 10px;background:rgba(7,12,18,.70);backdrop-filter:blur(8px);color:#fff;font-size:10px;font-weight:800;white-space:nowrap}

.theme-preview-section{margin:14px 0 18px;padding:16px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(145deg,rgba(16,24,36,.94),rgba(9,14,22,.98));box-shadow:0 14px 35px rgba(0,0,0,.14)}.theme-preview-heading,.uhu-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:12px}.theme-preview-heading h3,.uhu-section-heading h3{margin:2px 0 0;font-size:20px}.theme-preview-heading p,.uhu-section-heading p{max-width:620px;margin:0;color:var(--muted)}.theme-preview-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.theme-preview-card{--preview:none;position:relative;display:flex;flex-direction:column;justify-content:flex-end;min-height:160px;padding:13px;border:1px solid rgba(255,255,255,.09);border-radius:14px;overflow:hidden;background:#101722;box-shadow:inset 0 -70px 55px rgba(4,8,12,.82),0 10px 25px rgba(0,0,0,.16)}.theme-preview-card:before{content:"";position:absolute;inset:0;background-image:var(--preview);background-size:cover;background-position:center;opacity:.74;transition:.2s ease}.theme-preview-card:hover:before{transform:scale(1.035);opacity:.9}.theme-preview-card>*{position:relative;z-index:2}.theme-preview-card span{font-size:10px;font-weight:900;letter-spacing:.12em;color:#d9ebff}.theme-preview-card strong{margin-top:3px;font-size:13px;text-shadow:0 2px 10px #000}

.uhu-master-hero{position:relative;display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,.55fr);gap:18px;min-height:400px;padding:36px;overflow:hidden;border:1px solid rgba(244,181,68,.34);border-radius:22px;background:#0d1520 url('assets/themes/uhu-master.webp') center/cover no-repeat;box-shadow:0 24px 60px rgba(0,0,0,.30)}.uhu-master-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,8,13,.90),rgba(4,8,13,.48) 45%,rgba(4,8,13,.15) 72%),linear-gradient(to top,rgba(4,8,13,.65),transparent 60%)}.uhu-master-copy,.uhu-master-hero .uhu-domain-card{position:relative;z-index:2;align-self:end}.uhu-master-copy{max-width:700px}.uhu-master-copy h2{margin:0;font-size:clamp(34px,5vw,64px);line-height:1.0;font-family:"Arial Black",Impact,Inter,sans-serif;text-shadow:0 6px 28px rgba(0,0,0,.72)}.uhu-master-copy>p:not(.eyebrow){font-size:15px;color:#d0dae5;max-width:650px}.uhu-master-logo{position:absolute;top:18px;left:22px;z-index:3;width:108px;max-height:105px;object-fit:contain;filter:drop-shadow(0 8px 16px rgba(0,0,0,.5))}.uhu-master-copy .eyebrow{padding-top:76px}.uhu-master-hero .uhu-domain-card{background:rgba(5,10,16,.70);backdrop-filter:blur(10px)}
.uhu-section-heading{margin:22px 0 10px}.realm-grid-visual{grid-template-columns:repeat(4,1fr)}.realm-card{position:relative;overflow:hidden;min-height:260px!important;padding:0!important;background:#111722!important;isolation:isolate}.realm-card-art{position:absolute;inset:0;background-size:cover;background-position:center;opacity:.64;z-index:-2;transition:.2s ease}.realm-card:after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(5,9,14,.98) 0%,rgba(5,9,14,.83) 42%,rgba(5,9,14,.12) 100%);z-index:-1}.realm-card:hover .realm-card-art{transform:scale(1.04);opacity:.78}.realm-card-content{display:flex;flex-direction:column;justify-content:flex-end;height:100%;min-height:260px;padding:16px}.realm-card .realm-code{position:absolute;top:12px;right:12px;padding:4px 7px;border:1px solid rgba(255,255,255,.16);border-radius:999px;background:rgba(4,8,12,.56);backdrop-filter:blur(6px);color:#fff}.realm-card-heading{display:flex;align-items:center;gap:10px;margin-bottom:5px}.realm-card-icon{width:40px;height:40px;object-fit:contain;flex:0 0 40px;filter:drop-shadow(0 8px 16px rgba(0,0,0,.45))}.realm-card h3{margin:0;font-family:var(--theme-heading-font);font-size:19px;text-shadow:0 2px 12px #000}.realm-card p{margin:0 0 12px;color:#c0cad6;font-size:11px}.realm-card .secondary-btn{align-self:flex-start}
.uhu-featured-series,.uhu-character-spotlights{margin-top:18px}.uhu-cover-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:9px}.uhu-cover-strip figure{margin:0;position:relative;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:#0d121a;box-shadow:0 12px 26px rgba(0,0,0,.22);transition:.18s ease}.uhu-cover-strip figure:hover{transform:translateY(-4px);border-color:rgba(244,181,68,.44)}.uhu-cover-strip img{display:block;width:100%;aspect-ratio:2/3;object-fit:cover}.uhu-cover-strip figcaption{padding:8px 9px;color:#dfe7f2;font-size:10px;text-align:center;background:linear-gradient(180deg,#111a26,#0c121b)}
.uhu-spotlight-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.uhu-spotlight-grid article{position:relative;min-height:330px;overflow:hidden;border:1px solid var(--line);border-radius:16px;background:radial-gradient(circle at 50% 35%,color-mix(in srgb,var(--theme-accent) 10%,transparent),transparent 40%),linear-gradient(145deg,#17202d,#0b111a)}.uhu-spotlight-grid img{display:block;width:100%;height:280px;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 16px 18px rgba(0,0,0,.45))}.uhu-spotlight-grid article>div{position:absolute;left:0;right:0;bottom:0;padding:12px;background:linear-gradient(to top,rgba(5,9,14,.98),rgba(5,9,14,.75),transparent)}.uhu-spotlight-grid strong,.uhu-spotlight-grid span{display:block}.uhu-spotlight-grid span{margin-top:2px;color:var(--muted);font-size:10px}

.template-card{isolation:isolate}.template-card-theme-art{position:absolute;inset:0;background-size:cover;background-position:center;opacity:.11;z-index:-2;transition:.18s ease}.template-card:after{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(10,16,24,.96),rgba(10,16,24,.70) 70%,rgba(10,16,24,.84));z-index:-1}.template-card:hover .template-card-theme-art{opacity:.24;transform:scale(1.03)}

@media(max-width:1180px){.realm-grid-visual{grid-template-columns:repeat(3,1fr)}.uhu-cover-strip{grid-template-columns:repeat(4,1fr)}.uhu-spotlight-grid{grid-template-columns:repeat(2,1fr)}.theme-preview-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:860px){.theme-mode-control span{display:none}.uhu-master-hero{grid-template-columns:1fr;padding:28px 22px;min-height:470px}.uhu-master-copy .eyebrow{padding-top:80px}.uhu-master-hero .uhu-domain-card{max-width:420px}.realm-grid-visual{grid-template-columns:repeat(2,1fr)}.theme-preview-heading,.uhu-section-heading{align-items:flex-start;flex-direction:column}.workspace-theme-banner{min-height:145px;padding:16px}.workspace-theme-logo{width:64px;height:64px}.workspace-theme-copy small{max-width:70%}.uhu-cover-strip{grid-template-columns:repeat(3,1fr)}}
@media(max-width:560px){.theme-mode-control{padding:2px 5px}.theme-mode-control select{max-width:72px}.realm-grid-visual,.theme-preview-grid,.uhu-spotlight-grid{grid-template-columns:1fr}.uhu-cover-strip{grid-template-columns:repeat(2,1fr)}.workspace-theme-banner{min-height:155px}.workspace-theme-copy strong{font-size:24px}.workspace-theme-pill{display:none}.workspace-theme-copy small{max-width:82%}.uhu-master-hero{min-height:520px}.uhu-master-logo{width:88px}.uhu-master-copy h2{font-size:39px}}
/* UX10 authoritative Invincer asset is transparent character art. */
.hero-art-invincer img{object-fit:contain;object-position:center bottom}.hero-art-invincer{filter:saturate(1.12) contrast(1.04) drop-shadow(0 18px 24px rgba(0,0,0,.48))}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}.theme-preview-card:hover:before,.realm-card:hover .realm-card-art{transform:none!important}}

/* UX11: larger theme art visibility + full-screen media viewer */
.workspace-theme-banner{min-height:230px}
body[data-theme-mode="immersive"] .workspace-theme-banner{min-height:320px}
.workspace-theme-actions{position:relative;z-index:4;display:flex;flex-direction:column;align-items:flex-end;gap:8px;align-self:flex-end}
.workspace-theme-view-btn{border:1px solid color-mix(in srgb,var(--theme-accent) 46%,transparent);border-radius:999px;background:rgba(6,10,16,.78);color:#fff;padding:7px 10px;font-size:10px;font-weight:800;cursor:pointer;backdrop-filter:blur(8px)}
.workspace-theme-view-btn:hover{border-color:var(--theme-accent);background:rgba(12,18,28,.9)}
.uhu-cover-strip figure{cursor:zoom-in;outline:none}
.uhu-cover-strip figure:focus-visible{box-shadow:0 0 0 3px color-mix(in srgb,var(--theme-accent) 55%,transparent),0 12px 26px rgba(0,0,0,.22)}
.uhu-cover-strip figure:after{content:"View cover";position:absolute;inset:auto 8px 42px 8px;padding:6px 8px;border-radius:999px;background:rgba(5,9,14,.78);backdrop-filter:blur(7px);color:#fff;text-align:center;font-size:9px;font-weight:900;letter-spacing:.08em;opacity:0;transform:translateY(5px);transition:.16s ease;pointer-events:none}
.uhu-cover-strip figure:hover:after,.uhu-cover-strip figure:focus-visible:after{opacity:1;transform:none}
.cover-lightbox-backdrop{position:fixed;inset:0;z-index:500;background:rgba(1,4,8,.95);backdrop-filter:blur(10px);display:flex;align-items:stretch;justify-content:stretch}
.cover-lightbox-shell{width:100%;height:100%;display:flex;flex-direction:column;min-width:0;min-height:0}
.cover-lightbox-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;border-bottom:1px solid rgba(255,255,255,.1);background:rgba(7,12,18,.82)}
.cover-lightbox-title{display:flex;flex-direction:column;min-width:0}
.cover-lightbox-title span{font-size:9px;letter-spacing:.14em;color:var(--theme-accent);font-weight:900}
.cover-lightbox-title strong{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cover-lightbox-close{width:38px;height:38px;border-radius:999px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.05);color:#fff;font-size:24px;line-height:1;cursor:pointer}
.cover-lightbox-stage{position:relative;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;overflow:auto;padding:18px 72px}
.cover-lightbox-image{display:block;max-width:100%;max-height:calc(100vh - 125px);width:auto;height:auto;object-fit:contain;box-shadow:0 24px 70px rgba(0,0,0,.6);border-radius:8px;background:#0a0d12}
.cover-lightbox-nav{position:absolute;top:50%;transform:translateY(-50%);width:46px;height:58px;border:1px solid rgba(255,255,255,.16);border-radius:12px;background:rgba(4,8,12,.65);color:#fff;font-size:34px;cursor:pointer;display:grid;place-items:center;z-index:2}
.cover-lightbox-nav:hover{background:rgba(18,27,40,.9);border-color:color-mix(in srgb,var(--theme-accent) 50%,transparent)}
.cover-lightbox-prev{left:14px}.cover-lightbox-next{right:14px}
.cover-lightbox-footer{padding:8px 16px 12px;color:#9dabb9;text-align:center;font-size:10px;background:rgba(7,12,18,.7)}
body.lightbox-open{overflow:hidden}
@media(max-width:860px){
  .workspace-theme-banner{min-height:205px}
  body[data-theme-mode="immersive"] .workspace-theme-banner{min-height:255px}
  .cover-lightbox-stage{padding:12px 50px}
  .cover-lightbox-nav{width:38px;height:50px;font-size:28px}
}
@media(max-width:560px){
  .workspace-theme-banner{min-height:195px}
  body[data-theme-mode="immersive"] .workspace-theme-banner{min-height:230px}
  .workspace-theme-actions{gap:5px}
  .workspace-theme-view-btn{font-size:9px;padding:6px 8px}
  .cover-lightbox-toolbar{padding:10px 12px}
  .cover-lightbox-stage{padding:10px 40px}
  .cover-lightbox-prev{left:4px}.cover-lightbox-next{right:4px}
  .cover-lightbox-image{max-height:calc(100vh - 110px)}
}


/* UX12: system-specific stats + visual look builder */
.stats-explainer,.visual-look-callout{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 14px;padding:12px 14px;border:1px solid rgba(77,166,255,.22);border-radius:14px;background:linear-gradient(135deg,rgba(47,112,178,.12),rgba(145,91,255,.07))}
.stats-explainer strong,.visual-look-callout strong{color:var(--text)}
.stats-explainer span,.visual-look-callout span{color:var(--muted);font-size:12px;line-height:1.45;flex:1 1 260px}
.visual-look-callout button{margin-left:auto}
.stats-grid .field{position:relative}
.stats-grid input[type="number"],.stats-grid select{font-variant-numeric:tabular-nums;font-weight:750}
.look-builder-card{margin-top:16px;padding:16px;border:1px solid rgba(244,181,68,.24);border-radius:18px;background:linear-gradient(145deg,rgba(244,181,68,.07),rgba(86,104,255,.06),rgba(12,17,24,.5));box-shadow:inset 0 1px rgba(255,255,255,.025)}
.look-builder-head{display:flex;align-items:center;justify-content:space-between;gap:16px}
.look-builder-head h4{margin:3px 0 5px;font-size:18px}
.look-builder-head p{margin:0;color:var(--muted);font-size:12px;max-width:720px}
.look-draft{margin-top:14px;padding:14px;border-radius:14px;background:rgba(8,12,18,.55);border:1px solid var(--line)}
.look-draft p{margin:5px 0 12px;color:#dfe8f4;line-height:1.55}
.look-swatch-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.look-swatch-row span{width:30px;height:30px;border-radius:10px;background:var(--sw);border:1px solid rgba(255,255,255,.22);box-shadow:0 4px 14px rgba(0,0,0,.28)}
.look-swatch-row small{color:var(--muted);margin-left:5px}
.look-draft-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}
@media(max-width:700px){.look-builder-head{align-items:stretch;flex-direction:column}.visual-look-callout button{margin-left:0;width:100%}.stats-explainer{align-items:flex-start;flex-direction:column}}

/* UX13 RPG roll-up + universal core + multi-system sheet */
.rpg-start-shell{--rpg-accent:var(--accent,#69a9ff)}
.rpg-start-method{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;margin:0 0 18px;border:1px solid color-mix(in srgb,var(--rpg-accent) 42%,#26374e);background:linear-gradient(135deg,color-mix(in srgb,var(--rpg-accent) 13%,#111a27),#0d141f);border-radius:16px}
.rpg-start-method>div:first-child{display:grid;gap:4px;max-width:760px}.rpg-start-method strong{font-size:1.02rem}.rpg-start-method span{color:var(--text-muted,#aab7c8)}.rpg-start-method small{color:#7f91a8;line-height:1.45}.rpg-roll-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.rpg-start-block{margin-top:18px;padding:17px;border:1px solid #24354c;border-radius:16px;background:rgba(8,14,23,.58)}.rpg-start-block-title{margin-bottom:13px}.rpg-start-block-title h4{margin:3px 0 4px;font-size:1.08rem}.rpg-start-block-title p{margin:0;color:var(--text-muted,#9facbd)}
.rpg-fundamentals-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.rpg-primary-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.rpg-stat-card{position:relative;padding:12px;border:1px solid #2a3d57;background:linear-gradient(180deg,rgba(23,35,52,.82),rgba(12,19,29,.82));border-radius:13px;min-width:0}.rpg-stat-card>.field{margin:0}.rpg-stat-card .field label{padding-right:2px}.dice-roll-btn{margin-top:8px;width:100%;min-height:34px;border:1px solid color-mix(in srgb,var(--rpg-accent) 50%,#30435e);border-radius:9px;background:rgba(37,78,124,.25);color:#d9eaff;font-weight:700;cursor:pointer}.dice-roll-btn:hover{background:rgba(51,105,164,.38);transform:translateY(-1px)}.stat-modifier{display:block;margin-top:7px;text-align:center;color:#ffd36a;font-size:.78rem;font-weight:800;letter-spacing:.04em}.rpg-derived-details{margin-top:12px;border-top:1px solid #26384f;padding-top:12px}.rpg-derived-details summary{cursor:pointer;color:#bcd6f6;font-weight:750;margin-bottom:12px}
.universal-core-card{margin-top:18px;border:1px solid rgba(98,165,255,.28);border-radius:16px;background:rgba(11,22,36,.72);padding:13px 15px}.universal-core-card summary{cursor:pointer;display:flex;justify-content:space-between;gap:15px;align-items:center}.universal-core-card summary span{color:#91a2b7;font-size:.82rem}.universal-core-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}.core-meter{padding:9px 10px;border:1px solid #253a54;border-radius:10px;background:#0b1420}.core-meter>div{display:flex;justify-content:space-between;font-size:.78rem}.core-meter b{color:#9fc9ff}.core-meter i{display:block;height:5px;margin-top:7px;border-radius:99px;background:#1c2b3d;overflow:hidden}.core-meter em{display:block;height:100%;background:linear-gradient(90deg,#51a6ff,#c08cff);border-radius:99px}
.dice-results{display:grid;gap:14px}.dice-faces{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.die-face{position:relative;display:grid;place-items:center;width:48px;height:48px;border:1px solid #54759c;background:linear-gradient(145deg,#f7fbff,#cbd9e8);color:#111b27;font-weight:900;font-size:1.05rem;box-shadow:0 5px 15px rgba(0,0,0,.25)}.die-face.dropped{opacity:.38;filter:grayscale(1)}.die-d6{border-radius:10px}.die-d4{width:50px;height:48px;clip-path:polygon(50% 0,100% 92%,0 92%)}.die-d8{width:50px;height:50px;clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%)}.die-d10,.die-d100{width:52px;height:52px;clip-path:polygon(50% 0,84% 14%,100% 44%,93% 78%,50% 100%,7% 78%,0 44%,16% 14%)}.die-d12{width:54px;height:54px;clip-path:polygon(50% 0,78% 8%,96% 30%,96% 70%,78% 92%,50% 100%,22% 92%,4% 70%,4% 30%,22% 8%)}.die-d20{width:54px;height:54px;clip-path:polygon(50% 0,82% 20%,100% 50%,82% 80%,50% 100%,18% 80%,0 50%,18% 20%)}.die-value{position:relative;z-index:2;display:block;font-size:.95rem;line-height:1}.die-d12 .die-value,.die-d20 .die-value,.die-d10 .die-value,.die-d100 .die-value{transform:translateY(2px)}.die-pips{position:relative;display:block;width:100%;height:100%}.die-pips:before,.die-pips:after{content:"";position:absolute;width:7px;height:7px;border-radius:50%;background:#162434;box-shadow:0 0 0 1px rgba(255,255,255,.15) inset}.pips-1:before{left:50%;top:50%;transform:translate(-50%,-50%)}.pips-2:before{left:14px;top:14px}.pips-2:after{right:14px;bottom:14px}.pips-3:before{left:14px;top:14px;box-shadow:18px 18px 0 #162434}.pips-3:after{right:14px;bottom:14px}.pips-4:before{left:14px;top:14px;box-shadow:18px 0 0 #162434,0 18px 0 #162434,18px 18px 0 #162434}.pips-4:after{display:none}.pips-5:before{left:14px;top:14px;box-shadow:18px 0 0 #162434,0 18px 0 #162434,18px 18px 0 #162434,9px 9px 0 #162434}.pips-5:after{display:none}.pips-6:before{left:14px;top:10px;box-shadow:18px 0 0 #162434,0 10px 0 #162434,18px 10px 0 #162434,0 20px 0 #162434,18px 20px 0 #162434}.pips-6:after{display:none}.dice-total{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;border:1px solid #314963;background:#101c2a;border-radius:12px}.dice-total strong{font-size:1.65rem;color:#ffd26c}.dice-roll-row{display:grid;grid-template-columns:100px 1fr 50px;gap:12px;align-items:center;padding:9px 0;border-bottom:1px solid #22344b}.dice-roll-row .dice-faces{gap:5px}.dice-roll-row .die-face{width:34px;height:34px;font-size:.95rem}.dice-roll-row>b{font-size:1.15rem;color:#ffd36a;text-align:right}
.master-sheet-card{margin-top:22px;padding:18px;border-radius:17px;border:1px solid rgba(179,120,255,.42);background:linear-gradient(135deg,rgba(83,38,135,.18),rgba(11,20,31,.92))}.master-sheet-card.locked{opacity:.82}.master-sheet-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.master-sheet-head h4{font-size:1.2rem;margin:4px 0}.master-sheet-head p{max-width:820px;margin:0;color:#9eacbf}.master-system-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0}.master-system-option{display:flex;gap:9px;align-items:flex-start;padding:10px;border:1px solid #2a3b54;border-radius:11px;background:#101824;cursor:pointer}.master-system-option:has(input:checked){border-color:#8f6bdc;background:#1b1730}.master-system-option input{margin-top:3px}.master-system-option span{display:grid}.master-system-option strong{font-size:.82rem}.master-system-option small{font-size:.72rem;color:#8999ad}.master-sheet-modal-head{display:flex;gap:16px;align-items:center}.master-sheet-modal-head img{width:78px;height:96px;object-fit:cover;border-radius:11px;border:1px solid #334d6d}.master-sheet-modal-head h3{margin:3px 0}.master-sheet-modal-head p{margin:0;color:#a9b5c4}.master-core-summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin:16px 0}.master-core-summary span{display:grid;text-align:center;padding:8px;border-radius:9px;border:1px solid #2b405a;background:#111c2b}.master-core-summary b{color:#88bfff;font-size:.68rem;text-transform:uppercase}.master-sheet-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-height:50vh;overflow:auto}.master-system-sheet{padding:11px;border:1px solid #2a405b;border-radius:12px;background:#0f1825}.master-system-sheet h4{margin:0 0 8px;color:#ffd36a}.master-stat-list div{display:flex;justify-content:space-between;gap:8px;padding:6px 0;border-bottom:1px solid #223249}.master-stat-list span{color:#aebbc9}.master-sheet-note{font-size:.74rem;color:#8494a8;margin:12px 0 0}
@media(max-width:900px){.rpg-start-method{align-items:stretch;flex-direction:column}.rpg-roll-actions{justify-content:flex-start}.rpg-fundamentals-grid,.rpg-primary-stats,.master-system-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.master-sheet-columns{grid-template-columns:repeat(2,minmax(0,1fr))}.master-core-summary{grid-template-columns:repeat(3,1fr)}}
@media(max-width:600px){.rpg-fundamentals-grid,.rpg-primary-stats,.master-system-grid,.master-sheet-columns{grid-template-columns:1fr}.rpg-roll-actions>*{flex:1 1 100%}.universal-core-card summary{align-items:flex-start;flex-direction:column}.universal-core-grid{grid-template-columns:repeat(2,1fr)}.dice-roll-row{grid-template-columns:1fr}.dice-roll-row>b{text-align:left}.master-core-summary{grid-template-columns:repeat(2,1fr)}}

.custom-select-wrap{display:grid;gap:8px}.custom-select-wrap input[type=text]{margin-top:0}
@media(max-width:860px){.workspace-theme-title-row{min-height:58px}.workspace-realm-logo{width:60px;height:60px}}

body[data-theme-key="fantasy"] .workspace-theme-shade{background:linear-gradient(90deg,rgba(5,9,14,.93) 0%,rgba(5,9,14,.72) 36%,rgba(5,9,14,.18) 64%,rgba(5,9,14,.08) 100%),linear-gradient(to top,rgba(5,8,13,.58),transparent 58%)}

.section-action-buttons{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.rpg-derived-panel{margin-top:16px;padding:16px;border:1px solid #2c4360;border-radius:16px;background:linear-gradient(180deg,rgba(14,27,42,.88),rgba(8,15,24,.90))}.rpg-derived-heading{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:12px}.rpg-derived-heading h4{margin:3px 0 5px;font-size:1.08rem}.rpg-derived-heading p{margin:0;max-width:760px;color:var(--text-muted,#9facbd);line-height:1.45}.rpg-derived-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.derived-stat-card{min-width:0;padding:13px;border:1px solid #304863;border-radius:13px;background:linear-gradient(180deg,rgba(29,47,68,.78),rgba(13,23,35,.82))}.derived-stat-card span{display:block;color:#bdd2e9;font-size:.78rem;font-weight:800;letter-spacing:.02em}.derived-stat-card strong{display:block;margin:4px 0 6px;color:#ffd56f;font-size:1.55rem;line-height:1}.derived-stat-card small{display:block;color:#93a6ba;line-height:1.35}.rpg-derived-details{display:none!important}@media(max-width:900px){.rpg-derived-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.rpg-derived-grid{grid-template-columns:1fr}.section-action-buttons>*{flex:1 1 100%}}


/* UX17: inspiration and custom art-style builder */
.preset-group{margin-bottom:12px}.preset-group-title{display:block;margin-bottom:7px;color:#d8e5f5;font-size:10px;font-weight:900;letter-spacing:.11em;text-transform:uppercase}
.other-inspiration-box{margin:12px 0 4px;padding:12px;border:1px solid rgba(187,140,255,.28);border-radius:12px;background:rgba(187,140,255,.055)}.other-inspiration-box label{display:block;margin-bottom:6px;font-size:11px;font-weight:800;color:#e5d8ff}.other-inspiration-box textarea{width:100%;min-height:90px;border:1px solid var(--line2);border-radius:9px;background:#0c121b;color:var(--text);padding:9px;resize:vertical}
.custom-style-builder,.custom-style-locked,.custom-style-gallery{margin-top:14px;border:1px solid rgba(244,181,68,.24);border-radius:16px;background:linear-gradient(145deg,rgba(244,181,68,.05),rgba(105,168,255,.025));padding:15px}.custom-style-locked{display:flex;align-items:center;justify-content:space-between;gap:18px}.custom-style-locked h4,.custom-style-builder h4,.custom-style-gallery h3{margin:2px 0 5px}.custom-style-locked p,.custom-style-builder p{margin:0;color:var(--muted)}
.custom-style-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:12px}.custom-style-toolbar{display:flex;align-items:center;gap:10px;margin:10px 0 12px}.custom-style-toolbar .search-input{max-width:none}.custom-style-toolbar>span{white-space:nowrap;color:var(--gold2);font-size:11px;font-weight:800}
.custom-style-group{margin:8px 0;border:1px solid var(--line);border-radius:11px;background:rgba(8,13,20,.45);overflow:hidden}.custom-style-group summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;padding:10px 12px;font-weight:800;color:#dbe6f4}.custom-style-group summary span{font-size:10px;color:var(--muted);font-weight:700}.custom-style-chip-grid{display:flex;flex-wrap:wrap;gap:6px;padding:0 10px 11px}.style-term-chip,.avoid-style-chip{border:1px solid var(--line2);border-radius:999px;background:rgba(255,255,255,.03);color:#cfd9e5;padding:6px 9px;font-size:10px;cursor:pointer}.style-term-chip:hover,.avoid-style-chip:hover{border-color:#637895}.style-term-chip.selected{border-color:rgba(105,168,255,.7);background:rgba(105,168,255,.14);color:#ddebff}.avoid-style-chip.selected{border-color:rgba(255,129,129,.72);background:rgba(255,129,129,.12);color:#ffd4d4}.avoid-style-row{display:flex;flex-wrap:wrap;gap:7px;padding:8px 0}.custom-style-freeform{margin-top:12px}.custom-style-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.inspiration-section-actions{margin-top:14px}
.custom-style-gallery{margin-top:24px}.custom-style-gallery-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px}.custom-style-gallery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px}.custom-style-gallery-card{border:1px solid var(--line);border-radius:13px;background:rgba(12,17,25,.8);padding:13px}.custom-style-gallery-card h4{margin:3px 0 7px;font-size:17px}.custom-style-gallery-card p{margin:0;color:var(--muted);font-size:11px}.custom-style-gallery-card>small{display:block;margin-top:7px;color:#8695aa}.custom-style-gallery-lock{display:flex;align-items:center;gap:14px;padding:13px;border:1px dashed rgba(244,181,68,.3);border-radius:12px}.custom-style-gallery-lock span{color:var(--muted);flex:1}
@media(max-width:760px){.custom-style-head,.custom-style-locked,.custom-style-gallery-lock{align-items:stretch;flex-direction:column}.custom-style-toolbar{align-items:stretch;flex-direction:column}.custom-style-toolbar>span{white-space:normal}.workspace-realm-logo{width:58px;height:58px}}

/* ===== UX18: Collectible Card Forge / Collections / Merch ===== */
.cards-nav{border-color:rgba(246,190,62,.35)!important}.collectible-feature-card{background:linear-gradient(155deg,rgba(13,37,64,.94),rgba(31,20,44,.94));border-color:rgba(92,184,255,.35)!important}
.collectibles-hero{position:relative;min-height:245px;margin-bottom:14px;overflow:hidden;border:1px solid #246493;border-radius:18px;background:radial-gradient(circle at 50% 42%,#183e67 0,#081928 42%,#030b12 100%);box-shadow:0 18px 55px rgba(0,0,0,.35);isolation:isolate}
.collectibles-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(33,132,219,.15),transparent 28%,transparent 72%,rgba(255,144,25,.15)),repeating-linear-gradient(90deg,transparent 0 90px,rgba(84,167,232,.035) 91px 92px);z-index:-1}
.collectibles-hero-character{position:absolute;top:6px;height:235px;max-width:36%;object-fit:contain;z-index:2;filter:drop-shadow(0 16px 24px rgba(0,0,0,.7))}.collectibles-hero-character.invincer{left:9%;object-position:center top}.collectibles-hero-character.sunburn{right:9%;width:29%;object-fit:cover;object-position:center 8%;clip-path:polygon(5% 0,100% 0,95% 100%,0 100%);border-radius:12px;filter:saturate(1.05) drop-shadow(0 16px 24px rgba(0,0,0,.7))}
.collectibles-hero-copy{position:absolute;z-index:4;left:50%;top:50%;width:min(460px,36%);transform:translate(-50%,-50%);text-align:center;padding:16px 20px;border:1px solid rgba(103,199,255,.38);border-radius:16px;background:linear-gradient(180deg,rgba(4,14,25,.92),rgba(3,10,18,.78));backdrop-filter:blur(8px);box-shadow:0 12px 35px rgba(0,0,0,.42)}
.collectibles-hero-copy>span{font-size:11px;letter-spacing:.22em;color:#7fd2ff;font-weight:900}.collectibles-hero-copy h2{margin:4px 0;font-size:clamp(26px,3vw,44px);line-height:.95;letter-spacing:.035em;color:#fff;text-shadow:0 0 20px rgba(74,178,255,.35)}.collectibles-hero-copy p{margin:8px 0;color:#d4e5f4;font-size:13px}.collectibles-hero-copy small{color:#f7c85a;font-weight:800;letter-spacing:.15em}
.collectibles-hero-side{position:absolute;z-index:5;left:12px;bottom:16px;display:grid;grid-template-columns:52px auto;grid-template-rows:auto auto auto;gap:0 9px;align-items:center;max-width:190px;padding:8px 10px;border-radius:12px;background:rgba(2,10,18,.76);border:1px solid rgba(92,176,234,.36)}.collectibles-hero-side.right{left:auto;right:12px;text-align:right;grid-template-columns:auto 52px}.collectibles-hero-side.right img{grid-column:2;grid-row:1/4}.collectibles-hero-side img{width:52px;height:52px;object-fit:contain;grid-row:1/4}.collectibles-hero-side span{font-size:9px;color:#74caff;font-weight:900;letter-spacing:.12em}.collectibles-hero-side strong{font-size:14px}.collectibles-hero-side small{font-size:9px;color:#9fb5c9}
.cards-studio-grid{display:grid;grid-template-columns:205px minmax(0,1fr);gap:12px;align-items:start}.cards-side-menu{position:sticky;top:var(--sticky-panel-top,120px);display:flex;flex-direction:column;gap:6px;padding:10px;border:1px solid var(--line);border-radius:16px;background:rgba(8,17,27,.94)}.cards-side-menu h3{margin:3px 6px 8px;font-size:17px}.cards-side-menu button{appearance:none;text-align:left;border:1px solid #24415e;border-radius:10px;background:#0d1c2c;color:#dbeaf7;padding:10px 11px;font-weight:750;cursor:pointer}.cards-side-menu button:hover,.cards-side-menu button.active{background:linear-gradient(90deg,#0f6ec2,#12365c);border-color:#58bdff;color:#fff}
.cards-main{display:grid;gap:12px}.card-studio-panel{scroll-margin-top:calc(var(--sticky-panel-top,120px) + 10px);border:1px solid #294864;border-radius:16px;background:linear-gradient(160deg,rgba(10,25,40,.95),rgba(7,14,24,.95));padding:14px;box-shadow:0 14px 36px rgba(0,0,0,.22)}.studio-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}.studio-heading h3{margin:2px 0 3px;font-size:22px}.studio-heading p{margin:0;color:#9fb3c7;font-size:12px;max-width:760px}
.card-builder-layout{display:grid;grid-template-columns:minmax(430px,1.35fr) minmax(250px,.65fr);gap:16px}.card-preview-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start;padding:12px;border:1px solid rgba(95,169,225,.22);border-radius:14px;background:radial-gradient(circle at 50% 30%,rgba(37,106,160,.12),rgba(2,8,14,.7))}.card-preview-pair>div{display:flex;justify-content:center}.card-builder-controls{display:grid;gap:9px;align-content:start}.card-builder-controls label{display:grid;gap:4px;color:#bcd0e2;font-size:11px;font-weight:800}.card-builder-controls textarea{resize:vertical}.card-builder-controls .card-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:4px}.card-builder-controls .card-actions .primary-btn{grid-column:1/-1}
.collect-card{--frame:#39a9ff;--metal:#f2c65a;position:relative;width:min(100%,315px);aspect-ratio:5/7;overflow:hidden;border:4px solid var(--metal);border-radius:15px;background:linear-gradient(145deg,#071622,#123353);box-shadow:0 12px 30px rgba(0,0,0,.42),inset 0 0 0 3px rgba(255,255,255,.12);color:#fff}.collect-card:before{content:"";position:absolute;inset:5px;border:2px solid var(--frame);border-radius:9px;pointer-events:none;z-index:8}.collect-card.style-holo{--frame:#70f0ff;--metal:#bd75ff;background:linear-gradient(145deg,#0b1d34,#3b1b6e 50%,#074e72)}.collect-card.style-holo:after{content:"";position:absolute;inset:0;background:linear-gradient(115deg,transparent 15%,rgba(255,255,255,.32) 34%,rgba(86,255,231,.2) 42%,rgba(255,109,230,.2) 54%,transparent 70%);mix-blend-mode:screen;z-index:7;pointer-events:none}.collect-card.style-variant{--frame:#ff4c53;--metal:#f1b34b;background:#170b11}.collect-card.style-action{--frame:#ff6f3e;--metal:#ffe072;background:#111827}.collect-card.style-realm{--frame:#69c8ff;--metal:#d8f4ff;background:#071d30}.collect-card.style-team{--frame:#7998ff;--metal:#d9e0ff}.collect-card.style-retro{--frame:#a86b2e;--metal:#ead09d;background:#2a2017;filter:sepia(.18)}.collect-card.style-minimal{--frame:#8d9aa6;--metal:#f3f5f7;background:#15191e}
.collect-card.rarity-legendary{box-shadow:0 0 28px rgba(255,191,36,.4),0 12px 30px rgba(0,0,0,.5)}.collect-card.rarity-epic{box-shadow:0 0 26px rgba(170,78,255,.35),0 12px 30px rgba(0,0,0,.5)}
.card-topline,.card-bottomline{position:absolute;left:15px;right:15px;z-index:6;display:flex;justify-content:space-between;gap:8px;align-items:center;padding:6px 8px;background:rgba(1,7,13,.84);border:1px solid rgba(255,255,255,.16);font-size:10px}.card-topline{top:15px}.card-bottomline{bottom:14px}.card-topline span,.card-bottomline span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-topline b,.card-bottomline b{color:var(--metal)}
.card-image-stage{position:absolute;left:18px;right:18px;top:52px;height:53%;overflow:hidden;border-radius:8px;background:radial-gradient(circle at 50% 35%,rgba(61,134,191,.5),#03101a 68%);border:1px solid rgba(115,190,240,.32)}.card-image-stage>img:not(.card-realm-icon){width:100%;height:100%;object-fit:contain;object-position:center top;display:block}.card-image-placeholder{display:grid;place-items:center;width:100%;height:100%;font-size:64px;font-weight:900;color:#87bde5}.card-realm-icon{position:absolute;right:8px;bottom:8px;width:48px;height:48px;object-fit:contain;filter:drop-shadow(0 5px 8px rgba(0,0,0,.7))}.card-nameplate{position:absolute;left:18px;right:18px;top:57%;z-index:5;text-align:center;padding:6px;background:linear-gradient(90deg,rgba(2,10,17,.93),rgba(17,68,105,.94),rgba(2,10,17,.93));border-block:1px solid var(--metal)}.card-nameplate strong{display:block;font-size:22px;line-height:1}.card-nameplate span{display:block;margin-top:3px;color:#cce8ff;font-size:9px;text-transform:uppercase;letter-spacing:.08em}.card-stat-row{position:absolute;left:18px;right:18px;top:67%;display:grid;grid-template-columns:repeat(6,1fr);gap:3px;z-index:5}.card-stat-row span{display:grid;place-items:center;padding:4px 1px;border:1px solid rgba(117,188,238,.35);background:rgba(4,15,25,.86);border-radius:5px}.card-stat-row b{font-size:15px}.card-stat-row small{font-size:7px;color:#82bce7}.collect-card blockquote{position:absolute;left:22px;right:22px;top:78%;margin:0;text-align:center;color:#dce7f1;font:italic 9px/1.25 Georgia,serif;z-index:5}.card-back{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;background:radial-gradient(circle at 50% 45%,#164b79,#061522 56%,#02070c)}.card-back .card-back-logo{width:34%;height:auto;filter:drop-shadow(0 0 16px #55bfff)}.card-back strong{font-size:24px;letter-spacing:.08em;margin-top:8px}.card-back span{color:#72c9ff;font-weight:800}.card-back small{color:#a7bbcb;margin-top:6px}.card-back-orbit{position:absolute;width:72%;aspect-ratio:1;border:2px solid rgba(105,195,255,.3);border-radius:50%;box-shadow:0 0 0 16px rgba(85,164,225,.04),0 0 0 38px rgba(85,164,225,.03)}
.card-style-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.card-style-choice{display:grid;grid-template-columns:54px 1fr;text-align:left;gap:2px 9px;align-items:center;border:1px solid #2a4966;border-radius:11px;padding:8px;background:#0b1a29;color:#e7f4ff;cursor:pointer}.card-style-choice.active,.card-style-choice:hover{border-color:#68c7ff;background:#102b43}.card-style-choice .style-thumb{grid-row:1/3;display:grid;place-items:center;width:54px;height:54px;border-radius:8px;background:linear-gradient(145deg,#133450,#06111c);border:1px solid #356994;color:#f0c655;font-size:22px}.style-thumb.holo{background:linear-gradient(135deg,#153a67,#683789,#1690a0)}.style-thumb.variant{background:linear-gradient(135deg,#3e1020,#c13544)}.style-thumb.action{background:linear-gradient(135deg,#27140c,#d94622)}.style-thumb.realm{background:radial-gradient(circle,#277abb,#061a2b)}.style-thumb.team{background:linear-gradient(135deg,#17244d,#4f60c7)}.style-thumb.retro{background:linear-gradient(135deg,#5b421f,#ae7637)}.style-thumb.minimal{background:linear-gradient(135deg,#30343b,#101216)}.card-style-choice strong{font-size:12px}.card-style-choice small{color:#92a8bd;font-size:9px}
.merch-layout{display:grid;grid-template-columns:150px minmax(0,1fr);gap:12px}.merch-toolbar{display:flex;flex-direction:column;gap:7px}.merch-toolbar button{border:1px solid #315776;border-radius:9px;background:#0b1b2a;color:#dceaf6;padding:9px;text-align:left;cursor:pointer}.merch-toolbar button.active,.merch-toolbar button:hover{background:#115791;border-color:#64c6ff}.merch-preview{min-height:310px;border:1px solid #28465f;border-radius:13px;background:radial-gradient(circle at 50% 40%,#17466d,#050c13 72%);display:grid;grid-template-columns:1fr;place-items:center;padding:18px}.merch-mockup{position:relative;width:min(100%,440px);height:270px;display:grid;place-items:center}.merch-product-shape{position:absolute;background:#e9eef2;filter:drop-shadow(0 14px 20px rgba(0,0,0,.45))}.merch-shirt .merch-product-shape{width:260px;height:235px;clip-path:polygon(22% 0,38% 8%,62% 8%,78% 0,100% 20%,83% 42%,73% 34%,73% 100%,27% 100%,27% 34%,17% 42%,0 20%)}.merch-sticker .merch-product-shape{width:235px;height:235px;border-radius:38% 45% 42% 36%}.merch-mug .merch-product-shape{width:250px;height:185px;border-radius:10px}.merch-mug .merch-product-shape:after{content:"";position:absolute;right:-58px;top:40px;width:80px;height:100px;border:18px solid #e9eef2;border-left:0;border-radius:0 55px 55px 0}.merch-poster .merch-product-shape{width:185px;height:250px}.merch-phone .merch-product-shape{width:145px;height:260px;border-radius:24px}.merch-art{position:relative;z-index:2;display:grid;place-items:center;width:165px;height:190px;overflow:hidden}.merch-art img{max-width:100%;max-height:150px;object-fit:contain}.merch-art strong{font-size:18px;color:#0b1926;text-shadow:0 1px #fff;text-align:center}.merch-phone .merch-art{width:108px;height:215px}.merch-phone .merch-art img{max-height:160px}.merch-caption{text-align:center;color:#afc4d6;display:grid;gap:4px}.merch-caption strong{color:#fff}.merch-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px}
.digital-tools-grid{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:12px}.token-tool,.standee-tool,.play-beta{border:1px solid #294963;border-radius:13px;background:#091725;padding:12px;text-align:center}.token-tool p,.standee-tool p,.play-beta span{color:#9eb4c6;font-size:11px}.token-preview{width:160px;height:160px;margin:0 auto 10px;border:8px solid #72cbff;border-radius:50%;overflow:hidden;background:#06131f;box-shadow:0 0 0 4px #e5bd5d,0 10px 25px rgba(0,0,0,.38)}.token-preview img{width:100%;height:100%;object-fit:cover;object-position:center top}.standee-preview{height:160px;margin-bottom:10px;display:grid;place-items:center}.standee-preview>div{display:flex;align-items:end;height:100%}.standee-preview img{max-width:82px;max-height:150px;object-fit:contain}.standee-preview img.mirrored{transform:scaleX(-1)}.play-beta{text-align:left}.play-beta ul{columns:2;margin:9px 0 12px;padding-left:20px}.play-beta li{margin:5px 0;color:#d7e7f3}.output-feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.output-feature-grid>div{display:grid;grid-template-columns:30px 1fr;gap:2px 8px;padding:11px;border:1px solid #294863;border-radius:10px;background:#091725}.output-feature-grid b{grid-row:1/3;color:#69d994;font-size:21px}.output-feature-grid strong{font-size:12px}.output-feature-grid span{color:#93aabe;font-size:10px}
.collection-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:12px}.collection-summary>div{padding:14px;border:1px solid #294962;border-radius:12px;background:linear-gradient(145deg,#0d2235,#08131f);text-align:center}.collection-summary strong{display:block;font-size:30px;color:#70c9ff}.collection-summary span{font-size:11px;color:#9fb4c6}.saved-set-strip{display:flex;gap:8px;overflow:auto;margin:0 0 12px}.saved-set-chip{min-width:150px;text-align:left;border:1px solid #2c506f;border-radius:11px;background:#0c1b29;color:#e7f3fc;padding:9px;cursor:pointer}.saved-set-chip strong,.saved-set-chip span{display:block}.saved-set-chip span{font-size:10px;color:#86a8c2}.collection-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.collection-card{border:1px solid #294862;border-radius:14px;background:#08131f;padding:10px;min-width:0}.collection-card-preview{display:grid;place-items:center}.collection-card-preview .collect-card{width:min(100%,245px)}.collection-card-meta{display:grid;gap:3px;margin-top:8px}.collection-card-meta span{font-size:10px;color:#91a9bd}.danger-link{justify-self:start;border:0;background:none;color:#ff8f8f;padding:4px 0;cursor:pointer}.quick-reference-modal{display:grid;gap:8px}.quick-reference-modal p{font-size:15px;line-height:1.55;color:#e0ebf5}.quick-reference-modal small{color:#91a7ba}
@media(max-width:1180px){.collectibles-hero-character{max-width:33%}.collectibles-hero-copy{width:42%}.collectibles-hero-side{display:none}.card-builder-layout{grid-template-columns:1fr}.collection-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:860px){.cards-studio-grid{grid-template-columns:1fr}.cards-side-menu{position:static;display:grid;grid-template-columns:repeat(3,1fr)}.cards-side-menu h3{grid-column:1/-1}.collectibles-hero{min-height:330px}.collectibles-hero-character{top:82px;height:245px;max-width:48%}.collectibles-hero-character.invincer{left:-2%}.collectibles-hero-character.sunburn{right:-2%;width:44%}.collectibles-hero-copy{top:10px;transform:translateX(-50%);width:92%;padding:10px}.collectibles-hero-copy h2{font-size:28px}.collectibles-hero-copy p{display:none}.card-style-grid{grid-template-columns:repeat(2,1fr)}.digital-tools-grid{grid-template-columns:1fr 1fr}.play-beta{grid-column:1/-1}.collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.merch-layout{grid-template-columns:1fr}.merch-toolbar{flex-direction:row;overflow:auto}.merch-toolbar button{white-space:nowrap}.merch-actions{grid-column:1}.output-feature-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.cards-side-menu{grid-template-columns:repeat(2,1fr)}.card-preview-pair{grid-template-columns:1fr}.card-style-grid,.digital-tools-grid,.collection-grid,.collection-summary,.output-feature-grid{grid-template-columns:1fr}.collectibles-hero-character{height:210px;top:120px}.collectibles-hero{min-height:330px}.collectibles-hero-copy small{font-size:8px}.card-builder-controls .card-actions{grid-template-columns:1fr}.card-builder-controls .card-actions .primary-btn{grid-column:auto}.play-beta{grid-column:auto}}

/* ===== UX19: polished Card Forge + non-blurred thematic headers ===== */
.workspace-theme-banner{aspect-ratio:24/7;min-height:0!important;padding:24px 28px;background:#07111c;isolation:isolate}
.workspace-theme-banner:before{display:none!important}
.workspace-theme-banner:after{inset:0;background-image:var(--theme-art);background-size:cover;background-repeat:no-repeat;background-position:center center;filter:none!important;opacity:1;transform:none!important;z-index:0}
.workspace-theme-banner>.workspace-theme-copy,.workspace-theme-banner>.workspace-theme-logo,.workspace-theme-banner>.workspace-theme-pill{z-index:3}
.workspace-theme-banner:has(.workspace-theme-copy):after{box-shadow:inset 0 0 0 1000px rgba(2,8,14,.12)}
body[data-theme-key="fantasy"] .workspace-theme-banner:after{transform:scaleX(-1)!important;background-position:center center}

.cards-showcase-hero{position:relative;height:278px;margin:-2px 0 10px;overflow:hidden;border:1px solid #2478b6;border-radius:12px;background:#04111e url('assets/themes/uhu-science.webp') center 43%/cover no-repeat;box-shadow:0 14px 40px rgba(0,0,0,.38)}
.cards-showcase-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,17,37,.08),rgba(1,10,20,.18) 33%,rgba(0,8,18,.68) 46%,rgba(0,8,18,.72) 56%,rgba(30,10,0,.08) 72%);z-index:1}
.cards-showcase-char{position:absolute;z-index:2;pointer-events:none;filter:drop-shadow(0 15px 20px rgba(0,0,0,.55))}
.cards-showcase-char.inv{display:none}
.cards-showcase-char.sun{right:2.2%;bottom:-13%;height:112%;width:auto;object-fit:contain;object-position:center top;clip-path:polygon(4% 0,100% 0,100% 100%,0 100%)}
.cards-showcase-copy{position:absolute;z-index:4;left:50%;top:49%;transform:translate(-50%,-50%);width:430px;text-align:center;text-shadow:0 3px 12px #000}
.cards-showcase-copy>span{font-weight:950;font-size:15px;letter-spacing:.12em;color:#8cd7ff}.cards-showcase-copy h2{margin:0;font-size:46px;line-height:.86;letter-spacing:.02em;font-style:italic;color:#edf7ff}.cards-showcase-copy h2 b{display:block;color:#6fd4ff;text-shadow:0 0 14px rgba(25,170,255,.65),0 3px 8px #001}.cards-showcase-copy p{margin:9px 0 5px;font-weight:850;font-size:11px;letter-spacing:.05em;color:#fff}.cards-showcase-copy small{font-size:9px;letter-spacing:.22em;color:#a9dafa}
.cards-realm-stamp{position:absolute;z-index:4;left:12px;bottom:12px;display:grid;grid-template-columns:62px auto;grid-template-rows:auto auto;align-items:center;column-gap:8px;padding:7px 10px;border:1px solid rgba(88,196,255,.48);border-radius:9px;background:rgba(0,14,29,.78);box-shadow:0 7px 20px rgba(0,0,0,.34)}.cards-realm-stamp.right{left:auto;right:12px;text-align:right;grid-template-columns:auto 62px}.cards-realm-stamp.right img{grid-column:2;grid-row:1/3}.cards-realm-stamp img{width:62px;height:62px;object-fit:contain;grid-row:1/3}.cards-realm-stamp strong{font-size:15px;color:#72e6ff;letter-spacing:.04em}.cards-realm-stamp small{font-size:8px;color:#b5d6e8;letter-spacing:.08em}

.cards-command-layout{display:grid;grid-template-columns:205px minmax(0,1fr);gap:9px;align-items:start}.cards-command-menu{position:sticky;top:var(--sticky-panel-top,120px);display:flex;flex-direction:column;gap:4px;padding:8px;border:1px solid #1d6c9e;border-radius:11px;background:linear-gradient(180deg,#07233b,#04111d 80%);box-shadow:0 10px 30px rgba(0,0,0,.28)}.cards-command-menu h3{margin:2px 5px 5px;font-size:17px}.cards-command-menu button{position:relative;display:flex;align-items:center;gap:8px;min-height:38px;border:1px solid #1b547a;border-radius:7px;background:linear-gradient(180deg,#0b2a45,#071a2c);color:#ecf8ff;text-align:left;padding:8px 10px;font-weight:780;cursor:pointer}.cards-command-menu button small{margin-left:auto;color:#7793a7}.cards-command-menu button.active,.cards-command-menu button:hover:not(:disabled){border-color:#54c6ff;background:linear-gradient(180deg,#158ee9,#07599a);box-shadow:0 0 14px rgba(31,169,255,.36)}.cards-command-menu button:disabled{opacity:.5;cursor:not-allowed}.cards-menu-promo{display:grid;gap:3px;place-items:center;text-align:center;margin-top:7px;padding:12px 8px;border:1px solid #18527c;border-radius:8px;background:radial-gradient(circle at 50% 15%,#0d3c64,#06121e 70%)}.cards-menu-promo strong{font-size:12px}.cards-menu-promo span{font-size:8px;color:#a7c7dc}.cards-menu-promo img{width:42px;margin-top:4px}
.cards-command-main{display:grid;gap:9px}.cards-top-grid{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(300px,.82fr);gap:9px}.forge-panel{border:1px solid #1c6a9d;border-radius:11px;background:linear-gradient(155deg,rgba(6,29,48,.98),rgba(3,13,23,.98));box-shadow:0 10px 24px rgba(0,0,0,.24);overflow:hidden}.forge-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:7px 10px;border-bottom:1px solid #1c5f8c;background:linear-gradient(180deg,rgba(11,56,88,.72),rgba(3,20,34,.65))}.forge-panel-head h3{margin:0;color:#f1f8fd;font-size:17px;letter-spacing:.035em}.forge-panel-head p{margin:1px 0 0;color:#9fbdd0;font-size:9px}.mini-action{border:1px solid #2b93d4;border-radius:7px;background:#08253c;color:#dff5ff;padding:6px 10px;font-weight:800;font-size:9px;white-space:nowrap}.mini-action:hover{background:#0c5080}.mini-action:disabled{opacity:.45}
.featured-card-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;padding:9px}.featured-card-tile{display:grid;grid-template-rows:1fr auto auto;gap:2px;min-width:0;border:0;background:transparent;color:#eef7fd;text-align:left;padding:0;cursor:pointer}.featured-card-tile>div{height:205px;display:grid;place-items:center;overflow:hidden;border:1px solid #2f6384;border-radius:7px;background:#06111d}.featured-card-tile .collect-card{width:142px;transform:scale(.92);transform-origin:center}.featured-card-tile:hover>div,.featured-card-tile.active>div{border-color:#69d1ff;box-shadow:0 0 13px rgba(42,177,255,.33)}.featured-card-tile strong{font-size:10px}.featured-card-tile span{font-size:8px;color:#87a9bf}.card-back-tile .card-back{transform:scale(.92)}
.compact-builder{min-width:0}.compact-builder-body{display:grid;grid-template-columns:150px 1fr;gap:9px;padding:9px}.compact-card-preview{display:grid;place-items:center;min-height:250px}.compact-card-preview .collect-card{width:148px}.compact-card-controls{display:grid;grid-template-columns:1fr 1fr;gap:5px 6px;align-content:start}.compact-card-controls label{display:grid;gap:2px;color:#abc5d7;font-size:8px;font-weight:800}.compact-card-controls input,.compact-card-controls select,.compact-card-controls textarea{min-width:0;padding:6px 7px;font-size:9px}.compact-card-controls label:nth-child(1),.compact-card-controls label:nth-child(2),.compact-card-controls label:nth-child(4),.compact-card-controls label:nth-child(5){grid-column:1/-1}.compact-card-controls textarea{resize:vertical}.builder-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1.25fr 1fr;gap:5px;margin-top:2px}.builder-actions button{padding:7px 5px;font-size:8px}.hidden-card-back{display:none}
.cards-bottom-grid{display:grid;grid-template-columns:1.35fr 1.15fr .72fr;gap:9px}.collection-teaser,.merch-feature,.play-feature{min-height:310px}.set-showcase{display:grid;grid-template-columns:145px 1fr 100px;gap:8px;padding:10px}.booster-pack{position:relative;height:242px;overflow:hidden;border:2px solid #4aaef0;border-radius:8px;background:linear-gradient(145deg,#0b3b65,#03101b);box-shadow:inset 0 0 25px rgba(28,137,215,.32)}.booster-pack img{position:absolute;height:73%;bottom:30px;object-fit:contain}.booster-pack img:first-child{left:-16px}.booster-pack img:nth-child(2){right:-20px}.booster-pack strong{position:absolute;left:4px;right:4px;bottom:33px;text-align:center;font-size:10px;text-shadow:0 2px 6px #000}.booster-pack span{position:absolute;left:0;right:0;bottom:8px;text-align:center;font-size:8px;color:#ffdc6f}.binder-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;align-content:start;padding:5px;border:1px solid #1b4b6d;border-radius:7px;background:#06111d}.binder-grid>span{height:111px;display:grid;place-items:center;overflow:hidden}.binder-grid .collect-card{width:74px;transform:scale(.92)}.rarity-stack{display:grid;gap:6px;align-content:start;font-size:8px}.rarity-stack b{color:#cbeeff}.rarity-stack span{padding:5px;border:1px solid #264d68;border-radius:5px;background:#071723;color:#d7e8f4}.rarity-stack span:nth-child(5){color:#ffdd72}.rarity-stack button{margin-top:4px;font-size:8px;padding:7px}
.merch-layout-polished{display:grid;grid-template-columns:82px 1fr;gap:8px;padding:9px}.merch-layout-polished .merch-toolbar{display:grid;gap:5px;align-content:start}.merch-layout-polished .merch-toolbar button{padding:7px 5px;font-size:8px}.merch-layout-polished .merch-preview{min-height:226px}.merch-download{grid-column:1/-1;font-size:9px}.play-links{display:grid;gap:5px;padding:8px}.play-links button{display:grid;grid-template-columns:25px 1fr;gap:6px;align-items:center;border:1px solid #20587d;border-radius:7px;background:#071a2b;color:#e7f5ff;padding:7px;text-align:left;cursor:pointer}.play-links button:hover:not(:disabled){border-color:#58c9ff;background:#0b3150}.play-links button:disabled{opacity:.48}.play-links button>span{display:flex;flex-direction:column}.play-links strong{font-size:9px}.play-links small{font-size:7px;color:#86a8bd}.token-inline{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0 8px 8px}.token-inline .token-preview,.token-inline .standee-preview{min-height:68px}
.export-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:0}.export-strip>div{padding:11px;border-right:1px solid #1c5f8c}.export-strip>div:last-child{border-right:0}.export-strip strong{display:block;color:#dff5ff;font-size:10px}.export-strip span{display:block;margin-top:3px;color:#94b2c6;font-size:8px;line-height:1.4}

.collection-hero-polished{display:grid;grid-template-columns:1.4fr .8fr;gap:20px;align-items:center;margin-bottom:12px;padding:24px 26px;border:1px solid #1f70a5;border-radius:14px;background:linear-gradient(105deg,rgba(5,29,49,.96),rgba(4,14,25,.92)),url('assets/themes/uhu-science.webp') center/cover no-repeat;box-shadow:0 15px 34px rgba(0,0,0,.28)}.collection-hero-polished>div:first-child>span{font-size:10px;letter-spacing:.18em;color:#69cfff;font-weight:900}.collection-hero-polished h2{margin:5px 0 7px;font-size:34px;line-height:.95}.collection-hero-polished p{max-width:670px;margin:0;color:#b3cad9;font-size:11px}.collection-hero-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px}.collection-hero-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.collection-hero-stats>div{display:grid;place-items:center;min-height:82px;border:1px solid #22618b;border-radius:10px;background:rgba(4,17,29,.78)}.collection-hero-stats b{font-size:27px;color:#7ed9ff}.collection-hero-stats span{font-size:8px;color:#9fb9cb}.collection-command-grid{display:grid;grid-template-columns:205px minmax(0,1fr);gap:10px}.collection-side-panel{display:flex;flex-direction:column;gap:5px;padding:9px;border:1px solid #1f6898;border-radius:11px;background:#061827}.collection-side-panel h3{margin:2px 4px 6px}.collection-side-panel button{display:flex;justify-content:space-between;border:1px solid #235578;border-radius:7px;background:#082036;color:#e8f5ff;padding:8px;text-align:left}.collection-side-panel button.active,.collection-side-panel button:hover{border-color:#58c8ff;background:#0b558b}.collection-side-note{margin-top:auto;padding:10px;border:1px solid #23445d;border-radius:8px;background:#07121d}.collection-side-note strong{display:block;font-size:9px}.collection-side-note span{display:block;margin-top:3px;font-size:7px;color:#88a7bb}.collection-main-panel{min-width:0}.collection-toolbar-polished{display:grid;grid-template-columns:1fr 180px auto;gap:7px;margin-bottom:9px}.collection-grid.polished{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px}.collection-empty{grid-column:1/-1;min-height:330px}.collection-empty img{width:75px;opacity:.72;margin-bottom:12px}

@media(max-width:1180px){.cards-top-grid{grid-template-columns:1fr}.cards-bottom-grid{grid-template-columns:1fr 1fr}.play-feature{grid-column:1/-1}.featured-card-row{grid-template-columns:repeat(5,minmax(110px,1fr));overflow-x:auto}.collection-command-grid{grid-template-columns:170px 1fr}}
@media(max-width:860px){.workspace-theme-banner{aspect-ratio:auto!important;min-height:220px!important}.cards-showcase-hero{height:315px}.cards-showcase-copy{top:28%;width:80%}.cards-showcase-copy h2{font-size:36px}.cards-showcase-char.sun{height:72%;right:-4%;bottom:-5%}.cards-realm-stamp{transform:scale(.82);transform-origin:left bottom}.cards-realm-stamp.right{transform-origin:right bottom}.cards-command-layout{grid-template-columns:1fr}.cards-command-menu{position:static;display:grid;grid-template-columns:repeat(3,1fr)}.cards-command-menu h3,.cards-menu-promo{grid-column:1/-1}.cards-bottom-grid{grid-template-columns:1fr}.play-feature{grid-column:auto}.collection-command-grid{grid-template-columns:1fr}.collection-side-panel{display:grid;grid-template-columns:repeat(3,1fr)}.collection-side-panel h3,.collection-side-note{grid-column:1/-1}.collection-hero-polished{grid-template-columns:1fr}.collection-toolbar-polished{grid-template-columns:1fr}}
@media(max-width:560px){.cards-showcase-copy h2{font-size:30px}.cards-showcase-copy p{display:none}.cards-realm-stamp.right{display:none}.cards-command-menu{grid-template-columns:repeat(2,1fr)}.featured-card-row{grid-template-columns:repeat(5,120px)}.compact-builder-body{grid-template-columns:1fr}.compact-card-preview .collect-card{width:190px}.compact-card-controls{grid-template-columns:1fr}.compact-card-controls label{grid-column:1!important}.set-showcase{grid-template-columns:1fr}.booster-pack{height:290px}.rarity-stack{grid-template-columns:repeat(2,1fr)}.merch-layout-polished{grid-template-columns:1fr}.export-strip{grid-template-columns:1fr 1fr}.collection-side-panel{grid-template-columns:1fr 1fr}.collection-hero-stats{grid-template-columns:1fr}.collection-grid.polished{grid-template-columns:1fr}}

/* ===== UX20: mockup-matched Archeform visual system ===== */
:root{
  --bg:#020812;--panel:#061321;--panel2:#0a1b2c;--panel3:#04101b;--line:#16496f;--line2:#2b6e9a;
  --text:#edf8ff;--muted:#91adc3;--gold:#f3ba49;--gold2:#ffdb79;--blue:#5ac8ff;--cyan:#6de5ff;
  --shadow:0 18px 48px rgba(0,0,0,.42);--radius:10px;--radius-sm:7px;
  --site-header-h:56px;--nav-h:43px;--sticky-panel-top:111px;
}
html{background:#020812}
body{background:
  radial-gradient(circle at 18% -8%,rgba(27,132,204,.13),transparent 29%),
  radial-gradient(circle at 82% 0%,rgba(80,47,164,.08),transparent 28%),
  linear-gradient(180deg,#020812 0,#03101b 38%,#020812 100%);color:var(--text)}

/* CRISP top chrome: no blur/frosted focus effects */
.beta-banner{padding:5px 40px 5px 14px;background:#07111c;border-bottom:1px solid #194d70;color:#9eb4c7;font-size:10px;box-shadow:inset 0 -1px rgba(108,217,255,.05)}
.beta-banner strong{color:#72d8ff}
.site-header{min-height:56px;padding:7px 14px;background:#020b14;border-bottom:1px solid #1c6795;backdrop-filter:none!important;box-shadow:0 3px 14px rgba(0,0,0,.36)}
.primary-nav{top:var(--site-header-h);padding:5px 14px;background:#04101b;border-bottom:1px solid #13496e;backdrop-filter:none!important;box-shadow:0 4px 14px rgba(0,0,0,.25)}
.brand-svg{width:36px;height:36px;border-radius:5px;filter:drop-shadow(0 0 8px rgba(74,196,255,.30))}.brand strong{font-size:16px;color:#dff5ff;text-shadow:0 0 10px rgba(82,195,255,.24)}.brand small{color:#76a3c2}.version-chip{border-color:#22577a;background:#061827;color:#86b6d6;border-radius:5px}.plan-badge{border-radius:5px;border-color:#3b8fbd;color:#c8efff;background:linear-gradient(180deg,#0a3150,#072238)}
.aisys-parent-badge{border-color:#1d4e6e!important;background:#06131f!important;border-radius:7px!important}.aisys-parent-badge small{color:#7ea4bc!important}
.nav-btn{border:1px solid transparent;border-radius:6px;padding:6px 10px;color:#a9bfd0;font-weight:650}.nav-btn:hover{border-color:#205577;background:#092039;color:#edf9ff}.nav-btn.active{border-color:#41bfff;background:linear-gradient(180deg,#0d71b1,#075487);color:#fff;box-shadow:0 0 16px rgba(39,178,255,.24),inset 0 1px rgba(255,255,255,.15)}

main{max-width:1720px;padding:9px 10px 18px}.view{animation:none}.view-heading{margin:0 0 9px;padding:10px 13px;border:1px solid #175a85;border-radius:8px;background:linear-gradient(180deg,#0a2237,#061521);box-shadow:inset 0 1px rgba(123,213,255,.08),0 8px 22px rgba(0,0,0,.22)}.view-heading h2{font-size:24px;letter-spacing:.02em}.view-heading .eyebrow{margin-bottom:2px;color:#6ed8ff}.view-heading p{font-size:11px}.heading-actions{gap:6px;flex-wrap:wrap}

.primary-btn,.secondary-btn,.ghost-btn{border-radius:6px;padding:7px 10px;box-shadow:none}.primary-btn{border-color:#58ceff;background:linear-gradient(180deg,#139ee9,#0870b2);color:#fff;text-shadow:0 1px 0 rgba(0,0,0,.35)}.primary-btn:hover{filter:brightness(1.09);box-shadow:0 0 14px rgba(63,193,255,.28)}.secondary-btn{border-color:#287aa7;background:linear-gradient(180deg,#0a3553,#08243a);color:#e7f7ff}.secondary-btn:hover,.ghost-btn:hover{border-color:#4fbce9;background:#0a3a5c}.ghost-btn{border-color:#1b506f;background:#061827;color:#c7dce9}.text-btn{color:#67d0ff}

/* Generic page sections now follow the same blue-metal design language as the approved mockups. */
.feature-card,.hero-card,.inspector-card,.price-card,.coming-panel,.architecture-note,.gallery-callout,.uhu-domain-card,.launch-card,.help-card,.project-card,.template-card,.realm-card,.char-card,.gallery-card,.story-editor-card,.story-doc-list,.creator-tool-card,.prompt-panel,.converter-panel,.conversion-preview{
  border-radius:8px!important;border-color:#1c5f89!important;background:linear-gradient(155deg,rgba(7,29,47,.98),rgba(3,14,24,.98))!important;box-shadow:0 10px 25px rgba(0,0,0,.20),inset 0 1px rgba(123,213,255,.04)
}
.feature-card{min-height:164px;padding:13px}.feature-card h3{margin:8px 0 4px}.feature-card p{font-size:11px}.feature-icon{border-radius:6px;border-color:#287eaa;background:#0a2d48;color:#7bd9ff}
.new-user-panel,.visual-showcase,.workflow-ribbon>div{border-radius:8px!important;border-color:#1a5c86!important;background:linear-gradient(150deg,#071b2d,#05121f)!important}

/* Dashboard: compressed, cinematic, application-like instead of oversized marketing cards. */
.hero-panel-vibrant{min-height:390px;padding:26px 28px;border-radius:9px;border-color:#2278a8;background:linear-gradient(120deg,#061725,#07111d 48%,#081522);box-shadow:0 18px 45px rgba(0,0,0,.36)}
.hero-panel-vibrant:before{background:radial-gradient(circle at 16% 18%,rgba(44,179,255,.16),transparent 30%),radial-gradient(circle at 74% 10%,rgba(255,187,65,.08),transparent 22%)}
.hero-panel-vibrant:after{opacity:.6}.hero-panel-vibrant h1{font-size:clamp(38px,4.4vw,64px);line-height:.98}.hero-panel-vibrant .hero-copy>p:not(.eyebrow){font-size:14px;line-height:1.55}.hero-actions{margin-top:14px;gap:6px}.hero-stage{min-height:335px;border:1px solid #236b94;border-radius:8px;box-shadow:0 18px 38px rgba(0,0,0,.38)}
.hero-stage-overlay{left:10px;right:10px;bottom:9px;padding:9px 10px;border-radius:6px;border-color:#2d6687;background:rgba(3,13,22,.88);backdrop-filter:none!important}.hero-stats .stat{border-radius:5px;border-color:#214f6b;background:#071a2a}.workflow-ribbon{gap:6px;margin:8px 0}.workflow-ribbon>div{min-height:70px;padding:10px 12px}.new-user-panel{margin:8px 0;padding:12px 14px}.feature-grid{gap:8px;margin-top:8px}.visual-showcase{gap:8px;margin-top:8px;padding:10px}.visual-character-card{border-radius:7px;border-color:#1f638d}

/* ===== Character Builder: match the approved Character Builder work-up ===== */
#view-create .view-heading{position:relative;z-index:5;margin-bottom:7px}
.workspace-theme-banner{height:clamp(220px,17.5vw,300px)!important;aspect-ratio:auto!important;min-height:0!important;margin:0!important;padding:18px 22px!important;border:1px solid #2383b7!important;border-radius:8px 8px 0 0!important;background:#04101b!important;isolation:isolate;box-shadow:0 12px 32px rgba(0,0,0,.34)!important}
.workspace-theme-banner:before{display:none!important}.workspace-theme-banner:after{content:""!important;display:block!important;position:absolute!important;inset:0!important;background-image:var(--theme-art)!important;background-size:cover!important;background-repeat:no-repeat!important;background-position:center center!important;filter:none!important;opacity:1!important;transform:none!important;z-index:0!important;box-shadow:none!important}
.workspace-theme-shade{position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(1,10,18,.86) 0%,rgba(1,10,18,.42) 27%,rgba(1,10,18,.08) 53%,rgba(1,10,18,.18) 74%,rgba(1,10,18,.58) 100%);pointer-events:none}
.workspace-theme-copy{z-index:3;align-self:flex-end;max-width:670px;padding:10px 12px;border-left:3px solid var(--theme-accent);background:linear-gradient(90deg,rgba(2,10,18,.82),rgba(2,10,18,.36),transparent);text-shadow:0 2px 8px #000}.workspace-theme-copy>span{color:#bfeeff}.workspace-theme-copy strong{font-size:clamp(30px,3vw,47px);letter-spacing:.025em;text-transform:uppercase}.workspace-theme-copy small{color:#d7e8f4}.workspace-realm-logo{width:76px;height:76px}.workspace-theme-logo{right:16px;top:14px;width:70px;height:70px}.workspace-theme-actions{position:relative;z-index:4;align-self:flex-end;display:flex;gap:6px}.workspace-theme-pill,.workspace-theme-view-btn{border-radius:5px!important;backdrop-filter:none!important;background:rgba(3,15,25,.88)!important;border:1px solid #328bbb!important;color:#e8f8ff!important}
body[data-theme-key="fantasy"] .workspace-theme-banner:after{transform:scaleX(-1)!important}

.realm-ribbon{display:none;grid-template-columns:repeat(12,minmax(72px,1fr));gap:0;margin:0 0 8px;border:1px solid #1f6c9b;border-top:0;border-radius:0 0 8px 8px;background:#030d16;overflow-x:auto;overflow-y:hidden;box-shadow:0 8px 22px rgba(0,0,0,.26)}
body[data-theme-key^="uhu-"] .realm-ribbon{display:grid}.realm-ribbon button{position:relative;min-width:76px;padding:6px 4px 5px;border:0;border-right:1px solid #123d5a;background:linear-gradient(180deg,#061827,#030d16);color:#a9c1d1;cursor:pointer}.realm-ribbon button:last-child{border-right:0}.realm-ribbon button:hover{background:#0a2940;color:#fff}.realm-ribbon button.active{background:linear-gradient(180deg,#0d4d75,#082842);color:#fff;box-shadow:inset 0 -3px 0 var(--theme-accent),inset 0 0 18px color-mix(in srgb,var(--theme-accent) 15%,transparent)}.realm-ribbon img{display:block;width:49px;height:49px;margin:0 auto 2px;object-fit:contain;filter:drop-shadow(0 3px 5px rgba(0,0,0,.55))}.realm-ribbon span{display:block;font-size:8px;font-weight:750;white-space:nowrap;text-align:center}

.workspace-grid{grid-template-columns:210px minmax(0,1fr) 272px;gap:7px}.workspace-sidebar,.editor-panel,.inspector-card{border-radius:8px;border-color:#1d6a96}.workspace-sidebar{padding:9px;background:linear-gradient(180deg,#061827,#04111d);box-shadow:0 12px 25px rgba(0,0,0,.22)}.workspace-sidebar,.inspector-panel{top:108px}.sidebar-block{margin-bottom:8px}.sidebar-block label{font-size:9px;color:#b9d1e0;text-transform:uppercase;letter-spacing:.04em}.sidebar-block select{padding:7px;border-radius:5px;border-color:#245f82;background:#071a2b}.workspace-mode-block,.theme-mini-note{border-radius:6px!important}.module-nav{margin:8px 0;gap:2px;max-height:49vh}.module-btn{padding:6px 7px;border:1px solid transparent;border-radius:5px;font-size:11px}.module-btn:hover{border-color:#1d5678;background:#08233a}.module-btn.active{border-color:#45bfff;background:linear-gradient(90deg,#0c6195,#08283f);box-shadow:inset 3px 0 0 #81dcff;color:#fff}.sidebar-actions{gap:5px;padding-top:7px;border-top-color:#17415d}.sidebar-actions button{font-size:10px;padding:6px 7px}

/* The center workspace deliberately uses the light technical-sheet surface from the work-up. */
.editor-panel{padding:12px;min-height:680px;background:linear-gradient(180deg,#eaf0f5,#dce6ee)!important;border-color:#2998cf!important;color:#10283a;box-shadow:0 12px 30px rgba(0,0,0,.28),inset 0 1px #fff}.editor-panel .module-section{color:#10283a}.editor-panel .module-heading{margin:-12px -12px 12px;padding:10px 12px;background:linear-gradient(180deg,#0a2a44,#071d31);border-bottom:1px solid #339cce;border-radius:7px 7px 0 0}.editor-panel .module-heading h3{color:#f0f9ff;font-size:18px}.editor-panel .module-heading p{color:#a8c3d6;font-size:10px}.editor-panel .module-heading .eyebrow{color:#75d9ff}.editor-panel .field label{font-size:9px;color:#25445a;text-transform:uppercase;letter-spacing:.035em;font-weight:800}.editor-panel .field input,.editor-panel .field select,.editor-panel .field textarea,.editor-panel .structured-row input,.editor-panel .structured-row select,.editor-panel .structured-row textarea,.editor-panel .variant-card input,.editor-panel .variant-card select,.editor-panel .variant-card textarea{border:1px solid #9eb1bf!important;border-radius:5px!important;background:#f9fbfd!important;color:#122638!important;box-shadow:inset 0 1px 2px rgba(4,29,47,.06)}.editor-panel .field input:focus,.editor-panel .field select:focus,.editor-panel .field textarea:focus{border-color:#278bc2!important;box-shadow:0 0 0 2px rgba(39,139,194,.14)!important}.editor-panel .help{color:#5d7281}.editor-panel .guided-note,.editor-panel .inline-note,.editor-panel .stats-explainer,.editor-panel .rpg-start-method,.editor-panel .rpg-start-block,.editor-panel .rpg-derived-panel,.editor-panel .universal-core-card,.editor-panel .structured-row,.editor-panel .variant-card{border-radius:6px!important;border-color:#afc2cf!important;background:rgba(255,255,255,.62)!important;color:#18354a!important}.editor-panel .guided-note strong,.editor-panel .inline-note strong,.editor-panel .stats-explainer strong{color:#0d4d72}.editor-panel .section-autocomplete{margin:14px -2px -1px;padding:9px 10px;border:1px solid #7f9dad;border-radius:6px;background:linear-gradient(180deg,#d6e4ed,#c8d9e4);color:#214258}.editor-panel .section-autocomplete span{color:#526d7e}.editor-panel .card-kicker{color:#0b6f9f}.editor-panel .status-chip{border-color:#7ba8bf;background:#d7e7ef;color:#164965}.editor-panel .range-value{border-color:#95aebd;background:#fff;color:#0a6496}

.inspector-panel{gap:7px}.inspector-card{padding:9px;background:linear-gradient(180deg,#071b2c,#04111d);box-shadow:0 10px 22px rgba(0,0,0,.18)}.inspector-title{color:#80abc7;font-size:9px}.inspector-title strong{color:#cfeeff}.progress{border-color:#1f5472;background:#020b13}.progress span{background:linear-gradient(90deg,#128ccb,#64d8ff)}.mini-progress-list{font-size:9px}.validation-results{font-size:10px}

/* Lists, libraries and utility pages: compact grid, crisp edges, no floating generic pills. */
.card-grid{gap:8px}.toolbar-row{gap:6px;padding:7px;border:1px solid #174d70;border-radius:7px;background:#041321}.search-input,.toolbar-row select{border-radius:5px;border-color:#215f84;background:#061827;padding:7px 8px}.empty-state{border-radius:8px;border-color:#1e5f85;background:#06131f}.template-grid,.realm-grid{gap:8px}.template-card,.realm-card{padding:12px}.realm-card:before{height:3px;background:linear-gradient(90deg,#48c8ff,var(--theme-accent2,#8e75ff))}

/* Preserve the already-polished Card Forge but tighten it to the same shell. */
.cards-showcase-hero,.forge-panel,.collection-hero-polished,.collection-side-panel,.collection-card{border-radius:8px!important}.cards-showcase-hero{border-color:#2f96c9;box-shadow:0 13px 34px rgba(0,0,0,.34)}.cards-command-layout,.collection-command-grid{gap:7px}.forge-panel{border-color:#247aa7}.forge-panel-head{background:linear-gradient(180deg,#0b3858,#061e31)}

@media(max-width:1180px){.workspace-grid{grid-template-columns:195px minmax(0,1fr)}.inspector-panel{grid-column:1/-1}.realm-ribbon{grid-template-columns:repeat(12,82px)}}
@media(max-width:860px){main{padding:7px}.site-header{grid-template-columns:1fr auto}.aisys-header-center{display:none}.workspace-theme-banner{height:250px!important}.workspace-theme-copy strong{font-size:30px}.realm-ribbon{display:flex!important}.realm-ribbon button{flex:0 0 82px}.workspace-grid{grid-template-columns:1fr}.workspace-sidebar{position:static}.module-nav{max-height:none}.editor-panel{min-height:0}.hero-panel-vibrant{grid-template-columns:1fr;padding:20px}.feature-grid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.primary-nav{padding:4px 7px}.nav-btn{padding:6px 8px}.view-heading{padding:9px}.workspace-theme-banner{height:220px!important;padding:12px!important}.workspace-theme-copy{padding:8px}.workspace-realm-logo{width:58px;height:58px}.workspace-theme-logo{width:54px;height:54px}.feature-grid{grid-template-columns:1fr}.editor-panel{padding:9px}.editor-panel .module-heading{margin:-9px -9px 10px}.realm-ribbon img{width:43px;height:43px}}


/* ===== UX21: homepage rebuilt toward the approved mock-up direction ===== */
.dashboard-cinematic{margin-bottom:8px;border:1px solid #2487bb;border-radius:8px;overflow:hidden;background:#03101a;box-shadow:0 20px 44px rgba(0,0,0,.34)}
.dashboard-cinematic-banner{position:relative;display:grid;grid-template-columns:1fr 1fr;min-height:420px;background:#07111a}
.cinematic-half{position:relative;overflow:hidden;min-height:420px}
.cinematic-half::before{content:"";position:absolute;inset:0;background-repeat:no-repeat;background-size:cover;background-position:center center;opacity:1;z-index:0}
.cinematic-half.science::before{background-image:url('assets/themes/uhu-science.webp')}
.cinematic-half.divinity::before{background-image:url('assets/theme-banners/uhu-divinity.webp')}
.cinematic-half.science::after,.cinematic-half.divinity::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(2,9,15,.88),rgba(2,9,15,.18) 44%,rgba(2,9,15,.08) 70%);z-index:1}
.cinematic-half.divinity::after{background:linear-gradient(to top,rgba(16,8,4,.76),rgba(10,8,5,.14) 44%,rgba(10,8,5,.05) 70%)}
.cinematic-half.science{clip-path:polygon(0 0,100% 0,92% 100%,0 100%)}
.cinematic-half.divinity{clip-path:polygon(8% 0,100% 0,100% 100%,0 100%)}
.cinematic-emblem{position:absolute;top:18px;width:142px;height:142px;object-fit:contain;z-index:4;filter:drop-shadow(0 10px 20px rgba(0,0,0,.45))}
.cinematic-half.science .cinematic-emblem{left:18px}
.cinematic-half.divinity .cinematic-emblem{right:18px}
.cinematic-character{position:absolute;bottom:0;z-index:3;display:flex;align-items:flex-end;justify-content:center;pointer-events:none}
.cinematic-character img{display:block;max-width:none;filter:drop-shadow(0 18px 22px rgba(0,0,0,.42))}
.cinematic-character.invincer{left:20%;width:56%;height:100%}
.cinematic-character.invincer img{height:95%;width:auto;object-fit:contain;object-position:center bottom}
.cinematic-character.sunburn{right:15%;width:50%;height:100%}
.cinematic-character.sunburn img{height:94%;width:auto;object-fit:contain;object-position:center top}
.cinematic-copy{position:absolute;z-index:4;bottom:18px;display:flex;flex-direction:column;gap:4px;text-shadow:0 2px 10px rgba(0,0,0,.7)}
.cinematic-copy.left{left:24px;align-items:flex-start}
.cinematic-copy.right{right:24px;align-items:flex-end;text-align:right}
.cinematic-copy span{font-size:10px;letter-spacing:.18em;font-weight:900;color:#dbefff}
.cinematic-copy strong{font-size:clamp(28px,3vw,52px);line-height:.96;color:#f5fbff}
.cinematic-copy small{font-size:12px;letter-spacing:.09em;color:#eef7ff}
.cinematic-center-copy{position:absolute;left:50%;top:50%;transform:translate(-50%,-48%);z-index:5;width:min(760px,58vw);padding:18px 22px;border:1px solid rgba(76,156,202,.62);border-radius:8px;background:linear-gradient(180deg,rgba(4,14,22,.92),rgba(4,14,22,.78));box-shadow:0 20px 45px rgba(0,0,0,.38)}
.cinematic-center-copy h1{margin:0 0 9px;font-size:clamp(38px,3vw,56px);line-height:.97;color:#fff}
.cinematic-center-copy p:not(.eyebrow){margin:0;color:#dbe8f4;font-size:15px;line-height:1.55}
.cinematic-center-copy .hero-actions{margin-top:14px;margin-bottom:10px;flex-wrap:wrap}
.hero-stats-home{margin-top:8px;grid-template-columns:repeat(4,1fr)}
.hero-stats-home .stat{background:#071827;border-color:#204f6c}
.front-realm-ribbon{display:grid;grid-template-columns:repeat(12,minmax(68px,1fr));background:#020b14;border-top:1px solid #11405e}
.front-realm-ribbon button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:82px;padding:6px 4px;border:0;border-right:1px solid #0f334c;background:linear-gradient(180deg,#061827,#04111a);color:#bdd0de;cursor:pointer}
.front-realm-ribbon button:last-child{border-right:0}
.front-realm-ribbon button:hover{background:#0b2a40;color:#fff}
.front-realm-ribbon img{width:44px;height:44px;object-fit:contain;filter:drop-shadow(0 3px 7px rgba(0,0,0,.5))}
.front-realm-ribbon span{font-size:9px;font-weight:800;white-space:nowrap}
.workup-preview-band{display:grid;grid-template-columns:1.05fr 1fr 1fr;gap:10px;margin-top:8px;padding:10px;border:1px solid #1e6c97;border-radius:8px;background:linear-gradient(180deg,#061626,#04111c)}
.workup-preview-copy{padding:10px 12px;align-self:center}.workup-preview-copy h3{margin:4px 0 8px;font-size:28px}.workup-preview-copy p{margin:0;color:#c0d0dc;line-height:1.55}
.workup-preview-card{margin:0;overflow:hidden;border:1px solid #1e6188;border-radius:7px;background:#06111b;box-shadow:0 14px 28px rgba(0,0,0,.28)}
.workup-preview-card img{display:block;width:100%;height:250px;object-fit:cover;object-position:center top}
.workup-preview-card.large img{height:250px}
.workup-preview-card figcaption{padding:10px 12px;border-top:1px solid #174861;background:#071726}
.workup-preview-card strong{display:block;font-size:15px;color:#f2f8ff}.workup-preview-card span{display:block;margin-top:4px;font-size:11px;color:#b6c7d3}
@media(max-width:1280px){.dashboard-cinematic-banner{min-height:400px}.cinematic-center-copy{width:min(760px,64vw)}.front-realm-ribbon{grid-template-columns:repeat(12,78px);overflow-x:auto}.workup-preview-band{grid-template-columns:1fr 1fr}.workup-preview-copy{grid-column:1/-1}}
@media(max-width:980px){.dashboard-cinematic-banner{grid-template-columns:1fr;min-height:620px}.cinematic-half.science,.cinematic-half.divinity{clip-path:none;min-height:310px}.cinematic-half.divinity{border-top:1px solid rgba(255,255,255,.06)}.cinematic-character.invincer{left:18%;width:52%;height:100%}.cinematic-character.sunburn{right:12%;width:45%;height:100%}.cinematic-center-copy{position:relative;left:auto;top:auto;transform:none;width:auto;margin:0;border-left:0;border-right:0;border-bottom:1px solid rgba(76,156,202,.62);border-radius:0;padding:16px 18px}.dashboard-cinematic{overflow:visible}.front-realm-ribbon{display:flex;overflow-x:auto}.front-realm-ribbon button{flex:0 0 82px}.workup-preview-card img{height:230px}}
@media(max-width:680px){.dashboard-cinematic-banner{min-height:0}.cinematic-half{min-height:260px}.cinematic-emblem{width:92px;height:92px;top:12px}.cinematic-copy strong{font-size:32px}.cinematic-copy small{font-size:10px}.cinematic-center-copy h1{font-size:34px}.hero-stats-home{grid-template-columns:1fr 1fr}.workup-preview-band{grid-template-columns:1fr}.workup-preview-card img{height:215px}}


/* ===== UX22 hard rebuild: dashboard, create header, and card forge ===== */
.dashboard-cinematic{margin-bottom:10px;border:1px solid #2c83bb;border-radius:10px;overflow:hidden;background:#04111c;box-shadow:0 22px 44px rgba(0,0,0,.34)}
.dashboard-cinematic-banner{display:grid;grid-template-columns:1fr 1fr;min-height:252px;background:#07111a}
.cinematic-half{position:relative;overflow:hidden;min-height:252px}
.cinematic-half::before{content:"";position:absolute;inset:0;background-size:cover;background-position:center center;background-repeat:no-repeat;z-index:0}
.cinematic-half.science::before{background-image:url('assets/themes/uhu-science.webp')}
.cinematic-half.astral::before{background-image:url('assets/themes/uhu-astral.webp')}
.cinematic-half::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(4,8,13,.88),rgba(4,8,13,.10) 55%);z-index:1}
.cinematic-half.science{clip-path:polygon(0 0,100% 0,95% 100%,0 100%)}
.cinematic-half.astral{clip-path:polygon(5% 0,100% 0,100% 100%,0 100%)}
.cinematic-emblem{position:absolute;top:18px;width:112px;height:112px;object-fit:contain;z-index:4;filter:drop-shadow(0 8px 16px rgba(0,0,0,.48))}
.cinematic-half.science .cinematic-emblem{left:18px}.cinematic-half.astral .cinematic-emblem{right:18px}
.cinematic-character{position:absolute;bottom:0;z-index:3;display:flex;align-items:flex-end;justify-content:center;pointer-events:none}.cinematic-character img{display:block;max-width:none;filter:drop-shadow(0 16px 20px rgba(0,0,0,.38))}
.cinematic-character.invincer{left:22%;width:50%;height:100%}.cinematic-character.invincer img{height:100%;width:auto;object-fit:contain;object-position:center bottom}
.cinematic-character.astral-figure{left:14%;right:0;top:0;bottom:0}.cinematic-character.astral-figure img{width:100%;height:100%;object-fit:cover;object-position:center center;mix-blend-mode:screen;opacity:.95}
.cinematic-copy{position:absolute;bottom:18px;z-index:5;display:flex;flex-direction:column;gap:4px;text-shadow:0 3px 10px rgba(0,0,0,.72)}.cinematic-copy.left{left:24px}.cinematic-copy.right{right:24px;align-items:flex-end;text-align:right}.cinematic-copy span{font-size:10px;letter-spacing:.18em;font-weight:900;color:#d6ebff}.cinematic-copy strong{font-size:clamp(28px,3.1vw,52px);line-height:.95;color:#fff}.cinematic-copy small{font-size:13px;letter-spacing:.08em;color:#f1f6fb}
.dashboard-intro-dock{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(340px,.9fr);gap:18px;padding:16px 18px 14px;border-top:1px solid #123d58;background:linear-gradient(180deg,#061a2b,#05111d)}
.dashboard-intro-copy h1{margin:0 0 8px;font-size:clamp(38px,3.2vw,54px);line-height:.96}.dashboard-intro-copy p:not(.eyebrow){margin:0;color:#d0deeb;line-height:1.55;max-width:850px}.dashboard-intro-actions{display:grid;align-content:center;gap:12px}.dashboard-intro-actions .hero-actions{justify-content:flex-start;flex-wrap:wrap}.hero-stats-home{grid-template-columns:repeat(4,1fr);gap:8px}.hero-stats-home .stat{padding:10px 7px;background:#081827;border-color:#21516d}
.front-realm-ribbon,.realm-ribbon{display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr));gap:0;width:100%;margin:0;border-top:1px solid #154767;border-left:0;border-right:0;border-bottom:0;border-radius:0;background:#04111a;overflow:hidden}
.front-realm-ribbon button,.realm-ribbon button{min-width:0;min-height:92px;padding:8px 4px 7px;border:0;border-right:1px solid #133d59;background:linear-gradient(180deg,#071b2b,#05111b);color:#d1deea}.front-realm-ribbon button:last-child,.realm-ribbon button:last-child{border-right:0}.front-realm-ribbon img,.realm-ribbon img{width:58px!important;height:58px!important;margin:0 auto 4px}.front-realm-ribbon span,.realm-ribbon span{font-size:10px!important;font-weight:800;white-space:nowrap}
.front-realm-ribbon button:hover,.realm-ribbon button:hover{background:#0d2b40;color:#fff}.realm-ribbon button.active{background:linear-gradient(180deg,#0d4d75,#082842);color:#fff}
#view-create .view-heading{padding:12px 14px;border:1px solid #1c5f86;border-radius:8px;background:linear-gradient(180deg,#051627,#04111d)}
#view-create .workspace-theme-banner{height:300px!important;padding:20px 22px 18px!important;border-radius:8px 8px 0 0!important;background:#06131e!important;box-shadow:0 18px 38px rgba(0,0,0,.32)!important}
#view-create .workspace-theme-banner:after{background-size:cover!important;background-position:center center!important;opacity:1!important}
#view-create .workspace-theme-shade{background:linear-gradient(90deg,rgba(2,9,15,.82) 0%,rgba(2,9,15,.38) 28%,rgba(2,9,15,.04) 54%,rgba(2,9,15,.30) 74%,rgba(2,9,15,.62) 100%)}
#view-create .workspace-theme-copy{align-self:flex-end;max-width:640px;padding:14px 16px;border-left:4px solid var(--theme-accent);background:linear-gradient(90deg,rgba(3,13,22,.86),rgba(3,13,22,.42),transparent)}
#view-create .workspace-theme-copy strong{font-size:clamp(40px,4.2vw,62px);line-height:.94}#view-create .workspace-theme-copy small{font-size:13px;color:#dce8f4}#view-create .workspace-theme-logo{width:88px;height:88px;top:14px;right:18px}#view-create .workspace-realm-logo{width:86px;height:86px}#view-create .workspace-theme-actions{align-self:flex-end}
#view-create .realm-ribbon{margin:0 0 10px;border:1px solid #1f6c9b;border-top:0;border-radius:0 0 8px 8px}
.cards-mockup-hero{display:grid;grid-template-columns:1fr 1fr;min-height:250px;border:1px solid #2985bb;border-radius:10px 10px 0 0;overflow:hidden;background:#05111b;box-shadow:0 20px 42px rgba(0,0,0,.34)}
.cards-mockup-half{position:relative;overflow:hidden}.cards-mockup-half::before{content:"";position:absolute;inset:0;z-index:0;background-size:cover;background-position:center center;background-repeat:no-repeat}.cards-mockup-half.left::before{background-image:url('assets/themes/uhu-science.webp')}.cards-mockup-half.right::before{background-image:url('assets/themes/uhu-science.webp');background-position:center 38%}.cards-mockup-half::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(4,8,13,.88),rgba(4,8,13,.10) 56%);z-index:1}.cards-mockup-half.left{clip-path:polygon(0 0,100% 0,95% 100%,0 100%)}.cards-mockup-half.right{clip-path:polygon(5% 0,100% 0,100% 100%,0 100%)}
.cards-mockup-emblem{position:absolute;top:18px;width:128px;height:128px;object-fit:contain;z-index:3;filter:drop-shadow(0 8px 16px rgba(0,0,0,.5))}.cards-mockup-half.left .cards-mockup-emblem{left:18px}.cards-mockup-half.right .cards-mockup-emblem{right:18px}.cards-mockup-character{position:absolute;bottom:0;z-index:2;filter:drop-shadow(0 18px 20px rgba(0,0,0,.42))}.cards-mockup-character.inv{left:16%;height:102%;width:auto;object-fit:contain;object-position:center bottom}.cards-mockup-character.sun{right:12%;height:100%;width:auto;object-fit:contain;object-position:center bottom}.cards-mockup-caption{position:absolute;bottom:20px;z-index:4;display:grid;gap:4px;text-shadow:0 3px 10px rgba(0,0,0,.72)}.cards-mockup-caption.left{left:18px}.cards-mockup-caption.right{right:18px;text-align:right}.cards-mockup-caption strong{font-size:clamp(26px,2.7vw,48px);line-height:.95;color:#fff}.cards-mockup-caption span{font-size:12px;letter-spacing:.08em;color:#f1f5fa}
.cards-mockup-titlebar{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;padding:14px 18px;border:1px solid #1f6e9e;border-top:0;border-bottom:0;background:linear-gradient(180deg,#071a2b,#05111b)}.cards-mockup-titlebar h2{margin:0;font-size:28px;letter-spacing:.04em}.cards-mockup-titlebar p{margin:3px 0 0;color:#c0d0dc}.cards-title-side{display:flex;gap:16px;align-items:center;justify-content:flex-end;text-align:right;color:#d8e7f1;font-size:12px}.cards-pro-pill{display:inline-flex;align-items:center;justify-content:center;padding:8px 16px;border-radius:999px;background:linear-gradient(180deg,#f3d66e,#c69522);color:#0f1420;font-size:18px;font-weight:900}
.cards-mockup-shell{display:grid;grid-template-columns:215px minmax(0,1fr);gap:10px;align-items:start}.cards-command-menu.mockup-nav{border-radius:0 0 8px 8px;position:sticky;top:var(--sticky-panel-top,120px);background:linear-gradient(180deg,#06213a,#04111d)}.cards-mockup-main{display:grid;gap:10px}.cards-stage-grid{display:grid;grid-template-columns:minmax(0,1.75fr) 320px;gap:10px}.forge-stage-panel{display:grid;gap:10px}.cards-showcase-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:10px;border:1px solid #1d6b9a;border-radius:10px;background:linear-gradient(155deg,rgba(6,29,48,.98),rgba(3,13,23,.98));box-shadow:0 12px 28px rgba(0,0,0,.28)}.showcase-card-frame,.showcase-info-frame{display:grid;place-items:center;min-height:352px;border:1px solid #2a7fb5;border-radius:8px;background:#071420;overflow:hidden}.showcase-card-frame .collect-card{width:205px}.showcase-info-frame{padding:8px}
.character-info-sheet{width:100%;height:100%;display:grid;grid-template-rows:auto 1fr auto auto;gap:7px;padding:8px;border-radius:7px;background:linear-gradient(180deg,#f5f7fa,#dde4eb);color:#172738}.info-sheet-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.info-sheet-head strong{font-size:18px;letter-spacing:.04em}.info-sheet-head img{width:56px;height:56px;object-fit:contain}.info-sheet-grid{display:grid;grid-template-columns:1fr 1fr;gap:4px 8px;align-content:start}.info-sheet-grid div{display:flex;justify-content:space-between;gap:8px;padding:6px 7px;border-radius:5px;background:rgba(255,255,255,.64);border:1px solid #bfccd7}.info-sheet-grid span{font-size:10px;font-weight:800;color:#42596d}.info-sheet-grid b{font-size:12px;font-weight:800;text-align:right}.character-info-sheet blockquote{margin:2px 0 0;padding:8px;border-top:1px solid #b8c8d4;color:#32485b;font-style:italic;text-align:center}.info-sheet-foot{display:flex;justify-content:space-between;gap:10px;padding-top:2px;font-size:12px;font-weight:800;color:#243a4d}
.cards-style-gallery{border:1px solid #1d6b9a;border-radius:10px;background:linear-gradient(155deg,rgba(6,29,48,.98),rgba(3,13,23,.98));overflow:hidden}.mockup-style-row{grid-template-columns:repeat(8,minmax(0,1fr));gap:8px;padding:10px}.mockup-style-row .featured-card-tile>div{height:120px}.mockup-style-row .featured-card-tile .collect-card{width:86px;transform:scale(.95)}.mockup-style-row .featured-card-tile strong{font-size:11px}.mockup-style-row .featured-card-tile span{font-size:9px}
.mockup-builder-panel .forge-panel-head{padding:10px 12px}.mockup-builder-body{grid-template-columns:220px 1fr;gap:12px;padding:12px}.builder-preview-stack{display:grid;gap:10px}.builder-preview-stack .compact-card-preview{min-height:260px;border:1px solid #215f89;border-radius:8px;background:#06131f}.builder-preview-stack .collect-card{width:176px}.card-back-preview .card-back{width:176px}.mockup-card-controls{grid-template-columns:1fr 1fr;gap:8px}.mockup-card-controls label{font-size:10px}.mockup-card-controls input,.mockup-card-controls select,.mockup-card-controls textarea{padding:8px 10px;font-size:11px}.mockup-card-controls label:nth-child(1),.mockup-card-controls label:nth-child(5){grid-column:1/-1}.mockup-card-controls .builder-actions{grid-column:1/-1;grid-template-columns:1fr 1.3fr 1fr;gap:8px}.mockup-card-controls .builder-actions button{font-size:11px;padding:10px 8px}
.cards-merch-panel{padding-bottom:12px}.mockup-merch-layout{display:grid;gap:12px;padding:12px}.mockup-merch-layout .merch-preview{min-height:430px}.merch-bullets{display:grid;gap:6px;margin:0;padding:0 0 0 18px;color:#e2edf5}.merch-bullets li{font-size:14px}.merch-cta{width:100%;padding:12px 14px}
.cards-utility-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.utility-panel{padding:14px 16px;border:1px solid #1d6b9a;border-radius:10px;background:linear-gradient(155deg,rgba(6,29,48,.98),rgba(3,13,23,.98));box-shadow:0 10px 24px rgba(0,0,0,.24)}.utility-panel h4{margin:0 0 8px;font-size:16px;letter-spacing:.03em;color:#eef8ff}.utility-panel ul{margin:0;padding-left:20px;color:#c7d6e2;line-height:1.6}
@media(max-width:1280px){.dashboard-intro-dock{grid-template-columns:1fr}.cards-stage-grid{grid-template-columns:1fr}.cards-utility-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.mockup-style-row{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:980px){.dashboard-cinematic-banner{grid-template-columns:1fr}.cinematic-half.science,.cinematic-half.astral{clip-path:none}.dashboard-intro-dock{padding:14px}.front-realm-ribbon,.realm-ribbon{display:flex!important;overflow-x:auto}.front-realm-ribbon button,.realm-ribbon button{flex:0 0 98px}.cards-mockup-hero{grid-template-columns:1fr}.cards-mockup-half.left,.cards-mockup-half.right{clip-path:none;min-height:220px}.cards-mockup-shell{grid-template-columns:1fr}.cards-showcase-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cards-utility-grid{grid-template-columns:1fr 1fr}.cards-command-menu.mockup-nav{position:static;border-radius:8px}.cards-title-side{flex-direction:column;align-items:flex-end}}
@media(max-width:680px){.cinematic-emblem{width:88px;height:88px}.cinematic-copy strong{font-size:34px}.dashboard-intro-copy h1{font-size:34px}.hero-stats-home{grid-template-columns:1fr 1fr}.cards-showcase-grid{grid-template-columns:1fr}.mockup-style-row{grid-template-columns:repeat(2,minmax(0,1fr))}.mockup-builder-body{grid-template-columns:1fr}.mockup-card-controls{grid-template-columns:1fr}.mockup-card-controls label{grid-column:1!important}.cards-utility-grid{grid-template-columns:1fr}.cards-mockup-titlebar{flex-direction:column}.cards-title-side{align-items:flex-start;text-align:left}}


/* ===== UX23 visual correction pass ===== */
.dashboard-intro-dock{grid-template-columns:1fr!important}
.dashboard-intro-actions{display:flex!important;align-items:center!important}
.hero-actions-inline{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.compact-inline-stats{display:grid;grid-template-columns:repeat(4,minmax(74px,1fr));gap:6px;max-width:360px;margin-left:6px}
.compact-inline-stats .stat{min-height:0;padding:7px 6px 6px;border-radius:8px;background:#081725;border:1px solid #1b5378}
.compact-inline-stats .stat strong{font-size:21px;line-height:1}.compact-inline-stats .stat span{font-size:9px;text-transform:uppercase;letter-spacing:.06em}
#view-create .workspace-theme-copy{max-width:540px!important;padding:12px 14px!important}.workspace-theme-title-row{gap:12px;align-items:center}.workspace-theme-copy strong{font-size:clamp(34px,4vw,58px)!important;line-height:.94!important}.workspace-realm-logo{width:74px!important;height:74px!important;object-fit:contain!important}.workspace-theme-logo{width:72px!important;height:72px!important}
.cards-showcase-grid.revamped-showcase-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.approved-card-shot{background:linear-gradient(180deg,#06131f,#081d2f);padding:10px}.approved-card-shot img{width:100%;max-width:220px;display:block;filter:drop-shadow(0 10px 18px rgba(0,0,0,.38))}
.showcase-card-frame .collect-card{width:220px}
.mockup-style-row{grid-template-columns:repeat(4,minmax(0,1fr))!important}.card-style-choice{padding:8px;border:1px solid #21516d;border-radius:10px;background:linear-gradient(180deg,#081d2d,#05111b);display:grid;gap:8px;color:#edf7ff;text-align:left}.card-style-choice.active,.card-style-choice:hover{border-color:#5bc6ff;box-shadow:0 0 0 1px rgba(91,198,255,.22) inset}.style-card-preview{height:158px;display:grid;place-items:center;border:1px solid #164866;border-radius:8px;background:#091523;overflow:hidden}.style-card-preview .collect-card{width:100px;transform:scale(.92)}.card-style-choice strong{font-size:12px}.card-style-choice small{font-size:10px;color:#b8c8d6;line-height:1.35}
.collect-card{position:relative;width:230px;aspect-ratio:3/4;border-radius:20px;overflow:hidden;padding:14px 14px 12px;background:radial-gradient(circle at 50% 15%,rgba(63,150,255,.25),transparent 40%),linear-gradient(180deg,#143050 0%,#081623 100%);border:3px solid #b68b2a;box-shadow:0 16px 28px rgba(0,0,0,.34),inset 0 0 0 2px #223f5f;color:#fff}
.collect-card.style-prime{background:radial-gradient(circle at 50% 18%,rgba(88,178,255,.24),transparent 40%),linear-gradient(180deg,#15365a 0%,#07141f 100%)}
.collect-card.style-chrome{background:radial-gradient(circle at 50% 12%,rgba(255,198,78,.34),transparent 42%),linear-gradient(180deg,#233d62 0%,#07141f 100%)}
.collect-card.style-archive{background:radial-gradient(circle at 50% 12%,rgba(126,245,255,.25),transparent 42%),linear-gradient(180deg,#1f3b48 0%,#08131b 100%)}
.collect-card.style-legacy{background:radial-gradient(circle at 50% 12%,rgba(255,227,127,.36),transparent 42%),linear-gradient(180deg,#31233a 0%,#0b1320 100%)}
.collect-card.style-battle{background:radial-gradient(circle at 50% 18%,rgba(255,126,78,.34),transparent 42%),linear-gradient(180deg,#3b2330 0%,#0a141d 100%)}
.collect-card.style-cosmic{background:radial-gradient(circle at 50% 18%,rgba(201,102,255,.34),transparent 42%),linear-gradient(180deg,#2a2147 0%,#09121c 100%)}
.collect-card.style-tactical{background:radial-gradient(circle at 50% 18%,rgba(87,229,189,.24),transparent 42%),linear-gradient(180deg,#21384b 0%,#091521 100%)}
.collect-card.style-noir{background:radial-gradient(circle at 50% 18%,rgba(151,167,189,.24),transparent 42%),linear-gradient(180deg,#1d2431 0%,#090d14 100%)}
.card-corner{position:absolute;width:18px;height:18px;border:2px solid #df6d46;background:#163250;z-index:4}.card-corner.tl{left:7px;top:7px;border-radius:4px 0 0 0}.card-corner.tr{right:7px;top:7px;border-radius:0 4px 0 0}.card-corner.bl{left:7px;bottom:7px;border-radius:0 0 0 4px}.card-corner.br{right:7px;bottom:7px;border-radius:0 0 4px 0}
.card-header-plaque{position:relative;z-index:4;display:flex;align-items:center;justify-content:center;min-height:42px;margin:0 18px 10px;padding:0 14px;border-radius:12px;background:linear-gradient(180deg,#667b96,#30465f 66%,#233244 100%);border:2px solid #d8d7d0;box-shadow:inset 0 1px 0 rgba(255,255,255,.28)}.card-header-plaque strong{font-size:13px;line-height:1.05;letter-spacing:.04em;text-align:center;color:#f1d98d;text-shadow:0 1px 0 rgba(0,0,0,.4)}
.card-arch-frame{position:relative;z-index:2;padding:10px 10px 0;border:3px solid #b86740;border-bottom:0;border-radius:132px 132px 18px 18px;background:linear-gradient(180deg,#122743,#0b1622);box-shadow:inset 0 0 0 2px #c79c4d}.card-image-stage{position:relative;height:206px;border-radius:110px 110px 12px 12px  ;overflow:hidden;background:linear-gradient(180deg,#d8edf7,#95b6d0)}.card-image-stage img{width:100%;height:100%;object-fit:cover;object-position:center center;display:block}.card-image-placeholder{display:grid;place-items:center;width:100%;height:100%;font-size:56px;font-weight:900;color:#0f3553;background:radial-gradient(circle at 50% 35%,#f2f7fb,#9ab7d1)}
.card-lower-band{position:relative;z-index:3;display:grid;grid-template-columns:56px 1fr 56px;align-items:center;gap:6px;margin-top:-2px}.card-bottom-badge,.card-realm-badge{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(180deg,#0e2235,#09111b);border:3px solid #bf9441;box-shadow:0 3px 10px rgba(0,0,0,.35)}.card-bottom-badge img{width:46px;height:46px;object-fit:contain}.card-realm-badge img{width:42px;height:42px;object-fit:contain}.card-team-bar{min-height:30px;display:grid;place-items:center;padding:0 10px;border-radius:10px;background:linear-gradient(180deg,#23364f,#0f1c2b);border:2px solid #bb9141;color:#f3d996;font-size:11px;font-weight:800;text-align:center;line-height:1.05}
.card-stat-strip{display:grid;grid-template-columns:repeat(6,1fr);gap:4px;margin-top:8px}.card-stat-strip span{display:grid;justify-items:center;align-items:center;min-height:45px;border-radius:8px;background:rgba(2,10,16,.45);border:1px solid rgba(201,216,230,.18)}.card-stat-strip b{font-size:15px;color:#f5f9fd}.card-stat-strip small{font-size:9px;color:#abd0ea;letter-spacing:.08em}
.collect-card blockquote{margin:8px 0 6px;min-height:38px;font-size:11px;line-height:1.28;font-style:italic;color:#d6e4f1;text-align:center}.card-meta-line{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:auto;padding:0 4px;font-size:10px;font-weight:800;letter-spacing:.05em;color:#f1d487}.card-meta-line b{color:#fff}
.card-back{display:grid;place-items:center}.card-back-core{display:grid;justify-items:center;gap:8px;text-align:center;padding:20px;border-radius:18px;border:2px solid rgba(230,236,241,.2);background:radial-gradient(circle at 50% 20%,rgba(96,173,255,.18),transparent 42%),linear-gradient(180deg,#10253f,#07121c)}.card-back-logo{width:120px;height:120px;object-fit:contain}.card-back strong{font-size:20px;letter-spacing:.06em;color:#f0d57a}.card-back span{font-size:13px;color:#d9eaf7}.card-back small{font-size:11px;color:#9dc2db}
@media(max-width:980px){.compact-inline-stats{margin-left:0}.hero-actions-inline{flex-direction:column;align-items:flex-start}.compact-inline-stats{max-width:none;width:100%}.mockup-style-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}}


/* ===== UX24 card-style expansion ===== */
.mockup-style-row{grid-template-columns:repeat(5,minmax(0,1fr))!important;align-items:start}
.card-style-choice{position:relative;overflow:hidden;gap:6px;min-height:268px}
.card-style-choice:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at top right,rgba(126,197,255,.10),transparent 36%);pointer-events:none}
.style-choice-kicker{font-size:9px;letter-spacing:.12em;text-transform:uppercase;color:#7ecbff}
.style-card-preview{height:176px;padding:6px}
.style-card-preview .collect-card{width:108px;transform:scale(.94)}
.card-style-choice strong{font-size:13px;line-height:1.1}.card-style-choice small{font-size:10px;line-height:1.35}
.collect-card{background-image:linear-gradient(180deg,rgba(255,255,255,.08),transparent 18%),radial-gradient(circle at 50% 15%,rgba(63,150,255,.25),transparent 40%),linear-gradient(180deg,#143050 0%,#081623 100%)}
.collect-card:before{content:"";position:absolute;inset:0;pointer-events:none;mix-blend-mode:screen;opacity:.16;background:linear-gradient(130deg,transparent 10%,rgba(255,255,255,.55) 28%,transparent 42%,transparent 58%,rgba(255,255,255,.25) 72%,transparent 84%)}
.collect-card.style-prime{background-image:linear-gradient(180deg,rgba(255,255,255,.10),transparent 18%),radial-gradient(circle at 50% 18%,rgba(88,178,255,.24),transparent 40%),linear-gradient(180deg,#15365a 0%,#07141f 100%)}
.collect-card.style-prestige{background-image:linear-gradient(180deg,rgba(255,248,196,.16),transparent 24%),radial-gradient(circle at 50% 12%,rgba(255,205,96,.28),transparent 42%),linear-gradient(180deg,#4a2f12 0%,#24170d 34%,#08111a 100%);border-color:#e1bb52;box-shadow:0 16px 30px rgba(0,0,0,.38),0 0 24px rgba(226,188,82,.12),inset 0 0 0 2px #5a4315}
.collect-card.style-prestige .card-header-plaque,.collect-card.style-dynasty .card-header-plaque{background:linear-gradient(180deg,#8e7346,#4d3413 70%,#36240e 100%);border-color:#f0e3b8}
.collect-card.style-holo{background-image:linear-gradient(180deg,rgba(255,255,255,.12),transparent 18%),radial-gradient(circle at 50% 10%,rgba(251,124,255,.28),transparent 42%),linear-gradient(180deg,#242c59 0%,#0a1220 100%)}
.collect-card.style-holo:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(115deg,transparent 16%,rgba(255,255,255,.24) 27%,rgba(94,255,244,.18) 34%,transparent 42%,rgba(255,129,246,.18) 56%,transparent 64%,rgba(255,238,129,.18) 76%,transparent 84%);mix-blend-mode:screen;opacity:.72}
.collect-card.style-archive{background-image:linear-gradient(180deg,rgba(227,255,255,.10),transparent 18%),radial-gradient(circle at 50% 12%,rgba(126,245,255,.25),transparent 42%),linear-gradient(180deg,#1f3b48 0%,#08131b 100%)}
.collect-card.style-archive .card-arch-frame{border-color:#4db0b8;box-shadow:inset 0 0 0 2px #b0e2e4}.collect-card.style-archive .card-team-bar{border-color:#5ab6bd;color:#d3fbff}.collect-card.style-archive .card-corner{background:#1d4451;border-color:#89e0ea}
.collect-card.style-battle{background-image:linear-gradient(180deg,rgba(255,255,255,.06),transparent 18%),radial-gradient(circle at 50% 18%,rgba(255,126,78,.34),transparent 42%),linear-gradient(180deg,#4d1d1a 0%,#1c0e12 48%,#0a141d 100%)}
.collect-card.style-battle .card-image-stage{box-shadow:0 0 0 2px rgba(255,124,76,.35) inset;filter:saturate(1.08)}
.collect-card.style-cosmic{background-image:linear-gradient(180deg,rgba(255,255,255,.10),transparent 18%),radial-gradient(circle at 50% 18%,rgba(201,102,255,.34),transparent 42%),linear-gradient(180deg,#2a2147 0%,#09121c 100%)}
.collect-card.style-cosmic .card-realm-badge,.collect-card.style-cosmic .card-bottom-badge{box-shadow:0 3px 12px rgba(166,98,255,.32)}
.collect-card.style-tactical{background-image:linear-gradient(180deg,rgba(255,255,255,.08),transparent 18%),radial-gradient(circle at 50% 18%,rgba(87,229,189,.24),transparent 42%),linear-gradient(180deg,#21384b 0%,#091521 100%)}
.collect-card.style-tactical .card-stat-strip span{background:rgba(5,20,28,.75);border-color:#3f8f92}.collect-card.style-tactical .card-team-bar{border-color:#62d4c4;color:#d4fff9}.collect-card.style-tactical .card-arch-frame{border-color:#3c9aa0;box-shadow:inset 0 0 0 2px #66d7ca}
.collect-card.style-teamup{background-image:linear-gradient(180deg,rgba(255,255,255,.10),transparent 18%),radial-gradient(circle at 50% 18%,rgba(251,207,94,.24),transparent 42%),linear-gradient(180deg,#213654 0%,#0a1420 100%)}
.collect-card.style-teamup .card-lower-band{grid-template-columns:62px 1fr 62px}.collect-card.style-teamup .card-team-bar{background:linear-gradient(180deg,#394e73,#11223a);border-color:#f0c86d;color:#fff0c4;font-size:10px;letter-spacing:.08em;text-transform:uppercase}.collect-card.style-teamup .card-header-plaque{clip-path:polygon(5% 0,95% 0,100% 50%,95% 100%,5% 100%,0 50%)}
.collect-card.style-noir{background-image:linear-gradient(180deg,rgba(255,255,255,.07),transparent 18%),radial-gradient(circle at 50% 18%,rgba(151,167,189,.24),transparent 42%),linear-gradient(180deg,#1d2431 0%,#090d14 100%)}
.collect-card.style-noir .card-image-stage img{filter:grayscale(.96) contrast(1.08) brightness(.94)}.collect-card.style-noir .card-header-plaque{background:linear-gradient(180deg,#5d6775,#2c3138)}.collect-card.style-noir .card-team-bar{border-color:#8c97a7;color:#dce0e9}
.collect-card.style-dynasty{background-image:linear-gradient(180deg,rgba(255,255,255,.12),transparent 18%),radial-gradient(circle at 50% 18%,rgba(154,210,115,.20),transparent 44%),linear-gradient(180deg,#3a2b16 0%,#16110d 46%,#08111a 100%);border-color:#d8c36b}.collect-card.style-dynasty .card-corner{background:#33411c;border-color:#d5d59e}.collect-card.style-dynasty .card-team-bar{border-color:#d5c176;color:#ffefbb}.collect-card.style-dynasty .card-realm-badge,.collect-card.style-dynasty .card-bottom-badge{border-color:#d7c369}
@media(max-width:1180px){.mockup-style-row{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:980px){.mockup-style-row{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:640px){.mockup-style-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}.card-style-choice{min-height:244px}.style-card-preview{height:156px}}


/* ===== UX25: fix dashboard double-image hero ===== */
.dashboard-master-hero{position:relative;min-height:292px;background:#07111a url('assets/theme-banners/uhu-master.webp') center center/cover no-repeat;border-bottom:1px solid #123d58;overflow:hidden}
.dashboard-master-hero::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(3,10,16,.76) 0%,rgba(3,10,16,.44) 18%,rgba(3,10,16,.10) 42%,rgba(3,10,16,.16) 68%,rgba(3,10,16,.58) 100%)}
.dashboard-master-shade{position:absolute;inset:0;background:linear-gradient(to top,rgba(4,9,15,.34),transparent 48%)}
.dashboard-master-copy{position:absolute;left:24px;bottom:22px;z-index:2;display:grid;gap:5px;max-width:520px;text-shadow:0 3px 10px rgba(0,0,0,.68)}
.dashboard-master-copy h2{margin:0;font-size:clamp(38px,4vw,60px);line-height:.95;color:#fff}
.dashboard-master-copy p:not(.eyebrow){margin:0;font-size:14px;letter-spacing:.12em;text-transform:uppercase;color:#e4edf7}
@media(max-width:980px){.dashboard-master-hero{min-height:248px;background-position:center center}.dashboard-master-copy{left:18px;right:18px;bottom:18px;max-width:420px}.dashboard-master-copy h2{font-size:40px}}
@media(max-width:640px){.dashboard-master-hero{min-height:214px}.dashboard-master-copy h2{font-size:34px}.dashboard-master-copy p:not(.eyebrow){font-size:12px;letter-spacing:.08em}}


/* UX29 targeted polish */
.workspace-theme-actions,.workspace-theme-pill,.workspace-theme-view-btn{display:none!important}
#workspaceThemeBanner .workspace-theme-copy{max-width:760px}
body[data-theme-key]:not([data-theme-key^='uhu']) #workspaceRealmRibbon{display:none!important}
.editor-panel .panel-shell,.editor-panel .module-section,.editor-panel .field-card,.editor-panel .timeline-item,.editor-panel .variant-card,.editor-panel .relationship-card,.editor-panel .inspiration-card,.editor-panel .creator-tools-panel,.editor-panel .model-guide-card,.editor-panel .production-box{background:#f6f8fb!important;border-color:#d8e0ea!important;color:#122033!important;box-shadow:none!important}
.editor-panel .field label span,.editor-panel .module-section h3,.editor-panel .module-section h4,.editor-panel .module-section strong,.editor-panel .module-heading p,.editor-panel .module-heading h3,.editor-panel .status-chip,.editor-panel .help,.editor-panel .muted,.editor-panel p,.editor-panel li,.editor-panel .card-kicker,.editor-panel .tag,.editor-panel .tag-row .tag,.editor-panel .visual-look-callout span,.editor-panel .stats-explainer span{color:#30465f!important}
.editor-panel input,.editor-panel select,.editor-panel textarea{background:#ffffff!important;border:1px solid #bfd0e0!important;color:#102030!important}
.editor-panel input::placeholder,.editor-panel textarea::placeholder{color:#6f8195!important}
.editor-panel .secondary-btn,.editor-panel .ghost-btn{border-color:#b5c7d8;background:#fff;color:#17324d}
.editor-panel .gallery-cover-panel,.editor-panel .media-help-card,.editor-panel .media-card,.editor-panel .media-storage-note,.editor-panel .visual-look-callout{background:#f7f9fc!important;border-color:#d5dfeb!important;color:#203449!important}
.editor-panel .gallery-cover-placeholder,.editor-panel .media-card-empty,.editor-panel .media-card-body p,.editor-panel .media-file-name,.editor-panel .media-storage-note,.editor-panel .cover-control label{color:#4d657e!important}
.editor-panel .media-card-preview{background:#e9eff6!important}
.editor-panel .media-card-preview img{background:#f9fbfd!important}
.editor-panel .gallery-cover-preview{background:linear-gradient(180deg,#e8eef6,#dce6f1)!important}
.merch-preview{background:radial-gradient(circle at 50% 32%,#325c86,#07131f 76%)!important}
.merch-mockup{height:320px}
.merch-shirt .merch-product-shape,.merch-sticker .merch-product-shape,.merch-mug .merch-product-shape,.merch-poster .merch-product-shape,.merch-phone .merch-product-shape{background:#f4f7fa;border:1px solid rgba(18,32,51,.12);box-shadow:0 18px 28px rgba(0,0,0,.26), inset 0 0 0 1px rgba(255,255,255,.6)}
.merch-art{width:200px;height:220px;gap:10px}
.merch-art img{max-height:175px;filter:drop-shadow(0 8px 10px rgba(0,0,0,.18))}
.merch-art strong{font-size:20px;color:#0e2237;letter-spacing:.02em}
.merch-caption{margin-top:8px}

/* ===== UX31 comprehensive fix pass ===== */
/* Branding */
.brand-svg{width:34px!important;height:34px!important;filter:drop-shadow(0 0 10px rgba(77,190,255,.18))}
.onboarding-brand img,.empty-state img{filter:drop-shadow(0 0 12px rgba(77,190,255,.16))}

/* Banner system: source assets are 2400x600. No stretching, no letterboxing. */
.workspace-theme-banner{height:clamp(230px,16vw,300px)!important;aspect-ratio:auto!important;background:#07111c!important;overflow:hidden!important}
.workspace-theme-banner:after{background-size:cover!important;background-position:center center!important;transform:none!important;filter:none!important}
body[data-theme-key="fantasy"] .workspace-theme-banner:after{transform:none!important}
.workspace-theme-actions,.workspace-theme-pill,.workspace-theme-view-btn{display:none!important}

/* Non-UHU templates do not show UHU realm navigation or realm emblems. */
body:not([data-theme-key^="uhu-"]) #workspaceRealmRibbon{display:none!important}
body:not([data-theme-key^="uhu-"]) #workspaceRealmLogo{display:none!important}

/* Character workspace: subdued slate forms instead of bright white sheets. */
.editor-panel{background:#0f1721!important;color:#e8eef5!important}
.editor-panel .module-section,.editor-panel .panel-shell,.editor-panel .field-card,.editor-panel .timeline-item,.editor-panel .variant-card,.editor-panel .relationship-card,.editor-panel .inspiration-card,.editor-panel .creator-tools-panel,.editor-panel .model-guide-card,.editor-panel .production-box,.editor-panel .rpg-start-block,.editor-panel .rpg-derived-panel,.editor-panel .rpg-stat-card,.editor-panel .converter-core-card,.editor-panel .master-sheet-card{background:#16212d!important;border-color:#32465a!important;color:#e8eef5!important;box-shadow:0 8px 18px rgba(0,0,0,.14)!important}
.editor-panel .module-heading{background:linear-gradient(180deg,#193047,#142638)!important;border-color:#35526c!important}
.editor-panel .module-heading h3,.editor-panel .module-heading h4,.editor-panel .module-section h3,.editor-panel .module-section h4,.editor-panel .field label,.editor-panel strong{color:#edf4fb!important}
.editor-panel .module-heading p,.editor-panel .help,.editor-panel .muted,.editor-panel p,.editor-panel li,.editor-panel small,.editor-panel .field-help{color:#9fb0c2!important}
.editor-panel input,.editor-panel select,.editor-panel textarea,.editor-panel .search-input{background:#253240!important;border:1px solid #40566d!important;color:#eef4f9!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important}
.editor-panel input:focus,.editor-panel select:focus,.editor-panel textarea:focus{background:#2a3948!important;border-color:#57b8ff!important;box-shadow:0 0 0 2px rgba(87,184,255,.13)!important;outline:none!important}
.editor-panel input::placeholder,.editor-panel textarea::placeholder{color:#75879a!important}
.editor-panel select option{background:#253240!important;color:#eef4f9!important}
.editor-panel .na-btn,.editor-panel .info-dot{background:#24394b!important;color:#b9d9f4!important;border-color:#45627b!important}
.editor-panel .secondary-btn,.editor-panel .ghost-btn{background:#1d2b38!important;color:#e5edf5!important;border-color:#40576d!important}
.editor-panel .secondary-btn:hover,.editor-panel .ghost-btn:hover{background:#263848!important;border-color:#5e82a1!important}
.editor-panel .tag,.editor-panel .status-chip{background:#223341!important;color:#cfe0ef!important;border-color:#3c566b!important}

/* Images & References must remain readable in the dark workspace. */
.media-module .media-storage-note,.media-module .gallery-cover-panel,.media-module .media-help-card,.media-module .media-card,.media-module .media-card-body,.media-module .gallery-cover-placeholder,.media-module .visual-look-callout{background:#182430!important;border-color:#354b5f!important;color:#e7eef5!important}
.media-module .media-card-preview,.media-module .gallery-cover-preview{background:#22313f!important;border-color:#3b5368!important}
.media-module .media-card-empty,.media-module .media-file-name,.media-module .media-card-body p,.media-module .cover-control label,.media-module .media-storage-note span,.media-module .media-storage-note{color:#acbccb!important}
.media-module .media-help-card strong,.media-module .gallery-cover-panel strong,.media-module .media-card strong{color:#f1f6fb!important}

/* Multi-system master sheet: visual system tiles instead of native checkbox/checkmark clutter. */
.master-system-grid-polished{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important}
.master-system-option-polished{position:relative;display:grid!important;grid-template-columns:46px 1fr!important;gap:10px!important;align-items:center!important;min-height:76px;padding:10px!important;background:linear-gradient(145deg,#172534,#111b26)!important;border:1px solid #365069!important;border-radius:12px!important;overflow:hidden}
.master-system-option-polished input{position:absolute!important;opacity:0!important;pointer-events:none!important}
.master-system-option-polished:has(input:checked){border-color:#69bfff!important;background:linear-gradient(145deg,#1b3247,#142536)!important;box-shadow:0 0 0 1px rgba(105,191,255,.18),0 10px 22px rgba(0,0,0,.18)!important}
.master-system-mark{width:42px;height:42px;border-radius:11px;display:grid;place-items:center;background:linear-gradient(145deg,#2c4c69,#15283a);border:1px solid #54738e;color:#f3cf73;font-size:13px;font-weight:900;letter-spacing:.04em}
.master-system-option-polished:has(input:checked) .master-system-mark{background:linear-gradient(145deg,#2474a8,#15364f);border-color:#72caff;color:#fff}
.master-system-copy{display:grid;gap:3px}.master-system-copy strong{font-size:12px!important;color:#eef5fb!important}.master-system-copy small{font-size:9px!important;line-height:1.25;color:#91a7ba!important}
.master-sheet-columns{gap:12px!important}.master-system-sheet{background:linear-gradient(180deg,#152230,#101923)!important;border-color:#344c61!important;box-shadow:0 10px 20px rgba(0,0,0,.16)!important}.master-system-sheet h4{display:flex;align-items:center;min-height:34px;color:#f1cf78!important;border-bottom:1px solid #2a4155;padding-bottom:8px!important}.master-stat-list div{border-bottom-color:#263b4d!important}.master-stat-list span{color:#9fb0c0!important}.master-stat-list strong{color:#eef5fb!important}

/* Cards & Merch: rebuilt presentation. */
.cards-forge-hero-clean{position:relative;min-height:310px;overflow:hidden;border:1px solid #2b7cad;border-radius:12px 12px 0 0;background:radial-gradient(circle at 50% 30%,#173b59 0,#0a1b2b 42%,#050c13 100%);box-shadow:0 20px 40px rgba(0,0,0,.28)}
.cards-forge-gridline{position:absolute;inset:0;background-image:linear-gradient(rgba(77,154,207,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(77,154,207,.07) 1px,transparent 1px);background-size:34px 34px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.8),transparent 95%)}
.cards-forge-hero-copy{position:absolute;z-index:5;left:50%;top:50%;transform:translate(-50%,-50%);width:min(52%,700px);text-align:center;text-shadow:0 4px 14px rgba(0,0,0,.7)}
.cards-forge-hero-copy>span{font-size:11px;letter-spacing:.18em;color:#72cfff;font-weight:900}.cards-forge-hero-copy h2{margin:8px 0 5px;font-size:clamp(36px,4.3vw,62px);line-height:.93;color:#fff}.cards-forge-hero-copy p{margin:0 auto 13px;max-width:620px;color:#c5d5e3;line-height:1.4}.cards-forge-badges{display:flex;justify-content:center;gap:7px;flex-wrap:wrap}.cards-forge-badges b{padding:5px 8px;border:1px solid #37647f;border-radius:999px;background:rgba(5,18,29,.72);font-size:9px;color:#cfeeff;letter-spacing:.06em}
.cards-forge-hero-character{position:absolute;z-index:3;bottom:-4%;height:105%;object-fit:contain;filter:drop-shadow(0 18px 28px rgba(0,0,0,.5))}.cards-forge-hero-character.invincer{left:-1%;max-width:37%;object-position:left bottom}.cards-forge-hero-character.sunburn{right:0;max-width:31%;object-position:right bottom}.cards-forge-science-mark{position:absolute;z-index:4;top:18px;width:78px;height:78px;object-fit:contain;filter:drop-shadow(0 8px 15px rgba(0,0,0,.45))}.cards-forge-science-mark.left{left:18px}.cards-forge-science-mark.right{right:18px}
.cards-rebuilt-shell{margin-top:10px}.cards-reference-panel,.cards-style-gallery{border:1px solid #245f86;border-radius:10px;background:linear-gradient(155deg,#082033,#06131f);overflow:hidden}.approved-card-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding:15px}.approved-card-gallery figure{margin:0;padding:10px;border-radius:10px;background:#07131f;border:1px solid #244c68;box-shadow:0 10px 22px rgba(0,0,0,.22)}.approved-card-gallery img{width:100%;max-height:390px;object-fit:contain;display:block;border-radius:6px}.approved-card-gallery figcaption{padding-top:8px;text-align:center;font-size:10px;color:#acc4d6}
.premium-style-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:14px}.premium-style-choice{display:grid!important;gap:6px!important;padding:10px!important;text-align:left!important;border:1px solid #2a526e!important;border-radius:11px!important;background:linear-gradient(180deg,#0c2030,#07131d)!important;color:#e9f3fb!important}.premium-style-choice:hover,.premium-style-choice.active{border-color:#66c5ff!important;background:linear-gradient(180deg,#12314a,#0a1c2c)!important;box-shadow:0 0 0 1px rgba(102,197,255,.14),0 12px 26px rgba(0,0,0,.23)!important}.style-reference-card{position:relative;height:190px;display:grid;place-items:center;overflow:hidden;border-radius:8px;background:#050b10}.style-reference-card img{height:100%;width:100%;object-fit:contain;transition:.18s ease}.style-reference-card.style-prestige{border:2px solid #d2ad4f;box-shadow:inset 0 0 22px rgba(220,179,74,.2)}.style-reference-card.style-holo:after{content:"";position:absolute;inset:0;background:linear-gradient(120deg,transparent 12%,rgba(74,231,255,.26) 28%,rgba(255,104,237,.23) 43%,transparent 57%,rgba(255,227,109,.20) 73%,transparent 88%);mix-blend-mode:screen}.style-reference-card.style-archive{border:2px solid #57c5d4}.style-reference-card.style-battle img{transform:scale(1.05);filter:saturate(1.18) contrast(1.06)}.style-reference-card.style-cosmic{border:2px solid #9b72ff;box-shadow:inset 0 0 24px rgba(151,104,255,.25)}.style-reference-card.style-noir img{filter:grayscale(.92) contrast(1.12) brightness(.8)}.style-reference-card.style-dynasty{border:2px solid #d4c474;background:radial-gradient(circle,#223044,#070d13)}
.rebuilt-stage-grid{grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr)!important}.rebuilt-builder{grid-template-columns:270px 1fr!important}.rebuilt-builder .builder-preview-stack{align-content:start}.rebuilt-builder .compact-card-preview{min-height:355px!important}.rebuilt-builder .collect-card{width:220px!important}.rebuilt-builder .card-back{width:220px!important}
.premium-shirt-stage{min-height:430px;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at 50% 30%,#1a3147,#08121d 70%)}.premium-shirt{position:relative;width:300px;height:335px;background:linear-gradient(165deg,#12161b,#050607 78%);clip-path:polygon(20% 10%,35% 0,65% 0,80% 10%,100% 19%,89% 39%,78% 34%,78% 100%,22% 100%,22% 34%,11% 39%,0 19%);filter:drop-shadow(0 18px 20px rgba(0,0,0,.48))}.shirt-neck{position:absolute;left:50%;top:-2px;transform:translateX(-50%);width:72px;height:34px;border-radius:0 0 50px 50px;background:#050607;box-shadow:inset 0 -4px 0 #1b2026}.shirt-print{position:absolute;left:50%;top:55px;transform:translateX(-50%);width:170px;height:225px;display:grid;grid-template-rows:1fr auto auto;place-items:center;text-align:center}.shirt-print img{max-width:155px;max-height:175px;object-fit:contain;filter:drop-shadow(0 6px 6px rgba(0,0,0,.45))}.shirt-print strong{font-size:20px;color:#f4d07a;letter-spacing:.06em}.shirt-print span{font-size:8px;color:#d6e1eb;letter-spacing:.1em;text-transform:uppercase}

@media(max-width:1100px){.master-system-grid-polished{grid-template-columns:repeat(3,minmax(0,1fr))!important}.approved-card-gallery,.premium-style-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cards-forge-hero-copy{width:58%}.cards-forge-hero-character.invincer{max-width:42%}.cards-forge-hero-character.sunburn{max-width:36%}}
@media(max-width:760px){.master-system-grid-polished{grid-template-columns:repeat(2,minmax(0,1fr))!important}.cards-forge-hero-clean{min-height:270px}.cards-forge-hero-copy{width:68%}.cards-forge-hero-copy p{display:none}.cards-forge-science-mark{width:58px;height:58px}.rebuilt-stage-grid,.rebuilt-builder{grid-template-columns:1fr!important}}
.master-system-mark-mini{width:30px!important;height:30px!important;border-radius:8px!important;font-size:10px!important;margin-right:8px!important;flex:0 0 auto}
.master-system-sheet h4 span:last-child{color:#f2d27d!important}


/* ===== UX32 accessibility + presentation correction pass ===== */
.dashboard-realm-heading{display:flex;align-items:baseline;gap:12px;padding:10px 14px 8px;background:linear-gradient(180deg,#071827,#05111c);border-top:1px solid #174968;border-left:1px solid #174968;border-right:1px solid #174968}
.dashboard-realm-heading h3{margin:0;font-size:18px;color:#f3f8fc}.dashboard-realm-heading p{margin:0;color:#9eb2c4;font-size:12px}.dashboard-realm-heading .card-kicker{color:#69ccff;font-size:10px;letter-spacing:.11em}

/* Non-UHU pages must not show the UHU realm ribbon, including responsive rules that previously forced display:flex!important. */
body:not([data-theme-key^="uhu-"]) #workspaceRealmRibbon{display:none!important}
body[data-theme-key="archeform"] #workspaceRealmRibbon,body[data-theme-key="dnd"] #workspaceRealmRibbon,body[data-theme-key="dnd2e"] #workspaceRealmRibbon{display:none!important}

/* Form accessibility: explicit high-contrast dark workspace colors. */
.editor-panel{background:#111c27!important;color:#eef4f9!important}
.editor-panel .module-section,.editor-panel .panel-shell,.editor-panel .field-card,.editor-panel .timeline-item,.editor-panel .variant-card,.editor-panel .relationship-card,.editor-panel .inspiration-card,.editor-panel .creator-tools-panel,.editor-panel .model-guide-card,.editor-panel .production-box,.editor-panel .rpg-start-block,.editor-panel .rpg-derived-panel,.editor-panel .rpg-stat-card,.editor-panel .converter-core-card,.editor-panel .master-sheet-card,.editor-panel .rpg-start-method,.editor-panel .guided-note,.editor-panel .inline-note,.editor-panel .stats-explainer,.editor-panel .section-autocomplete{background:#172431!important;border-color:#3d566b!important;color:#eef4f9!important}
.editor-panel .module-heading{background:linear-gradient(180deg,#0b2c46,#081d31)!important;border-color:#3c8fbd!important}
.editor-panel h3,.editor-panel h4,.editor-panel h5,.editor-panel strong,.editor-panel legend,.editor-panel .rpg-start-method strong,.editor-panel .rpg-start-block-title h4,.editor-panel .module-heading h3{color:#f6f9fc!important}
.editor-panel p,.editor-panel span,.editor-panel small,.editor-panel li,.editor-panel .help,.editor-panel .muted,.editor-panel .rpg-start-method span,.editor-panel .rpg-start-method small,.editor-panel .rpg-start-block-title p,.editor-panel .section-autocomplete span{color:#b8c7d5!important}
.editor-panel .eyebrow,.editor-panel .card-kicker{color:#74d2ff!important}
.editor-panel .field label,.editor-panel label,.editor-panel .field>label,.editor-panel .cover-control label{color:#dbe7f1!important;font-size:11px!important;font-weight:800!important;letter-spacing:.035em!important}
.editor-panel input,.editor-panel select,.editor-panel textarea,.editor-panel .structured-row input,.editor-panel .structured-row select,.editor-panel .structured-row textarea,.editor-panel .variant-card input,.editor-panel .variant-card select,.editor-panel .variant-card textarea,.editor-panel .search-input{background:#22313f!important;border:1px solid #58718a!important;color:#f4f8fb!important;font-size:13px!important;line-height:1.35!important}
.editor-panel input::placeholder,.editor-panel textarea::placeholder{color:#93a6b7!important;opacity:1!important}
.editor-panel select option{background:#1b2936!important;color:#f4f8fb!important}
.editor-panel input:focus,.editor-panel select:focus,.editor-panel textarea:focus{border-color:#68caff!important;box-shadow:0 0 0 2px rgba(104,202,255,.24)!important;background:#273a49!important}
.editor-panel .status-chip,.editor-panel .na-btn,.editor-panel .info-dot{background:#243849!important;color:#d9ebf8!important;border-color:#52718a!important}
.media-module,.media-module *{color:#eaf1f7}.media-module .media-storage-note,.media-module .gallery-cover-panel,.media-module .media-help-card,.media-module .media-card,.media-module .media-card-body,.media-module .gallery-cover-placeholder,.media-module .visual-look-callout{background:#172431!important;border-color:#40596e!important;color:#eaf1f7!important}.media-module .media-card-empty,.media-module .media-file-name,.media-module .media-card-body p,.media-module .cover-control label,.media-module .media-storage-note span{color:#b7c6d4!important}

/* Keep text legible. Avoid tiny 8–9px informational copy in primary work areas. */
.editor-panel .help,.editor-panel small,.master-system-copy small,.forge-panel-head p,.premium-style-choice small,.merch-caption span{font-size:11px!important;line-height:1.4!important}.editor-panel p,.editor-panel span{line-height:1.4}.editor-panel .module-heading p{font-size:11px!important}

/* Card Forge hero: move both characters inward from the Science logos and blend Sunburn's former rectangular background away. */
.cards-forge-hero-character.invincer{left:6%!important;max-width:34%!important;height:100%!important}
.cards-forge-hero-character.sunburn{right:6%!important;max-width:29%!important;height:102%!important;-webkit-mask-image:radial-gradient(ellipse 76% 82% at 50% 46%,#000 50%,rgba(0,0,0,.88) 64%,transparent 92%);mask-image:radial-gradient(ellipse 76% 82% at 50% 46%,#000 50%,rgba(0,0,0,.88) 64%,transparent 92%)}
.cards-forge-science-mark.left{left:16px!important}.cards-forge-science-mark.right{right:16px!important}

/* Card styles: actual full-size visual references, not skinny placeholder columns. */
.premium-style-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;padding:16px!important}
.premium-style-choice{grid-template-columns:1fr!important;grid-template-rows:auto auto auto auto!important;align-items:stretch!important;min-height:0!important;padding:12px!important;gap:7px!important}
.premium-style-choice:before{display:none!important}.style-reference-card{height:360px!important;display:grid!important;place-items:center!important;background:radial-gradient(circle at 50% 40%,#17304a,#050b10 72%)!important;padding:12px!important;overflow:hidden!important}.style-reference-card img{width:100%!important;height:100%!important;max-width:260px!important;object-fit:contain!important;display:block!important;margin:auto!important}.premium-style-choice .style-choice-kicker{font-size:10px!important;color:#7bcfff!important}.premium-style-choice strong{font-size:16px!important;line-height:1.15!important;color:#f3f8fc!important}.premium-style-choice small{color:#b8c8d7!important}

/* Card builder: present the approved house card at useful size for the default Invincer example. */
.approved-builder-card{display:grid;place-items:center;width:100%;min-height:430px;padding:10px;background:radial-gradient(circle,#16314b,#07121d 76%);border-radius:10px}.approved-builder-card img{width:min(100%,280px);max-height:410px;object-fit:contain;filter:drop-shadow(0 14px 18px rgba(0,0,0,.42))}.rebuilt-builder{grid-template-columns:minmax(300px,360px) 1fr!important}.rebuilt-builder .compact-card-preview{min-height:445px!important}.rebuilt-builder .collect-card{width:260px!important}.rebuilt-builder .card-back{width:260px!important}

/* Merch preview: larger, cleaner shirt mockup and larger print zone. */
.premium-shirt-stage{min-height:500px!important;padding:24px!important;background:radial-gradient(circle at 50% 28%,#24435f 0,#0b1723 58%,#050a10 100%)!important}.premium-shirt{width:360px!important;height:410px!important;background:linear-gradient(160deg,#1d2228 0,#080a0c 52%,#030405 100%)!important;box-shadow:inset 0 0 55px rgba(255,255,255,.025)}.shirt-neck{width:88px!important;height:40px!important}.shirt-print{top:60px!important;width:220px!important;height:292px!important}.shirt-print img{max-width:205px!important;max-height:230px!important}.shirt-print strong{font-size:24px!important}.shirt-print span{font-size:11px!important;color:#cbd9e5!important}.merch-caption{padding:12px 14px!important;background:#0d1b29!important;border-top:1px solid #244965!important}.merch-caption strong{font-size:14px!important;color:#f0f6fb!important}

/* Multi-system converter: every tile gets system artwork instead of a plain initials block. */
.master-system-mark.master-system-art{width:64px!important;height:64px!important;border-radius:10px!important;background-size:cover!important;background-position:center!important;position:relative!important;overflow:hidden!important;border:1px solid #5e7990!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08),0 8px 16px rgba(0,0,0,.22)!important}
.master-system-mark.master-system-art:after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(3,8,14,.82),rgba(3,8,14,.08) 60%)}.master-system-mark.master-system-art>span{position:relative;z-index:2;align-self:end;margin-bottom:5px;padding:2px 5px;border-radius:5px;background:rgba(3,10,17,.68);color:#fff!important;font-size:10px!important;letter-spacing:.06em!important;text-shadow:0 1px 2px #000}.master-system-option-polished{grid-template-columns:68px 1fr!important;min-height:90px!important}.master-system-copy strong{font-size:13px!important}.master-system-mark-mini.master-system-art{width:40px!important;height:40px!important}

@media(max-width:820px){.dashboard-realm-heading{display:block}.dashboard-realm-heading p{margin-top:4px}.premium-style-grid{grid-template-columns:1fr!important}.style-reference-card{height:330px!important}.cards-forge-hero-character.invincer{left:3%!important;max-width:40%!important}.cards-forge-hero-character.sunburn{right:3%!important;max-width:34%!important}.rebuilt-builder{grid-template-columns:1fr!important}.master-system-grid-polished{grid-template-columns:1fr 1fr!important}}

/* ========================================================================== */
/* UX33 — readability, dashboard, card forge, merch and brand corrections      */
/* ========================================================================== */

/* Use the user-approved AF mark prominently rather than reducing it to a tiny generic badge. */
.brand-svg{width:42px!important;height:42px!important;border-radius:8px!important;border:1px solid rgba(226,184,78,.48)!important;box-shadow:0 0 0 1px rgba(77,153,204,.18),0 7px 16px rgba(0,0,0,.35)!important;filter:none!important;object-fit:cover!important}
.brand strong{font-size:16px!important;letter-spacing:.12em!important}.brand small{font-size:10.5px!important;color:#9fb5c8!important}

/* Dashboard: stop asking new visitors to decipher microscopic copy. */
#view-dashboard .dashboard-realm-heading{display:flex!important;align-items:center!important;min-height:40px!important;padding:10px 14px!important;background:#071827!important;border-color:#174968!important}
#view-dashboard .dashboard-realm-heading span{font-size:13px!important;line-height:1.35!important;font-weight:500!important;letter-spacing:.01em!important;text-transform:none!important;color:#c7d7e4!important}
#view-dashboard .front-realm-ribbon .front-realm-btn span{font-size:11.5px!important;line-height:1.2!important;color:#e5eef5!important;font-weight:650!important}
#view-dashboard .workflow-ribbon strong{font-size:14px!important;line-height:1.2!important}
#view-dashboard .workflow-ribbon small{font-size:11.5px!important;line-height:1.35!important;color:#aebdca!important}
#view-dashboard .feature-card h3{font-size:16px!important;line-height:1.2!important}
#view-dashboard .feature-card p{font-size:13px!important;line-height:1.5!important;color:#b6c5d2!important}
#view-dashboard .feature-card .text-btn{font-size:12.5px!important}
#view-dashboard .dashboard-intro-dock p,#view-dashboard .new-user-panel p{font-size:13px!important;line-height:1.5!important}
#view-dashboard .hero-stats .stat span{font-size:11.5px!important}

/* UHU realm ribbon is a UHU concept. Never display it in licensed/system RPG workspaces. */
body:not([data-theme-key^="uhu-"]) #workspaceRealmRibbon{display:none!important}

/* Form/readability audit. One consistent dark contrast system wins over all older experimental light-field passes. */
.editor-panel{background:#0c1823!important;color:#f2f6fa!important}
.editor-panel .module-section,.editor-panel .panel-shell,.editor-panel .field-card,.editor-panel .timeline-item,.editor-panel .variant-card,.editor-panel .relationship-card,.editor-panel .inspiration-card,.editor-panel .creator-tools-panel,.editor-panel .model-guide-card,.editor-panel .production-box,.editor-panel .rpg-start-block,.editor-panel .rpg-derived-panel,.editor-panel .rpg-stat-card,.editor-panel .converter-core-card,.editor-panel .master-sheet-card,.editor-panel .rpg-start-method,.editor-panel .guided-note,.editor-panel .inline-note,.editor-panel .stats-explainer,.editor-panel .section-autocomplete,.editor-panel .universal-core-card,.editor-panel .structured-row{background:#132433!important;border-color:#3d5b72!important;color:#f1f6fa!important;box-shadow:none!important}
.editor-panel .module-heading{background:linear-gradient(180deg,#0a304b,#071f32)!important;border-color:#3d93bf!important}
.editor-panel .module-heading h3,.editor-panel h3,.editor-panel h4,.editor-panel h5,.editor-panel strong,.editor-panel legend{color:#f7fafc!important}
.editor-panel .module-heading p,.editor-panel p,.editor-panel li,.editor-panel small,.editor-panel .help,.editor-panel .muted,.editor-panel .rpg-start-method span,.editor-panel .rpg-start-method small,.editor-panel .rpg-start-block-title p,.editor-panel .section-autocomplete span{color:#c6d4df!important;font-size:12px!important;line-height:1.48!important}
.editor-panel .field label,.editor-panel label,.editor-panel .cover-control label{color:#e9f1f7!important;font-size:12px!important;line-height:1.3!important;font-weight:750!important;letter-spacing:.015em!important;text-transform:none!important}
.editor-panel input,.editor-panel select,.editor-panel textarea,.editor-panel .structured-row input,.editor-panel .structured-row select,.editor-panel .structured-row textarea,.editor-panel .variant-card input,.editor-panel .variant-card select,.editor-panel .variant-card textarea,.editor-panel .relationship-row input,.editor-panel .relationship-row select,.editor-panel .search-input{background:#0a1722!important;border:1px solid #58758d!important;color:#f7fafc!important;font-size:13.5px!important;line-height:1.4!important;box-shadow:inset 0 1px 2px rgba(0,0,0,.28)!important}
.editor-panel input::placeholder,.editor-panel textarea::placeholder{color:#91a6b7!important;opacity:1!important}
.editor-panel select option{background:#0f202e!important;color:#f7fafc!important}
.editor-panel input:focus,.editor-panel select:focus,.editor-panel textarea:focus{background:#102638!important;border-color:#68cfff!important;box-shadow:0 0 0 2px rgba(104,207,255,.22)!important;color:#fff!important}
.editor-panel .rpg-start-method strong{color:#fff!important;font-size:14px!important}.editor-panel .rpg-start-method span{color:#d6e2eb!important}.editor-panel .rpg-start-method small{color:#b7c8d5!important}
.editor-panel .status-chip,.editor-panel .na-btn,.editor-panel .info-dot{background:#193246!important;border-color:#51728c!important;color:#e7f2fa!important}
.media-module,.media-module *{color:#eef5fa!important}.media-module .media-storage-note,.media-module .gallery-cover-panel,.media-module .media-help-card,.media-module .media-card,.media-module .media-card-body,.media-module .gallery-cover-placeholder,.media-module .visual-look-callout{background:#122433!important;border-color:#3f5d74!important;color:#eef5fa!important}.media-module .media-card-empty,.media-module .media-file-name,.media-module .media-card-body p,.media-module .cover-control label,.media-module .media-storage-note span{color:#c5d4df!important}

/* Card Forge hero: logos own the corners; characters stay clear of them. */
.cards-forge-hero-character.invincer{left:9.5%!important;height:106%!important;max-width:34%!important;bottom:-5%!important;object-position:center bottom!important}
.cards-forge-hero-character.sunburn{right:5%!important;top:-3%!important;bottom:auto!important;height:142%!important;max-width:36%!important;object-position:center top!important;-webkit-mask-image:radial-gradient(ellipse 70% 70% at 50% 33%,#000 52%,rgba(0,0,0,.92) 67%,transparent 96%)!important;mask-image:radial-gradient(ellipse 70% 70% at 50% 33%,#000 52%,rgba(0,0,0,.92) 67%,transparent 96%)!important}
.cards-forge-science-mark.left{left:16px!important}.cards-forge-science-mark.right{right:16px!important}

/* Card style directions: 3 compact portrait-driven choices per row instead of giant square voids. */
.premium-style-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;padding:12px!important}
.premium-style-choice{padding:8px!important;gap:5px!important;border-radius:9px!important}
.style-reference-card{height:255px!important;padding:7px!important;border-radius:7px!important;background:linear-gradient(180deg,#0a1722,#050b10)!important}
.style-reference-card img{width:auto!important;height:100%!important;max-width:178px!important;max-height:240px!important;object-fit:contain!important}
.premium-style-choice .style-choice-kicker{font-size:10px!important}.premium-style-choice strong{font-size:14px!important}.premium-style-choice small{font-size:12px!important;line-height:1.35!important;color:#bdcbd7!important}

/* Builder samples: approved house-card assets should be large enough to judge. */
.approved-builder-card{min-height:440px!important}.approved-builder-card img{width:min(100%,300px)!important;max-height:425px!important}

/* Merch wall modeled after the approved mock-up: several real product contexts at once. */
.merch-preview{display:block!important;min-height:455px!important;padding:0!important;overflow:hidden!important;background:linear-gradient(155deg,#143552,#071522 58%,#050c13)!important}
.merch-showroom{display:grid;grid-template-rows:auto 1fr auto;min-height:455px;color:#eff7fc}
.merch-showroom-head{padding:13px 14px 8px;background:linear-gradient(180deg,rgba(15,51,78,.96),rgba(8,28,45,.82));border-bottom:1px solid #2a617f}.merch-showroom-head strong{display:block;font-size:16px;letter-spacing:.025em}.merch-showroom-head span{display:block;margin-top:2px;color:#b9ccda;font-size:11.5px;line-height:1.35}
.merch-showcase-stage{position:relative;height:338px;margin:6px 8px 0;border-radius:10px;overflow:hidden;background:radial-gradient(circle at 48% 42%,rgba(55,114,157,.36),rgba(4,13,21,.16) 52%,rgba(3,9,15,.72));border:1px solid rgba(85,146,183,.28)}
.merch-piece{position:absolute;display:grid;place-items:center;filter:drop-shadow(0 9px 10px rgba(0,0,0,.38));transition:.15s ease}.merch-piece.selected{filter:drop-shadow(0 0 8px rgba(100,205,255,.6)) drop-shadow(0 10px 12px rgba(0,0,0,.42))}
.merch-piece img{display:block;object-fit:contain;position:relative;z-index:2}
.merch-piece-shirt{left:4px;top:30px;width:142px;height:176px}.merch-shirt-shape{position:absolute;inset:0;background:#eef2f5;clip-path:polygon(20% 0,38% 8%,62% 8%,80% 0,100% 18%,84% 41%,74% 34%,74% 100%,26% 100%,26% 34%,16% 41%,0 18%)}.merch-piece-shirt img{width:72px;height:104px;margin-top:12px}.merch-piece-shirt b{position:absolute;z-index:3;bottom:13px;color:#092034;font-size:9px;letter-spacing:.035em;text-shadow:none}
.merch-piece-tumbler{left:142px;top:32px;width:64px;height:154px}.merch-piece-tumbler>div{position:absolute;inset:3px 8px;border-radius:8px 8px 14px 14px;background:linear-gradient(90deg,#d5dde4,#f6fafc 35%,#bfcbd4);border:2px solid #788895}.merch-piece-tumbler img{width:40px;height:105px}
.merch-piece-hoodie{right:2px;top:28px;width:110px;height:178px}.hoodie-shape{position:absolute;inset:4px;background:#11171e;clip-path:polygon(28% 8%,40% 0,60% 0,72% 8%,100% 24%,84% 45%,75% 39%,75% 100%,25% 100%,25% 39%,16% 45%,0 24%)}.merch-piece-hoodie img{width:58px;height:58px;margin-top:12px}.merch-piece-hoodie b{position:absolute;bottom:33px;color:#78cfff;font-size:10px;z-index:3}
.merch-piece-phone{left:12px;bottom:14px;width:58px;height:110px}.merch-piece-phone>div{position:absolute;inset:0;border-radius:12px;background:#0b1015;border:2px solid #697581}.merch-piece-phone img{width:45px;height:91px}
.merch-piece-sticker{left:82px;bottom:10px;width:88px;height:110px}.merch-piece-sticker img{width:82px;height:106px;filter:drop-shadow(0 0 2px #fff) drop-shadow(0 0 2px #fff)}
.merch-piece-poster{right:12px;bottom:12px;width:108px;height:132px;padding:4px;background:#e8edf1;border:1px solid #75818b}.merch-piece-poster img{width:100%;height:100%;object-fit:cover}
.merch-showroom .merch-caption{padding:10px 12px!important;text-align:left!important;background:#0a1c2a!important}.merch-showroom .merch-caption strong{font-size:13px!important}.merch-showroom .merch-caption span{font-size:11.5px!important;color:#b6c9d7!important}
.merch-layout-polished .merch-toolbar{grid-template-columns:repeat(2,1fr)!important;display:grid!important}.merch-layout-polished .merch-toolbar button{font-size:11.5px!important;padding:8px!important}

@media(max-width:1000px){.premium-style-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.style-reference-card{height:235px!important}.style-reference-card img{max-height:220px!important}.cards-forge-hero-character.sunburn{height:132%!important}.cards-forge-hero-character.invincer{left:9%!important}}
@media(max-width:720px){.premium-style-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.style-reference-card{height:250px!important}.cards-forge-hero-character.invincer{left:7%!important}.cards-forge-hero-character.sunburn{right:2%!important;height:122%!important}.dashboard-realm-heading span{font-size:12.5px!important}}
@media(max-width:480px){.premium-style-grid{grid-template-columns:1fr!important}.style-reference-card{height:320px!important}}
/* Ensure the merch artwork actually gets the panel width; an old 82px toolbar grid was starving the preview. */
.mockup-merch-layout,.merch-layout-polished.mockup-merch-layout{grid-template-columns:1fr!important;display:grid!important}
.mockup-merch-layout .merch-preview,.mockup-merch-layout .merch-toolbar,.mockup-merch-layout .merch-cta{grid-column:1!important}
/* Primary work controls should not require squinting. */
.editor-panel button,.cards-mockup-main button,.cards-command-menu button{font-size:12px!important}
.forge-panel-head p{font-size:12.5px!important;line-height:1.4!important;color:#b8c9d7!important}
.cards-mockup-main h3{font-size:16px!important}
#view-dashboard .dashboard-intro-actions button,#view-dashboard .hero-actions button{font-size:12.5px!important}
#view-dashboard .dashboard-intro-actions .stat strong,#view-dashboard .hero-stats .stat strong{font-size:18px!important}

/* ===== UX34 corrective pass ===== */
/* Brand mark: transparent asset, no artificial tile/background. */
.brand-svg{width:42px!important;height:42px!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;object-fit:contain!important}

/* Make form typography readable at normal desktop viewing distance. */
.editor-panel .field>label,
.editor-panel .sidebar-block>label,
.editor-panel .rpg-stat-card label,
.editor-panel .cover-control label{font-size:13.5px!important;line-height:1.35!important;font-weight:700!important;color:#dce8f2!important;letter-spacing:.01em!important}
.editor-panel input,
.editor-panel select,
.editor-panel textarea{font-size:15px!important;line-height:1.45!important;color:#f5f8fb!important;background:#203242!important;border-color:#57738a!important;min-height:42px!important}
.editor-panel textarea{min-height:92px!important}
.editor-panel input::placeholder,
.editor-panel textarea::placeholder{font-size:14px!important;color:#9fb2c3!important;opacity:1!important}
.editor-panel .help,
.editor-panel .guided-note,
.editor-panel .inline-note,
.editor-panel .module-heading p,
.editor-panel .rpg-start-block-title p,
.editor-panel .rpg-derived-heading p,
.editor-panel .stats-explainer,
.editor-panel .section-autocomplete span{font-size:12.5px!important;line-height:1.5!important;color:#b9c9d7!important}
.editor-panel .field .na-btn,
.editor-panel .info-dot{font-size:11.5px!important}
.editor-panel .rpg-start-method strong,
.editor-panel .rpg-start-block-title h4,
.editor-panel .rpg-derived-heading h4{font-size:17px!important;color:#f1f6fb!important}
.editor-panel .rpg-start-method span,
.editor-panel .rpg-start-method small{font-size:12.5px!important;line-height:1.45!important;color:#c3d3df!important}

/* D&D 2e / RPG secondary values: stop squeezing each control into tiny slivers. */
.rpg-secondary-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(155px,1fr))!important;gap:10px!important;margin-top:10px!important}
.rpg-secondary-grid .rpg-stat-card{min-width:0!important;padding:10px!important}
.rpg-secondary-grid .rpg-stat-card .field{grid-column:auto!important;width:100%!important;min-width:0!important}
.rpg-secondary-grid .rpg-stat-card input,
.rpg-secondary-grid .rpg-stat-card select,
.rpg-secondary-grid .rpg-stat-card textarea{width:100%!important;min-width:0!important}
.rpg-secondary-grid .rpg-stat-card:last-child{grid-column:span 2!important}
@media(max-width:680px){.rpg-secondary-grid{grid-template-columns:1fr 1fr!important}.rpg-secondary-grid .rpg-stat-card:last-child{grid-column:1/-1!important}}
@media(max-width:460px){.rpg-secondary-grid{grid-template-columns:1fr!important}.rpg-secondary-grid .rpg-stat-card:last-child{grid-column:auto!important}}

/* Card Forge hero placement: keep both Science emblems clear, retain full heads, retain Sunburn fire. */
.cards-forge-hero-character.invincer{left:10.5%!important;height:101%!important;max-width:31%!important;bottom:-3%!important;object-position:center bottom!important}
.cards-forge-hero-character.sunburn{right:3.5%!important;top:0!important;bottom:auto!important;height:116%!important;max-width:31%!important;object-position:center top!important;mix-blend-mode:screen!important;opacity:1!important;-webkit-mask-image:radial-gradient(ellipse 82% 86% at 50% 43%,#000 57%,rgba(0,0,0,.92) 73%,transparent 98%)!important;mask-image:radial-gradient(ellipse 82% 86% at 50% 43%,#000 57%,rgba(0,0,0,.92) 73%,transparent 98%)!important}
.cards-forge-hero-copy{width:min(48%,640px)!important}
.cards-forge-hero-copy p{max-width:500px!important;font-size:13px!important}
@media(max-width:1000px){.cards-forge-hero-character.invincer{left:8.5%!important;max-width:34%!important}.cards-forge-hero-character.sunburn{right:2%!important;height:112%!important;max-width:34%!important}.cards-forge-hero-copy{width:54%!important}}
@media(max-width:720px){.cards-forge-hero-character.invincer{left:5%!important;max-width:39%!important}.cards-forge-hero-character.sunburn{right:0!important;height:108%!important;max-width:38%!important}.cards-forge-hero-copy{width:64%!important}}

/* Sunburn merch must show the whole head and the actual fire from the source art. */
.merch-showroom.is-sunburn .merch-piece img{object-fit:contain!important;object-position:center top!important}
.merch-showroom.is-sunburn .merch-piece-shirt img{width:78px!important;height:116px!important;margin-top:7px!important}
.merch-showroom.is-sunburn .merch-piece-tumbler img{width:43px!important;height:112px!important}
.merch-showroom.is-sunburn .merch-piece-phone img{width:48px!important;height:96px!important}
.merch-showroom.is-sunburn .merch-piece-sticker img{width:84px!important;height:108px!important}
.merch-showroom.is-sunburn .merch-piece-shirt,
.merch-showroom.is-sunburn .merch-piece-tumbler,
.merch-showroom.is-sunburn .merch-piece-phone,
.merch-showroom.is-sunburn .merch-piece-sticker{overflow:visible!important}


/* ===== UX35 precision fixes ===== */
/* Magnific AF is the mark itself, not a tile. */
.brand-svg,.onboarding-brand img{border:0!important;outline:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;filter:none!important;object-fit:contain!important}

/* Field titles: explicitly override the older dark child-span rule. */
.editor-panel .field>label,
.editor-panel .field>label>span,
.editor-panel .field label span:first-child,
.editor-panel .sidebar-block>label,
.editor-panel .sidebar-block>label>span,
.editor-panel .rpg-stat-card .field>label,
.editor-panel .rpg-stat-card .field>label>span,
.editor-panel .cover-control label{color:#f1f6fb!important;font-size:14px!important;font-weight:750!important;text-shadow:0 1px 0 rgba(0,0,0,.22)!important}
.editor-panel .field input,.editor-panel .field select,.editor-panel .field textarea{font-size:15px!important;color:#f8fbff!important;background:#203342!important;border-color:#6b879c!important}
.editor-panel .help,.editor-panel .guided-note,.editor-panel .inline-note{color:#c9d6e1!important;font-size:13px!important}

/* 2E is now genuinely derived like 5E, not a row of manual blanks. */
.dnd2e-derived-grid{grid-template-columns:repeat(4,minmax(150px,1fr))!important}
.dnd2e-derived-grid .derived-stat-card.wide{grid-column:1/-1!important}
.dnd2e-derived-grid .derived-stat-card.wide strong{font-size:1.03rem!important;line-height:1.35!important;white-space:normal!important}
@media(max-width:900px){.dnd2e-derived-grid{grid-template-columns:repeat(2,minmax(150px,1fr))!important}}
@media(max-width:560px){.dnd2e-derived-grid{grid-template-columns:1fr!important}}

/* Forge composition: Invincer can come left a bit; Sunburn is a true transparent full-head/fire cutout. */
.cards-forge-hero-character.invincer{left:7.5%!important;height:102%!important;max-width:32%!important;bottom:-3%!important}
.cards-forge-hero-character.sunburn{right:4.5%!important;top:1%!important;bottom:auto!important;height:98%!important;max-width:29%!important;object-fit:contain!important;object-position:center top!important;mix-blend-mode:normal!important;opacity:1!important;-webkit-mask-image:none!important;mask-image:none!important;filter:drop-shadow(0 18px 28px rgba(0,0,0,.48)) drop-shadow(0 0 16px rgba(255,144,30,.24))!important}
.cards-forge-hero-copy{width:min(46%,620px)!important}
@media(max-width:1000px){.cards-forge-hero-character.invincer{left:6%!important;max-width:34%!important}.cards-forge-hero-character.sunburn{right:3%!important;height:96%!important;max-width:32%!important}.cards-forge-hero-copy{width:52%!important}}
@media(max-width:720px){.cards-forge-hero-character.invincer{left:4%!important;max-width:39%!important}.cards-forge-hero-character.sunburn{right:1%!important;height:92%!important;max-width:36%!important}.cards-forge-hero-copy{width:62%!important}}

/* Merch: use the same full Sunburn cutout, not a decapitated crop. */
.merch-showroom.is-sunburn .merch-piece img{object-fit:contain!important;object-position:center top!important;max-height:100%!important;filter:drop-shadow(0 8px 12px rgba(0,0,0,.32)) drop-shadow(0 0 10px rgba(255,147,35,.26))!important}


/* ===== UX36 written-issue pass ===== */
/* Browser/brand artwork is transparent AF only. */
.brand-svg{background:transparent!important;border:0!important;outline:0!important;box-shadow:none!important;border-radius:0!important;object-fit:contain!important}

/* Derived/result values and lower RPG headings must be plainly readable. */
.editor-panel .derived-stat-card strong,
.editor-panel .dnd2e-derived-grid .derived-stat-card strong,
.editor-panel .rpg-derived-panel .derived-stat-card strong{color:#ffffff!important;text-shadow:0 1px 2px rgba(0,0,0,.55)!important;opacity:1!important}
.editor-panel .derived-stat-card span,
.editor-panel .derived-stat-card small{color:#e6eef5!important;opacity:1!important}
.editor-panel .universal-core-card summary strong,
.editor-panel .universal-core-card summary span,
.editor-panel .section-autocomplete strong,
.editor-panel .rpg-start-block-title h4,
.editor-panel .rpg-derived-heading h4,
.editor-panel .stats-explainer strong{color:#ffffff!important;opacity:1!important}
.editor-panel .universal-core-card summary strong,
.editor-panel .section-autocomplete strong{font-size:15px!important;line-height:1.35!important}
.editor-panel .universal-core-card summary span{font-size:12.5px!important}
.editor-panel .core-meter b{color:#fff!important}

/* User-supplied Sunburn PNG is already transparent: no masks, blend modes, or destructive crops. */
.cards-forge-hero-character.sunburn{right:3.5%!important;top:1%!important;bottom:auto!important;height:99%!important;max-width:31%!important;object-fit:contain!important;object-position:center center!important;mix-blend-mode:normal!important;opacity:1!important;-webkit-mask-image:none!important;mask-image:none!important;filter:drop-shadow(0 16px 24px rgba(0,0,0,.42)) drop-shadow(0 0 14px rgba(255,139,23,.32))!important}
.merch-showroom.is-sunburn .merch-piece img{object-fit:contain!important;object-position:center center!important;mix-blend-mode:normal!important;-webkit-mask-image:none!important;mask-image:none!important}


/* ===== UX37 grouping + legibility + card-hero polish ===== */
/* Inactive/secondary copy should read as secondary, not disappear. */
:root{--muted:#aebdca!important}
.muted,.small,.help,.field-help,.module-heading p,.feature-card p,.template-card p,.realm-card p,
.sidebar-block small,.inspector-card small,.mini-progress-item,.tag,.version-chip,
.editor-panel .muted,.editor-panel .help,.editor-panel small,.editor-panel p,
.cards-mockup-main small,.cards-mockup-main .muted,.cards-command-menu small{color:#aebdca!important;opacity:1!important}
button:disabled,.primary-btn:disabled,.secondary-btn:disabled,.ghost-btn:disabled,
.cards-command-menu button:disabled,.play-links button:disabled,.mini-action:disabled{opacity:.72!important;color:#a9b8c6!important}
select option:disabled{color:#91a3b3!important}
.module-btn:not(.active),.nav-btn:not(.active){color:#a9b8c7!important}
.module-btn small,.mini-progress-item,.inspector-title{color:#a6b8c7!important}
.field-na input:disabled,.field-na select:disabled,.field-na textarea:disabled,
input:disabled,select:disabled,textarea:disabled{color:#b7c5d0!important;-webkit-text-fill-color:#b7c5d0!important;opacity:.82!important}

/* Template/universe selector optgroup labels: visibly grouped like the Converter menu. */
#templateSelect optgroup{color:#dce8f2;background:#0d1a27;font-weight:800}
#templateSelect option{color:#f3f7fb;background:#162735;font-weight:500}

/* Card Forge: move Sunburn slightly left so the right Science emblem clears her fire/hand. */
.cards-forge-hero-character.sunburn{right:6.25%!important}
@media(max-width:1000px){.cards-forge-hero-character.sunburn{right:5%!important}}
@media(max-width:720px){.cards-forge-hero-character.sunburn{right:3%!important}}

/* UX41 Founders Alpha QA Lab */
.qa-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:10px;margin:0 0 12px}.qa-summary-grid article{background:#0c2232;border:1px solid #1c536f;border-radius:10px;padding:13px 16px;display:flex;align-items:baseline;gap:9px}.qa-summary-grid strong{font-size:1.7rem;color:#f4f8fb}.qa-summary-grid span{font-size:.8rem;letter-spacing:.09em;color:#a9c0cf}.qa-panel{padding:0 0 18px;overflow:hidden}.qa-progress{height:6px;background:#07131d;margin:0 14px 14px;border-radius:99px;overflow:hidden}.qa-progress span{display:block;height:100%;width:0;background:linear-gradient(90deg,#33c8ff,#54e0b5);transition:width .18s ease}.qa-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0 14px}.qa-group{background:#091c29;border:1px solid #173f55;border-radius:10px;overflow:hidden}.qa-group>h3{margin:0;padding:10px 12px;background:#0d293b;color:#f2f7fa;font-size:1rem;display:flex;justify-content:space-between}.qa-group>h3 span{color:#9fc0d1;font-weight:500}.qa-row{display:flex;gap:10px;padding:9px 11px;border-top:1px solid #12384d;align-items:flex-start}.qa-row>b{min-width:45px;font-size:.72rem;letter-spacing:.07em}.qa-row.pass>b{color:#70e3ad}.qa-row.warn>b{color:#ffd26a}.qa-row.fail>b{color:#ff7e7e}.qa-row div{display:flex;flex-direction:column;min-width:0}.qa-row strong{font-size:.86rem;color:#eef5f8}.qa-row small{margin-top:2px;color:#a9bfca;font-size:.75rem;line-height:1.35;overflow-wrap:anywhere}@media(max-width:760px){.qa-summary-grid{grid-template-columns:repeat(2,1fr)}.qa-results{grid-template-columns:1fr}}


/* UX42 UHU realm canon / About framework */
.realm-card-actions{display:flex;gap:7px;flex-wrap:wrap;align-items:center}.realm-card-actions .secondary-btn,.realm-card-actions .ghost-btn{margin-top:8px}.realm-about-btn{border-color:rgba(111,199,255,.4)!important;background:rgba(5,22,36,.72)!important;color:#d9f2ff!important}.realm-lore-callout{grid-column:1/-1;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:14px 16px;border:1px solid rgba(94,190,255,.35);border-radius:10px;background:linear-gradient(135deg,rgba(6,31,51,.95),rgba(8,19,33,.95));box-shadow:inset 3px 0 0 var(--theme-accent,#57b8ff)}.realm-lore-callout>div{min-width:0}.realm-lore-callout strong{display:block;margin:3px 0 5px;font-size:18px;color:#f2f8ff}.realm-lore-callout p{margin:0;max-width:980px;color:#bad0e2;font-size:12px;line-height:1.55}.realm-lore-callout button{flex:0 0 auto}.realm-about-modal{display:grid;gap:14px;color:#dce8f3}.realm-about-modal>header{padding:14px 16px;border:1px solid rgba(87,184,255,.34);border-radius:12px;background:linear-gradient(135deg,rgba(12,49,78,.65),rgba(11,24,41,.9))}.realm-about-modal>header p{margin:8px 0 0;font-size:15px;line-height:1.7;color:#f0f7ff}.realm-about-modal>p,.realm-about-section p{font-size:14px;line-height:1.7;color:#cbd9e6;margin:0}.realm-about-section{padding-top:4px}.realm-about-section h4{margin:0 0 8px;color:#f0d37a;font-size:16px}.realm-about-section ul{margin:0;padding-left:22px}.realm-about-section li{margin:7px 0;line-height:1.55;color:#c9d9e7}.realm-about-identity strong{color:#85d2ff}.realm-about-tags{display:flex;flex-wrap:wrap;gap:7px}.realm-about-tags span{padding:6px 9px;border:1px solid rgba(101,178,229,.3);border-radius:999px;background:rgba(4,20,32,.72);color:#d8edf9;font-size:11px}.realm-about-reference{padding:14px 16px;border:1px solid rgba(232,188,75,.4);border-radius:10px;background:rgba(63,45,11,.2)}.realm-about-reference span{display:block;color:#f0d37a;font-size:10px;font-weight:900;letter-spacing:.09em}.realm-about-reference p{margin:7px 0 0;color:#fff4d2;font-size:13px;line-height:1.6}.realm-about-production{border-top:1px solid rgba(255,255,255,.08);padding-top:14px}.card-back-realm-reference{margin:6px 0 0;max-width:92%;font-size:9px!important;line-height:1.35;color:#c4d7e6!important}.info-sheet-realm-reference{margin:0;padding:6px 7px;border:1px solid #b8c8d4;border-radius:5px;background:rgba(255,255,255,.55);font-size:8px;line-height:1.35;color:#344b5d}.modal:has(.realm-about-modal){width:min(920px,100%)}
@media(max-width:700px){.realm-lore-callout{flex-direction:column}.realm-lore-callout button{width:100%}.modal:has(.realm-about-modal){width:100%}.realm-about-modal>header p{font-size:14px}}

/* ===== UX43 Science Realm cleanup + creator workflow polish ===== */
/* Science/UHU banner copy and utility placement */
.workspace-theme-banner{position:relative}
.workspace-theme-tools{position:absolute;top:12px;right:14px;z-index:5;display:flex;align-items:center;gap:10px;padding:6px 8px;border-radius:8px;background:rgba(2,10,18,.54);border:1px solid rgba(122,196,240,.24);backdrop-filter:blur(5px)}
.workspace-theme-tools .workspace-theme-logo{position:static!important;width:62px!important;height:62px!important;max-height:62px!important;flex:0 0 auto}
.workspace-theme-helper{max-width:210px;color:#d9e8f3!important;font-size:10px;line-height:1.35;text-align:right;text-shadow:0 1px 3px #000}
.workspace-theme-description{margin:4px 0 0;max-width:760px;color:#d9e9f5;font-size:11px;line-height:1.46;text-shadow:0 2px 7px #000}
#workspaceThemeBanner .workspace-theme-copy{max-width:820px!important}
body[data-theme-key="uhu-science"] .workspace-theme-banner:after{filter:contrast(1.08) saturate(1.04) brightness(1.03)!important}
@media(max-width:860px){.workspace-theme-tools{top:8px;right:8px}.workspace-theme-helper{display:none}.workspace-theme-tools .workspace-theme-logo{width:52px!important;height:52px!important}.workspace-theme-description{font-size:10px;max-width:88%}}

/* Personality sliders: the numeric value must actually be readable. */
.editor-panel .range-value{background:#0b2030!important;border:1px solid #5d8cab!important;color:#ffffff!important;font-weight:900!important;font-size:12px!important;line-height:1!important;min-width:46px;padding:7px 6px!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.035),0 1px 3px rgba(0,0,0,.35)!important}

/* Timeline gets explicit continuity references and ordering controls. */
.timeline-row-expanded{grid-template-columns:54px minmax(125px,.75fr) minmax(150px,1fr) minmax(155px,1fr) minmax(180px,1.15fr) minmax(240px,1.6fr) 36px!important;align-items:start!important}
.timeline-order-controls{display:grid;grid-template-columns:1fr 1fr;gap:4px;align-self:stretch}
.timeline-order-controls .timeline-move{min-width:0!important;width:100%!important;height:34px!important;font-size:16px!important;font-weight:900!important}
.timeline-order-controls .timeline-move:disabled{opacity:.28!important}
@media(max-width:1100px){.timeline-row-expanded{grid-template-columns:48px 1fr 1fr!important}.timeline-row-expanded textarea{grid-column:2/-1}.timeline-row-expanded>[data-remove-time]{grid-column:3;justify-self:end}.timeline-order-controls{grid-row:1/3}}
@media(max-width:680px){.timeline-row-expanded{grid-template-columns:44px 1fr!important}.timeline-row-expanded>*:not(.timeline-order-controls){grid-column:2}.timeline-row-expanded>[data-remove-time]{justify-self:end}}

/* Inspiration palette is editable and directly synchronized with Visual. */
.look-palette-editor{display:grid;grid-template-columns:repeat(3,minmax(96px,130px)) 1fr;gap:10px;align-items:end;margin:10px 0}
.look-palette-editor>div{display:grid;grid-template-columns:1fr 42px;gap:6px;align-items:center;padding:7px 8px;border:1px solid #405a70;border-radius:8px;background:#10202d}
.look-palette-editor label{color:#b9cada!important;font-size:10px!important;font-weight:800!important;text-transform:uppercase;letter-spacing:.04em}
.look-color-input{width:42px!important;height:30px!important;padding:2px!important;border-radius:6px!important;cursor:pointer}
.look-palette-editor small{align-self:center;color:#a9bdcc!important;line-height:1.4}
@media(max-width:760px){.look-palette-editor{grid-template-columns:1fr 1fr 1fr}.look-palette-editor small{grid-column:1/-1}}

/* Empty media preview itself is an upload target, not decorative dead space. */
.media-card-empty-upload{cursor:pointer!important;transition:.16s ease}
.media-card-empty-upload:hover,.media-card-empty-upload:focus{border-color:#62bdf0!important;background:#20394b!important;color:#f4fbff!important;outline:none!important;box-shadow:0 0 0 2px rgba(98,189,240,.14)}
.media-card-empty-upload b{font-size:34px;line-height:1}

/* Converter master-sheet selection: use the real RPG banner as the entire choice. */
.master-system-grid-polished{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}
.master-system-option-polished.master-system-banner-option{display:block!important;position:relative!important;min-height:0!important;aspect-ratio:3.2/1!important;padding:0!important;border:2px solid #34526a!important;border-radius:11px!important;overflow:hidden!important;background:#07131d!important;cursor:pointer!important}
.master-system-banner-option input{position:absolute!important;opacity:0!important;pointer-events:none!important}
.master-system-banner{position:absolute;inset:0;background-size:cover;background-position:center center;background-repeat:no-repeat;display:flex;align-items:flex-end;padding:11px 12px;transition:transform .18s ease,filter .18s ease}
.master-system-banner-option:hover .master-system-banner{transform:scale(1.018);filter:brightness(1.08)}
.master-system-banner-copy{position:relative;z-index:2;display:grid;gap:2px;width:100%;text-shadow:0 2px 5px #000}
.master-system-banner-copy strong{font-size:13px!important;line-height:1.18!important;color:#fff!important}
.master-system-banner-copy small{font-size:9px!important;color:#d5e4ef!important}
.master-system-banner-option:has(input:checked){border-color:#6ed0ff!important;box-shadow:0 0 0 2px rgba(110,208,255,.28),0 10px 22px rgba(0,0,0,.28)!important}
.master-system-banner-option:has(input:checked):after{content:"SELECTED";position:absolute;right:7px;top:7px;z-index:4;padding:4px 6px;border-radius:5px;background:#087fb8;color:#fff;font-size:8px;font-weight:900;letter-spacing:.08em;box-shadow:0 2px 8px rgba(0,0,0,.35)}
.master-system-banner-option:has(input:disabled){cursor:not-allowed!important;filter:saturate(.7) brightness(.72)}
@media(max-width:900px){.master-system-grid-polished{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:560px){.master-system-grid-polished{grid-template-columns:1fr!important}}

/* Prompt Studio: selected-model card is informational only; open-service belongs after copy/download controls. */
.model-guide-card-single{display:block!important}
.model-guide-card-single>div{max-width:900px}
.prompt-actions-with-open{display:flex!important;gap:8px!important;flex-wrap:wrap!important;align-items:center!important}
.prompt-actions-with-open .prompt-open-link{margin-left:auto!important;white-space:nowrap!important}
@media(max-width:820px){.prompt-actions-with-open .prompt-open-link{margin-left:0!important;width:100%;justify-content:center}}

/* Saved local library visibility badge: keep the entire label inside its own pill. */
.char-card-head{align-items:flex-start!important;min-width:0!important}
.char-card-head>div{min-width:0!important;flex:1 1 auto!important}
.char-card-head>.tag{flex:0 0 auto!important;white-space:nowrap!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:22px!important;padding:4px 7px!important;line-height:1!important;font-size:8px!important;letter-spacing:.02em!important;max-width:96px!important;overflow:hidden!important;text-overflow:ellipsis!important}


/* ===== UX44 human-review polish ===== */
/* Keep every production banner on the native 2400x600 / 4:1 geometry and never letterbox it. */
#view-create .workspace-theme-banner{
  aspect-ratio:4/1!important;
  height:auto!important;
  min-height:0!important;
  padding:14px 18px 14px!important;
  background:#06131e!important;
  overflow:hidden!important;
}
#view-create .workspace-theme-banner:after{
  background-size:cover!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
  filter:none!important;
  opacity:1!important;
}
/* Theme note and UHU mark are separate overlays. Only the note gets a dark backing. */
.workspace-theme-tools{
  top:10px!important;
  right:12px!important;
  gap:10px!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  backdrop-filter:none!important;
  align-items:flex-start!important;
}
.workspace-theme-helper{
  display:inline-block!important;
  max-width:230px!important;
  padding:5px 8px!important;
  border:1px solid rgba(126,203,245,.26)!important;
  border-radius:6px!important;
  background:rgba(2,9,16,.72)!important;
  color:#f0f7fb!important;
  font-size:9px!important;
  line-height:1.28!important;
  text-align:right!important;
  text-shadow:0 1px 3px #000!important;
}
.workspace-theme-tools .workspace-theme-logo{
  position:static!important;
  width:62px!important;
  height:62px!important;
  max-height:62px!important;
  padding:0!important;
  margin:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
#workspaceThemeBanner .workspace-theme-copy{
  max-width:610px!important;
  align-self:flex-end!important;
}
.workspace-theme-description{
  display:block!important;
  width:fit-content!important;
  max-width:560px!important;
  margin:5px 0 0!important;
  padding:6px 8px!important;
  border:1px solid rgba(105,190,236,.20)!important;
  border-radius:6px!important;
  background:rgba(2,9,16,.72)!important;
  color:#edf7fc!important;
  font-size:10px!important;
  line-height:1.38!important;
  text-shadow:0 1px 4px #000!important;
  overflow-wrap:anywhere!important;
}
body[data-theme-key="uhu-science"] .workspace-theme-banner:after{
  filter:contrast(1.09) saturate(1.07) brightness(1.02)!important;
}
@media(max-width:720px){
  #view-create .workspace-theme-banner{aspect-ratio:4/1!important;padding:9px!important}
  .workspace-theme-tools{top:6px!important;right:6px!important}
  .workspace-theme-helper{display:none!important}
  .workspace-theme-tools .workspace-theme-logo{width:48px!important;height:48px!important}
  .workspace-theme-title-row{min-height:44px!important;gap:8px!important}
  .workspace-realm-logo{width:44px!important;height:44px!important}
  .workspace-theme-copy strong{font-size:20px!important}
  .workspace-theme-copy>span{font-size:8px!important}
  .workspace-theme-description{max-width:68%!important;font-size:7px!important;line-height:1.24!important;padding:4px 5px!important}
}

/* Prompt Studio: one compact copy-first action row, selected model launcher included. */
.prompt-actions-with-open{
  display:grid!important;
  grid-template-columns:repeat(6,minmax(82px,1fr))!important;
  gap:6px!important;
  align-items:stretch!important;
  margin-bottom:8px!important;
}
.prompt-actions-with-open>*{
  width:100%!important;
  min-width:0!important;
  min-height:50px!important;
  margin:0!important;
  padding:7px 7px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  line-height:1.16!important;
  font-size:9px!important;
}
.prompt-actions-with-open .prompt-open-link{margin:0!important;white-space:normal!important}
@media(max-width:760px){.prompt-actions-with-open{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:440px){.prompt-actions-with-open{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
/* Selected-model information must never fall into the old low-contrast gray-on-blue trap. */
.editor-panel .model-guide-card,.editor-panel .model-guide-card *{color:#edf5fb!important}
.editor-panel .model-guide-card{background:#102536!important;border-color:#41617a!important}
.editor-panel .model-guide-card .card-kicker{color:#87d6ff!important}
.editor-panel .model-guide-card h4{color:#ffffff!important}
.editor-panel .model-guide-card p{color:#d4e2ec!important}
.editor-panel .model-guide-card strong{color:#ffffff!important}

/* Timeline: readable labeled event cards with chronology controls on the left. */
.timeline-row-expanded{
  display:grid!important;
  grid-template-columns:44px minmax(120px,.8fr) minmax(170px,1.2fr) minmax(150px,1fr) minmax(170px,1.15fr) 34px!important;
  gap:8px!important;
  align-items:start!important;
  padding:10px!important;
}
.timeline-field{display:grid!important;gap:4px!important;min-width:0!important}
.timeline-field>span{font-size:8px!important;line-height:1.2!important;font-weight:900!important;letter-spacing:.06em!important;text-transform:uppercase!important;color:#bcd2e1!important}
.timeline-field input,.timeline-field select,.timeline-field textarea{width:100%!important;min-width:0!important}
.timeline-description-field{grid-column:2/-1!important}
.timeline-description-field textarea{min-height:70px!important;resize:vertical!important}
.timeline-order-controls{grid-column:1!important;grid-row:1/3!important;display:grid!important;grid-template-columns:1fr!important;gap:6px!important;align-content:start!important}
.timeline-order-controls .timeline-move{height:34px!important}
.timeline-remove{grid-column:6!important;grid-row:1!important;width:34px!important;height:34px!important}
@media(max-width:1050px){
 .timeline-row-expanded{grid-template-columns:42px 1fr 1fr 34px!important}
 .timeline-title-field{grid-column:3!important}
 .timeline-row-expanded .timeline-field:nth-of-type(3){grid-column:2!important}
 .timeline-row-expanded .timeline-field:nth-of-type(4){grid-column:3!important}
 .timeline-description-field{grid-column:2/5!important}
 .timeline-remove{grid-column:4!important}
}
@media(max-width:650px){
 .timeline-row-expanded{grid-template-columns:40px 1fr 34px!important}
 .timeline-row-expanded .timeline-field,.timeline-title-field,.timeline-row-expanded .timeline-field:nth-of-type(3),.timeline-row-expanded .timeline-field:nth-of-type(4),.timeline-description-field{grid-column:2!important}
 .timeline-remove{grid-column:3!important}
}

/* Inspiration & Looks: more compact clickable libraries remain readable. */
.preset-chip-row{gap:6px!important}
.preset-chip{white-space:normal!important;min-height:34px!important;line-height:1.2!important}

/* Images & References: the entire empty preview is the upload target, not a little box inside a box. */
.media-card-preview:has(.media-card-empty-upload){cursor:pointer!important}
.media-card-empty-upload{
  width:100%!important;
  height:100%!important;
  min-height:100%!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.media-card-empty-upload:hover,.media-card-empty-upload:focus{background:rgba(43,93,126,.35)!important;box-shadow:inset 0 0 0 2px rgba(98,189,240,.35)!important}

/* Multi-system converter choices: one crisp white title per banner, nothing ghosted beneath it. */
.master-system-banner-copy{display:flex!important;align-items:flex-end!important;width:100%!important}
.master-system-banner-copy strong{color:#fff!important;font-size:13px!important;line-height:1.2!important;font-weight:900!important;text-shadow:0 2px 5px #000,0 0 10px rgba(0,0,0,.75)!important}
.master-system-banner-copy small{display:none!important}

/* RPG and creator section heading contrast: stop inheriting murky legacy grays. */
.editor-panel .module-section h2,.editor-panel .module-section h3,.editor-panel .module-section h4,.editor-panel .module-section h5,
.editor-panel .rpg-start-block-title h4,.editor-panel .rpg-derived-heading h4,.editor-panel .master-sheet-head h4,.editor-panel .linked-build-heading h4,
.editor-panel .field>label>span:first-child,.editor-panel .timeline-field>span,.editor-panel .custom-style-head h4,.editor-panel .look-builder-head h4{
  color:#f3f8fc!important;
}
.editor-panel .card-kicker{color:#7ed4ff!important}
.editor-panel .help,.editor-panel .module-heading p,.editor-panel .rpg-start-block-title p,.editor-panel .rpg-derived-heading p{color:#b9cad7!important}

/* UX46 durable-save system */
.storage-health-panel{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 14px;padding:16px 18px;border:1px solid #2a607e;border-radius:14px;background:linear-gradient(145deg,#0b1d2c,#07121d);box-shadow:0 12px 30px rgba(0,0,0,.16)}
.storage-health-copy{min-width:0}.storage-health-copy h3{margin:4px 0 6px;color:#f3f8fc}.storage-health-copy p{margin:0;color:#a9bfd1;max-width:850px;line-height:1.45}.storage-health-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.storage-health-tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.storage-health-tags span{font-size:10px;letter-spacing:.035em;padding:5px 8px;border:1px solid #31516a;border-radius:999px;background:#0a1722;color:#c4d6e3}.storage-health-tags span.ok{border-color:#247958;color:#bdf8db;background:#092419}.storage-health-tags span.warn{border-color:#8f6c25;color:#ffe5a1;background:#281e08}.storage-health-tags span.bad{border-color:#8f3030;color:#ffc1c1;background:#2a0d0d}
@media(max-width:800px){.storage-health-panel{align-items:stretch;flex-direction:column}.storage-health-actions{justify-content:flex-start}.storage-health-actions>*{flex:1 1 180px}}

/* UX46 durable disk-save hardening */
.save-protection-chip{display:inline-flex;align-items:center;justify-content:center;min-height:32px;max-width:150px;padding:5px 9px;border-radius:9px;border:1px solid #2c6b55;background:#0a281d;color:#c8ffe8;font-size:9px;font-weight:800;letter-spacing:.055em;line-height:1.2;text-align:center;white-space:normal}
.save-protection-chip.warn{border-color:#9b6c25;background:#2a1c06;color:#ffe3a1}.save-protection-chip.bad{border-color:#9b3636;background:#2b0c0c;color:#ffd0d0}.save-protection-chip.ok{border-color:#28795b;background:#092419;color:#c8ffe8}
.storage-health-panel.protection-critical{border-color:#9b6c25;box-shadow:0 0 0 1px rgba(255,186,68,.12),0 12px 30px rgba(0,0,0,.16)}
@media(max-width:900px){.save-protection-chip{max-width:120px}}

/* ===== UX47: Loriginary branding + safe domain migration ===== */
.brand-migration-banner{position:sticky;top:0;z-index:1200;display:flex;align-items:center;justify-content:center;gap:18px;padding:8px 18px;background:linear-gradient(90deg,#081a2b,#0b2844);border-bottom:1px solid #d4aa45;color:#eef7ff;box-shadow:0 8px 30px rgba(0,0,0,.28)}
.brand-migration-banner.hidden{display:none!important}.brand-migration-banner>div{display:flex;align-items:center;gap:12px;min-width:0}.brand-migration-banner strong{color:#ffd66c;letter-spacing:.11em;font-size:11px;white-space:nowrap}.brand-migration-banner span{font-size:12px;color:#cfe3f6}.brand-migration-banner button{padding:7px 11px;min-height:32px;white-space:normal;line-height:1.15}
.brand span strong{letter-spacing:.15em}.brand-svg{object-fit:contain}
@media(max-width:760px){.brand-migration-banner{align-items:stretch;flex-direction:column;gap:7px}.brand-migration-banner>div{align-items:flex-start;flex-direction:column;gap:3px}}

/* ===== UX49: dark-header readable Loriginary lockup + connected-folder open ===== */
.brand-logo-link{display:flex!important;align-items:center!important;gap:12px!important;min-width:0!important;isolation:isolate}
.brand-logo-symbol{display:block;width:43px;height:43px;object-fit:contain;filter:drop-shadow(0 0 5px rgba(90,220,255,.58)) drop-shadow(0 0 7px rgba(255,196,82,.28))}
.brand-logo-wordmark{display:block;width:138px;height:35px;object-fit:contain;object-position:left center;filter:none;image-rendering:auto;opacity:1}
.brand-logo-link:hover .brand-logo-wordmark{filter:none}
@media(max-width:1100px){.brand-logo-link{gap:10px!important}.brand-logo-symbol{width:39px;height:39px}.brand-logo-wordmark{width:122px;height:31px}}
@media(max-width:560px){.brand-logo-link{gap:8px!important}.brand-logo-symbol{width:34px;height:34px}.brand-logo-wordmark{width:104px;height:27px}.brand-wrap{gap:6px!important}}

/* ===== UX50: crisp header wordmark ===== */
/* Wordmark source de-haloed at full resolution; no CSS glow/drop-shadow so small header lettering stays sharp. */


/* ===== UX51: approved Science Realm ensemble banner =====
   Production asset is exactly 2400x600. The supplied character artwork is preserved
   at full height and right-anchored; the added left width is a dark text-safe extension. */
body[data-theme-key="uhu-science"] #view-create .workspace-theme-banner:after{
  background-position:center center!important;
}


/* ===== UX52 header legibility, theme-help relocation, dashboard cleanup, PWA visibility ===== */
.brand-logo-link{gap:12px!important}
.brand-wordmark-text{
  display:inline-flex!important;
  align-items:baseline!important;
  white-space:nowrap!important;
  color:#70b9ff!important;
  font-family:"Trebuchet MS","Segoe UI",Arial,sans-serif!important;
  font-size:27px!important;
  font-weight:900!important;
  line-height:1!important;
  letter-spacing:.075em!important;
  text-shadow:0 0 1px #fff,0 0 7px rgba(62,164,255,.40)!important;
  -webkit-font-smoothing:antialiased;
}
.brand-wordmark-text .brand-i{position:relative!important;display:inline-block!important;color:#70b9ff!important}
.brand-wordmark-text .brand-i::after{
  content:""!important;
  position:absolute!important;
  left:50%!important;
  top:-.01em!important;
  width:.205em!important;
  height:.205em!important;
  transform:translate(-50%,-25%)!important;
  border-radius:50%!important;
  background:#ffd24a!important;
  box-shadow:0 0 1px #fff,0 0 7px rgba(255,190,53,.78)!important;
}
/* The old bitmap wordmark remains in the package only for backwards/cached-reference compatibility. */
.brand-logo-wordmark{display:none!important}
.theme-mode-cluster{display:inline-flex;align-items:center;gap:5px;flex:0 0 auto}
.theme-info-btn{
  display:inline-grid;place-items:center;width:25px;height:25px;padding:0;border:1px solid #315f7e;border-radius:50%;
  background:#071b2b;color:#a8ddff;font:900 12px/1 Georgia,serif;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(255,255,255,.02)
}
.theme-info-btn:hover,.theme-info-btn:focus-visible{border-color:#6ed0ff;color:#fff;background:#0b2b43;outline:none;box-shadow:0 0 0 2px rgba(110,208,255,.16)}
.install-app-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;white-space:nowrap!important}
.install-app-btn.is-installed{display:none!important}
.workspace-theme-helper{display:none!important}
.dashboard-master-copy{display:none!important}
.dashboard-master-hero::before{background:linear-gradient(90deg,rgba(3,10,16,.15) 0%,rgba(3,10,16,.03) 35%,rgba(3,10,16,.02) 70%,rgba(3,10,16,.12) 100%)!important}
.dashboard-master-shade{background:linear-gradient(to top,rgba(4,9,15,.12),transparent 45%)!important}
@media(max-width:1100px){.brand-wordmark-text{font-size:24px!important;letter-spacing:.07em!important}}
@media(max-width:700px){.brand-wordmark-text{font-size:21px!important;letter-spacing:.06em!important}.theme-info-btn{width:23px;height:23px}.install-app-btn{padding-left:8px!important;padding-right:8px!important}}
@media(max-width:560px){.brand-wordmark-text{font-size:19px!important}.theme-mode-cluster{gap:3px}.header-actions .install-app-btn{display:inline-flex!important}}


/* ===== UX53: tighter wordmark + minimal theme-info glyph ===== */
.brand-wordmark-text{letter-spacing:.035em!important}
.theme-info-btn{
  display:inline-grid!important;place-items:center!important;width:15px!important;height:18px!important;min-width:15px!important;
  padding:0!important;margin-left:1px!important;border:0!important;border-radius:0!important;background:transparent!important;
  color:#91cfee!important;font:900 13px/18px Georgia,serif!important;box-shadow:none!important;cursor:pointer!important;
}
.theme-info-btn:hover,.theme-info-btn:focus-visible{color:#fff!important;background:transparent!important;box-shadow:none!important;outline:1px dotted #6ed0ff!important;outline-offset:2px!important}
@media(max-width:1100px){.brand-wordmark-text{letter-spacing:.032em!important}}
@media(max-width:700px){.brand-wordmark-text{letter-spacing:.03em!important}.theme-info-btn{width:14px!important;height:17px!important;min-width:14px!important}}
