.creative-studio{max-width:1440px;margin:0 auto;padding:64px 32px;scroll-margin-top:100px}.creative-heading{display:flex;justify-content:space-between;gap:24px;align-items:center}.creative-heading h2{font-size:clamp(27px,3vw,40px);line-height:1.4;margin:12px 0}.creative-heading p{font-size:18px;line-height:1.8;color:#607168}.creative-modes{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;margin:28px 0}.creative-mode{display:flex;align-items:center;gap:14px;padding:18px;border:1px solid #d5dfd3;border-radius:16px;background:white;text-align:left;color:#294e3e;font-size:16px;font-weight:700;cursor:pointer}.creative-mode b{font-size:27px}.creative-mode[aria-pressed=true]{background:#e3eddb;border:2px solid #32654d;padding:17px}.creative-controls{display:flex;align-items:end;gap:20px;margin:28px 0}.creative-controls label,.book-fields label,.book-colors>label{display:flex;flex-direction:column;gap:8px;font-weight:700}.creative-controls input,.creative-controls select,.book-fields input,.book-colors input{font:inherit;border:1px solid #becdbd;border-radius:9px;padding:12px;background:white;min-height:46px;max-width:100%}.creative-controls #creativeSearch{width:320px}.creative-controls>span{margin-left:auto;padding-bottom:14px;color:#617268}.creative-results{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;max-height:1160px;overflow:auto;padding:4px 6px 18px 0;overscroll-behavior:contain;scrollbar-gutter:stable}.creative-card{border:1px solid #d9e1d4;border-radius:18px;background:white;overflow:hidden}.creative-art{border:0;background:#f0f2e9;width:100%;padding:15px;cursor:pointer;display:block}.creative-art img{display:block;width:100%;height:260px;object-fit:contain;background:white}.creative-card-info{padding:17px}.creative-card h3{font-size:18px;line-height:1.5;margin:8px 0 16px}.creative-card small{color:#6a796d}.creative-card-actions{display:flex;gap:7px;flex-wrap:wrap}.creative-card-actions button{flex:1;white-space:nowrap;font-size:14px;padding:11px 9px}.creative-disclosure{font-size:14px;color:#68786d;line-height:1.7;margin:16px 0}.book-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;border:1px solid #c9d8c1;padding:18px;border-radius:14px;background:#e9efe2}.creative-dialog{width:min(1100px,calc(100vw - 32px));max-height:90dvh;border:1px solid #d2dccd;border-radius:22px;padding:28px;color:#263c35;overflow:auto;background:#fffdf8}.creative-dialog::backdrop{background:#19332999}.creative-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.creative-dialog h2{font-size:27px;line-height:1.4;margin:0}.creative-dialog p{line-height:1.8}.activity-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px}.activity-figure{background:#eef0e7;padding:14px;border-radius:16px}.activity-figure img{width:100%;max-height:650px;object-fit:contain}.activity-steps{padding:0;list-style:none;display:grid;gap:14px;margin:22px 0}.activity-steps button{width:100%;text-align:left;line-height:1.7;font-size:17px;padding:17px;border:1px solid #d1dbc9;border-radius:12px;background:white;color:#2f5040;cursor:pointer}.activity-steps button[aria-pressed=true]{background:#e3eddb;border-color:#316349}.activity-actions{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.activity-note{font-size:14px;color:#6b796e}.book-fields{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:24px 0}.book-row{display:flex;align-items:center;gap:10px;border-bottom:1px solid #dce2d6;padding:12px 0}.book-row img{width:44px;height:58px;object-fit:contain}.book-row span{flex:1;font-size:16px}.book-row button{font-size:14px;padding:10px}.book-upload{display:grid;gap:12px;padding:20px;border:1px dashed #9eb599;border-radius:12px;margin:24px 0}.book-upload small{line-height:1.6;color:#6b796e}.book-colors{padding:18px;border:1px solid #d2dccd;border-radius:12px}.book-colors summary{cursor:pointer;font-size:18px;font-weight:700}.book-color-row{display:flex;align-items:center;gap:12px;margin:12px 0}.book-color-row input[type=color]{width:62px;padding:3px}.book-color-row input:last-child{flex:1;min-width:0}.book-check{display:flex;align-items:center;gap:12px;padding:20px 0}.book-check input{width:22px;height:22px}.book-footer{display:flex;align-items:center;justify-content:space-between;gap:18px}.creative-nav-link{display:inline-block;margin-top:20px;font-size:17px;text-underline-offset:5px;color:#2c634b}.creative-card button:focus-visible,.creative-mode:focus-visible,.activity-steps button:focus-visible{outline:3px solid #dfad53;outline-offset:3px}.family-feature{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center;max-width:1440px;margin:auto;padding:55px 32px}.family-feature img{width:100%;border-radius:24px}.family-feature h2{font-size:clamp(28px,3vw,40px);line-height:1.4}.family-feature p{font-size:18px;line-height:1.9;color:#627368}.family-feature small{display:block;font-size:13px;color:#6e7d70;margin-top:10px}
@media(max-width:1100px){.creative-modes{grid-template-columns:repeat(3,1fr)}.creative-results{grid-template-columns:repeat(3,minmax(0,1fr))}.creative-heading{align-items:start;flex-direction:column}.creative-art img{height:220px}}
@media(max-width:700px){.creative-studio{padding:36px 18px}.creative-modes{gap:8px}.creative-mode{flex-direction:column;gap:5px;padding:12px 6px;font-size:14px;text-align:center}.creative-mode[aria-pressed=true]{padding:11px 5px}.creative-controls{flex-wrap:wrap;gap:12px}.creative-controls label:nth-child(2){flex:1;min-width:170px}.creative-controls #creativeSearch{width:100%}.creative-controls>span{width:100%;padding:0}.creative-results{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-height:940px}.creative-art{padding:8px}.creative-art img{height:195px}.creative-card-info{padding:12px}.creative-card h3{font-size:16px}.creative-card-actions{flex-direction:column}.book-bar,.book-footer{align-items:stretch;flex-direction:column}.book-bar span{font-size:14px;line-height:1.7}.creative-dialog{padding:18px;width:calc(100vw - 20px);max-height:94dvh}.creative-dialog h2{font-size:22px}.activity-grid{grid-template-columns:1fr}.activity-figure img{max-height:360px}.book-fields{grid-template-columns:1fr}.book-row{flex-wrap:wrap}.book-row span{min-width:calc(100% - 65px)}.book-row button{flex:1}.family-feature{grid-template-columns:1fr;padding:36px 18px;gap:20px}}

/* Keep discovery in normal page scroll, without a second scrolling canvas. */
.creative-results{max-height:none;overflow:visible;scrollbar-gutter:auto}.creative-more{display:block;margin:24px auto}.creative-modes{grid-template-columns:repeat(4,1fr)}.creative-more[hidden]{display:none}.product-app #premiumDrawings{display:none!important}
@media(max-width:700px){.creative-modes{grid-template-columns:repeat(2,1fr)}.creative-mode{flex-direction:row;text-align:left;padding:12px}.creative-mode[aria-pressed=true]{padding:11px}.creative-results{max-height:none}.creative-art img{height:180px}}

.creative-dialog-head{position:sticky;top:-28px;z-index:2;background:#fffdf8;padding:12px 0}.book-format{display:grid;gap:10px;font-weight:700;margin-bottom:24px}.book-format select{font:inherit;max-width:100%;padding:14px;border:1px solid #bdcbb7;border-radius:10px;background:white}#kdpHelp,.book-plan{padding:20px;background:#eef3e9;border-radius:14px;margin:20px 0}#kdpHelp li{line-height:1.9;margin:12px 0}#kdpHelp a{font-size:15px;color:#2f634c;text-underline-offset:4px}.book-plan summary{font-size:18px;font-weight:700;cursor:pointer}.book-footer{position:sticky;bottom:-28px;background:#fffdf8;padding:16px 0;z-index:2}.book-row button:disabled{opacity:.4}
@media(max-width:700px){.creative-dialog-head{top:-18px}.book-footer{bottom:-18px}#kdpHelp,.book-plan{padding:15px}}

@media(max-width:700px){.activity-grid{display:block}.activity-figure{position:sticky;top:68px;z-index:1;margin-bottom:20px;padding:8px;align-self:start}.activity-figure img{height:205px;max-height:205px}.activity-steps button{font-size:15px;padding:12px}.creative-dialog-head{margin-bottom:12px}.activity-side{position:relative}.book-fields input{min-width:0;width:100%;box-sizing:border-box}.book-upload input{max-width:100%}}

.product-app dialog.creative-dialog{width:calc(100vw - 20px);max-width:1100px;box-sizing:border-box}.book-format,.book-upload{min-width:0}.book-format select{width:100%;min-width:0;box-sizing:border-box}.book-upload>*{min-width:0;max-width:100%;box-sizing:border-box}.book-upload input{width:100%}.creative-dialog-head h2{overflow-wrap:anywhere}.creative-dialog-head>button{flex-shrink:0}

#bookKdpTitle{font:inherit;width:100%;min-width:0;box-sizing:border-box;padding:13px;border:1px solid #bacab5;border-radius:9px}

/* Intrinsic aspect ratio must override HTML height attributes at every breakpoint. */
.product-app .family-feature{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:48px}.product-app .family-feature>div{min-width:0}.product-app .family-feature img{display:block;width:100%;height:auto!important;max-height:none;object-fit:contain;border-radius:24px}.creative-art{position:relative}.creative-preview-label{position:absolute;bottom:20px;left:20px;right:20px;padding:7px 10px;background:#fffdf7ed;border:1px solid #e0e5d7;border-radius:7px;font-size:12px;color:#365440;text-align:center}.adult-paint-tip{background:#edf1e7;padding:18px;border-radius:12px;font-size:17px;line-height:1.9}.creative-card-info small{display:block;line-height:1.7}.creative-art img{aspect-ratio:2/3}.creative-studio:has([data-mode=adult][aria-pressed=true]) .creative-results,.creative-studio:has([data-mode=masters][aria-pressed=true]) .creative-results{grid-template-columns:repeat(3,minmax(0,1fr))}.creative-studio:has([data-mode=adult][aria-pressed=true]) .creative-art img,.creative-studio:has([data-mode=masters][aria-pressed=true]) .creative-art img{height:360px}
@media(max-width:700px){.product-app .family-feature{grid-template-columns:minmax(0,1fr);gap:24px}.creative-preview-label{bottom:12px;left:10px;right:10px;font-size:11px}.creative-studio:has([data-mode=adult][aria-pressed=true]) .creative-results,.creative-studio:has([data-mode=masters][aria-pressed=true]) .creative-results{grid-template-columns:repeat(2,minmax(0,1fr))}.creative-studio:has([data-mode=adult][aria-pressed=true]) .creative-art img,.creative-studio:has([data-mode=masters][aria-pressed=true]) .creative-art img{height:220px}}

.master-figure{align-self:start}.master-switch{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:15px}.master-switch button{font-size:13px;padding:10px}.master-switch button[aria-pressed=true]{background:#dfe9d5;border-color:#3d7057;color:#274e3b}.master-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}.master-pane{margin:0;min-width:0;background:white;border-radius:9px;padding:8px}.master-pane figcaption{font-size:13px;font-weight:700;line-height:1.7;margin-bottom:8px;color:#355540}.master-pane img{display:block;width:100%;height:360px;object-fit:contain}.master-pair[data-mode=original],.master-pair[data-mode=outline]{grid-template-columns:1fr}.master-pair[data-mode=original] .master-outline,.master-pair[data-mode=outline] .master-original{display:none}.master-pair:not([data-mode=both]) img{height:500px}.activity-grid:has(.master-figure){grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}.master-context{padding:18px;border:1px solid #d8dfcc;border-radius:14px;margin-top:20px}.master-context strong{font-size:19px}.master-source-links{display:flex;gap:12px;flex-wrap:wrap;margin:15px 0}.master-source-links a{font-size:14px;color:#2f674e;text-underline-offset:4px}.master-palette{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0 20px}.master-palette span{display:flex;align-items:center;gap:7px;border:1px solid #dce1d1;border-radius:9px;padding:8px;font-size:14px;background:white}.master-palette i{width:24px;height:24px;border:1px solid #ccc;border-radius:50%}.memory-prompt{background:#f6eddd;border-left:4px solid #bb9563;padding:16px;line-height:1.9;font-size:18px}
@media(max-width:700px){.activity-grid:has(.master-figure){display:block}.master-pane img,.master-pair:not([data-mode=both]) img{height:180px!important;max-height:180px}.master-switch{gap:5px;margin-bottom:8px}.master-switch button{padding:8px;font-size:12px}.master-pair{gap:7px}.master-pane{padding:4px}.master-pane figcaption{font-size:11px;margin:0 0 4px}.master-figure{top:65px}.master-context{padding:14px}.master-source-links{gap:10px}.master-source-links a{font-size:13px}}

.creative-studio:has([data-mode=masters][aria-pressed=true]) .creative-results{grid-template-columns:repeat(2,minmax(0,1fr))}.creative-studio:has([data-mode=masters][aria-pressed=true]) .creative-art img{height:340px;aspect-ratio:auto}
@media(max-width:700px){.creative-studio:has([data-mode=masters][aria-pressed=true]) .creative-results{grid-template-columns:1fr}.creative-studio:has([data-mode=masters][aria-pressed=true]) .creative-art img{height:270px}}

@media(max-width:700px){.product-app .master-switch{flex-wrap:nowrap}.product-app .master-switch button{font-size:12px;padding:7px 5px;min-height:42px;flex:1;white-space:nowrap;min-width:0}}
