/* Android presentation overrides share the existing persisted theme selection. */
html:root[data-theme="light"] {
  --accent-dark: #a74209;
  --muted: #596d78;
  --danger: #b33128;
}
html:root[data-theme="light"] body { background: var(--bg); color: var(--text); }
html:root[data-theme="light"] .android-profile-dialog[open] {
  border-color: var(--line); background: var(--panel); color: var(--text); box-shadow: var(--shadow);
}
html:root[data-theme="light"] .android-profile-dialog p { color: var(--muted); }
html:root[data-theme="light"] .android-profile-dialog > header button {
  border-color: var(--line); background: var(--panel-strong); color: var(--text);
}
html:root[data-theme="light"] .android-profile-dialog::backdrop,
html:root[data-theme="light"] .settings-dialog::backdrop { background: rgba(19,32,39,.3); }

@media (max-width: 900px) {
  html:root[data-theme="light"] .mobile-tabbar {
    border-color: var(--line); background: rgba(255,255,255,.98); box-shadow: var(--shadow-sm);
  }
  html:root[data-theme="light"] .mobile-tab-button { color: var(--muted); }
  html:root[data-theme="light"] .mobile-tab-button.is-active {
    border-top-color: #f1b88d; background: linear-gradient(150deg,#ffeadb,#fff5ec); color: var(--accent-dark);
  }
  html:root[data-theme="light"] .mobile-tab-button.is-active::after { background: var(--accent-dark); }
  html:root[data-theme="light"][data-mobile-view="listen"] .recognize-button .recognize-button-icon {
    background: var(--panel); color: var(--accent-dark);
  }
  html:root[data-theme="light"][data-mobile-view="listen"] .recognize-button.is-listening .recognize-button-icon {
    background: radial-gradient(circle,#fff 30%,#fff4e8 78%,#ffd4a3 100%); color: #a74209;
    box-shadow: inset 0 0 7px #ffab36,0 0 4px #ffe396,0 0 18px rgba(255,139,32,.45);
  }
  html:root[data-theme="light"][data-mobile-view="listen"] .search-icon { color: var(--accent-dark); }
  html:root[data-theme="light"] .library-screen .mobile-list-filters button[aria-pressed="true"] { color: #281507; }

  html:root[data-theme="light"].android-gp-list .mobile-app-title,
  html:root[data-theme="light"].android-gp-list .mobile-list-main,
  html:root[data-theme="light"].android-gp-list .mobile-list-search input,
  html:root[data-theme="light"].android-gp-list .mobile-list-empty strong { color: var(--text); }
  html:root[data-theme="light"].android-gp-list .android-gp-title-accent { color: var(--accent-dark); }
  html:root[data-theme="light"].android-gp-list .android-gp-subtitle,
  html:root[data-theme="light"].android-gp-list .mobile-list-search,
  html:root[data-theme="light"].android-gp-list .mobile-list-search input::placeholder,
  html:root[data-theme="light"].android-gp-list #gpFilesCapacity,
  html:root[data-theme="light"].android-gp-list .mobile-list-copy small,
  html:root[data-theme="light"].android-gp-list .mobile-list-filters button,
  html:root[data-theme="light"].android-gp-list .mobile-list-empty,
  html:root[data-theme="light"].android-gp-list .mobile-list-favorite,
  html:root[data-theme="light"].android-gp-list .mobile-list-more { color: var(--muted); }
  html:root[data-theme="light"].android-gp-list .mobile-list-search,
  html:root[data-theme="light"].android-gp-list .gp-saved-files-list .mobile-list-entry,
  html:root[data-theme="light"].android-gp-list .mobile-list-menu {
    border-color: var(--line); background: var(--panel); box-shadow: var(--shadow-sm);
  }
  html:root[data-theme="light"].android-gp-list .mobile-list-filters {
    border-color: var(--line); background: var(--panel-strong);
  }
  html:root[data-theme="light"].android-gp-list .mobile-list-filters button[aria-pressed="true"] { color: #281507; }
  html:root[data-theme="light"].android-gp-list .mobile-list-meta { background: var(--panel-strong); color: var(--muted); }
  html:root[data-theme="light"].android-gp-list .mobile-list-menu button { color: var(--text); }
  html:root[data-theme="light"].android-gp-list .mobile-list-favorite.is-favorite { color: var(--accent-dark); }
  html:root[data-theme="light"].android-gp-list .mobile-list-gp-art { color: #281507; }
  html:root[data-theme="light"].android-gp-list .mobile-list-gp-art::after { border-top-color: var(--panel); }

  html:root[data-theme="light"].android-profile-active .profile-screen > .mobile-screen-heading {
    background: linear-gradient(90deg,#f3f6f7 0%,rgba(243,246,247,.98) 48%,rgba(243,246,247,.8) 65%,rgba(243,246,247,0) 85%),linear-gradient(0deg,#f3f6f7,rgba(243,246,247,0) 35%),url("profile-guitar-light.png") center right / cover no-repeat;
  }
  html:root[data-theme="light"].android-profile-active #profileTitle { color: var(--text); }
  html:root[data-theme="light"].android-profile-active .mobile-screen-kicker { color: var(--accent-dark); }
  html:root[data-theme="light"].android-profile-active .mobile-screen-heading > p:last-child { color: var(--muted); }
  html:root[data-theme="light"] .android-profile-identity,
  html:root[data-theme="light"] .android-profile-stat,
  html:root[data-theme="light"] .android-profile-actions {
    background: var(--panel); border-color: var(--line); color: var(--text);
  }
  html:root[data-theme="light"] .android-profile-avatar,
  html:root[data-theme="light"] .android-profile-tier,
  html:root[data-theme="light"] .android-profile-stat-icon { background: var(--accent-soft); color: var(--accent-dark); }
  html:root[data-theme="light"] .android-profile-identity-copy > small,
  html:root[data-theme="light"] .android-profile-chevron,
  html:root[data-theme="light"] .android-profile-limits > header,
  html:root[data-theme="light"] .android-profile-limits > header > button,
  html:root[data-theme="light"] .android-profile-stat-copy > small,
  html:root[data-theme="light"] .android-profile-action-icon,
  html:root[data-theme="light"] .android-profile-action-copy small { color: var(--muted); }
  html:root[data-theme="light"] .android-profile-meter { background: #e3e9ec; }
  html:root[data-theme="light"] .android-profile-plan,
  html:root[data-theme="light"] .android-profile-plan.is-pro { background: linear-gradient(115deg,#fff0dc,#fff8f1); border-color: #e4a66d; }
  html:root[data-theme="light"] .android-profile-plan-copy strong { color: var(--text); }
  html:root[data-theme="light"] .android-profile-plan-copy small { color: var(--muted); }
  html:root[data-theme="light"] .android-profile-action { border-color: var(--line); color: var(--text); }
  html:root[data-theme="light"] .android-profile-library-status { color: var(--muted); }
  html:root[data-theme="light"] .android-profile-message,
  html:root[data-theme="light"] .account-library-error { color: #ad2e23; }

  html:root[data-theme="light"].android-recognition-result .recognition-result[data-tone="ok"] .recognition-result-visual {
    background: linear-gradient(90deg,rgba(243,246,247,.98),rgba(243,246,247,.87)),url("profile-guitar.png") right center / auto 100% no-repeat,var(--bg);
  }
  html:root[data-theme="light"].android-recognition-result .recognition-result[data-tone="ok"] .recognition-result-title { color: var(--text); }
  html:root[data-theme="light"].android-recognition-result .recognition-result[data-tone="ok"] .recognition-result-artist,
  html:root[data-theme="light"].android-recognition-result .recognition-result-heading strong { color: var(--muted); }
  html:root[data-theme="light"].android-recognition-result .recognition-result-cover-frame {
    border-color: var(--line); background: var(--panel); box-shadow: var(--shadow-sm);
  }
  html:root[data-theme="light"].android-recognition-result .recognition-result-content { background: transparent; color: var(--text); }
  html:root[data-theme="light"].android-recognition-result .recognition-result-copy { text-shadow: none; }
  html:root[data-theme="light"].android-recognition-result .recognition-service-copy,
  html:root[data-theme="light"].android-recognition-result .recognition-result-section h3,
  html:root[data-theme="light"].android-recognition-result .recognition-open-gp strong { color: var(--text); }
  html:root[data-theme="light"].android-recognition-result .recognition-service-row.is-featured .recognition-service-copy { color: #170e06; }
  html:root[data-theme="light"].android-recognition-result .recognition-result-cover-placeholder { background: var(--panel-strong); color: var(--muted); }
  html:root[data-theme="light"].android-recognition-result .recognition-service-row,
  html:root[data-theme="light"].android-recognition-result .recognition-open-gp,
  html:root[data-theme="light"].android-recognition-result .recognition-save-actions button {
    border-color: var(--line); background: var(--panel); color: var(--text);
  }
  html:root[data-theme="light"].android-recognition-result .recognition-service-row.is-featured {
    border-color: #ea822a; background: linear-gradient(115deg,#ff951f,#ff7126); color: #170e06;
  }
  html:root[data-theme="light"].android-recognition-result .recognition-service-copy small,
  html:root[data-theme="light"].android-recognition-result .recognition-open-gp small { color: var(--muted); }
  html:root[data-theme="light"].android-recognition-result .recognition-service-row.is-featured .recognition-service-copy small { color: #35200e; }
  html:root[data-theme="light"].android-recognition-result .recognition-result[data-tone="ok"] .recognition-service-row .service-link-icon,
  html:root[data-theme="light"].android-recognition-result .recognition-open-gp-icon { background: var(--accent-soft); color: var(--accent-dark); }
  html:root[data-theme="light"].android-recognition-result .recognition-result[data-tone="ok"] .recognition-service-row.is-featured .service-link-icon { background: rgba(123,62,10,.15); color: #170e06; }
  html:root[data-theme="light"].android-recognition-result .recognition-result-back,
  html:root[data-theme="light"].android-recognition-result .recognition-result-settings { background: var(--panel); color: var(--muted); }
  html:root[data-theme="light"].android-recognition-result .recognition-save-actions button.is-saved { border-color: #c46520; color: var(--accent-dark); background: var(--accent-soft); }
  html:root[data-theme="light"].android-recognition-result .recognition-save-actions svg,
  html:root[data-theme="light"].android-recognition-result .recognition-open-gp-text,
  html:root[data-theme="light"] .recognition-library-status { color: var(--accent-dark); }

  html:root[data-theme="light"] .guitar-pro-transport,
  html:root[data-theme="light"] .guitar-pro-instrument-menu,
  html:root[data-theme="light"] .guitar-pro-speed-menu,
  html:root[data-theme="light"] .guitar-pro-note-editor { background: var(--panel); border-color: var(--line); color: var(--text); box-shadow: var(--shadow-sm); }
  html:root[data-theme="light"] .alpha-tab-viewer { background: var(--guitar-pro-paper); color: var(--guitar-pro-ink); }
  html:root[data-theme="light"] .alpha-tab-viewer .at-surface { background: var(--guitar-pro-paper); }
}
