:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #11151e;
  color: #f5f6f9;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --muted: #9ba5b8;
  --line: #293142;
  --panel: #191f2b;
  --blue: #9bb9ff;
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; }
button, a { font: inherit; }
button { color: inherit; }
.app-shell { width: min(100% - 40px, 1080px); margin: 0 auto; }
.topbar { height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #252c39; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #f7f8fb; font-size: 20px; font-weight: 760; letter-spacing: -.06em; text-decoration: none; }
.brand-mark { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 11px; background: #293b5d; }
.brand-mark svg { width: 19px; height: 19px; fill: #a8c1fb; }
.topbar-meta { display: flex; align-items: center; gap: 9px; color: #a6afc0; font-size: 12px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #71d6a4; box-shadow: 0 0 12px #71d6a477; }
main { width: min(100%, 760px); margin: 0 auto; padding: 66px 0 44px; }
.intro { margin-bottom: 34px; }
.eyebrow { margin: 0 0 17px; color: #9bb9ff; font-size: 11px; font-weight: 750; letter-spacing: .17em; }
h1 { margin: 0; font-size: clamp(38px, 8vw, 57px); font-weight: 680; line-height: 1.04; letter-spacing: -.065em; }
h1 span { color: #8fa0bc; }
.intro-copy { max-width: 570px; margin: 19px 0 0; color: #aab3c2; font-size: 15px; line-height: 1.7; }
.source-card { overflow: hidden; border: 1px solid #30394a; border-radius: 20px; background: #191f2b; box-shadow: 0 25px 90px #05070c30; }
.card-heading { min-height: 92px; display: flex; align-items: center; gap: 15px; padding: 20px 26px; border-bottom: 1px solid var(--line); }
.google-icon { width: 43px; height: 43px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 14px; background: #fff; }
.google-icon svg { width: 29px; height: 29px; }
h2, h3, p { overflow-wrap: anywhere; }
h2 { margin: 0; font-size: 17px; font-weight: 660; letter-spacing: -.02em; }
.card-subtitle { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.status-badge { margin-left: auto; padding: 7px 10px; border: 1px solid #41495a; border-radius: 999px; color: #abb3c2; font-size: 11px; white-space: nowrap; }
.status-badge.connected { border-color: #356c54; background: #183326; color: #9ae1b6; }
.status-badge.working { border-color: #62552e; background: #302a19; color: #e9d18a; }
.card-body { padding: 23px 26px 25px; }
.notice { display: flex; gap: 12px; margin-bottom: 18px; padding: 14px 15px; border-radius: 12px; }
.notice-info { border: 1px solid #3c4d6b; background: #202c41; }
.notice-icon { width: 21px; height: 21px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid #92aee9; border-radius: 50%; color: #b5cafa; font-size: 12px; font-weight: 700; }
.notice strong { display: block; color: #e8eefc; font-size: 13px; }
.notice p { margin: 4px 0 8px; color: #b1bdd3; font-size: 12px; line-height: 1.55; }
.notice a { color: #b5cafa; font-size: 12px; text-decoration: none; }
.notice a:hover { text-decoration: underline; }
.status-message { min-height: 23px; margin: 0 0 17px; color: #c0c7d3; font-size: 13px; line-height: 1.6; }
.status-message.error { color: #ffaaa5; }
.status-message.success { color: #9ae1b6; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 16px; border: 1px solid transparent; border-radius: 11px; cursor: pointer; font-size: 13px; font-weight: 650; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.button:not(:disabled):active { transform: translateY(1px); }
.button:disabled { opacity: .42; cursor: not-allowed; }
.button-primary { background: #91b2ff; color: #111a2a; }
.button-primary:not(:disabled):hover { background: #abc5ff; }
.button-primary svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.button-secondary { border-color: #46516a; background: #252e3e; color: #dae3f6; }
.button-secondary:not(:disabled):hover { border-color: #7288b3; background: #2c3850; }
.selected-folder { display: flex; align-items: center; gap: 13px; margin-top: 20px; padding: 14px 15px; border: 1px solid #354158; border-radius: 13px; background: #202838; }
.folder-symbol { width: 35px; height: 35px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 10px; background: #2d3e5d; color: #afc7ff; font-size: 15px; }
.folder-details { min-width: 0; display: grid; gap: 4px; }
.folder-label { color: #8f9bb0; font-size: 9px; font-weight: 730; letter-spacing: .13em; }
.folder-details strong { overflow: hidden; color: #f0f3fa; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.icon-button, .text-button { border: 0; background: none; cursor: pointer; }
.icon-button { width: 34px; height: 34px; margin-left: auto; border-radius: 9px; color: #c2cde1; font-size: 22px; line-height: 1; }
.icon-button:hover { background: #34415a; }
.text-button { padding: 8px 0 8px 4px; color: #acc4fa; font-size: 11px; white-space: nowrap; }
.text-button:hover { color: #d4e0ff; }
.library-panel { border-top: 1px solid var(--line); }
.library-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 26px 14px; }
h3 { margin: 0; font-size: 14px; font-weight: 650; }
.library-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.library-note { color: #8994a8; font-size: 10px; }
.track-list { max-height: 380px; overflow: auto; padding: 0 14px 14px; }
.track-row { width: 100%; min-height: 55px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 12px; border: 0; border-radius: 10px; background: transparent; color: inherit; cursor: pointer; font: inherit; text-align: left; }
.track-row + .track-row { border-top: 1px solid #252c39; }
.track-row:hover, .track-row[aria-current="true"] { background: #222c3d; }
.track-row:focus-visible { outline: 2px solid #91b2ff; outline-offset: -2px; }
.track-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: #242e40; color: #9db9f8; font-size: 13px; }
.track-details { min-width: 0; display: grid; }
.track-name { overflow: hidden; color: #e5e9f1; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.track-meta { margin-top: 4px; color: #8c97aa; font-size: 10px; }
.track-format { color: #9ca8bc; font-size: 10px; text-transform: uppercase; }
.empty-library { padding: 20px 12px 25px; color: #a5afc0; font-size: 12px; line-height: 1.6; text-align: center; }
.player-panel { margin: 0 14px 15px; padding: 16px; border: 1px solid #354158; border-radius: 13px; background: #202838; }
.player-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.player-note { width: 36px; height: 36px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 10px; background: #2d3e5d; color: #afc7ff; font-size: 18px; }
.player-track { min-width: 0; display: grid; gap: 4px; }
.player-label { color: #8f9bb0; font-size: 9px; font-weight: 730; letter-spacing: .13em; }
.player-track strong { overflow: hidden; color: #f0f3fa; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.player-status { color: #b1bdd3; font-size: 11px; line-height: 1.5; }
.player-panel audio { width: 100%; height: 40px; }
.player-disclosure { margin: 10px 0 0; color: #98a3b5; font-size: 10px; line-height: 1.5; }
.privacy-note { display: flex; align-items: center; gap: 10px; padding: 15px 26px; border-top: 1px solid var(--line); color: #98a3b5; font-size: 10px; line-height: 1.5; }
.privacy-note svg { width: 17px; height: 17px; flex: 0 0 auto; fill: #8eabeb; }
.page-footnote { margin: 20px 0 0; color: #778397; font-size: 10px; text-align: center; }
[hidden] { display: none !important; }

@media (max-width: 600px) {
  .app-shell { width: min(100% - 28px, 1080px); }
  .topbar { height: 68px; }
  .topbar-meta { max-width: 170px; font-size: 10px; }
  main { padding-top: 48px; }
  .intro { margin-bottom: 26px; }
  .intro-copy { font-size: 14px; }
  .card-heading { min-height: 80px; gap: 11px; padding: 16px; }
  .google-icon { width: 38px; height: 38px; }
  .google-icon svg { width: 25px; height: 25px; }
  .status-badge { padding: 6px 8px; font-size: 9px; }
  .card-body { padding: 18px 16px 20px; }
  .actions { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; }
  .selected-folder { gap: 9px; padding: 11px; }
  .folder-symbol { width: 31px; height: 31px; }
  .text-button { font-size: 10px; }
  .library-heading { align-items: flex-start; padding: 17px 16px 12px; }
  .library-note { max-width: 105px; line-height: 1.4; text-align: right; }
  .track-list { padding: 0 7px 9px; }
  .player-panel { margin: 0 7px 10px; padding: 13px; }
  .privacy-note { align-items: flex-start; padding: 13px 16px; }
}
