.studio-capsule{display:flex;overflow-x:auto;gap:8px;padding:4px 0 12px;margin:0 0 12px;scrollbar-width:thin}
.studio-capsule button{display:flex;align-items:center;gap:7px;flex:none;min-height:46px;padding:8px 12px;border-radius:999px;white-space:nowrap;background:#101724b8}
.studio-capsule button[aria-current=true]{background:#284878;border-color:#79acff}
.studio-capsule button span{font-size:1.1rem;color:#9cc5ff}
.studio-capsule button small{font-size:.7rem;font-weight:700;color:#c2d6fa}
.studio-chat{border:1px solid var(--line);border-radius:22px;max-width:780px;margin:0 auto;padding:clamp(14px,3vw,28px);display:grid;gap:12px}
.chat-heading,.chat-actions{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.chat-heading h1{margin:3px 0 0}
.chat-heading button{padding-inline:0}
.provider-mark{border:1px solid #6e94cb63;border-radius:999px;padding:7px 10px;font-size:.82rem;color:#d8e7ff}
.studio-messages{display:grid;gap:8px;max-height:50vh;overflow-y:auto;overscroll-behavior:contain}
.studio-message{padding:12px 14px;white-space:pre-wrap;overflow-wrap:anywhere;border-radius:14px;background:#101724b8;line-height:1.55}
.studio-message[data-role=user]{background:#29446c;max-width:90%;justify-self:end}
.studio-chat form{display:grid;gap:8px}
.studio-consent{display:flex;align-items:center;gap:8px;min-height:44px}
.studio-consent input{width:20px;height:20px;min-height:20px;flex:none}
.chat-actions .primary{min-width:100px;margin-left:auto}
#studio-chat-status[data-error=true]{color:#f9c2c6}
#studio-sign-in,#studio-post-link{color:#9cc5ff}
.studio-category{max-width:960px;margin:0 auto;display:grid;gap:16px}
.category-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.category-head h1{margin:0}
.category-tools,.category-posts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(245px,100%),1fr));gap:10px}
.category-card,.category-post{border:1px solid var(--line);border-radius:18px;background:#17202bb0;padding:14px;min-width:0}
.category-card{display:grid;grid-template-columns:40px 1fr;align-items:center;text-align:start;gap:10px;min-height:72px}
.category-card span:last-child{display:grid;gap:4px}
.category-card small{color:#c4d2e6;font-weight:400;line-height:1.35}
.category-card img,.category-glyph{width:38px;height:38px;border-radius:10px}
.category-glyph{display:grid;place-items:center;background:#283c58;color:#d7e9ff;font-size:1.2rem}
.category-post{display:grid;gap:9px}
.category-post p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.category-post video,.category-post img,.category-post audio{width:100%;max-width:100%;border-radius:10px}
.category-post video,.category-post img{max-height:240px;object-fit:contain;background:#101318}
.category-post-meta{display:flex;justify-content:space-between;align-items:center;gap:8px}
.category-post-meta button{min-height:44px}
.translate-dialog{border:1px solid var(--line);border-radius:22px;color:inherit;width:min(380px,calc(100% - 32px));padding:18px}
.translate-dialog::backdrop{background:#06090dcc}
.translate-dialog form{display:grid;gap:8px}
.translate-dialog h2{margin:0 0 4px}
#studio-swap-language{justify-self:end}
