/* TikTok: lịch đăng và khung xem trước ở cùng cột theo đúng thứ tự. */
body[data-route="content"] #botviet-tiktok-studio-v7 .tt81-media-panel .tt81-schedule-shell {
  margin-top:15px;width:100%;box-sizing:border-box;
}
body[data-route="content"] #botviet-tiktok-studio-v7 .tt81-media-panel .tt81-preview-card {
  margin-top:14px;width:100%;box-sizing:border-box;
}
body[data-route="content"] #botviet-tiktok-studio-v7 .tt81-preview-note {
  display:none;
}

/* Xác nhận cần tích trước khi nút đăng có thể bấm. */
body[data-route="content"] #botviet-tiktok-studio-v7 .tt7-consent {
  position:relative;z-index:2;pointer-events:auto!important;
  align-items:center;gap:11px;padding:14px;border:1px solid #325471;
  border-radius:10px;cursor:pointer;font-size:13px;line-height:1.5;
}
body[data-route="content"] #botviet-tiktok-studio-v7 .tt7-consent:has(input:checked) {
  border-color:#299fff;background:#0b2943;color:#eff9ff;
}
body[data-route="content"] #botviet-tiktok-studio-v7 .tt7-consent input {
  appearance:none;display:grid;place-items:center;flex:0 0 19px;
  pointer-events:auto!important;touch-action:manipulation;
  width:19px;height:19px;margin:0;border:1.5px solid #7495af;
  border-radius:5px;background:#061422;cursor:pointer;
}
body[data-route="content"] #botviet-tiktok-studio-v7 .tt7-consent input:checked {
  border-color:#198ffa;background:#168bfa;
}
body[data-route="content"] #botviet-tiktok-studio-v7 .tt7-consent input:checked::after {
  content:'✓';font-size:15px;line-height:1;color:#fff;font-weight:900;
}
body[data-route="content"] #botviet-tiktok-studio-v7 .tt7-consent input:focus-visible {
  outline:2px solid #8bdcff;outline-offset:3px;
}
body[data-route="content"] #botviet-tiktok-studio-v7 .tt7-publish:disabled {
  opacity:.48;cursor:not-allowed;filter:saturate(.65);
}
body[data-route="content"] #botviet-tiktok-studio-v7 .tt94-upload-note {
  display:block;margin:9px 0 4px;color:#b4cfe3;font-size:11px;line-height:1.5;
}

/* Hashtag, @ tài khoản đã lưu và emoji mở ngay tại vùng viết mô tả. */
body[data-route="content"] #botviet-tiktok-studio-v7 .tt7-tools {
  position:relative;z-index:9;
}
body[data-route="content"] #botviet-tiktok-studio-v7 .tt7-tool[aria-expanded="true"] {
  color:#fff;border-color:#2c9cfa;background:#113b5e;
}
body[data-route="content"] #botviet-tiktok-studio-v7 .tt94-tool-menu {
  position:absolute;top:calc(100% + 7px);left:0;z-index:10;
  width:min(420px,100%);max-width:calc(100vw - 46px);box-sizing:border-box;
  padding:15px;border:1px solid #3676aa;border-radius:13px;
  background:#0b2239;box-shadow:0 20px 50px rgba(0,4,15,.55);
  color:#eaf5ff;
}
body[data-route="content"] #botviet-tiktok-studio-v7 .tt94-tool-menu strong {
  display:block;margin:0 0 11px;font-size:14px;
}
body[data-route="content"] #botviet-tiktok-studio-v7 .tt94-tool-entry {
  display:flex;gap:8px;
}
body[data-route="content"] #botviet-tiktok-studio-v7 .tt94-tool-entry input {
  min-width:0;flex:1;height:40px;padding:0 11px;border:1px solid #386688;
  border-radius:8px;background:#07192d;color:#fff;font-size:14px;
}
body[data-route="content"] #botviet-tiktok-studio-v7 .tt94-tool-entry button {
  min-width:67px;padding:0 12px;border:1px solid #2b9bf3;
  border-radius:8px;background:#1187e8;color:#fff;font-weight:700;cursor:pointer;
}
body[data-route="content"] #botviet-tiktok-studio-v7 .tt94-tool-menu small {
  display:block;margin-top:10px;color:#aac6dc;font-size:11px;line-height:1.5;
}
body[data-route="content"] #botviet-tiktok-studio-v7 .tt94-emoji-grid {
  display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px;
  max-height:242px;overflow-y:auto;
}
body[data-route="content"] #botviet-tiktok-studio-v7 .tt94-emoji-grid button {
  display:grid;place-items:center;min-width:0;aspect-ratio:1/1;
  padding:0;border:1px solid #27465f;border-radius:8px;
  background:#0a1c30;font-size:23px;cursor:pointer;
}
body[data-route="content"] #botviet-tiktok-studio-v7 .tt94-emoji-grid button:hover,
body[data-route="content"] #botviet-tiktok-studio-v7 .tt94-mention-list button:hover {
  border-color:#289cf3;background:#17466b;
}
body[data-route="content"] #botviet-tiktok-studio-v7 .tt94-mention-list {
  display:flex;flex-wrap:wrap;gap:6px;margin-top:10px;max-height:100px;overflow-y:auto;
}
body[data-route="content"] #botviet-tiktok-studio-v7 .tt94-mention-list button {
  padding:6px 9px;border:1px solid #355a79;border-radius:7px;
  background:#0c2742;color:#d8f2ff;cursor:pointer;font-size:12px;
}
@media(max-width:480px){
  body[data-route="content"] #botviet-tiktok-studio-v7 .tt94-emoji-grid {
    grid-template-columns:repeat(6,minmax(0,1fr));
  }
}
/* Native route can use history navigation without a body[data-route] marker. */
#botviet-tiktok-studio-v7 .tt7-consent {
  position:relative;z-index:2;pointer-events:auto!important;cursor:pointer;
}
#botviet-tiktok-studio-v7 .tt7-consent input[data-tt7-consent] {
  pointer-events:auto!important;touch-action:manipulation;cursor:pointer;
}
#botviet-tiktok-studio-v7 .tt7-consent span {pointer-events:none}
#botviet-tiktok-studio-v7 .tt7-publish:not(:disabled) {cursor:pointer}
