/* The five sketch layouts use the existing desktop crystal optical shell. */
.home .desktop-widget{padding:0!important;border-radius:20px;overflow:hidden;color:var(--home-ink,#30343b);font-family:'User PingFang Heavy','PingFang SC',sans-serif;}
/* Keep saved grid positions and resizing, but give the sketch tiles a compact footprint. */
.home .home-page .app-grid>.desktop-widget{width:90%;height:84%;align-self:start;justify-self:center;}
.home .home-page .app-grid>.dw-music-collage{width:84%;height:84%;}
.home .desktop-widget .dw-content{position:relative;z-index:1;display:flex;flex-direction:column;width:100%;height:100%;min-height:0;padding:10px;gap:7px;box-sizing:border-box;}
.dw-photo{display:grid;place-items:center;position:relative;min-width:0;min-height:0;margin:0;overflow:hidden;border-radius:14px;border:1px solid #ffffff50;background:#ffffff09;color:inherit;}
.dw-photo>svg{width:25px;height:25px;opacity:.3;}
.dw-photo>img{display:block;width:100%;height:100%;object-fit:cover;}
.dw-circle{border-radius:50%;aspect-ratio:1;flex-shrink:0;}
.dw-copy{display:block;min-width:0;font-size:11px;line-height:1.6;overflow-wrap:anywhere;white-space:pre-wrap;}
.dw-bottom-pill{display:flex;align-items:center;gap:6px;min-height:27px;flex-shrink:0;padding:3px 8px;border:1px solid #ffffff3b;border-radius:99px;background:#ffffff08;box-sizing:border-box;}
.dw-bottom-pill>.dw-copy{flex:1;font-size:10px;line-height:1.5;}
.dw-bottom-pill>.dw-photo{width:21px;height:21px;}
.dw-bottom-pill>.dw-photo>svg{width:17px;height:17px;}
.dw-battery-top{display:flex;align-items:center;gap:10px;flex:1;min-height:0;}
.dw-battery-top>.dw-photo{width:48%;max-height:100%;}
.dw-battery-top>div{flex:1;min-width:0;}
.dw-battery-meter{display:flex;align-items:center;gap:5px;margin-top:8px;font-size:10px;}
.dw-battery-meter svg{width:23px;height:12px;}
.home .dw-portrait .dw-content{align-items:center;justify-content:space-between;gap:7px;}
.dw-portrait-main{width:49%;max-height:calc(100% - 34px);}
.dw-portrait .dw-bottom-pill{width:100%;text-align:center;}
.home .dw-triptych .dw-content{flex-direction:row;gap:9px;}
.dw-profile-column{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:0;width:23%;flex-shrink:0;text-align:center;}
.dw-profile-column>.dw-photo{width:70%;}
.dw-profile-column .dw-copy{width:100%;font-size:10px;line-height:1.4;}
.dw-profile-column .dw-date{font-size:8px;opacity:.7;}
.dw-triptych-main{display:flex;flex-direction:column;gap:8px;flex:1;min-width:0;min-height:0;}
.dw-triptych-main>.dw-copy{font-size:11px;max-height:34%;overflow:hidden;}
.dw-two-photos{display:grid;grid-template-columns:1fr 1fr;gap:9px;flex:1;min-height:0;}
.dw-music-duo-top{display:flex;align-items:flex-start;justify-content:space-between;gap:7px;flex:1;min-height:0;}
.dw-music-duo-top>.dw-copy{position:relative;flex:1;min-width:0;margin-top:3px;padding:5px 7px;border-radius:99px;border:1px solid #ffffff65;background:linear-gradient(145deg,#ffffff35,#ffffff0c);box-shadow:inset 0 1px 1px #ffffff90;backdrop-filter:blur(4px);text-align:center;font-size:9px;line-height:1.3;}
.dw-music-duo-top>.dw-copy::after{content:'';position:absolute;right:9px;bottom:-5px;width:8px;height:8px;border-right:1px solid #ffffff65;border-bottom:1px solid #ffffff65;background:#ffffff28;transform:skewY(28deg) rotate(25deg);clip-path:polygon(100% 0,100% 100%,0 100%);}
.dw-music-duo-top>.dw-copy:last-child::after{right:auto;left:9px;transform:skewY(-28deg) rotate(65deg);}
.home[data-glass-tone=light] .dw-music-duo-top>.dw-copy{border-color:#b2c3ce70;background:#ffffff35;box-shadow:inset 0 1px 1px #fff,0 1px 2px #72899712;}
.home[data-glass-tone=light] .dw-music-duo-top>.dw-copy::after{border-color:#b2c3ce70;}
.dw-duo-portraits{position:relative;z-index:3;display:flex;align-items:flex-end;justify-content:center;gap:0;width:48%;height:100%;flex-shrink:0;transform:translateY(13px);}
.dw-duo-portraits .dw-photo{width:min(68px,18cqw);height:min(68px,18cqw);max-height:none;border:1px solid #ffffff80;}
.dw-duo-portraits .dw-photo+.dw-photo{margin-left:-3px;}
.dw-player{position:relative;display:flex;flex-direction:column;justify-content:center;gap:0;flex:0 0 auto;min-height:42px;box-sizing:border-box;border-radius:99px;border:1px solid #ffffff50;background:linear-gradient(135deg,#ffffff27,#ffffff06 60%,#ffffff18);box-shadow:inset 0 1px 1px #ffffff85,inset 0 -1px 1px #81939f20;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);padding:3px 14px;}
.dw-track-name{font-size:8px;line-height:1.2;white-space:nowrap;text-align:center;text-overflow:ellipsis;overflow:hidden;opacity:.6;}
.dw-music-duo .dw-player{padding-top:9px;}
.dw-music-duo .dw-track-name{order:3;}
.dw-music-duo .dw-controls{order:1;}
.dw-music-duo .dw-player input[type=range]{order:2;}
.dw-controls{position:relative;display:flex;align-items:center;justify-content:space-between;gap:7px;}
.dw-controls button{display:grid;place-items:center;width:28px;height:22px;padding:3px;border:0;background:none;color:inherit;cursor:pointer;}
.dw-controls svg{width:15px;height:15px;fill:currentColor;}
.dw-controls svg.dw-line-icon{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;}
.dw-controls button[aria-pressed=true]{background:#ffffff55;box-shadow:inset 0 1px 1px #ffffffb0;border-radius:50%;}
.dw-editor section>button[aria-current=true]{background:#d5e4e880;border-color:#9cb6c0;}
.dw-player input[type=range]{appearance:none;-webkit-appearance:none;display:block;width:100%;height:12px;min-height:12px;padding:0;margin:0;border:0;border-radius:99px;background:transparent;box-shadow:none;cursor:pointer;--dw-progress:0%;}
.dw-player input[type=range]::-webkit-slider-runnable-track{height:3px;border-radius:99px;background:linear-gradient(90deg,#ffffffdb var(--dw-progress),#cbd7df38 var(--dw-progress));box-shadow:inset 0 1px 1px #ffffffa0,0 0 0 .5px #869ba535;}
.dw-player input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:9px;height:9px;margin-top:-3px;border:1px solid #ffffffd9;border-radius:50%;background:linear-gradient(145deg,#ffffffed,#d6e4e76b);box-shadow:inset 0 1px 1px #fff,0 1px 3px #62788640;}
.dw-player input[type=range]::-moz-range-track{height:3px;border-radius:99px;background:#cbd7df38;box-shadow:inset 0 1px 1px #ffffffa0,0 0 0 .5px #869ba535;}
.dw-player input[type=range]::-moz-range-progress{height:3px;border-radius:99px;background:#ffffffdb;}
.dw-player input[type=range]::-moz-range-thumb{width:8px;height:8px;border:1px solid #ffffffd9;border-radius:50%;background:linear-gradient(145deg,#ffffffed,#d6e4e76b);box-shadow:0 1px 3px #62788640;}
.dw-player input[type=range]:focus-visible{outline:1px solid #a2b9c8;outline-offset:3px;}
.dw-collage{display:grid;grid-template-columns:1.08fr 1fr;grid-template-rows:4fr 1fr;gap:7px;min-height:0;flex:1;}
.dw-music-collage .dw-content{justify-content:space-between;}
.dw-music-collage .dw-collage{flex:0 1 auto;aspect-ratio:1.55;width:100%;}
.dw-music-collage .dw-photo{border-radius:7px;}
.dw-music-collage .dw-player{border:0;box-shadow:none;background:none;backdrop-filter:none;padding:2px 0;}
.dw-music-collage .dw-controls{min-height:29px;}
.dw-music-collage .dw-controls::before{content:'';position:absolute;z-index:-1;inset:0 17%;border:1px solid #ffffff60;border-radius:99px;background:linear-gradient(140deg,#ffffff35,#ffffff09);box-shadow:inset 0 1px 1px #ffffff90;}
.dw-music-collage .dw-track-name{order:0;}
.dw-music-collage .dw-player input[type=range]{width:96%;align-self:center;order:1;margin:0 0 16px;direction:ltr;}
.dw-music-collage .dw-controls{order:2;}
.dw-collage-first{grid-column:1;grid-row:1;}.dw-collage-detail{grid-column:1;grid-row:2;}.dw-collage-second{grid-column:2;grid-row:1/span 2;}
.home .dw-background{display:block;position:absolute;inset:0;z-index:0;width:100%;height:100%;object-fit:cover;border-radius:inherit;pointer-events:none;}
.home .ios-widget[data-widget-background=true]::after{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:2;box-shadow:inset 1px 1px 1px #ffffffa0,inset -1px -1px 2px #ffffff60;}
.home .ios-widget[data-widget-background=true]>iframe{position:relative;z-index:1;}
.home .home-widget-small .dw-content{padding:7px;gap:5px;}
.home .home-widget-small.dw-portrait .dw-content{flex-direction:row;}
.home .home-widget-small .dw-portrait-main{width:42px;height:42px;max-height:100%;}
.home .home-widget-small .dw-bottom-pill{min-height:28px;padding:3px 7px;}
.home .home-widget-small .dw-copy{font-size:9px;}
.home .home-widget-small .dw-battery-top>.dw-photo{width:30px;height:30px;}
.home .home-widget-small .dw-battery-meter{margin-top:2px;}
.home .home-widget-small.dw-battery .dw-content{display:grid;grid-template-columns:1fr 1fr;align-items:center;}
.home .home-widget-small .dw-player{min-height:35px;padding:2px 8px;gap:1px;}
.home .home-widget-small .dw-track-name{display:none;}
.dw-editor{width:min(380px,calc(100vw - 28px));max-height:85dvh;overflow-y:auto;border:1px solid #ffffffbd;border-radius:28px;padding:18px;background:#f0f2f3ee;backdrop-filter:blur(18px);box-shadow:0 18px 60px #14202b33;color:#30343b;font:13px/1.6 'User PingFang Heavy','PingFang SC',sans-serif;}
.dw-editor::backdrop{background:#10202c40;backdrop-filter:blur(3px);}
.dw-editor>header{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.dw-editor h2{margin:0;font-size:17px;font-weight:600;}
.dw-editor>header button{width:32px;height:32px;font-size:24px;background:transparent;border:0;color:inherit;}
.dw-editor-name{margin:0 0 14px;opacity:.6;font-size:11px;}
.dw-editor>section{margin-top:15px;}
.dw-editor h3{font-size:12px;font-weight:600;margin:0 0 7px;}
.dw-editor section>button,.dw-editor>button,.dw-import-row{display:flex;align-items:center;width:100%;min-height:42px;position:relative;margin-top:6px;padding:10px 13px;border:1px solid #ffffffb0;border-radius:16px;background:#ffffff73;color:inherit;font:inherit;text-align:left;cursor:pointer;}
.dw-import-row{justify-content:space-between;}
.dw-import-row::after{content:'导入';font-size:11px;opacity:.55;}
.dw-import-row input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;}
.dw-editor p{font-size:11px;line-height:1.7;}
.home[data-glass-tone=light] .desktop-widget .dw-photo{border-color:#728a9b26;background:#9eb5c407;}
.home[data-glass-tone=light] .desktop-widget .dw-bottom-pill{border-color:#b3c2cd50;}
.dw-editor-status{min-height:20px;}
.dw-editor textarea,.dw-editor input[type=date]{display:block;width:100%;margin:12px 0 0;min-height:44px;border:1px solid #bac6cf88;background:#ffffff80;border-radius:14px;padding:11px;color:inherit;font:inherit;}
.dw-editor textarea{min-height:120px;resize:vertical;}
.dw-editor.dw-music-dialog{width:min(460px,calc(100vw - 20px));height:min(680px,88dvh);padding:8px;overflow:hidden;}
.dw-music-dialog>header{padding:4px 10px;}
.dw-music-dialog>iframe{display:block;width:100%;height:calc(100% - 42px);border:0;border-radius:20px;background:transparent;}
