/* Entrelinhas on the phone (24/11): works on its own and syncs with the computer through the sync box. */
:root{font-family:"Segoe UI",Roboto,Arial,sans-serif;color:#ece6dc;background:#11141c;color-scheme:dark;--card:#1c1f2b;--line:#3b3c49;--muted:#a9a39b;--gold:#cfae78;--gold-ink:#241a0c;--danger:#f0ab97}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;background:#11141c;padding:0 16px calc(28px + env(safe-area-inset-bottom))}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer;border:0;border-radius:8px;padding:11px 16px;min-height:44px}
button:disabled{opacity:.4;cursor:default}
.primary{background:var(--gold);color:var(--gold-ink);font-weight:600}
.secondary{background:#2a2d3b;color:#efe4d2;border:1px solid var(--line)}
.top{display:flex;align-items:center;gap:10px;padding:calc(12px + env(safe-area-inset-top)) 0 12px}
.top-text{display:flex;flex-direction:column;line-height:1.15;flex:1;min-width:0}
.top-text b{font-family:Georgia,serif;font-weight:600;font-size:17px}
.top-text span{font-size:12px;color:var(--muted)}
.today{font-size:13px;color:var(--gold);white-space:nowrap}
main{display:flex;flex-direction:column;gap:14px;max-width:560px;margin:0 auto}
.card{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:16px}
h1,h2{margin:0 0 10px;font-size:17px;font-weight:600}
p{margin:0}
.card>p:not([class]){font-size:14px;line-height:1.45;color:#d6cfc4}
.label{display:block;font-size:12px;color:var(--muted);margin-bottom:6px}
select,input{width:100%;background:#141722;border:1px solid var(--line);border-radius:8px;padding:10px 12px;min-height:44px}
#release-form{display:flex;gap:8px;margin-top:14px}
#release-code{font-size:22px;letter-spacing:4px;text-align:center;flex:1;min-width:0}
.error{color:var(--danger);font-size:13px;margin-top:8px;min-height:1em}
.phase{margin-top:16px;text-align:center;font-size:12px;letter-spacing:2px;color:var(--muted)}
.timer{text-align:center;font:600 46px/1.1 Consolas,"Roboto Mono",monospace;font-variant-numeric:tabular-nums;color:#f6dfb7;margin:4px 0}
.detail{text-align:center;font-size:12px;color:var(--muted)}
.buttons{display:flex;gap:10px;justify-content:center;margin-top:14px}
.buttons button{flex:1;max-width:170px}
.page-form{margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}
.page-row{display:flex;gap:8px;align-items:center}
.page-row input{flex:1;min-width:0}
.page-row span{font-size:13px;color:var(--muted);white-space:nowrap}
.page-form .detail{text-align:left;margin-top:6px;min-height:1em}
.books{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.book{display:flex;align-items:center;gap:12px;width:100%;background:none;border-radius:8px;padding:8px 6px;text-align:left;min-height:64px}
.book:active,.book.current{background:#262938}
.book img,.book .cover{width:36px;height:52px;border-radius:3px;object-fit:cover;flex:none;background:#2c2e3b;display:flex;align-items:center;justify-content:center;font-family:Georgia,serif;color:#cdbb9a}
.book-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.book-title{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.book-pages{font-size:12px;color:var(--muted)}
.bar{height:4px;border-radius:2px;background:#30323f;overflow:hidden}
.bar i{display:block;height:100%;background:var(--gold);width:0}
.bar i[data-p="0"]{width:0}
.status{text-align:center;font-size:12px;color:var(--muted);margin:18px 0 0}
.status.bad{color:var(--danger)}
.note{font-size:12px;color:var(--muted);text-align:center;margin-top:12px;line-height:1.4}
#books-empty{text-align:left;margin:0}
