*{box-sizing:border-box} :root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#293c48;background:#f7f5ef;color-scheme:light;--green:#4c6f84}body{margin:0}button,input{font:inherit}button{border:1px solid #abc2d0;border-radius:12px;min-height:44px;padding:11px 15px;background:white;color:#293c48;font-weight:650;cursor:pointer}button:hover:not(:disabled){background:#e9f0f4}button:disabled{opacity:.4;cursor:default}.primary{color:#fff;background:var(--green);border-color:var(--green)}.primary:hover:not(:disabled){background:#324a58}button:focus-visible,a:focus-visible,input:focus-visible,[role=button]:focus-visible{outline:3px solid #c89548;outline-offset:3px}a{color:inherit}.app-header,main{max-width:900px;margin:auto}.app-header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px}.back{font-weight:750;text-decoration:none}.tag{font-size:12px;border:1px solid #bbcdd9;padding:6px 12px;border-radius:30px}main{padding:0 24px 42px}.intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:12px 0 22px}h1{font-size:clamp(26px,4vw,36px);letter-spacing:-.04em;margin:5px 0 10px;line-height:1.15}.eyebrow{font-size:11px;font-weight:750;letter-spacing:.1em;color:#8b7047}.intro p:last-child{font-size:13px;line-height:1.55;color:#4c7188;max-width:450px}.paper-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}.paper-tools button{font-size:13px}.animal-label{font-size:13px;display:flex;align-items:center;gap:8px}.animal-label img{width:38px;height:38px;object-fit:cover;border-radius:9px}.preview-wrap{width:100%;max-width:760px;margin:0 auto}.sheet{background:white;color:#27434b;box-shadow:0 8px 35px #2d424f20;aspect-ratio:210/297;padding:4.3%;container-type:inline-size}.sheet-heading{text-align:center;background:#edf6f7;border-radius:2cqw;height:15cqw;padding:2cqw;display:grid;align-content:center;cursor:pointer}.sheet-heading h2{font-size:clamp(16px,4.4cqw,32px);margin:0;line-height:1.16;overflow-wrap:anywhere}.sheet-heading p{font-size:clamp(7px,1.7cqw,12px);margin:1.2cqw 0 0}.sheet[data-long-title=true] .sheet-heading h2{font-size:3.6cqw}.sheet-meta{display:flex;align-items:center;justify-content:space-between;height:4cqw;margin:1.5cqw 0;color:#64787a;font-size:clamp(6px,1.4cqw,10px)}.sheet-meta span:last-child{font-size:clamp(6px,1.2cqw,8px);font-weight:700}#print-rows{height:120cqw;display:grid;grid-template-rows:repeat(var(--row-count,11),minmax(0,1fr));gap:1cqw}.print-row{display:grid;grid-template-columns:12% minmax(0,1fr) 14%;gap:1.8cqw;align-items:center;min-height:0;margin:0;border:1.6px solid var(--row-color,#a8cbd1);border-radius:1.5cqw;padding:.5cqw;background:#fff;cursor:grab;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;position:relative;transition:box-shadow .12s}.print-row:hover{box-shadow:0 0 0 1px #5c88a330}.print-row img{width:100%;height:100%;min-height:0;object-fit:contain;border-radius:1cqw;pointer-events:none;-webkit-user-drag:none}.row-text{font-size:clamp(8px,2.5cqw,17px);font-weight:700;line-height:1.24;overflow-wrap:anywhere;white-space:pre-line;pointer-events:none}.row-time{display:block;font-size:clamp(6px,1.8cqw,11px);margin-top:.5cqw;color:#527a93;font-weight:500}.sticker{border:1px dashed #a9b8b8;border-radius:50%;width:auto;height:85%;max-width:100%;aspect-ratio:1;justify-self:center;pointer-events:none}.sheet-footer{text-align:center;font-size:clamp(6px,1.3cqw,9px);color:#5d89a4;margin-top:1.5cqw}.bottom-tools{display:flex;justify-content:space-between;gap:12px;max-width:760px;margin:18px auto 0}.status{text-align:center;font-size:12px;color:#4c7188;min-height:20px}.holding{box-shadow:0 0 0 3px #608ba566!important}.drag-placeholder{opacity:.28;border-style:dashed;box-shadow:0 0 0 2px #4c6f84!important}.drag-ghost{position:fixed!important;z-index:10000;pointer-events:none!important;margin:0!important;opacity:.97;box-shadow:0 12px 28px #202f3848!important;transform:rotate(-1deg);cursor:grabbing;border-color:#4c6f84!important}.is-dragging,.is-dragging *{cursor:grabbing!important;user-select:none!important}dialog{border:1px solid #c2d3dd;border-radius:22px;padding:22px;width:min(94vw,500px);max-height:92dvh;overflow:auto;background:#fffdf8;color:#293c48}dialog::backdrop{background:#1d2b34bd}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.dialog-head h2{font-size:21px;margin:0}.close{font-size:26px;min-width:44px;line-height:1;padding:4px}.activity-picker{display:flex;width:100%;gap:14px;text-align:left;align-items:center;background:#ecf2f6}.activity-picker img{width:74px;height:74px;border-radius:12px;object-fit:cover}.activity-picker span{display:grid;gap:7px}.activity-picker small{font-size:12px;color:#4e748b}form>label{display:grid;gap:8px;font-weight:650;font-size:14px;margin:20px 0}label small{font-weight:400;color:#517890}input{width:100%;min-width:0;min-height:44px;padding:10px;border:1px solid #afc5d2;border-radius:10px;color:#293c48;background:white}.time-field{display:flex;gap:8px}.time-field input{flex:1}.quiet{background:transparent;font-size:12px;font-weight:500;border-color:transparent}.dialog-reorder{display:flex;gap:8px;margin:18px 0}.dialog-reorder button{font-size:12px;padding:8px 10px}.dialog-reorder .danger{margin-left:auto;color:#975545}.button-row{display:flex;gap:10px;margin-top:22px}.button-row>*{flex:1}.catalog{display:grid;grid-template-columns:1fr 1fr;gap:10px}.catalog button{display:grid;gap:8px;padding:8px;font-size:12px;text-align:left}.catalog img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:9px}[hidden]{display:none!important}
@media screen and (max-width:600px){.app-header{padding:15px 14px}main{padding:0 10px 28px}.intro{display:block;padding:0 4px}.intro .primary{width:100%;margin-top:5px}.intro p:last-child{font-size:12px}.paper-tools{padding:0 4px}.bottom-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px}.bottom-tools button{font-size:12px;padding:10px 8px}.sheet{padding:3.5%}.print-row{border-width:1px}.sheet-heading h2{font-size:4.4cqw}dialog{padding:18px}.activity-picker img{width:60px;height:60px}}
@page{size:A4 portrait;margin:9mm}
@media print{html,body{margin:0!important;padding:0!important;background:#fff!important}.no-print,dialog,.drag-ghost{display:none!important}main,.preview-wrap{display:block!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important}.sheet{box-shadow:none!important;container-type:normal!important;aspect-ratio:auto!important;width:192mm!important;height:278mm!important;padding:0!important;margin:0!important;break-inside:avoid;overflow:hidden}.sheet-heading{height:24mm;padding:5mm 3mm 2mm;border-radius:4mm;display:block;print-color-adjust:exact;-webkit-print-color-adjust:exact}.sheet-heading h2{font-size:22pt;line-height:1.1}.sheet[data-long-title=true] .sheet-heading h2{font-size:14pt}.sheet-heading p{font-size:9pt;margin:2mm 0 0}.sheet-meta{height:8mm;margin:2mm 0;font-size:8pt}.sheet-meta span:last-child{font-size:7pt}#print-rows{height:232mm;gap:1.5mm}.print-row{grid-template-columns:19mm minmax(0,1fr) 23mm;gap:3mm;padding:.6mm 1.5mm .6mm .6mm;border-radius:3mm;border-width:1.6px;break-inside:avoid;opacity:1!important;box-shadow:none!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}.print-row img{height:100%;width:auto;max-width:19mm;max-height:19mm;border-radius:2mm;object-fit:contain}.row-text{font-size:10pt;line-height:1.2}.row-time{font-size:8pt;margin-top:1mm}.sticker{width:17mm;height:17mm;max-height:100%}.sheet-footer{font-size:7pt;margin-top:2mm}.sheet[data-dense=true] .print-row img{max-height:16mm}.sheet[data-dense=true] .sticker{width:16mm;height:16mm}.sheet[data-dense=true] .row-text{font-size:9pt}}


.materials-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 17px;border:1px solid #9fb9c9;border-radius:12px;background:#e3ecf1;font-size:14px;font-weight:700;text-decoration:none}.materials-button:hover{background:#d3e1ea}.animal-label{padding:5px 10px}.animal-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.animal-options button{display:grid;gap:8px;padding:8px;text-align:center;font-size:14px}.animal-options img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px}.animal-options [aria-pressed=true]{border:2px solid #4c6f84;background:#e3ecf1;box-shadow:0 0 0 2px #4c6f8420}.animal-options button:disabled{opacity:.65}.animal-options button:hover{background:#e9f0f4}@media screen and (max-width:380px){.paper-tools{gap:6px}.paper-tools button{font-size:12px;padding:6px 8px}.animal-options{gap:8px}}

.sheet-heading .print-child-name{font-size:clamp(8px,2cqw,14px);font-weight:650;margin:.8cqw 0 0}.sheet-heading:has(.print-child-name:not([hidden]))>p:last-child{margin-top:.6cqw}@media print{.sheet-heading .print-child-name{font-size:10pt;margin:1.2mm 0 0}.sheet-heading:has(.print-child-name:not([hidden]))>p:last-child{margin-top:1mm}.sheet-heading:has(.print-child-name:not([hidden])){padding-top:2mm}.sheet[data-long-title=true] .sheet-heading:has(.print-child-name:not([hidden])){padding-top:1mm}}

/* Times sit between the activity picture and its label, filling the row height. */
.print-row[data-has-clock=true]{grid-template-columns:12% 12% minmax(0,1fr) 14%}
.row-clock{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:0;min-width:0;pointer-events:none;aspect-ratio:1;font-style:normal}
.row-clock svg{display:block;width:100%;height:100%;overflow:visible}.digital-time{display:grid;place-items:center;width:100%;height:100%;border:1px solid #9db7c8;border-radius:1cqw;background:#ecf2f6;font:750 clamp(8px,2.7cqw,19px)/1.1 system-ui,sans-serif;font-variant-numeric:tabular-nums;letter-spacing:-.04em}
@media print{.print-row[data-has-clock=true]{grid-template-columns:19mm 19mm minmax(0,1fr) 23mm}.row-clock{max-width:19mm;max-height:19mm;justify-self:center}.digital-time{font-size:12pt;border-radius:2mm;print-color-adjust:exact;-webkit-print-color-adjust:exact}.sheet[data-dense=true] .row-clock{max-width:16mm;max-height:16mm}.sheet[data-dense=true] .digital-time{font-size:10pt}}

.header-actions{display:flex;align-items:center;gap:10px}

/* Full existing brand, inside the printable sheet and separate from the animal caption. */
.sheet-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:.8cqw}
.routine-brand{display:inline-flex;align-items:center;gap:.5cqw;flex:none;height:2cqw}
.routine-brand img{display:block;object-fit:contain;height:2cqw;width:2cqw}
.routine-brand img:last-child{width:6.5cqw}
@media print{.sheet-footer{margin-top:2mm;min-height:5mm;gap:3mm}.routine-brand{height:5mm;gap:1mm}.routine-brand img{width:5mm;height:5mm}.routine-brand img:last-child{width:17mm}}

/* One to seven sticker places stay aligned in a column beside each task. */
.routine-sticker-settings{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin:0 0 16px;font-size:14px}.routine-sticker-settings label{font-weight:650}.routine-sticker-settings select{font:inherit;color:#293c48;border:1px solid #abc2d0;border-radius:10px;background:#fffef9;min-height:44px;min-width:72px;padding:8px 12px}.routine-sticker-settings small{color:#4c7188;font-size:12px}.paper-tools{flex-wrap:wrap}
.print-row{grid-template-columns:12% minmax(0,1fr) var(--sticker-width,14%)}.print-row[data-has-clock=true]{grid-template-columns:12% 12% minmax(0,1fr) var(--sticker-width,14%)}
.routine-stickers{display:grid;grid-template-columns:repeat(var(--sticker-count,1),minmax(0,1fr));gap:.8cqw;align-items:center;justify-items:center;width:100%;height:100%;min-width:0;min-height:0;pointer-events:none}
.routine-stickers .sticker{display:block;width:min(100%,8.8cqw);height:auto;max-width:100%;max-height:none;aspect-ratio:1;border:1px dashed #7399b0;border-radius:50%}
.routine-photo-frame{display:block;position:relative;width:min(100%,7.7cqw);height:auto;max-height:none;aspect-ratio:1;overflow:hidden;border:1px solid #b7cbd7;border-radius:1cqw;background:#fff;isolation:isolate;pointer-events:none}
.print-row .routine-photo-frame>img{position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;border-radius:0}
.routine-image-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:18px}.routine-image-modes button{padding:9px 8px;font-size:13px}.routine-image-modes button[aria-pressed=true]{border:2px solid #4c6f84;background:#e6eef3}.routine-photo-note{font-size:13px;color:#4e748b;line-height:1.5}.routine-own-actions,.routine-photo-buttons{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.routine-own-actions button{font-size:13px}.routine-photo-buttons>*{flex:1}
.routine-crop-area{position:relative;overflow:hidden;isolation:isolate;width:min(100%,300px);aspect-ratio:1;margin:18px auto;border:6px solid #dce7ee;outline:1px solid #8eadc0;border-radius:20px;background:#fff;touch-action:none;cursor:grab}.routine-crop-area:active{cursor:grabbing}.routine-crop-area:focus-visible{outline:3px solid #c89548;outline-offset:3px}.routine-crop-area img{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;user-select:none}.routine-photo-error{font-size:13px;color:#975545}.routine-photo-error:empty,.routine-photo-note:empty{display:none}#routine-photo-zoom{padding:0;accent-color:#4c6f84}#routine-photo-dialog label{font-size:14px;font-weight:650}
@media print{.print-row{grid-template-columns:19mm minmax(0,1fr) var(--sticker-width,14%)}.print-row[data-has-clock=true]{grid-template-columns:19mm 19mm minmax(0,1fr) var(--sticker-width,14%)}.routine-stickers{gap:1.3mm}.sheet .routine-stickers .sticker{width:min(100%,17mm);height:auto;max-height:none;border-width:.25mm}.sheet[data-dense=true] .routine-stickers .sticker{width:min(100%,16mm);height:auto}.routine-photo-frame{width:19mm;height:19mm;max-width:100%;max-height:19mm;border-radius:2mm}.sheet[data-dense=true] .routine-photo-frame{width:16mm;height:16mm;max-width:100%;max-height:16mm}.print-row .routine-photo-frame>img,.sheet[data-dense=true] .print-row .routine-photo-frame>img{width:100%;height:100%;max-width:none;max-height:none}}

/* Time and both clock styles are always visible on one row. */
.routine-time-setting{margin:20px 0;width:max-content;max-width:100%}.routine-time-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.routine-time-heading label{font-size:14px;font-weight:650}.routine-time-heading small{font-size:12px;font-weight:400;color:#517890}.routine-time-heading .quiet{padding:6px 8px;min-height:36px;flex:none}
.routine-time-row{display:grid;grid-template-columns:max-content max-content;gap:12px;align-items:center}
.routine-clock-choices{display:grid;grid-template-columns:repeat(2,82px);gap:8px}.routine-clock-choices>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:7px 4px;border:2px solid #cbd9e1;min-width:0;font-size:12px;line-height:1.2;background:#fffef9}.routine-clock-choices>button[aria-pressed=true]{border-color:#4c6f84;background:#e6eef3;box-shadow:0 0 0 1px #4c6f84}.routine-clock-preview{display:grid;place-items:center;width:100%;height:42px}.routine-clock-preview>.row-clock{width:42px;height:42px}.routine-clock-preview>.digital-clock{width:62px;height:34px}.routine-clock-preview .digital-time{font-size:13px;border-radius:6px}
@media screen and (max-width:420px){.routine-time-row{gap:8px}.routine-clock-choices{grid-template-columns:repeat(2,68px);gap:6px}.routine-time-heading{gap:4px}.routine-time-heading label small{display:block;margin-top:3px}.routine-time-heading .quiet{font-size:11px;padding:6px 0}.routine-clock-preview>.digital-clock{width:56px}.routine-clock-preview .digital-time{font-size:12px}}

.paper-tools .routine-sticker-settings{margin:0;gap:8px;font-size:13px;flex-wrap:nowrap}.paper-tools .routine-sticker-settings select{min-width:58px;padding:8px}.paper-tools .routine-sticker-settings label{white-space:nowrap}

.row-text{font-size:calc(clamp(8px,2.5cqw,17px) * var(--row-font-scale,1))}@media print{.row-text{font-size:calc(10pt * var(--row-font-scale,1))}.sheet[data-dense=true] .row-text{font-size:calc(9pt * var(--row-font-scale,1))}}

.routine-time-input{display:grid;grid-template-columns:52px 6px 52px;align-items:center;min-width:0;border:1px solid #afc5d2;border-radius:10px;background:#fffef9;padding:0 2px;color:#293c48;font-variant-numeric:tabular-nums}
.routine-time-input select{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='m2 2 3 3 3-3' fill='none' stroke='%23647663' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 4px center;background-size:10px 8px;box-sizing:border-box;display:block;width:100%;min-width:0;min-height:46px;border:0;border-radius:8px;background-color:transparent;padding:8px 16px 8px 6px;color:inherit;font:650 16px/1.2 system-ui,sans-serif;font-variant-numeric:tabular-nums;cursor:pointer}.routine-time-input>span{font:700 18px/1 system-ui,sans-serif}.routine-time-input select:focus-visible{outline:3px solid #c89548;outline-offset:1px}
@media screen and (max-width:360px){.routine-clock-choices{grid-template-columns:repeat(2,48px);gap:4px}.routine-clock-choices>button{font-size:9px;padding:6px 3px;letter-spacing:-.025em}.routine-clock-preview{height:35px}.routine-clock-preview>.row-clock{width:34px;height:34px}.routine-clock-preview>.digital-clock{width:40px;height:28px}.routine-clock-preview .digital-time{font-size:10px}.routine-time-input select{padding-left:5px;padding-right:15px}}

.routine-edit-art{position:relative;display:block;flex:0 0 74px;width:74px;height:74px;overflow:hidden;border-radius:12px;background:#fff}.activity-picker .routine-edit-art>img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;border-radius:0}
