:root {
  color-scheme: dark;
  font: 15px/1.45 Inter, "Segoe UI", sans-serif;
  background: #f7f7f6;
  color: #202023;
  --muted: #65656d;
  --line: #3c3b41;
  --accent: #222224;
}
* { box-sizing: border-box; }
body { max-width: 560px; margin: auto; padding: 19px clamp(14px, 5vw, 26px) 32px; }
h1, h2, h3, p { margin: 0; }
button, input, summary { font: inherit; }
button, summary { cursor: pointer; }
button { border: 0; color: inherit; background: transparent; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid #6d6d75; outline-offset: 3px; }
header, .brand, .section-title, .track, .track-actions { display: flex; align-items: center; }
header { position: relative; justify-content: space-between; gap: 12px; margin-bottom: 23px; }
.brand { gap: 9px; font-weight: 650; letter-spacing: -.035em; }
.logo { display: flex; align-items: center; justify-content: center; gap: 2px; width: 29px; height: 29px; border-radius: 9px; background: var(--accent); }
.logo i { width: 3px; height: 8px; border-radius: 3px; background: #ffffff; }
.logo i:nth-child(2) { height: 16px; }
.logo i:nth-child(3) { height: 12px; }
summary { display: flex; align-items: center; gap: 9px; padding: 6px 11px; border: 0; border-radius: 20px; font-size: 12px; }
summary::after { content: ''; width: 5px; height: 5px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: translateY(-1px) rotate(45deg); }
details[open] summary::after { transform: translateY(1px) rotate(225deg); }
.settings { position: absolute; z-index: 2; right: 0; top: calc(100% + 7px); width: min(100%, 300px); padding: 16px; background: #ffffff; border: 0; border-radius: 14px; box-shadow: 0 12px 35px #0008; }
.settings label { display: grid; gap: 4px; font-size: 13px; margin-bottom: 12px; }
.settings input { min-width: 0; padding: 9px; color: inherit; border: 0; background: #f1f1f3; border-radius: 7px; }
#connect { background: var(--accent); color: #ffffff; border-radius: 8px; padding: 7px 14px; font-weight: 600; }
#transfer { color: var(--muted); font-size: 12px; margin-top: 9px; overflow-wrap: anywhere; }
.deck { border-radius: 20px; padding: clamp(17px, 5vw, 26px); color: #202023; background: linear-gradient(115deg, #ffffff, #fdfdfd); }
h1 { font-size: clamp(27px, 7vw, 36px); line-height: 1.1; letter-spacing: -.05em; font-weight: 650; }
fieldset { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 22px 0 16px; padding: 0; border: 0; min-width: 0; }
fieldset label { position: relative; cursor: pointer; }
fieldset input { position: absolute; opacity: 0; width: 1px; height: 1px; }
fieldset span { display: grid; justify-items: center; align-content: center; gap: 7px; height: 66px; border-radius: 11px; border: 0; font-size: 13px; font-weight: 550; }
fieldset input:checked + span { background: #242426;  color: #ffffff;  }
fieldset input:focus-visible + span { outline: 2px solid #55555c; outline-offset: 2px; }
fieldset:not(:disabled) label:hover span { filter: brightness(.94); }
fieldset:disabled label { cursor: default; }
.icon { position: relative; display: inline-block; width: 21px; height: 17px; }
.tab, .screen { border: 1.6px solid currentColor; border-radius: 3px; }
.tab::after { content: ''; position: absolute; top: 4px; left: 0; right: 0; border-top: 1.5px solid; }
.screen { height: 14px; margin-bottom: 3px; }
.screen::after { content: ''; position: absolute; bottom: -5px; left: 4px; width: 10px; border-top: 1.6px solid; }
.sound { background: linear-gradient(currentColor,currentColor) center / 2px 17px no-repeat; }
.sound::before, .sound::after { content: ''; position: absolute; top: 4px; height: 9px; width: 2px; border-radius: 2px; background: currentColor; }
.sound::before { left: 4px; } .sound::after { right: 4px; }
.actions button { display: flex; justify-content: center; align-items: center; gap: 9px; width: 100%; min-height: 43px; border-radius: 11px; color: #fff; background: #202022; font-weight: 600; }
.actions button::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #ffffff; }
#stop::before { border-radius: 2px; }
#stop:disabled, .actions:has(#stop:enabled) #start { display: none; }
#start:disabled { opacity: .65; }
#status:not(:empty) { margin-top: 9px; font-size: 13px; overflow-wrap: anywhere; }
.section-title { justify-content: space-between; margin: 25px 0 10px; }
h2 { font-size: 21px; letter-spacing: -.04em; }
#refresh { font-size: 22px; color: var(--muted); width: 34px; height: 34px; border-radius: 50%; }
article, .empty { padding: 15px 16px; border-radius: 14px; border: 0; background: #ffffff; margin-bottom: 9px; }
h3 { font-size: 16px; letter-spacing: -.025em; }
small, .empty, .feedback { color: var(--muted); font-size: 13px; }
.track { justify-content: space-between; gap: 8px;  margin-top: 10px; padding-top: 9px; }
.track strong { font-size: 14px; font-weight: 550; }
.track-actions { flex-wrap: wrap; gap: 4px; }
.track-actions button { color: var(--accent); font-size: 13px; padding: 6px 8px; border-radius: 7px; }
.track-actions button:first-child { background: #e9e9ec; }
.track-actions button:hover, #refresh:hover { background: #dcdce0; }
audio, video { display: block; width: 100%; margin-top: 8px; border-radius: 9px; }
audio { height: 38px; }
.feedback:empty { display: none; }
@media (max-width: 340px) { .track { flex-wrap: wrap; } fieldset span { font-size: 12px; } }
fieldset span { background: #f0f0f2; }
summary { background: #e9e9eb; }
#sound-source { margin-top: 9px; font-size: 13px; overflow-wrap: anywhere; }
#switch, #logout { padding: 7px; }
#credentials[hidden], [hidden] { display:none; }
.transcript { white-space:pre-wrap; max-height:260px; overflow:auto; font-size:14px; }
.transcript-button { background:#e9e9ec; color:var(--accent); border-radius:8px; padding:7px 10px; margin-top:12px; }
.mail-links,.remove-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}a{color:#222224;font-size:13px}.remove-actions button{font-size:12px;color:#695a5b;padding:6px 0}.settings a{display:inline-block;margin:6px 0}

#upgrade:not([hidden]){display:block;padding:8px 12px;margin:0 0 10px;background:#252527;color:white;border-radius:8px}
fieldset .icon{width:21px;height:21px;border:0;background:var(--source-icon) center/contain no-repeat;margin:0}
fieldset .icon::before,fieldset .icon::after{display:none}
.tab{--source-icon:url('../app-window.svg')}.screen{--source-icon:url('../monitor.svg')}.sound{--source-icon:url('../audio-lines.svg')}
fieldset input:checked+span .icon{filter:invert(1)}
header a,.section-title a,.mail-links a{color:#45454c}
.settings{box-shadow:0 12px 40px #0002}.settings input{color:#17171a}
.transcript-button{background:#eaeaec;color:#242426}.track-actions button{color:#34343b}

#second-source:not([hidden]){display:flex;gap:.5rem;margin-top:.75rem}
