@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Lora:wght@400;500;600&display=swap');
:root{--ink:#203f37;--green:#1f5b48;--muted:#748178;--line:#dedfd5;--paper:#f6f5ef;--gold:#b58d4e}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.65 'DM Sans',Arial,sans-serif}.shell{display:grid;grid-template-columns:245px 1fr;min-height:100vh}aside{background:#123e33;color:#e5eee5;padding:38px 25px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;gap:13px;align-items:center;font:26px 'Lora',Georgia,serif;color:inherit;text-decoration:none}.mark{border:1px solid #acbc93;border-radius:14px;padding:0 12px;font-size:37px;color:#d8bf86}.brand-sub{display:block;font:11px 'DM Sans',sans-serif;letter-spacing:5px;margin-top:7px}.side-caption{font-size:9px;letter-spacing:1.8px;color:#a3b8aa;margin:55px 0 18px}nav{display:grid;gap:8px}nav button{color:#dce8df;background:transparent;text-align:left;border:0;padding:12px 15px}nav button.selected,nav button:hover{background:#ffffff15;color:white}.side-foot{margin-top:auto;color:#adbfaf;font:italic 15px/1.9 'Lora',Georgia,serif;padding-top:30px}main{padding:38px 5vw;min-width:0}header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:30px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:2px;color:var(--gold)}h1,h2,h3{line-height:1.3}h1{font:32px 'Lora',Georgia,serif;margin:9px 0}h2{font:25px 'Lora',Georgia,serif;margin:0 0 12px}h3{font-size:17px;margin:0 0 8px}p{margin:0 0 16px}.muted{color:var(--muted)}.small{font-size:12px}.hero{background:#e6ebe0;border:1px solid #d4ddcd;border-radius:18px;padding:30px;margin-bottom:25px;position:relative;overflow:hidden}.hero:after{content:'✳';position:absolute;right:20px;top:-55px;font-size:230px;color:#3f694b10;pointer-events:none}.hero h2{max-width:750px;font-size:30px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.card{background:#fffefa;border:1px solid var(--line);border-radius:15px;padding:24px;margin-bottom:20px}.card p{white-space:pre-wrap;overflow-wrap:anywhere}.card.active{border:2px solid var(--green)}.card-number{color:var(--gold);font:24px 'Lora',serif}.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.between{justify-content:space-between}.pill{display:inline-block;background:#edf1e8;border-radius:30px;padding:4px 11px;color:#456444;font-size:11px;font-weight:600}.pill.warm{background:#f4ebda;color:#8a6b33}button,.button{border:1px solid var(--line);border-radius:9px;padding:10px 16px;font:600 13px 'DM Sans',Arial,sans-serif;cursor:pointer;background:white;color:var(--ink);text-decoration:none;display:inline-block}button.primary,.button.primary{background:var(--green);color:white;border-color:var(--green)}button.danger{color:#9f392b;border-color:#e6c6bd}button:disabled{opacity:.55;cursor:wait}button:hover,.button:hover{filter:brightness(.96)}input,textarea,select{display:block;width:100%;padding:12px 13px;border:1px solid #d4d9cc;border-radius:8px;background:white;color:var(--ink);font:15px/1.6 'DM Sans',Arial,sans-serif}textarea{resize:vertical;min-height:180px}label{display:block;font-size:12px;font-weight:600;margin:15px 0 6px}form button{margin-top:18px}.form-narrow{max-width:480px;margin:30px auto}.error{padding:12px 18px;background:#f8e4db;border:1px solid #e7c4b8;border-radius:8px;margin-bottom:18px}.success{padding:12px 18px;background:#e1eddf;border-radius:8px;margin-bottom:18px}.empty{padding:40px 20px;text-align:center;border:1px dashed #ccd4c7;border-radius:12px;color:var(--muted)}.avatar{display:grid;place-items:center;width:44px;height:44px;flex-shrink:0;border-radius:12px;background:#e9edde;color:var(--green);font-weight:700}.contribution{border-top:1px solid var(--line);margin-top:18px;padding-top:18px}.tabs{display:flex;gap:8px;margin-bottom:24px;flex-wrap:wrap}.tabs .selected{background:var(--green);color:white}.queue-body{max-height:150px;overflow:auto}.preview-text{font:24px/1.6 'Lora',Georgia,serif;white-space:pre-wrap;overflow-wrap:anywhere}footer{color:var(--muted);font-size:11px;margin:40px 0 0;padding-top:20px;border-top:1px solid var(--line)}dialog{max-width:800px;width:90%;max-height:85vh;border:1px solid var(--line);border-radius:16px;padding:30px;background:var(--paper)}dialog::backdrop{background:#102c29a0}.projector{background:#102e27;color:#f5f1df;min-height:100vh;padding:5vh 7vw;display:flex;flex-direction:column}.projector .projector-top{display:flex;justify-content:space-between;border-bottom:1px solid #ffffff25;padding-bottom:16px;font-size:18px;color:#bbccba}.projector h1{font-size:clamp(32px,4vw,65px);margin:4vh 0 2vh;color:#e5cc91}.projector .screen-body{font:clamp(30px,3.3vw,58px)/1.55 'DM Sans',Arial,sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;flex:1}.screen-controls{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:20px}.screen-controls button{background:transparent;color:#d6dfd0;border-color:#ffffff30}.book{max-width:148mm;margin:auto;background:white;padding:16mm;font:12pt/1.5 'Lora',Georgia,serif;color:#222;white-space:pre-wrap;overflow-wrap:anywhere}.book h1{font-size:22pt}.qr{background:white;padding:15px;display:inline-block;border-radius:12px}.qr img{max-width:100%}@media(max-width:850px){.shell{grid-template-columns:1fr}aside{position:static;height:auto;padding:16px 20px;flex-direction:row;align-items:center;flex-wrap:wrap;gap:15px}.brand{font-size:20px}.side-caption,.side-foot{display:none}nav{display:flex;flex-wrap:wrap;margin-left:auto;gap:4px}nav button{padding:8px}.brand-sub{font-size:8px}main{padding:24px 18px}.grid,.grid.three{grid-template-columns:1fr}h1{font-size:26px}.hero h2{font-size:25px}header{align-items:flex-start}.projector{padding:4vh 5vw}}@media print{@page{size:A5;margin:16mm 14mm 18mm 18mm}body{background:white}.no-print{display:none!important}.book{padding:0;max-width:none;font-size:11.5pt;orphans:3;widows:3}.book h1{break-after:avoid}}

/* Keep projected pages within the screen; the renderer adjusts long headings. */
.projector{height:100dvh;min-height:0;overflow:hidden}.projector-top,.projector h1,.screen-controls,.projector>.qr{flex-shrink:0}.projector .screen-body{flex:1 0 auto}.projector h1{line-height:1.18}.projector .screen-body{line-height:1.45}

.library-invite{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:20px}.library-invite p{margin:0}.library-invite h3{margin-top:8px}.library-filters{display:grid;grid-template-columns:2fr 1.2fr 1fr 1fr;gap:16px}.library-filters label{margin-top:0}.library-book{display:flex;flex-direction:column}.library-book>.row:last-child{margin-top:auto}.book-cover{aspect-ratio:3/4;background:#1b493b;color:#efe3b9;border-radius:8px;margin-bottom:22px;display:flex;flex-direction:column;justify-content:space-between;padding:25px;overflow:hidden;max-height:300px}.book-cover strong{font:23px/1.35 'Lora',Georgia,serif;overflow-wrap:anywhere}.book-cover>span:last-child{font-size:11px;letter-spacing:1px}.book-cover:has(img){padding:0;background:#e4e7dd}.book-cover img{width:100%;height:100%;object-fit:contain}.library-grid{align-items:stretch}@media(max-width:850px){.library-filters{grid-template-columns:1fr 1fr}.library-invite{align-items:flex-start;flex-direction:column}}@media(max-width:480px){.library-filters{grid-template-columns:1fr}.library-book .row{gap:8px}}

#book-list>.empty{grid-column:1/-1}@media(min-width:851px) and (max-width:1250px){.library-filters{grid-template-columns:1fr 1fr}}

/* Preserve the submitted line structure and isolate Arabic/Latin paragraphs. */
.projector .screen-body{white-space:normal}.screen-line{white-space:pre-wrap;tab-size:4;unicode-bidi:plaintext;overflow-wrap:anywhere;line-height:1.6}.screen-line:empty{min-height:1.6em}

/* Materi utuh: gulir vertikal tanpa pergantian halaman. */
.projector{height:auto;min-height:100dvh;overflow:visible;padding-bottom:100px}.projector .screen-body{flex:none}.projector .screen-controls{position:fixed;right:20px;bottom:16px;margin:0;padding:8px 12px;border-radius:10px;background:#102e27ed;z-index:10}.projector .screen-controls>span{display:none}

.projector .screen-line{line-height:var(--screen-spacing,1.6);text-align:var(--screen-align,start)}.projector h1{text-align:var(--screen-align,start)}
