@font-face{font-family:"Noto Sans";src:url("/fonts/NotoSans-Regular.ttf") format("truetype");font-weight:400;font-style:normal;font-display:block}
:root{font-family:Arial,Helvetica,sans-serif;color:#ddd;background:#525252;font-size:13px;--yellow:#ffeb3b;--teal:#119ab0;--dark:#535353;--gray:#bdbdbd;--border:#d4d4d4;--inspector:255px}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0;border-radius:4px;padding:8px 13px;background:#888;color:#fff;white-space:nowrap}button:hover{filter:brightness(1.08)}button:active{filter:brightness(.95)}button:disabled{opacity:.38;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:2px solid var(--teal);outline-offset:3px}button.primary{background:var(--yellow);color:#424242;font-weight:bold}button.ghost{background:none;color:inherit}button.icon{padding:7px;width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;background:transparent}button.icon.active{background:var(--yellow);color:#444}button.round{border-radius:50%;background:#929292}svg.icon-svg{height:20px;width:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}#app{height:100dvh;display:flex;flex-direction:column}.titlebar{height:25px;min-height:25px;background:#383837;border-bottom:1px solid #626262;display:flex;align-items:center;justify-content:center;position:relative;font-size:11px;color:#ccc}.brand{position:absolute;left:12px;letter-spacing:1px;font-size:10px}.brand b{color:var(--yellow);font-size:13px}.titlebar #save-state{position:absolute;right:12px;font-size:10px}#save-state.error{color:#ffaaa2}#toolbar{height:49px;min-height:49px;display:flex;align-items:center;padding:0 12px;gap:10px;background:#545454;border-bottom:1px solid #777;position:relative}#toolbar .summary{flex:1;text-align:center;font-size:11px;color:#e2e2e2}#toolbar .divider{height:28px;width:1px;background:#727272;margin:0 6px}#toolbar .top-geometry{display:flex;gap:15px;align-items:center}#toolbar .top-geometry label{font-size:12px;color:#bbb;display:flex;align-items:center;gap:6px}#toolbar .top-geometry input{width:61px;background:none;color:white;border:0;border-bottom:1px solid #a1a1a1;padding:5px 2px}#toolbar .top-geometry small{font-size:11px}#workspace{flex:1;min-height:0;display:flex}#workarea{flex:1;min-width:0;display:flex;flex-direction:column}#canvas{flex:1;min-height:0;position:relative;background:#bcbcbc;overflow:auto;outline:none;scrollbar-color:#888 #bcbcbc}#canvas.album{display:flex;align-items:center;gap:30px;padding:27px 55px 28px;scroll-snap-type:x proximity}#canvas.album .spread-card{flex:none;width:min(75vw,960px);scroll-snap-align:center;position:relative;background:white;box-shadow:0 2px 5px #0003;border:2px solid transparent}#canvas.album .spread-card.selected{border:3px solid var(--yellow)}.spread-heading{position:absolute;top:-23px;left:0;right:0;height:23px;display:flex;align-items:center;gap:3px;font-size:11px;color:#eee}.spread-heading button{padding:2px 5px;background:none;font-size:15px;color:#eee;height:22px}.spread-heading .layout-switch{margin:auto;display:flex;align-items:center}.spread-heading .spread-number{margin-left:auto;padding:3px 8px}.spread-svg{display:block;width:100%;height:100%;overflow:hidden;user-select:none;touch-action:none}.spread-svg .frame-hit{cursor:move}.spread-svg .handle{cursor:nwse-resize;fill:#fff;stroke:var(--yellow);stroke-width:1.6;vector-effect:non-scaling-stroke}.spread-svg .selection-member{stroke:var(--yellow);stroke-width:1.5;stroke-dasharray:4 3;fill:none;vector-effect:non-scaling-stroke;pointer-events:none}.spread-svg .marquee{fill:#ffeb3b33;stroke:var(--yellow);stroke-width:1;vector-effect:non-scaling-stroke;pointer-events:none}.spread-svg .selection-box{stroke:var(--yellow);stroke-width:2;fill:none;vector-effect:non-scaling-stroke;pointer-events:none}.spread-svg .gutter{stroke:#ddd;stroke-width:.5;pointer-events:none}.spread-svg .frame-placeholder{fill:#f3f3f3;stroke:#bbb;stroke-width:.4}.spread-svg .frame-placeholder-label{fill:#999;font-size:8px;text-anchor:middle}#canvas.designer{padding:34px 60px 28px;display:flex;align-items:center;justify-content:center}.designer-board{position:relative;width:100%;max-height:100%;flex:none;background:white;box-shadow:0 1px 5px #0002;border:1px solid #ef7765}.designer-board .ruler{position:absolute;top:-22px;left:0;right:0;height:18px;color:#767676;display:flex;justify-content:space-between;background:repeating-linear-gradient(90deg,transparent 0,transparent 9px,#999 9px,#999 10px);background-size:auto 4px;background-repeat:repeat-x;background-position:bottom;font-size:9px}.tool-strip{position:fixed;left:14px;top:112px;display:flex;flex-direction:column;background:#555;padding:5px;border-radius:3px;box-shadow:0 2px 9px #0005;z-index:3}.tool-strip button{width:28px;height:30px;border-radius:1px;padding:5px}.tool-strip button svg{width:18px;height:18px}.empty-canvas{margin:auto;text-align:center;color:#666;max-width:410px;line-height:1.8}.empty-canvas svg{width:58px;height:58px;stroke-width:1}.empty-canvas h2{font-size:21px;font-weight:normal;margin:15px 0 4px}.empty-canvas button{margin:12px 3px}#timeline{height:95px;min-height:95px;background:#a3a3a3;display:flex;align-items:stretch;overflow-x:auto;padding-left:28%;border-top:1px solid #c4c4c4;gap:5px}#timeline:empty{display:none}.timeline-group{display:flex;align-items:center;gap:9px;padding:12px 13px;border-left:5px solid #5a5a5a;cursor:pointer;position:relative;flex-shrink:0}.timeline-group.selected{background:var(--yellow)}.timeline-group img{height:59px;max-width:95px;border:3px solid white;object-fit:contain;pointer-events:none}.timeline-group .empty-group{color:#666;min-width:55px;font-size:11px}.timeline-index{position:absolute;top:2px;left:7px;font-size:9px;color:#555}.timeline-group.drag-over{outline:2px dashed #222;outline-offset:-4px}#image-browser{height:211px;min-height:120px;background:#535353;display:flex;flex-direction:column;border-top:1px solid #707070}#browser-toolbar{height:36px;min-height:36px;background:#626262;display:flex;gap:8px;align-items:center;padding:0 12px;font-size:10px}#browser-toolbar button{font-size:10px;padding:5px 9px;background:#888}#browser-toolbar .browser-icon{color:var(--yellow);padding:3px 8px 3px 0;border-right:1px solid #777}.toolbar-spacer{flex:1}#browser-toolbar select,#browser-toolbar input{background:transparent;color:#eee;border:0;border-bottom:1px solid #999;font-size:10px;padding:4px 2px}#browser-toolbar input{width:110px}#browser-toolbar select option{background:#555}#thumbnails{overflow:auto;display:flex;align-content:flex-start;align-items:center;gap:18px;padding:12px 20px;flex-wrap:wrap;min-height:0}.thumb{position:relative;cursor:grab;padding:3px;border:2px solid transparent;height:138px;display:flex;align-items:center;justify-content:center;min-width:75px}.thumb img{max-height:120px;max-width:180px;object-fit:contain;border:3px solid #aaa;pointer-events:none}.thumb.used img{opacity:.52}.thumb.selected{border-color:var(--yellow)}.thumb.selected img{opacity:1}.thumb-name{position:absolute;bottom:-5px;left:0;right:0;text-align:center;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#ddd}.usage{position:absolute;right:5px;top:5px;min-width:15px;height:15px;background:#444b;color:#fff;text-align:center;border-radius:8px;font-size:10px;line-height:15px}.browser-empty{padding:25px;color:#bdbdbd;text-align:center;width:100%;font-size:12px}#inspector{width:var(--inspector);min-width:var(--inspector);background:#fafafa;color:#555;border-left:1px solid #ccc;overflow:auto;font-size:12px}.inspector-title{font-size:16px;font-weight:600;padding:18px 15px;border-bottom:1px solid #ddd;display:flex;justify-content:space-between;align-items:center}.inspector-section{border-bottom:1px solid #ddd;padding-bottom:16px}.inspector-section h3{font-size:12px;font-weight:600;padding:13px 15px;margin:0 0 8px;background:#f5f5f5;border-bottom:1px solid #e5e5e5}.inspector-body{padding:0 15px;line-height:1.8}.inspector-preview{margin:12px 15px 18px;border:3px solid var(--yellow);height:130px;display:flex;align-items:center;justify-content:center;background:#fff;position:relative;overflow:hidden}.inspector-preview img{width:100%;height:100%;object-fit:contain}.inspector-preview .middle{position:absolute;height:100%;width:1px;background:#f2f2f2;left:50%}.crop-preview{margin:12px 15px 18px;height:150px;position:relative;overflow:hidden;background:#e4e4e4;cursor:grab;touch-action:none;user-select:none}.crop-preview.panning{cursor:grabbing}.crop-preview.readonly,.crop-preview[data-pan-x=false][data-pan-y=false]{cursor:default}.crop-preview .crop-image{position:absolute;max-width:none;pointer-events:none}.crop-preview .crop-frame{position:absolute;outline:2px solid var(--yellow);box-shadow:0 0 0 2000px #fafafa9e;pointer-events:none}.field-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:7px 0;min-height:23px}.field-row label{font-size:11px;min-width:65px}.field-row input[type=range]{width:110px;min-width:0;accent-color:#888}.field-row input[type=color]{width:35px;height:24px;border:1px solid #ccc;padding:1px;background:none}.field-row input[type=number],.field-row input[type=text],.field-row select{width:93px;border:0;border-bottom:1px solid #bbb;background:transparent;padding:4px;color:#555}.field-row output{font-size:10px;min-width:29px;text-align:right}.inspector-body textarea{width:100%;min-height:75px;resize:vertical;border:1px solid #ccc;padding:8px;color:#333}.inspector-body .muted{font-size:10px;line-height:1.6;color:#888}.inspector-body button{font-size:11px;padding:6px 10px;margin-top:8px;background:#ddd;color:#444}.metadata{display:grid;grid-template-columns:1fr 1fr;gap:5px;font-size:10px;color:#888}.metadata dt,.metadata dd{margin:0}.metadata dt{color:#555}.warning{color:#9b7600;background:#fff9db;padding:8px;border-radius:3px;font-size:11px}.warn-mark{color:#bba300}.statusbar{height:21px;min-height:21px;background:#444;display:flex;justify-content:space-between;padding:4px 12px;color:#bbb;font-size:10px}dialog{padding:0;border:0;border-radius:8px;width:min(820px,94vw);max-height:92dvh;color:#333;background:#fafafa;box-shadow:0 15px 70px #0007}dialog::backdrop{background:#0005;backdrop-filter:blur(1px)}.dialog-title{background:#383837;color:#ddd;padding:11px 24px;text-align:center;font-size:15px;font-weight:bold;position:relative}.dialog-title button{position:absolute;right:10px;top:4px;background:none;font-size:20px;padding:2px 8px}.dialog-body{padding:35px 55px;max-height:75vh;overflow:auto}.dialog-body h1{font-size:30px;font-weight:400;margin:0 0 30px;text-align:center;color:#222}.dialog-body h2{font-size:20px;font-weight:400;margin:0 0 20px}.dialog-body p{line-height:1.7;color:#777}.dialog-tabs{display:flex;justify-content:center;border-bottom:1px solid #ddd;padding:0 15px;gap:20px}.dialog-tabs button{background:none;color:#777;font-size:15px;border-radius:0;padding:18px 15px;border-bottom:3px solid transparent}.dialog-tabs button.active{color:#222;border-bottom-color:var(--teal)}.dialog-actions{display:flex;justify-content:flex-end;gap:20px;padding:20px 35px 28px;align-items:center}.dialog-actions button{padding:12px 20px;font-size:14px}.dialog-actions button.ghost{color:#555}.dialog-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px 45px}.dialog-grid label,.form-stack label{display:block;font-size:12px;color:#555;margin-bottom:8px}.dialog-grid input:not([type=checkbox]):not([type=radio]),.dialog-grid select,.form-stack input{width:100%;border:0;border-bottom:1px solid #aaa;background:transparent;color:#222;padding:9px 2px;font-size:16px;border-radius:0}.dialog-grid input[type=color]{height:40px;padding:2px!important}.dialog-body input[type=checkbox],.dialog-body input[type=radio]{accent-color:var(--teal)}.dialog-body input[type=range]{accent-color:var(--teal)}.dialog-grid small{display:block;font-size:11px;color:#999;margin-top:8px}.form-stack{display:flex;flex-direction:column;gap:20px;max-width:380px;margin:0 auto}.form-error{color:#af3327!important;font-size:12px;line-height:1.6;white-space:pre-line}.project-list{display:flex;flex-direction:column;gap:1px;background:#ddd;border:1px solid #ddd;border-radius:4px;overflow:hidden}.project-row{display:flex;justify-content:space-between;padding:15px;background:white;color:#444;border-radius:0;text-align:left;font-size:14px}.project-row small{color:#888;font-size:11px}.project-row:hover{background:#fffbe4}.auto-summary{display:flex;gap:30px;margin-bottom:35px}.auto-summary>div{border:1px solid #bbb;border-radius:9px;text-align:center;padding:22px;flex:1}.auto-summary strong{font-size:60px;color:#222;display:block}.auto-summary span{display:block;margin-top:8px}.dialog-row{display:flex;align-items:center;gap:15px;margin:24px 0}.dialog-row label{min-width:155px}.dialog-row input[type=number]{width:70px;border:0;border-bottom:1px solid #999;background:none;padding:8px;font-size:18px}.dialog-row input[type=range]{flex:1}.export-body{min-height:240px}.export-body h3{font-size:16px;margin-top:25px}.export-body select,.export-body input[type=text],.export-body input[type=number]{border:0;border-bottom:1px solid #999;background:none;padding:9px;font-size:16px}.export-body progress{width:100%;accent-color:var(--teal);height:10px}.download-list{display:flex;flex-direction:column;gap:10px;margin:18px 0}.download-list a{color:#05889b}.proof-link{display:flex;gap:8px;margin-top:15px}.proof-link input{min-width:0;flex:1;font-size:12px!important}.subtle-note{font-size:11px!important;color:#999!important;line-height:1.6}.auth-brand{text-align:center;margin-bottom:25px;letter-spacing:2px}.auth-brand b{color:#8c7d00}.auth-dialog{max-width:500px}.auth-dialog .dialog-body{padding:35px 45px}.auth-dialog .dialog-body h1{font-size:25px}.auth-dialog .dialog-actions{padding-right:45px}.lock-banner{background:#fff3ca;color:#6b551c;padding:10px;font-size:12px;text-align:center}#toast{position:fixed;bottom:35px;left:50%;transform:translateX(-50%);background:#222e;color:white;border-radius:5px;padding:11px 20px;z-index:10;max-width:80vw;display:none;font-size:12px;box-shadow:0 3px 18px #0004}.hidden{display:none!important}.proof-shell{height:100dvh;overflow:auto;background:#e9e9e7;color:#333}.proof-header{height:65px;background:#383837;color:white;display:flex;align-items:center;justify-content:space-between;padding:0 28px;gap:20px}.proof-header h1{font-size:18px;font-weight:normal}.proof-content{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:25px;padding:35px}.proof-album{min-width:0}.proof-spread{margin-bottom:30px}.proof-spread img{width:100%;box-shadow:0 2px 12px #0003}.proof-spread p{font-size:11px;color:#777;text-align:center}.proof-feedback{background:white;border:1px solid #ddd;padding:22px;align-self:start;position:sticky;top:20px}.proof-feedback label{display:block;font-size:12px;margin:15px 0 5px}.proof-feedback input,.proof-feedback textarea,.proof-feedback select{width:100%;padding:9px;border:1px solid #ccc}.proof-feedback textarea{height:95px;resize:vertical}.proof-feedback h2{font-size:17px;font-weight:normal}.proof-feedback button{margin-top:15px;width:100%;background:#555}.proof-feedback button.primary{background:var(--yellow)}.proof-comment{padding:12px 0;border-top:1px solid #eee;font-size:12px;line-height:1.6;white-space:pre-wrap}.proof-comment small{display:block;color:#999}.proof-feedback .approval-status{color:#348052;font-size:12px;margin:15px 0}.proof-empty{max-width:600px;padding:50px;margin:auto} @media(max-width:1100px){:root{--inspector:225px}#browser-toolbar{gap:5px;padding:0 7px}#browser-toolbar input{width:70px}#browser-toolbar .optional{display:none}#canvas.album .spread-card{width:calc(100vw - 310px)}#canvas.designer{padding:36px 30px 25px 50px}.field-row input[type=range]{width:80px}.titlebar .brand{font-size:8px}}@media(max-height:750px){#image-browser{height:170px}#timeline{height:75px;min-height:75px}.timeline-group{padding:9px 10px}.timeline-group img{height:48px}.thumb{height:105px}.thumb img{max-height:90px;max-width:140px}.dialog-body{padding:25px 40px}}@media(max-width:750px){.proof-content{display:block;padding:18px}.proof-feedback{position:static}.proof-header{padding:0 15px}.proof-header h1{font-size:15px}.dialog-grid{gap:20px}.dialog-body{padding:25px}.titlebar .brand{display:none}#toolbar .summary{font-size:9px}#toolbar{gap:4px}#toolbar .top-geometry{gap:5px}#toolbar .top-geometry input{width:43px}.dialog-tabs{gap:5px}.dialog-tabs button{font-size:12px;padding:14px 8px}}
/* Timeline occurrences remain independent from frame stacking order. */
#timeline{height:112px;min-height:112px;gap:0;padding-left:20%;scrollbar-width:thin}
.timeline-group{border:0;padding:24px 0 12px;gap:0;min-width:64px;cursor:default}
.timeline-group.selected{background:#d7d7d7}
.timeline-index{background:none;padding:1px 6px;height:20px;top:0;left:4px;color:#555;font-size:10px;cursor:grab;z-index:1}
.timeline-frame{padding:0;background:none;border:0;border-radius:0;height:65px;min-width:30px;cursor:grab;display:flex;align-items:center;justify-content:center}
.timeline-frame img{height:60px;max-width:96px;border:3px solid #f5f5f5;object-fit:contain;pointer-events:none}
.timeline-frame.selected img{border-color:var(--yellow)}
.timeline-gap{width:15px;flex:none;align-self:stretch;margin-top:-24px;margin-bottom:-12px;border-radius:0;background:none;padding:0;position:relative;color:#333}
.timeline-gap:hover:before,.timeline-gap:focus-visible:before{content:'';position:absolute;top:0;bottom:0;left:6px;width:3px;background:#666}
.timeline-gap:hover:after{content:'✂';position:absolute;top:2px;left:-1px;font-size:13px}
.timeline-boundary{width:9px;min-width:9px;padding:0;border:0;border-left:5px solid #595959;border-radius:0;background:transparent;margin:0 6px;cursor:pointer}
.timeline-boundary:hover{border-left-color:#ffeb3b}
.timeline-edge,.timeline-end{width:13px;align-self:stretch;flex:none}.timeline-tail{min-width:70px}.timeline-group .empty-group{padding:14px}
.timeline-drop{box-shadow:inset 3px 0 #ffeb3b!important;background:#fff7a077!important}
.templates-dialog{width:min(1000px,95vw)}.template-library{padding:18px 25px;max-height:74vh;overflow:auto}.template-filters{display:flex;align-items:center;gap:7px;margin-bottom:15px}.template-filters button{background:#e1e1e1;color:#555}.template-filters button.active{background:#ffeb3b;color:#333}.template-filters span{margin-left:auto;color:#888;font-size:11px}.template-preview{width:min(480px,80%);aspect-ratio:2;margin:auto;background:white;box-shadow:0 1px 6px #0003}.template-preview-caption{text-align:center;font-size:11px;color:#888;margin:9px 0 18px}.template-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px}.template-item{border:1px solid #ddd;background:white;position:relative;border-radius:3px;overflow:hidden}.template-item.rejected{border-style:dashed}.template-item.rejected .template-choice>span:not(.template-thumb):after{content:' · Απορριφθέν';color:#a66}.template-choice{padding:8px;width:100%;display:block;background:white;color:#555;white-space:normal;border-radius:0}.template-choice:hover,.template-choice:focus-visible{background:#fffbd4}.template-choice .spread-svg{aspect-ratio:2;border:1px solid #eee;height:auto}.template-choice>span:not(.template-thumb){display:block;font-size:11px;margin-top:8px}.template-flags{display:flex;justify-content:flex-end;border-top:1px solid #eee;height:25px}.template-flags button{color:#999;background:none;padding:0 8px;font-size:18px;border-radius:0}.template-flags button[aria-pressed=true]{color:#a38c00}.template-empty{grid-column:1/-1;color:#888;font-size:12px;line-height:1.7}.template-context{position:absolute;inset:auto 0 0;background:#333;padding:4px;z-index:2}.template-context button{width:100%;background:#444;font-size:11px}.snap-guide{stroke:#00a9bd;stroke-width:1;stroke-dasharray:5 3;vector-effect:non-scaling-stroke;pointer-events:none}.swapping{cursor:grabbing!important}.swap-target>.frame-hit{stroke:#ffeb3b;stroke-width:5;vector-effect:non-scaling-stroke;fill:#ffeb3b33}.template-preview .spread-svg,.template-choice .spread-svg{pointer-events:none}
.spread-heading{cursor:grab}.spread-heading button{cursor:pointer}.ruler{cursor:crosshair}.ruler-vertical{position:absolute;left:-22px;top:0;bottom:0;width:18px;cursor:crosshair;background:repeating-linear-gradient(0deg,transparent 0,transparent 9px,#999 9px,#999 10px);background-size:4px auto;background-repeat:repeat-y;background-position:right}.custom-guide{stroke:#e35f81;stroke-width:1;vector-effect:non-scaling-stroke;pointer-events:none}.guide-row{display:flex;align-items:center;justify-content:space-between;margin:12px 0;font-size:12px}.guide-row button{font-size:11px}
.template-section-title{grid-column:1/-1;font-size:13px;color:#777;border-top:1px solid #ddd;margin:5px 0 0;padding-top:14px}.swap-incompatible>.frame-hit{stroke:#d44!important;fill:#e3313177!important}
#canvas.album .selected-object>.frame-hit{stroke:var(--yellow);stroke-width:3;vector-effect:non-scaling-stroke;pointer-events:auto}
.timeline-empty{min-width:300px;display:flex;align-items:center;justify-content:center;color:#555;font-size:12px;flex:1;padding:0 25px}
#toolbar .editor-toggle{font-size:11px;padding:6px 8px;background:#666;color:#ccc}#toolbar .editor-toggle[aria-pressed=true]{background:#ffeb3b;color:#444}
.page-layout-switch{position:absolute;display:flex;top:0;transform:translateX(-50%);background:#aaa8;border-radius:2px}.page-layout-switch.left{left:25%}.page-layout-switch.right{left:75%}.spread-heading .page-layout-switch button{font-size:13px;padding:1px 4px}.page-layout-switch button:disabled{opacity:.2}.spread-heading>.layout-switch{position:absolute;left:50%;transform:translateX(-50%)}
.gap-slider{width:100%;accent-color:#888}.gap-guide{pointer-events:none}.gap-guide line{stroke:#009bb3;stroke-width:1.25;vector-effect:non-scaling-stroke}.gap-guide text{fill:#007e94;font-family:Arial,sans-serif;paint-order:stroke;stroke:#fff;stroke-width:1px;stroke-linejoin:round}
.gap-all{display:flex;align-items:center;gap:6px;font-size:11px;margin-top:8px}.gap-all input{accent-color:#888}
#template-save-scope{width:100%;border:0;border-bottom:1px solid #aaa;background:transparent;color:#222;padding:9px 2px;font-size:16px;border-radius:0}

/* GK-P2-PAGE-UI: per-page controls show over the hovered page or while focused (keyboard stays usable:
   hidden by opacity only). The opposite page is darkened by a pointer-transparent overlay; UI only. */
.spread-card .page-layout-switch{opacity:0;transition:opacity .12s}
.spread-card[data-hover-side=left] .page-layout-switch.left,.spread-card[data-hover-side=right] .page-layout-switch.right,.spread-card .page-layout-switch:hover,.spread-card .page-layout-switch:focus-within{opacity:1}
.spread-card::after,.page-dim::after{content:'';position:absolute;top:0;bottom:0;width:50%;left:0;background:#0008;pointer-events:none;opacity:0;transition:opacity .12s}
.spread-card:has(.page-layout-switch.right.available:is(:hover,:focus-within))::after,.page-dim.dim-left::after{left:0;opacity:1}
.spread-card:has(.page-layout-switch.left.available:is(:hover,:focus-within))::after,.page-dim.dim-right::after{left:50%;opacity:1}
.page-dim{position:relative;display:block}.template-thumb{line-height:0}
.rearrange-hint{margin:4px 0 0}
/* GK-P2-LIBRARY: the layout that matches the current geometry gets a yellow frame (hover only previews). */
.template-item.current .template-choice{outline:3px solid var(--yellow);outline-offset:-3px}.current-tag{font-weight:bold;color:#7a6a00}
.proof-revoked{color:#a33}
.import-summary h3{font-size:13px;margin:14px 0 4px}.import-names{max-height:160px;overflow:auto;font-size:12px;line-height:1.5}
.proof-draft{margin:14px 0}.draft-status{margin:0 0 4px}.draft-note{font-size:11px;color:#777;margin:0 0 8px}.draft-warning{font-size:12px;color:#a33;margin:0 0 8px}.draft-item{border:1px solid #ddd;padding:6px;margin:6px 0}.draft-item small{display:block;color:#666}.draft-item textarea{width:100%;min-height:48px}.proof-notice{font-size:12px;color:#2d6a2d}
.draft-pending{font-size:12px;color:#8a5a00;margin:0 0 6px}.draft-locked{background:#fff8e6}.proof-comments-title{font-size:13px;margin:16px 0 6px}
/* GK-P4-PROOF-NAVIGATION: one spread at a time, grid and fullscreen fallback; responsive and keyboard friendly. */
.proof-nav{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:14px}.proof-nav button{background:#555}.proof-nav button:disabled{opacity:.35}.proof-counter{min-width:120px;text-align:center;font-size:13px}
.proof-spread[hidden]{display:none}.proof-empty-album{color:#777}
dialog.proof-grid{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;border:0;background:#e9e9e7;color:#333;overflow:auto;padding:20px}dialog.proof-grid::backdrop{background:#0006}.proof-grid-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.proof-grid-head h2{font-size:17px;font-weight:normal;margin:0}
.proof-grid-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}.proof-grid-items button{background:white;color:#333;padding:8px;border:2px solid transparent;display:block;width:100%;text-align:center}.proof-grid-items button[aria-current="true"]{border-color:var(--yellow)}.proof-grid-thumb{display:block;background:#fff}.proof-grid-thumb svg{width:100%;height:100%}
.proof-album:fullscreen{background:#222;padding:20px;overflow:auto}.proof-album.proof-focus{position:fixed;inset:0;z-index:15;background:#222;padding:16px;overflow:auto}.proof-album:fullscreen .proof-spread>p,.proof-album.proof-focus .proof-spread>p{color:#ccc}
@media (max-width:700px){.proof-nav button{flex:1 1 40%}.proof-counter{flex:1 1 100%;order:-1}.proof-grid-items{grid-template-columns:repeat(2,minmax(0,1fr))}}
.proof-alternatives{margin:10px 0}.proof-alternatives-title{font-size:13px;margin:12px 0 6px}.proof-alternative{border:1px dashed #b99;padding:8px;margin:6px 0;font-size:12px}.proof-alternative p{margin:2px 0}.proof-alternative-counts{color:#555}
.proof-alternative-texts{margin:4px 0 6px 16px;padding:0;white-space:pre-wrap}

/* GK-ALBUM-SPREAD-REORDER: the visible insertion space while a whole spread is dragged (UI only). */
.spread-drop-space{flex:none;align-self:stretch;width:64px;min-width:64px;margin:6px 4px;border:3px dashed var(--yellow);border-radius:6px;background:#fff7a055;display:flex;align-items:center;justify-content:center;pointer-events:none}.spread-drop-space span{background:var(--yellow);color:#222;font-weight:bold;font-size:12px;border-radius:10px;padding:2px 8px}
.spread-drop-space.in-strip{align-self:center;width:150px;min-width:150px;margin:0}.spread-drop-space.in-strip span{font-size:18px;padding:4px 14px}
.spread-drag-source{opacity:.45}

/* GK-REA-CORRECTIVE 2: spreads chosen as a whole (⌘/⇧-click, ⌥⌘A) */
.spread-card.spread-selected{outline:3px solid var(--teal);outline-offset:4px}.timeline-group.spread-selected{box-shadow:inset 0 0 0 3px var(--teal)}
/* GK-REA-CORRECTIVE 3: import progress window */
.import-progress{min-width:440px;max-width:90vw;padding:24px 28px;border:0;border-radius:8px;background:#f6f6f6;color:#222;box-shadow:0 10px 40px #0007}.import-progress::backdrop{background:#0006}.import-progress h2{margin:0 0 12px;font-size:17px;outline:none}.import-progress p{margin:0 0 12px}.import-progress progress{width:100%;height:14px}.import-progress .dialog-actions{display:flex;justify-content:flex-end;margin-top:16px}
/* GK-REA-CORRECTIVE 4: colour swatches */
.swatches{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:6px 0}.swatch{width:22px;height:22px;min-width:0;padding:0;border:1px solid #888;border-radius:4px}.swatch.current{outline:2px solid var(--teal);outline-offset:1px}.swatch-item{position:relative;display:inline-flex}.swatch-remove{position:absolute;top:-7px;right:-7px;width:14px;height:14px;padding:0;border-radius:7px;font-size:10px;line-height:14px;background:#666;display:none}.swatch-item:hover .swatch-remove,.swatch-remove:focus{display:block}.swatch-add{width:22px;height:22px;padding:0;line-height:20px}.swatch-label{font-size:11px;color:#666;margin-right:2px}
/* GK-REA-CORRECTIVE 2: the whole-spread drag handles look draggable */
#timeline .timeline-index,#canvas .spread-heading{cursor:grab}
/* P1.3: exact-orientation template badge (E1/E2) */
.exact-tag{color:var(--teal);font-weight:600}
