/* Stable, responsive Notion canvas. Artwork stays separate from live content. */
html,body{height:100%;overflow:hidden}body{padding:0;background:transparent;color:#f4f0e6;font-family:Coustard,Georgia,serif}#main{width:min(100%,1105px);height:min(100dvh,670px);margin:0 auto;container-type:size}.yearly-shell{position:relative;width:100%;height:100%;isolation:isolate}.yearly-frame{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:-1}.yearly-interior{position:absolute;inset:8.5% 3% 3.5% 8%;display:flex;flex-direction:column;gap:12px;min-height:0}.yearly-header{display:flex;align-items:center;gap:18px;flex:none;border-bottom:1px solid #ffffff42;padding-bottom:12px}.yearly-header h1{font-size:clamp(20px,3cqw,32px);font-weight:400;color:#fff3a3;margin:0 auto 0 0;white-space:nowrap}.yearly-header nav{display:flex;gap:6px}.yearly-header button,.yearly-body button{font-family:inherit}.yearly-header nav button{background:transparent;border:1px solid #8c8793;box-shadow:none;color:#ded7ec;padding:8px 12px;font-size:13px}.yearly-header nav button[aria-pressed=true]{background:#ddd3ec;color:#22152e;border-color:#ddd3ec}.yearly-tools{display:flex;gap:12px;align-items:center}.yearly-tools .pixel-icon{position:static;width:40px;height:42px;padding:0;background:none;border:0;box-shadow:none}.pixel-icon img{max-width:100%;max-height:100%;object-fit:contain;image-rendering:pixelated}.yearly-tools .pixel-icon[aria-pressed=true]{outline:1px solid #fff3a3;outline-offset:4px}.yearly-body{flex:1;min-height:0}.yearly-body h2{font-weight:400;margin:0;font-size:clamp(18px,2.4cqw,27px)}.yearly-body button{box-shadow:none;border-color:#77717f}.yearly-body button:hover{filter:brightness(1.13)}.yearly-shell button:focus-visible{outline:2px solid #fff3a3;outline-offset:3px}.eyebrow{color:#c6b3df;font-size:12px;margin:0 0 10px}.quiet{color:#b8b2c3;font:12px/1.5 Coustard,Georgia,serif}.setup-home{height:100%;display:flex;flex-direction:column;justify-content:center;text-align:center;gap:8px;max-width:780px;margin:auto}.setup-home>div>p:not(.eyebrow){font-size:14px;color:#c6bfcd}.setup-home .setup-choices{margin:16px 0;gap:22px}.setup-home .setup-choice{background:#21172d;color:#faf4ec;border:1px solid #655471;padding:22px;display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center}.setup-home .setup-choice strong{color:#fff3a3;font-size:19px}.setup-home .setup-choice span{font-family:inherit;font-size:13px}.setup-home .setup-choice .choice-symbol{font-size:34px;color:#c8b2e7}.setup-home-footer{display:flex;justify-content:center;gap:20px}.setup-home-footer button{border:0;background:none;color:#ded3ed;text-decoration:underline;padding:4px}.setup-home>.quiet{margin:4px}.year-overview,.month-view{height:100%;display:flex;flex-direction:column;min-height:0}.period-bar{display:flex;align-items:center;justify-content:center;gap:16px;flex:none;height:38px;margin-bottom:10px}.period-bar h2{font-size:clamp(14px,1.8cqw,20px);text-align:center}.period-bar button{font-size:22px;background:transparent;color:#fff3a3;border:0;padding:0 12px}.overview-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:10px;flex:1;min-height:0}.overview-grid .overview-month{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;min-height:0;padding:7px 5px;background:transparent;color:#f5f0e8;border:1px solid transparent;border-radius:5px}.overview-grid .current-month{border-color:#fff3a3;background:#fff3a30e;color:#fff3a3}.overview-label{font-size:clamp(11px,1.45cqw,16px);white-space:nowrap}.current-dot{font-size:9px}.overview-art{display:flex;align-items:center;justify-content:center;flex:1;min-height:0;width:100%}.overview-art img{max-width:100%;height:100%;max-height:100%;object-fit:contain;border-radius:4px}.overview-name{font-size:clamp(9px,1.05cqw,12px);line-height:1.25;min-height:2.5em;display:grid;place-items:center}.empty-card{height:100%;aspect-ratio:3/5;max-width:100%;border:1px dashed #6b6175;border-radius:5px;display:grid;place-items:center;color:#a791c1;font-size:30px}.overview-hint{text-align:center;margin:8px 0 0}.month-badge{font:11px Coustard,Georgia,serif;color:#fff3a3;margin-left:12px}.month-reading{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.55fr);gap:34px;flex:1;min-height:0;padding:12px 12px 4px}.month-card{display:flex;flex-direction:column;gap:10px;align-items:center;min-height:0;min-width:0;border:0;background:none!important;color:#b8b2c3!important;padding:0}.month-card img{width:100%;height:calc(100% - 26px);object-fit:contain;min-height:0;border-radius:8px}.month-card span{font-size:11px}.month-explanation{display:flex;flex-direction:column;min-height:0;padding:8px 0}.month-explanation h3{font-size:clamp(22px,3cqw,34px);line-height:1.15;color:#fff3a3;font-weight:400;margin:0 0 14px}.month-summary{font-size:clamp(13px,1.7cqw,18px);line-height:1.5;color:#e4ddeb;margin:0 0 14px}.meaning-pages{flex:1;min-height:0}.meaning-pages ul{padding:0 0 0 20px;margin:0;font-size:clamp(13px,1.6cqw,17px);line-height:1.5}.meaning-pages li{margin-bottom:8px;padding-left:3px}.meaning-pages li::marker{color:#c8b2e7}.meaning-footer{display:flex;align-items:center;gap:12px;flex:none;padding-top:12px;font-size:11px;color:#b8b2c3;border-top:1px solid #ffffff30}.meaning-footer button{background:transparent;color:#ded3ed;border:0;padding:4px}.meaning-footer #month-notes{margin-left:auto;text-decoration:underline}.month-empty-view{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;text-align:center}.month-empty-view>span{font-size:75px;color:#c8b2e7}.month-empty-view h3{font-weight:400}.enlarged-card{display:block;max-width:100%;height:min(72dvh,570px);object-fit:contain;margin:auto}#storage-notice{position:fixed;bottom:10px;left:50%;transform:translateX(-50%);background:#fff0dc;padding:10px;z-index:4;max-width:90%}
/* Workflows open within the embed, never grow the outer document. */
dialog{overscroll-behavior:contain;max-height:calc(100dvh - 24px)}.year-draw-results{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.year-result img{max-height:110px}.year-result h3{font-size:10px}.year-result strong{font-size:9px}.year-result button{font-size:10px}.year-result small{font-size:9px}.year-draw-copy{margin:10px 0}.year-draw-dialog .dialog-top{margin-bottom:8px}.year-draw-dialog .storage-copy{margin-top:8px}.year-shuffle-stage{height:clamp(160px,34dvh,260px)}
@container(max-width:760px){.yearly-interior{gap:8px}.yearly-header{gap:10px;padding-bottom:8px}.yearly-header nav button{font-size:11px;padding:7px}.yearly-tools{gap:8px}.yearly-tools .pixel-icon{width:30px;height:32px}.month-reading{gap:20px;padding:6px 0}.month-summary{margin-bottom:10px}.month-explanation h3{margin-bottom:10px}.setup-home .setup-choice{padding:16px}.setup-home .setup-choices{gap:14px}.overview-grid{gap:5px}.overview-grid .overview-month{padding:5px 2px}.meaning-pages li{margin-bottom:6px}}
@container(max-width:520px){.yearly-interior{inset:8% 4% 4% 8%}.yearly-header{flex-wrap:wrap}.yearly-header h1{font-size:22px}.yearly-header nav{order:3;flex:1;justify-content:center}.yearly-header nav button{min-width:100px}.overview-grid{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr))}.overview-name{font-size:9px}.overview-label{font-size:11px}.month-reading{grid-template-columns:minmax(0,.65fr) minmax(0,1.35fr);gap:12px}.month-explanation h3{font-size:20px}.month-summary{font-size:12px}.meaning-pages ul{font-size:12px;padding-left:15px}.month-card{justify-content:center}.month-card img{height:auto;max-height:80%}.month-badge{display:block;margin:4px 0 0}.setup-home .setup-choices{grid-template-columns:1fr;gap:10px;margin:8px 0}.setup-home .setup-choice{padding:12px;gap:6px}.setup-home .setup-choice .choice-symbol{display:none}.setup-home .setup-choice strong{font-size:17px}.setup-home-footer{gap:8px;flex-wrap:wrap}.setup-home-footer button{font-size:11px}.setup-home>div>p:not(.eyebrow){font-size:12px}.setup-home .quiet{font-size:10px}.period-bar{gap:6px}.meaning-footer{gap:5px;font-size:9px}.meaning-footer button{font-size:10px}}
@media(max-height:520px) and (min-width:521px){.yearly-header{padding-bottom:6px}.yearly-interior{gap:6px}.period-bar{height:28px;margin-bottom:6px}.setup-home .setup-choice{padding:12px;gap:8px}.setup-home .setup-choice .choice-symbol{font-size:22px}.setup-home .setup-choices{margin:8px 0}.setup-home p{margin:6px 0}.month-summary{font-size:12px}.month-explanation h3{font-size:22px}.eyebrow{margin-bottom:5px}.meaning-pages ul{font-size:12px}.meaning-pages li{margin-bottom:5px}}
.yearly-interior{top:12%;right:4%;bottom:5%}
dialog.year-draw-dialog{width:min(900px,calc(100% - 24px))}.year-draw-results{grid-auto-rows:166px}.year-result{gap:3px;padding:5px}.year-result img{height:72px;width:100%;aspect-ratio:auto;flex-shrink:0}.year-result strong{min-height:24px;font-size:10px;line-height:1.2}.year-result h3{margin:0;font-size:11px}.year-result button{min-height:24px;padding:2px}.year-result small{font-size:9px}.year-draw-results+.storage-copy{font-size:10px}.year-draw-actions{margin:10px 0 0}
@container(max-width:520px){.yearly-interior{top:12%;bottom:5%}}
/* Keep the original vector frame's proportions at laptop embed widths. */
#main{width:min(100vw,164.953dvh,1105px);height:min(60.624vw,100dvh,670px)}
@media(min-width:700px){dialog:has(.year-grid){width:min(960px,calc(100% - 24px))}.year-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.month-thumbnail,.month-placeholder{height:70px}.month-tile{padding:7px!important;gap:3px}.month-tile strong{font-size:10px}.month-tile small{font-size:9px}.month-label{font-size:12px}}
@container(max-height:440px){.setup-home{gap:3px}.setup-home .eyebrow{font-size:10px;margin:0 0 4px}.setup-home h2{font-size:19px}.setup-home>div>p:not(.eyebrow){font-size:11px;margin:6px 0}.setup-home .setup-choices{margin:8px 0;gap:12px}.setup-home .setup-choice{padding:13px 10px;gap:8px}.setup-home .setup-choice .choice-symbol{display:none}.setup-home .setup-choice strong{font-size:16px}.setup-home .setup-choice span{font-size:11px}.setup-home .quiet{font-size:10px;margin:3px 0}.setup-home-footer button{font-size:10px;padding:3px}}

