/* Andreas Gundelach / CODEX */
:root{color-scheme:dark;--bg:#10151d;--sidebar:#111820;--panel:#19212c;--panel-raised:#202b38;--text:#edf1f5;--muted:#8f9eaf;--line:#2b3745;--accent:#b8e6a3;--accent-strong:#9ed784;--accent-ink:#15251a;--danger:#f49191;--radius:14px;--shadow:0 24px 80px #0005;font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:15px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}[hidden]{display:none!important}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{border:0;transition:background .18s,opacity .18s,transform .18s}button:disabled{cursor:default;opacity:.4}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:4px}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.sprite{position:absolute;width:0;height:0;overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}h1,h2,h3,p{margin:0}h1,h2,h3{font-weight:600}h3{font-size:15px;margin:0 0 16px}button.primary,.primary{display:inline-flex;gap:9px;align-items:center;justify-content:center;min-height:43px;padding:11px 17px;border-radius:9px;color:var(--accent-ink);background:var(--accent);font-weight:650;white-space:nowrap}.primary:hover{background:var(--accent-strong)}.secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);background:var(--panel-raised);color:var(--text);padding:10px 14px;border-radius:8px;min-height:40px}.secondary:hover{background:#2a3747}.text-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;color:var(--muted);background:none;padding:5px 0;font-size:13px}.text-button:hover{color:var(--text)}.text-button svg{width:17px;height:17px}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border:1px solid #ffffff1a;border-radius:10px;background:#15202b88;backdrop-filter:blur(12px);color:#fff}.icon-button:hover{background:#ffffff20}.muted{color:var(--muted);font-size:13px;line-height:1.6}.eyebrow{font-size:10px;font-weight:650;letter-spacing:2px;color:var(--muted)}.brand{display:flex;align-items:center;gap:9px;font-size:22px;font-weight:700;letter-spacing:-.7px}.accent{color:var(--accent)}.brand-mark{display:flex;align-items:center;justify-content:center;width:35px;height:35px;border-radius:10px;background:var(--accent);color:var(--accent-ink);transform:rotate(-5deg)}.brand-mark svg{width:23px;height:23px;transform:rotate(5deg)}.brand-mark.big{width:59px;height:59px;border-radius:16px;margin-bottom:21px}.brand-mark.big svg{width:38px;height:38px}
.project-gate{min-height:100svh;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;background:radial-gradient(ellipse at 85% 45%,#243c3238,transparent 50%)}.gate-content{width:440px;max-width:calc(100vw - 48px);position:relative;z-index:2;padding:60px 0}.wordmark{font-size:43px;letter-spacing:-2px;font-weight:750;display:flex;align-items:center}.wordmark>span:first-child{color:var(--accent)}.version-badge{font-size:10px;font-weight:500;letter-spacing:0;border:1px solid var(--line);color:var(--muted);margin-left:14px;padding:4px 6px;border-radius:5px}.gate-content>.eyebrow{margin:15px 0 39px}.gate-content h1{font-size:33px;letter-spacing:-1.1px;line-height:1.2}.gate-intro{color:var(--muted);line-height:1.7;margin-top:15px;font-size:15px}.project-input{display:flex;margin-top:30px;padding:6px;background:var(--panel);border:1px solid var(--line);border-radius:12px;gap:8px}.project-input input{min-width:0;flex:1;border:0;background:none;color:var(--text);padding:11px;font-size:14px}.project-input .primary{width:47px;padding:8px}.recent-projects{display:flex;flex-wrap:wrap;gap:7px;margin:14px 0 22px}.recent-projects button{background:#ffffff07;border:1px solid var(--line);border-radius:20px;font-size:12px;color:var(--muted);padding:7px 11px}.recent-projects button:hover{color:var(--text);border-color:var(--accent)}.gate-foot{font-size:11px;color:#617081;margin-top:60px}.gate-art{position:absolute;left:calc(50% + 300px);top:26%;width:300px;height:400px;opacity:.67;pointer-events:none}.art-card{width:210px;height:260px;position:absolute;border:9px solid #e8e5d4;border-bottom-width:35px;box-shadow:var(--shadow);display:flex;align-items:center;justify-content:center;color:#f4ecd9;font-size:100px}.art-card.a{background:#ba704b;transform:rotate(-13deg);top:50px;left:0}.art-card.b{background:#4c8077;transform:rotate(14deg);left:100px}.art-card.c{background:#d3b064;transform:rotate(3deg);top:145px;left:70px}.art-dot{position:absolute;left:35px;top:-30px;width:9px;height:9px;border-radius:50%;background:var(--accent)}
.presentation{position:fixed;inset:0;overflow:hidden;background:#10151d;color:#f7f7f4;touch-action:manipulation;user-select:none}.stage-background,.stage-shade,.slides{position:absolute;inset:0}.stage-background{background-color:#10151d;background-size:cover;background-position:center}.stage-shade{pointer-events:none;background:linear-gradient(180deg,#07101955,transparent 24%,transparent 68%,#07101999)}.stage-header{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;gap:20px;padding:26px 32px;z-index:5}.header-divider{width:1px;height:21px;background:#ffffff24}.project-title{font-size:13px;color:#e4e9ed;max-width:38vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-actions{display:flex;align-items:center;gap:10px;margin-left:auto}.status-pill{display:flex;align-items:center;gap:7px;font-size:11px;color:#dce4e9;background:#10202b99;border:1px solid #ffffff14;border-radius:24px;padding:9px 12px;backdrop-filter:blur(12px)}.status-dot{width:6px;height:6px;border-radius:50%;background:var(--accent)}.status-pill.offline .status-dot{background:#e4c18b}.status-pill.error .status-dot{background:var(--danger)}.slides{inset:94px 6% 145px;z-index:2;isolation:isolate}.slide-layer{position:absolute;inset:0;display:grid;opacity:0;transition:opacity var(--fade,1s) ease;gap:22px;align-items:center;justify-items:center;pointer-events:none}.slide-layer.visible{opacity:1}.slide-layer.mode-single{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr)}.slide-layer.mode-grid,.slide-layer.mode-stack{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr))}.slide-layer.mode-stack{gap:28px 44px;padding:14px 25px}.photo-frame{position:relative;min-width:0;min-height:0;max-width:100%;max-height:100%;display:flex;align-items:center;justify-content:center;filter:drop-shadow(0 10px 22px #0004);transform:rotate(var(--rotation,0deg));opacity:1;transition:transform var(--fade,1s) cubic-bezier(.17,.76,.27,1),opacity var(--fade,1s) ease}.photo-frame img{display:block;max-height:100%;max-width:100%;width:auto;height:auto;object-fit:contain;pointer-events:none;user-select:none;border-radius:2px}.mode-single .photo-frame{width:100%;height:100%}.mode-single img{max-height:100%;max-width:100%}.mode-grid .photo-frame,.mode-stack .photo-frame{height:100%;width:100%}.mode-stack img{box-shadow:0 0 0 6px #efeee9,0 9px 22px #0005}.slide-layer.entering.fly .photo-frame{transform:translate(var(--fly-x),var(--fly-y)) rotate(var(--fly-turn));opacity:0}.photo-decor{position:absolute;pointer-events:none;z-index:1}.decor-wrap{position:relative;display:flex;max-width:100%;max-height:100%;align-items:center;justify-content:center}.decor-wrap img{max-width:100%;max-height:100%}.tape .photo-decor{width:clamp(20px,4vw,55px);height:clamp(10px,1.6vw,23px);background:#e9e3ca66;border-left:1px dashed #faf6e480;border-right:1px dashed #faf6e480;box-shadow:0 1px 3px #0002;backdrop-filter:blur(.3px)}.photo-decor.tl{top:-4px;left:-12px;transform:rotate(-37deg)}.photo-decor.tr{top:-4px;right:-12px;transform:rotate(37deg)}.photo-decor.bl{bottom:-4px;left:-12px;transform:rotate(37deg)}.photo-decor.br{bottom:-4px;right:-12px;transform:rotate(-37deg)}.pins .photo-decor{width:clamp(7px,.8vw,11px);height:clamp(7px,.8vw,11px);border-radius:50%;background:radial-gradient(circle at 30% 25%,#f3c9a0,#af674f 70%);box-shadow:1px 3px 3px #0006}.pins .photo-decor.tl{top:6px;left:6px}.pins .photo-decor.tr{top:6px;right:6px}.pins .photo-decor.bl{bottom:6px;left:6px}.pins .photo-decor.br{bottom:6px;right:6px}.empty-stage{position:absolute;inset:100px 20px 150px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;color:var(--muted);z-index:2}.empty-stage>svg{width:54px;height:54px;margin-bottom:24px;opacity:.5}.empty-stage h1{font-size:30px;color:var(--text)}.empty-stage p{margin:12px 0 25px;font-size:14px}.stage-bottom{position:absolute;bottom:66px;left:32px;right:32px;display:flex;align-items:center;justify-content:space-between;gap:24px;z-index:5}.stage-meta{display:flex;flex-direction:column;gap:6px;max-width:32%}.stage-meta .eyebrow{color:#aab8c4;font-size:8px}.stage-meta strong{font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.stage-meta>span:last-child{font-size:11px;color:#aab8c4}.playback-controls{display:flex;align-items:center;gap:12px;position:absolute;left:50%;transform:translateX(-50%)}.playback-controls>.icon-button{background:transparent;border-color:transparent;color:#c3ccd4}.play-button{background:var(--accent);color:var(--accent-ink);font-size:13px;display:flex;gap:8px;align-items:center;padding:13px 20px;border-radius:10px;font-weight:650;white-space:nowrap}.play-button svg{width:18px;height:18px}.stage-hint{margin-left:auto;color:#aab8c4;font-size:10px;display:flex;flex-direction:column;gap:7px;text-align:right;max-width:26%}.stage-hint span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.stage-footer{position:absolute;bottom:0;left:0;right:0;height:45px;border-top:1px solid #ffffff12;display:flex;align-items:center;padding:0 32px;color:#8293a3;font-size:10px;z-index:5;gap:25px}.stage-footer nav,.sidebar-bottom nav{display:flex;align-items:center;gap:9px;white-space:nowrap}.stage-footer nav button,.sidebar-bottom nav button{color:inherit;background:none;padding:0;font-size:inherit}.theme-toggle{display:inline-flex;align-items:center;justify-content:center}.theme-toggle svg{width:14px;height:14px}.stage-footer>.version-text{margin-left:auto}.chrome{transition:opacity .4s,transform .4s}.presentation.quiet .chrome{opacity:0;pointer-events:none}.presentation.quiet .stage-header{transform:translateY(-12px)}.presentation.quiet .stage-bottom,.presentation.quiet .stage-footer{transform:translateY(12px)}.presentation.quiet .slides{inset:3.5% 4%}.loading-card{position:absolute;bottom:130px;left:50%;transform:translateX(-50%);z-index:6;display:flex;align-items:center;gap:14px;padding:15px 19px;border-radius:12px;background:#111b27e8;backdrop-filter:blur(20px);border:1px solid #ffffff15;box-shadow:0 10px 40px #0004;max-width:calc(100vw - 36px)}.loading-card strong{display:block;font-size:13px;font-weight:600}.loading-card small{display:block;font-size:11px;color:#a8b8c8;margin-top:4px}.spinner{width:20px;height:20px;border:2px solid #ffffff25;border-top-color:var(--accent);border-radius:50%;animation:spin 1s linear infinite;flex-shrink:0}@keyframes spin{to{transform:rotate(360deg)}}.cache-progress{position:fixed;bottom:0;left:0;right:0;height:4px;background:#ffffff12;z-index:100}.cache-progress>div{height:100%;background:var(--accent);width:0;transition:width .2s linear;box-shadow:0 0 14px #b8e6a355}.drop-overlay{position:fixed;inset:15px;border:2px dashed var(--accent);border-radius:20px;background:#10201bf2;z-index:70;display:flex;align-items:center;justify-content:center;pointer-events:none;text-align:center;backdrop-filter:blur(12px)}.drop-overlay svg{width:58px;height:58px;color:var(--accent);margin-bottom:24px}.drop-overlay h2{font-size:32px}.drop-overlay p{color:var(--muted);margin-top:13px;font-size:14px}
dialog{padding:0;color:var(--text);border:1px solid var(--line);background:var(--panel);border-radius:18px;box-shadow:var(--shadow)}dialog::backdrop{background:#03080ec7;backdrop-filter:blur(7px)}.settings-dialog{width:min(1120px,calc(100vw - 40px));max-width:none;height:min(840px,calc(100svh - 50px));max-height:none;overflow:hidden}.settings-dialog[open]{display:flex}.settings-shell{display:flex;width:100%;height:100%}.settings-sidebar{width:230px;flex-shrink:0;background:var(--sidebar);padding:27px 18px 20px;display:flex;flex-direction:column;border-right:1px solid var(--line)}.settings-sidebar>.brand{padding:0 8px 28px}.sidebar-label{font-size:9px;letter-spacing:1.6px;color:#697d8f;margin:9px 12px}.settings-sidebar>strong{font-size:14px;font-weight:600;margin:0 12px 28px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.settings-nav{display:flex;flex-direction:column;gap:5px}.settings-nav button{display:flex;align-items:center;gap:10px;background:none;color:var(--muted);text-align:left;white-space:nowrap;padding:12px 11px;border-radius:8px;font-size:12px;min-height:44px}.settings-nav svg{width:18px;height:18px}.settings-nav button.selected{background:#b8e6a311;color:var(--accent)}.settings-nav button:hover{background:#ffffff05;color:var(--text)}.count-badge{font-size:9px;background:#ffffff0a;border-radius:4px;padding:2px 4px;margin-left:auto}.sidebar-bottom{margin-top:auto;padding:25px 10px 0;display:flex;align-items:flex-start;gap:8px;flex-direction:column;color:#708396;font-size:11px}.sidebar-bottom>span{font-size:10px}.sidebar-bottom nav{margin-top:14px;font-size:11px}.sidebar-bottom>small{font-size:9px;color:#516577;margin-top:7px}.sidebar-bottom #logout{font-size:11px;padding:0}.settings-main{flex:1;min-width:0;display:flex;flex-direction:column;position:relative}.settings-header{display:flex;justify-content:space-between;align-items:flex-start;padding:28px 32px 25px;border-bottom:1px solid var(--line);flex-shrink:0}.settings-header .eyebrow{font-size:8px;letter-spacing:1.5px;margin:3px 0 8px}.settings-header h2{font-size:25px;letter-spacing:-.6px}.settings-header .icon-button{background:transparent;border:0;color:var(--muted);width:30px;height:30px}.settings-scroll{overflow-y:auto;overscroll-behavior:contain;flex:1;padding:26px 32px 30px;scrollbar-width:thin;scrollbar-color:#34475a transparent}.section-lead{font-size:18px;font-weight:600;letter-spacing:-.3px;margin-bottom:9px}.section-lead+.muted{margin-bottom:25px;font-size:12px}.mode-fieldset{border:0;padding:0;margin:24px 0}.mode-fieldset legend{font-size:12px;font-weight:600;margin-bottom:12px}.mode-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.mode-option{display:flex;flex-direction:column;position:relative;align-items:flex-start;border:1px solid var(--line);padding:14px;border-radius:11px;cursor:pointer;background:#141d27;min-width:0;transition:border-color .15s,background .15s}.mode-option:has(input:checked){border-color:var(--accent);background:#b8e6a309}.mode-option input{position:absolute;right:10px;top:10px;width:12px;height:12px;accent-color:var(--accent)}.mode-option strong{font-size:12px;margin-top:14px}.mode-option small{font-size:9px;margin-top:5px;color:var(--muted);line-height:1.5}.mode-preview{width:75px;height:54px;display:grid;gap:5px;margin:7px 0 0 4px}.mode-preview i{display:block;background:#b8e6a335;border:1px solid #b8e6a35c;border-radius:3px}.mode-preview.single{padding:3px 0}.mode-preview.single i{background:linear-gradient(140deg,#b8e6a370,#b8e6a325)}.mode-preview.grid,.mode-preview.stack{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}.mode-preview.stack i:nth-child(1){transform:rotate(-9deg)}.mode-preview.stack i:nth-child(2){transform:rotate(10deg)}.mode-preview.stack i:nth-child(3){transform:rotate(6deg)}.mode-preview.stack i:nth-child(4){transform:rotate(-7deg)}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:21px 20px;align-items:start;margin:23px 0}.form-grid>label,form>label,.inline-form label{display:flex;flex-direction:column;gap:9px;font-size:12px;font-weight:500;align-items:stretch}.form-grid label small{font-size:10px;color:var(--muted);font-weight:400;line-height:1.5}input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select{width:100%;height:41px;padding:9px 11px;border:1px solid var(--line);border-radius:7px;background:#121b25;color:var(--text);font-size:12px;min-width:0}select{appearance:auto;cursor:pointer}.unit-input{position:relative}.unit-input input{padding-right:84px!important}.unit-input span{position:absolute;right:12px;top:14px;color:var(--muted);font-size:10px;pointer-events:none}.switch-row{border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:18px 0;margin:22px 0}.switch-row strong{display:block;font-size:12px;font-weight:500}.switch-row small{display:block;font-size:10px;color:var(--muted);margin-top:6px;line-height:1.6}.switch-row input{appearance:none;width:34px;height:19px;border:1px solid #4f6071;border-radius:30px;background:#273340;cursor:pointer;flex-shrink:0;position:relative;margin:0}.switch-row input:after{content:"";position:absolute;width:13px;height:13px;border-radius:50%;background:#8797a8;top:2px;left:3px;transition:.2s}.switch-row input:checked{background:var(--accent);border-color:var(--accent)}.switch-row input:checked:after{background:#203325;left:16px}.section-divider{border-top:1px solid var(--line);margin:27px 0}.color-field{height:41px;border:1px solid var(--line);border-radius:7px;display:flex;align-items:center;gap:11px;padding:6px 10px;background:#121b25}.color-field input{appearance:none;width:28px;height:26px;padding:0;border:0;border-radius:5px;background:none;cursor:pointer}.color-field input::-webkit-color-swatch-wrapper{padding:0}.color-field input::-webkit-color-swatch{border:1px solid #ffffff30;border-radius:4px}.color-field span{font-size:11px;color:var(--muted);text-transform:uppercase}.check-row{display:flex;align-items:flex-start;gap:8px;color:var(--muted);font-size:11px;line-height:1.5}.check-row input{margin:1px 0 0;accent-color:var(--accent)}.settings-footer{padding:17px 24px;border-top:1px solid var(--line);display:flex;align-items:center;gap:14px;flex-shrink:0;background:var(--panel);z-index:10}.settings-footer .secondary,.settings-footer .primary{font-size:11px;padding:10px 12px;min-height:38px}.settings-footer svg{width:16px;height:16px}.settings-footer>span{font-size:9px;max-width:160px;line-height:1.5}.settings-footer .primary{margin-left:auto}.notice{font-size:12px;line-height:1.5;padding:12px 32px;background:#d6b46c13;color:#e4cd9c;border-bottom:1px solid #d6b46c30;flex-shrink:0}.upload-zone{border:1px dashed #536579;border-radius:12px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:30px 16px;background:#121c27;margin:22px 0;position:relative}.upload-zone>svg{color:var(--accent);width:28px;height:28px;margin-bottom:3px}.upload-zone strong{font-size:13px}.upload-zone>span{font-size:10px;color:var(--muted);max-width:360px;line-height:1.6}.upload-zone .secondary{font-size:11px;min-height:35px;padding:8px 12px;margin-top:6px}.upload-zone.dragover{background:#b8e6a315;border:2px solid var(--accent);padding:29px 15px}.update-zone.dragover{z-index:80;box-shadow:0 0 0 8px var(--panel)}.upload-status{border:1px solid var(--line);border-radius:9px;padding:15px;margin:16px 0;font-size:11px}.upload-status>div{display:flex;align-items:center;justify-content:space-between;gap:10px}.upload-status strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upload-status .text-button{font-size:10px}progress{width:100%;height:5px;accent-color:var(--accent);display:block;margin:13px 0 9px;border:0;border-radius:10px;overflow:hidden}progress::-webkit-progress-bar{background:#ffffff10}progress::-webkit-progress-value{background:var(--accent)}.upload-status>span{color:var(--muted);line-height:1.6}.library-toolbar{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin:26px 0 18px}.library-toolbar h3{margin-bottom:6px;font-size:14px}.library-toolbar .muted{font-size:10px}.toolbar-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}.toolbar-actions button{font-size:10px}.danger-ghost{display:flex;align-items:center;gap:5px;background:none;color:var(--danger);padding:5px 0}.danger-ghost svg{width:13px;height:13px}.media-library{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.media-card{background:#121b25;border:1px solid var(--line);border-radius:8px;overflow:hidden;position:relative;min-width:0}.media-card.selected{border-color:var(--accent)}.media-card .thumb{height:91px;background:#0c131b;display:flex;align-items:center;justify-content:center;overflow:hidden}.media-card .thumb img{width:100%;height:100%;object-fit:contain}.media-card .thumb>svg{color:var(--muted);width:30px;height:30px}.media-card .media-check{position:absolute;left:7px;top:7px;width:15px;height:15px;margin:0;accent-color:var(--accent);z-index:2;cursor:pointer}.media-card .media-info{padding:9px 9px 10px}.media-card strong{display:block;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500}.media-card small{display:block;color:var(--muted);font-size:8px;margin-top:4px}.volume-field{display:block;font-size:12px;margin:26px 0}.volume-field span{color:var(--accent);float:right;font-size:11px}.volume-field input{width:100%;margin:18px 0;accent-color:var(--accent)}.music-list{margin:22px 0}.music-item{display:flex;align-items:center;gap:14px;padding:13px 0;border-bottom:1px solid var(--line)}.music-item>svg{color:var(--accent);width:21px;height:21px}.music-item>div{flex:1;min-width:0}.music-item strong{font-size:12px;font-weight:500;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.music-item small{font-size:10px;color:var(--muted);display:block;margin-top:5px}.inline-form{display:flex;align-items:flex-end;gap:12px;margin:26px 0}.inline-form label{flex:1;min-width:0}.inline-form .primary{font-size:12px;min-height:41px}.project-list{margin:22px 0}.project-item{display:flex;justify-content:space-between;align-items:flex-start;padding:16px 0;border-bottom:1px solid var(--line);gap:12px}.project-item>a{display:flex;align-items:center;gap:12px;min-width:0;flex:1}.project-item svg{color:var(--accent);width:20px;height:20px}.project-item strong{font-size:13px;font-weight:500;word-break:break-word}.project-item small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.project-item .text-button{font-size:10px}.storage-card{background:#121b25;border:1px solid var(--line);padding:15px;border-radius:9px;color:var(--muted);font-size:11px;line-height:1.8;margin:12px 0}.danger-zone{margin-top:30px;padding:20px;border:1px solid #a754544d;border-radius:11px;background:#d8606006}.danger-zone h3{color:var(--danger);font-size:13px;margin-bottom:10px}.danger-zone p{color:var(--muted);font-size:11px;line-height:1.8;margin-bottom:18px}.danger{color:#fce8e8;background:#a63e43;border:1px solid #c15c61;border-radius:8px;padding:10px 14px;font-size:12px;min-height:39px}.danger:hover{background:#b34a50}.info-card{display:flex;align-items:flex-start;gap:13px;border:1px solid var(--line);border-radius:10px;padding:17px;margin:23px 0 30px}.info-card svg{color:var(--accent);width:20px;height:20px}.info-card p{font-size:11px;color:var(--muted);line-height:1.7}.update-preview{padding:20px;border:1px solid #b8e6a340;border-radius:10px;background:#b8e6a309;margin:20px 0;font-size:12px;line-height:1.8}.update-preview strong{font-size:16px;color:var(--accent)}.update-preview .primary{display:flex;margin-top:15px;font-size:12px}.history-row{font-size:11px;padding:11px 0;border-bottom:1px solid var(--line);line-height:1.8}.auth-panel{position:absolute;inset:0;background:var(--sidebar);z-index:20;display:flex;align-items:center;justify-content:center;padding:25px;overflow:auto}.auth-card{width:330px;max-width:100%;display:flex;flex-direction:column;align-items:stretch}.auth-card>.brand-mark{margin:0 auto 25px;width:48px;height:48px}.auth-card>.eyebrow{text-align:center;margin-bottom:10px}.auth-card h2{font-size:26px;letter-spacing:-.6px;text-align:center;margin-bottom:12px}.auth-card>p.muted{text-align:center;font-size:12px;margin-bottom:25px}.auth-card label{font-size:11px;margin:0 0 8px}.auth-card>input{font-size:24px!important;text-align:center;letter-spacing:8px;height:51px!important}.auth-card>label[for=pin-repeat]{margin-top:16px}.auth-card>.primary{width:100%;font-size:12px;margin-top:13px}.auth-card>.text-button{margin:15px 0}.auth-card>small{font-size:9px;color:var(--muted);text-align:center;line-height:1.6}.form-error{font-size:11px;color:var(--danger);line-height:1.6;margin-top:12px;min-height:16px}.confirm-dialog{width:420px;max-width:calc(100vw - 30px);padding:30px}.danger-icon{width:43px;height:43px;background:#ce696920;border-radius:12px;color:var(--danger);display:flex;align-items:center;justify-content:center;margin-bottom:19px}.confirm-dialog h2{font-size:21px;margin-bottom:12px}.confirm-dialog p{color:var(--muted);font-size:12px;line-height:1.7;margin-bottom:20px}.confirm-dialog label{font-size:11px;margin:15px 0}.confirm-dialog .form-error{color:var(--danger);margin-bottom:10px}.confirm-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);z-index:150;background:#283646;color:var(--text);padding:14px 21px;border:1px solid #506277;border-radius:10px;font-size:12px;box-shadow:var(--shadow);max-width:calc(100vw - 30px);line-height:1.7;text-align:center}.toast.error{border-color:#a95b5b;color:#ffd2d2}.fallback-dialog[open]{position:fixed;inset:0;margin:auto;z-index:90}.fallback-dialog[open]:before{content:"";position:fixed;inset:-100vh -100vw;background:#03080e99;z-index:-1}
[data-theme=light]{color-scheme:light;--bg:#e6e9e6;--sidebar:#e2e7e2;--panel:#f5f7f3;--panel-raised:#e9eee7;--text:#26352d;--muted:#65776c;--line:#cdd7cf;--accent:#a6cf92;--accent-strong:#96bd83;--accent-ink:#1e3423;--danger:#a64b4b}[data-theme=light] .settings-scroll input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),[data-theme=light] select,[data-theme=light] .color-field,[data-theme=light] .mode-option,[data-theme=light] .media-card,[data-theme=light] .storage-card,[data-theme=light] .upload-zone,[data-theme=light] .auth-card input{background:#edf1eb}[data-theme=light] .settings-header .icon-button{color:var(--text)}
@media(min-width:1700px){.slides{inset:104px 7% 155px}.stage-header{padding:30px 45px}.stage-bottom{left:45px;right:45px;bottom:78px}.stage-meta strong{font-size:20px}.stage-footer{height:49px;padding:0 45px}.play-button{font-size:15px;padding:15px 24px}.stage-hint{font-size:12px}.stage-footer{font-size:11px}}
@media(max-width:1000px){.gate-art{left:calc(50% + 180px);opacity:.2}.settings-sidebar{width:195px;padding-left:12px;padding-right:12px}.settings-scroll{padding:23px}.settings-header{padding:24px 23px}.settings-footer{padding:14px 20px;gap:10px}.settings-footer>span{display:none}.mode-option{padding:12px 10px}.mode-option small{font-size:8px}.media-library{grid-template-columns:repeat(3,minmax(0,1fr))}.toolbar-actions{gap:8px}.stage-meta{max-width:25%}.stage-hint{max-width:23%}.stage-header{padding:20px}.stage-bottom{left:20px;right:20px}.stage-footer{padding:0 20px}.slides{inset:88px 4% 140px}.slide-layer{gap:15px}}
@media(max-width:700px){.settings-dialog{width:calc(100vw - 16px);height:calc(100svh - 16px);border-radius:12px}.settings-shell{flex-direction:column}.settings-sidebar{width:100%;border-right:0;border-bottom:1px solid var(--line);padding:0;background:var(--sidebar);flex-direction:row;min-height:58px;overflow-x:auto}.settings-sidebar>.brand,.sidebar-label,.settings-sidebar>strong,.sidebar-bottom{display:none}.settings-nav{flex-direction:row;gap:3px;padding:8px}.settings-nav button{font-size:0;padding:10px 16px;min-height:40px;flex-shrink:0}.settings-nav svg{width:19px;height:19px}.settings-nav .count-badge{font-size:9px;margin-left:0}.settings-main{min-height:0}.settings-header{padding:19px 19px 17px}.settings-header h2{font-size:23px}.settings-scroll{padding:20px 18px}.settings-footer{padding:12px;gap:8px}.settings-footer .primary,.settings-footer .secondary{font-size:10px;padding:10px;white-space:normal}.settings-footer .secondary svg{display:none}.settings-footer .primary svg{width:14px;height:14px}.mode-options{gap:7px}.mode-option{padding:11px 8px}.mode-option strong{font-size:10px;margin-top:13px}.mode-option small{font-size:8px}.mode-preview{width:51px;height:40px;gap:4px;margin-left:1px}.mode-option input{right:6px;top:6px;width:10px;height:10px}.form-grid{gap:18px 12px}.form-grid>label{font-size:11px}.unit-input input{padding-right:62px!important}.unit-input span{font-size:8px;right:8px;top:15px}.library-toolbar{flex-direction:column;gap:12px}.toolbar-actions{justify-content:flex-start}.media-library{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.media-card .thumb{height:76px}.media-card strong{font-size:9px}.inline-form{flex-direction:column;align-items:stretch}.inline-form label{width:100%}.notice{padding:11px 19px;font-size:10px}.stage-header{padding:15px;gap:12px}.stage-header .brand{font-size:19px;gap:6px}.stage-header .brand-mark{width:28px;height:28px;border-radius:8px}.stage-header .brand-mark svg{width:19px;height:19px}.header-divider{height:18px}.project-title{font-size:11px;max-width:23vw}.header-actions{gap:5px}.header-actions .status-pill{display:none}.icon-button{width:35px;height:35px;border-radius:8px}.icon-button svg{width:18px;height:18px}.stage-bottom{bottom:64px;left:15px;right:15px;min-height:65px;align-items:flex-end}.stage-meta{position:absolute;bottom:68px;left:0;max-width:85%}.stage-meta strong{font-size:14px}.stage-meta .eyebrow{display:none}.stage-meta>span:last-child{font-size:10px}.stage-hint{display:none}.playback-controls{bottom:0;gap:9px}.play-button{font-size:12px;padding:12px 16px}.stage-footer{font-size:9px;padding:0 15px;height:40px;gap:10px}.stage-footer>span:not(.version-text){display:none}.slides{inset:80px 5% 200px}.slide-layer{gap:15px}.slide-layer.mode-stack{padding:10px 12px;gap:22px 25px}.gate-content h1{font-size:29px}.gate-art{left:70%;top:40%;opacity:.12}.gate-content{padding:40px 0}.gate-content>.eyebrow{margin-bottom:32px}.gate-foot{margin-top:40px}.loading-card{bottom:145px;min-width:260px}.photo-decor.tl,.photo-decor.bl{left:-5px}.photo-decor.tr,.photo-decor.br{right:-5px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.photo-frame{transition:opacity .1s!important;transform:rotate(var(--rotation,0deg))!important}.slide-layer{transition:opacity .2s!important}.spinner{animation-duration:2s}.chrome{transition:none}}
