:root{font-family:"Segoe UI",Arial,sans-serif;color:#252521;background:#f7f6f2;font-size:14px;--ink:#252521;--green:#252521;--line:#deddd6;--muted:#696963;--paper:#fffefa}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,summary{touch-action:manipulation}button,a,input,select,summary{outline-offset:5px}:focus-visible{outline:2px solid #514f46}[hidden]{display:none!important}
header{max-width:1504px;margin:auto;padding:26px 48px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.wordmark{font-size:29px;font-weight:650;letter-spacing:-1.6px;border:0;color:var(--ink)}header nav{display:flex;gap:28px;align-items:center}.header-import{background:transparent;border:1px solid #b8b7af;padding:11px 18px}main{max-width:1504px;margin:auto;padding:0 48px}.intro{padding:42px 0 34px;display:flex;align-items:end;justify-content:space-between;gap:30px}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:600;margin:0 0 13px;color:var(--muted)}h1{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:clamp(32px,3.2vw,48px);letter-spacing:-1.7px;margin:0;line-height:1.15}.intro>p{font-size:13px;color:var(--muted);line-height:1.8;margin:0}h2{font-size:13px;font-weight:600;margin:0 0 20px}p{line-height:1.65}.layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:36px;align-items:start}.editor-controls{grid-column:2;grid-row:1;border-left:1px solid var(--line);padding-left:28px}.viewer-column{grid-column:1;grid-row:1;min-width:0}section{margin-bottom:28px}.editor-controls section{border-bottom:1px solid var(--line);padding-bottom:24px}.editor-controls .replay-settings{border:0}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.section-heading h2{margin:0}.step{font-size:10px;font-weight:400;color:var(--muted);margin-right:12px}.hint,.muted{font-size:12px;color:var(--muted)}.hint{margin:10px 0 0}.usb-source{font-size:11px!important;margin-bottom:5px;text-align:left}.badge{font-size:9px;letter-spacing:1.1px;color:var(--muted);white-space:nowrap}.viewer{background:#eeede7;padding:20px 24px 22px;min-height:500px;border:1px solid #e5e3db}.viewer>.section-heading{margin-bottom:20px}.viewer h2{font-weight:400;overflow-wrap:anywhere}video,#preview{display:block;width:100%;height:min(60vh,660px);min-height:340px;object-fit:contain;background:var(--paper)}#empty{min-height:440px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:35px;background:var(--paper)}#empty p{font-family:Georgia,serif;font-size:25px;letter-spacing:-.5px;margin:26px 0 10px}#empty>span{font-size:12px;line-height:1.7;color:var(--muted);max-width:240px}.paper-mark{width:96px;height:125px;border:1px solid #c8c5b9;transform:rotate(-7deg);display:grid;place-items:center;background:#faf9f5;box-shadow:5px 5px 0 #eae8df}.paper-mark span{font-family:Georgia,serif;font-size:46px;font-weight:400;color:#969084}
button{cursor:pointer;border:1px solid var(--line);border-radius:3px;padding:10px 14px;font-weight:500;color:var(--ink);background:#eae8df;min-height:40px;transition:background .15s}button:hover{background:#e0ddd3}button:disabled{opacity:.42;cursor:not-allowed}.secondary{background:transparent}.quiet{background:none;border:0;padding:5px 0;color:var(--muted);font-size:12px}.quiet:hover{background:none;color:var(--ink)}.primary{display:flex;align-items:center;justify-content:space-between;width:100%;background:var(--ink);border-color:var(--ink);color:white;padding:15px 18px;margin-top:22px}.primary:hover{background:#41413b}.primary span{font-size:19px}.creation-note{text-align:center;font-size:10px;color:var(--muted);margin:10px 0 0}label{display:block;font-size:11px;font-weight:500;margin:16px 0 7px}input:not([type=checkbox]):not([type=file]),select{display:block;width:100%;min-width:0;padding:11px 9px;border:1px solid #ceccc2;border-radius:3px;background:var(--paper);color:var(--ink)}.fields,.page-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.page-row{align-items:end}.page-row button{font-size:10px;text-align:right;width:100%;min-height:40px}.duration-field label{margin-top:0}details{border-top:1px solid var(--line);padding-top:16px;margin-top:18px}summary{cursor:pointer;font-size:12px;color:#494941;line-height:1.5}details[open]>summary{margin-bottom:18px}.advanced-options{margin-top:18px}.advanced-options .hint{font-size:11px}.checkbox{display:flex;align-items:center;gap:9px;font-weight:400;line-height:1.5}input[type=checkbox]{accent-color:var(--ink);width:16px;height:16px;flex-shrink:0}#notebook-preview{display:block;width:100%;height:150px;object-fit:contain;margin-top:16px;background:#eeede7;border:1px solid var(--line)}#notebook-preview-label{font-size:10px}#page-info{font-size:10px}#downloads{display:flex;align-items:center;flex-wrap:wrap;gap:20px;margin-top:20px}#downloads button{font-size:12px}a{font-size:12px;color:var(--ink);text-decoration:none;border-bottom:1px solid #9e9c91}a:hover{border-color:var(--ink)}#download-manifest{margin-left:auto;font-size:10px}progress{width:100%;height:5px;accent-color:var(--ink);margin-top:18px}#notice{padding:14px 18px;margin:0 0 24px;border-left:3px solid #82795f;background:#eeeadf;font-size:13px;white-space:pre-wrap}.history{padding-top:6px}.history .section-heading{padding-bottom:16px;border-bottom:1px solid var(--line)}#jobs{max-height:330px;overflow:auto;scrollbar-width:thin}.job{display:flex;gap:15px;align-items:center;padding:15px 0;border-bottom:1px solid #e6e4dc}.job .open{flex:1;text-align:left;min-width:0;border:0;background:none;padding:0;font-size:12px}.job small{display:block;font-size:10px;font-weight:400;color:var(--muted);margin-top:5px;line-height:1.6}.job .state{font-size:9px;text-transform:uppercase;letter-spacing:.5px;color:var(--muted)}footer{display:flex;justify-content:space-between;gap:20px;align-items:center;border-top:1px solid var(--line);padding:25px 0 10px;margin-top:30px;font-size:11px;color:var(--muted)}footer>span:first-child{font-size:16px;color:var(--ink);font-weight:600}.footer-note{font-size:11px;font-weight:400;color:var(--muted);margin-left:12px}.about{border:0;margin:0 0 30px;padding:0;text-align:right}.about summary{font-size:10px}.about p{font-size:12px;text-align:left;max-width:700px;margin-left:auto}
dialog{width:min(660px,calc(100vw - 32px));max-height:88vh;background:var(--paper);color:var(--ink);border:1px solid #c5c2b7;border-radius:5px;padding:30px;box-shadow:0 20px 80px #27251b26}dialog::backdrop{background:#29282066;backdrop-filter:blur(3px)}dialog h2{font-family:Georgia,serif;font-weight:400;font-size:24px;letter-spacing:-.5px}dialog p{font-size:13px}dialog .section-heading{border-bottom:1px solid var(--line);padding-bottom:20px}dialog button{margin-right:5px;margin-top:8px}.privacy-details{border-top:0;padding:0;margin:0 0 24px}.privacy-details summary{font-size:11px}#cloud-refresh{margin-top:24px}#cloud-status,#usb-status,#export-status{font-size:12px;line-height:1.6}.usb-toolbar{display:flex;gap:15px;align-items:center;margin-top:20px}.usb-item{display:flex;align-items:center;gap:12px;padding:14px 0;border-top:1px solid var(--line);flex-wrap:wrap}.usb-item span{flex:1;min-width:100px;overflow-wrap:anywhere;font-size:13px}.usb-item button{white-space:nowrap;font-size:11px}.notebook-thumbnail{width:72px;height:96px;object-fit:contain;background:white;border:1px solid var(--line)}#export-dialog{width:min(820px,calc(100vw - 32px))}#crop-canvas{display:block;max-width:100%;max-height:45vh;width:auto;height:auto;margin:18px auto;background:#eee;touch-action:none;cursor:crosshair}
@media(min-width:1600px){.layout{grid-template-columns:minmax(0,1fr) 340px;gap:48px}.editor-controls{padding-left:36px}}
@media(max-width:950px){header{padding:22px 24px}main{padding:0 24px}.layout{grid-template-columns:minmax(0,1fr) 280px;gap:24px}.editor-controls{padding-left:20px}.intro>p{display:none}.viewer{padding:16px}.viewer h2{font-size:12px}#empty{min-height:380px}#empty p{font-size:22px}}
@media(max-width:700px){header{padding:18px 20px}.wordmark{font-size:26px}header nav{gap:15px}header nav button{font-size:11px}.header-import{padding:9px 10px}main{padding:0 20px}.intro{padding:30px 0 25px}h1{font-size:34px}.eyebrow{font-size:9px}.layout{display:flex;flex-direction:column;gap:16px}.editor-controls{width:100%;border:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:20px}.editor-controls section{margin:0;padding:0;border:0}.viewer-column{width:100%}#notebook-preview{height:110px}.viewer{min-height:0;padding:16px}video,#preview{height:55vh;min-height:240px}#empty{min-height:300px;padding:25px}#downloads{gap:14px}footer{align-items:start;flex-direction:column;gap:10px;margin-top:20px}.about{text-align:left}dialog{padding:22px}.footer-note{display:inline}.creation-note{font-size:9px}.history{margin-top:28px}.page-row{grid-template-columns:1fr}.page-row button{text-align:left;min-height:25px}.page-row{gap:0}}
@media(max-width:420px){.editor-controls{grid-template-columns:1fr}.editor-controls section{padding-bottom:20px;border-bottom:1px solid var(--line)}.replay-settings h2{margin-bottom:12px}#notebook-preview{height:160px}.header-import{border:0;padding:5px 0}header nav{gap:12px}.primary{margin-top:16px}h1{font-size:31px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Keep the main action within reach on ordinary laptop displays. */
@media(min-width:701px){header{padding-top:20px;padding-bottom:20px}.intro{padding-top:28px;padding-bottom:26px}.editor-controls .section-heading{margin-bottom:8px}.editor-controls section{padding-bottom:18px;margin-bottom:18px}.editor-controls label{margin-top:12px}.editor-controls .usb-source{min-height:26px}.editor-controls #notebook-preview{height:90px;margin-top:10px}.editor-controls .primary{margin-top:16px}.editor-controls .advanced-options{margin-top:12px;padding-top:12px}.editor-controls h2{margin-bottom:12px}.editor-controls #page-info{line-height:1.5}.viewer-column video{height:58vh}}

.job .open{display:flex;align-items:center;gap:14px}.recent-preview{display:grid;place-items:center;flex:0 0 56px;width:56px;height:72px;background:var(--paper);border:1px solid var(--line);color:var(--muted);overflow:hidden}.recent-preview img{display:block;width:100%;height:100%;object-fit:contain}.recent-label{min-width:0;overflow-wrap:anywhere}@media(max-width:420px){.recent-preview{flex-basis:44px;width:44px;height:58px}.job .open{gap:10px}}
/* Gallery composition: notebook shelf, inline pages, focused inspector. */
header{max-width:none;padding:12px 38px}.wordmark{font-family:Georgia,serif;font-weight:400;font-size:36px;letter-spacing:-1.2px}main{max-width:none;padding:0 38px}.intro{display:block;padding:20px 0 30px}.intro h1{font-size:44px}.intro>p{display:block;font-size:18px;line-height:1.5;margin:4px 0 0}.gallery-layout{grid-template-columns:minmax(0,2.3fr) minmax(330px,1fr);gap:24px}.gallery-column{min-width:0}.gallery-toolbar{display:flex;align-items:center;gap:8px;margin-bottom:24px}.gallery-toolbar h2{font-family:Georgia,serif;font-size:23px;margin:0 auto 0 0;font-weight:400}.gallery-toolbar input{max-width:285px;margin-right:28px;min-height:34px!important;padding:7px 12px!important;background:transparent!important}.gallery-toolbar button{padding:4px 10px;min-height:34px;font-size:18px}.gallery-toolbar button[aria-pressed=true]{background:#e4e2db}.notebook-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;margin-bottom:18px}.notebook-card{position:relative;text-align:left;display:flex;flex-direction:column;min-width:0;background:transparent;padding:0 0 12px;border:1px solid var(--line);box-shadow:0 1px 2px #00000010;overflow:hidden}.notebook-card[aria-expanded=true]{border:1.5px solid var(--ink)}.notebook-cover{display:block;width:100%;height:clamp(130px,13vw,200px);background:#fdfcf9}.notebook-cover img{width:100%;height:100%;object-fit:contain}.notebook-name{font-size:14px;line-height:1.4;padding:8px 30px 0 14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.notebook-card small{font-size:11px;color:var(--muted);padding:2px 14px}.cover-arrow{position:absolute;bottom:25px;right:13px;font-size:22px}.notebook-card:hover{background:#eeece5}.notebook-gallery.list-view{grid-template-columns:1fr}.list-view .notebook-card{display:grid;grid-template-columns:60px 1fr;grid-template-rows:1fr 1fr;padding:8px;column-gap:10px}.list-view .notebook-cover{height:72px;grid-row:1/3}.list-view .notebook-name{align-self:end}.list-view .cover-arrow{bottom:30px}#page-drawer{background:#f1efea;border:1px solid var(--line);border-radius:5px;padding:14px 20px 12px;box-shadow:0 1px 3px #0000000d;margin-bottom:22px}#drawer-title{font-family:Georgia,serif;font-size:19px;font-weight:400;overflow-wrap:anywhere}#page-drawer .section-heading{margin-bottom:18px}.page-gallery{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:22px 24px}.page-card{padding:0;border:0;background:none;min-width:0;text-align:center;font-size:12px}.page-paper{display:block;position:relative;height:clamp(100px,8.6vw,140px);background:#fffefa;border:1px solid #dfddd5;border-radius:3px;box-shadow:0 1px 2px #0000000a;margin-bottom:6px}.page-paper img{width:100%;height:100%;object-fit:contain}.page-card[aria-pressed=true] .page-paper{border:1.5px solid #252521}.page-card[aria-pressed=true] .page-paper:after{content:'✓';position:absolute;right:5px;top:5px;border-radius:50%;background:#252521;color:white;font-size:9px;width:16px;height:16px;line-height:16px}.page-card:hover{background:none}.page-card:hover .page-paper{border-color:#77756c}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.gallery-layout .editor-controls{padding-left:28px}.selection-heading{position:relative;border:0!important;padding:0!important;margin:0 0 12px!important}.selection-heading h2{font-size:22px;margin:0!important}.selection-heading .usb-source{font-size:10px!important;min-height:22px}.selection-heading .page-row{display:flex;align-items:center;margin:0;padding-right:24px}.selection-heading label[for=page]{display:none}.selection-heading #page{border:0;background:none;padding:5px 0;width:135px;font-size:13px}.selection-heading #page-prev{margin-left:auto;order:3;font-size:24px;padding:0 10px}.selection-heading #page-next{position:absolute;right:0;bottom:0;font-size:24px;padding:0 6px}.selection-heading #page-info{font-size:11px;line-height:1.5}.selection-heading #pair-open{font-size:10px}.gallery-layout .viewer{border:0;background:none;padding:0;min-height:0;margin:0 0 15px}.gallery-layout .viewer>.section-heading{display:none}.gallery-layout #notebook-preview,.gallery-layout video,.gallery-layout #preview{width:100%;height:clamp(280px,34vw,430px);min-height:0;object-fit:contain;background:#fffefa;border:1px solid #dfddd5;margin:0}.gallery-layout #notebook-preview-label{font-size:10px;margin:6px 0 0}.gallery-layout #empty{min-height:300px;padding:25px}.gallery-layout #empty p{font-size:21px}.gallery-layout .replay-settings{margin:0;padding:0;border:0}.duration-field{display:flex;align-items:center;justify-content:space-between;gap:15px}.duration-field label{margin:0!important;font-size:13px}#seconds{position:absolute;width:1px!important;height:1px!important;clip:rect(0,0,0,0);overflow:hidden;padding:0!important;border:0!important}.duration-buttons{display:flex;flex:0 1 70%}.duration-buttons button{flex:1;border-radius:0;background:transparent;padding:7px 10px;min-height:32px;font-size:12px}.duration-buttons button[aria-pressed=true]{background:#252521;color:white;border-color:#252521}.replay-settings>label[for=ordering]{font-size:13px}.replay-settings>#ordering{font-size:12px;min-height:34px;padding:7px}.replay-settings .primary{margin-top:14px;padding:10px 16px;min-height:40px;justify-content:center;gap:14px;font-size:16px}.creation-note{font-size:11px;font-style:italic}.gallery-column .history{border-top:1px solid var(--line);padding-top:12px}.history .section-heading{border:0;margin-bottom:8px;padding:0}.history h2{font-family:Georgia,serif;font-size:20px}.history .hint{display:none}#jobs{display:flex;max-height:120px;gap:20px;overflow:auto}.job{min-width:290px;max-width:350px;padding:8px 15px 8px 0;border-bottom:0;border-right:1px solid var(--line)}.job .state{display:none}.job small{font-size:9px}.recent-preview{width:64px;flex-basis:64px;height:72px}#downloads{gap:10px;margin-top:10px}#download-manifest{display:none}#downloads>*{font-size:12px}footer{margin-top:22px;font-size:11px}.gallery-layout+#about{margin:0}
@media(max-width:1100px){main{padding:0 24px}header{padding:14px 24px}.notebook-gallery{gap:12px}.page-gallery{gap:16px 12px}.gallery-toolbar input{margin-right:0;max-width:180px}.gallery-layout{grid-template-columns:minmax(0,1.7fr) 320px}.gallery-toolbar h2{font-size:19px}.gallery-layout .editor-controls{padding-left:20px}.notebook-name{font-size:12px;padding-left:8px}.notebook-card small{padding-left:8px}}
@media(max-width:800px){.gallery-layout{display:flex;flex-direction:column}.gallery-column,.gallery-layout .editor-controls{width:100%;padding:0;border:0}.gallery-layout .editor-controls{display:block}.notebook-cover{height:160px}.page-gallery{grid-template-columns:repeat(4,1fr)}.page-paper{height:130px}.gallery-toolbar{flex-wrap:wrap}.gallery-toolbar input{margin-left:auto}.intro h1{font-size:35px}.intro>p{font-size:16px}.gallery-layout #notebook-preview,.gallery-layout video{height:400px}.gallery-layout .viewer{max-width:500px;margin:15px auto}.replay-settings{max-width:500px;margin:auto!important}.selection-heading{margin-top:20px!important}.gallery-layout .editor-controls section{border:0}.notebook-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){main{padding:0 18px}.page-gallery{grid-template-columns:repeat(3,1fr)}.page-paper{height:115px}.gallery-toolbar input{max-width:none;width:100%;order:4}.gallery-toolbar h2{margin-right:auto}.intro h1{font-size:30px}.notebook-cover{height:145px}header{padding:12px 18px}.wordmark{font-size:29px}}
#page-drawer{grid-column:1/-1;min-width:0}.page-gallery{max-height:340px;overflow-y:auto;overscroll-behavior:contain;padding:2px 8px 2px 2px;scrollbar-width:thin}.drawer-actions{display:flex;gap:20px;flex-shrink:0}#page-drawer.focused-notebook .page-gallery{max-height:65vh}.focused-notebook{margin-top:0!important}@media(max-width:800px){.page-gallery{max-height:460px}.drawer-actions{gap:12px}.drawer-actions button{font-size:10px}}@media(max-width:420px){.page-gallery{max-height:520px}#page-drawer .section-heading{align-items:start;flex-direction:column}}

/* Twelve page slots before the inline drawer scrolls, at every breakpoint. */
.page-gallery{--paper-height:clamp(100px,8.6vw,140px);--rows:2;--row-gap:22px;grid-auto-rows:calc(var(--paper-height) + 24px);row-gap:var(--row-gap);max-height:calc(var(--rows) * (var(--paper-height) + 24px) + (var(--rows) - 1) * var(--row-gap) + 4px)}.page-paper{height:var(--paper-height)}.page-card{line-height:18px}.page-card>span:last-child{display:block;height:18px}@media(max-width:1100px){.page-gallery{--row-gap:16px}}@media(max-width:800px){.page-gallery{--rows:3;--paper-height:130px}}@media(max-width:420px){.page-gallery{--rows:4;--paper-height:115px}}

.thumbnail-slot{display:block;position:relative;width:100%;height:100%}.thumbnail-status{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:7px;color:var(--muted);font-size:11px;padding:8px;text-align:center;background:#f2f0e9}.thumbnail-slot[data-state=running] .thumbnail-status:before{content:'';width:12px;height:12px;border:1.5px solid #ccc9be;border-top-color:var(--ink);border-radius:50%;animation:thumbnail-spin 1s linear infinite}.thumbnail-slot[data-state=failed] .thumbnail-status{color:#824b3c}.thumbnail-queue{margin:-8px 0 18px}.thumbnail-queue p{font-size:12px;color:var(--muted);margin:0 0 6px}.thumbnail-queue progress{display:block;margin:0;height:4px}@keyframes thumbnail-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.thumbnail-slot[data-state=running] .thumbnail-status:before{animation:none}}

.library-sources{display:flex;gap:8px;margin:0 0 22px}.library-sources button{background:transparent;font-size:12px}.library-sources button[aria-pressed=true]{background:var(--ink);color:white}.cloud-gallery-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:20px}.cloud-gallery-toolbar p{flex-basis:100%;font-size:13px;color:var(--muted);margin:0}.cloud-notebook-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:18px}.cloud-notebook-card{display:flex;flex-direction:column;gap:10px;border:1px solid var(--line);padding:14px;background:var(--paper)}.cloud-notebook-card>span{font-size:13px;overflow-wrap:anywhere;flex:1}.cloud-notebook-card .notebook-thumbnail{width:100%;height:150px;object-fit:contain}.cloud-notebook-card button{font-size:12px}.cloud-notebook-card button:last-child{background:var(--ink);color:white}

.history.queue-view #jobs{display:flex;flex-direction:column;max-height:none;gap:0;overflow:visible}.queue-view .job{max-width:none;min-width:0;width:100%;flex-wrap:wrap;border-right:0;border-bottom:1px solid var(--line);padding:18px 0}.queue-view .job .state{display:block}.queue-view .hint{display:block}.queue-view .job-error{flex-basis:100%;white-space:pre-wrap;overflow-wrap:anywhere;color:#8b3930}#queue-controls{margin-bottom:20px}#queue-controls select{max-width:240px}#queue-summary{font-size:13px;color:var(--muted)}

#page-replays{margin:18px 0;padding:0;border:0}#page-replays h2{font-size:15px}#page-replay-list{display:flex;flex-direction:column;gap:6px;max-height:240px;overflow:auto}.page-replay{display:flex;align-items:center;gap:12px;text-align:left;background:transparent;padding:8px;font-size:12px}.page-replay[aria-pressed=true]{border-color:var(--ink);background:#eeece5}.page-replay img{width:40px;height:48px;object-fit:contain;background:#fff}.page-replay small{display:block;margin-top:4px;color:var(--muted);font-size:10px}
