:root {
  color-scheme: light dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  --bg: #0b1220;
  --surface: #101828;
  --surface-2: #172033;
  --text: #f8fafc;
  --muted: #a9b4c6;
  --line: #2a3850;
  --accent: #6ee7b7;
  --accent-strong: #34d399;
  --danger: #fb7185;
  --success: #6ee7b7;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% -10%, rgba(52, 211, 153, .16), transparent 32rem),
    radial-gradient(circle at 100% 0%, rgba(96, 165, 250, .12), transparent 28rem),
    var(--bg);
}

button, select, input { font: inherit; }

a { color: var(--accent); }

.page {
  width: min(920px, calc(100% - 28px));
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 0 max(28px, env(safe-area-inset-bottom));
}

.site_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 2px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand_mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(110, 231, 183, .5);
  border-radius: 14px;
  background: rgba(52, 211, 153, .10);
  color: var(--accent);
  font-weight: 800;
  letter-spacing: -.04em;
}

.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.12rem; letter-spacing: -.02em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: .78rem; }

.local_badge {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .78rem;
  white-space: nowrap;
}

.app_card {
  min-height: 360px;
  padding: clamp(22px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(16, 24, 40, .92);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
  backdrop-filter: blur(16px);
}

#subsync_app h1 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  letter-spacing: -.03em;
}

#subsync_app h1:not(:first-child) { margin-top: 34px; }

#subsync_app p { color: var(--muted); line-height: 1.55; }

#subsync_app dl {
  display: grid;
  grid-template-columns: minmax(120px, max-content) minmax(0, 1fr);
  gap: 10px 18px;
  margin: 18px 0 0;
}

#subsync_app dt { color: var(--muted); }
#subsync_app dd { margin: 0; min-width: 0; }

#subsync_app select,
#subsync_app input[type="number"],
#subsync_app input[type="text"] {
  width: 100%;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: var(--surface-2);
}

#subsync_app .input_file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

#subsync_app .input_file + label {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px dashed #4a5c78;
  border-radius: 12px;
  color: var(--accent);
  background: rgba(110, 231, 183, .05);
  font-weight: 700;
  cursor: pointer;
  overflow-wrap: anywhere;
}

#subsync_app .input_file + label:hover {
  border-color: var(--accent-strong);
  background: rgba(110, 231, 183, .10);
}

#subsync_app .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

#subsync_app button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #40516d;
  border-radius: 11px;
  color: var(--text);
  background: #1c2940;
  font-weight: 750;
  cursor: pointer;
}

#subsync_app button.highlight,
#subsync_app button:hover:not(:disabled) {
  border-color: var(--accent-strong);
  color: #052e24;
  background: var(--accent);
}

#subsync_app button:disabled {
  opacity: .45;
  cursor: default;
}

#subsync_app button.info {
  min-height: auto;
  padding: 2px 7px;
  border-radius: 999px;
}

#subsync_app a { cursor: pointer; font-weight: 700; }

#subsync_app .progressbar {
  height: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0a1020;
}

#subsync_app .progressbar > div {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-strong), #60a5fa);
}

#subsync_app .sync_success { color: var(--success); }
#subsync_app .sync_fail, #subsync_app .error { color: var(--danger); }

#subsync_app dl.options dt { text-align: right; }
#subsync_app dl.options dd {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

#subsync_app dl.options dd input { flex: 1 1 auto; }

#subsync_app .popup {
  width: min(620px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 32px));
  margin: auto;
  padding: 24px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .5);
}

#subsync_app .popup h1 { margin-top: 0; }
#subsync_app .popup_close { font-size: 2rem; text-decoration: none; color: var(--muted); }

#subsync_app .spinner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.spinner_icon {
  width: 24px;
  height: 24px;
  border: 3px solid #40516d;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.privacy_note {
  margin: 14px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(110, 231, 183, .18);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(52, 211, 153, .04);
  font-size: .88rem;
  line-height: 1.5;
}

.privacy_note strong { color: var(--text); }

.site_footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 20px 2px 0;
  color: var(--muted);
  font-size: .78rem;
}

noscript {
  display: block;
  max-width: 760px;
  margin: 30px auto;
  padding: 18px;
  color: white;
  background: #7f1d1d;
}

