:root{color-scheme:dark;--bg:#111617;--surface:#1a2021;--surface-raised:#22292a;--border:#303738;--text:#f1f5f1;--muted:#a0acaa;--subtle:#73837e;--green:#bcf5ce;--salmon:#ffc3a8;--shadow:0 24px 90px #0005;--radius:22px}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{font-size:16px}
body{margin:0;background:var(--bg);color:var(--text);font-family:"Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased}
button,input,a,summary{-webkit-tap-highlight-color:transparent}
button,input{font:inherit}
button,a,summary{touch-action:manipulation}
button,a{color:inherit}
button{cursor:pointer;border:0}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible{outline:3px solid var(--green);outline-offset:5px}
button:disabled{opacity:.5;cursor:default}
button,.service-title{transition:background-color .15s,color .15s,border-color .15s}
.icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.svg-library{position:absolute;width:0;height:0;overflow:hidden}
.topbar{height:106px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;padding:0 3.5%;max-width:1920px;margin:auto}
.brand{display:flex;align-items:center;gap:22px;text-decoration:none}
.brand-mark{font-size:3.1rem;font-weight:650;letter-spacing:-.32rem;line-height:1;padding-right:6px}
.brand-mark span{color:var(--green)}
.brand-divider{width:1px;height:32px;background:var(--border)}
.brand-name{font-size:.9rem;letter-spacing:.16em;font-weight:650}
.brand-name>span{display:block;font-size:.65rem;letter-spacing:.17em;color:var(--muted);margin-top:7px}
.toolbar{display:flex;gap:12px}
.tool-button{display:flex;gap:10px;align-items:center;justify-content:center;min-height:52px;padding:12px 18px;border:1px solid var(--border);border-radius:12px;background:transparent;font-size:.88rem;font-weight:550}
.tool-button:hover,.edit-button:hover,.text-button:hover{background:var(--surface-raised)}
main{width:93%;max-width:1786px;margin:0 auto}
.welcome{display:flex;align-items:center;justify-content:space-between;gap:32px;min-height:244px;padding:32px 0 26px}
.eyebrow{display:flex;align-items:center;gap:10px;font-size:.76rem;font-weight:600;letter-spacing:.15em;color:var(--muted);margin:0 0 20px}
.small-line{width:24px;height:2px;background:var(--green)}
h1{font-size:clamp(2rem,3.15vw,3.3rem);font-weight:450;letter-spacing:-.04em;margin:0 0 10px;line-height:1.15}
.welcome-caption{color:var(--muted);margin:0;font-size:1.08rem;letter-spacing:.005em}
.clock-block{text-align:right;flex-shrink:0}
.clock{display:block;font-size:clamp(5rem,8.8vw,9.4rem);font-weight:300;letter-spacing:-.07em;line-height:.98;font-variant-numeric:tabular-nums}
.date{font-size:.95rem;margin:14px 3px 0;color:var(--muted)}
.section-heading{display:flex;justify-content:space-between;align-items:center;margin:6px 0 20px;gap:18px}
.section-heading h2{margin:0;font-size:1.35rem;letter-spacing:-.025em;font-weight:550}
.heading-dot{color:var(--green)}
.section-caption{font-size:.88rem;color:var(--muted)}
.device-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:0 0 28px}
.device-card{display:flex;align-items:center;gap:14px;padding:18px;border:1px solid var(--border);border-radius:16px;background:var(--surface);min-width:0}
.device-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:38px;height:44px;color:var(--muted)}
.device-icon .icon{width:28px;height:28px}
.device-copy{flex:1;min-width:0}
.device-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.device-heading h2{font-size:1rem;font-weight:600;margin:0}
.device-status{display:inline-flex;align-items:center;gap:7px;font-size:.875rem;color:var(--muted);line-height:1.4}
.device-status:before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor;flex-shrink:0}
.device-copy p{font-size:.875rem;line-height:1.5;color:var(--muted);margin:7px 0 0}
.device-card[data-state="available"] .device-status{color:#8de7ad}
.device-card[data-state="unavailable"] .device-status{color:#ffa796}
.device-card[data-state="pending"] .device-status{color:#e9d291}
.diagnostic-button{min-height:48px;max-width:132px;border:1px solid var(--border);border-radius:10px;padding:10px 13px;background:transparent;font-size:.875rem;line-height:1.4;flex-shrink:0}
.diagnostic-button:hover{background:var(--surface-raised)}
.diagnostic-button:disabled{opacity:.55}
[data-theme="light"] .device-card[data-state="available"] .device-status{color:#206a3c}
[data-theme="light"] .device-card[data-state="unavailable"] .device-status{color:#a1371d}
[data-theme="light"] .device-card[data-state="pending"] .device-status{color:#806014}
@media(max-width:1050px){.device-grid{grid-template-columns:1fr}.diagnostic-button{max-width:none}}
@media(max-width:620px){.device-card{padding:15px 12px;gap:9px;flex-wrap:wrap}.device-icon{width:28px}.device-heading{gap:8px}.device-copy{flex-basis:calc(100% - 40px)}.diagnostic-button{margin-left:37px;min-height:44px}.device-grid{gap:12px;margin-bottom:24px}}
.media-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.media-card{min-width:0;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;padding-bottom:12px;--accent:var(--green);--accent-text:#15241a}
.youtube-card{--accent:var(--salmon);--accent-text:#392117}
.card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:96px;padding:18px 24px}
.service-title{display:flex;align-items:center;gap:14px;flex:1;min-width:0;min-height:52px;text-decoration:none;border-radius:8px}
.service-title>div{flex:1;min-width:0}
.service-title:hover h3{color:var(--accent)}
.service-title h3{font-size:1.35rem;letter-spacing:-.02em;margin:0 0 4px;font-weight:600}
.service-title p{font-size:.88rem;margin:0;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.service-logo{display:flex;width:44px;height:44px;align-items:center;justify-content:center;flex-shrink:0;color:var(--accent)}
.service-logo svg{width:36px;height:36px}
.edit-button{border:1px solid var(--border);border-radius:10px;background:transparent;display:flex;align-items:center;justify-content:center;gap:9px;min-height:50px;padding:10px 14px;font-size:.85rem;flex-shrink:0}
.edit-button .icon{height:18px;width:18px}
.player-area{position:relative;margin:0 12px;min-height:352px;background:#111b17;border-radius:14px;overflow:hidden}
.youtube-player{background:#211d1c}
.player-area iframe{display:block;border:0;min-width:280px;height:352px;width:100%;background:#121212;position:relative;z-index:1}
.youtube-player iframe{height:352px;min-height:200px}
@media(max-width:920px){.youtube-player.is-loaded{min-height:0}}
.player-placeholder{position:relative;isolation:isolate;min-height:352px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px 18px 18px;color:#f1f5f1;background:radial-gradient(ellipse at 50% 0%,#294b3455,transparent 72%)}
.youtube-player .player-placeholder{background:radial-gradient(ellipse at 50% 0%,#865b4540,transparent 72%)}
.player-placeholder h4{font-size:1.7rem;letter-spacing:-.035em;font-weight:500;margin:18px 0 8px;z-index:1}
.player-placeholder p{font-size:.95rem;line-height:1.6;color:#aebbb4;margin:0 0 20px;z-index:1}
.youtube-player .player-placeholder p{color:#c0b2ab}
.accent-button{display:flex;align-items:center;justify-content:center;gap:10px;min-height:54px;background:var(--accent);color:var(--accent-text);border-radius:11px;padding:12px 24px;font-size:.95rem;font-weight:650;z-index:1}
.accent-button:hover{filter:brightness(1.08)}
.sample-button{min-height:44px;margin-top:7px;padding:8px;background:transparent;color:#aebbb4;text-decoration:underline;text-underline-offset:4px;font-size:.8rem}
.youtube-card .sample-button{color:#c0b2ab}
.sound-art{height:61px;display:flex;align-items:center;gap:7px}
.sound-art i{width:6px;height:20px;border-radius:4px;background:var(--green);opacity:.65}
.sound-art i:nth-child(2n){height:34px;opacity:.8}
.sound-art i:nth-child(3n){height:48px;opacity:1}
.sound-art i:nth-child(4n){height:58px}
.sound-art i:nth-child(6){height:38px}
.video-art{position:relative;height:61px;width:150px;display:flex;justify-content:center;align-items:center}
.video-ring{position:absolute;width:100px;height:100px;border:1px solid #ffc3a830;border-radius:50%}
.video-play{height:56px;width:76px;border-radius:17px;background:#ffc3a818;display:flex;align-items:center;justify-content:center;border:1px solid #ffc3a85c;z-index:1;color:var(--salmon);box-shadow:0 0 50px #ffc3a80a}
.video-play svg{width:24px;height:24px}
.video-horizon{position:absolute;width:140px;height:1px;background:linear-gradient(90deg,transparent,#ffc3a85c,transparent)}
.player-tools{display:flex;justify-content:space-between;padding:4px 15px 0;min-height:48px}
.text-button{min-height:44px;padding:8px 12px;color:var(--muted);background:transparent;border-radius:8px;font-size:.86rem;text-decoration:underline;text-underline-offset:4px}
.help{margin-top:24px;border-bottom:1px solid var(--border)}
.help summary{list-style:none;display:flex;align-items:center;gap:10px;min-height:58px;cursor:pointer;font-size:.9rem;color:var(--muted)}
.help summary::-webkit-details-marker{display:none}
.help-icon{display:inline-flex;justify-content:center;align-items:center;border:1px solid var(--subtle);width:20px;height:20px;border-radius:50%;font-size:.75rem}
.summary-chevron{width:7px;height:7px;border-bottom:1.5px solid currentColor;border-right:1.5px solid currentColor;transform:rotate(45deg);margin-left:5px;margin-top:-4px}
.help[open] .summary-chevron{transform:rotate(225deg);margin-top:4px}
.help-content{display:grid;grid-template-columns:1fr 1fr 1fr;gap:32px;padding:12px 0 28px}
.help-content h3{font-size:1rem;margin:0 0 10px;font-weight:550}
.help-content p{font-size:.92rem;line-height:1.7;color:var(--muted);margin:0}
.page-footer{display:flex;justify-content:space-between;gap:16px;padding:24px 0 28px;font-size:.72rem;letter-spacing:.08em;color:var(--subtle)}
.page-footer>span:last-child{letter-spacing:0;font-size:.8rem}
.footer-separator{padding:0 8px;color:var(--border)}
.notice{font-size:1rem;line-height:1.6;border:1px solid #bba66b66;background:#bba66b10;border-radius:12px;padding:14px 20px;color:var(--text);margin:0 0 20px}
.modal-backdrop{position:fixed;inset:0;z-index:10;background:#060a0bd9;display:flex;align-items:center;justify-content:center;padding:24px;overflow-y:auto}
.modal{position:relative;width:100%;max-width:620px;background:var(--surface);border:1px solid var(--border);border-radius:24px;padding:38px;box-shadow:var(--shadow);max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);overflow-y:auto}
.modal .eyebrow{color:var(--green);margin-bottom:12px}
.modal h2{font-size:2rem;letter-spacing:-.04em;font-weight:500;margin:0 44px 14px 0}
.modal>p:not(.eyebrow){font-size:1rem;line-height:1.6;color:var(--muted);margin:0 0 26px}
.close-button{position:absolute;right:16px;top:16px;background:transparent;width:48px;height:48px;border-radius:12px;display:flex;justify-content:center;align-items:center}
.close-button:hover{background:var(--surface-raised)}
label{display:block;margin:20px 0 10px;font-size:.95rem;font-weight:550}
input{display:block;width:100%;background:var(--bg);border:1px solid var(--border);border-radius:10px;color:var(--text);min-height:58px;padding:14px 16px;font-size:1rem;line-height:1.4}
input::placeholder{color:var(--subtle)}
input[aria-invalid="true"]{border-color:#f3a58b}
.form-error{color:#ffc3a8;font-size:.95rem;line-height:1.5;margin:10px 0 0}
.form-note{color:var(--muted);font-size:.85rem;line-height:1.6;margin:18px 0 24px}
.modal-actions{display:flex;gap:12px}
.primary-button,.secondary-button{min-height:56px;padding:14px 24px;border-radius:11px;font-weight:600;font-size:1rem}
.primary-button{background:var(--green);color:#15241a;flex:1}
.primary-button:hover{background:#d0ffdf}
.secondary-button{background:transparent;border:1px solid var(--border)}
.secondary-button:hover{background:var(--surface-raised)}
.remove-button{display:block;margin:20px auto 0}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body.modal-open{overflow:hidden}
[data-theme="light"]{color-scheme:light;--bg:#eef2ef;--surface:#fff;--surface-raised:#e6eee8;--border:#d5ddd6;--text:#1e2b22;--muted:#57655b;--subtle:#66756b;--green:#206a3c;--salmon:#a34824;--shadow:0 24px 90px #22332625}
[data-theme="light"] .media-card{--accent:#bcf5ce;--accent-text:#15241a}
[data-theme="light"] .youtube-card{--accent:#ffc3a8;--accent-text:#392117}
[data-theme="light"] .spotify-card .service-logo{color:#238344}
[data-theme="light"] .youtube-card .service-logo{color:#ca4e29}
[data-theme="light"] .spotify-card .service-title:hover h3{color:#238344}
[data-theme="light"] .youtube-card .service-title:hover h3{color:#ca4e29}
[data-theme="light"] .primary-button{background:#206a3c;color:#fff}
[data-theme="light"] .form-error{color:#a1371d}
[data-theme="light"] .sound-art i{background:#bcf5ce}
[data-theme="light"] .video-play{color:#ffc3a8}
@media(min-width:921px) and (max-height:950px){.topbar{height:80px}.welcome{min-height:176px;padding:24px 0}.clock{font-size:6.8rem}.eyebrow{margin-bottom:14px}.section-heading{margin-bottom:16px}.card-heading{min-height:80px;padding-top:12px;padding-bottom:12px}}
@media(max-width:1150px){.topbar{height:88px}.card-heading{padding:16px;min-height:90px}.service-title{gap:9px}.service-logo{width:35px}.service-logo svg{width:30px}.edit-button{padding:10px;gap:6px}.media-grid{gap:18px}.welcome{min-height:220px}.section-caption{font-size:.82rem}}
@media(max-width:920px){.media-grid{grid-template-columns:1fr}.welcome{min-height:210px}.welcome-copy .eyebrow{font-size:.65rem}.clock{font-size:6rem}.section-caption{display:none}.help-content{grid-template-columns:1fr;gap:22px}.player-area{margin:0 12px}.youtube-player iframe{height:auto;aspect-ratio:16/9;min-height:280px}.tool-button{font-size:.8rem;padding:10px 14px}.card-heading{padding:18px 24px}}
@media(max-width:620px){.topbar{height:82px;padding:0 5%}.brand{gap:14px}.brand-mark{font-size:2.8rem}.brand-name{font-size:.75rem}.brand-name>span{font-size:.55rem}.toolbar{gap:6px}.tool-button{width:48px;min-height:48px;padding:10px}.tool-button span{display:none}main{width:90%}.welcome{padding:30px 0 26px;gap:28px;align-items:flex-start;flex-direction:column}.welcome-copy .eyebrow{font-size:.65rem;margin-bottom:14px}h1{font-size:2.15rem}.welcome-caption{font-size:1rem}.clock-block{text-align:left}.clock{font-size:6.6rem}.date{font-size:.9rem;margin-top:10px}.section-heading{margin:2px 0 16px}.card-heading{padding:16px 13px;gap:8px}.service-title h3{font-size:1.2rem}.service-title p{font-size:.8rem}.service-logo{width:30px}.edit-button{width:48px;height:48px}.edit-button span{display:none}.edit-button .icon{width:20px;height:20px}.player-area{margin:0 8px}.player-area iframe{min-width:0}.youtube-player iframe{min-height:220px}.page-footer{flex-direction:column;gap:10px}.modal-backdrop{padding:12px}.modal{padding:28px 20px;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);border-radius:18px}.modal h2{font-size:1.75rem}.modal-actions{flex-wrap:wrap}.secondary-button{padding:14px 18px}.modal>p:not(.eyebrow){font-size:.95rem}.player-placeholder h4{font-size:1.6rem}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
