.reference-permission{box-sizing:border-box;border:1px solid var(--border);background:var(--surface);width:min(460px,100vw - 32px);max-height:calc(100dvh - 32px);color:var(--text);border-radius:20px;margin:auto;padding:32px;position:fixed;overflow:auto;box-shadow:0 24px 100px #0008}.reference-permission::backdrop{-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);background:#050809bd}.reference-permission-close{width:36px;height:36px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:9px;place-items:center;display:grid;position:absolute;inset:12px 12px auto auto}.reference-permission-close:hover{color:var(--text);background:#ffffff08}.reference-permission-icon{width:54px;height:54px;color:var(--accent);background:#c7ff350b;border:1px solid #c7ff352b;border-radius:15px;place-items:center;margin-bottom:22px;display:grid}.reference-permission-eyebrow{color:var(--muted);letter-spacing:.12em;font-size:10px;font-weight:500;display:block}.reference-permission h2{letter-spacing:-.035em;margin:10px 0 14px;font-size:25px;font-weight:600;line-height:1.2}.reference-permission p{color:var(--text);margin:0;font-size:14px;line-height:1.65}.reference-permission p.reference-permission-note{color:var(--muted);margin-top:12px;font-size:12px}.reference-permission-actions{border-top:1px solid var(--border);gap:10px;margin-top:24px;padding-top:22px;display:flex}.reference-permission-actions .small-btn{cursor:pointer;border-radius:10px;min-height:44px}.reference-permission-actions .small-btn:last-child{flex:1}.reference-permission-actions .small-btn.secondary:hover{background:#ffffff0d}.reference-permission button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}@media (max-width:480px){.reference-permission{padding:26px 22px 22px}.reference-permission h2{font-size:23px}.reference-permission-actions{flex-direction:column-reverse;gap:8px}.reference-permission-actions .small-btn{width:100%}}
.character-lab{padding-top:48px;padding-bottom:80px}.character-lab-heading{justify-content:space-between;align-items:center;gap:24px;margin-bottom:36px;display:flex}.character-lab-heading h1{letter-spacing:-.055em;margin:12px 0;font-size:clamp(34px,4vw,54px);line-height:1.1}.character-lab-heading p{color:var(--muted);margin:0;font-size:14px;line-height:1.8}.character-lab-heading>a{white-space:nowrap;align-items:center;gap:10px;font-size:12px;display:flex}.character-lab-heading>a:hover{color:var(--accent)}.character-lab-layout{grid-template-columns:minmax(340px,420px) minmax(0,1fr);align-items:start;gap:40px;display:grid}.sheet-controls{border:1px solid var(--border);background:var(--surface);border-radius:18px;min-width:0;padding:24px}.sheet-controls fieldset{border:0;min-width:0;margin:0;padding:0}.sheet-model{border-bottom:1px solid var(--border);align-items:center;gap:12px;margin-bottom:24px;padding-bottom:22px;display:flex}.sheet-model>.model-logo{width:36px;height:36px;color:var(--accent)}.sheet-model>div{flex-direction:column;gap:5px;display:flex}.sheet-model strong{font-size:14px}.sheet-model>div>span{color:var(--muted);font-size:11px}.sheet-fixed{color:var(--muted);align-items:center;gap:5px;margin-left:auto;font-size:10px;display:flex}.sheet-step{align-items:flex-start;gap:12px;margin:22px 0 16px;display:flex}.sheet-step>span{color:var(--accent);font-variant-numeric:tabular-nums;border:1px solid #c7ff3530;border-radius:7px;margin-top:1px;padding:6px;font-size:10px}.sheet-step h2{letter-spacing:-.02em;margin:3px 0 8px;font-size:15px;font-weight:500}.sheet-step p{color:var(--muted);margin:0;font-size:12px;line-height:1.8}.sheet-references{grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;display:grid}.sheet-reference{aspect-ratio:3/4;background:var(--bg);border:1px dashed #66706966;border-radius:9px;position:relative;overflow:hidden}.sheet-reference>img{object-fit:cover;width:100%;height:100%}.sheet-reference>button:not(.sheet-reference-add){min-width:26px;min-height:26px;color:var(--text);background:#0b0f10df;border:0;border-radius:6px;place-items:center;display:grid;position:absolute;top:2px;right:2px}.sheet-reference-add{width:100%;height:100%;color:var(--muted);cursor:pointer;background:0 0;border:0;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:5px;display:flex}.sheet-reference-add>span{text-align:center;font-size:8px;line-height:1.35}.sheet-reference-add:hover{color:var(--accent);background:#c7ff3506}.sheet-upload-actions{flex-wrap:wrap;align-items:center;gap:8px;margin-top:13px;display:flex}.sheet-upload-actions>.small-btn{padding:9px;font-size:10px}.sheet-upload-actions>span{color:var(--muted);margin-left:auto;font-size:10px}.sheet-upload-help,.sheet-private{color:var(--muted);font-size:10px;line-height:1.7}.sheet-appearance{gap:12px;display:grid}.sheet-notes{flex-direction:column;gap:10px;margin-top:22px;display:flex}.sheet-notes>span{font-size:12px}.sheet-notes small{color:var(--muted);font-size:10px;line-height:1.6}.sheet-notes>span>small{margin-left:7px}.sheet-notes textarea{resize:vertical;border:1px solid var(--border);background:var(--bg);width:100%;min-height:105px;color:var(--text);font:inherit;border-radius:10px;padding:13px;font-size:12px;line-height:1.8}.sheet-notes textarea:focus-visible{outline:1px solid var(--accent)}.sheet-generate{justify-content:center;align-items:center;gap:9px;width:100%;min-height:52px;margin-top:24px;font-size:12px;display:flex}.sheet-generate>span{white-space:nowrap;border-left:1px solid #10111440;align-items:center;gap:5px;margin-left:3px;padding-left:11px;font-size:12px;display:flex}.sheet-private{justify-content:center;gap:6px;margin-bottom:0;display:flex}.sheet-workspace{min-width:0;padding-top:12px}.sheet-workspace-heading{justify-content:space-between;align-items:center;gap:14px;margin-bottom:26px;display:flex}.sheet-workspace-heading .eyebrow{font-size:9px}.sheet-workspace-heading h2{letter-spacing:-.045em;margin:12px 0 0;font-size:clamp(24px,2.8vw,36px);font-weight:500;line-height:1.15}.sheet-layout-guide{color:#52604c;aspect-ratio:3/2;background:#f4f5ef;border-radius:14px;padding:0;display:block;position:relative;box-shadow:0 20px 70px #0002}.sheet-layout-guide>img{border-radius:inherit;width:100%;height:auto;display:block}.sheet-guide-face,.sheet-guide-heads,.sheet-guide-body{background-color:#fafbf7;border:2px solid #aab3a3;border-radius:8px;justify-content:center;align-items:center;min-width:0;display:flex;position:relative}.sheet-guide-face{background:#fafbf7;flex-direction:column;gap:5px}.sheet-layout-guide span{color:#46513f;font-size:clamp(10px,1vw,13px);font-weight:600;line-height:1.35}.sheet-guide-heads{gap:12%;padding-bottom:17px}.sheet-guide-heads>div,.sheet-guide-body>div{flex-direction:column;align-items:center;gap:8px;display:flex}.sheet-guide-heads>small,.sheet-guide-body>small{color:#46513f;letter-spacing:.06em;text-transform:uppercase;font-size:clamp(9px,.85vw,11px);font-weight:650;position:absolute;bottom:9px}.sheet-guide-body{--sheet-body-icon-size:86px;background:repeating-linear-gradient(0deg,#0000 0 23px,#cbd2c5 24px 25px);grid-column:1/-1;grid-template-columns:minmax(64px,.6fr) repeat(3,minmax(0,1fr));gap:8px;padding:16px 18px 36px 12px;display:grid}.sheet-guide-height{align-self:stretch;position:relative}.sheet-guide-height-label{text-align:center;z-index:1;background:#fafbf7;padding-block:6px;position:absolute;inset:50% 13px auto 0;transform:translateY(-50%)}.sheet-guide-height-label>span,.sheet-guide-height-label>strong{font-size:10px;line-height:1.5;display:block}.sheet-guide-height-label>strong{white-space:normal;font-size:9px}.sheet-guide-ruler{height:calc(var(--sheet-body-icon-size) * .8);border-left:2px solid #687860;position:absolute;top:50%;right:3px;transform:translateY(calc(-50% - 12px))}.sheet-guide-ruler:before,.sheet-guide-ruler:after{content:"";border-top:2px solid #687860;width:10px;position:absolute;left:-6px}.sheet-guide-ruler:before{top:0}.sheet-guide-ruler:after{bottom:0}.sheet-guide-caption{letter-spacing:.14em;opacity:1;position:absolute;bottom:3%;left:7%;font-size:9px!important}.sheet-deliverables{flex-wrap:wrap;justify-content:center;gap:12px 20px;margin-top:24px;display:flex}.sheet-deliverables>span{color:var(--muted);align-items:center;gap:6px;font-size:11px;display:flex}.sheet-deliverables svg{color:var(--accent)}.sheet-result-note{color:var(--muted);max-width:610px;margin-top:20px;font-size:12px;line-height:1.9}.sheet-processing{border:1px dashed var(--border);text-align:center;min-height:430px;color:var(--muted);border-radius:14px;flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:35px;display:flex}.sheet-processing>svg{color:var(--accent)}.sheet-processing h3{color:var(--text);margin:0;font-size:20px;font-weight:500}.sheet-processing p{max-width:400px;font-size:12px;line-height:1.8}.sheet-processing>strong{color:var(--accent);font-variant-numeric:tabular-nums;font-size:32px;font-weight:400}.sheet-processing a{color:var(--accent);align-items:center;gap:8px;font-size:12px;display:flex}.sheet-result{background:#f5f7f5;border-radius:14px;overflow:hidden}.sheet-result .asset-preview>img{object-fit:contain;width:100%;max-height:75vh;display:block}.sheet-result .asset-preview{gap:0}.sheet-result .asset-preview>.small-btn{display:none}.sheet-result-actions{flex-wrap:wrap;gap:12px;margin-top:20px;display:flex}.sheet-result-actions .btn{align-items:center;gap:8px;font-size:12px;display:flex}.sheet-feedback{color:var(--accent);gap:8px;margin-top:20px;font-size:12px;line-height:1.7;display:flex}.sheet-feedback>svg{flex-shrink:0;margin-top:3px}.sheet-recent{border-top:1px solid var(--border);margin-top:36px;padding-top:22px}.sheet-recent h3{margin:0 0 16px;font-size:13px;font-weight:500}.sheet-recent>div{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;display:grid}.sheet-recent button{aspect-ratio:3/2;border:1px solid var(--border);background:var(--surface);color:var(--muted);cursor:pointer;border-radius:8px;padding:0;overflow:hidden}.sheet-recent button[aria-pressed=true]{outline:1px solid var(--accent);outline-offset:3px}.sheet-recent img{object-fit:contain;background:#f4f5ef;width:100%;height:100%}.sheet-recent button>span{place-items:center;width:100%;height:100%;display:grid}.sheet-controls button:disabled{cursor:not-allowed;opacity:.5}.sheet-spin{animation:1.4s linear infinite sheet-spin}@keyframes sheet-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.sheet-spin{animation:none}}@media (max-width:1000px){.character-lab-layout{grid-template-columns:minmax(300px,380px) minmax(0,1fr);gap:24px}.sheet-layout-guide{gap:9px;padding:0}.sheet-guide-heads{gap:4%}.sheet-guide-body{--sheet-body-icon-size:64px;grid-template-columns:minmax(46px,.6fr) repeat(3,minmax(0,1fr));gap:4px;padding-inline:8px}.sheet-guide-body svg{width:58px;height:64px}.sheet-guide-heads svg{width:30px;height:30px}.sheet-guide-face svg{width:48px;height:48px}.sheet-layout-guide span{font-size:10px}}@media (max-width:780px){.character-lab-layout{grid-template-columns:1fr}.character-lab-heading{flex-direction:column;align-items:flex-start;gap:16px}.character-lab{padding-top:30px}.sheet-controls{padding:22px}.sheet-workspace{padding-top:14px}.sheet-layout-guide{gap:15px;padding:0}.sheet-guide-face svg{width:70px;height:70px}.sheet-guide-heads svg{width:44px;height:44px}.sheet-guide-body svg{width:86px;height:86px}.sheet-guide-body{--sheet-body-icon-size:86px}.sheet-workspace-heading h2{font-size:28px}.sheet-layout-guide span{font-size:11px}}@media (max-width:420px){.sheet-controls{padding:18px}.sheet-reference-add>span{font-size:7px}.sheet-layout-guide{gap:8px}.sheet-guide-face svg{width:38px;height:38px}.sheet-guide-heads svg{width:28px;height:28px}.sheet-guide-body svg{width:56px;height:58px}.sheet-guide-body{--sheet-body-icon-size:58px;grid-template-columns:43px repeat(3,minmax(0,1fr));gap:3px;padding:10px 5px 29px}.sheet-guide-heads>small,.sheet-guide-body>small{font-size:8px}.sheet-layout-guide span{font-size:9px}.sheet-guide-height-label>strong{font-size:8px}.sheet-guide-caption{font-size:8px!important}.sheet-result-actions{flex-direction:column}.sheet-private{font-size:9px}.sheet-generate{font-size:11px}.sheet-generate>span{padding-left:7px;font-size:11px}.sheet-deliverables{justify-content:flex-start;gap:10px 14px}.sheet-deliverables>span{font-size:10px}}.sheet-brand-mark{width:34px;height:34px;color:var(--accent);flex-shrink:0}.sheet-guide-face{background:#fafbf7}.sheet-height{margin:20px 0}.sheet-height-heading{justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px;font-size:13px;display:flex}.sheet-height small{color:var(--muted);font-size:11px;font-weight:400}.sheet-height-heading small{margin-left:7px}.sheet-height-heading [role=group]{border:1px solid var(--border);border-radius:8px;padding:3px;display:flex}.sheet-height-heading button{color:var(--muted);background:0 0;border:0;border-radius:5px;padding:5px 10px;font-size:11px}.sheet-height-heading button[aria-pressed=true]{background:var(--surface);color:var(--accent)}.sheet-height-inputs{gap:10px;margin-bottom:8px;display:flex}.sheet-height-inputs label{border:1px solid var(--border);background:var(--bg);border-radius:10px;flex:1;align-items:center;gap:10px;min-width:0;padding:10px 12px;display:flex}.sheet-height-inputs input{width:100%;min-width:0;color:var(--text);background:0 0;border:0;outline:none}.sheet-height-inputs label:focus-within{border-color:var(--accent)}.sheet-height-inputs label>span:last-child{color:var(--muted);font-size:12px}.sheet-how-to{border-top:1px solid var(--border);padding-block:40px 100px}.sheet-how-to h2{letter-spacing:-.04em;max-width:650px;font-size:clamp(24px,3vw,36px)}.sheet-how-to-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:36px;margin:32px 0;display:grid}.sheet-how-to h3{font-size:15px}.sheet-how-to p{color:var(--muted);max-width:75ch;font-size:13px;line-height:1.8}.sheet-how-to a{color:var(--accent)}.sheet-how-to details{border-top:1px solid var(--border);padding:18px 0;font-size:14px}.sheet-how-to summary{cursor:pointer}@media (max-width:750px){.sheet-how-to-grid{grid-template-columns:1fr;gap:12px}}@media (max-width:760px){.sheet-height-heading{flex-wrap:wrap}.sheet-height-heading button{min-width:44px;min-height:44px;padding:8px 12px}.sheet-how-to summary{align-items:center;min-height:44px;line-height:1.5;display:flex}}
