:root { --navy:#14213D; --navy2:#2B3A5C; --gold:#DBB764; --gold-deep:#85661C; --gold-light:#F1E2BC; --cream:#FBF7EE; --ink:#1D1D1F; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; font:17px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background:var(--cream); color:var(--ink); -webkit-tap-highlight-color:transparent; }
.bar { position:sticky; top:0; display:flex; align-items:center; gap:12px; padding:calc(10px + env(safe-area-inset-top)) 20px 10px; background:var(--navy); color:#fff; }
.bar h1 { font-size:22px; margin:0; color:var(--gold); letter-spacing:.3px; flex:1; }
.logo { width:36px; height:36px; border-radius:8px; }
.who { color:var(--gold-light); font-size:14px; }
button { font:inherit; border:0; border-radius:22px; padding:9px 18px; cursor:pointer; min-height:44px; }
.gold { background:var(--gold); color:var(--navy); font-weight:600; }
.banner { background:var(--gold-light); color:var(--navy); padding:10px 20px; border-bottom:2px solid var(--gold); }
.banner.mock { background:#b00020; color:#fff; font-weight:700; border:0; }
main { max-width:980px; margin:0 auto; padding:20px; }
.card { background:#fff; border-radius:16px; padding:24px; box-shadow:0 1px 4px #0002; }
.card h2 { margin-top:0; color:var(--navy); }
.muted { color:#666; }
a { color:var(--gold-deep); }
.tools { display:flex; gap:12px; flex-wrap:wrap; align-items:center; margin-bottom:14px; }
input[type=search] { flex:1; min-width:220px; font:inherit; padding:11px 16px; border-radius:22px; border:1px solid #ccc; background:#fff; }
.seg { display:flex; background:var(--navy); border-radius:24px; padding:3px; }
.seg button { background:transparent; color:#fff; padding:8px 16px; min-height:40px; }
.seg button.on { background:var(--gold); color:var(--navy); font-weight:600; }
.list { list-style:none; margin:0; padding:0; background:#fff; border-radius:16px; overflow:hidden; box-shadow:0 1px 4px #0002; }
.list li { display:flex; align-items:center; gap:14px; padding:14px 18px; border-bottom:1px solid #eee; min-height:60px; }
.list li:last-child { border-bottom:0; }
.list .t { font-weight:600; color:var(--navy); }
.list .c { color:#666; font-size:15px; }
.list .grow { flex:1; }
.pill { background:var(--gold-light); color:var(--gold-deep); border-radius:12px; padding:2px 10px; font-size:13px; }
.star { color:var(--gold); font-size:20px; }
.set h3 { margin:18px 4px 8px; color:var(--navy); }
.chips { display:flex; gap:10px; overflow-x:auto; margin-bottom:14px; }
.chip { background:var(--navy); color:#fff; border-radius:12px; padding:8px 14px; white-space:nowrap; }
.chip b { color:var(--gold); }
.empty { padding:30px; text-align:center; color:#666; }
pre.log { background:var(--navy); color:var(--gold-light); padding:14px; border-radius:12px; white-space:pre-wrap; font-size:14px; min-height:120px; }
.verdict { font-size:20px; font-weight:700; padding:14px 18px; border-radius:12px; margin:14px 0; }
.pass { background:#e4f4e4; color:#185c18; } .fail { background:#fde7e7; color:#8a1010; } .warn { background:var(--gold-light); color:var(--gold-deep); }
/* reader */
.list li[data-uid] { cursor:pointer; }
.list li[data-uid]:active { background:var(--gold-light); }
#reader { position:fixed; inset:0; background:var(--navy); display:flex; flex-direction:column; z-index:10; }
body.reading { overflow:hidden; }
.rbar { display:flex; align-items:center; gap:14px; padding:calc(6px + env(safe-area-inset-top)) 14px 6px; color:#fff; background:var(--navy); transition:margin .2s; }
.rbar.hide { margin-top:-60px; }
.rbar .back { background:transparent; color:var(--gold); font-weight:600; padding:8px 6px; }
.rbar .rt { flex:1; font-weight:600; color:var(--gold-light); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rbar .rp { color:var(--gold); font-variant-numeric:tabular-nums; }
.stage { flex:1; display:flex; align-items:center; justify-content:center; gap:8px; padding:6px 6px calc(6px + env(safe-area-inset-bottom)); touch-action:pan-y pinch-zoom; user-select:none; -webkit-user-select:none; overflow:hidden; }
.stage canvas { background:#fff; box-shadow:0 2px 10px #0006; }
.stage .msg { color:var(--gold-light); }
body.mock::after { content:'MOCK DATA — fake in-memory Drive, not Google'; position:fixed; left:10px; bottom:calc(10px + env(safe-area-inset-bottom)); background:#b00020; color:#fff; font-weight:700; font-size:14px; padding:5px 12px; border-radius:8px; z-index:20; pointer-events:none; }
/* standalone: add song, row actions */
.ico { background:transparent; color:var(--navy); font-size:20px; padding:4px 8px; min-width:44px; border-radius:10px; }
.ico:active { background:var(--gold-light); }
.list .ico { color:var(--gold-deep); }
.overlay { position:fixed; inset:0; background:#14213Dcc; display:flex; align-items:center; justify-content:center; padding:16px; z-index:30; overflow:auto; }
.overlay .card { width:min(560px,100%); max-height:100%; overflow:auto; }
.overlay label { display:block; margin:12px 0; font-weight:600; color:var(--navy); }
.overlay input[type=text] { display:block; width:100%; font:inherit; font-weight:400; margin-top:4px; padding:11px 14px; border:1px solid #ccc; border-radius:12px; }
.filebtn { border:2px dashed var(--gold); border-radius:14px; padding:14px; text-align:center; background:var(--gold-light); }
.filebtn input { display:block; margin:8px auto 0; font:inherit; max-width:100%; }
.files { list-style:none; padding:0; margin:8px 0; } .files li { display:flex; align-items:center; gap:8px; padding:4px 0; border-bottom:1px solid #eee; word-break:break-all; }
.status { min-height:24px; color:var(--gold-deep); font-weight:600; }
.row { display:flex; justify-content:flex-end; gap:12px; margin-top:12px; }
.plain { background:#eee; }
button:disabled { opacity:.5; }
.tools .gold { white-space:nowrap; }
.list li.empty { display:block; line-height:1.6; }
