/* Widget studio is intentionally independent of the widget's chosen palette. */
.accent-card .design-widget-entry{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;margin:0 0 20px;padding:12px 14px;border:1px solid var(--line,#e5e5e5);border-radius:var(--yp-box-radius,16px);background:var(--panel,#fff);color:var(--ink,#111);text-align:left;font-size:var(--yp-font-B);cursor:pointer}
.accent-card .design-widget-entry strong{flex:1}
.accent-card .design-widget-section .design-widget-entry{margin-bottom:0}
.accent-card .design-widget-entry svg{width:22px;height:22px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.accent-card .design-widget-entry svg:last-child{width:16px;height:16px}
.accent-card .design-widget-entry:focus-visible{outline:2px solid var(--yp-accent,#111);outline-offset:3px}
.widget-design-layer{position:fixed;inset:0;z-index:7800;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(12,17,22,.4);backdrop-filter:blur(5px);overscroll-behavior:contain}
.widget-design-layer .widget-design-card{--wd-panel:#fff;--wd-ink:#202329;--wd-muted:#74797f;--wd-line:#e9ebed;--wd-soft:#f4f5f6;width:min(100%,480px);max-width:480px;max-height:calc(100dvh - 36px);padding:0;display:flex;flex-direction:column;overflow:hidden;gap:0;border:1px solid rgba(255,255,255,.7);border-radius:24px;background:var(--wd-panel);color:var(--wd-ink);box-shadow:0 22px 90px #10161f38;text-align:left;font-size:var(--yp-font-B);line-height:1.5}
.widget-design-card *{box-sizing:border-box}
.widget-design-card :is(button,input){font:inherit}
.widget-design-card button{cursor:pointer;letter-spacing:0;text-transform:none;box-shadow:none}
.widget-design-card button:focus-visible,.widget-design-card input:focus-visible{outline:2px solid #547874;outline-offset:3px}
.widget-design-card .wd-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px 8px 20px;flex-shrink:0;background:var(--wd-panel);border-bottom:1px solid var(--wd-line)}
.widget-design-card .wd-head h2{flex:1 1 auto;min-width:0;font-family:var(--yp-font-family,inherit);font-size:var(--yp-font-A);line-height:1.4;margin:0;font-weight:var(--yp-font-weight-strong,700);color:var(--wd-ink);word-break:keep-all;overflow-wrap:anywhere}
.widget-design-card .wd-head-actions{display:flex;flex:0 0 auto;align-items:center;justify-content:flex-end;gap:var(--yp-dialog-action-gap,4px);min-width:0}
.widget-design-card .wd-head .wd-apply{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:32px;height:max(var(--yp-dialog-action-height,32px),calc(1.2em + 10px))!important;min-height:var(--yp-dialog-action-height,32px)!important;margin:0;padding:4px 10px;border:1px solid var(--wd-ink);border-radius:var(--yp-control-radius,8px);background:var(--wd-ink);color:var(--wd-panel);font-size:var(--yp-font-C);font-weight:var(--yp-font-weight-strong,700);line-height:1.2;white-space:nowrap}
.widget-design-card .wd-scroll{overflow:auto;min-height:0;overscroll-behavior:contain;scrollbar-width:thin;scroll-padding:14px}
.widget-design-card .wd-kind-tabs{display:flex;gap:6px;padding:16px 22px 14px;overflow-x:auto;scrollbar-width:none;flex-wrap:nowrap}
.widget-design-card .wd-kind-tabs::-webkit-scrollbar{display:none}
.widget-design-card .wd-kind-tabs button{flex-shrink:0;min-height:36px;padding:7px 11px;border:1px solid var(--wd-line);border-radius:10px;background:var(--wd-panel);color:var(--wd-muted);font-size:var(--yp-font-C);font-weight:600;white-space:nowrap}
.widget-design-card .wd-kind-tabs button[aria-pressed=true]{background:var(--wd-ink);border-color:var(--wd-ink);color:var(--wd-panel)}
.widget-design-card .wd-kind-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}
.widget-design-card .wd-kind-picker button{min-width:0;white-space:normal;overflow-wrap:anywhere}
.widget-design-card .wd-pin-actions{padding:0 22px 14px}
.widget-design-card .wd-pin-actions button{display:block;width:100%;min-height:44px;padding:10px 14px;border:1px solid var(--wd-line);border-radius:10px;background:var(--wd-panel);color:var(--wd-ink);font-weight:600}
.widget-design-card .wd-pin-actions button:disabled{opacity:.55;cursor:wait}
.widget-design-card .wd-pin-actions p{margin:6px 0 0;font-size:var(--yp-font-C);color:var(--wd-muted);line-height:1.5;overflow-wrap:anywhere}
.widget-design-card .wd-preview-frame{margin:0;padding:0 22px 18px;background:var(--wd-panel)}
.widget-design-card .wd-preview-frame figcaption{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:var(--yp-font-C);color:var(--wd-muted);margin-bottom:8px}
.widget-design-card .wd-preview-sizes{display:flex;gap:2px;align-items:center}
.widget-design-card .wd-preview-sizes button{display:grid;place-items:center;min-height:28px;min-width:31px;padding:5px;border:0;border-radius:6px;background:transparent;color:var(--wd-muted)}
.widget-design-card .wd-preview-sizes button[aria-pressed=true]{background:var(--wd-soft);color:var(--wd-ink)}
.widget-design-card .wd-preview-sizes svg{width:20px;height:16px;fill:none;stroke:currentColor;stroke-width:1.25}
.widget-design-card .wd-preview-wallpaper{padding:20px;display:flex;align-items:center;justify-content:center;min-height:220px;border-radius:18px;background:radial-gradient(ellipse at 88% 12%,#e1e7d0 0,transparent 50%),radial-gradient(ellipse at 5% 80%,#a9b9b2 0,transparent 55%),linear-gradient(140deg,#d6ddda,#afbbb3);box-shadow:inset 0 0 0 1px #25383008}
.widget-design-card .wd-preview{width:100%;min-width:0;max-width:360px;padding:15px 16px;border:1px solid color-mix(in srgb,var(--wd-text) 8%,transparent);border-radius:var(--wd-radius);color:var(--wd-text);background:var(--wd-background);box-shadow:0 8px 20px #26352c13;font-family:Arial,'Noto Sans KR',sans-serif!important;font-size:calc(14px * var(--wd-scale));line-height:1.45;transition:max-width .18s ease}
.widget-design-card .wd-preview[data-size=compact]{max-width:250px}
.widget-design-card .wd-preview[data-density=compact]{padding:12px 14px}
.widget-design-card .wd-preview .wd-demo-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}
.widget-design-card .wd-preview .wd-demo-header strong{font-size:calc(16px * var(--wd-scale));font-weight:700;color:var(--wd-accent);letter-spacing:-.03em}
.widget-design-card .wd-preview .wd-demo-header>span{font-size:.76em;opacity:.62;white-space:nowrap}
.widget-design-card .wd-preview .wd-demo-calendar-navigation{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:40px;margin-bottom:12px;color:var(--wd-accent)}
.widget-design-card .wd-preview .wd-demo-calendar-navigation strong{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:calc(14px * var(--wd-scale));text-align:center}
.widget-design-card .wd-preview .wd-demo-calendar-navigation>span{flex:0 0 32px;text-align:center;font-size:1.7em}
.widget-design-card .wd-preview .wd-demo-row{display:flex;align-items:center;gap:9px;padding:8px 0;min-width:0}
.widget-design-card .wd-preview .wd-demo-row+ .wd-demo-row{border-top:1px solid color-mix(in srgb,var(--wd-text) 7%,transparent)}
.widget-design-card .wd-preview[data-density=compact] .wd-demo-row{padding:5px 0;gap:8px}
.widget-design-card .wd-preview .wd-demo-copy{display:flex;flex-direction:column;gap:2px;min-width:0;font-weight:400;overflow-wrap:anywhere}
.widget-design-card .wd-preview .wd-demo-row.is-done .wd-demo-copy>span:first-child{text-decoration:line-through;opacity:.48}
.widget-design-card .wd-preview .wd-demo-detail{display:block;font-size:calc(12px * var(--wd-scale));font-weight:400;opacity:.7;line-height:1.5}
.widget-design-card .wd-preview .wd-demo-row time{font-size:.78em;font-variant-numeric:tabular-nums;opacity:.63;min-width:34px}
.widget-design-card .wd-preview .wd-demo-bar{width:3px;min-height:22px;align-self:stretch;flex-shrink:0;border-radius:4px;background:var(--wd-accent)}
.widget-design-card .wd-preview .wd-demo-check{display:grid;place-items:center;flex:0 0 15px;width:15px;height:15px;border:1.5px solid var(--wd-accent);border-radius:5px;font-style:normal}
.widget-design-card .wd-preview .wd-demo-check.is-done{background:var(--wd-accent);border-color:var(--wd-accent)}
.widget-design-card .wd-preview .wd-demo-check svg{width:12px;height:12px;fill:none;stroke:var(--wd-on-accent);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.widget-design-card .wd-preview .wd-demo-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;margin-bottom:7px}
.widget-design-card .wd-preview .wd-demo-week .wd-week-column{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-height:134px;padding:4px 2px 6px;border-radius:5px;font-size:calc(10px * var(--wd-scale));min-width:0}
.widget-design-card .wd-preview .wd-demo-week small{font-size:1em;opacity:.7}
.widget-design-card .wd-preview .wd-demo-week b{font-size:calc(12px * var(--wd-scale));font-weight:500}
.widget-design-card .wd-preview .wd-week-event{margin-top:5px;font-size:1em;min-width:0;width:100%;color:var(--wd-text)}
.widget-design-card .wd-preview .wd-week-event .wd-demo-detail{font-size:1em;color:var(--wd-accent);opacity:1;white-space:nowrap;letter-spacing:-.05em}
.widget-design-card .wd-preview .wd-week-event>span:last-child{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;line-height:1.5}
.widget-design-card .wd-preview .wd-demo-week .is-today{background:color-mix(in srgb,var(--wd-accent) 12%,transparent);color:var(--wd-accent)}
.widget-design-card .wd-preview .wd-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;text-align:center}
.widget-design-card .wd-preview .wd-month-label{font-size:calc(14px * var(--wd-scale));font-weight:600;margin-bottom:10px}
.widget-design-card .wd-preview .wd-month-day.is-outside{opacity:.4}
.widget-design-card .wd-preview .wd-weekday{font-size:.75em;opacity:.5;padding-bottom:6px}
.widget-design-card .wd-preview .wd-month-day{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0;padding:3px 0 6px;min-height:23px}
.widget-design-card .wd-preview .wd-month-day b{font-size:.8em;font-weight:500;line-height:20px;min-width:20px}
.widget-design-card .wd-preview .wd-month-day.is-today b{border-radius:50%;color:var(--wd-accent);background:color-mix(in srgb,var(--wd-accent) 14%,transparent);font-weight:900}
.widget-design-card .wd-preview .wd-month-event{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;font-size:.65em;line-height:1.4}
.widget-design-card .wd-preview[data-density=compact] .wd-month-grid{gap:0}
.widget-design-card .wd-preview .wd-month-agenda{display:flex;align-items:center;gap:7px;margin-top:8px;padding-top:9px;border-top:1px solid color-mix(in srgb,var(--wd-text) 8%,transparent);font-size:.8em}
.widget-design-card .wd-preview .wd-month-agenda i{width:4px;height:4px;flex-shrink:0;border-radius:50%;background:var(--wd-accent)}
.widget-design-card .wd-preview .wd-month-agenda time{margin-left:auto;opacity:.55;font-variant-numeric:tabular-nums}
.widget-design-card .wd-preview .wd-demo-progress{height:3px;border-radius:9px;background:color-mix(in srgb,var(--wd-accent) 10%,transparent);overflow:hidden;margin:0 0 6px}
.widget-design-card .wd-preview .wd-demo-progress span{display:block;width:33.33%;height:100%;border-radius:inherit;background:var(--wd-accent)}
.widget-design-card .wd-preview .wd-demo-timer{display:flex;flex-direction:column;align-items:center;gap:6px;padding:5px 0 4px}
.widget-design-card .wd-preview .wd-demo-timer>span:first-child{font-size:calc(32px * var(--wd-scale));font-weight:650;line-height:1.15;letter-spacing:-.05em;font-variant-numeric:tabular-nums;color:var(--wd-text)}
.widget-design-card .wd-preview .wd-demo-timer-actions{display:flex;gap:7px;width:100%;margin-top:12px}
.widget-design-card .wd-demo-tool-actions{display:flex;gap:4px;margin-top:8px}
.widget-design-card .wd-demo-tool-actions span{flex:1;text-align:center;padding:6px 3px;color:var(--wd-accent);background:color-mix(in srgb,var(--wd-accent) 10%,transparent);border-radius:6px}
.widget-design-card .wd-preview .wd-demo-start,.widget-design-card .wd-preview .wd-demo-reset{display:flex;align-items:center;justify-content:center;gap:6px;flex:1;min-height:36px;padding:7px 12px;border-radius:min(10px,var(--wd-radius));background:var(--wd-accent);color:var(--wd-on-accent);font-size:calc(14px * var(--wd-scale));font-weight:600}
.widget-design-card .wd-preview .wd-demo-reset{background:color-mix(in srgb,var(--wd-accent) 12%,transparent);color:var(--wd-accent)}
.widget-design-card .wd-preview .wd-demo-start svg{width:12px;height:12px;fill:currentColor}
.widget-design-card .wd-preview .wd-demo-today-label{margin:10px 0 0;font-size:calc(12px * var(--wd-scale));font-weight:700;color:var(--wd-accent)}
.widget-design-card .wd-controls{padding:0 22px 6px}
.widget-design-card .wd-section{border-top:1px solid var(--wd-line);padding:19px 0}
.widget-design-card .wd-section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px}
.widget-design-card .wd-section-heading h3{font-size:var(--yp-font-B);font-weight:750;margin:0;color:var(--wd-ink)}
.widget-design-card .wd-section-heading>span{font-size:var(--yp-font-C);color:var(--wd-muted)}
.widget-design-card .wd-presets{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.widget-design-card .wd-presets button{display:flex;flex-direction:column;gap:7px;align-items:center;min-width:0;padding:0 1px;border:0;border-radius:10px;background:transparent;color:var(--wd-muted);font-size:var(--yp-font-C)}
.widget-design-card .wd-preset-sample{display:flex;flex-direction:column;gap:5px;justify-content:center;width:100%;height:58px;padding:12px 10px;background:var(--swatch-bg);border:1px solid #0000000d;border-radius:12px;outline:2px solid transparent;outline-offset:2px}
.widget-design-card .wd-preset-sample i{display:block;height:3px;background:var(--swatch-ink);opacity:.2;border-radius:3px;width:78%}
.widget-design-card .wd-preset-sample i:first-child{width:44%;opacity:1;background:var(--swatch-accent)}
.widget-design-card .wd-preset-sample i:last-child{width:63%}
.widget-design-card .wd-presets button[aria-pressed=true]{color:var(--wd-ink);font-weight:750}
.widget-design-card .wd-presets button[aria-pressed=true] .wd-preset-sample{outline-color:var(--wd-ink)}
.widget-design-card .wd-colors{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 19px}
.widget-design-card .wd-color-control{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:7px;padding:9px 10px;border:1px solid var(--wd-line);border-radius:12px;min-width:0;font-size:var(--yp-font-C);font-weight:600;color:var(--wd-ink)}
.widget-design-card .wd-color-control input{appearance:none;-webkit-appearance:none;display:block;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;overflow:hidden;border:2px solid var(--wd-panel);border-radius:50%;outline:1px solid var(--wd-line);background:transparent;cursor:pointer}
.widget-design-card input[type=color]::-webkit-color-swatch-wrapper{padding:0}
.widget-design-card input[type=color]::-webkit-color-swatch{border:0;border-radius:50%}
.widget-design-card input[type=color]::-moz-color-swatch{border:0;border-radius:50%}
.widget-design-card .wd-range-control{display:block;margin:13px 0 0}
.widget-design-card .wd-range-control>span{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:var(--yp-font-C);color:var(--wd-ink)}
.widget-design-card .wd-range-control output{font-size:var(--yp-font-C);font-variant-numeric:tabular-nums;color:var(--wd-muted)}
.widget-design-card .wd-range-control input{display:block;width:100%;height:28px;min-height:28px;margin:5px 0 0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;accent-color:#3e5752;cursor:pointer}
.widget-design-card .wd-option-row{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:42px;font-size:var(--yp-font-C)}
.widget-design-card .wd-option-row+.wd-option-row{margin-top:19px;padding-top:19px;border-top:1px solid var(--wd-line)}
.widget-design-card .wd-option-row>span{min-width:0}
.widget-design-card .wd-segment{display:flex;gap:2px;padding:3px;border-radius:10px;background:var(--wd-soft)}
.widget-design-card .wd-segment button{min-height:32px;padding:5px 10px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--wd-muted);font-size:var(--yp-font-C);white-space:nowrap}
.widget-design-card .wd-segment button[aria-pressed=true]{border-color:var(--wd-line);background:var(--wd-panel);color:var(--wd-ink);box-shadow:0 1px 3px #00000005}
.widget-design-card .wd-switch{position:relative;flex:0 0 42px;width:42px;min-height:25px;height:25px;padding:3px;border:0;border-radius:20px;background:#c9ced1}
.widget-design-card .wd-switch i{display:block;position:absolute;left:3px;top:3px;width:19px;height:19px;border-radius:50%;background:#fff;box-shadow:0 1px 4px #0002;transition:transform .15s}
.widget-design-card .wd-switch[aria-checked=true]{background:#3e5752}
.widget-design-card .wd-switch[aria-checked=true] i{transform:translateX(17px)}
.widget-design-card .wd-bulk-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;border-top:1px solid var(--wd-line);padding:19px 0}
.widget-design-card .wd-bulk-actions button{min-width:0;min-height:44px;padding:10px 7px;border:1px solid var(--wd-line);border-radius:10px;background:var(--wd-panel);color:var(--wd-ink);font-size:var(--yp-font-C);font-weight:600;line-height:1.5;word-break:keep-all;overflow-wrap:break-word;text-align:center}
.widget-design-card .wd-bulk-actions [data-wd-copy]{background:var(--wd-soft)}
.widget-design-card .wd-status{margin:10px 3px 6px;font-size:var(--yp-font-C);line-height:1.6;color:#406b60;min-height:0}
.widget-design-card .wd-status:empty{margin:0}
.widget-design-card .wd-status.is-error{color:#b63b35}
body.dark-mode .widget-design-card{--wd-panel:#202428;--wd-ink:#edf0f2;--wd-muted:#a0a7ac;--wd-line:#363c40;--wd-soft:#292f33;border-color:#464c5055}
body.dark-mode .widget-design-card .wd-switch[aria-checked=true]{background:#7da994}
body.dark-mode .widget-design-card .wd-range-control input{accent-color:#a3cbb7}
body.dark-mode .widget-design-card .wd-status{color:#a3cbb7}
body.dark-mode .widget-design-card .wd-status.is-error{color:#f4a49e}
@media(max-width:420px){.widget-design-layer{padding:10px}.widget-design-layer .widget-design-card{max-height:calc(100dvh - 20px);border-radius:20px}.widget-design-card .wd-head{padding-left:17px;padding-right:9px}.widget-design-card .wd-kind-tabs{padding:13px 17px 12px}.widget-design-card .wd-preview-frame{padding:0 17px 16px}.widget-design-card .wd-controls{padding:0 17px 8px}.widget-design-card .wd-preview-wallpaper{padding:17px}.widget-design-card .wd-color-control{padding:8px}.widget-design-card .wd-colors{gap:6px}}
@media(max-width:359px){.widget-design-card .wd-section-heading>span{display:none}.widget-design-card .wd-colors{gap:5px}.widget-design-card .wd-color-control{flex-direction:column;gap:8px;padding:10px 5px}.widget-design-card .wd-segment button{padding:5px 7px}.widget-design-card .wd-presets{gap:7px}.widget-design-card .wd-preset-sample{height:52px;padding:10px 8px}.widget-design-card .wd-preview-wallpaper{padding:14px}.widget-design-card .wd-preview{padding:12px}}
@media(prefers-reduced-motion:reduce){.widget-design-card .wd-preview,.widget-design-card .wd-switch i{transition:none}}