@media (max-width: 620px) {
  .page { width: min(100% - 18px, 920px); }
  .site_header { align-items: flex-start; }
  .local_badge { display: none; }
  .app_card { padding: 20px 16px; border-radius: 18px; }
  #subsync_app dl { grid-template-columns: 1fr; gap: 5px; }
  #subsync_app dd { margin-bottom: 10px; }
  #subsync_app dl.options dt { text-align: left; }
  #subsync_app .buttons { display: grid; grid-template-columns: 1fr; }
  #subsync_app button { width: 100%; }
}


#subsync_app .asset_panel,
#subsync_app .language_cache {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(96, 165, 250, .05);
}

#subsync_app .asset_panel > strong,
#subsync_app .language_cache h2 {
  color: var(--text);
}

#subsync_app .asset_panel ul,
#subsync_app .language_cache ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

#subsync_app .asset_panel li + li,
#subsync_app .language_cache li + li {
  margin-top: 6px;
}

#subsync_app .asset_panel li strong {
  color: var(--text);
}

#subsync_app .language_cache h2 {
  margin: 0 0 6px;
  font-size: 1rem;
}

#subsync_app .language_cache p {
  margin: 0;
}

#subsync_app .language_cache button {
  margin-top: 12px;
}


#subsync_app .diagnostic_panel {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(96, 165, 250, .05);
}

#subsync_app .diagnostic_panel > strong {
  color: var(--text);
}

#subsync_app .diagnostic_panel p {
  margin: 8px 0 0;
}

#subsync_app .diagnostic_reason {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--text);
}

.app_tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 12px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(16, 24, 40, .72);
}
.app_tabs a {
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
}
.app_tabs a.active {
  color: #052e24;
  background: var(--accent);
}
.audio_extractor_screen { width: 100%; }
.audio_extractor_screen > .audio_extractor_intro { display: none; }
.audio_extractor_frame {
  display: block;
  width: 100%;
  min-height: 780px;
  border: 0;
  border-radius: 14px;
  background: transparent;
}
@media (max-width: 620px) {
  .app_tabs { position: sticky; top: max(6px, env(safe-area-inset-top)); z-index: 5; }
  .audio_extractor_frame { min-height: 1050px; }
  .app_card:has(.audio_extractor_screen) { padding: 12px 8px; }
}


