.undo-demo{max-width:860px;min-width:0;margin-top:24px}.lesson-content .undo-demo-note,.undo-dialog-content .undo-demo-note{font-size:12px;line-height:1.8;color:#536174;margin-top:12px}.undo-failure{display:flex;align-items:flex-start;gap:12px;font-size:14px;line-height:1.8;min-height:44px;margin:20px 0;cursor:pointer}.undo-failure input{width:18px;height:18px;flex-shrink:0;accent-color:#2558ed;margin-top:4px}.undo-danger-zone,.undo-task-panel{padding:24px;border:1px solid #c5d0e2;border-radius:12px;background:#f3f6fb;margin-top:20px;min-width:0}.lesson-content .undo-kicker{font:9px/1.9 monospace;color:#536174;letter-spacing:.08em;margin:0}.lesson-content .undo-danger-zone h3,.lesson-content .undo-task-panel h3{font:500 26px/1.4 system-ui,sans-serif;margin:12px 0 0;scroll-margin-top:110px}.undo-task-list{list-style:none;padding:0;margin:18px 0 0}.undo-task-list li{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:16px 0;border-top:1px solid #cbd5e5}.undo-task-list li>span{font-size:15px;line-height:1.7;flex:1 1 220px;overflow-wrap:anywhere}.undo-confirm-dialog button,.undo-demo button{min-height:44px;padding:10px 14px;border:1px solid #748199;border-radius:7px;background:white;color:#263851;font-size:13px;line-height:1.7;max-width:100%;overflow-wrap:anywhere}.lesson-content .undo-status{font-size:14px;line-height:1.8;color:#27477e;margin-top:16px}.lesson-content .undo-error,.undo-dialog-content .undo-error{font-size:13px;line-height:1.8;color:#96351c;margin-top:12px}.undo-error:empty,.undo-status:empty{margin:0}.undo-notice{padding:20px;border:1px solid #aebfe5;background:#e5edff;border-radius:8px;margin-top:18px}.lesson-content .undo-notice>p{font-size:14px;line-height:1.8;margin:0 0 12px}.undo-notice button{margin:4px 8px 4px 0}.undo-notice button:first-of-type{background:#2558ed;border-color:#2558ed;color:white}.undo-demo button.undo-quiet{background:transparent;border:0;text-decoration:underline;text-underline-offset:4px;padding-left:0}.undo-archive{margin-top:24px;padding-top:20px;border-top:1px solid #bdc9dd}.lesson-content .undo-archive h4{font-size:17px;font-weight:600;margin:0}.lesson-content .undo-empty{font-size:14px;line-height:1.8;margin-top:20px}.undo-danger-zone{border-color:#d8b4a8;background:#fff9f6}.lesson-content .undo-danger-zone>p:not(.undo-kicker){font-size:14px;line-height:1.8;margin-top:12px;color:#536174}.undo-danger-zone button{margin-top:18px}.undo-confirm-dialog button.undo-danger,.undo-demo button.undo-danger{background:#a83620;border-color:#a83620;color:white}.undo-demo button.undo-reset{margin-top:20px}.undo-confirm-dialog button:disabled,.undo-demo button:disabled{opacity:.6;cursor:wait}.undo-confirm-dialog{position:fixed;inset:0;margin:auto;width:480px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:0;border:1px solid #aebdd6;border-radius:14px;background:white;color:#172131;overflow:auto;overscroll-behavior:contain}.undo-confirm-dialog::backdrop{background:#101a30a6}.undo-dialog-content{padding:24px}.undo-dialog-content h3{font:500 25px/1.4 system-ui,sans-serif;margin:0}.undo-dialog-content p{font-size:14px;line-height:1.8;color:#536174;margin-top:16px}.undo-confirm-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}.undo-confirm-actions button{flex:1 1 160px}.undo-confirm-dialog button.undo-cancel{border:2px solid #2558ed;color:#2048bc;font-weight:600}.undo-confirm-dialog button:focus-visible,.undo-demo :is(button,input,h3):focus-visible{outline:3px solid #2558ed;outline-offset:3px}@media(max-width:640px){.undo-danger-zone,.undo-dialog-content,.undo-task-panel{padding:18px}.undo-notice{padding:16px}.undo-task-list li>span{flex-basis:100%}.undo-task-list button{width:100%;text-align:left}}