/* Post to TikTok (Direct Post screen + the Upload sheet's TikTok panel). */
.tt{display:flex;flex-direction:column;gap:12px}
.tt-who{display:flex;align-items:center;gap:10px}
.tt-av{width:36px;height:36px;border-radius:50%;object-fit:cover;flex:none;background:var(--fill)}
.tt-name{display:flex;flex-direction:column;min-width:0;line-height:1.25}
.tt-name b{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tt-name small{color:var(--ink-2);font-size:13px}
.tt-stop{border:1px solid var(--edge);border-radius:8px;padding:12px 14px;background:var(--bad-bg,#fde8ec);color:var(--bad-ink,#b3093c);font-weight:500}
.tt .field.tt-off{opacity:.45;cursor:not-allowed}
.tt .field.tt-off .sw{cursor:not-allowed}
.tt .field.tt-tick{gap:10px;justify-content:flex-start}
.tt .field.tt-tick input{width:18px;height:18px;margin:0;accent-color:var(--ink);flex:none}
.tt .field.tt-tick.is-off{opacity:.45}
.tt .select{max-width:65%}
.tt .select select{color:var(--ink)}
.tt .select select:invalid,.tt .select select.tt-empty{color:var(--ink-2)}
.tt-note{margin:0;font-size:13px;color:var(--ink-2);line-height:1.4}
.tt-note.bad{color:var(--bad-ink,#b3093c)}
.tt-consent{margin:0;font-size:13px;color:var(--ink-2);line-height:1.45}
.tt-consent a{color:var(--ink);text-decoration:underline;text-underline-offset:2px}
.tt-mode{margin-bottom:8px}
[data-tt-draftnote]{margin:0 4px 12px}
[data-tt-load]:not(:empty){margin-top:4px}

/* the standalone screen */
.tt-grid{display:grid;grid-template-columns:minmax(220px,300px) minmax(0,460px);gap:28px;align-items:start}
.tt-vid{aspect-ratio:9/16;border-radius:8px;overflow:hidden;background:#000;border:1px solid var(--edge);display:flex;align-items:center;justify-content:center}
.tt-vid video,.tt-vid img{width:100%;height:100%;object-fit:cover;display:block}
.tt-side{display:flex;flex-direction:column;gap:14px;min-width:0}
.tt-cap{position:relative;padding:10px 14px 26px}
.tt-cap textarea{width:100%;border:0;background:transparent;outline:none;resize:vertical;font:inherit;font-size:15px;line-height:1.45;color:var(--ink)}
.tt-cap .count{position:absolute;right:12px;bottom:8px;font-size:12px;color:var(--ink-3)}
.tt-bar{display:flex;gap:8px;justify-content:flex-end}
.tt-bar .pill.primary:disabled{opacity:.45;cursor:not-allowed}
.tt-sent .row{gap:12px}
.tt-st{color:var(--ink-2);font-size:13px;margin-top:2px}
.tt-foot{margin-top:16px}
body:has(.main) .tt .group,body:has(.main) .tt-cap{border:1px solid var(--edge);border-radius:8px;box-shadow:none}

@media (max-width:720px){
  .tt-grid{grid-template-columns:1fr;gap:16px}
  .tt-media{max-width:150px;margin:0 auto;width:100%}
  .tt-bar{position:sticky;bottom:calc(env(safe-area-inset-bottom) + 76px);background:var(--bg);padding:8px 0}
  .tt-bar .pill{flex:1;justify-content:center}
}
.tt-flownote{margin:0 4px 12px}
/* the Upload page hides every .pv input (the tile tick); the TikTok panel's own controls must stay visible */
.pv .tt input{position:relative;opacity:1;pointer-events:auto}
