/* TikTok: the For You preview, the photo carousel tray, the post settings panel, and the inbox summary. */
:root {
  --tt-red: #fe2c55;
  --tt-cyan: #25f4ee;
  --tt-ink: #161823;
}

/* ---------- Preview: For You feed ---------- */
.tt-card { font-family: "Proxima Nova", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; }
.tt-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.32), transparent 14%, transparent 60%, rgba(0,0,0,.62)); }
.tt-top { position: absolute; top: 10px; left: 14px; right: 14px; z-index: 3; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.tt-top > svg, .tt-live svg { width: 26px; height: 26px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.3)); }
.tt-live { display: grid; place-items: center; }
.tt-live svg { stroke-width: 1.6; }
.tt-tabs { display: flex; gap: 18px; font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.tt-tabs span { opacity: .66; }
.tt-tabs b { position: relative; font-weight: 700; }
.tt-tabs b::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 28px; height: 3px; margin-left: -14px; border-radius: 2px; background: #fff; }
.tt-badge { position: absolute; top: 50px; left: 50%; z-index: 3; display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px 5px 9px; border-radius: 999px; background: rgba(22,24,35,.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 12px; font-weight: 600; white-space: nowrap; transform: translateX(-50%); pointer-events: none; }
.tt-badge svg { width: 13px; height: 13px; stroke-width: 2.2; }
.tt-card .pv-sound { top: 88px; z-index: 3; }

.tt-rail { position: absolute; right: 8px; bottom: 18px; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 20px; pointer-events: none; }
.tt-rail > span { display: grid; place-items: center; }
.tt-rail > span > svg { width: 34px; height: 34px; fill: #fff; stroke: none; filter: drop-shadow(0 1px 3px rgba(0,0,0,.35)); }
.tt-rail .tt-cut { fill: #1f1f1f; opacity: .55; }
.tt-rail-me { position: relative; margin-bottom: 6px; }
.ph.tt-rail-ph { width: 46px; height: 46px; font-size: 15px; border: 1.5px solid #fff; text-shadow: none; }
.tt-rail-me i { position: absolute; left: 50%; bottom: -9px; width: 20px; height: 20px; margin-left: -10px; display: grid; place-items: center; border-radius: 50%; background: var(--tt-red); color: #fff; font-style: normal; font-size: 16px; font-weight: 700; line-height: 1; }
.tt-disc { width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle, #3a3a3a 30%, #151515 31%, #151515 58%, #2b2b2b 60%, #111 100%); animation: tt-spin 5s linear infinite; }
.ph.tt-disc-ph { width: 26px; height: 26px; font-size: 9px; }
@keyframes tt-spin { to { transform: rotate(360deg); } }

.tt-meta { position: absolute; left: 14px; right: 74px; bottom: 18px; z-index: 3; display: flex; flex-direction: column; gap: 6px; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.tt-handle { font-size: 16px; font-weight: 700; letter-spacing: -.005em; }
.tt-title { font-size: 15px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.tt-caption { font-size: 14.5px; line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.tt-caption.expanded { display: block; white-space: pre-wrap; max-height: 240px; overflow-y: auto; scrollbar-width: none; }
.tt-caption.is-empty { opacity: .65; font-style: italic; }
.tt-caption .pv-link { color: inherit; font-weight: 700; }
.tt-sound { display: flex; align-items: center; gap: 7px; font-size: 13.5px; min-width: 0; }
.tt-sound svg { width: 14px; height: 14px; flex: 0 0 14px; }
.tt-sound > span { overflow: hidden; white-space: nowrap; min-width: 0; max-width: 200px; }
.tt-sound-text { display: inline-block; }
.tt-sound > span.is-long .tt-sound-text { padding-right: 40px; animation: tt-marquee 9s linear infinite; }
@keyframes tt-marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* Photo carousels: a sideways scroller that snaps a photo at a time, like the app. */
.tt-photos { position: absolute; inset: 0; background: #000; }
.tt-track { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; outline: none; }
.tt-track::-webkit-scrollbar { display: none; }
.tt-slide { flex: 0 0 100%; height: 100%; margin: 0; display: grid; place-items: center; scroll-snap-align: center; scroll-snap-stop: always; }
.tt-slide img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.tt-count { position: absolute; top: 50px; right: 12px; z-index: 3; padding: 3px 9px; border-radius: 999px; background: rgba(22,24,35,.5); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; pointer-events: none; }
.tt-badge ~ .tt-count, .tt-photos:has(~ .tt-badge) .tt-count { top: 88px; }
.tt-dots { position: absolute; left: 0; right: 0; bottom: 8px; z-index: 4; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.tt-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.42); transition: width .3s var(--ease), background .3s; }
.tt-dots i.on { width: 16px; border-radius: 3px; background: #fff; }
.tt-nav { position: absolute; top: 50%; z-index: 4; width: 34px; height: 34px; margin-top: -17px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; opacity: 0; transition: opacity .2s, background .2s, transform .2s var(--ease); }
.tt-nav svg { width: 18px; height: 18px; stroke-width: 2.4; }
.tt-nav.prev { left: 10px; } .tt-nav.prev svg { transform: scaleX(-1); }
.tt-nav.next { right: 10px; }
.tt-photos:hover .tt-nav, .tt-nav:focus-visible { opacity: 1; }
.tt-nav:hover { background: rgba(255,255,255,.34); transform: scale(1.06); }
@media (hover: none) { .tt-nav { display: none; } }
.pv-mobile .tt-card.is-photo .tt-meta, .pv-mobile .tt-card.is-photo .tt-rail { bottom: 26px; }

.tt-tabbar { flex: 0 0 82px; display: flex; justify-content: space-around; align-items: flex-start; padding: 8px 6px 0; background: #000; color: #fff; border-top: 1px solid #1f1f1f; }
.tt-tabbar > span { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 56px; opacity: .6; }
.tt-tabbar > span.on { opacity: 1; }
.tt-tabbar svg { width: 25px; height: 25px; }
.tt-tabbar span.on svg { fill: #fff; stroke: none; }
.tt-tabbar small { font-size: 10.5px; font-weight: 600; }
.ph.tt-tab-ph { width: 25px; height: 25px; font-size: 9px; }
.tt-create { justify-content: center; height: 36px; opacity: 1 !important; }
.tt-create i { position: relative; width: 44px; height: 29px; border-radius: 9px; background: #fff; box-shadow: -3px 0 0 var(--tt-cyan), 3px 0 0 var(--tt-red); }
.tt-create i::before, .tt-create i::after { content: ""; position: absolute; left: 50%; top: 50%; background: #000; border-radius: 1px; transform: translate(-50%, -50%); }
.tt-create i::before { width: 15px; height: 3px; }
.tt-create i::after { width: 3px; height: 15px; }

/* TikTok on the web: the video sits in a rounded card with round action buttons beside it. */
.tt-desktop .pv-reel-desktop { align-items: flex-end; }
.tt-desktop .tt-card { flex: 0 0 300px; aspect-ratio: 9 / 16; border-radius: 16px; }
.tt-desktop .tt-card .pv-sound { top: 12px; }
.tt-desktop .tt-badge { top: 14px; }
.tt-desktop .tt-count { top: 14px; }
.tt-desktop .tt-meta { right: 14px; bottom: 22px; }
.tt-desk-side { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.tt-desk-side .tt-rail { position: static; gap: 12px; }
.tt-desk-side .tt-rail > span { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.12); }
.tt-desk-side .tt-rail > span > svg { width: 24px; height: 24px; filter: none; }

/* ---------- Composer: photo carousel tray ---------- */
.tt-tray { padding: 12px; border: 1.5px dashed var(--line-2); border-radius: 16px; background: var(--surface-2); transition: border-color .2s, background .2s; }
.tt-tray.dragging { border-color: var(--accent); background: #fffaf8; }
.tt-tray-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 2px 10px; }
.tt-tray-count { font-size: 13px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tt-tray-tip { font-size: 12px; color: var(--faint); }
.tt-tray-grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tt-tray-grid.is-empty { display: block; }
.tt-tile { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: #efeae2; outline: none; cursor: grab; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: transform .32s var(--ease), box-shadow .25s, opacity .2s; }
.tt-tile.is-new { animation: tt-tile-in .35s var(--ease) both; }
@keyframes tt-tile-in { from { opacity: 0; transform: scale(.92); } }
.tt-tile img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.tt-tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(29,27,24,.08); pointer-events: none; transition: box-shadow .25s var(--ease); }
.tt-tile.is-cover::after { box-shadow: inset 0 0 0 2.5px var(--accent), inset 0 0 0 4px #fff; }
.tt-tile:focus-visible::after { box-shadow: inset 0 0 0 2.5px var(--blue), inset 0 0 0 4px #fff; }
.tt-tile.is-dragging { z-index: 5; cursor: grabbing; transition: box-shadow .25s; box-shadow: 0 18px 36px -12px rgba(29,27,24,.45); animation: none; }
.is-sorting .tt-tile:not(.is-dragging) { cursor: grabbing; }
.is-sorting .tt-tile button { visibility: hidden; }
.tt-tile-num { position: absolute; top: 6px; left: 6px; min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: rgba(22,24,35,.62); color: #fff; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); pointer-events: none; }
.tt-tile-remove { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(22,24,35,.62); color: #fff; opacity: 0; transform: scale(.85); transition: opacity .2s, transform .2s var(--ease), background .2s; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tt-tile-remove svg { width: 13px; height: 13px; stroke-width: 2.6; }
.tt-tile-remove:hover { background: var(--red); }
.tt-tile-cover { position: absolute; left: 5px; right: 5px; bottom: 5px; height: 24px; padding: 0 6px; display: flex; align-items: center; justify-content: center; gap: 4px; border: 0; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); font-size: 11px; font-weight: 700; white-space: nowrap; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .25s var(--ease), background .2s, color .2s; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.tt-tile-cover svg { width: 12px; height: 12px; flex: 0 0 12px; stroke-width: 2.2; }
.tt-tile.is-cover .tt-tile-cover { opacity: 1; transform: none; background: var(--accent); color: #fff; }
.tt-tile.is-cover .tt-tile-cover svg { fill: currentColor; }
.tt-tile:hover .tt-tile-remove, .tt-tile:focus-within .tt-tile-remove, .tt-tile:hover .tt-tile-cover, .tt-tile:focus-within .tt-tile-cover { opacity: 1; transform: none; }
@media (hover: none) {
  .tt-tile-remove { opacity: 1; transform: none; }
  .tt-tile-cover { opacity: 1; transform: none; background: rgba(255,255,255,.8); }
  .tt-tile-cover span { display: none; }
  .tt-tile-cover { left: auto; width: 24px; padding: 0; }
  .tt-tile.is-cover .tt-tile-cover { left: 5px; width: auto; padding: 0 6px; }
  .tt-tile.is-cover .tt-tile-cover span { display: inline; }
}
.tt-tile.is-uploading { cursor: progress; }
.tt-tile.is-uploading img { filter: saturate(.4) brightness(.8); }
.tt-tile-spin { position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; }
.tt-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1.5px dashed var(--line-2); background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; animation: none; transition: border-color .2s, color .2s, background .2s; }
.tt-add::after { display: none; }
.tt-add svg { width: 22px; height: 22px; }
.tt-add:hover, .tt-add:focus-visible { border-color: var(--accent); color: var(--accent); background: #fffaf8; }
.tt-add-empty { width: 100%; min-height: 168px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 18px; border: 0; border-radius: 12px; background: none; text-align: center; color: var(--ink-2); }
.tt-add-empty strong { font-size: 14.5px; }
.tt-add-empty small { color: var(--faint); font-size: 12.5px; }
.tt-add-empty:hover .upload-icon, .tt-tray.dragging .upload-icon { transform: translateY(-4px); }
#photoNote { margin: 10px 2px 0; }
.format-hint.is-warn, .field-foot .is-over { color: var(--red); }

/* ---------- Composer: TikTok post settings ---------- */
.external-post-options.has-tiktok { padding: 0; border: 0; background: none; }
.external-post-options .yt-options { margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.external-post-options .yt-options .field-label { margin-top: 0; }
.tt-settings { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.tt-set-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: linear-gradient(135deg, #16182305, #fe2c550d 60%, #25f4ee12); border-bottom: 1px solid var(--line); }
.ph.tt-set-avatar { width: 40px; height: 40px; flex: 0 0 40px; font-size: 14px; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--tt-ink); }
.tt-set-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.tt-set-who small { font-size: 11.5px; color: var(--faint); font-weight: 500; }
.tt-set-who strong { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-set-who span { font-size: 12.5px; color: var(--muted); }
.tt-set-logo { width: 28px; height: 28px; margin-left: auto; flex: 0 0 28px; border-radius: 8px; overflow: hidden; }
.tt-set-logo svg, .tt-set-logo img { width: 100%; height: 100%; display: block; }
.tt-settings > :not(.tt-set-head) { margin-left: 16px; margin-right: 16px; }
.tt-settings > :nth-child(2) { margin-top: 14px; }
.tt-settings > :last-child { margin-bottom: 16px; }
.tt-alert { padding: 11px 13px; border-radius: 12px; background: var(--red-soft); color: var(--red); font-size: 13px; font-weight: 500; line-height: 1.4; }
.tt-settings.is-error .btn { margin-top: 10px; }
.tt-settings.is-loading .ph.tt-set-avatar { background: #efeae2; }
.tt-skel { display: block; height: 44px; margin-top: 14px; border-radius: 12px; background: linear-gradient(90deg, #f3efe8 25%, #faf7f2 50%, #f3efe8 75%); background-size: 200% 100%; animation: tt-shimmer 1.3s linear infinite; }
.tt-skel.short { width: 60%; height: 16px; margin-bottom: 16px; }
@keyframes tt-shimmer { to { background-position: -200% 0; } }

.tt-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tt-mode { position: relative; cursor: pointer; }
.tt-mode input { position: absolute; opacity: 0; pointer-events: none; }
.tt-mode-box { height: 100%; display: flex; flex-direction: column; gap: 3px; padding: 11px 12px 11px 34px; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--surface-2); transition: border-color .2s, background .2s, box-shadow .2s; }
.tt-mode-box::before { content: ""; position: absolute; left: 12px; top: 13px; box-sizing: border-box; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid #cfc7ba; background: #fff; transition: border .2s var(--ease); }
.tt-mode-box b { font-size: 13.5px; }
.tt-mode-box small { font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.tt-mode input:checked + .tt-mode-box { border-color: var(--tt-ink); background: #fff; box-shadow: 0 4px 14px -8px rgba(22,24,35,.4); }
.tt-mode input:checked + .tt-mode-box::before { border: 4.5px solid var(--tt-ink); }
.tt-mode input:focus-visible + .tt-mode-box { box-shadow: 0 0 0 3px rgba(54,103,209,.28); }
.tt-mode.is-locked { cursor: not-allowed; }
.tt-mode.is-locked .tt-mode-box { opacity: .6; }

.tt-set-block { margin-top: 16px; }
.tt-set-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.tt-set-label span { font-weight: 500; color: var(--faint); margin-left: 4px; }
.tt-set-hint { margin-top: 7px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.tt-set-hint.is-warn, .tt-consent-hint { color: var(--amber); }
.tt-set-foot { margin-top: 10px; font-size: 12px; line-height: 1.4; color: var(--faint); }

.tt-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.tt-pill { position: relative; cursor: pointer; }
.tt-pill input { position: absolute; opacity: 0; pointer-events: none; }
.tt-pill span { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px 0 11px; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--surface-2); font-size: 13px; font-weight: 600; color: var(--ink-2); transition: border-color .2s, background .2s, color .2s, transform .2s var(--ease); }
.tt-pill svg { width: 15px; height: 15px; stroke-width: 2; }
.tt-pill:hover span { border-color: #cfc7ba; }
.tt-pill input:checked + span { border-color: var(--tt-ink); background: var(--tt-ink); color: #fff; }
.tt-pill input:active + span { transform: scale(.96); }
.tt-pill input:focus-visible + span { box-shadow: 0 0 0 3px rgba(54,103,209,.28); }
.tt-pill.is-locked { cursor: not-allowed; }
.tt-pill.is-locked span { opacity: .45; text-decoration: line-through; }

.tt-title-field { position: relative; display: block; }
.tt-title-field .input { padding-right: 58px; }
.tt-title-count { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; pointer-events: none; }
.tt-title-count.is-near { color: var(--amber); }
.tt-fit { margin-top: 12px; padding: 9px 12px; border-radius: 12px; background: #f5f2ec; font-size: 12.5px; color: var(--muted); }
.tt-fit.is-over { background: var(--red-soft); color: var(--red); font-weight: 600; }

.tt-switches { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tt-switch-row { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 9px 12px 9px 14px; cursor: pointer; transition: background .2s; }
.tt-switch-row + .tt-switch-row, .tt-disclose + .tt-switch-row, .tt-switch-row + .tt-disclose { border-top: 1px solid var(--line); }
.tt-switch-row:hover { background: var(--surface-2); }
.tt-switch-row.is-locked { cursor: not-allowed; }
.tt-switch-row.is-locked b { color: var(--faint); }
.tt-switch-text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.tt-switch-text b { font-size: 13.5px; font-weight: 600; }
.tt-switch-text small { font-size: 12px; color: var(--muted); margin-top: 1px; }
.tt-switch { appearance: none; -webkit-appearance: none; position: relative; width: 40px; height: 24px; flex: 0 0 40px; margin: 0; border-radius: 999px; background: #ddd6cb; cursor: inherit; transition: background .3s var(--ease); }
.tt-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .35s var(--ease); }
.tt-switch:checked { background: var(--tt-ink); }
.tt-switch:checked::after { transform: translateX(16px); }
.tt-switch:focus-visible { box-shadow: 0 0 0 3px rgba(54,103,209,.28); outline: none; }
.tt-switch:disabled { opacity: .45; }

.tt-disclose { display: grid; gap: 8px; padding: 12px; background: var(--surface-2); animation: fade .3s var(--ease); }
.tt-choice { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.tt-choice input { width: 16px; height: 16px; margin: 1px 0 0; flex: 0 0 16px; accent-color: var(--tt-ink); }
.tt-choice span { display: flex; flex-direction: column; line-height: 1.3; }
.tt-choice b { font-size: 13.5px; }
.tt-choice small { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tt-choice:has(input:checked) { border-color: var(--tt-ink); box-shadow: 0 4px 14px -8px rgba(22,24,35,.35); }
.tt-choice.is-locked { opacity: .5; cursor: not-allowed; }
.tt-disclose .tt-set-hint { margin: 0 2px; }
.tt-disclose .tt-set-hint:empty { display: none; }

.tt-inbox { display: flex; gap: 12px; margin-top: 16px; padding: 13px 14px; border-radius: 14px; background: linear-gradient(135deg, #eefcfb, #fff1f4); }
.tt-inbox-icon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 10px; background: #fff; color: var(--tt-ink); box-shadow: var(--shadow-sm); }
.tt-inbox-icon svg { width: 19px; height: 19px; }
.tt-inbox p { font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.tt-inbox b { display: block; margin-bottom: 2px; font-size: 13.5px; color: var(--ink); }

.tt-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 13px; border-radius: 12px; background: #f5f2ec; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.tt-consent input { width: 17px; height: 17px; margin: 1px 0 0; flex: 0 0 17px; accent-color: var(--tt-ink); }
.tt-consent a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(29,27,24,.3); text-underline-offset: 2px; }
.tt-consent a:hover { text-decoration-color: currentColor; }
.tt-consent:has(input:checked) { background: #eef7f1; }

@media (max-width: 420px) {
  .tt-modes { grid-template-columns: 1fr; }
  .tt-tray-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Posts inbox ---------- */
.q-thumb-wrap { position: relative; display: block; flex: 0 0 auto; }
.q-stack { position: absolute; right: -4px; bottom: -4px; display: inline-flex; align-items: center; gap: 2px; height: 18px; padding: 0 5px 0 4px; border-radius: 999px; background: var(--tt-ink); color: #fff; font-style: normal; font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--surface); }
.q-stack svg { width: 11px; height: 11px; stroke-width: 2.4; }
.chip.sent_to_tiktok { background: #e8f9f8; color: #0b7f7b; }
.tt-summary { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 2px; }
.tt-chip { display: inline-flex; align-items: center; max-width: 100%; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-chip.is-privacy { background: var(--tt-ink); border-color: var(--tt-ink); color: #fff; }
.tt-chip.is-draft { background: #e8f9f8; border-color: #c6efed; color: #0b7f7b; }
.tt-chip.is-label { background: var(--amber-soft); border-color: #f3dfb4; color: var(--amber); }
.tt-chip.is-missing { background: var(--red-soft); border-color: #f7cdc6; color: var(--red); }
.tt-chip.is-title { font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  .tt-disc, .tt-sound > span.is-long .tt-sound-text, .tt-skel { animation: none; }
  .tt-tile { animation: none; transition: none; }
}
