/* ============================================================
   topdevphone — Tweeder app styles
   Bird-blue identity (#1da1f2 → #0b6dbd). Everything is driven by
   the base.css CSS vars so dark AND light themes both read right.
   ============================================================ */

.tw-scroll { padding: 0 0 96px; }
.tw-scroll-thread { padding-bottom: 14px; }

/* ---------- header ---------- */
.tw-header .ah-title { letter-spacing: -0.4px; }
.tw-me-btn {
  width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}
.tw-me-btn:active { transform: scale(0.93); }

/* ---------- first-run claim ---------- */
.tw-claim { padding: 8px 22px 40px; text-align: center; }
.tw-claim-logo {
  width: 72px; height: 72px; border-radius: 22px; margin: 22px auto 18px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 38px;
  box-shadow: 0 10px 26px rgba(29, 161, 242, 0.32);
}
.tw-claim h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.4px; }
.tw-claim p {
  font-size: 13px; color: var(--text-secondary);
  margin: 8px 4px 22px; line-height: 1.45;
}
.tw-handle-field {
  display: flex; align-items: center; gap: 2px;
  background: var(--bg-tertiary); border-radius: 12px;
  padding: 0 12px; border: 1.5px solid transparent;
}
.tw-handle-field:focus-within { border-color: #1da1f2; }
.tw-handle-field span { font-size: 16px; font-weight: 800; color: var(--text-tertiary); }
.tw-handle-field input {
  flex: 1; background: none; border: 0; outline: none;
  padding: 12px 2px; font-size: 16px; font-weight: 700;
  color: var(--text-primary); letter-spacing: 0.2px;
}
.tw-handle-field input::placeholder { color: var(--text-tertiary); font-weight: 500; }
.tw-hint {
  font-size: 11.5px; color: var(--text-tertiary);
  margin: 7px 2px 14px; text-align: left;
}
.tw-hint.bad { color: var(--accent-red); }
.tw-claim .tw-display { text-align: left; }
.tw-claim-btn {
  margin-top: 18px;
  background: linear-gradient(140deg, #1da1f2, #0b6dbd);
}

/* ---------- post card ---------- */
.tw-post {
  display: flex; gap: 11px;
  padding: 13px 14px 9px;
  border-bottom: 1px solid var(--separator);
  cursor: pointer;
  transition: background 0.12s;
}
.tw-post:active { background: color-mix(in srgb, var(--bg-secondary) 60%, transparent); }
.tw-post.lead { cursor: default; padding-bottom: 4px; }
.tw-post.lead:active { background: none; }
.tw-post.reply { padding-left: 22px; background: color-mix(in srgb, var(--bg-secondary) 35%, transparent); }

.tw-av {
  width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14.5px; font-weight: 800; letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.tw-post.reply .tw-av { width: 34px; height: 34px; font-size: 12.5px; }
.tw-av:active { transform: scale(0.94); }

.tw-main { flex: 1; min-width: 0; }
.tw-head { display: flex; align-items: baseline; gap: 5px; min-width: 0; }
.tw-name {
  font-size: 14.5px; font-weight: 800; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46%;
}
.tw-handle, .tw-dot, .tw-time {
  font-size: 12.5px; color: var(--text-secondary); flex: 0 0 auto;
}
.tw-handle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 42%; }

.tw-text {
  font-size: 14px; line-height: 1.42; color: var(--text-primary);
  margin-top: 3px; white-space: pre-wrap; overflow-wrap: anywhere;
}
.tw-text.lead { font-size: 16.5px; line-height: 1.4; margin-top: 6px; }
.tw-full-time { font-size: 12px; color: var(--text-tertiary); margin-top: 9px; }

.tw-media {
  display: block; width: 100%; max-height: 210px; object-fit: cover;
  border-radius: 14px; margin-top: 9px;
  border: 1px solid var(--separator); background: var(--bg-tertiary);
}
.tw-media-ph {
  height: 120px; display: flex; align-items: center; justify-content: center;
  color: var(--text-tertiary); font-size: 30px;
}

/* action row */
.tw-actions { display: flex; align-items: center; gap: 18px; margin-top: 8px; }
.tw-act-sp { flex: 1; }
.tw-act {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: var(--text-secondary);
  padding: 5px 2px; border-radius: 8px;
  transition: color 0.15s, transform 0.1s;
}
.tw-act .ic { width: 16px; height: 16px; }
.tw-act:active { transform: scale(0.9); }
.tw-act.like.on { color: var(--accent-pink); }
.tw-act.danger { color: var(--text-tertiary); }
.tw-act.danger:active { color: var(--accent-red); }
.tw-act.mod { color: var(--accent-orange); }

/* load more */
.tw-more-row { padding: 16px 14px 26px; text-align: center; }
.tw-more {
  font-size: 13px; font-weight: 700; color: #1da1f2;
  background: color-mix(in srgb, #1da1f2 14%, transparent);
  padding: 9px 20px; border-radius: 20px;
}
.tw-more:disabled { opacity: 0.5; }

/* ---------- floating compose button ---------- */
.tw-fab {
  position: absolute; right: 16px; bottom: 26px; z-index: 5;
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px;
  background: linear-gradient(140deg, #1da1f2, #0b6dbd);
  box-shadow: 0 8px 20px rgba(11, 109, 189, 0.45);
  transition: transform 0.15s;
}
.tw-fab:active { transform: scale(0.9); }

/* ---------- compose sheet ---------- */
.tw-sheet-wrap { position: absolute; inset: 0; z-index: 40; display: flex; flex-direction: column; }
.tw-sheet-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); }
.tw-sheet {
  position: relative; margin-top: auto;
  background: var(--bg-elevated); color: var(--text-primary);
  border-radius: 22px 22px 0 0; padding: 12px 14px 18px;
  animation: twSheetUp 0.26s cubic-bezier(0.32, 0.72, 0.35, 1);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35);
}
@keyframes twSheetUp { from { transform: translateY(70%); opacity: 0.6; } }
.tw-sheet-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tw-sheet-title { flex: 1; text-align: center; font-size: 14px; font-weight: 800; }
.tw-sheet-cancel { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.tw-sheet-post {
  font-size: 13.5px; font-weight: 800; color: #fff;
  background: linear-gradient(140deg, #1da1f2, #0b6dbd);
  padding: 7px 16px; border-radius: 18px;
}
.tw-sheet-post:disabled { opacity: 0.4; }
.tw-sheet-body { display: flex; gap: 10px; }
.tw-sheet-av {
  width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 800;
}
.tw-sheet-input {
  flex: 1; min-height: 108px; max-height: 190px;
  background: none; border: 0; outline: none; resize: none;
  font-size: 15.5px; line-height: 1.4; color: var(--text-primary);
  padding-top: 6px;
}
.tw-sheet-input::placeholder { color: var(--text-tertiary); }
.tw-sheet-media:empty { display: none; }
.tw-media-chip { position: relative; margin: 8px 0 2px; }
.tw-media-chip .tw-media { max-height: 150px; margin-top: 0; }
.tw-media-chip button {
  position: absolute; top: 8px; right: 8px;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.62); color: #fff; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.tw-sheet-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--separator);
}
.tw-sheet-photo {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 700; color: #1da1f2;
  padding: 6px 12px; border-radius: 16px;
  background: color-mix(in srgb, #1da1f2 12%, transparent);
}
.tw-sheet-photo .ic { width: 17px; height: 17px; }
.tw-count {
  font-size: 12.5px; font-weight: 800; color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
  min-width: 34px; text-align: right;
}
.tw-count.warn { color: var(--accent-orange); }
.tw-count.bad { color: var(--accent-red); }

/* ---------- thread ---------- */
.tw-thread-label {
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-secondary);
  padding: 12px 14px 8px;
  border-top: 1px solid var(--separator);
  border-bottom: 1px solid var(--separator);
  background: color-mix(in srgb, var(--bg-secondary) 45%, transparent);
}
.tw-noreplies {
  padding: 34px 24px; text-align: center;
  color: var(--text-tertiary); font-size: 13px;
}

/* reply composer */
.tw-composer {
  flex: 0 0 auto; display: flex; align-items: center; gap: 9px;
  padding: 9px 12px 20px;
  background: color-mix(in srgb, var(--bg-secondary) 90%, transparent);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--separator);
}
.tw-composer-av {
  width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto;
  background: var(--bg-tertiary);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11.5px; font-weight: 800;
}
.tw-composer-input {
  flex: 1; min-width: 0; border: 0; outline: none;
  background: var(--bg-tertiary); color: var(--text-primary);
  border-radius: 18px; padding: 10px 14px; font-size: 14px;
}
.tw-composer-input::placeholder { color: var(--text-tertiary); }
.tw-composer-send {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px;
  background: linear-gradient(140deg, #1da1f2, #0b6dbd);
}
.tw-composer-send:active { transform: scale(0.92); }

/* ---------- profile ---------- */
.tw-banner {
  height: 104px; width: 100%;
  position: relative;
}
.tw-banner::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 20% 0%, rgba(255, 255, 255, 0.28), transparent 60%);
}
.tw-prof-head { padding: 0 16px 14px; border-bottom: 1px solid var(--separator); }
.tw-prof-av {
  width: 74px; height: 74px; border-radius: 50%;
  margin-top: -37px; margin-bottom: 9px;
  border: 3.5px solid var(--bg-primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 25px; font-weight: 800;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.tw-prof-name { font-size: 20px; font-weight: 800; letter-spacing: -0.3px; }
.tw-prof-handle { font-size: 13.5px; color: var(--text-secondary); margin-top: 1px; }
.tw-prof-bio { font-size: 13.5px; color: var(--text-primary); margin-top: 9px; line-height: 1.4; }
.tw-stats { display: flex; gap: 22px; margin-top: 14px; }
.tw-stats div { display: flex; align-items: baseline; gap: 5px; }
.tw-stats b { font-size: 15px; font-weight: 800; }
.tw-stats span { font-size: 12.5px; color: var(--text-secondary); }
.tw-prof-head + .section-label { padding: 0 4px; margin: 14px 14px 0; }

/* ---------- home widget ---------- */
.tw-w-row { display: flex; gap: 9px; align-items: flex-start; }
.tw-w-row + .tw-w-row { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
[data-theme='light'] .tw-w-row + .tw-w-row { border-top-color: rgba(0, 0, 0, 0.1); }
.tw-w-av {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 10px; font-weight: 800;
}
.tw-w-main { min-width: 0; }
.tw-w-name { font-size: 12.5px; font-weight: 700; }
.tw-w-name span { font-weight: 500; opacity: 0.6; }
.tw-w-body {
  font-size: 12px; opacity: 0.8; margin-top: 1px; line-height: 1.35;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.tw-w-empty { font-size: 12px; opacity: 0.6; }
