.hint[hidden]{display:none!important}
.studio-palette-popover[hidden],.studio-model-menu[hidden]{display:none}
.studio-palette-popover,.studio-model-menu{position:fixed;z-index:80;border:1px solid #e4e4e4;background:#fff;border-radius:20px;box-shadow:0 6px 24px #00000012;animation:studio-pop .16s ease-out}
@keyframes studio-pop{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:scale(1)}}
.studio-palette-popover{width:320px;max-width:calc(100vw - 24px);padding:16px}
.studio-palette-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.studio-palette-grid button{padding:0;border-radius:7px;overflow:hidden;border:1px solid #e7e7e7;transition:transform .15s}
.studio-palette-grid button:hover{transform:scale(1.035)}
.color-preview{position:relative;display:block;width:100%;aspect-ratio:16/9;background:var(--base);border-radius:inherit;overflow:hidden}
.color-preview i,.color-preview b,.color-preview em{position:absolute;display:block;font-style:normal}
.color-preview i{left:5%;right:5%;top:9%;height:19%;background:var(--main)}
.color-preview b{left:5%;width:62%;top:28%;height:10%;background:var(--secondary)}
.color-preview em{left:67%;right:5%;top:28%;height:10%;background:var(--aux)}
.studio-palette-footer{display:flex;gap:8px;margin-top:16px}.studio-palette-footer button{background:#f7f7f7;border-radius:14px;height:44px;font-size:16px}.studio-palette-footer button:first-child{width:44px;border-radius:50%;font-size:24px}.studio-palette-footer button:last-child{flex:1}
.free-card .thumb{position:relative;display:flex;align-items:center;justify-content:center}.free-card .thumb>.color-preview{position:absolute;inset:0;height:100%}.free-card .palette{position:relative;z-index:1;display:flex;align-items:center;gap:4px;background:#0005;color:#fff;padding:5px 9px}.free-check{display:none;position:absolute;z-index:2;left:8px;top:8px;border-radius:50%;background:#ffffff4d;color:#fff;width:28px;height:28px;place-items:center}.free-selected .free-check{display:grid}
.studio-color-dialog{border:0;border-radius:22px;width:560px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 32px);padding:24px;overflow:auto;color:#191919;box-shadow:0 20px 70px #0002}.studio-color-dialog::backdrop{background:#0006}.studio-color-dialog[open]{animation:studio-pop .18s ease-out}.studio-color-dialog header{display:flex;justify-content:space-between;align-items:center}.studio-color-dialog h2{font-size:18px;margin:0;font-weight:600}.studio-color-dialog header button{font-size:26px;line-height:24px}.studio-custom-preview{width:220px;margin:40px auto 24px;border-radius:9px}.studio-color-fields label{display:flex;align-items:center;gap:8px;margin:12px 0}.studio-color-fields label>span{flex:1;font-size:16px}.studio-color-fields input[type=color]{appearance:none;border:0;width:40px;height:40px;padding:0;overflow:hidden;border-radius:50%;background:transparent;cursor:pointer}.studio-color-fields input[type=color]::-webkit-color-swatch-wrapper{padding:0}.studio-color-fields input[type=color]::-webkit-color-swatch{border:1px solid #0001;border-radius:50%}.studio-color-fields input[type=text]{width:92px;border:0;border-radius:14px;background:#f7f7f7;padding:12px;font-size:14px}.studio-color-fields .aux-start{border-top:1px solid #ddd;padding-top:16px;margin-top:16px}.studio-add-color,.studio-apply-color{width:100%;height:44px;border-radius:12px;margin-top:12px;font-size:16px;background:#f3f3f3}.studio-apply-color{background:#191919;color:white}.studio-apply-color:disabled{background:#d9d9d9;color:#999;opacity:1}
.studio-model-menu{width:260px;padding:8px;max-width:calc(100vw - 16px);font-size:14px;max-height:calc(100dvh - 16px);overflow:visible}.studio-model-menu button{position:relative;display:block;width:100%;text-align:left;padding:12px 8px;line-height:20px;border-radius:10px;font-weight:400}.studio-model-menu button:hover,.studio-sub-row:hover>button{background:#f7f7f7}.studio-model-menu small{display:block;font-size:12px;color:#999;margin-top:4px;line-height:18px}.studio-model-menu hr{border:0;border-top:1px solid #ddd;margin:8px}.preview-note{color:#2685ff}.studio-model-menu .model-moon{position:absolute;right:10px;top:23px;font-style:normal;color:#8e8062;font-size:23px}.studio-sub-row{position:relative}.studio-sub-row>button{display:flex;gap:6px;align-items:center}.studio-sub-row>button>span{margin-left:auto;color:#999}.studio-sub-row b{font-size:22px;font-weight:400;color:#999;margin-left:auto}.studio-sub-row>button>span+b{margin-left:0}.studio-model-sub{display:none;position:absolute;left:calc(100% + 5px);top:0;width:230px;padding:8px;background:#fff;border:1px solid #e5e5e5;border-radius:18px;box-shadow:0 6px 20px #0001;animation:studio-pop .15s ease-out}.studio-model-sub::before{content:'';position:absolute;left:-12px;width:14px;top:0;bottom:0}.studio-sub-row:hover>.studio-model-sub,.studio-sub-row:focus-within>.studio-model-sub,.studio-sub-row.submenu-open>.studio-model-sub{display:block}.studio-model-sub i{float:right;color:#2685ff;font-style:normal}.model-label>span{color:#999}
@media(max-width:700px){.studio-model-sub{left:auto;right:0;top:100%;z-index:2;max-width:calc(100vw - 32px)}.studio-model-menu{overflow-y:auto}.studio-color-dialog{padding:22px}.studio-custom-preview{margin:28px auto 20px}}
@media(prefers-reduced-motion:reduce){.studio-model-menu,.studio-model-sub,.studio-palette-popover,.studio-color-dialog[open]{animation:none}}

.studio-model-menu .model-moon{width:24px;height:24px;object-fit:contain}

.studio-color-fields label{position:relative}.studio-remove-color{position:absolute;left:80px;color:#ff4d4f;font-size:20px;padding:4px;opacity:0;transition:opacity .15s}.studio-color-fields label:hover .studio-remove-color,.studio-color-fields label:focus-within .studio-remove-color{opacity:1}.studio-remove-color:focus-visible{opacity:1;outline:2px solid #2685ff}.catalog-loading{color:#999;min-height:130px;display:flex;align-items:center;justify-content:center;grid-column:2/-1}
@media(hover:none){.studio-remove-color{opacity:1}}

/* PPT model dropdown: reference compact rows, without the extra speed row. */
.studio-model-menu{width:260px;padding:8px;border-radius:16px;font:400 14px/20px -apple-system,BlinkMacSystemFont,'Segoe UI','Microsoft YaHei',sans-serif}
.studio-model-menu>button[data-model]{height:58px;padding:8px;line-height:20px}
.studio-model-menu>button[data-model] small{margin-top:4px;line-height:18px;font-size:12px;white-space:nowrap}
.studio-model-menu .studio-sub-row>button{height:36px;min-height:36px;padding:8px;line-height:20px}
.studio-model-menu hr{margin:8px;border-top:1px solid #ddd}
.studio-model-menu .model-moon{display:block;width:20px!important;height:20px!important;max-width:none;position:absolute;right:10px;top:19px;object-fit:cover;object-position:center 11.33%;aspect-ratio:1;opacity:1}
.studio-model-menu>button[data-model]:first-child{background:#f8f8f8}
