:root{font-family:Microsoft YaHei,Noto Sans CJK SC,sans-serif;color:#3e443b;background:#f1ede4;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 85% 10%,#f8e8d5 0,transparent 50%),#f1ede4;color:#3e443b}.tv-shell{min-height:100vh;padding:2.2vh 4vw 1.5vh;display:flex;flex-direction:column;gap:2vh;max-width:2400px;margin:auto}.tv-top{display:flex;justify-content:space-between;align-items:center;font-size:1.5vh;color:#656d5c}.tv-brand{display:flex;align-items:center;gap:.7vw;letter-spacing:.1em}.tv-brand img{width:2.8vh;height:2.8vh;border-radius:.6vh}.tv-brand>span{border-left:1px solid #c7c5b6;padding-left:.8vw;letter-spacing:.15em;font-size:1.1vh}.tv-fullscreen{background:none;border:0;color:#707464;font-size:1.1vh;padding:.5vh 1vw}.tv-fullscreen:focus{outline:3px solid #a66a42}.tv-upper{display:flex;flex-direction:column;align-items:center;gap:1.9vh;padding-top:.4vh}.square-clock{width:36vh;max-width:76vw;aspect-ratio:1;background:#fffcf4;border:1px solid #dbd2c0;border-radius:3vh;box-shadow:0 1.5vh 4vh #78694916,inset 0 0 0 .7vh #fff9ee;padding:.8vh}.square-clock svg{display:block;width:100%;height:100%}.clock-number{text-anchor:middle;fill:#505645;font-size:26px;font-weight:500}.hour-mark{stroke:#ac9c7d;stroke-width:3}.minute-mark{stroke:#d2c8b3;stroke-width:1.5}.clock-hour{stroke:#484e40;stroke-width:10;stroke-linecap:round}.clock-minute{stroke:#69715c;stroke-width:6;stroke-linecap:round}.clock-second{stroke:#b07852;stroke-width:2}.clock-word{text-anchor:middle;fill:#a3957b;font-size:10px;letter-spacing:2px}.digital-time{text-anchor:middle;fill:#4c5344;font:500 37px Arial,sans-serif;font-variant-numeric:tabular-nums;letter-spacing:2px}.clock-zone{text-anchor:middle;fill:#a2947d;font-size:10px;letter-spacing:2px}.tv-home{text-align:center}.tv-greeting{font-size:1.3vh;color:#8c7c63;letter-spacing:.16em;margin-bottom:.7vh}.tv-home h1{font-family:"Noto Serif CJK SC",Songti SC,SimSun,serif;font-size:3.4vh;font-weight:500;letter-spacing:.13em;margin:0 0 1.1vh}.tv-date{font-size:1.85vh;letter-spacing:.03em}.tv-date b{font-weight:500;margin-left:1vw}.tv-date-extra{display:flex;justify-content:center;gap:2vw;font-size:1.2vh;color:#787c6b;margin-top:.6vh}.tv-card{background:#fffdf7;border:1px solid #ded8ca;border-radius:1.5vh;padding:1.7vh 2vw;box-shadow:0 .4vh 2vh #736a5510}.tv-weather{display:grid;grid-template-columns:1.2fr 1fr;align-items:center;gap:2vw;min-height:13vh}.section-label{font-size:1.2vh;letter-spacing:.1em;color:#757b67}.weather-big{display:flex;align-items:center;gap:1vw}.weather-symbol{font-size:4.4vh;color:#c99b54}.weather-big strong{font-family:Arial,sans-serif;font-size:5vh;font-weight:500;line-height:1.25;font-variant-numeric:tabular-nums}.weather-big small{font-size:3vh}.weather-big>div{display:flex;flex-direction:column;gap:.5vh}.weather-big b{font-size:1.8vh;font-weight:500}.weather-big>div>span,.weather-note{font-size:1.05vh;color:#7e8273}.weather-note{margin-top:.5vh}.weather-forecast{display:grid;grid-template-columns:repeat(3,1fr);border-left:1px solid #e3dfd4;padding-left:1.5vw;gap:1vw;text-align:center}.weather-forecast>div{display:flex;flex-direction:column;gap:1.1vh;font-size:1.15vh}.weather-forecast b{font-size:1.3vh;font-weight:500}.tv-bottom{display:grid;grid-template-columns:1fr;gap:1.7vh}.tv-section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.2vh;gap:1vw}.tv-section-heading h2{font-size:1.6vh;font-weight:600;margin:0;letter-spacing:.07em}.tv-section-heading>span{color:#93927f;font-size:1.05vh}.tv-device-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1vh 2vw}.tv-device{display:flex;align-items:center;gap:1.3vw;background:#f6f4ec;padding:1vh 1vw;border-radius:.8vh;min-height:5.8vh}.device-emblem{background:#e9ebdf;color:#748064;border-radius:.8vh;display:grid;place-items:center;width:3.6vh;height:3.6vh;font-size:2.1vh;flex-shrink:0}.tv-device h3{font-size:1.4vh;font-weight:500;margin:0 0 .3vh}.tv-device p{font-size:1vh;color:#878775;margin:0 0 .4vh}.tv-status{font-size:1.05vh;color:#868573}.tv-status i,.tv-footer i{display:inline-block;width:.38vh;height:.38vh;border-radius:50%;margin-right:.4vw;background:#a9a994}.tv-status.online{color:#607554}.tv-status.online i{background:#799865}.tv-status.offline{color:#a57051}.tv-status.offline i{background:#b68d65}.tv-page-count{font-size:.85vh;color:#8d8d7a;text-align:right;margin-top:.7vh}.agenda-empty{padding:.3vh 0}.agenda-line{font-size:1.6vh;font-family:serif;color:#85826d;letter-spacing:.08em}.agenda-empty p{font-size:1.1vh;color:#97917d;margin:.5vh 0}.agenda-source{font-size:.8vh;color:#9d9886;margin-top:.7vh}.tv-event{display:flex;gap:1.3vw;border-top:1px solid #eee9dd;padding:.7vh 0;align-items:center}.tv-event time{font-size:1.2vh;color:#a27c52;white-space:nowrap}.tv-event h3{font-size:1.3vh;line-height:1.5;margin:0;font-weight:500}.tv-footer{display:flex;justify-content:space-between;align-items:center;gap:1vw;flex-wrap:wrap;color:#8e8d7b;font-size:.8vh;margin-top:auto}.tv-footer a{color:inherit;text-decoration:none}.tv-footer .warning{color:#a96d45}.sync-error{max-width:40%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.tv-empty{font-size:1.2vh;padding:1vh;color:#8c8b78;grid-column:1/-1}@media(min-aspect-ratio:1/1){.tv-shell{height:100vh;padding:3vh 4vw;gap:2.5vh}.tv-top{font-size:2vh}.tv-brand img{width:4vh;height:4vh}.tv-brand>span,.tv-fullscreen{font-size:1.5vh}.tv-upper{flex-direction:row;justify-content:center;gap:6vw}.square-clock{width:40vh;border-radius:3vh}.tv-home{text-align:left}.tv-home h1{font-size:4.8vh}.tv-greeting{font-size:1.9vh}.tv-date{font-size:2.7vh}.tv-date-extra{font-size:1.8vh;justify-content:flex-start}.tv-weather{min-height:15vh}.tv-bottom{grid-template-columns:1.4fr 1fr;flex:1}.tv-section-heading h2{font-size:2.2vh}.tv-section-heading>span,.section-label{font-size:1.5vh}.tv-device{min-height:7vh}.tv-device h3{font-size:1.8vh}.tv-device p,.tv-status{font-size:1.3vh}.weather-big>div>span,.weather-note,.weather-forecast>div{font-size:1.5vh}.weather-forecast b{font-size:1.9vh}.weather-big b{font-size:2.4vh}.agenda-line{font-size:2.1vh}.agenda-empty p,.tv-event h3{font-size:1.6vh}.agenda-source,.tv-footer{font-size:1.1vh}}@media(max-width:600px){.tv-weather{grid-template-columns:1fr}.weather-forecast{border-left:0;border-top:1px solid #e3dfd4;padding:1vh 0 0}.tv-shell{min-height:100vh;height:auto}.tv-device-grid{grid-template-columns:1fr}.tv-fullscreen{font-size:14px}.tv-home h1{font-size:28px}.tv-device h3{font-size:16px}.tv-status,.tv-device p{font-size:12px}.tv-section-heading h2{font-size:20px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}@media(max-aspect-ratio:1/1)and (min-width:601px){.tv-shell{gap:1.4vh;padding-top:1.8vh;padding-bottom:1.2vh}.square-clock{width:31vh}.tv-upper{gap:1.3vh}.tv-home h1{margin-bottom:.7vh}.tv-weather{min-height:11.8vh}.tv-bottom{gap:1.2vh}.tv-card{padding:1.4vh 2vw}.tv-device{min-height:5.1vh;padding:.7vh 1vw}.tv-section-heading{margin-bottom:.9vh}.tv-greeting{margin-bottom:.5vh}.tv-agenda{padding-top:1.2vh;padding-bottom:1.2vh}}.tv-family-presence{display:flex;align-items:center;justify-content:space-between;gap:1vw;padding:1vh 2vw}.tv-family-presence h2{font-size:1.5vh;margin:0 0 .4vh}.tv-family-presence p{font-size:1.05vh;margin:0;color:#8b8b78}.tv-family-presence>span{font-size:1vh;color:#8b8b78;border:1px solid #ddd8c8;padding:.4vh .8vw;border-radius:.6vh}@media(max-aspect-ratio:1/1)and (min-width:601px){.square-clock{width:23vh}.tv-shell{gap:1vh;padding-top:1.2vh}.tv-weather{min-height:9vh}.tv-home h1{font-size:3.1vh}.tv-card{padding:1vh 2vw}.tv-agenda{padding:.8vh 2vw}.tv-family-presence{padding:.6vh 2vw}.agenda-source{display:none}.tv-device{padding:.6vh 1vw;min-height:4.8vh}.tv-date-extra{font-size:1.15vh}}@media(min-aspect-ratio:1/1){.square-clock{width:30vh}.tv-shell{gap:1.7vh}.tv-upper{gap:5vw}.tv-weather{min-height:12vh}.tv-family-presence{padding:.8vh 2vw}}[data-theme=night] body{background:#141c18;color:#b7bead}[data-theme=night] .tv-shell{background:radial-gradient(ellipse at 85% 5%,#252b2044,transparent 60%),#141c18}[data-theme=night] .square-clock{background:#1c251f;border-color:#354034;box-shadow:0 1vh 4vh #0003,inset 0 0 0 .6vh #202a22}[data-theme=night] .clock-number{fill:#9ba58d}[data-theme=night] .hour-mark{stroke:#788169}[data-theme=night] .minute-mark{stroke:#434e3e}[data-theme=night] .clock-hour{stroke:#b2bda1}[data-theme=night] .clock-minute{stroke:#899a78}[data-theme=night] .digital-time{fill:#a9b497}[data-theme=night] .clock-second{stroke:#9b7653}[data-theme=night] .tv-card{background:#1d2821;border-color:#303e32;box-shadow:none}[data-theme=night] .tv-device{background:#253128}[data-theme=night] .device-emblem{background:#334132;color:#9aa98b}[data-theme=night] .tv-home h1{color:#b3bca4}[data-theme=night] .tv-status.online{color:#94a682}[data-theme=night] .weather-forecast{border-color:#3b4938}[data-theme=night] .weather-symbol{opacity:.55}[data-theme=night] .tv-fullscreen,[data-theme=night] .tv-top{color:#929d85}[data-theme=night] .tv-family-presence>span{border-color:#41513d}[data-theme=night] .tv-brand img{opacity:.65}@media(max-aspect-ratio:1/1)and (min-width:601px){.tv-shell{height:100vh;min-height:100vh;padding:1vh 3vw .6vh;gap:.7vh}.tv-upper{gap:.5vh;padding:0}.square-clock{width:min(94vw,56vh);max-width:100%;border-radius:3.4vh;padding:.7vh}.tv-home h1{font-size:2.4vh;margin:0 0 .35vh}.tv-greeting{display:none}.tv-date{font-size:1.5vh}.tv-date-extra{font-size:1vh;margin-top:.3vh}.tv-card{padding:.7vh 1.7vw}.tv-weather{min-height:8vh}.weather-big strong{font-size:3.8vh}.weather-big b{font-size:1.4vh}.weather-symbol{font-size:3vh}.weather-note{font-size:.8vh}.weather-forecast>div{gap:.6vh}.tv-device-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:.8vw}.tv-device{min-height:4.7vh;padding:.5vh .8vw;gap:.6vw}.tv-device h3{font-size:1.1vh}.tv-device p{font-size:.8vh}.tv-status{font-size:.85vh}.device-emblem{width:2.3vh;height:2.3vh;font-size:1.5vh}.tv-section-heading h2{font-size:1.3vh}.tv-section-heading{margin-bottom:.5vh}.tv-family-presence h2{font-size:1.3vh}.tv-family-presence p{font-size:.9vh}.tv-bottom{gap:.7vh}.tv-footer{font-size:.7vh}}[data-theme=day] .clock-hour{stroke:#167f98}[data-theme=day] .clock-minute{stroke:#169881}[data-theme=day] .clock-second{stroke:#e05260}.tv-family-presence{order:-1;min-height:5vh}.tv-family-presence>div{flex:1}.tv-positions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1vw}.tv-positions>div{display:flex;flex-direction:column;gap:.2vh}.tv-positions b{font-size:1.1vh;font-weight:500}.tv-positions span,.tv-positions small{font-size:.85vh;color:#818b76}.tv-positions .warning{color:#bd8b5d}.tv-reconnect{padding:1.5vh 2vw;border:1px solid #a7774f;border-radius:1vh;background:#f3e7d7;color:#65462e;font-size:1.4vh}.tv-reconnect strong{font-size:1.8vh}.tv-reconnect p{margin:.6vh 0}.tv-reconnect button{padding:.7vh 1.5vw;border:1px solid currentColor;border-radius:.5vh;background:transparent;color:inherit;font-size:inherit}[data-theme=night] .tv-reconnect{background:#30271f;color:#c5ad8a}