body.unified-book-mode{background:radial-gradient(ellipse at center,#e7ebe5,#cbd7d8);overflow:hidden}.unified-book-mode>.topbar,.unified-book-mode>.app-layout{display:none}.unified-book{padding:22px 45px 12px;max-width:1360px;margin:auto;height:100dvh}.unified-book-stage{position:relative;background:#1c3545;border:6px solid #1c3545;outline:1px solid #aa9266;border-radius:7px;box-shadow:0 16px 30px #142b4133;height:calc(100dvh - 95px);min-height:480px}.unified-pages{height:100%;margin:auto}.unified-leaf{background:var(--paper);border:1px solid #d1c4a7;overflow:hidden}.chapter-intro{padding:clamp(22px,4vw,58px);background-image:linear-gradient(90deg,transparent 90%,#8d795918)}.chapter-intro h1{font-size:clamp(30px,4vw,55px);margin-top:30px}.chapter-intro>p:last-child{font:20px/1.6 Georgia,serif;color:var(--green)}.chapter-content{background-image:linear-gradient(90deg,#8d795918,transparent 7%)}.unified-book-mode #main{height:100%;width:100%;overflow:auto;overscroll-behavior:contain}.unified-book-mode #content{padding:28px 26px}.unified-book-mode #content h1{font-size:34px}.unified-book-mode .hero{display:block;padding:0;border:0;box-shadow:none;background:none}.unified-book-mode .hero-art{max-width:260px;margin:20px auto}.unified-book-mode .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.unified-book-mode .card{padding:16px}.unified-book-mode .card .product-photo{height:140px}.unified-book-mode .card h3{font-size:23px}.unified-book-mode .contents{grid-template-columns:1fr}.unified-book-mode .contents a{padding:13px}.unified-book-mode .section-foot{flex-direction:column;align-items:start}.unified-book-mode iframe{height:100%;min-height:580px}.unified-book-mode #context-bar:not([hidden])~iframe{height:calc(100% - 68px)}.unified-book-mode iframe[hidden]{width:calc((100vw - 100px)/2)!important;height:calc(100dvh - 100px)!important}.unified-book-mode .story,.unified-book-mode .making-step{padding:18px}.unified-book-mode .making-pair{grid-template-columns:1fr}.unified-tabs{position:absolute;right:-36px;top:8px;bottom:8px;width:35px;display:flex;flex-direction:column;gap:3px;z-index:5}.unified-tabs button{writing-mode:vertical-rl;font:11px Georgia,serif;flex:1;min-height:0;min-width:0;white-space:nowrap;padding:3px 6px;border-radius:0 5px 5px 0;border:1px solid #a9a58b;box-shadow:2px 2px 3px #18333d22;background:var(--paper)}.unified-tabs button[aria-current=page]{background:#1c3548;color:#fff3ce;border-color:#9e8a62}.unified-edge{position:absolute;top:42%;z-index:6;padding:0;width:28px;min-height:80px;border:0;border-radius:8px;background:#f7f0dddb;font-size:30px;touch-action:none}.unified-edge.prev{left:-34px}.unified-edge.next{right:0}.unified-edge:disabled{visibility:hidden}.unified-book-actions{display:flex;align-items:center;justify-content:center;gap:12px;height:55px}.unified-book-actions button{min-height:34px;font-size:12px;padding:7px 13px}.unified-book-actions span{font:13px Georgia;color:#53655e}@media(max-width:650px){.unified-book{padding:10px 34px 5px 8px}.unified-book-stage{height:calc(100dvh - 75px);min-height:380px;border-width:3px}.unified-tabs{right:-28px;width:27px}.unified-tabs button{font-size:10px;padding:2px 4px}.unified-edge.prev{left:0}.unified-edge.next{right:0}.unified-book-mode iframe[hidden]{width:calc(100vw - 48px)!important}.unified-book-mode #content{padding:23px 22px}.unified-book-actions{gap:6px}.unified-book-actions button{padding:7px 9px}.unified-book-mode .cards{grid-template-columns:1fr}.unified-book-mode iframe{min-height:0}.unified-book-mode .hero-art{max-width:210px}}
.unified-tabs button{overflow:hidden;text-overflow:ellipsis}
/* Use the original product books at full spread size, never inside another leaf. */
.unified-book.native-chapter .unified-pages{visibility:hidden;pointer-events:none}
.unified-book.native-chapter .unified-book-stage{background:transparent;border-color:transparent;outline:0;box-shadow:none}
.native-book-host{position:absolute;inset:0;z-index:2}
.native-chapter #main{overflow:hidden}
.native-chapter iframe{height:100%!important;min-height:0!important}
.native-chapter #context-bar:not([hidden])~iframe{height:calc(100% - 66px)!important}
.native-chapter .unified-edge{display:none}
.unified-tabs{inset:0;width:100%;height:100%;display:block;pointer-events:none}
.unified-tabs button.plastic-marker{position:absolute;left:calc(100% - 7px);width:34px;min-height:0;padding:3px 4px 3px 7px;writing-mode:horizontal-tb;pointer-events:auto;overflow:visible;border:1px solid rgba(var(--tab-color),.5);border-left:0;border-radius:0 7px 7px 0;color:#334139;background:linear-gradient(170deg,#ffffff85 0%,#ffffff08 36%,rgba(var(--tab-color),.22) 55%,#ffffff50 100%),rgba(var(--tab-color),.18);box-shadow:inset 0 1px 0 #ffffffbd,inset 0 -2px 2px rgba(var(--tab-color),.15),1px 3px 4px #1a30221b;backdrop-filter:blur(1px);cursor:grab}
.unified-tabs .plastic-marker:before{content:'';position:absolute;inset:3px;border:1px solid #ffffff5c;border-left:0;border-radius:0 4px 4px 0;pointer-events:none}
.unified-tabs .plastic-marker:after{content:'';position:absolute;right:5px;top:5px;bottom:5px;width:3px;border-left:1px solid #ffffffb0;border-right:1px solid rgba(var(--tab-color),.22);pointer-events:none}
.unified-tabs .paper-label{position:relative;display:flex;align-items:center;justify-content:center;height:100%;min-height:0;min-width:0;overflow:hidden;background:linear-gradient(110deg,#fffff4ed,#faf8eac9);padding:2px;box-shadow:0 1px 2px #34452b22;border:1px solid #b3af9233;border-radius:1px;writing-mode:vertical-rl;font:11px/1.05 'Bradley Hand','Segoe Print','Comic Sans MS',cursive;white-space:nowrap}
.unified-tabs .tab-attachment{display:none;position:absolute;right:calc(100% - 1px);top:3px;bottom:3px;width:9px;background:linear-gradient(100deg,#ffffff50,rgba(var(--tab-color),.13));border:1px solid rgba(var(--tab-color),.26);border-right:0;border-radius:2px 0 0 2px}
.unified-tabs [aria-current=page]>.tab-attachment{display:block}.unified-tabs button.plastic-marker[aria-current=page]{background-color:rgba(var(--tab-color),.35);box-shadow:inset 0 1px 0 white,1px 3px 6px #1a302238}.unified-tabs .plastic-marker:hover{transform:translateX(2px)}
@media(max-width:650px){.unified-tabs button.plastic-marker{width:28px;padding:3px}.unified-tabs .paper-label{font-size:10px}}

/* Keep iframe documents mounted: moving them between leaves reloads their books. */
.unified-book-mode>.app-layout{display:block;position:fixed;inset:28px 51px 73px;max-width:1268px;margin:auto;padding:0;z-index:3;pointer-events:none}
.unified-book-mode>.app-layout>aside{display:none}
.unified-book-mode #main{position:absolute;right:0;top:0;width:50%;height:100%;pointer-events:auto}
body:has(.native-chapter) #main{width:100%}
.unified-book .unified-tabs{z-index:8}
.unified-book-actions{position:relative;z-index:8}
@media(max-width:699px){.unified-book-mode>.app-layout{inset:13px 37px 68px 11px}.unified-book-mode #main{width:100%}}

.unified-book-mode .topbar,.unified-book-mode .sidebar{display:none!important}
.unified-book-mode>.app-layout{z-index:3}.unified-book{position:relative;pointer-events:none}.unified-book-actions,.unified-edge{pointer-events:auto}

.contents a{display:flex;align-items:baseline;gap:10px;font-family:Georgia,serif}.contents-dot{align-self:center;flex:0 0 7px;height:7px;border-radius:50%;background:rgb(var(--tab-color))}.contents-subject{flex:0 0 auto}.contents-leader{flex:1;border-bottom:1px dotted #998f78}.contents a b{font-size:.8em;font-weight:400}.unified-book-mode .chapter-intro,.unified-book-mode #content{font-family:Georgia,serif}.unified-book-mode .eyebrow{font-family:Arial,sans-serif;font-size:10px;letter-spacing:.17em}.unified-book-mode .unified-leaf{box-shadow:inset 0 0 24px #a48d6220}.unified-book-mode .chapter-content{border-right:4px double #d1c4a7}
