@font-face{font-family:Open;src:url(OpenSans-Regular.ttf)}@font-face{font-family:Lora;src:url(Lora-Regular.ttf)}@font-face{font-family:Caveat;src:url(Caveat-Regular.ttf);size-adjust:150%}
:root{--ink:#262f3a;--muted:#777c81;--accent:#233d5b;--border:#dfe2e6;--font:Open,Arial,sans-serif}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:#eff1f4;font:13px Open,Arial,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer;color:inherit;border:1px solid var(--border);background:white;border-radius:7px;transition:background .15s}button:hover{background:#edf0f3}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #4d6c90;outline-offset:3px}button:disabled{cursor:default;opacity:.4}input,select{width:100%;padding:10px;border:1px solid #d9dde1;border-radius:6px;background:white;color:var(--ink)}button.primary{background:var(--accent);color:#fff;border-color:var(--accent);padding:11px 18px;font-weight:bold}.quiet{border:0;background:transparent;padding:10px}.app-header{height:78px;display:flex;align-items:center;justify-content:space-between;padding:0 30px;background:#fff;border-bottom:1px solid var(--border)}.brand{display:flex;gap:12px;align-items:center}.brand-mark{background:#24384f;color:#fff;border-radius:8px;padding:11px 8px;font-weight:bold;letter-spacing:-1px;font-size:19px}.brand-mark span{font-size:16px;color:#b5cbe5}.brand strong{display:block;letter-spacing:.4px;font-size:16px}.brand small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.project-name{display:flex;gap:10px;align-items:center;font-size:13px}.status-dot,.small-dot{height:6px;width:6px;background:#6c87a6;border-radius:50%;display:inline-block}.pill{padding:4px 8px;background:#edf0f4;border-radius:4px;font-size:11px}.header-actions{display:flex;gap:12px}.editor{display:grid;grid-template-columns:222px minmax(500px,1fr) 270px;min-height:calc(100vh - 78px)}.page-sidebar{background:#f7f9fb;border-right:1px solid var(--border);display:flex;flex-direction:column;height:calc(100vh - 78px);position:sticky;top:0}.sidebar-heading{padding:25px 22px 15px}.eyebrow{font-size:9px;letter-spacing:1.7px;color:#7b8085;font-weight:bold}.sidebar-heading h2,.settings h2{font-family:Lora,Georgia,serif;font-size:22px;margin:6px 0 0;font-weight:400}.sidebar-heading h2 span{font-family:Open,sans-serif;font-size:10px;padding:3px 7px;margin-left:6px;background:#e5e9ee;border-radius:8px;color:#646f7b;vertical-align:middle}.variant{display:flex;margin:0 16px 16px;background:#e5e8ec;border-radius:7px;padding:4px}.variant button{flex:1;font-size:10px;border:0;padding:9px 2px;background:transparent}.variant button.active{background:white;box-shadow:0 1px 3px #0001;font-weight:bold}#pageList{overflow:auto;flex:1;padding:0 16px 15px;scrollbar-width:thin}.nav-section{font-size:8px;letter-spacing:1.4px;color:#7a7f84;margin:20px 4px 10px}.page-link{display:flex;align-items:center;gap:10px;width:100%;padding:8px;margin:0 0 7px;text-align:left;background:transparent;border:1px solid transparent;border-radius:7px}.page-link.active{background:#e9eef3;border-color:#a0aebe}.page-link .page-num{font-size:9px;color:#91969c;width:12px}.page-link strong{font-size:10px;display:block;font-weight:400}.page-link small{font-size:8px;color:#878c91;display:block;margin-top:3px}.mini-thumb{width:64px;height:32px;flex-shrink:0;background:#fff;border:1px solid #dfe2e6;padding:4px;display:flex;gap:3px;box-shadow:0 1px 3px #24301b0c}.mini-thumb i{display:block;flex:1;background:repeating-linear-gradient(transparent 0 3px,#dadfe5 3px 4px)}.mini-thumb b{display:block;flex:1;background:#cfd6df}.mini-thumb.cover{background:#36485d;align-items:center;justify-content:center;color:#fff;font:11px Lora}.mini-thumb.half,.mini-thumb.next{display:grid;grid-template-columns:repeat(3,1fr);gap:2px}.mini-thumb.collage{display:grid;grid-template-columns:repeat(3,1fr);gap:2px}.sidebar-foot{font-size:9px;color:#898e93;padding:16px 20px;border-top:1px solid var(--border)}.sidebar-foot span{display:block;margin-top:4px}.workspace{padding:30px 30px 18px;min-width:0;display:flex;flex-direction:column}.workspace-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}h1{font-family:Lora,Georgia,serif;font-size:25px;font-weight:400;margin:6px 0 0}.page-arrows{display:flex;align-items:center;gap:12px;font-size:10px;color:#747b82}.page-arrows button{border-radius:50%;height:30px;width:30px}.canvas-tools{display:flex;justify-content:space-between;align-items:center;padding:12px 0;font-size:10px;color:#737980}.canvas-tools span:first-child{display:flex;align-items:center;gap:7px}.canvas-tools button{padding:7px 10px;font-size:10px;background:transparent}.canvas-area{flex:1;display:flex;align-items:center;min-height:330px;padding:30px 0 25px}.sheet-wrap{position:relative;width:100%;container-type:inline-size}.dimension{position:absolute;top:-20px;left:45%;font-size:9px;color:#939aa3;letter-spacing:1px}#sheet{position:relative;width:100%;aspect-ratio:280/140;background:#fffef9;box-shadow:0 12px 40px #34402c13,0 1px 2px #26301f20;container-type:inline-size;overflow:hidden;--font:Open,Arial,sans-serif;font-family:var(--font)}.sheet-inner{position:absolute;inset:0;padding:6.576429cqw 3.394286cqw 2.863929cqw}.binding{position:absolute;z-index:2;top:0;left:0;width:100%;height:2.5cqw;fill:#bbbcbf;pointer-events:none}.calendar-grid{height:100%;display:grid;grid-template-columns:1fr 1fr 1fr;gap:2.439643cqw}.calendar-grid.single{grid-template-columns:1fr 2fr;gap:3.500357cqw}.calendar-grid.single.half-photo{grid-template-columns:1fr 1fr}.week{min-width:0;height:100%;display:flex;flex-direction:column}.week-title{display:flex;justify-content:space-between;align-items:baseline;padding-bottom:1.166786cqw;border-bottom:1px solid var(--accent);color:var(--accent);gap:0.530357cqw}.week-title strong{font-family:var(--font);font-size:2.015357cqw;font-weight:400;text-transform:capitalize;white-space:nowrap}.week-title span{font-size:0.784929cqw;white-space:nowrap}.days{display:grid;grid-template-rows:repeat(6,minmax(0,1fr));flex:1;min-height:0}.day{padding:0.689464cqw 0 0.159107cqw;border-bottom:1px solid #dfe3e7;min-width:0;overflow:hidden}.day-head{display:flex;align-items:baseline;gap:0.7425cqw;font-size:0.880393cqw;line-height:1.2;white-space:nowrap}.date-number{font-size:1.803214cqw;line-height:1;font-family:Lora,Georgia,serif;min-width:2.015357cqw}.day-name{text-transform:capitalize}.name-day{font-size:0.678857cqw;color:#7e8286;margin-left:auto;overflow:hidden;text-overflow:ellipsis}.day.holiday .date-number,.day.holiday .day-name{color:#a75442}.day.outside{opacity:.45}.holiday-name{font-size:0.66825cqw;color:#a75442;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:0.159107cqw}.note{display:block;width:100%;padding:0.424286cqw 0 0;border:0;resize:none;height:2.2275cqw;background:transparent;font-family:var(--font);font-size:0.901607cqw;line-height:1.2;color:#4e5660;overflow:hidden;border-radius:0}.note::placeholder{color:#b0b6bc;font-size:0.721286cqw}.weekend{display:grid;grid-template-columns:1fr 1fr;gap:1.060714cqw;min-height:0}.weekend .day-head{gap:0.424286cqw;flex-wrap:wrap}.weekend .name-day{width:100%;margin:0;padding-left:0;font-size:0.604607cqw}.weekend .date-number{font-size:1.591071cqw}.weekend .note{height:1.485cqw;padding-top:0.159107cqw;font-size:0.731893cqw}.photo-column{display:flex;flex-direction:column;gap:1.272857cqw;min-height:0}.photo-column .photo-frame{flex:1;min-height:0}.photo-frame{position:relative;background:#dde3ea;border:1px dashed #a0abb7;border-radius:0;overflow:hidden;display:flex;align-items:center;justify-content:center;padding:0;min-width:0;color:#626e7c}.photo-frame:hover{background:#d6dde5}.photo-frame.selected{outline:2px solid #8091a5;outline-offset:3px}.photo-frame img{height:100%;width:100%;object-fit:cover;position:absolute;inset:0}.photo-placeholder{display:flex;align-items:center;flex-direction:column;gap:0.7425cqw;z-index:1;font-size:0.933429cqw}.photo-symbol{font-size:3.500357cqw;font-family:Georgia,serif;line-height:1}.photo-placeholder small{font-size:0.678857cqw;opacity:.8}.photo-column .photo-caption{font-size:0.689464cqw;color:#8f99a4;text-align:center;letter-spacing:0.159107cqw;margin:0}.sheet-folio{position:absolute;bottom:0.848571cqw;right:3.394286cqw;left:3.394286cqw;display:flex;justify-content:space-between;color:#9fa6ad;font: 0.615214cqw Open,Arial,sans-serif;letter-spacing:0.084857cqw}.canvas-hint{text-align:center;font-size:10px;color:#888e95;line-height:1.6;margin:10px 0 24px}.page-summary{display:flex;justify-content:center;gap:45px;padding:20px 0;border-top:1px solid #dbe0e5}.page-summary>div{display:flex;align-items:center;gap:12px}.summary-icon{font-size:22px;color:#778595}.page-summary strong{font-size:10px;display:block;font-weight:400}.page-summary small{font-size:9px;color:#878e95;display:block;margin-top:4px}.workspace-footer{display:flex;justify-content:space-between;font-size:9px;color:#8f97a0;gap:15px;margin-top:15px}.settings{background:#f9fbfd;border-left:1px solid var(--border);padding:25px 22px}.settings-title{padding-bottom:12px}.settings section{padding:19px 0;border-bottom:1px solid var(--border)}.settings h3{font-size:11px;font-weight:600;margin:0 0 13px}.settings label{display:block;font-size:10px;color:#6f7781;margin:13px 0 7px}.settings label input,.settings label select{margin-top:7px;font-size:11px}.swatches{display:flex;gap:8px;align-items:center;margin:12px 0 0}.swatches button{width:24px;height:24px;background:var(--swatch);border-radius:50%;border:3px solid #f9fbfd;outline:1px solid transparent}.swatches button.selected{outline-color:var(--swatch)}.swatches input{width:23px;height:25px;padding:0;border:0;background:transparent}.photo-layouts{display:flex;gap:9px}.photo-layouts button{flex:1;padding:11px 3px 8px;font-size:9px;display:flex;flex-direction:column;align-items:center;gap:8px}.photo-layouts .selected{border-color:#8396ac;background:#eaeff5}.layout-one{width:20px;height:28px;background:#b8c3d0;border-radius:2px}.layout-two{width:30px;height:28px;background:linear-gradient(#b8c3d0 0 45%,transparent 45% 55%,#b8c3d0 55%);border-radius:2px}.upload-button{width:100%;padding:10px;font-size:11px;margin-top:14px}.settings input[type=range]{padding:0;accent-color:#485d76;height:13px;border:0;background:transparent}.settings output{float:right;font-size:10px}.section-title{display:flex;justify-content:space-between}.section-title span{font-size:9px;color:#858d97}.text-button{font-size:9px;border:0;background:transparent;text-decoration:underline;padding:5px 0;color:#7c8793}.helper{font-size:9px;line-height:1.7;color:#8f97a1;margin-bottom:0}.settings .tip{background:#e9eef3;border:0;padding:17px;margin-top:22px;border-radius:6px}.tip>span{font-size:23px;color:#697d94}.tip h3{font-family:Lora,serif;font-size:13px;margin-top:10px}.tip p{font-size:10px;line-height:1.8;color:#727c88;margin-bottom:0}.cover-content{display:grid;grid-template-columns:1fr 1.65fr;height:100%;gap:3.606429cqw}.cover-text{display:flex;flex-direction:column;justify-content:center}.cover-text .year{font:7.425cqw Lora,serif;color:var(--accent);line-height:1.1}.cover-text h2{font-family:var(--font);font-size:2.545714cqw;font-weight:400;line-height:1.4;margin:2.121429cqw 0}.cover-text p{font-size:0.848571cqw;color:#7e8a97;letter-spacing:0.137893cqw}.cover-content .photo-frame{height:100%;border-radius:12.728571cqw 12.728571cqw 0.318214cqw 0.318214cqw}.overview{height:100%;display:flex;flex-direction:column}.overview>h2{font-size:2.121429cqw;font-weight:400;color:var(--accent);margin:-1.378929cqw 0 1.485cqw}.months{flex:1;min-height:0;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(2,1fr);gap:1.378929cqw 2.333571cqw}.month{min-height:0;display:flex;flex-direction:column;min-width:0}.month h3{font-size:1.11375cqw;text-transform:capitalize;margin:0 0 0.424286cqw;color:var(--accent);font-weight:400}.month-grid{display:grid;grid-template-columns:.55fr repeat(7,1fr);grid-template-rows:.7fr repeat(6,1fr);flex:1;min-height:0;gap:0}.month-grid>span{padding:0.180321cqw 0.106071cqw;border-bottom:1px solid #e5e9ee;min-width:0;overflow:hidden;font-size:0.700071cqw;line-height:1.1}.month-grid .dow{font-size:0.583393cqw;color:#737b84;display:flex;align-items:center;justify-content:center}.month-grid .wn{font-size:0.530357cqw;color:#969fa9;border:0;padding-top:0.37125cqw}.month-grid .md{display:flex;flex-direction:column;gap:0.127286cqw}.md small{font-size:0.434893cqw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;line-height:1.15}.md.holiday{color:#a75442}.months.annual{grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(3,1fr);gap:1.060714cqw 2.121429cqw}.annual .md{font-size:0.710679cqw;text-align:center}.annual .month-grid{grid-template-rows:.7fr repeat(6,1fr)}.collage{height:100%;display:flex;flex-direction:column}.collage h2{color:var(--accent);font:2.439643cqw Lora,serif;margin:0 0 1.591071cqw}.collage-grid{display:grid;grid-template-columns:repeat(var(--cols,4),1fr);grid-template-rows:repeat(var(--rows,2),1fr);gap:0.7425cqw;flex:1;min-height:0}.collage-grid img{width:100%;height:100%;object-fit:cover;min-height:0}.collage-grid .empty-tile{background:#dfe6ed;display:flex;align-items:center;justify-content:center;color:#b0bac6;font-size:2.651786cqw}.collage-empty{position:absolute;left:25%;right:25%;top:45%;padding:2.121429cqw;background:#fffef9f0;text-align:center;font-size:1.060714cqw;line-height:1.8;color:#788492}.collage-grid img:first-child:nth-last-child(n+5){grid-column:span 2;grid-row:span 2}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#293a4e;color:white;padding:12px 20px;border-radius:8px;box-shadow:0 4px 20px #0002;opacity:0;pointer-events:none;transition:opacity .2s;z-index:10}#toast.show{opacity:1}dialog{width:min(1250px,95vw);border:0;border-radius:10px;padding:24px;background:#f1f3f6;color:var(--ink)}dialog::backdrop{background:#172b25b0}.preview-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.preview-top button{padding:7px 12px}#previewSheet{position:relative;aspect-ratio:280/140;container-type:inline-size;background:#fffef9;overflow:hidden;font-family:var(--font)}dialog>p{text-align:center;font-size:11px;color:#808994}dialog .note::placeholder{color:transparent}dialog .photo-frame{pointer-events:none;outline:0}[hidden]{display:none!important}@media(min-width:1600px){.workspace{padding:40px 50px}.canvas-area{min-height:430px}.editor{grid-template-columns:238px minmax(600px,1fr) 288px}}@media(max-width:1150px){.editor{grid-template-columns:180px minmax(400px,1fr) 225px}.workspace{padding:24px 20px}.settings{padding:24px 16px}.page-link{gap:5px;padding:6px}.mini-thumb{width:45px;height:26px}.app-header{padding:0 20px}.page-summary{gap:20px}.brand small{display:none}}@media(max-width:880px){.editor{grid-template-columns:150px minmax(0,1fr)}.settings{grid-column:2;border-top:1px solid var(--border);display:grid;grid-template-columns:1fr 1fr;gap:20px}.settings-title,.settings .tip{display:none}.settings section{padding-top:0}.page-sidebar{grid-row:1/3}.project-name{display:none}.canvas-area{min-height:250px}.page-summary{display:none}.workspace{padding:20px 16px}.canvas-tools #layoutLabel{display:none}.page-link strong{font-size:9px}.mini-thumb{width:38px}.sidebar-heading{padding:22px 16px}h1{font-size:20px}}@media(max-width:560px){.editor{grid-template-columns:110px minmax(0,1fr)}.page-link .mini-thumb,.page-link small{display:none}.page-link{padding:10px 3px}.sidebar-heading h2{font-size:17px}.sidebar-heading{padding:18px 8px}#pageList{padding:0 5px}.variant{margin:0 5px 10px}.variant button{font-size:8px}.settings{display:block}.workspace-heading{display:block}.page-arrows{margin-top:12px}.canvas-area{min-height:160px}.header-actions{gap:0}.header-actions button{font-size:9px;padding:9px}.brand strong{font-size:12px}.app-header{padding:0 10px}.brand-mark{font-size:15px}.workspace-footer{flex-direction:column}.canvas-hint{font-size:9px}.sidebar-foot{padding:12px 7px;font-size:8px}}
/* Typography at the actual 280 mm format: dates ~16 pt, day labels ~9 pt. */
.day-head{font-size:1.124357cqw;gap:0.689464cqw}.date-number{font-size:2.068393cqw;min-width:2.280536cqw}.name-day{font-size:0.891cqw}.day{padding-top:0.551571cqw}.note{font-size:1.0395cqw;height:2.280536cqw;line-height:1.12;padding-top:0.318214cqw}.note::placeholder{font-size:0.827357cqw}.holiday-name{font-size:0.7425cqw}.week-title span{font-size:0.912214cqw}.weekend .date-number{font-size:1.909286cqw}.weekend .name-day{font-size:0.774321cqw}.weekend .note{font-size:0.912214cqw;height:1.85625cqw}.photo-placeholder{font-size:1.145571cqw}.photo-placeholder small{font-size:0.848571cqw}.day:has(.note:focus){background:#e9eef4}.sheet-folio{font-size:0.689464cqw}

.account-error{padding:12px 24px;background:#fff0d5;color:#6c3500;font:14px/1.6 Open,Arial,sans-serif;border-bottom:1px solid #ce9b47}.account-error button,.account-error a{margin:4px 8px;padding:5px;color:inherit}.account-error[hidden]{display:none}#draftDialog{width:min(700px,90vw);border:0;border-radius:16px;padding:24px}#draftList{max-height:65vh;overflow:auto;padding:16px 0}.draft-choice{display:block;text-align:left;width:100%;padding:16px;margin:8px 0;background:#f1f2f4;border:1px solid #dcdfe2;border-radius:8px;cursor:pointer}.header-actions{flex-wrap:wrap}

/* Custom collage and independent 280 x 30 mm stand artwork. */
.free-canvas{position:relative;min-height:0}.collage-canvas{flex:1}.free-frame{position:absolute;min-width:0;min-height:0}.free-frame>.photo-frame{width:100%;height:100%}.move-frame{position:absolute;left:3px;top:3px;z-index:3;background:#fffdf0ed;border:1px solid #8a98a9;color:#35475b;padding:2px 5px;font:10px Open,Arial,sans-serif;cursor:move;touch-action:none}.free-frame .photo-placeholder{font-size:0.954643cqw}.free-frame .photo-placeholder small{display:none}.free-frame .photo-symbol{font-size:2.121429cqw}.stand-canvas{width:100%;height:100%}.stand-canvas .photo-frame{background:transparent}.stand-canvas .photo-frame img{object-fit:var(--ad-fit,contain)}.ad-copy{display:flex;flex-direction:column;align-items:stretch;position:absolute;white-space:pre-wrap;overflow:hidden;line-height:1.25;color:var(--accent);font-family:var(--font);pointer-events:none}.ad-copy:empty{border:1px dashed #c8d0d9}.ad-copy:empty:before{content:'Reklamní text a kontakty';color:#a6aeb8;font:1.060714cqw Open,Arial,sans-serif}#sheet.stand-sheet,#previewSheet.stand-sheet{aspect-ratio:280/30;background:#fff}#sheet.stand-sheet .sheet-inner,#previewSheet.stand-sheet .sheet-inner{padding:0}.stand-sheet .binding,.stand-sheet .sheet-folio,.blank-sheet .binding,.blank-sheet .sheet-folio{display:none}.creative-actions{display:flex;flex-wrap:wrap;gap:6px}.creative-actions button{padding:8px 6px;font-size:10px;flex:1}#adText{width:100%;resize:vertical;padding:9px;margin-top:7px;border:1px solid #d9dde1;border-radius:6px;font-size:11px}#photoLibrary{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;max-height:65vh;overflow:auto;padding:8px}#photoLibrary button{aspect-ratio:1;overflow:hidden;padding:0}#photoLibrary img{width:100%;height:100%;object-fit:cover}#previewSheet .move-frame{display:none}#previewSheet .ad-copy:empty{display:none}#previewSheet .free-frame .photo-frame{border:none;background:transparent}#previewSheet .free-frame .photo-placeholder{display:none}.material-line{font-size:10px;color:#737980;margin-top:8px}.mini-thumb.stand{height:12px}.stand-sheet .photo-frame.selected{outline-offset:-2px}.blank-sheet{background:#fffef9}

.settings{height:calc(100vh - 78px);overflow-y:auto;position:sticky;top:0;scrollbar-width:thin}.mini-thumb.collage{height:32px;display:grid}.mini-thumb.stand{height:12px}@media(max-width:880px){.settings{height:auto;max-height:70vh;position:static}}

.desk-cover{height:100%;position:relative;display:grid;gap:3.182143cqw}.desk-cover .photo-frame{min-height:0;height:100%;width:100%}.cover-own-text{font-family:var(--font);font-weight:400;color:var(--accent);font-size:3.182143cqw;line-height:1.2;margin:0;text-align:center;overflow-wrap:anywhere}.cover-arch{grid-template-columns:1fr 1.65fr;align-items:center}.cover-arch .photo-frame{grid-column:2;border-radius:12.728571cqw 12.728571cqw 0.318214cqw 0.318214cqw}.cover-arch .cover-own-text{grid-row:1;grid-column:1}.cover-full .photo-frame{position:absolute;inset:0}.cover-full .cover-own-text{position:absolute;bottom:3.182143cqw;left:4.242857cqw;right:4.242857cqw;background:#fffef9ed;padding:1.591071cqw}.cover-split{grid-template-columns:1.5fr 1fr;align-items:center}.cover-center{grid-template-rows:minmax(0,1fr) auto;justify-items:center}.cover-center .photo-frame{width:65%;grid-row:1}.cover-center .cover-own-text{grid-row:2}.cover-duo{grid-template-columns:1fr 1fr;grid-template-rows:minmax(0,1fr) auto}.cover-duo .cover-own-text{grid-column:1/3}.photo-column .photo-caption{font-family:var(--font);font-size:1.007679cqw;line-height:1.2;letter-spacing:0;text-align:center;color:var(--accent);min-height:1.272857cqw;max-height:3.7125cqw;overflow:hidden;overflow-wrap:anywhere;flex-shrink:0;margin:0}.desk-cover:not(:has(.cover-own-text)).cover-arch{grid-template-columns:1fr}.desk-cover:not(:has(.cover-own-text)).cover-arch .photo-frame{grid-column:1}.desk-cover:not(:has(.cover-own-text)).cover-split{grid-template-columns:1fr}.desk-cover:not(:has(.cover-own-text)).cover-duo{grid-template-rows:1fr}

#orderDialog{max-width:540px}#orderDialog label{display:block}#orderQuantity{max-width:130px;display:block;margin:12px 0}#orderDialog #orderMessage{min-height:3em;line-height:1.5;text-align:left}#orderPrice{font-size:25px}#orderPriceDetail{text-align:left}#confirmOrder{width:100%}@media print{body{display:none!important}}

/* Visible order preparation, separate from the price summary. */
#printProgress[hidden]{display:none}.print-progress{margin:20px 0;padding:22px;background:#eaeff4;border:2px solid #233d5b;border-radius:12px;color:#192a3e}.print-progress-heading{display:flex;align-items:center;gap:12px;font-size:21px;line-height:1.3}.print-spinner{width:24px;height:24px;flex:0 0 24px;border:3px solid #b9c5d2;border-top-color:#233d5b;border-radius:50%;animation:print-spin 1s linear infinite}.print-progress p{line-height:1.5}.print-progress progress{display:block;width:100%;height:18px;margin:18px 0;accent-color:#233d5b}.print-progress progress::-webkit-progress-bar{background:#cdd5df;border-radius:10px}.print-progress progress::-webkit-progress-value{background:#233d5b;border-radius:10px}.print-progress progress::-moz-progress-bar{background:#233d5b;border-radius:10px}#printProgressTime{font-weight:bold;font-size:15px}.print-progress .print-progress-hint{font-size:13px;margin-bottom:0}.print-progress.is-error{background:#fff2ed;border-color:#a4432e;color:#713020}.print-progress.is-error .print-spinner{display:none}#orderDialog:has(.print-progress:not([hidden])){width:min(620px,calc(100vw - 32px));box-sizing:border-box}#orderDialog{max-height:90vh;overflow:auto}@keyframes print-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.print-spinner{animation:none}}

/* Print text: accent notes, complete names and holidays, no printed page numbers. */
.sheet-folio{display:none}.note{color:var(--accent)}.name-day{white-space:normal;text-overflow:clip;overflow:visible;overflow-wrap:anywhere;min-width:0;text-align:right;max-width:41%;line-height:1.15}.weekend .name-day{max-width:100%;text-align:left}.holiday-name{white-space:normal;text-overflow:clip;overflow:visible;overflow-wrap:anywhere;line-height:1.15;flex-shrink:0}.md small{font-size:0.51975cqw;white-space:normal;text-overflow:clip;overflow:visible;overflow-wrap:anywhere;line-height:1.15}.month-grid>span{overflow:visible}.week-title strong{white-space:normal}.week-title span{white-space:normal;text-align:right;flex-shrink:0}.day-head{flex-shrink:0}.note{min-height:0;flex:1}.weekend .note{min-height:0;flex:1}

.month-grid .md{min-height:0}.note:focus{overflow:auto}

/* MD Print Design Studio identity. */
:root{--ink:#25374d;--muted:#748195;--accent:#165aa7;--border:#dfe6ef}.brand-logo{width:132px;height:42px;object-fit:contain;display:block}.brand{gap:15px}.brand strong{color:#165aa7;letter-spacing:.2px}.brand small{color:#748195}.status-dot,.small-dot{background:#327acc}.pill{background:#eaf2fc;color:#28588c}button.primary{background:#165aa7;border-color:#165aa7}button.primary:hover{background:#114a8a}.print-progress{background:#edf5ff;border-color:#165aa7;color:#203f65}.print-spinner{border-color:#c2d8f0;border-top-color:#165aa7}.print-progress progress{accent-color:#165aa7}.print-progress progress::-webkit-progress-value{background:#165aa7}.print-progress progress::-moz-progress-bar{background:#165aa7}.print-progress.is-error{background:#fff2ed;border-color:#a4432e;color:#713020}@media(max-width:1100px){.brand-logo{width:105px;height:36px}.brand{gap:10px}.brand strong{font-size:14px}}

/* Five large preset colours with a separate custom colour picker. */
.swatches{display:grid;grid-template-columns:repeat(5, minmax(0,1fr));gap:7px;margin:14px 0 12px;padding:3px}.swatches button{width:100%;height:auto;aspect-ratio:1;min-width:0;min-height:34px;padding:0;border:3px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #cbd5e1;outline:2px solid transparent;outline-offset:2px}.swatches button:hover{background:var(--swatch);box-shadow:0 0 0 2px #94a9c3}.swatches button.selected{outline-color:var(--swatch)}.swatches button.selected::after{content:'✓';color:#fff;font-size:18px;font-weight:bold}.swatches button:focus-visible{outline:3px solid #165aa7;outline-offset:3px}.settings .custom-color-label,.custom-color-label{display:flex;align-items:center;gap:10px;cursor:pointer;margin-top:12px}.custom-color-label input[type=color]{width:44px;height:38px;flex:0 0 44px;padding:3px;border:1px solid #bccbde;border-radius:7px;background:#fff;cursor:pointer}.custom-color-label span{font-size:13px;color:#254d7c}

#adText2{width:100%;box-sizing:border-box;resize:vertical;padding:9px;border:1px solid #d9dde1;border-radius:6px;font-size:12px}.stand-canvas .photo-placeholder{font-size:0.954643cqw}.stand-canvas .photo-symbol{font-size:1.909286cqw}

/* Larger six-month labels use the full cell height; empty trailing weeks collapse. */
.months:not(.annual) .md small{font-size:0.604607cqw;line-height:1.12}.months:not(.annual) .month h3{font-size:1.198607cqw}.months:not(.annual) .month-grid .md{gap:0.07425cqw;padding-bottom:0.084857cqw}

#sheet .note,#previewSheet .note{color:var(--accent);-webkit-text-fill-color:var(--accent)}

/* Final agreed interface: larger Design Studio label and preserved colour controls. */
.brand strong{font-size:24px;line-height:1.2}.brand small{display:block}.swatches button{width:36px;height:36px;min-height:36px;justify-self:center}#sheet .note,#previewSheet .note{color:var(--accent);-webkit-text-fill-color:var(--accent)}@media(max-width:1100px){.brand strong{font-size:20px}}@media(max-width:560px){.brand strong{font-size:16px}.brand small{font-size:8px}}

/* Saved designs: independent open/delete actions, including narrow screens. */
.draft-row{display:flex;align-items:stretch;gap:10px;margin:8px 0}
.draft-row .draft-choice{flex:1;min-width:0;margin:0;overflow-wrap:anywhere}
.draft-delete{flex:0 0 auto;align-self:center;min-height:44px;padding:10px 14px;border:1px solid #c98c8c;border-radius:8px;background:#fff4f4;color:#9e2525;cursor:pointer}
.draft-delete:hover{background:#ffe5e5}.draft-delete:disabled{opacity:.55;cursor:wait}
@media(max-width:480px){.draft-row{gap:6px}.draft-row .draft-choice{padding:12px}.draft-delete{padding:10px}}

.stand-managed .move-frame{display:none}.stand-managed .ad-copy:empty{display:none}#sheet .stand-managed .ad-copy:not(:empty){outline:1px dashed #869db8;outline-offset:-1px}#standSettings .creative-actions button.selected{background:#165aa7;color:white;border-color:#165aa7}#standSettings .creative-actions{display:grid;grid-template-columns:1fr 1fr}#standSettings .creative-actions button{min-height:44px;font-size:12px}#copyStandFront{margin-bottom:12px}

/* Layout guides belong only to the editor, never the clean preview or print. */
#sheet .stand-fixed .ad-copy{outline:1px dashed #869db8;outline-offset:-1px}
#sheet .stand-fixed .ad-copy:empty{border:0;background:#f4f7fb}
#sheet .stand-fixed .ad-copy:empty:before{content:attr(data-placeholder);position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#586f89;font:1.378929cqw Open,Arial,sans-serif}

/* Cover geometry in millimetres scaled against the 280 mm page width. */
.cover-sheet .sheet-inner:has(.cover-full),.cover-sheet .sheet-inner:has(.cover-split),.cover-sheet .sheet-inner:has(.cover-center){padding:0}
.cover-full .photo-frame{border:0}.cover-full .photo-frame.selected{outline-offset:-2px}
.cover-split{display:block}.cover-split .photo-frame{position:absolute;left:3.571428cqw;top:3.571428cqw;width:42.857142cqw;height:42.857142cqw}
.cover-split .cover-own-text{position:absolute;left:50cqw;top:3.571428cqw;width:46.428571cqw;height:42.857142cqw;display:flex;align-items:center;justify-content:center;margin:0}
.cover-center{display:block}.cover-center .photo-frame{position:absolute;left:10.535714cqw;top:3.571428cqw;width:78.928571cqw;height:42.857142cqw}
.cover-center:has(.cover-own-text) .photo-frame{height:36.428571cqw}
.cover-center .cover-own-text{position:absolute;left:3.571428cqw;top:41.428571cqw;width:92.857143cqw;height:5cqw;margin:0;font-size:2.863929cqw}
.collage-sheet .sheet-inner{padding:0}.collage-sheet .collage{position:absolute;inset:0;display:block}
.collage-sheet .collage h2{position:absolute;left:3.571428cqw;top:3.571428cqw;width:92.857143cqw;height:2.857143cqw;margin:0;font-size:2.439643cqw;line-height:1.1;overflow:hidden}
.collage-sheet .collage-canvas{position:absolute;left:3.571428cqw;top:7.857142cqw;width:92.857143cqw;height:38.571428cqw}
#previewSheet.cover-sheet .photo-frame{border:0}#previewSheet.cover-sheet .photo-placeholder{display:none}
#addMemoryPages{margin:8px 0 12px}

/* Consistent 10 mm safe area, including month transitions. */
.sheet-inner{padding:3.571428cqw}
.week-title{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:0.424286cqw;align-items:start;height:3.035714cqw;min-height:3.035714cqw;flex-shrink:0;padding:0 0 0.530357cqw;line-height:1.15}
.week-title strong,.week-title span{min-width:0;max-width:100%;white-space:nowrap;overflow:hidden}
.week-title span{text-align:right;padding-top:0.357143cqw}
.days{grid-template-rows:repeat(6,minmax(0,1fr))}.day{min-height:0}
.overview>h2{height:2.5cqw;flex-shrink:0;line-height:1.1;margin:0 0 1.071429cqw}

.photo-column .photo-caption{height:2.5cqw;min-height:2.5cqw;max-height:2.5cqw;flex:0 0 2.5cqw;line-height:1.1}

.sample-notice{padding:12px 24px;background:#edf5fa;color:#174970;font:14px/1.5 Arial,sans-serif;border-bottom:1px solid #d3e5ef}.sample-label{position:absolute;left:5px;bottom:5px;background:#ffffffe8;color:#174970;padding:4px 7px;border-radius:5px;font:11px Arial;pointer-events:none}

.calendar-sample-note{font:13px/1.5 Arial;color:#39566e;max-width:650px}

/* Print-matched 0.25 mm dividers and 0.45 mm inset photograph frames. */
.day,.month-grid .md{border-bottom:0.089286cqw solid #000}
.week-title{border-bottom:0.089286cqw solid var(--accent)}
#sheet .photo-column .photo-frame,#previewSheet .photo-column .photo-frame,
#sheet .collage .photo-frame,#previewSheet .collage .photo-frame,
#sheet .desk-cover:not(.cover-full) .photo-frame,#previewSheet .desk-cover:not(.cover-full) .photo-frame{border:0}
.photo-column .photo-frame:after,.collage .photo-frame:after,.desk-cover:not(.cover-full) .photo-frame:after{content:"";position:absolute;inset:0;pointer-events:none;border:0.160714cqw solid var(--accent);border-radius:inherit;z-index:1}
.cover-own-text{font-weight:400;-webkit-text-stroke:0.071429cqw currentColor;paint-order:stroke fill;display:flex;align-items:center;justify-content:center}
.cover-full .photo-frame img{position:absolute;width:calc(100% + 2.142857cqw);height:calc(100% + 2.142857cqw);left:-1.071429cqw;top:-1.071429cqw;max-width:none}

@font-face{font-family:Open;src:url(OpenSans-Bold.ttf);font-weight:700}
@font-face{font-family:Lora;src:url(Lora-Bold.ttf);font-weight:700}
@font-face{font-family:Caveat;src:url(Caveat-Bold.ttf);font-weight:700;size-adjust:150%}
.cover-own-text{font-weight:700;-webkit-text-stroke:0}
.desk-cover .cover-own-text{font-size:2.897817cqw}
.cover-full .cover-own-text{left:4.285714cqw;right:4.285714cqw;bottom:2.142857cqw;height:6.428571cqw;padding:0;background:#fffef9}
.month-grid>span:not(.dow):not(.wn){border-bottom:0.089286cqw solid #000}
.day.outside{opacity:1}.day.outside>*{opacity:.45}

/* Empty trailing weeks must not add a second rule below the last week. */
.months:not(.annual) .month-grid>span.empty-week{border-bottom:0}

/* Photo captions use the existing 10 mm bottom margin, never shrink photographs. */
.photo-column{position:relative;overflow:visible}
.photo-column>.photo-caption{position:absolute;top:calc(100% + .535714cqw);left:0;width:100%;height:2.321428cqw;min-height:0;margin:0;padding:0;font-size:1.007936cqw;line-height:1.18;overflow:hidden;overflow-wrap:anywhere;color:#111}
.photo-upload-badge{position:absolute;left:4px;right:4px;bottom:4px;padding:7px;background:#123b5eee;color:#fff;font:600 12px/1.35 Arial,sans-serif;white-space:normal;z-index:3;border-radius:5px}
.photo-upload-status{padding:12px;border:1px solid #91bbda;background:#eaf4fc;color:#18354c;border-radius:8px;font-size:14px;line-height:1.45}
.photo-upload-status[hidden]{display:none}.photo-upload-status p{margin:0 0 8px}.photo-upload-status button{padding:10px;margin:4px 4px 0 0}

.photo-column>.photo-caption{color:var(--accent);line-height:1.2}
