:root{--ink:#173d2c;--muted:#51654c;--paper:#fff9ed;--green:#58be59;--light:#b9e877;--shadow:#1e4c2e;--line:#dadcc9;--sage:#779a72;font-family:"Avenir Next Rounded","Arial Rounded MT Bold","Avenir Next",system-ui,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,select,input{font:inherit;color:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{cursor:default;opacity:.4}a{color:inherit;text-underline-offset:4px}img{display:block;max-width:100%}h1,h2,p{margin:0}h1,h2{letter-spacing:-.045em}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #8b541e;outline-offset:4px}main:focus,h1:focus,h2:focus{outline:none}.app-header,main{width:min(680px,calc(100% - 40px));margin:auto}.app-header{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:9px;text-decoration:none;font-size:19px;font-weight:850;letter-spacing:-.04em}.brand-dot{color:var(--green)}.brand img{width:40px;height:40px}.languages{display:flex;gap:2px;border:1px solid var(--line);border-radius:15px;padding:3px}.languages button{min-width:39px;min-height:37px;border:0;border-radius:11px;background:transparent;font-size:11px;font-weight:800}.languages button[aria-pressed=true]{color:var(--paper);background:var(--ink)}.daily-screen,.review-screen{padding:26px 0 34px}.screen-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px}.date{font-size:12px;color:var(--muted);margin-bottom:6px}.screen-heading h1{font-size:32px;line-height:1.15}.mascot{width:74px;height:74px;flex-shrink:0}.sources{margin-bottom:24px}.sources summary{cursor:pointer;width:fit-content;min-height:44px;display:list-item;padding:10px 0;font-size:12px;font-weight:700;color:var(--muted)}.source-content{padding:17px 20px;border:1px solid var(--line);border-radius:21px;background:#eef3df;margin-top:6px}fieldset{margin:0;border:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:2px 16px}legend{font-size:12px;font-weight:800;padding:0 0 9px}.check-row{display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer;font-size:13px}.check-row input{width:20px;height:20px;accent-color:var(--shadow);flex-shrink:0;margin:0}.sub-fields{margin-top:18px;border-top:1px solid var(--line);padding-top:15px;grid-template-columns:1fr}.book-status{display:flex;flex-direction:column;gap:8px;font-size:11px;color:var(--muted);margin-top:18px;border-top:1px solid var(--line);padding-top:15px}.book-status select{background:var(--paper);border:1px solid var(--sage);border-radius:12px;padding:10px 12px;font-size:13px;width:100%;min-height:44px}.filter-note{font-size:11px;line-height:1.6;color:var(--muted);margin-top:13px}.idea-card{background:#fffdf6;border:2px solid var(--sage);border-radius:28px;box-shadow:0 6px 0 #ccd8b9;padding:32px 34px;position:relative;overflow:hidden}.idea-card:before{content:"";position:absolute;width:64px;height:7px;background:var(--light);top:0;left:34px;border-radius:0 0 11px 11px}.idea-card h1,.idea-card h2{font-size:34px;line-height:1.15;margin:5px 0 23px;max-width:540px}.idea-body{font-size:20px;line-height:1.65;max-width:570px}.card-source{font-size:11px;line-height:1.7;color:var(--muted);margin-top:28px}.card-source a{text-decoration:none}.card-source a:hover{text-decoration:underline}.primary{display:inline-flex;align-items:center;justify-content:center;min-height:53px;padding:12px 23px;border:2px solid var(--shadow);border-radius:17px;background:var(--green);box-shadow:0 5px 0 var(--shadow);font-size:14px;font-weight:850;transition:transform .12s,box-shadow .12s}.primary:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 7px 0 var(--shadow)}.primary:active:not(:disabled){transform:translateY(4px);box-shadow:0 1px 0 var(--shadow)}.daily-action{margin-top:27px}.daily-action .primary{width:100%}.text-button{min-height:44px;padding:8px 0;border:0;background:transparent;font-size:12px;font-weight:750}.review-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}.review-heading>span{font-size:11px;color:var(--muted);white-space:nowrap}.review-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:25px}.limit-note{font-size:12px;color:var(--muted);text-align:right;line-height:1.5}.review-mascot{width:65px;height:65px;margin:26px auto 0}.review-intro{text-align:center;padding:30px 0}.review-intro .mascot{width:110px;height:110px;margin:0 auto 18px}.review-intro h1{font-size:35px;margin:14px 0}.review-intro p{font-size:14px;color:var(--muted);margin-bottom:24px}.review-intro .small-book{font-size:12px;margin-bottom:0}.empty-state{padding:30px 22px;border:1px solid var(--line);border-radius:24px;color:var(--muted);font-size:15px;line-height:1.6}.empty-state small{display:block;margin-top:12px;font-size:12px}.storage-note{margin-top:18px;padding:12px 15px;border-radius:14px;background:#f7ead2;font-size:12px;line-height:1.6}.loading{display:flex;flex-direction:column;align-items:center;gap:22px;justify-content:center;min-height:400px;text-align:center}.loading h1{font-size:23px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link{position:fixed;top:-100px;left:20px;background:var(--ink);color:var(--paper);padding:15px;z-index:10;border-radius:12px}.skip-link:focus{top:15px}.noscript-note{margin:25px;padding:15px;font-size:13px}.celebrate{animation:celebrate .6s ease-in-out}@keyframes celebrate{0%,100%{transform:translateY(0)}30%{transform:translateY(3px) scale(.95)}60%{transform:translateY(-10px) rotate(-5deg)}}
@media(max-width:720px){.app-header,main{width:calc(100% - 36px)}.app-header{min-height:75px}.brand{font-size:16px;gap:6px}.brand img{width:35px;height:35px}.languages button{min-width:34px;min-height:35px}.daily-screen,.review-screen{padding-top:22px}.screen-heading h1{font-size:27px}.screen-heading{gap:12px;margin-bottom:10px}.mascot{width:63px;height:63px}.date{font-size:11px}.sources{margin-bottom:20px}.source-content{padding:15px 14px}fieldset{gap:2px 12px}.check-row{font-size:12px;gap:8px}.idea-card{padding:27px 22px;border-radius:25px}.idea-card:before{left:22px}.idea-card h1,.idea-card h2{font-size:30px;line-height:1.14;margin-bottom:22px}.idea-body{font-size:18px;line-height:1.65}.card-source{font-size:10px;margin-top:23px}.primary{font-size:13px;padding:12px 17px;min-height:51px}.review-heading{margin-bottom:16px;gap:10px}.review-heading>span{font-size:10px}.text-button{font-size:11px}.review-actions{gap:15px;margin-top:22px}.review-actions .primary{font-size:12px;max-width:70%}.limit-note{font-size:11px}.review-mascot{width:60px;height:60px;margin-top:22px}}
@media(max-width:350px){.brand{font-size:14px}.languages button{min-width:31px}.screen-heading h1{font-size:24px}.idea-card h1,.idea-card h2{font-size:27px}fieldset{grid-template-columns:1fr}}
.library{margin-top:22px}.library summary{cursor:pointer;width:fit-content;min-height:44px;display:list-item;padding:10px 0;font-size:12px;font-weight:700;color:var(--muted)}.book-list{border-top:1px solid var(--line);margin-top:8px}.book-row{display:grid;grid-template-columns:minmax(0,1fr) 130px 80px;gap:14px;align-items:center;padding:18px 0;border-bottom:1px solid var(--line)}.book-info{min-width:0}.book-info h2{font-size:16px;line-height:1.35;letter-spacing:-.02em}.book-info p{font-size:10px;line-height:1.6;color:var(--muted);margin-top:5px}.book-reading{font-size:10px;color:var(--muted);display:flex;flex-direction:column;gap:5px;min-width:0}.book-reading select{min-height:44px;width:100%;padding:8px 9px;border:1px solid var(--sage);border-radius:12px;background:var(--paper);font-size:12px}.book-review{text-align:right;white-space:nowrap}.sub-fields{grid-template-columns:1fr 1fr}
@media(max-width:520px){.book-row{grid-template-columns:minmax(0,1fr) 118px;gap:9px 12px;padding:16px 0}.book-info h2{font-size:14px}.book-review{grid-column:2;min-height:36px;padding:4px 0}.book-reading select{font-size:11px}.sub-fields{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

/* Deck selection and daily leaves reuse the approved book/paper palette. */
.deck-screen{padding:18px 0 34px}.deck-heading{margin:14px 0 22px}.small-book{font-size:12px;color:var(--muted);margin-bottom:7px;line-height:1.5}
.deck-card{border:2px solid var(--sage);border-radius:28px;background:#fffdf6;box-shadow:0 6px 0 #ccd8b9;padding:28px}
.deck-tags{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:20px}.deck-tags span{background:#e4f0cc;border-radius:10px;padding:6px 10px;font-size:11px;font-weight:750;line-height:1.4}
.deck-card h2{font-size:30px;line-height:1.18;overflow-wrap:anywhere}.deck-creator{font-size:12px;color:var(--muted);line-height:1.7;margin-top:10px}
.deck-description{font-size:17px;line-height:1.7;margin-top:24px}.deck-size{font-size:13px;font-weight:800;margin-top:22px}
.deck-metrics,.deck-progress{font-size:12px;color:var(--muted);line-height:1.6;margin-top:12px}.deck-card .primary{width:100%;margin-top:26px}
.leaf-balance{display:inline-flex;align-items:center;gap:5px;border-radius:12px;background:#e4f0cc;padding:7px 10px;font-size:11px!important;font-weight:750}.leaf-balance img{width:20px;height:20px;flex:none}
.review-attribution{font-size:11px;line-height:1.7;color:var(--muted);margin-bottom:16px;overflow-wrap:anywhere}.review-intro .review-attribution{font-size:12px}
.parent-link{margin-bottom:10px}.review-progress{font-size:11px;color:var(--muted);margin-top:20px}.daily-limit{text-align:left;margin:12px 0 0}
.complete-note{font-size:14px;font-weight:800;margin-top:13px;color:var(--shadow)}
.review-start{margin:19px 0 14px}.review-start h1{font-size:27px;line-height:1.2;margin:5px 0 8px}.review-start p:last-child{font-size:13px;color:var(--muted)}
.tree-map{margin:17px 0 23px;padding:12px 13px 8px;border:1px solid var(--line);border-radius:19px;background:#f0f4e6}
.tree-map-heading{display:flex;flex-direction:column;gap:9px}.tree-map-heading>p{font-size:13px;font-weight:850;line-height:1.3}
.tree-map-legend{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;font-size:9px;line-height:1.4;color:var(--muted)}
.tree-map-legend>span{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}.tree-map-legend img{width:16px;height:16px}
.tree-legend-seen,.tree-legend-locked{display:inline-grid;place-items:center;width:15px;height:15px;border-radius:50%;font-size:10px;font-style:normal;font-weight:900}
.tree-legend-seen{background:#d6eeb4;color:var(--shadow)}.tree-legend-locked{background:#e1e5da}.tree-legend-locked svg{width:10px;height:10px;fill:none;stroke:#65715b;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.tree-map-viewport{padding:9px 3px 5px}
.mini-tree,.mini-tree ul{display:flex;flex-direction:column;align-items:stretch;width:100%;margin:0;padding:0;list-style:none;gap:8px}
.mini-tree li{position:relative;display:flex;flex-direction:column;align-items:stretch;width:100%;padding:0}
.mini-tree ul{position:relative;width:auto;margin:8px 0 0 14px;padding:0 0 0 13px;border-left:1.5px solid var(--sage);gap:7px}
.mini-tree ul>li::before{content:"";position:absolute;top:22px;left:-14px;width:12px;border-top:1.5px solid var(--sage)}
.tree-node{position:relative;display:flex;align-items:center;justify-content:flex-start;width:100%;min-height:46px;padding:8px 34px 8px 12px;border:1.5px solid var(--sage);border-radius:13px;background:#fffdf6;box-shadow:0 2px 0 #ccd8b9;text-align:left;font-size:11px;font-weight:750;line-height:1.35;transition:transform .12s,box-shadow .12s}
.tree-node:not(:disabled):hover{transform:translateY(-2px);box-shadow:0 4px 0 #b6c99e}
.tree-node:disabled{opacity:1;cursor:not-allowed}
.tree-node-name{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow-wrap:anywhere}
.tree-node-hidden{display:flex;flex-direction:column;gap:5px;width:min(58%,220px)}.tree-node-hidden i{display:block;height:5px;border-radius:5px;background:#cfd5c7}.tree-node-hidden i:last-child{width:67%}
.tree-node--seen{background:#e4f0cc;border-color:#779a72}
.tree-node--next{border:2px solid #58a84f;background:#fffdf6;box-shadow:0 3px 0 var(--shadow)}
.tree-node--next:disabled{background:#f4f5e9;color:#65715b;box-shadow:0 2px 0 #ccd8b9}
.tree-node--locked{border-color:#c4cabb;background:#e9ece3;color:#66715e;box-shadow:none}
.tree-node--current{outline:3px solid #b9e877;outline-offset:2px;z-index:1}
.tree-node-check,.tree-node-cost,.tree-node-lock{position:absolute;top:-7px;right:-7px;display:grid;place-items:center;width:19px;height:19px;border:1px solid #fffdf6;border-radius:50%;background:#d6eeb4;color:var(--shadow)}
.tree-node-check{font-size:11px;font-weight:900}.tree-node-cost{width:22px;height:22px;background:transparent;border:0;border-radius:0}.tree-node-cost img{width:22px;height:22px}
.tree-node-lock{background:#e1e5da}.tree-node-lock svg{width:11px;height:11px;fill:none;stroke:#65715b;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.deck-creator .deck-language{display:inline-flex;margin-left:8px;padding:2px 8px;border:1px solid var(--line);border-radius:9px;background:#eef3df;color:var(--ink);font-size:10px;font-weight:750;line-height:1.6}
@media(max-width:520px){.deck-card{padding:23px 21px;border-radius:25px}.deck-card h2{font-size:28px}.deck-description{font-size:16px;margin-top:20px}.deck-tags{margin-bottom:17px}.deck-tags span{font-size:10px}.deck-creator{font-size:11px}.deck-heading .screen-heading h1{font-size:26px}.leaf-balance{font-size:10px!important}.leaf-balance img{width:18px;height:18px}.review-heading{flex-wrap:wrap}.tree-map{margin:14px 0 19px;padding:11px 10px 7px}.tree-map-heading{gap:7px}.tree-map-legend{gap:5px 9px;font-size:8px}.tree-node{min-height:45px;padding:7px 32px 7px 11px;font-size:10px}.review-start h1{font-size:24px}}

/* Deck grid: choose at a glance, then read full details in a native modal. */
.deck-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.deck-tile{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:flex-start;gap:11px;min-width:0;min-height:166px;margin:0 4px 5px 0;padding:15px;text-align:left;border:2px solid var(--sage);border-radius:22px;background:#fffdf6;box-shadow:0 5px 0 #ccd8b9;transition:transform .14s,box-shadow .14s,background .14s}
.deck-tile::before,.deck-tile::after{content:"";position:absolute;z-index:-1;inset:5px -5px -5px;border:2px solid var(--sage);border-radius:inherit;background:#e4f0cc}
.deck-tile::before{transform:rotate(3deg);background:#b9e877}
.deck-tile::after{inset:3px -3px -3px;transform:rotate(-2deg)}
.deck-tile:hover{transform:translateY(-3px);background:#fffefb;box-shadow:0 8px 0 #ccd8b9}
.deck-tile:active{transform:translateY(3px);box-shadow:0 2px 0 #ccd8b9}
.deck-tile-copy{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0;width:100%}
.deck-tile-tag{display:-webkit-box;max-width:100%;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;padding:4px 7px;border-radius:8px;background:#e4f0cc;font-size:9px;font-weight:800;line-height:1.3}
.deck-tile-copy strong{display:-webkit-box;width:100%;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:14px;line-height:1.3;overflow-wrap:anywhere}
.deck-tile-size,.deck-tile-language{font-size:10px;line-height:1.4;color:var(--muted)}
.deck-modal{position:fixed;inset:0;margin:auto;width:min(540px,calc(100% - 32px));max-width:none;max-height:min(88dvh,760px);padding:0;overflow:auto;border:0;border-radius:29px;background:transparent;color:var(--ink);box-shadow:0 22px 0 rgb(30 76 46 / 20%),0 30px 75px rgb(23 61 44 / 30%)}
.deck-modal::backdrop{background:rgb(23 61 44 / 54%);backdrop-filter:blur(3px)}
.deck-modal[open]{animation:deck-pop .2s cubic-bezier(.2,.8,.3,1) both}
.deck-modal .deck-card{position:relative;margin:0;min-height:100%;padding:31px 34px 34px;border:2px solid var(--sage);border-radius:29px;background:#fffdf6;box-shadow:0 6px 0 #ccd8b9}
.deck-modal .deck-tags{padding-right:42px}
.deck-modal h2{font-size:30px;line-height:1.18;overflow-wrap:anywhere}
.deck-modal .deck-description{margin-top:20px}
.deck-modal-close{position:absolute;top:15px;right:15px;z-index:1;display:grid;place-items:center;width:40px;height:40px;border:1.5px solid var(--sage);border-radius:14px;background:#eef3df;font-size:25px;line-height:1}
.deck-modal .primary{width:100%;margin-top:26px}
@keyframes deck-pop{from{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(min-width:600px){.deck-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.deck-tile{min-height:176px;padding:17px}.deck-tile-copy strong{font-size:15px}}
@media(max-width:520px){.deck-grid{gap:11px}.deck-tile{min-height:157px;padding:13px;border-radius:19px}.deck-tile-copy strong{font-size:13px}.deck-modal{width:calc(100% - 24px);max-height:90dvh;border-radius:25px}.deck-modal .deck-card{padding:27px 22px 25px;border-radius:25px}.deck-modal h2{font-size:27px}.deck-modal-close{top:11px;right:11px;width:38px;height:38px}}
@media(prefers-reduced-motion:reduce){.deck-modal[open]{animation:none}.deck-tile{transition:none}}

/* Home: closed books for active studies. Currency stays numeric. */
.app-header{position:sticky;top:0;z-index:5;background:var(--paper);min-height:76px}
.brand{width:46px;min-height:46px;justify-content:center}.brand img{width:42px;height:42px}.brand.brand-with-name{width:auto;justify-content:flex-start}.brand-name{white-space:nowrap}.wallet[hidden]{display:none}
.header-tools{display:flex;align-items:center;gap:16px}
.wallet{display:flex;align-items:center;gap:7px;font-size:21px;font-weight:850;font-variant-numeric:tabular-nums}.wallet img{width:36px;height:36px}
.icon-button{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;padding:10px;border:1.5px solid var(--line);border-radius:15px;background:#eef3df;box-shadow:0 2px 0 #d4ddc6;font-size:26px}
.icon-button svg{width:23px;height:23px;fill:none;stroke:var(--ink);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.icon-button:hover{background:#e4f0cc}.icon-button:active{transform:translateY(2px);box-shadow:none}
.home-screen{padding:27px 5px 30px}.study-books{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 25px;padding:0 7px 7px 0}
.study-book{position:relative;isolation:isolate;display:flex;min-width:0;min-height:245px;padding:0;border:2px solid var(--sage);border-radius:16px 12px 12px 16px;background:#e4f0cc;box-shadow:0 6px 0 var(--shadow);text-align:left;transition:transform .14s,box-shadow .14s}
.study-book::before{content:"";position:absolute;inset:7px -8px -4px 13px;z-index:-1;border:1.5px solid var(--sage);border-radius:8px;background:repeating-linear-gradient(0deg,#fffdf6 0 3px,#d5ddc6 3px 4px)}
.study-book::after{content:"";position:absolute;top:0;bottom:0;left:0;width:14px;border-right:1.5px solid #779a72;border-radius:13px 0 0 13px;background:#9fca82;box-shadow:inset 4px 0 0 rgb(255 255 255 / 22%);pointer-events:none}
.study-book-cover{display:flex;flex-direction:column;align-items:flex-start;flex:1;min-width:0;padding:22px 18px 15px 28px;border-radius:14px 10px 10px 14px;background:#e4f0cc}
.study-book-cover>strong{font-size:25px;line-height:1.16;letter-spacing:-.04em;overflow-wrap:anywhere}.study-book-author{font-size:11px;line-height:1.5;color:var(--muted);margin-top:9px;overflow-wrap:anywhere}
.study-book-mark{width:64px;height:64px;align-self:center;margin:22px 0}
.review-mascot-callout{display:flex;align-items:center;gap:13px;width:fit-content;max-width:100%;margin:0 0 18px;padding:8px 16px 8px 8px;border-radius:24px;background:#edf4dc}.review-mascot-callout p{max-width:360px;font-size:13px;font-weight:750;line-height:1.45}.review-mascot-button{animation:mascot-greet 500ms cubic-bezier(.2,.7,.3,1)}
@keyframes mascot-greet{0%,100%{transform:rotate(0)}35%{transform:rotate(-7deg)}70%{transform:rotate(6deg)}}
.mascot-entry{flex:0 0 auto;display:grid;place-items:center;width:74px;height:74px;padding:5px;border:0;border-radius:24px;background:#eaf0d8;box-shadow:0 4px 0 #c3d2a9;transition:transform .15s ease,box-shadow .15s ease}.mascot-entry:hover{transform:translateY(-2px) rotate(-3deg);box-shadow:0 6px 0 #c3d2a9}.mascot-entry:active{transform:translateY(3px);box-shadow:0 1px 0 #c3d2a9}.mascot-entry img{width:100%;height:100%;object-fit:contain}.mascots-screen{padding:26px 0 44px}.mascots-screen>.text-button{margin-bottom:15px}.mascots-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px}.mascots-heading h1{font-size:31px}.mascots-heading>img{width:82px;height:82px;object-fit:contain}.mascot-collection{list-style:none;margin:0;padding:0;display:grid;gap:11px}.mascot-stage{min-width:0;display:grid;grid-template-columns:28px 64px minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 15px;border:1px solid #e7e4d4;border-radius:23px;background:#f3f1e5;box-shadow:0 3px 0 #e2ddc9}.mascot-stage.is-earned{border-color:#c8dfa7;background:#edf4dc;box-shadow:0 3px 0 #c8dfa7}.mascot-stage-number{font-size:11px;font-weight:900;color:#779a72;font-variant-numeric:tabular-nums}.mascot-stage-art{width:64px;height:64px;object-fit:contain}.mascot-stage-copy{min-width:0}.mascot-stage-copy h2{font-size:17px;line-height:1.15}.mascot-stage-copy p{margin-top:5px;color:#586957;font-size:11px;line-height:1.35}.mascot-earned{padding:6px 9px;border-radius:999px;background:#d7edb1;color:#235533;font-size:9px;font-weight:850;white-space:nowrap}.mascot-stage.is-mystery .mascot-stage-art{opacity:.78}
.study-book-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin-top:auto;padding-top:11px;border-top:1px solid #b7cfa3;font-size:11px;font-weight:800}.study-book-footer>span{font-size:18px}
.study-book:hover{transform:translateY(-3px);box-shadow:0 9px 0 var(--shadow)}.study-book:active{transform:translateY(4px);box-shadow:0 2px 0 var(--shadow)}
.tree-map--compact{padding:0;margin:0;border:0;background:transparent}.tree-map--compact .tree-map-viewport{padding:8px 3px 4px}
.home-actions{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:24px}.home-actions>.text-button{margin-left:auto;color:var(--muted)}
.home-add{display:flex;align-items:center;gap:8px;min-height:48px;padding:8px 15px;border:1.5px dashed var(--sage);border-radius:16px;background:#eef3df;font-size:12px;font-weight:800}.home-add>span{font-size:22px;line-height:1}
.home-add:hover{background:#e4f0cc}
.home-empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:55px 15px 30px;gap:22px}.home-empty h2{font-size:27px}.home-empty .primary{min-width:190px}
.library-screen{padding:18px 0 34px}.library-screen h1{font-size:30px;margin:13px 0 22px}
.daily-screen>.text-button{margin-bottom:14px}.daily-screen .screen-heading h1{font-size:28px}
.settings-modal{width:min(360px,calc(100% - 32px));max-height:85dvh;overflow:auto;padding:23px;border:2px solid var(--sage);border-radius:26px;background:var(--paper);color:var(--ink);box-shadow:0 6px 0 var(--shadow),0 20px 60px rgb(23 61 44 / 25%)}
.settings-modal::backdrop{background:rgb(23 61 44 / 45%);backdrop-filter:blur(3px)}
.settings-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:22px}.settings-heading h2{font-size:25px}
.settings-modal>p{font-size:12px;font-weight:800;margin-bottom:10px}.settings-modal .languages{padding:4px;gap:4px}.settings-modal .languages button{flex:1;min-height:46px;font-size:13px}
.idea-card h1{scroll-margin-top:105px}
@media(min-width:600px){.study-books{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:520px){.home-screen{padding:23px 4px 28px}.study-books{gap:24px 22px}.study-book{min-height:220px}.study-book-cover{padding:18px 13px 13px 25px}.study-book-cover>strong{font-size:21px}.study-book-author{font-size:10px}.study-book-mark{width:54px;height:54px;margin:19px 0}.study-book-footer{font-size:10px}.header-tools{gap:12px}.home-actions{gap:10px}.home-add{font-size:11px;padding:7px 12px}}
@media(max-width:350px){.study-books{grid-template-columns:minmax(0,190px)}}

/* Book discovery mirrors deck discovery: compact objects, details on demand. */
.library-heading{margin:14px 0 24px}.library-heading h1{margin:0;font-size:30px}
.book-search{display:flex;align-items:center;gap:10px;min-height:52px;padding:3px 5px 3px 16px;margin-bottom:26px;background:#fffdf6;border:2px solid var(--sage);border-radius:17px;box-shadow:0 3px 0 #ccd8b9}
.book-search>svg{width:20px;height:20px;flex-shrink:0;color:var(--muted)}
.book-search input{width:100%;min-width:0;min-height:44px;border:0;background:transparent;padding:8px 0;font-size:16px}
.book-search input::placeholder{color:var(--muted)}.book-search input::-webkit-search-cancel-button{display:none}
.book-search:focus-within{outline:3px solid #8b541e;outline-offset:4px}.book-search input:focus-visible{outline:none}
.book-search button{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;border:0;border-radius:12px;background:transparent;font-size:25px}.book-search button:hover{background:#eef3df}.book-search button[hidden]{display:none}
.book-search-empty .text-button{margin-top:12px;color:var(--ink)}
.book-grid{gap:25px 23px;padding:0 9px 9px 2px}
.catalog-book{min-height:210px}
.catalog-book .study-book-cover{padding:19px 16px 14px 26px}
.catalog-book .study-book-cover>strong{font-size:20px;line-height:1.2}
.catalog-book .study-book-author{font-size:10px;line-height:1.5}
.book-tile-genres{display:flex;flex-wrap:wrap;gap:5px;margin:18px 0 20px;align-items:flex-start}
.book-tile-genres>span{border:1px solid #b4cba0;border-radius:8px;padding:4px 6px;background:#f3f8e7;font-size:9px;line-height:1.35}
.book-detail-author{font-size:14px;color:var(--muted);margin-top:11px;line-height:1.5}
.account-screen{max-width:400px;margin:0 auto;padding:28px 0 40px}.account-welcome{text-align:center;margin-bottom:26px}.account-welcome img{margin:0 auto 16px}.account-welcome h1{font-size:32px;line-height:1.15}.account-welcome p{font-size:14px;line-height:1.6;color:var(--muted);margin-top:9px}
.account-form{display:grid;gap:8px}.account-form label{font-size:13px;font-weight:800}.account-form input{min-width:0;width:100%;min-height:50px;padding:12px 14px;border:2px solid var(--sage);border-radius:15px;background:#fffdf6;font-size:16px;box-shadow:0 3px 0 #ccd8b9}.account-form small{font-size:11px;line-height:1.5;color:var(--muted);margin-bottom:12px}.account-form .primary{margin-top:8px;width:100%}.account-form .account-error{font-size:13px;color:#8c351b;line-height:1.5;margin-bottom:6px}.account-switch,.account-explore{display:block;margin:17px auto 0;text-align:center}.account-explore{color:var(--muted);margin-top:2px}.legacy-progress-note{font-size:11px;color:var(--muted);line-height:1.6;text-align:center;margin-top:22px}
.settings-account{margin-top:24px;padding-top:16px;border-top:1px solid var(--line)}.settings-account p{font-size:14px;font-weight:750;overflow-wrap:anywhere}.settings-account .text-button{margin-top:8px}.sync-note{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:13px;line-height:1.5;color:#8c351b;background:#f7ead2;border-radius:14px;padding:12px 16px;margin-top:18px}.sync-note .text-button{color:var(--ink)}
.book-original-title{display:grid;gap:4px;margin-top:15px;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.book-original-title>span:first-child{font-size:11px;color:var(--muted)}
.book-detail-languages{font-size:11px;color:var(--muted);line-height:1.5;margin-top:7px}
.book-external-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:20px}
.book-external-link{display:grid;grid-template-columns:22px minmax(0,1fr) 14px;gap:8px;align-items:center;min-height:60px;padding:10px;border:1px solid #b4cba0;border-radius:14px;background:#fffdf5;color:var(--ink);text-decoration:none;box-shadow:0 2px 0 #c9d7b8;transition:background .15s,transform .15s}
.book-external-link:hover{background:#f3f8e7}.book-external-link:active{transform:translateY(2px);box-shadow:none}
.book-external-link:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
.book-external-link-copy{display:grid;gap:3px;min-width:0}.book-external-link-copy strong{font-size:12px;line-height:1.3}.book-external-link-copy>span{font-size:11px;line-height:1.3;color:var(--muted)}
.external-link-arrow{width:14px;height:14px}.book-links-note{font-size:10px;color:var(--muted);line-height:1.5;margin-top:9px}
@media(max-width:380px){.book-external-link{grid-template-columns:20px minmax(0,1fr) 12px;padding:9px 8px;gap:6px}.book-external-link>img{width:20px;height:20px}.external-link-arrow{width:12px;height:12px}.book-external-link-copy strong{font-size:11px}}
@media(prefers-reduced-motion:reduce){.book-external-link{transition:none}}
.book-detail-status{display:grid;grid-template-columns:1fr 1fr;gap:15px;align-items:end;margin-top:23px;padding-top:18px;border-top:1px solid var(--line)}
.book-detail-status .book-reading>span{font-weight:750}
.book-detail-review{font-size:11px;line-height:1.7;color:var(--muted)}.book-detail-review strong{display:block;font-size:12px;color:var(--ink)}
.book-modal .deck-size{margin-top:18px}
.book-modal .deck-modal-close{width:44px;height:44px;top:10px;right:10px}
@media(max-width:520px){.library-heading{margin:12px 0 23px}.library-heading h1{font-size:27px}.book-grid{gap:23px 22px}.catalog-book{min-height:214px}.catalog-book .study-book-cover{padding:17px 11px 13px 23px}.catalog-book .study-book-cover>strong{font-size:18px}.book-tile-genres{margin:15px 0 18px;gap:4px}.book-tile-genres>span{font-size:8px;padding:4px 5px}.book-detail-status{gap:12px}}

/* Personal authorship shares the reader's paper, depth and native dialogs. */
.author-screen{padding:22px 0 36px}.author-screen>h1{font-size:30px;line-height:1.2;overflow-wrap:anywhere}
.library-author-action{margin:0 0 24px}
.deck-author-action{margin:0 0 25px}.author-actions{display:flex;flex-wrap:wrap;gap:14px;margin:24px 0 28px}
.secondary{min-height:53px;padding:12px 20px;border:2px solid #99754d;border-radius:17px;background:#ffe0cb;box-shadow:0 5px 0 #b88f62;font-weight:800;font-size:14px}
.secondary:hover:not(:disabled){transform:translateY(-2px)}.secondary span{font-family:Georgia,serif;font-size:23px;vertical-align:middle}
.author-form{display:flex;flex-direction:column;gap:9px;margin-top:25px}.author-form label{font-size:12px;font-weight:750;margin-top:10px}
.author-form input,.author-form textarea,.author-form select{font:inherit;color:inherit;min-height:48px;width:100%;padding:12px 14px;border:1.5px solid var(--sage);border-radius:13px;background:var(--paper)}
.author-form textarea{resize:vertical;line-height:1.6}.author-form textarea:focus-visible{outline:3px solid #8b541e;outline-offset:4px}
.form-actions{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:18px}.deck-card .form-actions .primary{margin:0;width:auto}
.content-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}.quote-filter{display:inline-flex;gap:3px;padding:4px;border:1px solid var(--line);border-radius:14px;background:#eef3df}
.quote-filter button{min-height:40px;padding:8px 14px;border:0;border-radius:10px;background:transparent;font-size:12px;font-weight:750}.quote-filter button[aria-pressed=true]{background:var(--ink);color:var(--paper)}
.virtual-quotes-title{display:block;padding:14px 12px;border:1.5px dashed #b88f62;border-radius:13px;background:#fff0e3;font-size:12px;font-weight:800}.mini-tree .virtual-quotes>ul{border-color:#b88f62}
.tree-node--quote:not(.tree-node--locked){background:#ffe9d6;border-color:#b88f62;box-shadow:0 2px 0 #d8b797}.tree-node--quote .tree-node-name::before{content:"❝ ";font-family:Georgia,serif;font-size:18px}
.quote-card{background:#fff0e3;border-color:#b88f62;box-shadow:0 6px 0 #dfc09e}.quote-card::before{content:"❝";width:auto;height:auto;background:none;color:#b88f62;top:13px;left:auto;right:23px;font:64px/1 Georgia,serif}
.quote-card{padding-top:64px}.quote-card blockquote{margin:0;white-space:pre-wrap;font-family:Georgia,"Times New Roman",serif;font-size:24px;line-height:1.6}.idea-body{white-space:pre-wrap;overflow-wrap:anywhere}.idea-card h1,.idea-card h2{overflow-wrap:anywhere}
@media(max-width:520px){.author-screen>h1{font-size:27px}.author-actions{gap:12px}.author-actions .primary,.author-actions .secondary{flex:1;padding:12px 14px;font-size:12px}.quote-card blockquote{font-size:21px}.author-form select{max-width:100%}}
@media(max-width:520px){.review-mascot-callout{width:100%;padding-right:12px}.review-mascot-callout p{font-size:12px}.review-mascot-button{width:60px;height:60px;border-radius:20px}}
.quote-context{padding:7px 12px;font-size:11px;color:var(--muted);overflow-wrap:anywhere}.tree-node--author{background:#fffdf6}

#idea-content:focus{outline:none}

/* Deck overview: one album, with progress above the cards. */
.album-heading{margin:16px 0 24px}.album-heading h1{font-size:30px;line-height:1.2;overflow-wrap:anywhere}.album-meta{margin-top:9px;font-size:12px;line-height:1.6;color:var(--muted)}
.album-progress{margin:0 0 22px}.album-progress>div{display:flex;align-items:baseline;justify-content:space-between;gap:14px;margin-bottom:10px;font-size:12px;line-height:1.5}.album-progress>div>span{font-weight:850}
.album-progress progress{display:block;width:100%;height:13px;border:0;border-radius:12px;overflow:hidden;background:#e0e8d2;accent-color:var(--green)}.album-progress progress::-webkit-progress-bar{background:#e0e8d2;border-radius:12px}.album-progress progress::-webkit-progress-value{background:var(--green);border-radius:12px}.album-progress progress::-moz-progress-bar{background:var(--green);border-radius:12px}
.album-screen .content-tools{margin:0 0 16px}.album-screen .complete-note,.album-screen .daily-limit{margin:0 0 20px;text-align:left}.card-screen>.text-button{margin:0 0 15px}
@media(max-width:520px){.album-heading h1{font-size:27px}}

.settings-title-preference{margin-top:20px;padding-top:12px;border-top:1px solid var(--line);line-height:1.5}
.settings-modal .settings-error{margin-top:12px;color:#8c351b;font-weight:400;line-height:1.5}
@media(max-width:520px){.mascots-screen{padding-top:21px}.mascots-heading{margin-bottom:16px}.mascots-heading h1{font-size:27px}.mascots-heading>img{width:67px;height:67px}.mascot-stage{grid-template-columns:22px 52px minmax(0,1fr) auto;gap:8px;padding:9px 10px;border-radius:19px}.mascot-stage-art{width:52px;height:52px}.mascot-stage-copy h2{font-size:15px}.mascot-stage-copy p{font-size:10px}.mascot-earned{padding:5px 7px;font-size:8px}.mascot-entry{width:63px;height:63px;border-radius:21px}}
@media(max-width:380px){.mascot-stage{grid-template-columns:18px 44px minmax(0,1fr);gap:7px}.mascot-stage-art{width:44px;height:44px}.mascot-earned{grid-column:3;justify-self:start;margin-top:-3px}}
@media(prefers-reduced-motion:reduce){.mascot-entry{transition:none}}
