:root{color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,sans-serif;background:#f5f7fb;color:#1f2937}*{box-sizing:border-box}body{margin:0;min-height:100vh}.app-shell{min-height:100vh;display:flex;flex-direction:column}.topbar{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 1.5rem;border-bottom:1px solid #e2e8f0;background:#fff;position:sticky;top:0;z-index:10}.brand{font-weight:700;font-size:1.1rem}nav a{margin-left:1rem;color:#2563eb;text-decoration:none}nav a:hover{text-decoration:underline}.logout-btn{margin-left:1rem;background:none;border:1px solid #e2e8f0;color:#475569;padding:.25rem .75rem;border-radius:8px;cursor:pointer;font-size:.9rem;transition:background .15s,border-color .15s}.logout-btn:hover{background:#f1f5f9;border-color:#94a3b8}.login-page{display:flex;justify-content:center;align-items:center;min-height:60vh}.login-form{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:2rem;box-shadow:0 1px 3px #0f172a0f;width:100%;max-width:360px;display:flex;flex-direction:column;gap:.75rem}.login-form h1{margin:0 0 .5rem;font-size:1.25rem}.login-form label{font-size:.9rem;color:#475569}.login-form input[type=password]{padding:.5rem .75rem;border:1px solid #cbd5e1;border-radius:8px;font-size:1rem;outline:none;transition:border-color .15s}.login-form input[type=password]:focus{border-color:#2563eb}.page-container{flex:1;padding:1.5rem;max-width:1400px;width:100%;margin:0 auto}.app-shell.viewer-mode .page-container{padding:0;max-width:none;width:100%;margin:0}.app-shell.viewer-mode .topbar{display:none}.panel{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:1.5rem;margin-bottom:1.5rem;box-shadow:0 1px 3px #0f172a0f}.admin-page,.viewer-page{display:grid;gap:1.5rem}.viewer-page{min-height:100vh;width:100%}.viewer-panel{background:transparent;border:none;border-radius:0;padding:0;box-shadow:none;min-height:100vh}.slide-stage{width:100%;height:100vh;display:grid;place-items:center;background:#000;overflow:hidden;border-radius:0}.slide-stage.empty{width:100%;height:100vh;background:#000}.slide-stage img{width:100%;height:100%;object-fit:contain}.file-input-label{display:inline-flex;flex-direction:column;gap:.75rem;padding:1rem;border:1px dashed #cbd5e1;border-radius:12px;color:#475569;cursor:pointer;width:min(100%,420px)}.file-input-label input{display:block}.primary-button{background:#2563eb;border:none;color:#fff;padding:.9rem 1.2rem;border-radius:10px;cursor:pointer;font-weight:600;margin-top:1rem}.primary-button:hover{background:#1d4ed8}.upload-progress{margin-top:1rem;width:100%;height:12px;background:#e2e8f0;border-radius:999px;overflow:hidden}.progress-bar{height:100%;background:linear-gradient(90deg,#2563eb,#60a5fa);transition:width .2s ease}.status-row{margin-top:.75rem;display:flex;gap:1rem;align-items:center;flex-wrap:wrap}.error{color:#b91c1c}.slides-list{display:flex;flex-direction:column}.slide-thumb{display:flex;gap:.75rem;align-items:center;padding:.75rem;border-bottom:1px solid #e2e8f0;cursor:default}.slide-thumb[draggable=true]{cursor:grab}.slide-thumb[draggable=true]:active{cursor:grabbing}.drag-handle{flex-shrink:0;font-size:1.1rem;color:#94a3b8;cursor:grab;-webkit-user-select:none;user-select:none;padding:0 4px}.slide-number{flex-shrink:0;min-width:1.6rem;font-size:.8rem;font-weight:600;color:#64748b;text-align:right}.slide-thumb img,.timeline-item img{width:100px;height:64px;object-fit:contain;border-radius:8px;background:#f8fafc}.slide-meta{font-size:.95rem;color:#334155;flex:1}.slide-delete-btn{margin-left:auto;flex-shrink:0;background:none;border:none;cursor:pointer;color:#94a3b8;padding:.25rem;border-radius:6px;line-height:1;transition:color .15s,background .15s}.slide-delete-btn:hover{color:#b91c1c;background:#fee2e2}.danger-button{background:none;border:1px solid #fca5a5;color:#b91c1c;padding:.4rem 1rem;border-radius:8px;cursor:pointer;font-size:.9rem;transition:background .15s,border-color .15s}.danger-button:hover:not(:disabled){background:#fee2e2;border-color:#b91c1c}.danger-button:disabled{opacity:.4;cursor:not-allowed}.slides-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem}.empty-state{color:#475569;padding:1rem;border-radius:12px;background:#f8fafc}.not-found{display:flex;justify-content:center;align-items:center;min-height:40vh;color:#64748b}.timeline-item{display:flex;align-items:center;gap:.75rem;padding:.65rem;border-bottom:1px solid #e2e8f0}.timeline-item.active{background:#f1f5f9}.timeline-item span{width:28px;min-width:28px;text-align:center;color:#0f172a;font-weight:700}
