@import url('./fonts.css');
:root{--paper:#f8f7f3;--white:#fffefa;--ink:#181817;--muted:#73736c;--faint:#deddd5;--stroke:3.5px;--hand:'Gaegu',cursive}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'Noto Sans KR',Arial,sans-serif;font-size:14px;-webkit-font-smoothing:antialiased}button,input{font:inherit;color:inherit}button,a,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #537c91;outline-offset:5px}button:disabled{opacity:.4}button,input{min-width:0}button{touch-action:manipulation}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.top{max-width:1220px;margin:auto;display:flex;align-items:center;gap:28px;padding:24px 38px 22px;position:relative}.top:after{content:'';position:absolute;left:38px;right:38px;bottom:0;height:3px;background:var(--ink);border-radius:60% 40% 40% 70%;transform:rotate(-.12deg)}.brand{display:flex;align-items:center;gap:11px;font-size:24px;font-weight:900;letter-spacing:-1.2px}.brand svg{width:36px;height:36px;fill:none;stroke:var(--ink);stroke-width:4;stroke-linecap:round;stroke-linejoin:round;transform:rotate(-4deg)}.brand-note{font:9px monospace;letter-spacing:1.4px}.header-link{font-size:11px;margin-left:auto}.header-link:hover,.text-button:hover,footer a:hover{text-decoration:underline;text-underline-offset:4px}main{max-width:1220px;margin:0 auto;padding:0 38px}.intro{padding:36px 0 28px;display:flex;justify-content:space-between;align-items:center;max-width:865px}.eyebrow{font-size:11px;letter-spacing:2px}.intro h1{font-weight:900;font-size:49px;letter-spacing:-2.8px;line-height:1.25;margin:12px 0 14px;position:relative;width:fit-content}.intro h1>span{display:inline-block;position:relative}.intro h1>span:after{content:'';position:absolute;left:-1px;right:-5px;bottom:-7px;border-bottom:5px solid var(--ink);height:8px;border-radius:50%;transform:rotate(-3deg)}.intro p{color:var(--muted);font-size:13px;margin:0;line-height:1.8}.star{position:absolute;right:-65px;top:2px;width:40px;height:44px;fill:none;stroke:var(--ink);stroke-width:5;stroke-linecap:round;stroke-linejoin:round;transform:rotate(12deg)}.book-doodle{width:142px;height:110px;fill:none;stroke:var(--ink);stroke-width:4.5;stroke-linecap:round;stroke-linejoin:round;transform:rotate(-5deg);margin-right:2px}.tabs{display:flex;gap:9px;position:relative;margin-bottom:31px}.tabs:after{position:absolute;content:'';height:4px;bottom:-2px;left:0;right:0;background:var(--ink);border-radius:50% 20% 20% 40%;transform:rotate(-.15deg)}.tab{padding:14px 25px;background:transparent;border:var(--stroke) solid var(--ink);border-bottom:0;border-radius:9px 13px 0 0;font-size:13px;font-weight:800;position:relative}.tab span{font-size:11px;margin-left:8px}.tab.active{background:var(--ink);color:var(--paper);transform:rotate(-.8deg);transform-origin:bottom right}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 305px;gap:39px;align-items:start}.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px;gap:12px}h2{font-size:19px;font-weight:800;letter-spacing:-.7px;margin:0}.hand-note{font:18px var(--hand);color:#6b6a63;transform:rotate(-3deg);white-space:nowrap}.search-row{display:flex;gap:10px}.search-row input{flex:1;padding:16px 16px;background:var(--white);border:var(--stroke) solid var(--ink);border-radius:9px 4px 8px 5px;font-size:13px;box-shadow:2px 2px 0 var(--ink)}.search-row input::placeholder{color:#929187}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:12px;background:var(--ink);color:var(--paper);border:var(--stroke) solid var(--ink);border-radius:5px 9px 6px 8px;font-weight:800;font-size:13px;padding:14px 20px;box-shadow:2px 2px 0 var(--ink);transition:transform .15s,box-shadow .15s}.primary:not(:disabled):hover,.secondary:not(:disabled):hover{transform:translate(-1px,-2px);box-shadow:3px 4px 0 #77766f}.primary:not(:disabled):active,.secondary:not(:disabled):active{transform:translate(1px,1px);box-shadow:none}.secondary{background:var(--paper);color:var(--ink)}.search-row button{padding:12px 19px}.search-row svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.8;stroke-linecap:round}.search-hint{font-size:10px;color:var(--muted);margin:12px 1px 16px}.search-state{font-size:12px;line-height:1.8}.search-state:not(:empty){margin:18px 0 20px}.search-state.error{padding:13px 15px;border:2px solid var(--ink);border-radius:4px 8px 3px 5px;background:#eeede7}.results-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:23px 16px}.book-card{padding:0;background:none;border:0;text-align:left;min-width:0;position:relative;align-self:start}.cover-frame{display:block;aspect-ratio:3/4;overflow:hidden;position:relative;border:3px solid var(--ink);background:#eae9e2;border-radius:3px 6px 4px 3px;box-shadow:3px 3px 0 #d6d5cd}.book-card:nth-child(4n+1) .cover-frame{border-radius:5px 3px 6px 3px;transform:rotate(-.35deg)}.book-card:nth-child(4n) .cover-frame{transform:rotate(.35deg)}.cover-frame img,.tray-cover img,.result-cover img{display:block;width:100%;height:100%;object-fit:cover}.book-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;font-weight:700;line-height:1.5;margin:10px 0 0;min-height:36px;word-break:keep-all}.book-card:hover .cover-frame{box-shadow:4px 5px 0 #aaa99f}.book-card[aria-pressed=true] .cover-frame{box-shadow:4px 4px 0 var(--ink)}.selected-mark{display:none;position:absolute;right:6px;top:6px;color:var(--ink);background:var(--paper);width:27px;height:27px;align-items:center;justify-content:center;border:2.5px solid var(--ink);border-radius:50% 40% 45% 50%;font-size:15px;font-weight:900}.book-card[aria-pressed=true] .selected-mark{display:flex}.fallback-cover{display:flex;height:100%;width:100%;padding:12px;align-items:center;justify-content:center;text-align:center;flex-direction:column;gap:10px;background:var(--paper);background-image:repeating-linear-gradient(0deg,transparent,transparent 22px,#e9e7dd 23px,#e9e7dd 24px)}.fallback-cover strong{font-family:var(--hand);font-size:24px;line-height:1.2;word-break:keep-all;overflow:hidden;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical}.fallback-cover:before{content:'✦';font-size:21px}.empty-search{min-height:292px;text-align:center;border:2px dashed #c8c6ba;border-radius:9px 5px 10px 6px;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:27px 16px}.empty-mark{font:52px var(--hand);line-height:1;transform:rotate(10deg);margin-bottom:15px}.empty-search h3{font-size:15px;letter-spacing:-.4px;margin:0 0 11px}.empty-search p{font-size:12px;line-height:1.9;color:var(--muted);margin:0}.empty-line{display:block;margin:24px auto 0;width:49px;border-bottom:3px solid var(--ink);border-radius:50%;transform:rotate(-4deg)}.manual-section{margin-top:28px;border-top:2px solid #bbb9ad;padding:15px 0 0;font-size:11px;color:var(--muted)}summary{cursor:pointer;list-style:none;line-height:1.8}summary::-webkit-details-marker{display:none}summary span{float:right;font-size:17px;line-height:1}.manual-section form{margin-top:15px;padding:16px;background:#eeede7;border-radius:4px}.manual-section label{font-size:11px;color:var(--ink)}.manual-row{display:flex;gap:9px;margin:8px 0 0}.manual-row input{flex:1;padding:10px;border:2px solid var(--ink);background:var(--white);border-radius:4px}.manual-row button{font-size:11px;padding:9px 12px}.manual-section p{font-size:10px;margin-bottom:0}.selection-side{position:sticky;top:20px}.selection-card{border:var(--stroke) solid var(--ink);border-radius:7px 11px 8px 5px;padding:21px 18px 15px;background:var(--white);box-shadow:5px 5px 0 var(--ink);transform:rotate(.3deg)}.selection-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:18px}.mini-label{font:8px monospace;letter-spacing:1.3px;color:#77766d}.selection-heading h2{font-size:20px;margin-top:6px}.count{font:700 15px var(--hand);border:2.5px solid var(--ink);border-radius:45% 50% 45% 50%;padding:6px 8px;white-space:nowrap;transform:rotate(7deg)}.selected-tray{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.tray-item{position:relative;min-width:0;padding:0;border:0;background:none;aspect-ratio:3/4}.tray-cover{display:block;width:100%;height:100%;border:2.7px solid var(--ink);border-radius:3px 5px 3px 5px;overflow:hidden;background:var(--paper)}.tray-item.empty .tray-cover{border-color:#c5c3b7;border-style:dashed;display:grid;place-items:center;font:22px var(--hand);color:#aaa79a}.tray-item .fallback-cover{padding:6px;gap:4px}.tray-item .fallback-cover:before{font-size:14px}.tray-item .fallback-cover strong{font-size:16px}.tray-remove{position:absolute;right:-4px;top:-5px;background:var(--ink);color:white;border-radius:50%;border:2px solid var(--white);width:19px;height:19px;font-size:14px;line-height:14px;opacity:0;pointer-events:none}.tray-item:hover .tray-remove,.tray-item:focus-visible .tray-remove{opacity:1}.tray-caption{display:flex;align-items:center;justify-content:space-between;gap:3px;margin:13px 0 15px;font-size:9px;color:var(--muted)}.text-button{padding:0;border:0;background:none;font-size:10px;line-height:1.8}.owner-label{display:flex;justify-content:space-between;font-size:10px;align-items:center;margin-top:12px}.owner-label span{font-size:9px;color:var(--muted)}.owner-input{border:0;border-bottom:2px solid #b3b0a3;background:none;width:100%;padding:9px 1px;margin-bottom:19px;font-size:12px;border-radius:0}.owner-input::placeholder{color:#aaa79d}.generate{width:100%;padding:13px 8px;font-size:12px;justify-content:space-between;gap:5px}.generate:disabled{background:#d5d3c8;color:#69675e;border-color:#d5d3c8;box-shadow:none;opacity:1}.generate span{font-size:18px;line-height:1}.local-note{font-size:9px;color:var(--muted);text-align:center;margin:12px 0 0;line-height:1.7}.side-note{font:23px/1.2 var(--hand);text-align:center;transform:rotate(-3deg);color:#65645b;margin:31px 0 22px}.side-note span{display:block;font:27px var(--hand);margin-top:8px}.ad-slot{border:1px solid #dedcd2;background:#f3f2ed;text-align:center;color:#9d9a8d;min-height:88px;padding:16px 8px;display:flex;flex-direction:column;justify-content:center;gap:8px}.ad-slot>span{font:9px monospace;letter-spacing:2px}.ad-slot>p{font-size:8px;margin:0}.desktop-ad{margin:30px 5px 0}.home-manual-ad{width:100%;max-width:960px;margin:24px auto 0;min-height:90px}.skeleton{min-width:0}.skeleton-cover{aspect-ratio:3/4;border:3px solid #d1cfc3;border-radius:4px;background:#e6e4da;animation:breathe 1.3s ease-in-out infinite}.skeleton-line{width:75%;height:11px;background:#e6e4da;margin:13px 0 7px;border-radius:3px}@keyframes breathe{50%{opacity:.45}}footer{border-top:3px solid var(--ink);border-radius:4px 2px 0 0;margin:55px 0 0;padding:24px 0 30px;display:flex;align-items:center;gap:19px;font-size:10px;color:var(--muted)}footer .footer-brand{font-weight:900;font-size:17px;color:var(--ink);letter-spacing:-.8px}footer>a:last-child{margin-left:auto;font-size:10px}.result-view{padding-top:30px}.result-topline{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}.result-topline .text-button{font-size:12px}.result-layout{display:grid;grid-template-columns:minmax(0,730px) 240px;gap:55px;justify-content:center}.result-card{border:4px solid var(--ink);border-radius:7px 11px 5px 9px;padding:34px 38px 25px;background:var(--white);box-shadow:6px 6px 0 var(--ink);text-align:center;aspect-ratio:4/5;display:flex;flex-direction:column}.result-eyebrow{font:9px monospace;letter-spacing:2px}.result-card h1{font-size:30px;letter-spacing:-1.7px;margin:14px 0 7px;font-weight:900}.result-card>p{font:20px var(--hand);margin:0 0 22px;color:#66655c}.result-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:14px;flex:1;min-height:0}.result-cover{border:3px solid var(--ink);border-radius:3px 5px 4px 3px;overflow:hidden;min-height:0;min-width:0;aspect-ratio:3/4}.result-cover:nth-child(3n+1){transform:rotate(-.4deg)}.result-cover:nth-child(3n){transform:rotate(.4deg)}.result-signature{display:flex;justify-content:space-between;align-items:center;margin-top:20px;border-top:3px solid var(--ink);padding-top:15px}.result-signature>span:first-child{font-weight:900;font-size:15px}.result-signature>span:last-child{font:8px monospace;letter-spacing:1px}.result-actions{display:flex;gap:12px;margin:26px 0 0}.result-actions button{flex:1}.result-note{font-size:10px;text-align:center;color:var(--muted);line-height:1.8;margin:15px 0 0}.result-side{padding-top:55px}.result-ad{margin-top:40px;min-height:190px}.make-own{text-align:center;margin:38px 0 0;padding:25px 15px 0;border-top:2px dashed #ccc9bb}.make-own p{font:22px var(--hand);margin:0 0 15px}.make-own a{min-width:230px}.make-own a span{margin-left:25px}#toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);background:var(--ink);color:var(--paper);font-size:12px;line-height:1.7;padding:13px 22px;max-width:calc(100vw - 32px);width:max-content;border-radius:5px 9px 4px 8px;z-index:100;opacity:0;pointer-events:none;transition:.2s}#toast.show{opacity:1;transform:translate(-50%,0)}.privacy{max-width:740px;padding-top:45px}.privacy .eyebrow{font-size:10px}.privacy h1{font-size:34px;letter-spacing:-1.5px;margin:15px 0 12px}.privacy .updated{font-size:11px;color:var(--muted);padding-bottom:26px;border-bottom:3px solid var(--ink)}.privacy section{margin:31px 0}.privacy h2{font-size:17px;margin-bottom:12px}.privacy p,.privacy li{font-size:13px;line-height:1.95;color:#626157}.privacy ul{padding-left:20px}.privacy a{text-decoration:underline;text-underline-offset:3px}.privacy .back-link{margin-top:20px;display:inline-flex}
@media(min-width:1450px){.top,main{max-width:1320px}.workspace{grid-template-columns:minmax(0,1fr) 305px;gap:44px}.results-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.intro{max-width:960px}}
@media(max-width:1000px){.top{padding-left:28px;padding-right:28px}.top:after{left:28px;right:28px}main{padding:0 28px}.workspace{grid-template-columns:minmax(0,1fr) 272px;gap:25px}.results-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 13px}.selection-card{padding:18px 14px 14px}.section-head .hand-note{display:none}.intro{max-width:710px}.book-doodle{width:120px}.result-layout{grid-template-columns:minmax(0,640px) 180px;gap:30px}.result-card{padding:28px}.result-card h1{font-size:26px}.result-grid{gap:11px}.result-signature{margin-top:16px}.result-side .side-note{font-size:21px}}
@media(max-width:760px){.top{padding:20px 20px 18px;gap:16px}.top:after{left:20px;right:20px}.brand{font-size:22px}.brand svg{width:31px;height:31px}.brand-note{display:none}.header-link{font-size:10px}main{padding:0 20px}.intro{padding:28px 0 25px}.eyebrow{font-size:9px;letter-spacing:1.5px}.intro h1{font-size:36px;letter-spacing:-2px;margin-top:11px;margin-bottom:17px}.intro p{font-size:10px}.intro h1>span:after{border-width:4px;bottom:-5px}.star{width:30px;height:31px;right:-39px;top:1px;stroke-width:5}.book-doodle{width:80px;height:90px;margin-right:2px;stroke-width:5}.tabs{gap:7px;margin-bottom:24px}.tab{padding:12px 15px;font-size:11px;border-width:3px}.tab span{font-size:10px;margin-left:5px}.workspace{display:flex;flex-direction:column;gap:25px}.search-area{width:100%}.section-head{margin-bottom:14px}h2{font-size:16px}.search-row{gap:8px}.search-row input{padding:14px 10px;font-size:11px;border-width:3px}.search-row button{padding:10px 12px;border-width:3px;gap:6px;font-size:11px}.search-row svg{width:17px;height:17px}.search-hint{font-size:9px;margin:11px 0 14px}.search-state{font-size:11px}.results-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:19px 12px}.book-title{font-size:11px;margin-top:8px;min-height:33px}.cover-frame{border-width:2.5px}.selected-mark{width:24px;height:24px;font-size:13px;right:4px;top:4px}.fallback-cover{padding:8px;gap:7px}.fallback-cover strong{font-size:21px}.empty-search{min-height:227px;padding:25px 10px}.empty-mark{font-size:42px;margin-bottom:10px}.empty-search h3{font-size:13px}.empty-search p{font-size:10px}.empty-line{margin-top:19px}.manual-section{margin-top:23px;font-size:10px}.selection-side{position:static;top:auto;width:100%;min-width:0}.selection-card{transform:none;padding:18px 17px 14px;border-width:3px;box-shadow:4px 4px 0 var(--ink)}.selection-heading{margin-bottom:15px}.selection-heading h2{font-size:20px}.count{font-size:17px}.selected-tray{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 10px}.tray-cover{border-width:2.5px;border-radius:3px 5px 3px 5px}.tray-item.empty .tray-cover{font-size:22px}.tray-item .fallback-cover{padding:6px;gap:4px}.tray-item .fallback-cover strong{font-size:16px;line-height:1.2;-webkit-line-clamp:4}.tray-remove{width:19px;height:19px;font-size:14px;line-height:14px;right:-4px;top:-5px;opacity:1}.tray-caption{margin:10px 0 13px;font-size:9px}.owner-label{margin-top:0}.owner-input{margin-bottom:14px}.generate{padding:13px 14px;font-size:12px}.local-note{font-size:9px}.selection-side>.side-note,.desktop-ad{display:none}.result-view{padding-top:24px}.result-topline{gap:10px;margin-bottom:22px}.result-topline .hand-note{font-size:14px;white-space:normal;text-align:right}.result-topline .text-button{font-size:10px;flex-shrink:0}.result-layout{display:block}.result-card{padding:22px 18px 17px;border-width:3px;box-shadow:4px 4px 0 var(--ink);aspect-ratio:auto}.result-eyebrow{font-size:7px;letter-spacing:1.5px}.result-card h1{font-size:22px;letter-spacing:-1px;margin:10px 0 5px}.result-card>p{font-size:17px;margin-bottom:17px}.result-grid{gap:9px}.result-cover{border-width:2.5px}.result-cover .fallback-cover strong{font-size:21px}.result-signature{margin-top:16px;padding-top:12px;border-width:2.5px}.result-signature>span:first-child{font-size:13px}.result-signature>span:last-child{font-size:6px;letter-spacing:.7px}.result-actions{gap:8px;margin-top:24px}.result-actions button{font-size:11px;padding:12px 8px;border-width:3px;gap:3px}.result-actions:has(#share-native:not([hidden])){flex-wrap:wrap}.result-actions #share-native{flex-basis:100%}.result-note{font-size:9px;margin-top:13px}.make-own{margin-top:27px;padding-top:22px}.make-own p{font-size:20px}.make-own a{font-size:13px;min-width:220px}.result-side{padding-top:0}.result-side>.side-note{display:none}.result-ad{margin:30px 0 0;min-height:72px}footer{margin-top:37px;padding:21px 0 26px;gap:10px;flex-wrap:wrap}footer .footer-brand{font-size:16px}footer>span{font-size:8px}footer>a:last-child{font-size:9px}.privacy{padding-top:30px}.privacy h1{font-size:27px}.privacy p,.privacy li{font-size:12px}.privacy section{margin:26px 0}}
@media(max-width:359px){main{padding:0 16px}.top{padding-left:16px;padding-right:16px}.top:after{left:16px;right:16px}.intro h1{font-size:31px}.intro p{font-size:9px}.book-doodle{width:60px}.tab{font-size:10px;padding:12px}.tab span{margin-left:3px}.results-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.selected-tray{gap:10px 8px}footer>span{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(min-width:761px){.result-cover{aspect-ratio:auto}}

/* Keep the longer Korean wordmark on one line, including narrow phones. */
.brand{white-space:nowrap;flex-shrink:0}.brand svg{flex-shrink:0}.result-signature>span:first-child,.footer-brand{white-space:nowrap}
@media(max-width:760px){.brand{font-size:20px;gap:9px;letter-spacing:-1px}.brand svg{width:29px;height:29px}.top{gap:12px}.header-link{font-size:9px;white-space:nowrap}footer>span{flex-basis:auto}}
@media(max-width:359px){.brand{font-size:18px;gap:8px}.brand svg{width:27px;height:27px}.top{gap:8px}.header-link{font-size:8px}}

.filter-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #d8d5c9;padding:13px 0 2px;margin:7px 0 12px}.filter-label{font-size:10px;font-weight:700}.filter-bar p{font-size:9px;color:var(--muted);line-height:1.65;margin:5px 0 0;max-width:440px}.filter-bar .text-button{flex-shrink:0;border-bottom:1.5px solid var(--ink);font-size:10px;white-space:nowrap}.filter-bar .text-button:disabled{opacity:.45}
@media(max-width:760px){.filter-bar{align-items:flex-start;gap:12px;padding-top:11px;margin-bottom:10px}.filter-label{font-size:9px}.filter-bar p{font-size:8px}.filter-bar .text-button{font-size:9px;margin-top:1px}}
/* Work search: one text row per series, with its author, then cover resolution. */
.work-list{display:flex;flex-direction:column;gap:0;border-top:3px solid var(--ink)}.work-list:empty{border-top:0}.work-row{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:77px;padding:17px 11px;background:transparent;border:0;border-bottom:2px solid #d3d0c5;text-align:left;width:100%}.work-row:hover{background:#eeede6}.work-row[aria-pressed=true]{background:#eeece2}.work-info{min-width:0;display:flex;flex-direction:column;gap:7px}.work-title{font-size:14px;font-weight:800;line-height:1.5;word-break:keep-all}.work-authors{font-size:11px;line-height:1.5;color:var(--muted);word-break:keep-all}.work-indicator{flex-shrink:0;display:grid;place-items:center;width:29px;height:29px;border:2.5px solid var(--ink);border-radius:48% 42% 49% 43%;font:700 20px var(--hand)}.work-row[aria-pressed=true] .work-indicator{background:var(--ink);color:var(--paper)}.work-row.is-pending .work-indicator{animation:breathe 1.2s ease-in-out infinite}.work-skeleton{display:flex;flex-direction:column;gap:12px;padding:21px 11px;border-bottom:2px solid #d3d0c5;animation:breathe 1.2s ease-in-out infinite}.work-skeleton span{height:13px;width:65%;background:#e3e1d6;border-radius:2px}.work-skeleton span+span{height:10px;width:28%}.selection-status{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#eeece2;border:2px solid var(--ink);border-radius:6px 9px 5px 7px;padding:11px 13px;margin:13px 0}.selection-status p{margin:0;font-size:11px;line-height:1.7;word-break:keep-all}.selection-status button{flex-shrink:0;font-size:11px;text-decoration:underline;text-underline-offset:3px}.tray-item{aspect-ratio:auto;display:flex;flex-direction:column}.tray-cover{height:auto;aspect-ratio:3/3.15}.tray-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:24px;font-size:9px;line-height:1.35;font-weight:600;text-align:center;word-break:keep-all;margin-top:5px}.tray-item.empty{padding-bottom:29px}.tray-item.empty .tray-cover{height:auto;aspect-ratio:3/3.15}.result-item{margin:0;display:flex;flex-direction:column;min-height:0;min-width:0;gap:7px}.result-item .result-cover{flex:1;aspect-ratio:auto;width:100%;min-height:0}.result-work-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:30px;max-height:30px;font-size:11px;font-weight:700;line-height:1.35;word-break:keep-all;text-align:center}.result-item:nth-child(3n+1) .result-cover{transform:rotate(-.35deg)}.result-item:nth-child(3n) .result-cover{transform:rotate(.35deg)}
@media(max-width:760px){.work-row{min-height:72px;padding:14px 8px;gap:13px}.work-title{font-size:12px}.work-authors{font-size:10px}.work-indicator{width:26px;height:26px;font-size:18px}.selection-status p{font-size:10px}.tray-cover,.tray-item.empty .tray-cover{aspect-ratio:3/4;height:auto}.tray-title{font-size:10px;line-height:1.4;min-height:28px;max-height:28px;margin-top:5px;overflow-wrap:anywhere}.tray-item.empty{padding-bottom:33px}.result-item .result-cover{aspect-ratio:3/3.6;flex:none}.result-item{gap:5px}.result-work-title{font-size:9px;min-height:25px;max-height:25px}.result-grid{gap:12px 8px}}

/* Keep mobile selections in document flow below search, with full-size 3×3 covers. */
@media(max-width:760px){.search-row input{font-size:16px}}

/* Two equal book category tabs remain inside a 390px screen. */
.tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-width:700px}.tab{min-width:0;padding:14px 8px;white-space:nowrap}.tab .tab-label{font:inherit;margin:0}.rankings{margin-top:34px;padding-top:22px;border-top:3px solid var(--ink)}.rankings .section-head{margin-bottom:10px}.rankings h2{font-size:17px}.rankings #ranking-status,.ranking-disclaimer,.submission-note{font-size:10px;line-height:1.8;color:var(--muted)}.ranking-list{list-style:none;padding:0;margin:14px 0}.ranking-list li{display:flex;gap:13px;align-items:center;border-bottom:1px solid var(--faint);padding:14px 3px}.ranking-rank{font:700 22px var(--hand);min-width:28px}.ranking-list strong{flex:1;min-width:0;font-size:12px;overflow-wrap:anywhere}.ranking-count{font-size:10px;white-space:nowrap}.ranking-disclaimer{font-size:9px}.submission-note{text-align:center}#result-error{aspect-ratio:auto}#save-png:disabled{opacity:.55}
@media(max-width:760px){.tabs{gap:5px}.tab{padding:12px 4px;font-size:10px;letter-spacing:-.3px}.tab span{font-size:9px;margin-left:3px}.intro h1{max-width:calc(100vw - 90px);font-size:clamp(26px,8vw,36px)}.intro .star{right:-34px}.book-doodle{flex-shrink:0;width:62px}.ranking-list li{padding:12px 2px}.rankings h2{font-size:15px}}
@media(max-width:760px){.tab{padding:12px 2px;font-size:9px}.tab span{font-size:8px;margin-left:2px}.book-doodle{display:none}}
.image-preview-wrap{margin:14px auto;max-width:540px;text-align:center}.image-preview-wrap img{display:block;width:min(100%,360px);height:auto;margin:0 auto;border:2px solid var(--ink);background:var(--white)}.image-preview-wrap p{font-size:11px;line-height:1.8;color:var(--muted)}.result-actions #copy-long-link{flex-basis:100%;text-align:center}.result-note{line-height:1.8}

.tray-item{aspect-ratio:auto;display:flex;flex-direction:column;gap:4px}.tray-cover{aspect-ratio:3/3.15;height:auto;flex:none}.tray-actions{display:flex;gap:3px}.tray-edit,.tray-remove{min-width:44px;min-height:44px;border:1px solid var(--ink);background:var(--white);font-size:11px}.tray-remove{position:static;opacity:1;width:44px;height:44px;line-height:1}.cover-editor{padding:24px;min-width:min(90vw,420px);max-width:92vw;border:0}.cover-editor h2{margin-bottom:10px}.cover-choice{display:flex;align-items:center;gap:10px;min-height:52px;border-top:1px solid var(--faint)}.cover-choice input[type=radio]{width:22px;height:22px}.cover-preview{width:120px;height:160px;margin:16px auto}.cover-recommendations{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.cover-candidate{padding:5px;border:1px solid var(--faint);background:white;min-width:0}.cover-candidate img{width:100%;aspect-ratio:3/4;object-fit:cover}.cover-candidate span{display:block;font-size:10px;line-height:1.5}.cover-editor-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:14px}.cover-editor-actions button{min-height:48px}#cover-dialog{padding:0;border:3px solid var(--ink);border-radius:8px;max-height:90vh}#cover-dialog::backdrop{background:#18181799}

@media(max-width:760px){.tray-cover{aspect-ratio:3/4}.tray-edit,.tray-remove{min-height:44px;min-width:44px}.result-cover-edit{min-height:44px}}
.cover-preview img{display:block;width:100%;height:100%;object-fit:contain}.cover-preview .fallback-cover{height:100%;font-size:12px}.cover-preview .fallback-cover strong{font-size:20px}.cover-help{font-size:12px;line-height:1.7;color:var(--muted);max-width:440px}.cover-editor{width:min(90vw,520px);min-width:0;overflow-wrap:anywhere}.cover-editor-actions{flex-wrap:wrap}.cover-candidate[aria-pressed=true]{outline:3px solid #537c91;outline-offset:1px}.result-cover-edit{min-height:44px;border:1px solid var(--ink);background:var(--white);font-size:11px}.cover-editor #cover-browse,.cover-editor #cover-retry{min-height:44px}
