:root {
  color-scheme: light;
  --ink: #1c343c;
  --muted: #62767d;
  --accent: #14626c;
  --panel: #f1f7f7;
  --line: #dae6e5;
  --paper: #ffffff;
  --lyric-size: 22px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; background: #eef5f4; color: var(--ink); }
button, input { font: inherit; }
button { cursor: pointer; }
.app {
  max-width: 580px;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 12px 60px #1c343c13;
}
.screen { padding: 0 22px 28px; }
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 43px 0 28px; }
.hero-icon { color: var(--accent); width: 62px; height: 62px; display: grid; place-items: center; margin-bottom: 13px; border-radius: 18px; background: var(--panel); }
h1 { font-size: clamp(28px, 6vw, 33px); font-weight: 760; letter-spacing: -.04em; margin: 0; line-height: 1.18; }
h2 { font-size: clamp(23px, 5vw, 28px); font-weight: 740; letter-spacing: -.03em; line-height: 1.22; margin: 0; }
.eyebrow { margin: 10px 0 0; color: var(--muted); font-size: 13px; font-weight: 520; line-height: 1.4; }
.search-wrap { margin-bottom: 29px; position: relative; }
.search-wrap input { width: 100%; border-radius: 13px; border: 1px solid var(--line); background: #f8fbfb; padding: 15px 14px 15px 47px; color: var(--ink); font-size: 15px; outline: 0; min-height: 52px; }
.search-wrap input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #14626c1c; }
.search-wrap input::placeholder { color: #70858b; }
.search-icon { position: absolute; left: 16px; top: 16px; color: #779197; pointer-events: none; }
.list-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.list-heading strong { font-size: 17px; }
.list-heading span { font-size: 12px; color: var(--muted); }
.song-list { border-top: 1px solid var(--line); }
.song-row { width: 100%; display: flex; align-items: center; gap: 13px; padding: 17px 4px; border: 0; border-bottom: 1px solid var(--line); background: var(--paper); color: inherit; text-align: left; }
.song-row:hover, .song-row:focus-visible { background: #f1f8f7; outline: none; }
.song-row:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.song-index { min-width: 35px; flex-shrink: 0; font-size: 14px; font-weight: 750; color: var(--accent); font-variant-numeric: tabular-nums; }
.song-info { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.song-name { font-size: 16px; line-height: 1.33; font-weight: 655; }
.song-author { font-size: 13px; line-height: 1.3; color: var(--muted); }
.chevron { font-size: 22px; color: #9baeb2; }
.empty { color: var(--muted); text-align: center; padding: 28px 0; }
.sync-panel { margin: 29px 0 14px; border-radius: 16px; background: var(--panel); border: 1px solid #e1eded; padding: 17px; }
.sync-head { display: flex; gap: 11px; align-items: flex-start; }
.sync-symbol { background: #deecea; color: #11625f; flex-shrink: 0; display: grid; place-items: center; font-weight: 740; border-radius: 50%; height: 27px; width: 27px; }
.sync-head strong { font-size: 14px; }
.sync-head p { font-size: 12px; line-height: 1.5; color: var(--muted); margin: 4px 0 0; }
.update-btn { margin-top: 16px; padding: 14px; width: 100%; border: 0; border-radius: 11px; background: var(--accent); color: white; font-weight: 720; }
.update-btn:hover, .update-btn:focus-visible { background: #0c505a; }
.update-btn:disabled { opacity: .65; cursor: wait; }
.feedback { margin: 10px 0 0; line-height: 1.45; color: var(--muted); font-size: 12px; }
.version { font-size: 11px; color: #778c90; margin: 9px 0 0; }
footer { padding-top: 15px; text-align: center; color: #93a5a7; font-size: 11px; }
.detail { min-height: 100dvh; }
.detail-topbar { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); height: 69px; padding-top: 12px; }
.back-hotspot { border: 0; background: transparent; min-height: 44px; min-width: 44px; text-align: left; font-size: 25px; opacity: .35; color: var(--ink); transition: opacity .2s; }
.back-hotspot:hover, .back-hotspot:focus-visible { opacity: 1; }
.detail-number { color: var(--muted); font-size: 12px; font-weight: 620; }
.font-controls { display: flex; gap: 6px; }
.font-controls button { font-size: 13px; font-weight: 790; min-width: 40px; min-height: 40px; border: 1px solid var(--line); border-radius: 9px; background: #f8fbfb; color: var(--ink); }
.font-controls button:focus-visible, .detail-bottom button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.detail-meta { margin: 35px 0 34px; text-align: center; }
.detail-meta p { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.lyrics { font-size: var(--lyric-size); line-height: 1.7; white-space: pre-wrap; overflow-wrap: break-word; min-height: calc(100dvh - 300px); padding: 3px 0 30px; }
.detail-bottom { border-top: 1px solid var(--line); text-align: center; padding: 19px 0; }
.detail-bottom button { border: 0; background: transparent; color: var(--muted); font-size: 12px; padding: 10px 22px; text-decoration: underline; text-underline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; clip: rect(0, 0, 0, 0); border: 0; white-space: nowrap; }
@media (min-width: 700px) { .hero { padding-top: 57px; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Editor com senha, integrado ao hinário público sem interferir no modo offline. */
footer{display:flex;flex-direction:column;align-items:center;gap:17px}
.admin-link{border:1px solid var(--line);background:transparent;border-radius:12px;color:var(--muted);padding:11px 17px;font-size:13px;min-height:44px}
.admin-link:focus-visible,.admin-link:hover{border-color:var(--accent);color:var(--accent);outline-offset:2px}
.admin-screen{min-height:100dvh}
.admin-topbar{display:flex;align-items:center;justify-content:space-between;height:71px;border-bottom:1px solid var(--line)}
.admin-topbar strong{font-size:16px}
.admin-intro{font-size:13px;line-height:1.6;color:var(--muted);margin:22px 0 16px}
.admin-frame{width:100%;height: min(73dvh, 780px);min-height:475px;border:1px solid var(--line);border-radius:13px;background:var(--paper)}
.admin-unavailable{padding:18px;border-radius:12px;border:1px solid var(--line);background:var(--panel)}
.admin-unavailable p,.admin-help{font-size:12px;color:var(--muted);line-height:1.6}
.admin-external{display:inline-flex;justify-content:center;align-items:center;text-align:center;min-height:44px;padding:10px 16px;border-radius:10px;background:var(--panel);color:var(--accent);font-size:13px;font-weight:650;text-decoration:none}