.yearly-shell{background:#000}

/* Give the twelve card images priority within the same fixed canvas. */
.yearly-interior:has(.year-overview){top:10.8%;bottom:3%;gap:5px}
.yearly-interior:has(.year-overview) .yearly-header{padding-bottom:6px}
.year-overview .period-bar{height:28px;margin-bottom:4px}
.overview-grid{gap:5px}
.overview-grid .overview-month{gap:3px;padding:3px 2px}
.overview-name{min-height:2.2em;line-height:1.1}
.overview-hint{font-size:10px;margin:3px 0 0}
dialog.year-draw-dialog:has(.year-draw-results){width:min(1060px,calc(100% - 16px));height:min(670px,calc(100dvh - 16px));max-height:calc(100dvh - 16px);padding:12px;overflow:hidden}
dialog[open]:has(.year-draw-results){display:flex;flex-direction:column}
dialog:has(.year-draw-results) .dialog-top{flex:none;padding-bottom:6px;margin-bottom:6px}
dialog:has(.year-draw-results) #dialog-content{flex:1;min-height:0}
.year-draw:has(.year-draw-results){height:100%;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:30px minmax(0,1fr) auto auto;gap:7px}
.year-draw:has(.year-draw-results) .back-button{margin:0;grid-column:1;grid-row:1;padding:2px 10px;min-height:26px}
.year-draw:has(.year-draw-results) .year-draw-copy{margin:0;grid-column:2;grid-row:1;align-self:center;font-size:13px}
.year-draw-results{grid-column:1/-1;grid-row:2;grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));grid-auto-rows:auto;gap:7px;min-height:0}
.year-draw-results .year-result{display:grid;grid-template-rows:auto minmax(0,1fr) 2.4em auto;justify-items:center;gap:3px;padding:5px;min-height:0;width:100%;font-size:11px;line-height:1.2;background:#e5e2e9;box-shadow:none;border:1px solid #9c97a4}
.year-result-month{font:11px/1.2 Coustard,Georgia,serif;white-space:nowrap}
.year-draw-results .year-result img{width:100%;height:100%;max-height:none;min-height:0;aspect-ratio:auto;object-fit:contain}
.year-draw-results .year-result strong{font-size:11px;line-height:1.2;min-height:0;align-self:center}
.year-draw-results .year-result small{font-size:9px;line-height:1}
.year-draw:has(.year-draw-results) .storage-copy{grid-column:1/-1;grid-row:3;margin:0;text-align:center;font-size:10px}
.year-draw:has(.year-draw-results) .year-draw-actions{grid-column:1/-1;grid-row:4;margin:0}
.year-draw:has(.year-draw-results) .form-error:not(:empty){grid-column:1/-1;margin:0}
@media(max-width:700px){dialog:has(.year-draw-results) .dialog-top h2{font-size:18px}.year-draw-results{gap:4px}.year-draw-results .year-result{padding:3px;gap:2px;font-size:9px}.year-result-month{font-size:9px}.year-draw-results .year-result strong{font-size:9px}.year-draw-results .year-result small{font-size:8px}.year-draw:has(.year-draw-results) .year-draw-actions button{font-size:11px;padding:4px 8px}.year-draw:has(.year-draw-results) .storage-copy{font-size:9px}}
@media(max-height:440px){
 dialog.year-draw-dialog:has(.year-draw-results){padding:6px;width:calc(100% - 8px);height:calc(100dvh - 8px);max-height:calc(100dvh - 8px)}
 dialog:has(.year-draw-results) .dialog-top{padding-bottom:3px;margin-bottom:4px}
 dialog:has(.year-draw-results) .dialog-top h2{font-size:16px}
 dialog:has(.year-draw-results) .dialog-top button{min-height:24px;font-size:18px;line-height:1.2}
 .year-draw:has(.year-draw-results){grid-template-rows:18px minmax(0,1fr) auto auto;gap:4px}
 .year-draw:has(.year-draw-results) .back-button{display:none}
 .year-draw:has(.year-draw-results) .year-draw-copy{grid-column:1/-1;font-size:11px}
 .year-draw:has(.year-draw-results) .storage-copy{font-size:8px;line-height:1.2}
 .year-draw:has(.year-draw-results) .year-draw-actions{gap:8px}
 .year-draw:has(.year-draw-results) .year-draw-actions button{min-height:26px;font-size:10px;padding:3px 6px}
}
.year-draw:has(.year-draw-results) .form-error:not(:empty){grid-row:3;font-size:10px;line-height:1.2}
.year-draw:has(.year-draw-results):has(.form-error:not(:empty)) .storage-copy{display:none}

/* Original pixel icons, kept crisp at each embed width. */
.setup-home .setup-choice .choice-icon{width:52px;height:52px;object-fit:contain;image-rendering:pixelated;flex:none}
.yearly-tools .pixel-icon.setup-icon{width:48px;height:48px}
@container(max-width:760px){.yearly-tools .pixel-icon.setup-icon{width:37px;height:37px}}
@container(max-height:440px){.setup-home .setup-choice{gap:5px;padding:8px 10px}.setup-home .setup-choice .choice-icon{width:30px;height:30px}}

/* Trim excess black canvas above/left of the artwork, retaining a slim outer edge. */
#main{overflow:hidden}
.yearly-shell{width:101.656%;height:102.446%;left:-1.656%;top:-2.446%}
