:root{color:#25233a;font-synthesis:none;text-rendering:optimizelegibility;--primary:#6046d7;--primary-dark:#4f38b8;--border:#dfdbe9;--muted:#686477;background:#f7f6fb;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button,input,select{font:inherit}:where(.auth-card,.app-shell,.editor-header,.editor-state,.editor-message) button{color:#fff;background:var(--primary);cursor:pointer;border:0;border-radius:10px;padding:.76rem 1rem;font-size:.95rem;font-weight:650;line-height:1.2;transition:background .12s,transform .12s}:where(.auth-card,.app-shell,.editor-header,.editor-state,.editor-message) button:hover:not(:disabled){background:var(--primary-dark)}:where(.auth-card,.app-shell,.editor-header,.editor-state,.editor-message) button:active:not(:disabled){transform:translateY(1px)}:where(.auth-card,.app-shell,.editor-header,.editor-state,.editor-message) button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,a:focus-visible{outline-offset:3px;outline:3px solid #ad9cf5}:where(.auth-card,.app-shell,.editor-header,.editor-state,.editor-message) button:disabled{cursor:not-allowed;opacity:.65}:where(.auth-card,.app-shell,.editor-header,.editor-state,.editor-message) button.secondary{color:#34323c;background:#ebe9f3}:where(.auth-card,.app-shell,.editor-header,.editor-state,.editor-message) button.secondary:hover:not(:disabled){background:#ded9ee}:where(.auth-card,.app-shell,.editor-header,.editor-state,.editor-message) button.danger{background:#a32337}:where(.auth-card,.app-shell,.editor-header,.editor-state,.editor-message) button.danger:hover:not(:disabled){background:#86182a}.centered-page{place-items:center;min-height:100vh;padding:1.5rem;display:grid}.auth-card{border:1px solid var(--border);background:#fff;border-radius:18px;width:min(100%,420px);padding:2rem;box-shadow:0 18px 50px #3127591a}.auth-card h1{margin:.75rem 0 .25rem}.auth-card p{color:var(--muted)}.auth-card form{gap:1rem;margin-top:1.5rem;display:grid}.auth-card label:not(.checkbox-row){gap:.45rem;font-weight:650;display:grid}.auth-card input[type=email],.auth-card input[type=password],.action-dialog input,.list-controls input,.list-controls select{width:100%;color:inherit;background:#fff;border:1px solid #c8c3d7;border-radius:10px;padding:.8rem .9rem}.auth-card input:focus{border-color:var(--primary)}.brand-mark{color:#fff;background:var(--primary);border-radius:12px;place-items:center;width:42px;height:42px;font-size:1.4rem;display:grid}.checkbox-row{align-items:center;gap:.55rem;display:flex}.form-error{margin:0;color:#b42318!important}.app-shell{width:min(1220px,100% - 3rem);margin:0 auto;padding:2.5rem 0 5rem}.topbar{justify-content:space-between;align-items:center;gap:2rem;display:flex}.topbar h1{margin:.25rem 0 0;font-size:clamp(1.9rem,4vw,2.65rem);line-height:1.1}.eyebrow{color:var(--primary);letter-spacing:.12em;text-transform:uppercase;font-size:.8rem;font-weight:800}.account-actions{align-items:center;gap:1rem;display:flex}.account-actions span{color:var(--muted);overflow-wrap:anywhere;font-size:.9rem}.section-nav{border-bottom:1px solid var(--border);gap:.4rem;margin:2rem 0 2.2rem;padding-bottom:.45rem;display:flex}.section-nav a{color:var(--muted);border-radius:10px;align-items:center;padding:.8rem 1.1rem;font-weight:650;text-decoration:none;display:inline-flex}.section-nav a:hover{color:var(--primary-dark);background:#eeebf9}.section-nav a.active{color:var(--primary-dark);background:#eae5fb}.dashboard-toolbar{justify-content:space-between;align-items:center;gap:1rem;display:flex}.dashboard-actions{flex-wrap:wrap;align-items:center;gap:.65rem;display:flex}.visually-hidden{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.toolbar-copy h2{margin:0;font-size:1.45rem}.toolbar-copy p{color:var(--muted);margin:.35rem 0 0;font-size:.9rem}.list-controls{align-items:end;gap:1rem;margin:1.6rem 0 1.2rem;display:flex}.list-controls label{color:#494558;gap:.45rem;font-size:.88rem;font-weight:650;display:grid}.search-field{width:min(100%,370px)}.sort-field{width:min(100%,250px)}.list-controls input,.list-controls select{min-height:46px}.canvas-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:1.25rem;display:grid}.canvas-card,.canvas-skeleton{border:1px solid var(--border);background:#fff;border-radius:16px;min-width:0;overflow:visible;box-shadow:0 7px 24px #2a22520a}.canvas-preview{border-bottom:1px solid var(--border);background-color:#fbfaff;background-image:linear-gradient(#eeeaf8 1px,#0000 1px),linear-gradient(90deg,#eeeaf8 1px,#0000 1px);background-size:22px 22px;border-radius:16px 16px 0 0;place-items:center;height:168px;display:grid}.canvas-preview img{object-fit:contain;width:100%;height:100%}.preview-mark{width:54px;height:54px;color:var(--primary);background:#fff;border:1px solid #d8cef7;border-radius:16px;place-items:center;font-size:1.55rem;display:grid;box-shadow:0 5px 20px #452aa014}.canvas-card-body{padding:1.15rem 1.2rem 1.25rem}.canvas-card-heading{justify-content:space-between;align-items:start;gap:.6rem;display:flex}.canvas-card h2{overflow-wrap:anywhere;min-width:0;margin:0;font-size:1.08rem;line-height:1.4}.canvas-card h2 a{color:inherit;text-decoration:none}.canvas-card h2 a:hover{color:var(--primary-dark);text-decoration:underline}.canvas-open-link{color:var(--primary-dark);margin-top:1rem;font-size:.9rem;font-weight:650;text-decoration:none;display:inline-flex}.canvas-open-link:hover{text-decoration:underline}.canvas-meta{color:var(--muted);margin:.7rem 0 0;font-size:.84rem;line-height:1.5}.canvas-menu{flex:none;position:relative}.canvas-menu summary{color:var(--primary-dark);cursor:pointer;border-radius:6px;padding:.25rem .45rem;font-size:.88rem;font-weight:650;list-style:none;display:inline-flex}.canvas-menu summary::-webkit-details-marker{display:none}.canvas-menu summary:hover{background:#f0ecfb}.canvas-menu-items{z-index:3;border:1px solid var(--border);background:#fff;border-radius:10px;width:max-content;min-width:190px;padding:.35rem;display:grid;position:absolute;top:calc(100% + .4rem);right:0;box-shadow:0 12px 32px #2a225229}.canvas-menu-items button{color:#333047;text-align:left;background:0 0;padding:.65rem .75rem;font-size:.9rem;font-weight:550}.canvas-menu-items button:hover:not(:disabled){color:var(--primary-dark);background:#f2effb}.canvas-menu-items button.text-danger{color:#a32337}.canvas-menu-items button.text-danger:hover:not(:disabled){color:#86182a;background:#fdf0f2}.empty-state{text-align:center;background:#fff;border:1px dashed #bbb5cf;border-radius:18px;margin-top:1.2rem;padding:3.4rem 1.5rem}.empty-state h2{margin:0 0 .6rem;font-size:1.25rem}.empty-state p{max-width:580px;color:var(--muted);margin:0 auto 1.3rem;line-height:1.6}.canvas-skeleton{background:linear-gradient(110deg,#f1eef8 15%,#faf9fd 30%,#f1eef8 45%) 0 0/200% 100%;min-height:260px;animation:1.4s linear infinite skeleton-pulse}@keyframes skeleton-pulse{to{background-position-x:-200%}}.refresh-status{color:var(--muted);margin-top:1rem;font-size:.88rem}.notice{color:#1e613a;background:#f0faf3;border:1px solid #bed8c8;border-radius:10px;justify-content:space-between;align-items:center;gap:1rem;margin-top:1.3rem;padding:.8rem .95rem;line-height:1.5;display:flex}.notice.error{color:#8c2131;background:#fff4f5;border-color:#ecc1c8}.notice-close,.notice-close:hover:not(:disabled){color:inherit;background:0 0;flex:none;padding:.1rem .3rem;font-size:1.3rem}.dialog-backdrop{z-index:10;background:#1f173a7a;place-items:center;padding:1rem;display:grid;position:fixed;inset:0;overflow-y:auto}.action-dialog{border:1px solid var(--border);background:#fff;border-radius:18px;width:min(100%,460px);padding:1.7rem;box-shadow:0 22px 80px #160f3640}.action-dialog h2{margin:0 0 1.1rem;font-size:1.3rem}.field-label{gap:.5rem;font-weight:650;display:grid}.dialog-description{color:#4b475b;margin:0 0 1.4rem;line-height:1.6}.dialog-buttons{flex-wrap:wrap;justify-content:flex-end;gap:.65rem;margin-top:1.4rem;display:flex}.editor-shell{background:#fff;flex-direction:column;height:100dvh;min-height:480px;display:flex;overflow:hidden}.editor-header{z-index:2;border-bottom:1px solid var(--border);background:#fff;flex-wrap:wrap;flex:none;justify-content:space-between;align-items:center;gap:1rem;min-height:76px;padding:.8rem 1.3rem;display:flex}.editor-header>button{flex:none}.editor-heading{text-align:center;flex:150px;min-width:0}.editor-heading h1{text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:1.1rem;line-height:1.3;overflow:hidden}.editor-save-status{color:var(--muted);margin-top:.15rem;font-size:.84rem;display:block}.editor-save-status.error{color:#a32337}.editor-message{z-index:2;color:#8c2131;background:#fff4f5;border-bottom:1px solid #ecc1c8;flex:none;justify-content:space-between;align-items:center;gap:1rem;padding:.65rem 1.3rem;line-height:1.45;display:flex}.editor-message button{flex:none}.editor-message-actions{flex-wrap:wrap;gap:.5rem;display:flex}.excalidraw-stage{flex:1;min-height:0;position:relative;overflow:hidden}.excalidraw-stage .excalidraw{height:100%}.editor-state{border:1px solid var(--border);background:#fff;border-radius:18px;width:min(100%,480px);padding:2rem;box-shadow:0 18px 50px #3127591a}.editor-state h1{margin:0 0 .8rem;font-size:1.4rem}.editor-state p{color:var(--muted);line-height:1.6}.editor-state-actions{flex-wrap:wrap;gap:.6rem;margin-top:1.3rem;display:flex}.recovery-draft{border:1px solid var(--border);border-radius:12px;margin-top:1rem;padding:1rem}.recovery-draft .editor-state-actions{margin-top:.75rem}@media (width<=700px){.app-shell{width:min(100% - 2rem,1220px);padding-top:1.5rem}.topbar,.account-actions{flex-direction:column;align-items:flex-start;gap:.8rem}.section-nav{margin:1.4rem 0 1.6rem}.dashboard-toolbar{flex-direction:column;align-items:flex-start}.list-controls{flex-direction:column;align-items:stretch}.search-field,.sort-field{width:100%}.empty-state{padding:2rem 1.25rem}.editor-header{gap:.5rem;min-height:72px;padding:.55rem}.editor-header button{padding:.65rem .7rem;font-size:.84rem}.editor-heading h1{font-size:.95rem}.editor-heading{flex-basis:100%;order:-1}.editor-save-status{font-size:.75rem}.editor-message{flex-direction:column;align-items:flex-start;gap:.5rem;padding:.6rem;font-size:.88rem}}@media (prefers-reduced-motion:reduce){:where(.auth-card,.app-shell,.editor-header,.editor-state,.editor-message) button{transition:none}.canvas-skeleton{animation:none}}.history-page{padding:1rem}.history-layout{grid-template-columns:minmax(230px,320px) minmax(0,1fr);gap:1.5rem;margin-top:1rem;display:grid}.checkpoint-form,.revision-actions{flex-wrap:wrap;align-items:center;gap:1rem;margin:1rem 0;display:flex}.checkpoint-form label{gap:.5rem;display:grid}.checkpoint-form input{border:1px solid var(--border);border-radius:8px;padding:.65rem}:where(.checkpoint-form,.revision-list,.revision-actions) button{color:#fff;background:var(--primary);cursor:pointer;border:0;border-radius:10px;padding:.76rem 1rem;font-weight:650}:where(.checkpoint-form,.revision-list,.revision-actions) button:hover:not(:disabled){background:var(--primary-dark)}:where(.checkpoint-form,.revision-list,.revision-actions) button:disabled{opacity:.65;cursor:not-allowed}.revision-list button.secondary{color:#34323c;background:#ebe9f3}.revision-list button.secondary:hover:not(:disabled){background:#ded9ee}.history-page button:focus-visible{outline-offset:3px;outline:3px solid #ad9cf5}.revision-list{flex-direction:column;gap:.6rem;display:flex}.revision-item{text-align:left;overflow-wrap:anywhere;flex-direction:column;gap:.5rem;display:flex}.revision-item[aria-pressed=true]{outline:2px solid #6750a4}.revision-item span{font-size:.8rem}.revision-preview{border:1px solid #ddd;height:65vh;min-height:320px}@media (width<=760px){.history-layout{grid-template-columns:1fr}}
