/* TikTok: native select có thể mở và hiện đúng các quyền tài khoản được TikTok trả về. */
body[data-route="content"] #botviet-tiktok-studio-v7 .tt7-privacy-row {
  position:relative;overflow:visible!important;z-index:3;
  grid-template-columns:minmax(0,1fr) minmax(200px,245px)!important;
}
body[data-route="content"] #botviet-tiktok-studio-v7 .tt7-privacy {
  width:100%;min-width:0;cursor:pointer;color:#e7f3ff;
}
body[data-route="content"] #botviet-tiktok-studio-v7 .tt7-privacy:disabled {cursor:not-allowed;opacity:.75}
body[data-route="content"] #botviet-tiktok-studio-v7 .tt7-privacy:focus-visible,
body[data-route="content"] #botviet-tiktok-studio-v7 .tt7-guide:focus-visible,
body[data-route="content"] #botviet-tiktok-studio-v7 .tt93-guide-dialog button:focus-visible {
  outline:2px solid #58c4ff;outline-offset:2px;
}
body[data-route="content"] #botviet-tiktok-studio-v7 .tt93-privacy-note {
  display:block;margin:4px 0 12px;max-width:100%;color:#b0c9db;line-height:1.5;font-size:12px;
}
@media(max-width:700px){
  body[data-route="content"] #botviet-tiktok-studio-v7 .tt7-privacy-row {grid-template-columns:1fr!important}
}

#tt93-guide-overlay {
  position:fixed;inset:0;z-index:2147483640;display:grid;place-items:center;
  padding:16px;background:rgba(0,8,21,.78);backdrop-filter:blur(6px);
}
#tt93-guide-overlay .tt93-guide-dialog {
  width:min(680px,100%);max-height:min(90vh,850px);overflow:auto;
  border:1px solid #3a6086;border-radius:18px;background:#091d32;color:#edf7ff;
  box-shadow:0 24px 80px rgba(0,0,0,.55);font:14px/1.55 system-ui,sans-serif;
}
#tt93-guide-overlay header {
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:19px 22px;border-bottom:1px solid #2d4b66;
}
#tt93-guide-overlay header small{color:#66d6ff;font-size:11px;font-weight:750;letter-spacing:.08em}
#tt93-guide-overlay h2{margin:2px 0 0;font-size:20px;line-height:1.3}
#tt93-guide-overlay header button{
  flex:0 0 auto;padding:9px 18px;border:1px solid #3d6b96;border-radius:9px;
  background:#143755;color:#fff;font:700 14px/1.2 system-ui;cursor:pointer;
}
#tt93-guide-overlay p{margin:16px 22px 8px;color:#b9d1e5}
#tt93-guide-overlay ul{list-style:none;padding:0 22px;margin:0}
#tt93-guide-overlay li{position:relative;padding:8px 0 8px 16px;border-bottom:1px solid #24425e}
#tt93-guide-overlay li::before{content:'-';position:absolute;left:0;color:#59d0ff;font-weight:800}
#tt93-guide-overlay footer{display:flex;flex-wrap:wrap;gap:9px;padding:17px 22px}
#tt93-guide-overlay a{color:#85d7ff;text-decoration:underline;text-underline-offset:3px}

/* Facebook: ảnh nền do người dùng cung cấp lấp đầy khung xem trước khi chưa tải media. */
body[data-route="content"] #page-body .content-v140 #publish-preview .content-preview-hero:has(.content-preview-art) {
  height:clamp(290px,28vw,465px)!important;min-height:290px!important;
  aspect-ratio:auto!important;
}
body[data-route="content"] #page-body .content-v140 #publish-preview .content-preview-art {
  width:100%!important;height:100%!important;min-height:100%!important;
  background-image:url('/assets/botviet-content-v93-facebook-cover.png?v=9.3.0')!important;
  background-size:cover!important;background-position:center center!important;
  background-repeat:no-repeat!important;
}
body[data-route="content"] #page-body .content-v140 #publish-preview.tt93-empty-caption #publish-preview-text,
body[data-route="content"] #page-body .content-v140 #publish-preview.tt93-empty-caption #content-preview-hashtags,
body[data-route="content"] #page-body .content-v140 #publish-preview .v4-engagement {display:none!important}

/* Hộp xem ảnh/video: hai nút cân đối, nút đóng ở đầu hộp có chữ rõ ràng. */
body[data-route="content"] #modal-root .content-draft-media-modal .modal-head button[data-close] {
  display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;
  min-width:74px;min-height:36px;padding:6px 14px;
  border:1px solid #43749c;border-radius:9px;background:#113653;
  color:#fff;font-size:13px;font-weight:700;cursor:pointer;
}
body[data-route="content"] #modal-root .content-draft-media-modal .modal-foot {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;
  padding:14px 18px;align-items:stretch;
}
body[data-route="content"] #modal-root .content-draft-media-modal .modal-foot .btn {
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  width:100%;min-width:0;min-height:47px;margin:0;padding:9px 12px;
  text-align:center;white-space:normal;line-height:1.25;
  font-size:13px;font-weight:750;border-radius:9px;cursor:pointer;
}
body[data-route="content"] #modal-root .content-draft-media-modal .modal-foot .btn.danger {
  border:1px solid #8b5663;background:#30212e;color:#fff;
}
body[data-route="content"] #modal-root .content-draft-media-modal .modal-foot .btn.primary {
  border:1px solid #379cfa;background:#1689ef;color:#fff;
}
body[data-route="content"] #modal-root .content-draft-media-modal .modal-foot .content-ui-icon {
  width:17px;height:17px;flex:0 0 auto;
}
