:root{color-scheme:dark;font-family:system-ui,sans-serif;background:#04100a;color:#f3f1e7}*{box-sizing:border-box}body{margin:0;min-height:100dvh;background:radial-gradient(ellipse at 15% 40%,#173b27 0,transparent 65%)}header{display:flex;align-items:center;gap:24px;padding:24px 4vw;font-size:12px;letter-spacing:.16em;border-bottom:1px solid #304437}header span:nth-child(2){margin-left:auto;color:#a3b3a7}button{font:inherit;color:#c4e99b;background:#173024;border:1px solid #557049;border-radius:24px;padding:12px 20px;cursor:pointer}main{padding:5vh 5vw}section{max-width:1800px;margin:auto}#pair{display:grid;grid-template-columns:1.3fr 1fr;gap:7vw;align-items:center;min-height:70vh}h1{font-family:Georgia,serif;font-size:clamp(32px,4.6vw,88px);font-weight:400;line-height:1.08;margin:20px 0;overflow-wrap:anywhere}h2{font-size:clamp(20px,2.4vw,44px);font-weight:400;color:#bce28d;margin:20px 0}p{line-height:1.6;color:#b2bdb4}.eyebrow{font-size:12px;letter-spacing:.18em;color:#bce28d}#code{font-family:monospace;font-size:clamp(26px,4vw,48px);letter-spacing:.12em;color:#d6edae}#qr{background:white;padding:24px;border-radius:24px;justify-self:center;max-width:100%;box-shadow:0 20px 80px #0008}#qr img,#qr canvas{width:min(28vw,320px)!important;height:auto!important;display:block}.muted{font-size:12px;color:#839688;max-width:65ch}#now{display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,1.2fr);gap:6vw;align-items:center}.cover-wrap{aspect-ratio:1;box-shadow:0 24px 100px #0008;border-radius:16px;overflow:hidden;background:#17251b}#cover{width:100%;height:100%;object-fit:contain}#no-cover{display:grid;place-items:center;height:100%;font-size:90px;color:#6a866f}.timeline{height:3px;background:#314334;margin-top:28px}#progress{height:100%;width:0;background:#b3df7d;transition:width 1s linear}.path{margin:25px 0;padding:18px 0;border-top:1px solid #304437;border-bottom:1px solid #304437}#path{display:flex;flex-wrap:wrap;gap:12px;color:#d0dbcd;font-size:14px}#path span+span:before{content:"→";margin-right:12px;color:#729064}#quality{margin-bottom:0;color:#a6ce82}#connection{font-size:13px;color:#dbca98}[hidden]{display:none!important}@media(max-width:700px){header{gap:10px;padding:18px;font-size:9px;letter-spacing:.06em}header button{padding:8px}main{padding:24px}#pair,#now{grid-template-columns:1fr;gap:28px}#qr img,#qr canvas{width:220px!important}#qr{grid-row:2}.cover-wrap{max-width:420px;width:100%;justify-self:center}h1{font-size:36px}.info{min-width:0}}

#progress{transition:none;background:linear-gradient(90deg,#afd7ff,#d9b6ff);border-radius:99px}.timeline{height:5px;border-radius:99px;overflow:hidden}#time{font-variant-numeric:tabular-nums;letter-spacing:.04em;font-size:clamp(15px,1.2vw,22px);color:#d7e0d9}
#path{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#path article{--tone:#edf1ee;padding:18px;border-radius:16px;border:1px solid #6b797438;background:#0e1c15;min-width:0}
#path article[data-tone=lossless]{--tone:#cdb9ff}#path article[data-tone=enhanced]{--tone:#a7eaff}#path article[data-tone=high-quality]{--tone:#a9dc7d}#path article[data-tone=lossy]{--tone:#f3d17d}
.path-heading{display:flex;align-items:center;gap:10px;color:var(--tone);font-size:12px}.path-heading svg{width:24px;height:24px;flex:0 0 24px}#path article strong{display:block;overflow-wrap:anywhere;font-size:clamp(16px,1.4vw,24px);line-height:1.45;margin:12px 0 8px;color:#f3f4ef;font-weight:550}#path article small{display:block;font-size:12px;line-height:1.6;color:#a6b4aa}#quality{font-size:13px;line-height:1.7}
@media(min-width:1200px){#now{grid-template-columns:minmax(320px,1fr) minmax(0,1.15fr);gap:5vw}.cover-wrap{max-width:720px}h1{font-size:clamp(42px,4vw,76px)}h2{font-size:clamp(24px,2.2vw,40px)}}
@media(max-width:480px){#path{grid-template-columns:1fr}#path article{padding:16px}.cover-wrap{border-radius:20px}}

.transport{margin:1rem 0 1.5rem;max-width:48rem}.transport-buttons{display:flex;gap:.65rem;flex-wrap:wrap}.transport button{min-height:48px;padding:.7rem 1rem;font:inherit}.transport input{display:block;width:100%;min-height:44px;accent-color:#a8d778}.transport label{display:block;margin-top:1rem}.transport p{font-size:.9rem;color:#b8c7bd}button:disabled{opacity:.45}button:focus-visible,input:focus-visible{outline:3px solid #99dff5;outline-offset:4px}@media(max-width:480px){.transport-buttons button{flex:1;padding:.65rem .4rem;font-size:.9rem}}

.transport .connected-output{font-size:clamp(16px,1.5vw,24px);color:#d8efc0;overflow-wrap:anywhere;margin:1rem 0 .5rem}

/* Listening view occupies one viewport; detailed evidence opens in a panel. */
body[data-paired=true]{height:100vh;height:100dvh;min-height:0;overflow:hidden}
body[data-paired=true] header{height:56px;padding:10px 3vw}
body[data-paired=true] main{height:calc(100% - 56px);padding:clamp(12px,2vh,28px) 3vw}
body[data-paired=true] #now{height:100%;min-height:0;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:4vw;align-items:center}
body[data-paired=true] .cover-wrap{width:min(100%,calc(100dvh - 110px));max-width:720px;max-height:100%;justify-self:center}
body[data-paired=true] .info{min-height:0;max-height:100%;display:flex;flex-direction:column;justify-content:center;gap:clamp(4px,1vh,10px)}
body[data-paired=true] .info p,body[data-paired=true] h1,body[data-paired=true] h2{margin:0;line-height:1.2}
body[data-paired=true] h1{font-size:clamp(25px,3.5vw,64px);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body[data-paired=true] h2{font-size:clamp(18px,2vw,32px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body[data-paired=true] #album{font-size:clamp(13px,1.3vw,21px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#99aa9e}
body[data-paired=true] .timeline{display:none}
body[data-paired=true] .transport{margin:0;max-width:none;width:100%}
body[data-paired=true] .transport-buttons{flex-wrap:nowrap;gap:8px}
body[data-paired=true] .transport-buttons button{flex:1;min-height:44px;padding:8px;font-size:clamp(13px,1.3vw,20px)}
body[data-paired=true] .transport label[for=seek]{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
body[data-paired=true] .transport input{min-height:32px;margin:0}
body[data-paired=true] .transport .connected-output{font-size:clamp(15px,1.5vw,24px);margin:4px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body[data-paired=true] .transport label[for=volume]{font-size:13px;margin:0;color:#bdcbbf}
body[data-paired=true] #volume-note{font-size:12px;margin:3px 0;color:#8e9f92}
body[data-paired=true] #control-status{font-size:12px;min-height:0}
body[data-paired=true] #connection{display:none}
body[data-paired=true] .path{margin:4px 0 0;padding:0;border:0}

@media(max-width:700px) and (orientation:portrait){
 body[data-paired=true] header{height:44px}
 body[data-paired=true] main{height:calc(100% - 44px);padding:10px 5vw}
 body[data-paired=true] #now{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;gap:12px}
 body[data-paired=true] .cover-wrap{width:auto;height:100%;max-width:100%;max-height:40dvh;aspect-ratio:1}
 body[data-paired=true] .info{width:100%;gap:5px}
 body[data-paired=true] h1{font-size:clamp(23px,5vw,34px)}
 body[data-paired=true] h2{font-size:18px}
 body[data-paired=true] #state{font-size:10px}
}
@media(max-height:620px) and (orientation:landscape){
 body[data-paired=true] header{height:40px}
 body[data-paired=true] main{height:calc(100% - 40px);padding:8px 3vw}
 body[data-paired=true] h1{font-size:clamp(22px,3vw,40px)}
 body[data-paired=true] .info{gap:3px}
 body[data-paired=true] #album,body[data-paired=true] #volume-note{display:none}
 body[data-paired=true] .transport-buttons button{min-height:36px;padding:5px}
}


/* Always-visible signal evidence; no expander, overlay or close target. */
body[data-paired=true] .path{width:100%;margin:8px 0 0;border-top:1px solid #304437;padding:8px 0 0}
body[data-paired=true] .path>.eyebrow{font-size:11px;letter-spacing:.12em;margin:0 0 6px}
body[data-paired=true] #path{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
body[data-paired=true] #path article{padding:10px 11px;border-radius:12px;background:#0d1c14}
body[data-paired=true] .path-heading{font-size:11px;gap:5px;line-height:1.2}
body[data-paired=true] .path-heading svg{width:19px;height:19px;flex:0 0 19px}
body[data-paired=true] #path article strong{font-size:clamp(13px,1.05vw,19px);line-height:1.35;margin:8px 0 0;font-weight:500}
body[data-paired=true] #path article small{display:none}
body[data-paired=true] #quality{font-size:11px;line-height:1.3;margin:7px 0 0;color:#a3b2a8}
@media(max-width:700px){body[data-paired=true] #path{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}body[data-paired=true] #path article{padding:7px 9px}body[data-paired=true] #path article strong{margin-top:4px;font-size:13px}}
@media(max-height:620px) and (orientation:landscape){body[data-paired=true] #path{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}body[data-paired=true] #path article{padding:7px}body[data-paired=true] .path-heading{font-size:10px}body[data-paired=true] .path-heading svg{display:none}body[data-paired=true] #path article strong{font-size:12px;margin-top:5px}}
/* Screen connection panel */
#connect-screen{display:grid;place-items:center;flex:0 0 36px;width:36px;height:34px;padding:5px;border-radius:10px;letter-spacing:0}#connect-screen svg{width:21px;height:21px}#screen-connect-dialog{position:fixed;inset:0;margin:auto;width:min(880px,94vw);max-width:94vw;max-height:90dvh;padding:24px;border:1px solid #668272;border-radius:22px;background:#091a12;color:#f0f4ed;overflow:auto;box-shadow:0 30px 100px #0009}#screen-connect-dialog::backdrop{background:#000b}#screen-connect-dialog[open]{display:block}.connect-head{display:flex;align-items:center;justify-content:space-between;gap:15px}.connect-head h2{font:500 clamp(22px,3vw,32px)/1.25 system-ui;margin:0;color:#f2f6ef}.connect-head button{flex-shrink:0;padding:8px 14px}.connect-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:22px 0}.connect-options button{border-radius:14px;padding:14px;text-align:left;min-width:0}.connect-options strong,.connect-options span{display:block;line-height:1.5}.connect-options span{font-size:12px;color:#b3c5b7;margin-top:5px}.connect-options [aria-pressed=true]{border-color:#b5e28b;background:#25412b}.connect-steps{border-top:1px solid #344c3e;padding-top:14px}.connect-steps h3{font-size:20px;margin:5px 0 12px}.connect-steps ol{padding-left:24px}.connect-steps li{line-height:1.65;margin:10px 0;color:#d4dfd5}.connect-hint{font-size:13px;line-height:1.6;color:#adbfaf}.connect-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}#screen-connect-dialog button:focus-visible{outline:3px solid #bdde9d;outline-offset:3px}@media(max-width:600px){#screen-connect-dialog{padding:18px;border-radius:18px}.connect-options{grid-template-columns:1fr;gap:7px}.connect-options button{padding:10px 14px}.connect-options span{margin:0}.connect-head button{font-size:13px}header>span:nth-child(2){display:none}}

.path-info{border:0;background:transparent;color:inherit;min-width:28px;min-height:28px;padding:2px;cursor:help;font-size:18px}.path-info:focus-visible{outline:2px solid currentColor;outline-offset:2px}

.path small[hidden]{display:none!important}.path-heading{align-items:center}.path-info{margin-left:auto;flex-shrink:0}.path .hardware-evidence{font-size:11px;color:#d6e0da}

#leave-display{white-space:nowrap;min-height:40px}header{position:sticky;top:0;z-index:20;background:#08180f}body[data-pi=true] header{min-height:60px;height:auto;gap:12px}body[data-pi=true] #leave-display{font-size:16px;min-height:48px;padding:10px 18px}body[data-pi=true] #pair{padding-block:20px}body[data-pi=true] #pair h1{font-size:40px;line-height:1.05;margin-block:10px}body[data-pi=true] #pair p{font-size:14px;margin-block:10px}body[data-pi=true] #code{font-size:28px!important;letter-spacing:.16em}body[data-pi=true] #qr{max-width:280px}body[data-pi=true] #qr img,body[data-pi=true] #qr canvas{max-width:100%;height:auto}
