.studio-template-detail{--primary:var(--site-gold-primary, 271 81% 56%);--primary-foreground:0 0% 100%;border-radius:18px;color:hsl(var(--foreground));display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Microsoft YaHei,sans-serif;gap:0;max-height:90dvh;max-width:960px;overflow:hidden;padding:0;width:calc(100vw - 48px)}.studio-template-detail>button{border-radius:10px;display:grid;height:44px;place-items:center;right:12px;top:12px;width:44px}.template-detail-heading{border-bottom:1px solid hsl(var(--border) / .65);flex-shrink:0;padding:22px 68px 18px 24px}.template-detail-heading h2{font-size:20px;line-height:1.5;overflow-wrap:anywhere}.template-detail-heading>p{color:hsl(var(--muted-foreground));font-size:12px;margin-top:4px}.template-detail-body{display:grid;gap:28px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:24px}.template-detail-body section,.template-detail-info{min-width:0}.template-detail-media{align-items:center;background:hsl(var(--muted) / .35);border:1px solid hsl(var(--border) / .6);border-radius:12px;display:flex;justify-content:center;min-height:220px;overflow:hidden}.template-detail-media :is(img,video){display:block;max-height:min(480px,calc(90dvh - 290px));max-width:100%;-o-object-fit:contain;object-fit:contain;width:100%}.template-detail-media video{background:#000}.template-detail-placeholder{align-items:center;color:hsl(var(--muted-foreground));display:flex;flex-direction:column;font-size:12px;gap:14px;justify-content:center;min-height:220px;padding:20px;text-align:center}.template-detail-placeholder :is(svg,.iconify){height:32px;opacity:.5;width:32px}.template-detail-media-note{color:hsl(var(--muted-foreground));font-size:11px;line-height:1.7;margin-top:10px}.template-detail-info{display:flex;flex-direction:column;gap:24px}.template-detail-info h3{font-size:13px;font-weight:600;margin-bottom:10px}.template-detail-description{color:hsl(var(--muted-foreground));font-size:13px;line-height:1.8;overflow-wrap:anywhere;white-space:pre-wrap}.template-detail-requirements{display:grid;gap:12px;list-style:none;padding:0}.template-detail-requirements li{border:1px solid hsl(var(--border) / .7);border-radius:10px;display:flex;gap:10px;padding:12px}.template-detail-requirements li>:is(svg,.iconify){color:hsl(var(--muted-foreground));flex-shrink:0;height:17px;margin-top:2px;width:17px}.template-detail-requirements strong{font-size:12px;font-weight:500}.template-detail-requirements li p{color:hsl(var(--muted-foreground));font-size:12px;line-height:1.7;margin-top:4px}.template-detail-settings{display:grid;gap:14px 12px;grid-template-columns:repeat(2,minmax(0,1fr))}.template-detail-settings dt{color:hsl(var(--muted-foreground));font-size:11px;margin-bottom:4px}.template-detail-settings dd{font-size:13px;overflow-wrap:anywhere}.template-detail-muted,.template-detail-settings-note{color:hsl(var(--muted-foreground));font-size:12px;line-height:1.7}.template-detail-settings-note{font-size:11px;margin-top:12px}.template-detail-prompt{border-top:1px solid hsl(var(--border) / .6);padding-top:4px}.template-detail-prompt summary{align-items:center;color:hsl(var(--muted-foreground));cursor:pointer;display:flex;font-size:12px;gap:12px;justify-content:space-between;list-style:none;min-height:44px}.template-detail-prompt summary::-webkit-details-marker{display:none}.template-detail-prompt summary :is(svg,.iconify){flex-shrink:0;height:15px;width:15px}.template-detail-prompt[open] summary :is(svg,.iconify){transform:rotate(180deg)}.template-detail-prompt>p{font-size:12px;line-height:1.8;overflow-wrap:anywhere;padding:8px 0;white-space:pre-wrap}.template-detail-footer{background:hsl(var(--background));border-top:1px solid hsl(var(--border) / .65);flex-shrink:0;padding:14px 24px calc(16px + env(safe-area-inset-bottom))}.template-detail-footer>p{color:hsl(var(--muted-foreground));font-size:11px;line-height:1.7;margin-bottom:10px}.template-detail-footer>div{display:flex;gap:12px}.template-detail-footer button{align-items:center;border-radius:11px;display:flex;font-size:13px;font-weight:500;gap:8px;justify-content:center;min-height:46px;padding:10px 16px}.template-detail-back{border:1px solid hsl(var(--border));min-width:96px}.template-detail-use{background:hsl(var(--primary));color:#fff;flex:1}.template-detail-use:disabled{cursor:wait;opacity:.6}.template-detail-use :is(svg,.iconify){flex-shrink:0;height:16px;width:16px}.template-detail-use:hover:not(:disabled){background:var(--site-gold-accent, #851de7)}.studio-template-detail :is(button,summary,video):focus-visible{outline:2px solid hsl(var(--primary));outline-offset:3px}@media (max-width:699px){.studio-template-detail{border:0;border-radius:0;height:100dvh;left:0;max-height:100dvh;max-width:none;top:0;transform:none;translate:none;width:100%}.template-detail-heading{padding:18px 64px 14px 20px}.template-detail-heading h2{font-size:18px}.template-detail-body{gap:20px;grid-template-columns:minmax(0,1fr);padding:16px 20px 24px}.template-detail-media{min-height:180px}.template-detail-media :is(img,video){max-height:35dvh}.template-detail-placeholder{min-height:180px}.template-detail-info{gap:22px}.template-detail-footer{padding:12px 20px calc(14px + env(safe-area-inset-bottom))}}
