.uploader{border:1px dashed #c8d3cc;border-radius:10px;padding:10px;background:#fafbf9}.uploader>button{width:100%;min-height:68px;border:0;background:transparent;color:var(--muted);display:flex;align-items:center;justify-content:center;gap:8px}.uploader>button span{font-size:24px;color:var(--green)}.uploader>button small{font-size:10px}.referencePreview{display:grid;grid-template-columns:repeat(6,1fr);gap:7px}.referenceItem{position:relative;aspect-ratio:1;border-radius:8px;overflow:hidden}.referenceItem img{width:100%;height:100%;object-fit:cover}.referenceItem button{position:absolute;right:3px;top:3px;width:22px;height:22px;border:0;border-radius:50%;background:#17251fdd;color:#fff;line-height:1}.uploader.hasImages>button{min-height:38px;font-size:12px}.uploader.hasImages>button small{display:none}
.resultGrid,.historyGrid{align-items:start}.resultGrid .card,.historyGrid .card{height:auto}.resultGrid .card img,.historyGrid .card img{position:absolute;inset:0}
.brand .logo{display:block;width:46px;height:46px;object-fit:cover;border-radius:12px;background:#70e51c}
header{gap:32px}.brand{color:var(--ink);text-decoration:none;flex-shrink:0}.mainNav{display:flex;align-items:center;align-self:stretch;gap:8px;flex:1}.navLink{position:relative;display:flex;align-items:center;padding:0 22px;color:var(--muted);text-decoration:none;font-weight:700;transition:background .2s,color .2s}.navLink:hover{background:#174f3d08;color:var(--green)}.navLink[aria-current="page"]{color:var(--green)}.navLink[aria-current="page"]::after{content:"";position:absolute;bottom:0;left:22px;right:22px;height:3px;border-radius:3px 3px 0 0;background:var(--green)}.brand:focus-visible,.navLink:focus-visible{outline:2px solid var(--green);outline-offset:4px;border-radius:4px}#openConfig{flex-shrink:0}@media(max-width:600px){header{height:auto;min-height:76px;padding:12px 16px 0;gap:12px;flex-wrap:wrap}.brand{gap:8px;font-size:14px}.brand .logo{width:36px;height:36px}#openConfig{margin-left:auto;padding:8px 10px;font-size:12px}.mainNav{order:3;flex-basis:100%;height:42px}.navLink{padding:0 18px}.navLink[aria-current="page"]::after{left:18px;right:18px}}
.studio{grid-template-columns:minmax(380px,.72fr) minmax(0,1.28fr)}.resultGrid .card:only-child{grid-column:1/-1}.resultGrid .card:only-child[style*="1080 / 1920"]{width:min(100%,430px);justify-self:center}@media(max-width:900px){.studio{grid-template-columns:1fr}}
.prompt textarea{height:240px}
#splitOutline{margin-left:auto}
#pptName{display:block;width:100%;padding:14px 18px;border:1px solid var(--line);border-radius:10px;background:#fafbf9;color:var(--ink);margin-bottom:28px}#pptName:focus{outline:2px solid #60917d;outline-offset:2px}
.pptPageActions{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:14px}.pptPageActions button{display:grid;place-items:center;width:32px;height:32px;padding:6px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--muted);transition:background .15s,color .15s}.pptPageActions svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.pptPageActions button:hover{background:var(--sage);color:var(--green)}.pptPageActions button[data-action="delete"]:hover{background:#fff1ef;color:#b64132}.pptPageActions button:focus-visible{outline:2px solid var(--green);outline-offset:2px}.pptPageActions button:disabled{opacity:.4;cursor:not-allowed}.pptPageActionNotice{margin:12px 0;color:var(--muted);font-size:13px}.pptPageActionNotice button{margin-left:12px;padding:6px 10px}
.pptSlide .prompt textarea[id]{display:block;resize:none}
.studio.pptSlide{gap:0;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 16px 50px #294d3d0a;overflow:hidden}.pptSlide>.panel{min-width:0;border:0;border-radius:0;box-shadow:none;background:transparent;padding:24px}.pptSlide>.compose{border-right:0}.pptSlide>.result>.panelTitle{min-height:34px}.pptSlide .prompt textarea{background:#fafbf9}@media(max-width:900px){.pptSlide>.compose{border-right:0;border-bottom:0}}@media(max-width:520px){.pptSlide>.panel{padding:18px}}
.pptBatch{position:relative}.pptBatch .generate{margin:0;box-shadow:none;padding:12px;display:flex;justify-content:space-between;align-items:center;gap:12px}.pptBatch .generate:disabled{opacity:.6}#pptBatchMenu{position:absolute;top:100%;right:0;left:0;z-index:6;margin-top:6px;padding:6px;background:white;border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 24px #174f3d22}#pptBatchMenu button{display:block;width:100%;border:0;background:none;text-align:left;padding:12px;border-radius:6px;color:var(--ink)}#pptBatchMenu button:hover,#pptBatchMenu button:focus-visible{background:var(--sage);color:var(--green)}#pptBatchStatus:not(:empty){padding:12px 16px;background:var(--sage);border-radius:8px;color:var(--green);font-size:14px}.pptSlideStatus{color:var(--green);font-size:13px;overflow-wrap:anywhere}
.pptSettings{margin-top:20px}.pptSettings h2{font-size:16px;margin:0}.pptSettings .options{grid-template-columns:minmax(240px,2fr) minmax(200px,1.5fr) minmax(100px,1fr) minmax(90px,1fr);gap:20px}.pptSettings select{min-width:0}@media(max-width:900px){.pptSettings .options{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}@media(max-width:520px){.pptSettings .options{grid-template-columns:minmax(0,1fr)}}
.pptPanel{margin:24px 0;min-height:360px;padding:48px}.pptPanel h1{font-size:32px;margin:14px 0}.pptPanel p{color:var(--muted);line-height:1.8}.pptPanel>a{display:inline-block;margin-top:24px;text-decoration:none}
.outlineLabel{display:block;font-weight:700;margin:24px 0 12px}#pptOutline{display:block;width:100%;min-height:340px;padding:20px;border:1px solid var(--line);border-radius:12px;resize:vertical;line-height:1.8;color:var(--ink);background:#fafbf9}#pptOutline:focus{outline:2px solid #60917d;outline-offset:2px}.outlineFooter{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:20px}.outlineFooter>span{font-size:13px;color:var(--muted)}.outlineFooter .generate{width:auto;min-width:180px;margin:0}#outlineError{color:#b64132}.pptEditorHeading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:32px}.pptEditorHeading h1{font-size:28px;margin:10px 0}.pptEditorHeading h1 span{display:inline-block;font-size:13px;vertical-align:middle;background:var(--sage);color:var(--green);border-radius:20px;padding:6px 12px}.pptEditorHeading p,#pptDraftNotice{font-size:13px;color:var(--muted)}.pptEditorHeading>a{text-decoration:none;white-space:nowrap}.pptSlide{margin-bottom:24px}.pptSlide .panelTitle label{font-weight:700}.pptSlide .prompt textarea{height:300px;resize:vertical}.pptImage{aspect-ratio:16/9;display:grid}.pptImage .empty{min-height:230px}.pptImage img{width:100%;height:100%;object-fit:contain}#pptSlides{padding-bottom:32px}@media(max-width:600px){.pptPanel{padding:22px}.outlineFooter,.pptEditorHeading{align-items:stretch;flex-direction:column}.outlineFooter .generate{width:100%}.pptEditorHeading>a{align-self:flex-start}.pptSlide .prompt textarea{height:260px}}
#lightbox{position:fixed;inset:0;background:#000c;display:grid;place-items:center;z-index:50;padding:24px}#lightbox[hidden]{display:none}#lightbox img{max-width:min(94vw,1400px);max-height:88vh;object-fit:contain;border-radius:8px;box-shadow:0 20px 80px #0008;background:#111}#lightboxClose{position:absolute;right:18px;top:14px;width:42px;height:42px;border:0;border-radius:50%;background:#ffffff26;color:#fff;font-size:24px;cursor:pointer;z-index:1}#lightboxClose:hover{background:#ffffff40}
.refZoom{position:fixed;z-index:40;pointer-events:none;max-width:min(42vw,380px)}.refZoom img{display:block;width:100%;height:auto;max-height:46vh;object-fit:contain}
.genStatus{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 14px;margin-bottom:12px;background:#f2f8f5;border:1px solid #dce9e2;border-radius:10px;font-size:13px;color:#55665f}.genStatus b{color:var(--green)}.genStatus[hidden]{display:none}

/* Page actions sit in the left gutter beside the text area. */
.pptSlide>.compose{position:relative;padding-left:56px}.pptPageActions{position:absolute;left:12px;bottom:24px;margin:0}@media(max-width:520px){.pptSlide>.compose{padding-left:54px}.pptPageActions{left:10px;bottom:18px}}

.pptSlide>.compose>.panelTitle{position:absolute;left:11px;top:24px;margin:0}.pptSlide>.result>.panelTitle{display:none}@media(max-width:520px){.pptSlide>.compose>.panelTitle{left:9px;top:18px}}

.pptVisual{position:relative;padding-right:112px;min-width:0}.pptImageRail{position:absolute;right:0;top:0;bottom:0;width:96px;display:flex;flex-direction:column;gap:14px}.pptImageRail .pptSingleGenerate{margin:0;padding:11px 8px;font-size:14px;box-shadow:none;flex-shrink:0}.pptThumbnails{display:flex;flex-direction:column;gap:10px;overflow-y:auto;min-height:0;padding:2px}.pptThumbnails>p{font-size:11px;color:var(--muted);text-align:center;margin:6px 0}.pptThumbnail{position:relative;display:block;width:100%;aspect-ratio:16/9;flex-shrink:0;padding:0;border:2px solid transparent;border-radius:7px;background:#edf1ee;overflow:hidden}.pptThumbnail img{width:100%;height:100%;object-fit:cover;display:block}.pptThumbnail[aria-pressed="true"]{border-color:var(--green)}.pptThumbnail>span{position:absolute;right:2px;bottom:2px;width:18px;height:18px;border-radius:50%;background:var(--green);color:#fff;font-size:12px;display:grid;place-items:center}.pptThumbnail:hover{border-color:#8aab9c}.pptThumbnail:focus-visible{outline:2px solid var(--green);outline-offset:1px}.pptVisual .pptImage{min-height:230px;overflow:hidden;border-radius:12px}.pptVisual .pptImage>img{min-height:0;max-height:100%}@media(max-width:520px){.pptVisual{padding-right:84px}.pptImageRail{width:74px}.pptImageRail .pptSingleGenerate{font-size:12px;padding:10px 4px}}

.pptArchive{padding:24px 0 64px}.pptArchive .sectionTitle{margin-bottom:10px}.pptArchive .sectionTitle h2{font-family:inherit;font-size:26px;font-weight:700}.pptArchiveHint,#pptArchiveStatus{font-size:13px;color:var(--muted)}#pptArchiveGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:22px}.pptArchiveCard{overflow:hidden;border:1px solid var(--line);border-radius:14px;background:#fff}.pptArchiveCover{aspect-ratio:16/9;display:grid;place-items:center;background:linear-gradient(135deg,#e3ece5,#f5f6ef);color:var(--green)}.pptArchiveCover>span{font-size:32px;font-weight:700;letter-spacing:4px}.pptArchiveCover img{width:100%;height:100%;object-fit:cover}.pptArchiveBody{padding:18px}.pptArchiveBody h3{margin:0;font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pptArchiveBody p{font-size:12px;color:var(--muted);margin:12px 0 16px}.pptArchiveBody button{width:100%}@media(max-width:900px){#pptArchiveGrid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){#pptArchiveGrid{grid-template-columns:1fr}.pptArchive .sectionTitle h2{font-size:22px}}
button.pptArchiveCover{width:100%;padding:0;border:0;overflow:hidden}button.pptArchiveCover:hover{filter:brightness(.97)}button.pptArchiveCover:focus-visible{outline:3px solid var(--green);outline-offset:-3px}.pptArchiveBody p{margin-bottom:0}

.pptSettings .options{grid-template-columns:minmax(140px,1.5fr) minmax(220px,1.6fr) minmax(160px,1.2fr) minmax(90px,.7fr) minmax(130px,1fr);align-items:center;gap:16px}.pptCurrentTitle{min-width:0;font-weight:700;font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--green);padding:10px 0}@media(max-width:1050px){.pptSettings .options{grid-template-columns:repeat(2,minmax(0,1fr))}.pptCurrentTitle{grid-column:1/-1}}@media(max-width:520px){.pptSettings .options{grid-template-columns:minmax(0,1fr)}}

.pptTitleGroup{display:flex;align-items:center;gap:14px;min-width:0}.pptTitleGroup>a{flex-shrink:0;text-decoration:none;white-space:nowrap}.pptTitleGroup .pptCurrentTitle{flex:1}@media(max-width:1050px){.pptTitleGroup{grid-column:1/-1}}

.pptSettings .options{grid-template-columns:minmax(160px,1.4fr) minmax(210px,1.5fr) minmax(150px,1.1fr) minmax(80px,.6fr) minmax(115px,.8fr) 110px;gap:12px}#pptExport{white-space:nowrap;height:46px;color:var(--green);border-color:#b8cfc3;font-weight:700}#pptExport:disabled{opacity:.55;cursor:wait}@media(max-width:1100px){.pptSettings .options{grid-template-columns:repeat(3,minmax(0,1fr))}.pptTitleGroup{grid-column:1/-1}}@media(max-width:600px){.pptSettings .options{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:380px){.pptSettings .options{grid-template-columns:minmax(0,1fr)}}

.pptReferenceLabel{margin:20px 0 10px;font-size:13px;font-weight:700}.pptReferenceLabel small{font-weight:400;color:var(--muted)}#pptReferenceStatus{font-size:12px;color:var(--muted)}#pptReferencePreview{grid-template-columns:repeat(6,minmax(0,100px))}#pptUploader:focus-visible{outline:2px solid var(--green);outline-offset:2px}@media(max-width:520px){#pptReferencePreview{grid-template-columns:repeat(3,minmax(0,1fr))}}

.pptSlide .prompt textarea[id]{padding-bottom:88px}.pptPageReferences{position:absolute;left:12px;right:12px;bottom:12px;background:#fafbf9;padding-top:6px;border-radius:6px}.pptPageReferenceStrip{display:flex;gap:8px;align-items:center;overflow-x:auto;padding:5px 2px}.pptPageReferenceItem{position:relative;width:44px;height:44px;flex-shrink:0}.pptPageReferenceItem img{width:100%;height:100%;object-fit:cover;border:1px solid var(--line);border-radius:6px}.pptPageReferenceItem button{position:absolute;top:-4px;right:-4px;border:0;border-radius:50%;width:18px;height:18px;padding:0;background:#274e40;color:white;line-height:18px}.pptPageReferenceAdd{width:44px;height:44px;flex-shrink:0;border:1px dashed #b8cfc3;border-radius:6px;color:var(--green);background:#fff;font-size:22px}.pptPageReferences button:disabled{opacity:.4;cursor:not-allowed}.pptPageReferences button:focus-visible{outline:2px solid var(--green);outline-offset:2px}

.pptPageReferenceItem button{opacity:0;pointer-events:none;transition:opacity .15s}.pptPageReferenceItem:hover button,.pptPageReferenceItem:focus-within button{opacity:1;pointer-events:auto}.pptPageReferenceItem button:disabled{opacity:0}.pptPageReferenceItem:hover button:disabled,.pptPageReferenceItem:focus-within button:disabled{opacity:.4}

.pptSlide .prompt{display:flex;flex-direction:column;height:300px;min-height:0;border:1px solid var(--line);border-radius:10px;background:#fafbf9;overflow:hidden}.pptSlide .prompt:focus-within{border-color:#60917d;box-shadow:0 0 0 3px #dcebe4}.pptSlide .prompt textarea[id]{flex:1 1 0;height:0;min-height:0;border:0;border-radius:0;padding:16px;overflow-y:auto;background:transparent;box-shadow:none}.pptSlide .pptPageReferences{position:static;flex:0 0 auto;margin:0;padding:6px 12px 12px;border-radius:0;min-width:0}.pptPageReferenceStrip{max-width:100%}

#pptBatchToggle,.pptImageRail .pptSingleGenerate{background:#f5c842;color:#302810;box-shadow:0 2px 5px #9b741014;transition:background .18s,box-shadow .18s}#pptBatchToggle:hover:not(:disabled),.pptImageRail .pptSingleGenerate:hover:not(:disabled){background:#efbb27;box-shadow:0 3px 9px #9b741024}#pptBatchToggle:active:not(:disabled),.pptImageRail .pptSingleGenerate:active:not(:disabled){background:#e2ac19}#pptBatchToggle:focus-visible,.pptImageRail .pptSingleGenerate:focus-visible{outline:2px solid #987016;outline-offset:3px}#pptBatchToggle:disabled,.pptImageRail .pptSingleGenerate:disabled{background:#f0e7cb;color:#867b60;opacity:1;box-shadow:none}#pptBatchMenu button:hover,#pptBatchMenu button:focus-visible{background:#fff5d7;color:#604611}

.pptImageRail .pptSingleGenerate{background:#fff;color:#111;border:1px solid #e1e4e3;box-shadow:none}.pptImageRail .pptSingleGenerate:hover:not(:disabled){background:#f5f5f5;box-shadow:none}.pptImageRail .pptSingleGenerate:active:not(:disabled){background:#ebebeb}.pptImageRail .pptSingleGenerate:focus-visible{outline:2px solid #666;outline-offset:3px}.pptImageRail .pptSingleGenerate:disabled{background:#fafafa;color:#999;border-color:#e8e8e8;box-shadow:none}

#splitOutline{margin-left:0;margin-right:auto;align-self:flex-start;width:auto;max-width:100%;background:#f5c842;color:#302810;box-shadow:0 2px 5px #9b741014;transition:background .18s}#splitOutline:hover:not(:disabled){background:#efbb27}#splitOutline:active:not(:disabled){background:#e2ac19}#splitOutline:focus-visible{outline:2px solid #987016;outline-offset:3px}#splitOutline:disabled{background:#f0e7cb;color:#867b60;opacity:1;box-shadow:none}

.localBackupBar{display:flex;gap:12px;flex-wrap:wrap;align-items:center;padding:24px;color:var(--muted);font-size:12px;border-top:1px solid var(--line)}
