/* app.css — OverDrive cloud app styles (dark, phone-first) */
:root {
  color-scheme: dark;
  --bg: #0f1412; --surface: #161d1a; --line: #2c3833; --text: #e6ece9; --muted: #a9b5b0;
  --accent: #4fd1a5; --accent-text: #05231a; --danger: #f2a7a7; --ok: #4fd1a5; --off: #6f7c77;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; letter-spacing: .02em; color: var(--accent); }
.account { display: flex; align-items: center; gap: 10px; }
.account img { width: 28px; height: 28px; border-radius: 50%; background: var(--surface); }
main { max-width: 520px; margin: 0 auto; padding: 24px 16px 48px; }
h1 { font-size: 1.5rem; margin: 0 0 .5rem; }
h2 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
p { margin: .5rem 0; }
.muted { color: var(--muted); }
.error { color: var(--danger); min-height: 1.5em; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px; margin-top: 12px; font: inherit; font-weight: 600;
  border: 0; border-radius: 12px; background: var(--accent); color: var(--accent-text); cursor: pointer;
}
button.secondary { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
button.danger { background: transparent; color: var(--danger); border: 1px solid var(--line); }
button.link { width: auto; margin: 0; padding: 4px 8px; background: none; color: var(--muted); font-weight: 400; }
button:disabled { opacity: .5; cursor: default; }
input {
  width: 100%; padding: 14px; font: inherit; font-size: 1.15rem; letter-spacing: .1em; text-transform: uppercase;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
}
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-top: 12px; }
.google { display: flex; justify-content: center; margin-top: 24px; min-height: 44px; }
.car { display: grid; gap: 4px; }
.car-title { font-size: 1.1rem; font-weight: 600; margin: 0; overflow-wrap: anywhere; }
.status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--off); flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px rgba(79, 209, 165, .2); }
.car-actions { display: flex; gap: 4px; justify-content: flex-end; margin-top: 4px; }
.car button.open { margin-top: 8px; }
.version { color: var(--muted); font-size: .8rem; margin: 0; }
.car button.update { background: none; border: 1px solid var(--accent); color: var(--accent); margin-top: 8px; }
.update-panel { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 4px; }
.update-panel h2 { font-size: 1rem; margin: 8px 0 4px; }
.update-panel .notes { white-space: pre-line; font-size: .85rem; max-height: 10em; overflow: auto; }
.update-panel progress { width: 100%; height: 8px; accent-color: var(--accent); }
.update-panel .ok { color: var(--ok); }
.bar .pill { width: auto; margin: 0 10px 0 auto; padding: 6px 12px; border-radius: 999px; font-size: .85rem; }
video.scanner { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; margin-top: 12px; border-radius: 14px; background: #000; }
.divider { text-align: center; color: var(--muted); margin: 20px 0 8px; }
[hidden] { display: none !important; }
.install { display: flex; align-items: center; gap: 12px; max-width: 520px; width: calc(100% - 32px); margin: 12px auto 0; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-size: .95rem; }
.install p { flex: 1; margin: 0; }
.install button { width: auto; margin: 0; padding: 10px 14px; }
.hint { min-height: 1.5em; margin: 6px 2px 0; font-size: .9rem; }
.card.push h2 { margin-top: 0; }
