/* The first-meme guide shares the native canvas and never covers its artwork. */
.first-meme-guide{min-height:0;flex:1;width:100%;box-sizing:border-box;display:flex;flex-direction:column;color:#f5efe2;background:linear-gradient(160deg,#25201b,#121923 52%);font:16px/1.5 var(--inu-type,Arial,sans-serif)}
.first-meme-guide[hidden]{display:none!important}.first-meme-guide *{box-sizing:border-box}
.guide-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:20px 20px 14px;border-bottom:1px solid #685039}
.guide-eyebrow{font-size:11px;font-weight:800;letter-spacing:1.4px;color:#ffc47e}.guide-heading h2{font-family:var(--inu-display,'Lilita One',sans-serif);font-size:30px;line-height:1.1;letter-spacing:.2px;margin:6px 0 0}
.next-lab .first-meme-guide button{min-height:44px;padding:10px 12px;font-size:14px;line-height:1.3;white-space:normal}.next-lab .first-meme-guide .guide-exit{padding:8px 10px;font-size:13px;background:#17212d;color:#d7e3ef;border-color:#4c5b6a;flex-shrink:0}
.guide-progress{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:0;padding:14px 16px 4px;list-style:none}.guide-progress li{min-width:0}.next-lab .guide-progress button{padding:7px 3px;width:100%;font-size:12px;background:transparent;border-color:#4d4843;color:#d1c7bb}.next-lab .guide-progress button[aria-current=step]{background:#6b3b17;border-color:#ffbd75;color:#fff2da}.next-lab .guide-progress button:disabled{opacity:.45}
.guide-content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:18px 20px;scrollbar-gutter:stable}.guide-content h3{font-size:21px;line-height:1.25;margin:0 0 9px;color:#fff2dc}.guide-content p{font-size:16px;line-height:1.5;margin:0 0 18px;color:#c9c4bb}.guide-content .guide-preserve{border-left:3px solid #f4af63;padding-left:12px;color:#eed7b8;font-size:14px}.guide-content .guide-small{font-size:14px;color:#bfc7d3;margin:15px 0 0}.next-lab .first-meme-guide .guide-primary{background:linear-gradient(#ffd69b,#efa347);border-color:#ffe1b4;color:#33200c;font-weight:800;box-shadow:0 3px #875016}.guide-start{width:100%;margin:4px 0 18px}.guide-home{display:block;color:#ffd19b;padding:8px 0;text-decoration:underline;text-underline-offset:3px;font-size:14px}
.guide-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:18px 0}.next-lab .guide-choice{min-width:0;padding:8px 5px;font-size:12px;background:radial-gradient(ellipse at 50% 30%,#58492b55,transparent 75%),#1b2633;border-color:#3f4c5d}.next-lab .guide-choice[aria-pressed=true]{border-color:#ffc47a;background:#51331d;color:#fff0d4}.guide-choice img{display:block;width:100%;height:92px;object-fit:contain;margin-bottom:7px}.guide-choice span{display:block;overflow-wrap:anywhere}.guide-worlds{grid-template-columns:repeat(2,minmax(0,1fr))}.guide-worlds .guide-choice img{height:70px;object-fit:cover;border-radius:5px}
.guide-field{display:block;font-size:14px;font-weight:700;color:#e3d8cb;margin:16px 0}.next-lab .guide-field :is(select,textarea){display:block;width:100%;min-width:0;font:16px/1.45 var(--inu-type,Arial,sans-serif);color:#f2f4f8;background:#0c131e;border:1px solid #657085;border-radius:9px;padding:12px;margin:7px 0 0;min-height:46px}.next-lab .guide-field textarea{height:104px;min-height:104px;resize:vertical}
.guide-controls{display:flex;gap:10px;padding:12px 20px 18px;border-top:1px solid #394150;background:#141c26}.guide-controls>button{flex:1}.guide-feedback{overflow-wrap:anywhere;font-size:14px;line-height:1.45;color:#ffdbac;margin:0;padding:12px 20px;background:#241e19}.guide-feedback:empty{display:none}.next-lab .guide-previous{display:block;font-size:13px;background:#17212d;border:0;border-top:1px solid #465565;border-radius:0;color:#d5e1ef;text-decoration:underline;flex-shrink:0}
.guide-finish-actions{display:grid;gap:10px}.guide-public{margin:20px 0;padding:14px;border:1px solid #65553e;border-radius:10px;background:#28221b}.guide-public summary{font-size:14px;font-weight:750;color:#ffd69d;cursor:pointer;min-height:36px}.guide-public p{font-size:14px;margin:10px 0 14px}.guide-public button{display:block;width:100%;margin-top:10px}.guide-finish-links{display:grid;gap:10px;margin-top:16px}.guide-finish-links a{font-size:14px;color:#ffd19b;text-align:center;text-decoration:underline;padding:10px}
.next-lab .projectbar #save-private{white-space:nowrap}.next-lab #draft-status{font-size:12px;line-height:1.45;padding-top:5px;padding-bottom:5px;color:#b9c9c0}.next-lab .projectbar{flex-wrap:wrap}.next-lab .project-name{min-width:140px}
.next-lab.first-meme-active .asset-rail>:not(.first-meme-guide){display:none!important}.next-lab.first-meme-active .design-rail{display:none!important}.next-lab.first-meme-active :is(.studio-textbar,.canvas-context-dock,.canvas-random-tools,.next-layer-strip,.inunify-teaser,.mobile-studio-nav,.studio-quickbar){display:none!important}
.next-lab.first-meme-active .projectbar>:not(.project-name):not(#save-status){display:none!important}.next-lab.first-meme-active #draft-status{display:none!important}.next-lab.first-meme-active .canvas-footer #preview-tip{font-size:13px;color:#c0cddd}.next-lab.first-meme-active .canvas-column>.stage{gap:12px}.next-lab.first-meme-active .preview-heading{display:flex;justify-content:space-between}.next-lab.first-meme-active .preview-heading h2{font-size:15px}.next-lab.first-meme-active .live-label{font-size:11px}
@media(min-width:1101px){.next-lab.first-meme-active .atelier-workspace{grid-template-columns:350px minmax(360px,1fr)}.next-lab.first-meme-active .asset-rail{grid-column:1;grid-row:1}.next-lab.first-meme-active .canvas-column{grid-column:2;grid-row:1;padding:24px}.next-lab.first-meme-active .canvas-holder{padding:8px}.next-lab.first-meme-active .studio-project-tools{max-height:none;overflow:visible}}
@media(max-width:1100px){
 .next-lab.first-meme-active .atelier-workspace{display:flex;flex-direction:column;overflow:visible}
 .next-lab.first-meme-active .top :is(#tabs,#help-guide){display:none!important}
 .next-lab.first-meme-active .projectbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:8px 12px}
 .next-lab.first-meme-active .project-name{min-width:0}.next-lab.first-meme-active .projectbar #title{max-width:none}
 .next-lab.first-meme-active .projectbar #save-status{max-width:140px;font-size:12px;margin:0}
 .next-lab.first-meme-active .canvas-column{order:0;display:block;box-sizing:border-box;flex:0 0 auto;height:clamp(320px,46dvh,440px);min-height:0;max-height:none;padding:12px;position:sticky;top:0;z-index:4;overflow:hidden;background:#0b0f16;border-bottom:1px solid #48505e;scroll-margin-top:0}
 /* Bound the stage itself. The ordinary editor's phone layout intentionally
    gives it natural height, which otherwise overflows this compact preview. */
 .next-lab.first-meme-active .canvas-column>.stage{display:flex;flex-direction:column;flex:none;position:static;height:100%;min-height:0;max-height:none;gap:8px;overflow:hidden;padding:0}
 .next-lab.first-meme-active .canvas-holder{display:flex;align-items:center;justify-content:center;flex:1 1 0;height:auto;min-height:0;width:100%;padding:4px;overflow:hidden;container-type:size}
 .next-lab.first-meme-active .canvas-holder canvas{display:block;flex-shrink:0;width:min(100cqw,calc(100cqh * var(--canvas-ratio,1)));height:auto;max-width:100%;max-height:100%;object-fit:contain}
 .next-lab.first-meme-active .preview-heading,.next-lab.first-meme-active .canvas-footer{flex:0 0 auto;min-height:0}
 .next-lab.first-meme-active .preview-heading>div:first-child{min-width:0}.next-lab.first-meme-active .preview-heading h2{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .next-lab.first-meme-active .canvas-footer{padding:0}.next-lab.first-meme-active .canvas-footer #preview-tip{display:none}
 .next-lab.first-meme-active .canvas-footer .actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
 .next-lab.first-meme-active .canvas-footer .actions button{min-height:44px;padding:7px 5px;font-size:11px}
 .next-lab.first-meme-active .asset-rail{order:1;display:flex!important;height:auto;max-height:none;min-height:0;border:0;overflow:visible}
 .next-lab.first-meme-active .first-meme-guide{max-width:720px;margin:auto;border:1px solid #5f4d39;border-radius:16px;overflow:hidden;scroll-margin-top:clamp(320px,46dvh,440px)}
 .guide-content{overflow:visible;flex:auto}.guide-choices{grid-template-columns:repeat(3,minmax(0,1fr))}.guide-choice img{height:100px}.guide-worlds .guide-choice img{height:90px}.guide-heading{padding:18px 20px 12px}.guide-controls{position:static}
 .next-lab .projectbar #save-private{flex:1;min-height:44px;font-size:12px}
}
@media(max-width:600px){
 .next-lab.first-meme-active{padding-bottom:calc(18px + env(safe-area-inset-bottom))}
 .next-lab.first-meme-active .canvas-column{height:clamp(300px,43dvh,380px);padding:10px 12px}
 .next-lab.first-meme-active .first-meme-guide{border-radius:0;border-left:0;border-right:0;scroll-margin-top:clamp(300px,43dvh,380px)}
 .guide-content{padding:16px}.guide-heading{padding:16px}.guide-progress{padding:12px 16px 0}.guide-controls{padding:14px 16px}.guide-choices{gap:8px}.guide-choice img{height:85px}.guide-worlds{grid-template-columns:repeat(2,minmax(0,1fr))}.guide-worlds .guide-choice img{height:80px}.guide-finish-actions{gap:12px}.next-lab .first-meme-guide button{min-height:44px}
}
@media(max-width:1100px) and (max-height:600px){
 /* Leave room for the keyboard and landscape controls instead of pinning most
    of the small viewport. The full preview remains reachable above the step. */
 .next-lab.first-meme-active .canvas-column{position:relative;height:clamp(260px,70dvh,360px)}
 .next-lab.first-meme-active .first-meme-guide{scroll-margin-top:12px}
}
@media(prefers-reduced-motion:reduce){.first-meme-guide *{scroll-behavior:auto;transition:none!important}}

.next-lab .post-back{min-height:44px;padding:10px 14px;margin:0 0 18px;font-size:14px}.next-lab #section-post .post-fields :is(button,summary,a){font-size:14px;min-height:44px}.next-lab #section-post .post-fields :is(p,small){font-size:14px;line-height:1.5}

.first-meme-tip{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;flex:0 0 auto;padding:6px 10px;border:1px solid #59677c;border-radius:8px;background:#202a3a;color:#eef2f8;font:12px/1.4 system-ui}
.first-meme-tip span{flex:1 1 210px}.first-meme-tip button{min-height:30px;padding:3px 6px;color:inherit;font:inherit;font-weight:700}.first-meme-tip[hidden]{display:none}
