.douyin-official-panel{margin-top:18px;padding:18px;border:1px solid #e3daf7;border-radius:14px;background:linear-gradient(120deg,#faf7ff,#fff);min-width:0}
.douyin-official-panel h3{font-size:16px;margin:4px 0 8px;color:#241a39}
.douyin-official-label{font-size:12px;font-weight:700;color:#7442c7;letter-spacing:.03em}
.douyin-official-panel p{margin:8px 0;color:#70667e;font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.douyin-official-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.douyin-official-actions button,.douyin-official-actions a{min-height:40px;max-width:100%;white-space:normal}
.douyin-official-panel [hidden]{display:none!important}
.douyin-official-panel [role=status]{color:#514564}
.douyin-callback-page{margin:0;min-height:100dvh;display:grid;place-items:center;background:#f5f0fc;font:16px/1.7 system-ui,sans-serif;color:#241a39}
.douyin-callback-card{box-sizing:border-box;background:white;border:1px solid #e3daf7;border-radius:20px;padding:30px;width:min(520px,calc(100% - 32px));box-shadow:0 20px 70px #62479c15}
.douyin-callback-card h1{font-size:24px}.douyin-callback-card p{color:#70667e;overflow-wrap:anywhere}.douyin-return{display:inline-block;background:#7636db;color:white;text-decoration:none;border-radius:10px;padding:10px 20px}
@media(max-width:600px){.douyin-official-panel{padding:14px}.douyin-official-actions>button{flex:1 1 auto}}
@media(max-width:980px){
 body.atelier:not(.home-mode) .video-view #publishLayout.ac-release-desk{grid-template-columns:minmax(0,1fr)!important}
 body.atelier:not(.home-mode) .video-view #publishLayout.ac-release-desk>:is(#publishCopyCard,.vr-publish-checks){grid-column:1!important;grid-row:auto!important;position:static!important;min-width:0;width:auto;max-width:100%}
}

/* Settings uses the same identity, status and action layout for every platform. */
#accountPlatformBindings .settings-platform-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}
#accountPlatformBindings .channel-account-actions{display:flex;flex-direction:row-reverse;align-items:center;justify-self:end;gap:6px}
#accountPlatformBindings .channel-account-actions .account-btn{width:auto;margin:0}
#accountPlatformBindings .channel-account-actions .account-btn.primary{box-sizing:border-box;width:7.5rem;min-height:40px;white-space:nowrap}
#accountPlatformBindings .channel-copy small{overflow-wrap:anywhere}
#accountPlatformBindings .douyin-account-row{grid-column:1/-1;min-width:0;padding-top:12px;border-top:1px solid #ebe6f3}
#accountPlatformBindings .douyin-account-row p{margin:0;font-size:12px;line-height:1.7;color:#70667e;overflow-wrap:anywhere}
#accountPlatformBindings .douyin-connection-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
#accountPlatformBindings .douyin-account-row .account-btn{width:auto;margin:0}
#accountPlatformBindings .douyin-account-row:not(:has([data-douyin-open]:not([hidden]),[data-douyin-disconnect]:not([hidden]))){display:none!important}
#accountPlatformBindings [hidden]{display:none!important}
@media(max-width:600px){
  #accountPlatformBindings .channel-account-actions{flex-direction:column;align-items:flex-end}
}
@media(max-width:340px){
  #accountPlatformBindings .settings-platform-row{grid-template-columns:minmax(0,1fr)}
  #accountPlatformBindings .channel-account-actions{flex-direction:row-reverse}
}
