@font-face{font-family:BookNoto;src:url("fonts/Book-NotoSans-Regular.ttf") format("truetype");font-weight:400;font-display:swap}.book-canvas{font-family:BookNoto,sans-serif}
.book-studio{--book-blue:#002d72;--book-orange:#ff5910;box-sizing:border-box;width:min(1500px,98vw);max-width:98vw;height:96dvh;max-height:96dvh;padding:20px;border:1px solid #dbe3ef;border-radius:22px;background:#f6f8fc;color:#002d72;overflow:auto;font:15px/1.45 system-ui,sans-serif}
.book-studio *{box-sizing:border-box}.book-studio::backdrop{background:#001938a8}.book-studio button,.book-studio input,.book-studio select,.book-studio textarea{font:inherit;border:1px solid #ced8e6;border-radius:10px;background:white;color:#002d72;padding:10px;max-width:100%}.book-studio button{cursor:pointer;min-height:42px}.book-studio button:hover{border-color:#002d72;background:#edf3fb}.book-studio button:focus-visible,.book-studio input:focus-visible,.book-studio textarea:focus-visible,.book-studio select:focus-visible{outline:3px solid #ff5910;outline-offset:2px}.book-studio button.primary{background:#002d72;color:white;border-color:#002d72}.book-studio button:disabled{opacity:.5;cursor:wait}.book-studio [hidden]{display:none!important}.book-studio label{display:flex;flex-direction:column;gap:5px;font-size:13px}.book-studio h1,.book-studio h3{margin:10px 0}.book-studio p{margin:8px 0}.book-head{display:flex;justify-content:space-between;align-items:center;gap:16px}.book-brand{font-size:24px;font-weight:750}.book-status{min-height:30px;padding:6px 0;font-size:14px}.book-studio[aria-busy=true] .book-status:before{content:'';display:inline-block;width:16px;height:16px;border:3px solid #ced8e6;border-top-color:#ff5910;border-radius:50%;animation:bookspin .8s linear infinite;margin-right:8px}.book-studio[aria-busy=true] .book-canvas{pointer-events:none}.book-start{max-width:950px;margin:30px auto}.book-start>label{margin:15px 0}.book-template-list{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:24px 0}.book-template-list button{display:flex;flex-direction:column;text-align:left;gap:10px;padding:15px}.book-studio [aria-pressed=true]{border-color:#ff5910;box-shadow:inset 0 0 0 1px #ff5910}.book-template-sample{height:140px;width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:20px;background:#f2f5fa;border-radius:6px}.book-template-sample i{background:#002d72;border-radius:2px}.book-template-sample i:first-child{grid-column:span 2;height:15px;background:#ff5910}.book-template-sample.journal{background:#fff0d8}.book-template-sample.journal i:not(:first-child){transform:rotate(-6deg)}.book-template-sample.mosaic i{background:#93abc9}.book-template-list span:last-child{font-size:13px}.book-start details{padding:14px;border:1px solid #dbe3ef;border-radius:10px}.book-start details label{flex-direction:row;align-items:center}.book-start-actions{display:flex;gap:12px;margin:20px 0}.book-toolbar,.book-actions,.book-page-actions,.book-library-tabs{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.book-toolbar label:first-child{flex:1;min-width:160px}.book-toolbar{align-items:end}.book-actions{margin:12px 0}.book-pages{display:flex;gap:8px;overflow:auto;padding:10px 0;max-width:100%}.book-pages button{white-space:nowrap;flex-shrink:0}.book-pages [aria-current=true]{background:#002d72;color:white}.book-grid{display:grid;grid-template-columns:240px minmax(250px,1fr) 230px;gap:18px;margin-top:12px;align-items:start}.book-grid.is-preview{grid-template-columns:1fr}.book-library,.book-inspector{background:white;border-radius:14px;padding:14px;max-height:68dvh;overflow:auto}.book-library>button,.book-inspector>button{display:block;margin:8px 0;width:100%}.book-inspector label{margin-bottom:10px}.book-center{min-width:0;display:flex;flex-direction:column;align-items:center;gap:14px;padding:14px;background:#e7edf5;border-radius:14px}.book-center>small{font-size:11px;text-align:center}.book-canvas{position:relative;width:100%;max-width:670px;background:white;box-shadow:0 10px 30px #00193822;overflow:hidden;container-type:inline-size;flex-shrink:0}.book-element{position:absolute;touch-action:none;cursor:move;outline:1px solid transparent;outline-offset:3px;z-index:auto}.book-element.selected{outline:2px solid #ff5910}.book-element.selected:after{content:'';position:absolute;width:8px;height:8px;border-radius:50%;background:#ff5910;right:-6px;bottom:-6px}.book-element img{width:100%;height:100%;object-fit:contain;display:block;pointer-events:none;user-select:none}.book-element>div{pointer-events:none}.book-element.overflow{outline:2px dashed #bb2525}.book-page-footer{position:absolute;bottom:0.5%;left:1.4%;font-size:.84cqw;color:#646e78;pointer-events:none}.book-media{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.book-media button{width:100%;padding:5px;text-align:left;font-size:11px}.book-media img{width:100%;height:86px;object-fit:cover;border-radius:6px;display:block}.book-media span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.book-library-tabs button{font-size:12px;padding:6px}.book-page-actions{justify-content:center;font-size:12px}.book-page-actions button{font-size:12px;padding:7px}.book-warning{color:#9b3c00;font-size:12px}.book-numbers{display:grid;grid-template-columns:1fr 1fr;gap:8px}.book-studio textarea{resize:vertical;min-height:100px;width:100%}@keyframes bookspin{to{transform:rotate(360deg)}}
@media(max-width:1000px){.book-grid{grid-template-columns:190px minmax(230px,1fr)}.book-inspector{grid-column:1/-1;max-height:none}.book-inspector>button{width:auto;display:inline-block;margin-right:6px}.book-numbers{grid-template-columns:repeat(5,1fr)}}
@media(max-width:640px){.book-studio{padding:12px;border-radius:16px}.book-brand{font-size:20px}.book-start{margin:12px 0}.book-template-list{gap:6px}.book-template-list button{padding:8px}.book-template-sample{height:90px;padding:12px}.book-template-list span:last-child{font-size:11px}.book-grid{display:flex;flex-direction:column}.book-center{order:0;width:100%;padding:10px}.book-inspector{order:1;width:100%;padding:12px}.book-library{order:2;width:100%;max-height:380px}.book-media{grid-template-columns:repeat(4,1fr)}.book-numbers{grid-template-columns:repeat(2,1fr)}.book-toolbar label{flex:1;min-width:130px}.book-actions button{font-size:12px;padding:8px}.book-start-actions{flex-direction:column}.book-template-list strong{font-size:13px}.book-studio h1{font-size:25px}}
@media(prefers-reduced-motion:reduce){.book-studio[aria-busy=true] .book-status:before{animation:none}}

.book-studio .book-resize{position:absolute;right:-4px;bottom:-4px;min-height:26px;width:26px;height:26px;padding:0;background:#ff5910;color:white;border:0;border-radius:5px;touch-action:none;cursor:nwse-resize;z-index:2}.book-element.selected:after{display:none}

.book-template-preview{display:flex;width:100%;aspect-ratio:1.35;background:#e8edf4;align-items:center;justify-content:center;padding:18px;gap:1px;border-radius:8px;overflow:hidden}.book-mini-page{position:relative;background:white;width:75%;height:100%;box-shadow:0 3px 9px #002d7220;padding:8%;display:flex;flex-direction:column;gap:8px}.spread .book-mini-page{width:50%;padding:4%}.book-mini-title{font-size:10px!important;letter-spacing:.1em;font-weight:700;white-space:normal!important}.book-mini-gallery{display:grid;grid-template-columns:repeat(2,1fr);gap:5px;flex:1;min-height:0}.cover .book-mini-gallery,.minimal .book-mini-gallery{grid-template-columns:1fr}.book-mini-photo{min-height:20px;overflow:hidden;background:linear-gradient(150deg,#a5ccd9 45%,#002d72 46%,#ffb68f 80%)}.book-mini-photo img{width:100%;height:100%;object-fit:cover}.book-mini-caption{font-size:7px!important;white-space:normal!important}.journal .book-mini-page,.postcard .book-mini-page{background:#fff7ea}.postcard .book-mini-photo{border:4px solid white;transform:rotate(-6deg)}.editorial .book-mini-photo:first-child{grid-row:span 2}.minimal .book-mini-title{font-size:14px!important}.book-preview-controls{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}.book-image-state{display:flex!important;flex-direction:column;white-space:normal!important;font-size:12px;padding:6px;background:#fff7ea;color:#002d72}.book-element>.book-image-state{position:absolute;inset:0;align-items:center;justify-content:center}.book-image-state button{font-size:12px;padding:5px}.book-template-list button{overflow:hidden}.book-mini-page span{display:block}.book-mini-page .book-mini-gallery{display:grid}
@media(max-width:640px){.book-template-list{grid-template-columns:repeat(2,minmax(0,1fr))}.book-template-preview{padding:10px;aspect-ratio:1}.book-mini-title{font-size:8px!important}.book-mini-caption{font-size:6px!important}}

.book-purchase{width:min(580px,95vw);height:auto;max-height:90dvh}.book-purchase>label{margin:12px 0}.book-test-link{padding:12px;background:#002d72;color:white;border-radius:10px}

.cover.mosaic .book-mini-gallery{grid-template-columns:repeat(2,1fr)}.cover.postcard .book-mini-gallery,.cover.journal .book-mini-gallery{grid-template-columns:repeat(2,1fr)}.cover.minimal .book-mini-gallery{margin:8%}.cover.editorial .book-mini-title{max-width:45%;font-size:12px!important}.cover.editorial .book-mini-gallery{margin-left:40%;margin-top:-18%}

/* Canvas-first studio: compact tools, contextual dialogs, no stacked side forms. */
.book-editor{position:relative;display:flex;flex-direction:column;gap:10px}
.book-editor .book-grid,.book-editor .book-grid.is-preview{display:block;margin:0}
.book-editor .book-center{background:radial-gradient(ellipse at top,#edf2f8,#dce5f0);padding:24px;gap:18px}
.book-creation-tools{display:flex;justify-content:center;gap:10px;background:#fff;border:1px solid #dbe3ef;border-radius:18px;padding:8px;align-self:center;box-shadow:0 6px 18px #002d720a}
.book-editor .book-actions{justify-content:center;margin:0;gap:8px}
.book-studio .book-icon{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;padding:10px;border-radius:12px;flex-shrink:0}
.book-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.book-editor .book-pages{padding:5px 0;gap:6px}
.book-editor .book-pages button{font-size:12px;min-height:44px}
.book-tool-dialog{color:#002d72;background:#fff;border:1px solid #dbe3ef;border-radius:22px;width:min(620px,94vw);max-width:94vw;max-height:86dvh;padding:22px;box-shadow:0 24px 80px #00193844;overflow:auto}
.book-tool-dialog::backdrop{background:#00193880}
.book-tool-head{display:flex;align-items:center;justify-content:space-between;gap:14px;position:sticky;top:-22px;background:#fff;padding:8px 0;z-index:3}
.book-tool-head h2{font-size:21px;margin:0}
.book-tool-dialog .book-library,.book-tool-dialog .book-inspector{padding:0;max-height:none;width:100%;overflow:visible}
.book-tool-dialog .book-library>h3,.book-tool-dialog .book-inspector>h3{display:none}
.book-tool-dialog .book-toolbar{display:grid;grid-template-columns:1fr;gap:18px;padding-top:16px}
.book-tool-dialog .book-toolbar label{min-width:0;font-size:14px}
.book-tool-dialog .book-numbers{grid-template-columns:1fr 1fr}
.book-tool-dialog .book-media{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.book-tool-dialog .book-media img{height:112px}
.book-tool-dialog .book-library-tabs{margin:14px 0}
.book-tool-dialog .book-library-tabs button{flex:1;min-height:44px;font-size:13px}
.book-tool-dialog .book-inspector>button{display:inline-block;width:auto;margin:6px 6px 6px 0}
.book-tool-dialog input,.book-tool-dialog select{min-height:44px}
.book-editor .book-canvas{max-width:640px}
@media(max-width:640px){.book-editor{gap:8px}.book-editor .book-center{padding:12px}.book-editor .book-actions{gap:5px}.book-studio .book-icon{width:44px;height:44px;padding:10px}.book-creation-tools{gap:8px;padding:6px}.book-tool-dialog{padding:16px;border-radius:18px}.book-tool-head{top:-16px}.book-tool-dialog .book-media{grid-template-columns:repeat(2,minmax(0,1fr))}.book-editor .book-page-actions{gap:5px}.book-tool-head h2{font-size:19px}}

.book-selection-tools{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;font-size:12px}.book-selection-tools>span{flex-basis:100%;text-align:center}.book-selection-tools:empty{display:none}

/* Print preparation: use the existing theme colors in light and dark modes. */
.book-print-readiness{border-inline-start:4px solid #ff5910;padding:12px 16px;margin:12px 0;background:rgba(255,89,16,.08)}
.book-print-readiness p{margin:8px 0}.book-print-readiness button{white-space:normal;max-width:100%}

/* Waynture album workshop: paper stays neutral while the controls follow the app theme. */
.book-studio{padding:0 24px 24px;background:#f5f7fb;color:#002d72}
.book-head{margin:0 -24px;padding:18px 24px;background:#002d72;color:#fff;border-bottom:4px solid #ff5910}
.book-head button{background:#ffffff12;color:#fff;border-color:#ffffff55}
.book-head button:hover{background:#ffffff25;border-color:#fff}
.book-studio button.primary{background:#ff5910;color:#002d72;border-color:#ff5910;font-weight:750}
.book-studio button.primary:hover{background:#ff773a;border-color:#ff773a}
.book-status{color:#526780;font-size:12px;padding:10px 0;margin:0!important}
.book-summary{text-align:center;padding:8px 12px 14px;order:-2}
.book-eyebrow{color:#bb3d00;font-size:10px;font-weight:800;letter-spacing:.18em}
.book-summary h1{font-size:clamp(23px,3vw,34px);letter-spacing:-.035em;margin:4px 0;overflow-wrap:anywhere}
.book-summary p{color:#526780;font-size:12px}
.book-editor .book-actions{order:-1;gap:7px}
.book-creation-tools{box-shadow:none;border:0;background:transparent;padding:4px;gap:8px;flex-wrap:wrap}
.book-studio .book-labeled{width:auto;gap:8px;padding:10px 14px;font-size:12px;font-weight:650}
.book-studio .book-tool-labeled{width:auto;min-width:72px;height:auto;flex-direction:column;gap:5px;background:transparent;border-color:transparent;font-size:11px;padding:8px}
.book-studio .book-tool-labeled:hover{background:#e7edf5;border-color:#ced8e6}
.book-editor .book-center{padding:28px;background:linear-gradient(135deg,#e6ebf1,#d8e1eb);border:1px solid #d2dce8;border-radius:14px}
.book-stage{display:flex;justify-content:center;align-items:flex-start;width:100%;max-width:1200px;gap:0;min-width:0}
.book-stage>.book-canvas{width:100%;max-width:600px}
.book-spread>.book-canvas{width:50%;box-shadow:0 12px 25px #00193822}
.book-spread>.book-canvas:first-child:after,.book-facing:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(to left,#00193816,transparent 5%)}
.book-facing:after{background:linear-gradient(to right,#00193816,transparent 5%)}
.book-reading .book-element{cursor:default;touch-action:auto}
.book-editor .book-pages{gap:10px;padding:8px 4px 12px;border-top:1px solid #dbe3ef;border-bottom:1px solid #dbe3ef;scrollbar-width:thin}
.book-editor .book-page-tab{display:flex;flex-direction:column;align-items:center;gap:7px;width:86px;padding:8px;border:2px solid transparent;border-radius:9px;background:transparent;color:#526780;min-height:100px}
.book-editor .book-page-tab[aria-current=true]{border-color:#ff5910;background:#fff0e8;color:#002d72;font-weight:750}
.book-page-tab .book-thumbnail{display:block;width:62px!important;max-width:62px!important;box-shadow:0 2px 6px #00193826;pointer-events:none;align-self:center;margin:auto 0}
.book-thumbnail .book-element{cursor:default;touch-action:auto;outline:0}
.book-thumbnail .book-page-footer{display:none}
.book-missing-photo{background:repeating-linear-gradient(135deg,#e7edf5 0 5px,#dbe3ef 5px 10px)}
.book-tool-head{border-bottom:2px solid #ff5910;margin-bottom:16px;padding-bottom:12px}
.book-layout-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0}
.book-layout-choice{display:flex;flex-direction:column;gap:8px;align-items:center;font-size:12px!important}
.book-layout-sample{display:grid;grid-template-columns:repeat(2,1fr);gap:3px;width:100%;height:64px;padding:6px;background:#f2f5fa}
.book-layout-sample i{display:block;background:#a8bfdc}
.book-layout-sample i:first-child{background:#002d72}
.book-layout-sample.editorial i:first-child{grid-row:span 2}
.book-start>h1{font-size:clamp(28px,4vw,42px);letter-spacing:-.04em}
.book-start>p{color:#526780;max-width:660px;line-height:1.7}
.book-template-list{gap:18px}
.book-template-list button{border:1px solid #dbe3ef;padding:12px;box-shadow:0 3px 12px #002d7208}
.book-template-list button[aria-pressed=true]{border-color:#ff5910;background:#fff8f3}
.book-template-preview{border-radius:4px;background:linear-gradient(140deg,#e6ecf4,#d4deeb);aspect-ratio:1.4;padding:20px}
.book-template-list strong{font-size:17px}
.book-template-list span:last-child{color:#526780;line-height:1.5}
.book-start-actions{justify-content:flex-end;padding-top:16px}
.book-start-actions .primary{padding:14px 24px}
.book-image-state{animation:bookpulse 1.8s ease-in-out infinite;background:#e7edf5}
.book-image-state:has(button){animation:none}
@keyframes bookpulse{50%{background:#f6f8fc}}
@media(max-width:640px){.book-studio{padding:0 12px 16px}.book-head{margin:0 -12px;padding:14px 16px}.book-brand{font-size:18px}.book-summary{padding:5px}.book-studio .book-labeled{padding:8px 10px;font-size:11px}.book-creation-tools{gap:0;width:100%;justify-content:space-between}.book-studio .book-tool-labeled{min-width:0;padding:7px 5px;flex:1;font-size:10px}.book-editor .book-center{padding:16px 10px}.book-page-tab .book-thumbnail{width:48px!important;max-width:48px!important}.book-editor .book-page-tab{width:69px;min-height:86px;font-size:10px}.book-template-list{gap:8px}.book-template-list strong{font-size:14px}.book-template-preview{padding:10px}.book-layout-choices{gap:5px}.book-layout-choice{padding:6px!important;font-size:10px!important}}
@media(prefers-reduced-motion:reduce){.book-image-state{animation:none}}
:root[data-theme="dark"] .book-studio{background:#101e32;color:#edf3fb;border-color:#344960}:root[data-theme="dark"] .book-status,:root[data-theme="dark"] .book-summary p,:root[data-theme="dark"] .book-start>p{color:#b8c8dc}:root[data-theme="dark"] .book-eyebrow{color:#ff9868}:root[data-theme="dark"] .book-studio button,:root[data-theme="dark"] .book-studio input,:root[data-theme="dark"] .book-studio select,:root[data-theme="dark"] .book-studio textarea{background:#1c304a;color:#edf3fb;border-color:#425774}:root[data-theme="dark"] .book-studio button:hover{background:#293f5b;border-color:#91aed2}:root[data-theme="dark"] .book-studio button.primary{background:#ff813f;color:#092347;border-color:#ff813f}:root[data-theme="dark"] .book-editor .book-center{background:#0a1628;border-color:#344960}:root[data-theme="dark"] .book-editor .book-page-tab{background:transparent;color:#b8c8dc}:root[data-theme="dark"] .book-editor .book-page-tab[aria-current=true]{background:#402c23;color:#ffb58c;border-color:#ff813f}:root[data-theme="dark"] .book-editor .book-pages{border-color:#344960}:root[data-theme="dark"] .book-tool-dialog,:root[data-theme="dark"] .book-tool-head,:root[data-theme="dark"] .book-library,:root[data-theme="dark"] .book-inspector{background:#14253c;color:#edf3fb}:root[data-theme="dark"] .book-template-list button[aria-pressed=true]{background:#402c23}:root[data-theme="dark"] .book-template-list span:last-child{color:#b8c8dc}:root[data-theme="dark"] .book-template-preview{background:#0a1628}:root[data-theme="dark"] .book-mini-page{color:#002d72}:root[data-theme="dark"] .book-studio .book-tool-labeled:hover{background:#293f5b}:root[data-theme="dark"] .book-image-state{color:#002d72}:root[data-theme="dark"] .book-warning{color:#ffb58c}
@media(prefers-color-scheme:dark){:root:not([data-theme]) .book-studio{background:#101e32;color:#edf3fb;border-color:#344960}:root:not([data-theme]) .book-status,:root:not([data-theme]) .book-summary p,:root:not([data-theme]) .book-start>p{color:#b8c8dc}:root:not([data-theme]) .book-eyebrow{color:#ff9868}:root:not([data-theme]) .book-studio button,:root:not([data-theme]) .book-studio input,:root:not([data-theme]) .book-studio select,:root:not([data-theme]) .book-studio textarea{background:#1c304a;color:#edf3fb;border-color:#425774}:root:not([data-theme]) .book-studio button:hover{background:#293f5b;border-color:#91aed2}:root:not([data-theme]) .book-studio button.primary{background:#ff813f;color:#092347;border-color:#ff813f}:root:not([data-theme]) .book-editor .book-center{background:#0a1628;border-color:#344960}:root:not([data-theme]) .book-editor .book-page-tab{background:transparent;color:#b8c8dc}:root:not([data-theme]) .book-editor .book-page-tab[aria-current=true]{background:#402c23;color:#ffb58c;border-color:#ff813f}:root:not([data-theme]) .book-editor .book-pages{border-color:#344960}:root:not([data-theme]) .book-tool-dialog,:root:not([data-theme]) .book-tool-head,:root:not([data-theme]) .book-library,:root:not([data-theme]) .book-inspector{background:#14253c;color:#edf3fb}:root:not([data-theme]) .book-template-list button[aria-pressed=true]{background:#402c23}:root:not([data-theme]) .book-template-list span:last-child{color:#b8c8dc}:root:not([data-theme]) .book-template-preview{background:#0a1628}:root:not([data-theme]) .book-mini-page{color:#002d72}:root:not([data-theme]) .book-studio .book-tool-labeled:hover{background:#293f5b}:root:not([data-theme]) .book-image-state{color:#002d72}:root:not([data-theme]) .book-warning{color:#ffb58c}}

.book-thumbnail{position:relative;overflow:hidden;container-type:inline-size;font-family:BookNoto,sans-serif;flex-shrink:0;background:white}

.book-element img{border-radius:0;max-width:none}.book-reading .book-page-actions{position:relative}

.book-backgrounds{display:flex;gap:9px;flex-wrap:wrap;margin:12px 0 20px}.book-studio .book-swatch{width:40px;height:40px;border-radius:50%;border:2px solid #95a8bd;box-shadow:0 2px 4px #002d7218}.book-studio .book-swatch[aria-pressed=true]{outline:3px solid #ff5910;outline-offset:2px}.book-element img{opacity:1;visibility:visible}.book-element .book-image-state{min-width:80px;min-height:44px}

/* Compact editing commands; the book remains the main surface. */
.book-command-menu{position:relative;font-size:13px}.book-command-menu>summary{list-style:none;cursor:pointer;padding:11px 14px;min-height:44px;border:1px solid #ced8e6;border-radius:10px;background:#fff;color:#002d72;font-weight:650}.book-command-menu>summary::-webkit-details-marker{display:none}.book-command-menu>summary:after{content:'⌄';margin-left:8px}.book-command-menu[open]>summary:after{content:'⌃'}.book-command-menu>summary:focus-visible{outline:3px solid #ff5910;outline-offset:2px}.book-command-menu[open]>.book-extra-actions,.book-command-menu[open]>.book-creation-tools{position:absolute;top:calc(100% + 6px);right:0;z-index:20;width:min(280px,80vw);padding:8px;background:var(--surface,#fff);border:1px solid #ced8e6;border-radius:12px;box-shadow:0 12px 30px #00193830;display:grid;gap:4px;max-height:52dvh;overflow:auto}.book-extra-actions>.book-icon.book-labeled,.book-command-menu .book-tool-labeled{width:100%;flex-direction:row;justify-content:flex-start;font-size:13px;gap:10px}.book-editor .book-summary{padding:0 4px 4px}.book-summary .book-eyebrow{display:none}.book-summary h1{font-size:22px;margin:2px}.book-summary p{margin:2px!important;font-size:11px}.book-editor .book-actions{gap:6px}.book-editor .book-compact-hint{align-self:center;font-size:12px;padding:6px 12px;min-height:34px;background:#fff0e6;color:#903000;border-color:#ffb284}.book-page-tab .book-thumbnail .book-element{overflow:hidden}.book-selection-tools{min-height:0}.book-selection-tools>.book-command-menu{font-size:12px}.book-editor .book-center{gap:10px;padding:16px}.book-status{min-height:22px;padding:4px 0}.book-editor .book-pages{padding:5px 4px;gap:6px}.book-editor .book-page-tab{min-height:74px;width:68px;padding:5px}.book-page-tab .book-thumbnail{width:44px!important;max-width:44px!important}.book-head{padding-block:10px}.book-brand{font-size:19px}
@media(max-width:640px){.book-actions>[aria-label="Aperçu"] span{display:none}.book-actions>[aria-label="Aperçu"]{width:44px;padding:10px}.book-command-menu>summary{padding-inline:10px}.book-editor .book-summary h1{font-size:18px}.book-editor .book-center{padding:10px}.book-page-tab .book-thumbnail{width:36px!important;max-width:36px!important}.book-editor .book-page-tab{min-height:64px;width:58px;font-size:10px}.book-selection-tools .book-extra-actions{right:0}.book-studio .book-labeled{font-size:12px}}
:root[data-theme="dark"] .book-command-menu>summary{background:#1c304a;color:#edf3fb;border-color:#425774}:root[data-theme="dark"] .book-extra-actions,:root[data-theme="dark"] .book-command-menu .book-creation-tools{background:#14253c}:root[data-theme="dark"] .book-compact-hint{background:#402c23;color:#ffb58c}

.book-page-actions .book-command-menu[open]>.book-extra-actions{top:auto;bottom:calc(100% + 6px)}
@media(prefers-color-scheme:dark){:root:not([data-theme]) .book-command-menu>summary{background:#1c304a;color:#edf3fb;border-color:#425774}:root:not([data-theme]) .book-extra-actions,:root:not([data-theme]) .book-command-menu .book-creation-tools{background:#14253c}:root:not([data-theme]) .book-compact-hint{background:#402c23;color:#ffb58c}}
.book-order-history{margin-top:16px;border-top:1px solid #cbd7e8;padding-top:12px}.book-order-history summary{cursor:pointer;color:var(--text,#003477);font-weight:700}.book-order-card{padding:12px;margin-top:10px;border:1px solid #cbd7e8;border-left:4px solid #ff5a0a;border-radius:12px;background:var(--surface,#fff)}.book-order-card p{margin:6px 0;font-size:14px}.book-order-card small{display:block;line-height:1.5}

.book-element.book-photo-background{overflow:hidden}.book-element.book-photo-background>img{width:100%;height:100%;object-fit:cover}.book-photo-background~.book-text{ text-shadow:0 1px 4px #0008 }

@font-face{font-family:WayntureBookSerif;src:url("fonts/Book-NotoSerif-Regular.ttf") format("truetype");font-weight:400;font-display:swap}
.book-text>div{font-family:WayntureBookSerif,Georgia,serif}
.book-library-preview{position:relative;display:block!important;width:100%;aspect-ratio:4/3;background:#e7edf5;overflow:hidden;border-radius:10px}
.book-library-preview>img{width:100%!important;height:100%!important;object-fit:contain!important;display:block}
.book-library-preview>.book-image-state{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}
.book-media>div>button{width:100%;display:flex;flex-direction:column;gap:8px;padding:8px;overflow:hidden}
.book-media>div>button>span:last-child{white-space:normal;line-height:1.3;font-size:13px}
.book-album-list{display:grid;gap:10px;margin-top:20px}.book-album-item{display:flex;flex-direction:column;align-items:flex-start;padding:16px!important;text-align:left}
.book-album-item[aria-current=true]{border-color:#ff5910!important;background:#fff3e9!important}
.book-albums label{display:flex;flex-direction:column;gap:8px;margin-bottom:12px}

.book-library-preview>img[hidden],.book-element>img[hidden]{display:none!important}

.book-album-item[aria-current=true],.book-album-item[aria-current=true] small{color:#002d72!important}

/* Manual save feedback stays centered in the viewport, above the book dialog. */
.book-save-progress{font-family:BookNoto,system-ui,sans-serif;outline:none;position:fixed;inset:0;margin:auto;width:min(300px,calc(100vw - 40px));height:fit-content;max-height:80dvh;padding:0;border:1px solid var(--line,#dbe3ef);border-radius:22px;background:var(--surface,#fff);color:var(--ink,#002d72);box-shadow:0 18px 60px #00193840}
.book-save-progress::backdrop{background:#00193870}
.book-save-progress-card{display:flex;flex-direction:column;align-items:center;gap:18px;padding:30px 22px;text-align:center}
.book-save-progress-card p{font:inherit;font-size:16px;line-height:1.5;margin:0}
.book-save-spinner{display:block;width:46px;height:46px;border:4px solid #dbe3ef;border-top-color:#ff5910;border-right-color:#ff5910;border-radius:50%;animation:book-save-spin .8s linear infinite}
@keyframes book-save-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.book-save-spinner{animation:none}}
/* Dedicated full-screen editor: the book fits; only tool panels scroll. */
html.book-page-open,html.book-page-open body{overflow:hidden!important;overscroll-behavior:none}
section.book-studio.book-page{position:fixed;inset:0;z-index:3000;margin:0;width:100%;max-width:none;height:100vh;height:100dvh;max-height:none;padding:0;border:0;border-radius:0;display:flex;flex-direction:column;overflow:hidden;outline:none;font-family:BookNoto,system-ui,sans-serif}
.book-page>.book-head{flex:none;margin:0;padding:8px 14px;border-radius:0;min-height:56px;gap:12px;background:#002d72;color:white;border-bottom:4px solid #ff5910}
.book-page .book-head .book-back{flex:none;min-height:40px;padding:6px 12px;border-radius:14px;background:#ffffff16;border:1px solid #ffffff55;color:white}
.book-page .book-brand{font-size:18px;line-height:1.2;min-width:0;text-align:right}
.book-page>.book-status{flex:none;min-height:18px;margin:0;padding:2px 12px;font-size:11px;line-height:1.3;max-height:40px;overflow:auto}
.book-page>.book-editor{display:flex;flex-direction:column;flex:1;min-height:0;padding:0 10px 6px}
.book-page .book-summary{flex:none;padding:0;text-align:center}.book-page .book-summary h1{font-size:18px;margin:2px}.book-page .book-summary p{font-size:10px;margin:2px!important}
.book-page .book-actions{flex:none;margin:5px 0;gap:5px;justify-content:center}.book-page .book-actions>button,.book-page .book-command-menu>summary{min-height:40px;padding:7px 10px;font-size:12px}
.book-page .book-actions .book-compact-hint{display:none}
.book-page .book-pages{flex:none;height:76px;min-height:0;padding:3px 0;gap:5px;overflow-x:auto;overflow-y:hidden;border-block:1px solid #dbe3ef}
.book-page .book-page-tab{min-height:0;height:68px;width:58px;font-size:10px;padding:3px}.book-page .book-page-tab .book-thumbnail{width:30px!important;max-width:30px!important}
.book-page .book-grid{display:flex;flex:1;min-height:0;margin-top:5px;width:100%;overflow:hidden}
.book-page .book-center{display:flex;flex:1;height:100%;min-height:0;gap:3px;padding:5px;width:100%;overflow:hidden;border-radius:16px}
.book-page .book-stage{display:flex;flex:1;align-items:center;justify-content:center;gap:4px;width:100%;min-height:0;overflow:hidden;padding:0;margin:0}
.book-page .book-canvas{max-width:none;flex:none;height:auto;margin:0;box-shadow:0 4px 14px #00193820}
.book-page .book-page-actions{flex:none;gap:5px;font-size:11px}.book-page .book-page-actions button{min-height:36px;padding:5px 8px}
.book-page .book-selection-tools{flex:none;font-size:11px;min-height:0;padding:0}.book-page .book-selection-tools>p{margin:0;font-size:10px}
.book-page .book-center>small{flex:none;font-size:9px;line-height:1.2;max-width:100%;margin:0}
.book-page .book-page-actions .book-command-menu[open]>.book-extra-actions{top:auto;bottom:calc(100% + 6px)}
.book-page>.book-start{flex:1;min-height:0;overflow:auto;width:100%;padding:12px 18px;margin:0 auto}
.book-thumbnail .book-image-state{font-size:0;background:linear-gradient(110deg,#edf2f8,#f7f9fc,#edf2f8);min-height:0}
@media(max-height:550px){.book-page>.book-head{min-height:44px;padding:3px 10px}.book-page .book-brand{font-size:14px}.book-page .book-summary p,.book-page .book-center>small{display:none}.book-page .book-summary h1{font-size:14px}.book-page .book-pages{height:48px}.book-page .book-page-tab{height:42px}.book-page .book-page-tab .book-thumbnail{display:none}.book-page .book-actions{margin:2px}.book-page .book-actions>button,.book-page .book-command-menu>summary{min-height:32px;padding:4px 8px}.book-page>.book-status{max-height:20px}.book-page .book-grid{margin-top:2px}}
.book-page>.book-editor>.book-compact-hint{display:none}
@media(max-height:550px){.book-page .book-selection-tools .book-icon{width:32px;height:32px;min-height:32px;padding:5px}.book-page .book-page-actions button,.book-page .book-page-actions .book-command-menu>summary{min-height:30px;padding:3px 8px}.book-page .book-selection-tools .book-command-menu>summary{min-height:30px;padding:3px 8px}}
.book-page>.book-editor{gap:0}
@media(max-height:550px){.book-page .book-pages{display:none}.book-page>.book-editor>.book-actions{margin:2px 0}.book-page .book-actions>.book-icon{height:34px;min-height:34px}.book-page .book-page-actions>.book-icon{height:30px;min-height:30px}}
.book-page>.book-status:empty{display:none}

/* Match menu triggers to the toolbar, with a scalable drawn chevron. */
.book-actions>.book-command-menu>summary{display:flex;align-items:center;justify-content:center;gap:9px;box-sizing:border-box;height:44px;min-height:44px;padding:0 12px;border-radius:13px;font-size:12px;line-height:1;white-space:nowrap}
.book-command-menu>summary:after{content:'';display:inline-block;flex:none;width:7px;height:7px;margin:0 1px 3px 2px;border:solid currentColor;border-width:0 1.7px 1.7px 0;transform:rotate(45deg);transition:transform .16s ease}
.book-command-menu[open]>summary:after{content:'';transform:translateY(3px) rotate(225deg)}
@media(prefers-reduced-motion:reduce){.book-command-menu>summary:after{transition:none}}
.book-page .book-actions>button{height:44px;min-height:44px;border-radius:13px}
@media(max-height:550px){.book-page .book-actions>button,.book-actions>.book-command-menu>summary{height:34px;min-height:34px}}

.book-selection-actions{display:grid;gap:8px}.book-selection-actions>.book-icon.book-labeled{width:100%;justify-content:flex-start;gap:12px;font-size:14px}.book-selection-tools>.book-labeled{display:flex;align-items:center;gap:8px}

.book-bottom-controls{display:flex;align-items:center;justify-content:center;gap:6px;flex:none;min-width:0;width:100%}
.book-bottom-controls .book-selection-tools,.book-bottom-controls .book-page-actions{display:flex;align-items:center;flex-wrap:nowrap;gap:5px;margin:0;min-width:0}
.book-bottom-controls .book-icon{flex:none;width:44px;height:44px;min-height:44px;padding:9px}
.book-bottom-controls .book-labeled{width:auto}
.book-bottom-controls .book-page-actions>span{font-size:11px;white-space:nowrap}
@media(max-width:700px){.book-bottom-controls .book-labeled{width:44px}.book-bottom-controls .book-labeled>span{display:none}.book-bottom-controls .book-page-actions>span{max-width:72px;overflow:hidden;text-overflow:ellipsis}}
@media(max-width:360px){.book-bottom-controls{gap:3px}.book-bottom-controls .book-icon{width:36px;height:40px;min-height:40px;padding:7px}.book-bottom-controls .book-selection-tools,.book-bottom-controls .book-page-actions{gap:3px}.book-bottom-controls .book-page-actions>span{max-width:52px;font-size:10px}}
@media(max-height:550px){.book-bottom-controls .book-icon{width:32px;height:32px;min-height:32px;padding:5px}}
@media(max-width:360px){.book-page .book-bottom-controls .book-icon{width:36px;min-width:36px;max-width:36px;flex-basis:36px}}

.book-saved-toast{position:fixed;z-index:100;top:78px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 32px);padding:13px 18px;border:1px solid #a8d6be;border-radius:14px;background:#effbf4;color:#13663e;box-shadow:0 6px 24px #00193824;font-size:14px;font-weight:600;text-align:center;pointer-events:none}

/* Page numbers live on the thumbnail; full translated names remain accessible. */
.book-editor .book-page-tab{position:relative;min-height:60px;height:66px;width:58px;flex:none;padding:6px;overflow:visible}
.book-page-tab>.book-page-badge{position:absolute;right:2px;bottom:2px;display:flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 4px;border-radius:7px;background:#fff;color:#002d72;box-shadow:0 1px 5px #00193826;border:1px solid #dbe3ef;font-size:10px;font-weight:750;line-height:1;pointer-events:none}
.book-page-tab[aria-current=true]>.book-page-badge{background:#ff5910;border-color:#ff5910;color:#002d72}
.book-page-badge>svg{width:13px;height:13px}
.book-editor .book-pages{padding-top:4px;padding-bottom:4px}
@media(min-width:900px){.book-editor .book-page-tab{width:68px;height:76px}}

.book-saved-toast.is-error{background:#fff0ef;color:#a92520;border-color:#edaaa5;box-shadow:0 6px 24px #70181124;max-height:40vh;overflow:auto;pointer-events:auto}

/* Layout problems are attached to their page and element, never the header. */
.book-page>.book-status{position:absolute;width:1px;height:1px;min-height:0;padding:0;margin:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.book-page-warning{position:absolute;left:1px;top:1px;width:22px;height:22px;display:grid;place-items:center;background:#fff1ef;color:#b52620;border:1px solid #d75d54;border-radius:7px;pointer-events:none;box-shadow:0 1px 4px #00193820}
.book-page-warning>svg{width:16px;height:16px}
.book-studio .book-element-warning{position:absolute;z-index:5;display:grid;place-items:center;width:28px;height:28px;min-height:28px;padding:4px;border:1px solid #d75d54;border-radius:8px;background:#fff1ef;color:#b52620;cursor:pointer;box-shadow:0 2px 6px #00193826;touch-action:manipulation}
.book-element-warning>svg{width:18px;height:18px}
.book-text-probe{box-shadow:none!important}

.book-delete-confirm{width:min(420px,90vw);border:1px solid #dbe3ef;border-top:5px solid #ff5910;border-radius:20px;padding:24px;color:#002d72;background:#fff;box-shadow:0 18px 60px #00193840}
.book-delete-confirm::backdrop{background:#00193888}
.book-delete-confirm h2{font-size:20px;margin:0 0 14px}.book-delete-confirm p{line-height:1.5;margin:0 0 22px}
.book-delete-actions{display:flex;justify-content:flex-end;gap:10px}.book-delete-actions button{font:inherit;min-height:44px;padding:10px 16px;border:1px solid #ced8e6;border-radius:12px;color:#002d72;background:#fff;font-weight:650;cursor:pointer}.book-delete-actions button.primary{background:#ff5910;border-color:#ff5910}.book-delete-actions button:focus-visible{outline:3px solid #002d72;outline-offset:3px}

.book-settings-section{padding:16px;margin:0 0 14px;border:1px solid #dbe3ef;border-radius:16px;background:#f5f8fc}.book-settings-section>h3{margin:0 0 14px!important;font-size:16px;color:#002d72}.book-settings-section>label{margin:12px 0}.book-setting-action{display:flex!important;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-height:44px;margin:8px 0!important;text-align:left;border-radius:12px!important;font-size:13px!important}.book-setting-action>svg{width:21px;height:21px;flex:none}.book-setting-action>span{white-space:normal}.book-palette-section h4{font-size:13px;margin:14px 0 8px;color:#526780}.book-color-controls .book-backgrounds{gap:10px;margin:0 0 14px}.book-color-controls .book-swatch{width:36px;height:36px;min-height:36px;border-radius:10px;border:1px solid #bacbdd;padding:0}.book-color-controls .book-swatch[aria-pressed=true]{outline:2px solid #ff5910;outline-offset:2px}.book-manual-color{border-top:1px solid #dbe3ef;padding-top:12px}.book-manual-color>summary{font-size:13px;font-weight:650;cursor:pointer;color:#002d72;padding:8px 0}.book-manual-color label{display:grid;gap:6px;margin:12px 0;font-size:12px}.book-manual-color input[type=range]{width:100%;accent-color:#ff5910}.book-manual-color input[type=text]{font-family:monospace;text-transform:uppercase}.book-manual-preview{display:block;width:100%;height:40px;margin:10px 0;border:1px solid #ced8e6;border-radius:10px}.book-color-error{color:#a92520;font-size:12px}.book-color-error:empty{display:none}.book-color-controls .book-setting-action{background:#ff5910;border-color:#ff5910;color:#002d72}

.book-settings-section .book-auto-layout{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;font-size:13px}.book-settings-section .book-auto-layout>input[type=checkbox]{width:22px;height:22px;min-height:22px;flex:none;padding:0;margin:0;accent-color:#ff5910}

.book-purchase .book-working::before{content:"";display:inline-block;width:18px;height:18px;border:3px solid #cbd7e8;border-top-color:#ff5910;border-radius:50%;margin-inline-end:10px;vertical-align:middle;animation:book-print-spin .8s linear infinite}
@keyframes book-print-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.book-purchase .book-working::before{animation:none}}

.book-print-errors{background:#fff1f1;color:#a62121;border:1px solid #efb2b2;border-inline-start:4px solid #c62828;border-radius:16px;padding:16px;margin:12px 0}.book-print-errors ul{padding-inline-start:20px}.book-print-errors li{margin:12px 0}.book-print-errors p{margin:6px 0;overflow-wrap:anywhere}.book-print-errors button{color:#002d72}

/* Compact, bounded Waynture book ordering dialog. */
.book-studio.book-purchase{width:min(640px,calc(100vw - 24px));max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:0;border:1px solid #cbd7e8;border-radius:24px;overflow:hidden;background:#f4f7fb;box-shadow:0 18px 60px #00193840}
.book-purchase[open]{display:flex;flex-direction:column}
.book-purchase-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;background:#002d72;color:white;border-bottom:5px solid #ff5910;flex-shrink:0}
.book-purchase-head h2{margin:0;font-size:clamp(19px,5vw,26px);line-height:1.2;overflow-wrap:anywhere}
.book-purchase-head .book-icon{width:42px;height:42px;flex-shrink:0;border-radius:14px;background:#ffffff18;border-color:#ffffff60;color:white}
.book-purchase-head .book-icon:hover{background:#ffffff30;color:white}
.book-purchase-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px 20px 20px}
.book-purchase-fields{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:14px 12px;padding:16px;background:white;border:1px solid #dbe3ef;border-radius:20px}
.book-purchase-fields label{min-width:0;font-size:14px;font-weight:650;gap:7px}
.book-purchase-fields input,.book-purchase-fields select{width:100%;min-width:0;min-height:46px;border-radius:14px;font-size:15px;font-weight:400}
.book-purchase .book-print-readiness{border:1px solid #ffd0b5;border-inline-start:4px solid #ff5910;border-radius:16px;padding:12px 14px;font-size:14px}
.book-purchase .book-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px}
.book-purchase .book-actions button,.book-purchase .book-test-link{min-height:48px;border-radius:16px;padding:12px;text-align:center;font-size:15px;font-weight:700;text-decoration:none}
.book-purchase .book-actions .primary{background:#ff5910;border-color:#ff5910;color:#002d72}
.book-purchase .book-order-history{border-top:1px solid #ced8e6;padding-top:16px;margin-top:16px}
@media(max-width:360px){.book-purchase-head{padding:14px}.book-purchase-body{padding:12px}.book-purchase-fields{padding:12px;gap:12px 8px}.book-purchase-fields select{font-size:13px;padding:8px}}

.waynture-orders{width:min(660px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:0;border:1px solid #cbd7e8;border-radius:24px;color:#002d72;background:#f4f7fb;box-shadow:0 20px 60px #00193855;font:16px system-ui}
.waynture-orders[open]{display:flex;flex-direction:column}.waynture-orders::backdrop{background:#001938a8}.waynture-orders *{box-sizing:border-box}.waynture-orders>header{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#002d72;color:white;border-bottom:5px solid #ff5910;padding:16px 20px;flex-shrink:0}.waynture-orders h2{font-size:23px;line-height:1.2;margin:0}.waynture-orders>header button{background:#ffffff20;color:white;width:44px;min-width:44px;font-size:28px;border-color:#ffffff60;padding:0}.waynture-orders-body{overflow:auto;min-height:0;padding:16px 20px;overscroll-behavior:contain}.waynture-orders p{line-height:1.5}.waynture-orders button{font:inherit;font-weight:650;color:#002d72;background:white;border:1px solid #cbd7e8;border-radius:14px;min-height:44px;padding:10px 15px;cursor:pointer}.waynture-orders button:disabled{opacity:.55}.waynture-orders button:focus-visible,.waynture-orders summary:focus-visible{outline:3px solid #ff5910;outline-offset:2px}.waynture-order-card{background:white;border:1px solid #dbe3ef;border-radius:20px;padding:18px;margin:14px 0;box-shadow:0 4px 16px #002d720a;overflow-wrap:anywhere}.waynture-order-card h3{margin:0;font-size:20px}.waynture-order-card dl{display:grid;grid-template-columns:minmax(90px,1fr) minmax(0,2fr);gap:8px;margin:14px 0;font-size:14px}.waynture-order-card dt{color:#61758f}.waynture-order-card dd{margin:0}.waynture-order-card summary{cursor:pointer;font-weight:650;padding:12px 0}.waynture-order-badge{display:inline-block;padding:5px 10px;border-radius:20px;background:#fff0e6;font-size:13px;margin-bottom:12px}.waynture-order-shipping{background:#edf3fa;border-radius:16px;padding:14px;margin-top:12px}.waynture-order-shipping h4{margin:0}.waynture-order-shipping label{display:flex;flex-direction:column;gap:6px;font-size:14px;margin:12px 0}.waynture-order-shipping input{width:100%;min-height:44px;border:1px solid #cbd7e8;border-radius:12px;padding:10px;background:white;color:#002d72;font:inherit}.waynture-order-shipping small{display:block;margin:8px 0}.waynture-orders-message:empty{display:none}.waynture-orders-message.is-error{padding:12px;background:#fff0f0;color:#b91c1c;border:1px solid #ffa5a5;border-radius:14px}.waynture-orders[aria-busy=true] .waynture-orders-message:before{content:'';display:inline-block;width:15px;height:15px;border:3px solid #cbd7e8;border-top-color:#ff5910;border-radius:50%;animation:bookspin .8s linear infinite;margin-right:8px}
@media(max-width:360px){.waynture-orders>header,.waynture-orders-body{padding:14px}.waynture-orders h2{font-size:20px}.waynture-order-card{padding:14px}}

.book-stage{position:relative}.book-history-float{position:absolute;right:10px;bottom:10px;display:flex;gap:8px;z-index:8}.book-history-float[hidden],.book-history-float button[hidden]{display:none!important}.book-studio .book-history-float .book-icon{width:44px;height:44px;min-height:44px;border-radius:50%;border:1px solid #cbd7e8;background:#fffffff2;color:#002d72;box-shadow:0 4px 14px #00193830;padding:10px;backdrop-filter:blur(6px)}.book-studio .book-history-float .book-icon:disabled{opacity:.4;cursor:default}.book-studio .book-history-float .book-icon:not(:disabled):hover{border-color:#ff5910;background:#fff0e6}.book-photo-visual{position:absolute;pointer-events:none}.book-photo-visual img{width:100%;height:100%;border-radius:inherit;object-fit:fill}.book-photo-visual:after{content:'';position:absolute;inset:0;border:var(--photo-border-width,0px) solid var(--photo-border-color,#fff);border-radius:inherit;pointer-events:none}

.waynture-orders>.waynture-orders-message{flex:none;margin:0;padding:12px 18px;max-height:25dvh;overflow:auto;font-size:14px}.waynture-orders>.waynture-orders-message.is-success{background:#effbf4;color:#11643c;border-bottom:1px solid #a3d7b8}.waynture-printer-reference{font-weight:700;overflow-wrap:anywhere}

/* Account book orders: Waynture contrast and visible fulfillment milestones. */
.waynture-orders{background:#edf3fa;color:#002d72}
.waynture-orders-body>p:first-child{background:#fff3e9;border:1px solid #ffc8a8;border-left:4px solid #ff5910;border-radius:14px;padding:14px;margin-top:0;font-size:14px}
.waynture-order-card{border:1px solid #b7cae3;border-top:4px solid #002d72;box-shadow:0 5px 18px #002d7212;padding:18px}
.waynture-order-card h3{color:#002d72;line-height:1.3}
.waynture-order-card>p{color:#526783;font-size:14px;margin:8px 0}
.waynture-order-card>strong{display:block;border-radius:12px;background:#002d72;color:#fff;padding:12px 15px;font-size:19px;margin-top:10px}
.waynture-order-badge{background:#fff0e4;color:#a43e00;border:1px solid #ffd0b5;font-weight:700;font-size:12px}
.waynture-order-shipping{border:1px solid #c2d4e9;background:#eaf2fc;border-left:4px solid #ff5910}
.waynture-order-shipping h4{color:#002d72;font-size:16px}
.waynture-order-shipping p{font-size:14px}
.waynture-order-shipping .is-error{background:#fff0ef;color:#a92520;border-radius:12px;padding:12px}
.waynture-order-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;list-style:none;padding:14px 0;margin:10px 0 0}
.waynture-order-steps li{text-align:center;border-top:3px solid #d3deed;padding-top:8px;color:#526783;min-width:0}
.waynture-order-steps span{display:grid;place-items:center;margin:0 auto 6px;width:25px;height:25px;border-radius:50%;background:#e8eef7;color:#002d72;font-size:13px;font-weight:750}
.waynture-order-steps small{display:block;overflow-wrap:anywhere;font-size:11px;line-height:1.4}
.waynture-order-steps .is-complete{border-color:#26704d}.waynture-order-steps .is-complete span{background:#e1f4e9;color:#17633c}
.waynture-order-steps .is-current{border-color:#ff5910;color:#002d72;font-weight:700}.waynture-order-steps .is-current span{background:#ff5910;color:#002d72}
.book-auto-status:before{content:'';display:inline-block;width:13px;height:13px;border:3px solid #bdcde3;border-top-color:#ff5910;border-radius:50%;animation:bookspin .8s linear infinite;margin-right:8px;vertical-align:middle}
@media(prefers-reduced-motion:reduce){.book-auto-status:before{animation:none}}

.book-save-progress button{font:inherit;font-weight:650;padding:11px 18px;border:1px solid #bfd0e7;border-radius:14px;background:#edf3fa;color:#002d72;min-height:44px;cursor:pointer}
.book-save-progress button:focus-visible{outline:3px solid #ff5910;outline-offset:2px}
@media(max-width:400px){.waynture-order-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.waynture-order-steps small{overflow-wrap:normal}}

/* Commandes repliées par défaut : résumé compact, détails à la demande. */
.waynture-orders-body{padding:12px 14px}
.waynture-orders-help{margin:0 0 8px;color:#526783;font-size:13px}
.waynture-orders-help>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:650;color:#002d72}
.waynture-orders-help>p{margin:0 0 10px;font-size:13px;line-height:1.5}
.waynture-order-card{padding:0;margin:8px 0;border:1px solid #bfcee2;border-left:3px solid #002d72;border-radius:15px;box-shadow:0 2px 7px #002d7208;overflow:hidden}
.waynture-order-card .waynture-order-overview{display:grid;grid-template-columns:minmax(0,1fr) auto 10px;gap:5px 10px;align-items:center;list-style:none;padding:12px;min-height:88px;cursor:pointer}
.waynture-order-overview::-webkit-details-marker{display:none}
.waynture-order-identity{min-width:0}
.waynture-order-identity h3{font-size:15px;line-height:1.35;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.waynture-order-identity>small{display:block;font-size:11px;font-weight:400;color:#607591;line-height:1.45;margin-top:3px}
.waynture-order-amount{font-size:16px;font-weight:750;color:#002d72;white-space:nowrap}
.waynture-order-chevron{width:8px;height:8px;border-right:2px solid #002d72;border-bottom:2px solid #002d72;transform:rotate(45deg);margin-top:-4px}
.waynture-order-accordion[open]>.waynture-order-overview .waynture-order-chevron{transform:rotate(225deg);margin-top:4px}
.waynture-order-accordion[open]>.waynture-order-overview{background:#edf3fb}
.waynture-order-summary-status{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:5px 8px;font-size:12px;font-weight:650;color:#365d87;line-height:1.4}
.waynture-order-summary-status .is-error{color:#a92520}
.waynture-order-test-short{padding:1px 7px;border-radius:7px;background:#fff0e4;color:#a43e00;font-size:10px;font-weight:650}
.waynture-order-content{padding:4px 12px 12px;border-top:1px solid #d5e0ef}
.waynture-order-content>p{font-size:13px;line-height:1.5;color:#526783;margin:8px 0}
.waynture-order-content details{border-top:1px solid #dce5f0;margin-top:6px}
.waynture-order-content details>summary{min-height:44px;padding:12px 0;font-size:14px;cursor:pointer}
.waynture-order-content dl{font-size:12px;margin:4px 0 10px;gap:6px}
.waynture-order-content .waynture-order-steps{gap:5px;padding:10px 0;margin:4px 0}
.waynture-order-content .waynture-order-steps small{font-size:10px}
.waynture-order-content .waynture-order-shipping{margin:0;padding:10px;border-radius:12px}
.waynture-order-content .waynture-order-shipping p{font-size:13px;margin:6px 0}
.waynture-order-content .waynture-order-shipping small{font-size:11px}
@media(max-width:400px){.waynture-order-content .waynture-order-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.waynture-order-card{padding:0}.waynture-order-card .waynture-order-overview{gap:5px 7px}.waynture-order-amount{font-size:15px}}

.waynture-order-content>p:empty{display:none}.waynture-order-content details>p{font-size:12px;color:#526783;line-height:1.5;margin:8px 0}.waynture-order-content .waynture-order-shipping .waynture-order-steps{margin:0 0 10px}

/* Ordering stays visible outside the secondary menu, including in preview. */
.book-studio .book-order-cta{display:flex;align-items:center;justify-content:center;gap:9px;flex:none;align-self:center;width:min(100%,420px);height:auto;min-height:44px;padding:9px 16px;margin:0 0 5px;border-radius:14px;background:#ff5910;color:#002d72;border:1px solid #ff5910;font-size:14px;font-weight:750;line-height:1.3;box-shadow:0 3px 9px #ff591022}
.book-studio .book-order-cta svg{width:22px;height:22px;flex:none}.book-studio .book-order-cta span{white-space:normal;overflow-wrap:anywhere}.book-studio .book-order-cta:hover{background:#ff813f;border-color:#ff5910}
:root[data-theme=dark] .book-studio .book-order-cta{background:#ff8b45;color:#10243d;border-color:#ff8b45}
@media(prefers-color-scheme:dark){:root:not([data-theme]) .book-studio .book-order-cta{background:#ff8b45;color:#10243d;border-color:#ff8b45}}