/* 2026 Android TV visual refresh: premium living-room shell, no behavior changes. */
body {
  background:
    radial-gradient(circle at 12% -8%, rgba(45, 212, 191, .18), transparent 30rem),
    radial-gradient(circle at 88% 4%, rgba(59, 130, 246, .16), transparent 32rem),
    linear-gradient(145deg, #07101d 0%, #0a1220 44%, #0c1526 100%);
}
.site_header {
  border-bottom: 1px solid rgba(148, 163, 184, .08);
}
.brand_mark {
  border-color: rgba(110, 231, 183, .42);
  background:
    linear-gradient(145deg, rgba(110, 231, 183, .18), rgba(96, 165, 250, .10)),
    rgba(10, 18, 32, .72);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 10px 32px rgba(0,0,0,.22);
}
.local_badge {
  border-color: rgba(148, 163, 184, .20);
  background: rgba(15, 23, 42, .58);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.app_tabs {
  border-color: rgba(148, 163, 184, .16);
  background: rgba(10, 18, 32, .72);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 16px 40px rgba(0,0,0,.14);
  backdrop-filter: blur(18px);
}
.app_tabs a {
  transition: transform .14s ease, color .14s ease, background .14s ease, box-shadow .14s ease;
}
.app_tabs a.active {
  background: linear-gradient(135deg, #86efac 0%, #6ee7b7 45%, #67e8f9 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.38),
    0 10px 26px rgba(52,211,153,.16);
}
.app_tabs a:focus-visible {
  outline: 3px solid #f8fafc;
  outline-offset: 4px;
}
.app_card {
  border-color: rgba(148, 163, 184, .16);
  background:
    linear-gradient(180deg, rgba(19, 31, 50, .94), rgba(12, 22, 38, .94));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.045),
    0 34px 90px rgba(0,0,0,.30);
}
.privacy_note {
  border-color: rgba(110, 231, 183, .16);
  background: linear-gradient(90deg, rgba(52,211,153,.045), rgba(96,165,250,.025));
}

.android-shell .page {
  width: min(1180px, calc(100% - 64px));
  padding-top: 26px;
}
.android-shell .site_header {
  padding: 8px 4px 20px;
}
.android-shell .brand {
  gap: 15px;
}
.android-shell .brand_mark {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  font-size: 1.05rem;
}
.android-shell .brand strong {
  font-size: 1.35rem;
}
.android-shell .brand small {
  font-size: .82rem;
}
.android-shell .local_badge {
  padding: 9px 13px;
  color: #b8c7db;
  font-weight: 750;
}
.android-shell .app_tabs {
  width: min(620px, 100%);
  gap: 10px;
  padding: 6px;
  margin: 0 auto 18px;
  border-radius: 18px;
}
.android-shell .app_tabs a {
  min-height: 60px;
  border-radius: 13px;
  font-size: 1.02rem;
  letter-spacing: -.01em;
}
.android-shell .app_tabs a:focus-visible {
  transform: scale(1.025);
  box-shadow: 0 0 0 7px rgba(110,231,183,.24);
}
.android-shell .app_card {
  border-radius: 28px;
  min-height: 560px;
}
.android-shell .app_card:has(.audio_extractor_screen) {
  padding: 12px 14px 8px;
}
.android-shell .audio_extractor_frame {
  min-height: 920px;
  border-radius: 24px;
}
.android-shell .privacy_note {
  max-width: 820px;
  margin: 16px auto 0;
  text-align: center;
}
.android-shell .site_footer {
  justify-content: center;
  opacity: .72;
}
@media (prefers-reduced-motion: reduce) {
  .app_tabs a { transition: none; }
  .android-shell .app_tabs a:focus-visible { transform: none; }
}


/* SUBSYNC2 STUDIO | OCT 2026 | visual-only responsive skin
   Deliberately appended to the existing app.css so no new SW precache assets
   or extra network dependencies are introduced. */
:root {
  color-scheme: dark;
  --studio-night: #070e19;
  --studio-panel: #111d30;
  --studio-panel-soft: #17263c;
  --studio-line: rgba(169, 191, 220, .14);
  --studio-text: #f2f8ff;
  --studio-muted: #9cabc0;
  --studio-mint: #8cfad4;
  --studio-cyan: #7adcfb;
  --studio-violet: #b2a2fa;
  --studio-radius: 24px;
  --bg: var(--studio-night);
  --surface: var(--studio-panel);
  --surface-2: var(--studio-panel-soft);
  --line: #34445d;
  --text: var(--studio-text);
  --muted: var(--studio-muted);
  --accent: var(--studio-mint);
  --accent-strong: #59e5b5;
}
html { background: var(--studio-night); }
body {
  color: var(--studio-text);
  background:
    radial-gradient(ellipse 55% 32% at 7% 2%, rgba(29, 170, 156, .18), transparent 73%),
    radial-gradient(ellipse 50% 35% at 97% 0%, rgba(81, 99, 245, .17), transparent 76%),
    linear-gradient(160deg, #070d18 0%, #0b1323 47%, #0b1220 100%);
  background-attachment: fixed;
}
.page {
  width: min(1110px, calc(100% - 40px));
  padding-top: max(22px, env(safe-area-inset-top));
}
.site_header {
  padding: 10px 3px 22px;
  border-bottom: 1px solid rgba(166, 190, 222, .09);
}
.brand { gap: 14px; }
.brand_mark {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  display: block;
  border: 0;
  border-radius: 12px;
  background: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
}
.brand strong { font-size: 1.45rem; letter-spacing: -.055em; font-weight: 850; line-height: 1.15; }
.brand_sync { color: #b4fbe4; }
.brand sup {
  display: inline-block;
  margin-left: 3px;
  color: #8dd9f4;
  font-size: .53em;
  font-weight: 750;
  line-height: 1;
  vertical-align: super;
}
.brand small { color: #90a2bb; font-size: .77rem; letter-spacing: .02em; }
.local_badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid rgba(140,250,212,.17);
  border-radius: 999px;
  color: #c2f9e6;
  background: rgba(140,250,212,.055);
  font-weight: 760;
  font-size: .78rem;
}
.local_badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #91ffd4;
  box-shadow: 0 0 0 4px rgba(140,250,212,.11);
}
/* Intro is informational only: no fake app status, no fake progress or controls. */
.studio_hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(255px, .8fr);
  gap: clamp(20px, 5vw, 68px);
  align-items: center;
  margin: 24px 0 19px;
  min-height: 260px;
  padding: clamp(24px, 4.5vw, 48px);
  border: 1px solid rgba(153,179,218,.16);
  border-radius: 30px;
  background:
    radial-gradient(ellipse 78% 100% at 108% -10%, rgba(67, 137, 213, .17), transparent 79%),
    linear-gradient(120deg, rgba(22,38,61,.98), rgba(14,27,48,.94) 57%, rgba(15,27,47,.96));
  box-shadow: 0 28px 88px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.055);
}
.studio_hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .22;
  background-image: radial-gradient(rgba(196,225,255,.45) .75px, transparent .75px);
  background-size: 24px 24px;
  mask-image: linear-gradient(95deg, transparent, black 65%, black);
  pointer-events: none;
}
.studio_kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 17px;
  color: #a7eeda;
  font-size: .67rem;
  font-weight: 850;
  letter-spacing: .23em;
  text-transform: uppercase;
}
.studio_kicker::before {
  content: '';
  width: 17px;
  height: 2px;
  border-radius: 5px;
  background: var(--studio-mint);
}
.studio_hero h1 {
  margin: 0;
  max-width: 680px;
  color: #f5faff;
  font-size: clamp(2.1rem, 4.4vw, 3.75rem);
  font-weight: 850;
  letter-spacing: -.065em;
  line-height: 1.09;
}
.studio_hero h1 em {
  font-style: normal;
  color: #9df5d7;
  background: linear-gradient(95deg, #9af9d5, #96c8ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.studio_description {
  max-width: 560px;
  margin: 17px 0 19px;
  color: #b5c4d7;
  font-size: .99rem;
  line-height: 1.65;
}
.studio_capsules { display: flex; flex-wrap: wrap; gap: 9px; }
.studio_capsules span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 31px;
  padding: 5px 11px;
  border: 1px solid rgba(160,185,216,.18);
  border-radius: 999px;
  color: #d4e5f2;
  background: rgba(9,20,34,.35);
  font-size: .73rem;
  font-weight: 730;
}
.studio_capsules span::before {
  content: '✧';
  color: #93f4d4;
  font-size: .91rem;
}
.studio_art {
  position: relative;
  min-height: 200px;
  display: grid;
  align-content: center;
  gap: 20px;
  padding: 22px 18px;
  border: 1px solid rgba(156,190,224,.17);
  border-radius: 23px;
  background: linear-gradient(158deg, rgba(9,20,35,.81), rgba(21,43,66,.77));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 28px 58px rgba(0,0,0,.22);
  transform: rotate(-3deg);
}
.studio_art::before {
  content: '';
  position: absolute;
  inset: -9px;
  z-index: -1;
  border-radius: 30px;
  border: 1px solid rgba(140,250,212,.1);
  transform: rotate(5deg);
}
.studio_art_top { display: flex; justify-content: space-between; align-items: center; }
.studio_art_top span:first-child {
  color: #d9f5f2;
  font-size: .72rem;
  font-weight: 820;
  letter-spacing: .15em;
}
.studio_art_top span:last-child { display:flex; gap: 5px; }
.studio_art_top i { display: block; width: 6px; height: 6px; border-radius: 50%; background: #5e758d; }
.studio_art_top i:first-child { background: #8cfad4; }
.studio_wave {
  display: flex;
  height: 85px;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.studio_wave b {
  display: block;
  flex: 1 1 0;
  max-width: 8px;
  min-width: 3px;
  height: var(--h, 32%);
  border-radius: 8px;
  background: linear-gradient(to top, rgba(90,155,239,.67), #91f7d6);
  opacity: .86;
}
.studio_art_footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.studio_art_footer span { color: #8199b4; font-size: .69rem; letter-spacing: .04em; }
.studio_art_footer strong { font-size: .74rem; color: #b0eedd; font-weight: 700; }
.app_tabs {
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  padding: 6px;
  margin: 0 0 18px;
  border: 1px solid rgba(150,183,220,.14);
  border-radius: 17px;
  background: rgba(7,16,29,.67);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  backdrop-filter: blur(14px);
}
.app_tabs a {
  display: inline-flex;
  justify-content: center;
  gap: 10px;
  min-width: 205px;
  min-height: 52px;
  padding: 12px 17px;
  border-radius: 12px;
  color: #a7bacf;
  font-size: .93rem;
  font-weight: 820;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.app_tabs a svg { width: 18px; height: 18px; flex: none; stroke-width: 1.9; }
.app_tabs a.active {
  color: #092b25;
  background: linear-gradient(125deg, #a4ffd9, #78e5d0 66%, #8accf5);
  box-shadow: 0 8px 23px rgba(37,196,165,.12), inset 0 1px 0 rgba(255,255,255,.4);
}
.app_tabs a:focus-visible {
  outline: 3px solid #eef9ff;
  outline-offset: 4px;
  box-shadow: 0 0 0 7px rgba(140,250,212,.25);
}
.studio_workspace_head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 2px 0 12px; }
.studio_workspace_head span { color: #91a5be; font-size: .70rem; font-weight: 860; text-transform: uppercase; letter-spacing: .18em; }
.studio_workspace_head .studio_liner { height: 1px; flex:1; background: linear-gradient(90deg,rgba(162,187,221,.23),transparent); }
.app_card {
  min-height: 340px;
  border: 1px solid rgba(160,185,219,.17);
  border-radius: 27px;
  background: linear-gradient(154deg, rgba(19,32,53,.98), rgba(12,23,39,.97));
  box-shadow: 0 32px 77px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.045);
  padding: clamp(24px, 4.8vw, 46px);
  /* Keep fixed-position save/error overlays viewport-centered. A backdrop-filter
     on an ancestor makes position:fixed relative to the card, pushing dialogs
     below the visible viewport when the main UI is tall (WebKit + Chromium). */
  backdrop-filter: none;
}
#subsync_app h1 {
  color: #f2f8ff;
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  letter-spacing: -.038em;
  font-weight: 850;
}
#subsync_app h1:not(:first-child) { margin-top: 32px; }
#subsync_app p { color: #acbed2; }
#streams-group-sub,
#streams-group-ref {
  border: 1px solid rgba(160,189,227,.13);
  border-radius: 17px;
  background: rgba(5,15,29,.38);
  padding: 15px;
  margin: 18px 0 24px;
}
#subsync_app .input_file + label {
  display: flex;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 82px;
  padding: 19px 15px;
  border: 1px dashed rgba(137,241,216,.42);
  border-radius: 13px;
  color: #c4ffea;
  background: linear-gradient(125deg, rgba(39,201,165,.075), rgba(44,106,171,.075));
  font-size: .95rem;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: anywhere;
  transition: border-color .15s ease, background .15s ease;
}
#subsync_app .input_file + label:hover,
#subsync_app .input_file:focus-visible + label {
  border-color: #a4ffdc;
  background: rgba(74,209,180,.11);
  outline: 3px solid rgba(164,255,220,.13);
  outline-offset: 3px;
}
#subsync_app dl { gap: 12px 19px; }
#subsync_app dt { color: #a9b8cc; font-size: .89rem; align-self: center; }
#subsync_app dd { color: #dce8f5; }
#subsync_app select,
#subsync_app input[type="text"],
#subsync_app input[type="number"] {
  min-height: 51px;
  border: 1px solid rgba(159,183,218,.23);
  border-radius: 13px;
  color: #eef8ff;
  background: #18283e;
  padding: 12px 14px;
}
#subsync_app :is(select, input[type="text"], input[type="number"]):focus-visible {
  outline: 3px solid rgba(140,250,212,.3);
  outline-offset: 2px;
  border-color: #9bf5d2;
}
#subsync_app .buttons { margin-top: 26px; gap: 12px; }
#subsync_app button {
  min-height: 52px;
  padding: 13px 20px;
  border-radius: 14px;
  border: 1px solid rgba(157,187,226,.22);
  background: linear-gradient(180deg, #22344f, #1b2c44);
  color: #edf5fc;
  font-weight: 820;
  transition: transform .14s ease, background .14s ease;
}
#subsync_app button.highlight,
#subsync_app button:hover:not(:disabled).highlight {
  border-color: rgba(140,250,212,.4);
  color: #072b25;
  background: linear-gradient(123deg, #a4ffda, #6ce4c7 70%, #8acff5);
  box-shadow: 0 10px 30px rgba(48,190,160,.16);
}
#subsync_app button:hover:not(:disabled) { background: #29405a; }
#subsync_app button:focus-visible,
#subsync_app a:focus-visible {
  outline: 3px solid #dffaf5;
  outline-offset: 3px;
}
#subsync_app button.info { min-height: auto; padding: 3px 8px; }
#subsync_app .progressbar { height: 13px; border-color: rgba(169,190,222,.14); background: #071426; }
#subsync_app .progressbar > div { background: linear-gradient(90deg, #5be0a9, #7adcfb); }
#subsync_app :is(.asset_panel, .language_cache, .diagnostic_panel) {
  border-color: rgba(152,188,222,.13);
  background: rgba(10,25,45,.56);
  border-radius: 16px;
}
#subsync_app .popup { border-color: rgba(172,193,227,.22); border-radius: 22px; background: #14223a; }
.privacy_note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 18px;
  border-color: rgba(141,249,210,.14);
  border-radius: 16px;
  background: rgba(16,36,49,.48);
  color: #a4b7c8;
  font-size: .8rem;
  line-height: 1.6;
}
.privacy_note::before {
  content: '✓';
  display: inline-grid;
  flex: 0 0 26px;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: rgba(137,245,209,.11);
  color: #95f5d2;
  font-weight: 850;
}
.privacy_note strong { color: #dcebe9; }
.site_footer { margin-bottom: 14px; color: #748ba3; }
.site_footer a { color: #a3d5ca; }
.audio_extractor_frame { border-radius: 18px; }
.app_card:has(.audio_extractor_screen) { padding: 15px 13px; }
.android-shell .studio_hero { min-height: 205px; padding: 26px 36px; }
.android-shell .studio_hero h1 { font-size: clamp(1.9rem, 3.3vw, 2.7rem); }
.android-shell .studio_art { min-height: 155px; }
.android-shell .app_tabs { width: min(610px, 100%); }
.android-shell .app_tabs a { min-width: unset; flex: 1; }
@media (max-width: 800px) {
  .studio_hero { grid-template-columns: 1fr; min-height: unset; }
  .studio_art { display: none; }
  .studio_hero h1 { max-width: 640px; }
  .page { width: min(100% - 24px, 1110px); }
}
@media (max-width: 620px) {
  .page { width: min(100% - 18px, 1110px); padding-top: max(12px, env(safe-area-inset-top)); }
  .site_header { padding-bottom: 14px; }
  .brand { gap: 9px; }
  .brand_mark { width: 46px; height: 46px; border-radius: 11px; }
  .brand strong { font-size: 1.27rem; }
  .brand small { font-size: .67rem; }
  .local_badge { display: none; }
  .studio_hero { margin: 13px 0 15px; padding: 23px 20px; border-radius: 23px; }
  .studio_hero h1 { font-size: clamp(2rem, 10vw, 2.95rem); }
  .studio_kicker { font-size: .59rem; margin-bottom: 12px; }
  .studio_description { margin: 12px 0 14px; font-size: .87rem; }
  .studio_capsules { gap: 6px; }
  .studio_capsules span { font-size: .66rem; padding: 5px 8px; }
  .app_tabs { width: 100%; gap: 5px; margin-bottom: 13px; padding: 5px; position: sticky; top: max(5px, env(safe-area-inset-top)); z-index: 5; }
  .app_tabs a { flex: 1; min-width: 0; min-height: 51px; padding: 8px 5px; gap: 6px; font-size: .78rem; }
  .app_tabs a svg { width: 16px; height: 16px; }
  .studio_workspace_head { margin-bottom: 9px; }
  .app_card { padding: 22px 16px; border-radius: 20px; }
  #subsync_app h1 { font-size: 1.44rem; }
  #streams-group-sub,#streams-group-ref { padding: 10px; }
  #subsync_app .input_file + label { min-height: 70px; font-size: .85rem; }
  #subsync_app dl { grid-template-columns: 1fr; gap: 7px; }
  #subsync_app dd { margin-bottom: 10px; }
  #subsync_app dl.options dt { text-align: left; }
  #subsync_app .buttons { display: grid; grid-template-columns: 1fr; }
  #subsync_app button { width: 100%; }
  .app_card:has(.audio_extractor_screen) { padding: 9px 6px; }
  .privacy_note { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .app_tabs a, #subsync_app button, #subsync_app .input_file + label { transition: none; }
}
