/* ============================================================
   DoNet Social Mockup - Viral Post, God-tier Comments & Fake Chat
   Twitter/X, iMessage, WhatsApp, Reddit Mockup Generator
   ============================================================ */

:root {
  --sm-primary: #1d9bf0; /* X Blue */
  --sm-primary-hover: #1a8cd8;
  --sm-dark: #0f172a;
  --sm-border: #e2e8f0;
  --sm-text: #0f172a;
  --sm-text-muted: #64748b;
  --sm-surface: #ffffff;
  --sm-bg: #f8fafc;
  --sm-radius: 12px;
  --sm-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background-color: var(--sm-bg);
  color: var(--sm-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Hero Section */
.hero-sec {
  max-width: 980px;
  margin: 1.8rem auto 1.25rem auto;
  padding: 0 1.25rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0284c7;
  background: #f0f9ff;
  padding: 5px 14px;
  border-radius: 9999px;
  margin-bottom: 0.85rem;
  border: 1px solid #bae6fd;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.08);
}

.hero-title {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.65rem;
  color: #0f172a;
}

.hero-sub {
  font-size: 0.95rem;
  color: #64748b;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Unified Workspace Layout */

.sm-header-title p {
  font-size: 0.76rem;
  color: var(--sm-text-muted);
}

.sm-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sm-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 1.1rem;
  border-radius: 9px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  text-decoration: none;
}

.sm-btn-outline {
  background: #ffffff;
  border-color: var(--sm-border);
  color: var(--sm-text);
}

.sm-btn-outline:hover {
  background: #f1f5f9;
}

.sm-btn-primary {
  background: linear-gradient(135deg, #1d9bf0 0%, #0284c7 100%);
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(29, 155, 240, 0.3);
}

.sm-btn-export {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  font-size: 0.9rem;
  padding: 0.55rem 1.25rem;
}

.sm-btn-export:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
  transform: translateY(-1px);
}

/* Two Column Workspace */
.sm-main {
  flex: 1;
  display: flex;
  max-width: 1260px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
  gap: 1.25rem;
  box-sizing: border-box;
}

/* Sidebar */
.sm-sidebar {
  width: 380px;
  flex-shrink: 0;
  background: #ffffff;
  border-radius: var(--sm-radius);
  border: 1px solid var(--sm-border);
  box-shadow: var(--sm-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 720px;
}

/* Tabs - Clean 5-Column Equal Grid */
.sm-nav-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #f8fafc;
  border-bottom: 1px solid var(--sm-border);
  padding: 0.35rem 0.35rem 0;
  gap: 2px;
}

.sm-tab-btn {
  padding: 0.6rem 0.15rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sm-text-muted);
  background: transparent;
  border: none;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.sm-tab-btn:hover {
  color: var(--sm-text);
  background: #f1f5f9;
}

.sm-tab-btn.active {
  color: var(--sm-primary);
  background: #ffffff;
  border: 1px solid var(--sm-border);
  border-bottom-color: #ffffff;
  margin-bottom: -1px;
}

.sm-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sm-tab-panel {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
}

.sm-tab-panel.active {
  display: flex;
}

.sm-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sm-section-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--sm-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Platform Choice Grid */
.sm-platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.sm-platform-card {
  border: 1.5px solid var(--sm-border);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.sm-platform-card:hover {
  border-color: var(--sm-primary);
  transform: translateY(-2px);
}

.sm-platform-card.active {
  border-color: var(--sm-primary);
  background: #f0f9ff;
  box-shadow: 0 0 0 1.5px var(--sm-primary);
}

.sm-platform-icon {
  font-size: 1.5rem;
}

.sm-platform-name {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--sm-dark);
}

/* Form inputs */
.sm-form-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sm-form-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sm-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sm-text-muted);
}

.sm-input {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--sm-border);
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--sm-dark);
  outline: none;
  background: #ffffff;
}

.sm-input:focus {
  border-color: var(--sm-primary);
  box-shadow: 0 0 0 2px rgba(29, 155, 240, 0.15);
}

.sm-textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--sm-border);
  border-radius: 6px;
  font-size: 0.84rem;
  color: var(--sm-dark);
  outline: none;
  background: #ffffff;
  min-height: 80px;
  font-family: inherit;
  resize: vertical;
}

.sm-textarea:focus {
  border-color: var(--sm-primary);
}

.sm-select {
  padding: 6px 8px;
  border: 1px solid var(--sm-border);
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--sm-dark);
  background: #ffffff;
  outline: none;
  cursor: pointer;
}

/* Comments / Message Items List */
.sm-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sm-item-card {
  border: 1px solid var(--sm-border);
  border-radius: 10px;
  padding: 10px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sm-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Right Viewport */
.sm-workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.sm-canvas-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius);
  padding: 0.6rem 1rem;
  box-shadow: var(--sm-shadow);
}

.sm-tool-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sm-tool-btn {
  padding: 0.45rem 0.75rem;
  border-radius: 7px;
  border: 1px solid var(--sm-border);
  background: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sm-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sm-tool-btn.active {
  background: #e0f2fe;
  border-color: var(--sm-primary);
  color: var(--sm-primary);
}

/* Viewport Area */
.sm-viewport {
  flex: 1;
  background: #0f172a;
  background-image: radial-gradient(#334155 1.2px, transparent 1.2px);
  background-size: 16px 16px;
  border-radius: var(--sm-radius);
  border: 1px solid var(--sm-border);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2rem 1.5rem;
  min-height: 560px;
}

/* Outer Mockup Card Frame */
.sm-mockup-frame {
  position: relative;
  border-radius: 20px;
  padding: 24px;
  margin: auto 0;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.45);
  max-width: 100%;
}

/* Frame Background Themes */
.sm-frame-gradient-1 { background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%); }
.sm-frame-gradient-2 { background: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%); }
.sm-frame-gradient-3 { background: linear-gradient(135deg, #f97316 0%, #f43f5e 100%); }
.sm-frame-gradient-4 { background: linear-gradient(135deg, #18181b 0%, #27272a 100%); }
.sm-frame-transparent { background: transparent; padding: 0; box-shadow: none; }

/* ============================================================
   Realistic Smartphone Chassis Mockup (iPhone 16 Pro 手机实时展示)
   ============================================================ */
/* ============================================================
   Realistic Smartphone Chassis Mockup (iPhone 16 Pro 手机实时展示)
   Refined Compact Standard (375x760pt)
   ============================================================ */
.sm-phone-chassis {
  width: 375px;
  height: 760px;
  max-width: 100%;
  background: #18181b;
  border-radius: 48px;
  padding: 9px;
  box-shadow: 
    0 0 0 2px #3f3f46,
    0 0 0 4.5px #09090b,
    0 25px 60px -15px rgba(0, 0, 0, 0.65),
    inset 0 1px 2px rgba(255, 255, 255, 0.25);
  position: relative;
  transition: all 0.2s ease;
  user-select: none;
  display: flex;
  flex-direction: column;
}

/* Flat Card Mode (极简平铺单张卡片) */
.sm-phone-chassis.flat-mode {
  width: auto;
  height: auto;
  max-width: 100%;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: block;
}

.sm-phone-chassis.flat-mode .sm-dynamic-island,
.sm-phone-chassis.flat-mode .sm-phone-statusbar,
.sm-phone-chassis.flat-mode .sm-phone-home-indicator,
.sm-phone-chassis.flat-mode .phone-only-bar {
  display: none !important;
}

.sm-phone-chassis.flat-mode .sm-phone-screen {
  width: auto;
  height: auto;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  display: block;
}

.sm-phone-chassis.flat-mode .sm-device-card {
  width: var(--card-width, 500px);
  max-width: 100%;
  height: auto;
  min-height: auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}

.sm-phone-chassis.flat-mode .sm-card-theme-dark {
  background: #000000;
  color: #e7e9ea;
  border: 1px solid #2f3336;
}

.sm-phone-chassis.flat-mode .sm-card-theme-dim {
  background: #15202b;
  color: #f7f9f9;
  border: 1px solid #38444d;
}

.sm-phone-chassis.flat-mode .sm-card-theme-light {
  background: #ffffff;
  color: #0f1419;
  border: 1px solid #cfd9de;
}

/* Inner Screen Container (19.5:9 Phone Screen) */
.sm-phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 40px;
  overflow: hidden;
  position: relative;
  background: #000000;
  display: flex;
  flex-direction: column;
}

/* Completely suppress all native browser scrollbars inside mobile preview */
.sm-phone-screen,
.sm-phone-screen *,
.sm-device-card,
.sm-device-card * {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.sm-phone-screen::-webkit-scrollbar,
.sm-phone-screen *::-webkit-scrollbar,
.sm-device-card::-webkit-scrollbar,
.sm-device-card *::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

/* Dynamic Island */
.sm-dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 25px;
  background: #000000;
  border-radius: 16px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.sm-island-camera {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #111424;
  border: 1px solid #1e293b;
}

.sm-island-sensor {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #090d16;
}

/* Phone iOS Top Status Bar */
.sm-phone-statusbar {
  height: 44px;
  padding: 11px 22px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 90;
  position: relative;
  color: #ffffff;
  flex-shrink: 0;
  background: inherit;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  letter-spacing: -0.01em;
}

.sm-phone-chassis.light-theme .sm-phone-statusbar {
  color: #0f1419;
}

/* Home Indicator Bar at bottom of screen */
.sm-phone-home-indicator {
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 6px;
  flex-shrink: 0;
  background: inherit;
}

.sm-phone-home-bar {
  width: 130px;
  height: 4.5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.45);
}

.sm-phone-chassis.light-theme .sm-phone-home-bar {
  background: rgba(0, 0, 0, 0.35);
}

/* The Core Mockup Render Box (Simulated Tweet / Chat / Reddit) */
.sm-device-card {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  overflow-y: auto;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
}

/* Themes for Mockup Card */
.sm-card-theme-dark {
  background: #000000;
  color: #e7e9ea;
}

.sm-card-theme-dim {
  background: #15202b;
  color: #f7f9f9;
}

.sm-card-theme-light {
  background: #ffffff;
  color: #0f1419;
}

/* ------------------------------------------
   Platform 5: Instagram Post Mockup
   ------------------------------------------ */
.ig-post-box {
  display: flex;
  flex-direction: column;
}

.ig-post-box {
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.ig-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  height: 46px;
  flex-shrink: 0;
}

.ig-author-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ig-avatar-ring {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  padding: 1.5px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ig-avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #000000;
}

.ig-names {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.ig-username {
  font-size: 0.82rem; /* 13px */
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
}

.ig-location {
  font-size: 0.68rem; /* 11px */
  opacity: 0.7;
}

.ig-media-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.ig-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 4px;
  flex-shrink: 0;
}

.ig-actions-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ig-action-btn {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0;
  opacity: 0.9;
}

.ig-action-btn:hover {
  opacity: 1;
}

.ig-action-btn svg {
  width: 20px;
  height: 20px;
}

.ig-details-box {
  padding: 0 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem; /* 13px */
}

.ig-likes-count {
  font-size: 0.82rem;
  font-weight: 600;
}

.ig-caption {
  font-size: 0.82rem;
  line-height: 1.35;
  word-break: break-word;
}

.ig-caption strong {
  font-weight: 600;
  margin-right: 4px;
}

.ig-comments-preview {
  color: #71767b;
  font-size: 0.76rem;
  cursor: pointer;
  margin-top: 2px;
}

/* ------------------------------------------
   Platform 6: TikTok Comments Sheet Mockup
   ------------------------------------------ */
.tt-post-box {
  display: flex;
  flex-direction: column;
  background: #121212;
  color: #ffffff;
}

.tt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tt-header-title {
  font-size: 0.86rem;
  font-weight: 700;
}

.tt-comments-list {
  display: flex;
  flex-direction: column;
  padding: 8px 14px 14px;
  gap: 14px;
}

.tt-comment-card {
  display: flex;
  gap: 10px;
}

.tt-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.tt-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tt-user-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
}

.tt-pinned-badge {
  background: rgba(254, 44, 85, 0.15);
  color: #fe2c55;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
}

.tt-creator-badge {
  background: #fe2c55;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
}

.tt-text {
  font-size: 0.88rem;
  line-height: 1.4;
  word-break: break-word;
}

.tt-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

.tt-likes-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ------------------------------------------
   Platform 1: Twitter / X Post & Comments
   ------------------------------------------ */
.x-post-box {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.x-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.x-author-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.x-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #334155;
  flex-shrink: 0;
}

.x-names {
  display: flex;
  flex-direction: column;
}

.x-display-name {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.x-verified-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.x-handle {
  font-size: 0.9rem;
  color: #71767b;
}

.x-logo-mark {
  color: inherit;
  font-weight: 800;
  font-size: 1.25rem;
}

.x-post-text {
  font-size: 1.15rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.x-post-text .x-hashtag,
.x-post-text .x-mention {
  color: #1d9bf0;
  font-weight: 500;
}

.x-media-img {
  width: 100%;
  border-radius: 14px;
  margin-top: 4px;
  max-height: 380px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.x-timestamp-row {
  font-size: 0.9rem;
  color: #71767b;
  padding: 4px 0 8px;
  border-bottom: 1px solid rgba(120, 130, 140, 0.2);
}

.x-metrics-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.92rem;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(120, 130, 140, 0.2);
}

.x-metric-item strong {
  font-weight: 700;
}

.x-metric-item span {
  color: #71767b;
}

.x-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  color: #71767b;
  padding: 8px 0 4px;
}

.x-action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #71767b;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: all 0.15s ease;
}

.x-action-icon svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.x-action-icon:hover {
  color: #1d9bf0;
  background: rgba(29, 155, 240, 0.1);
}

.x-action-icon.like:hover {
  color: #f91880;
  background: rgba(249, 24, 128, 0.1);
}

.x-action-icon.retweet:hover {
  color: #00ba7c;
  background: rgba(0, 186, 124, 0.1);
}

.x-comment-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #71767b;
  font-size: 0.78rem;
  margin-top: 6px;
}

.x-comment-action-item {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.x-comment-action-item svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.x-comment-action-item:hover {
  color: #1d9bf0;
}

/* God-Tier Comments Stream */
.x-comments-section {
  border-top: 1px solid rgba(120, 130, 140, 0.2);
  background: rgba(0, 0, 0, 0.1);
}

.x-comment-item {
  padding: 12px 20px;
  display: flex;
  gap: 12px;
  border-bottom: 1px solid rgba(120, 130, 140, 0.15);
  position: relative;
}

.x-comment-item.x-is-reply {
  padding-left: 44px;
  background: rgba(29, 155, 240, 0.04);
}

.x-comment-item.x-is-reply::before {
  content: '';
  position: absolute;
  left: 30px;
  top: -10px;
  bottom: 24px;
  width: 2px;
  background: #334155;
}

.x-comment-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.x-comment-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.x-comment-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
}

.x-comment-header strong {
  font-weight: 700;
}

.x-comment-header .x-handle,
.x-comment-header .x-time-ago {
  color: #71767b;
  font-size: 0.82rem;
}

.x-pinned-badge {
  font-size: 0.68rem;
  background: rgba(234, 88, 12, 0.15);
  color: #ea580c;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.x-author-reply-badge {
  font-size: 0.68rem;
  background: #e0f2fe;
  color: #0369a1;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 700;
}

.x-comment-body {
  font-size: 0.96rem;
  line-height: 1.4;
  word-break: break-word;
}

.x-comment-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #71767b;
  font-size: 0.78rem;
  margin-top: 4px;
}

/* ------------------------------------------
   Platform 2: iMessage / iOS Chat
   ------------------------------------------ */
.ios-chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #f2f2f7;
  color: #000000;
}

.sm-card-theme-dark .ios-chat-container {
  background: #000000;
  color: #ffffff;
}

/* iOS Status Bar */
.ios-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px 6px;
  font-size: 0.86rem;
  font-weight: 600;
}

/* iOS Header */
.ios-nav-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 16px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  position: relative;
  flex-shrink: 0;
}

.sm-card-theme-dark .ios-nav-header {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.ios-back-btn {
  position: absolute;
  left: 14px;
  top: 14px;
  color: #007aff;
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 2px;
}

.ios-avatar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ios-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: #cbd5e1;
}

.ios-contact-name {
  font-size: 0.84rem;
  font-weight: 600;
}

/* Messages Stream */
.ios-message-stream {
  padding: 16px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  justify-content: flex-end;
}

.sm-phone-chassis.flat-mode .ios-message-stream {
  justify-content: flex-start;
  padding: 20px;
}

.ios-date-badge {
  align-self: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: #8e8e93;
  margin: 6px 0;
}

.ios-bubble-row {
  display: flex;
  flex-direction: column;
  max-width: 75%;
}

.ios-bubble-row.sent {
  align-self: flex-end;
  align-items: flex-end;
}

.ios-bubble-row.received {
  align-self: flex-start;
  align-items: flex-start;
}

.ios-bubble {
  padding: 10px 15px;
  border-radius: 18px;
  font-size: 0.98rem;
  line-height: 1.35;
  word-break: break-word;
}

/* Sent Blue / Green */
.ios-bubble-row.sent .ios-bubble.imessage {
  background: #007aff;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.ios-bubble-row.sent .ios-bubble.sms {
  background: #34c759;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

/* Received Gray */
.ios-bubble-row.received .ios-bubble {
  background: #e9e9eb;
  color: #000000;
  border-bottom-left-radius: 4px;
}

.sm-card-theme-dark .ios-bubble-row.received .ios-bubble {
  background: #262629;
  color: #ffffff;
}

.ios-delivered-status {
  font-size: 0.7rem;
  color: #8e8e93;
  margin-top: 3px;
  font-weight: 500;
}

/* Authentic iOS iMessage Bottom Input Bar (Phone Mode) */
.ios-bottom-bar {
  padding: 8px 12px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1c1c1e;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.sm-card-theme-light .ios-bottom-bar {
  background: #f2f2f7;
  border-top-color: rgba(0, 0, 0, 0.12);
}

.ios-plus-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #2c2c2e;
  color: #8e8e93;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.sm-card-theme-light .ios-plus-btn {
  background: #e5e5ea;
  color: #636366;
}

.ios-input-capsule {
  flex: 1;
  height: 34px;
  border-radius: 17px;
  background: #000000;
  border: 1px solid #38383a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 0.88rem;
  color: #8e8e93;
}

.sm-card-theme-light .ios-input-capsule {
  background: #ffffff;
  border-color: #d1d1d6;
  color: #8e8e93;
}

.ios-mic-icon {
  color: #8e8e93;
  display: flex;
  align-items: center;
}

/* Audio Bubble */
.ios-audio-bubble {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
}

.ios-play-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  color: #007aff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ------------------------------------------
   Platform 3: WhatsApp
   ------------------------------------------ */
.wa-chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #efeae2;
  color: #111b21;
}

.sm-card-theme-dark .wa-chat-container {
  background: #0b141a;
  color: #e9edef;
}

.wa-message-stream {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-end;
}

.sm-phone-chassis.flat-mode .wa-message-stream {
  justify-content: flex-start;
  min-height: auto;
  padding: 18px 20px 22px;
}

.wa-bottom-bar {
  padding: 6px 10px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: inherit;
  flex-shrink: 0;
}

.wa-input-pill {
  flex: 1;
  height: 38px;
  background: #1f2c34;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 0.88rem;
  color: #8696a0;
}

.sm-card-theme-light .wa-input-pill {
  background: #ffffff;
  color: #667781;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wa-mic-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #00a884;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.wa-chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #efeae2;
  color: #111b21;
}

.sm-card-theme-dark .wa-chat-container {
  background: #0b141a;
  color: #e9edef;
}

.wa-header {
  background: #008069;
  color: #ffffff;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sm-card-theme-dark .wa-header {
  background: #202c33;
  color: #e9edef;
}

.wa-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #ffffff;
}

.sm-card-theme-dark .wa-header-actions {
  color: #aebac1;
}

.wa-action-icon-btn {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.wa-message-stream {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  overflow-y: auto;
  justify-content: flex-end;
}

.sm-phone-chassis.flat-mode .wa-message-stream {
  justify-content: flex-start;
  padding: 20px;
}

.wa-bubble-sent {
  background: #d9fdd3;
  color: #111b21;
  padding: 7px 11px;
  border-radius: 8px 0 8px 8px;
  align-self: flex-end;
  max-width: 82%;
  font-size: 0.94rem;
  line-height: 1.35;
  position: relative;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.sm-card-theme-dark .wa-bubble-sent {
  background: #005c4b;
  color: #e9edef;
  box-shadow: none;
}

.wa-bubble-received {
  background: #ffffff;
  color: #111b21;
  padding: 7px 11px;
  border-radius: 0 8px 8px 8px;
  align-self: flex-start;
  max-width: 82%;
  font-size: 0.94rem;
  line-height: 1.35;
  position: relative;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.sm-card-theme-dark .wa-bubble-received {
  background: #202c33;
  color: #e9edef;
  box-shadow: none;
}

.wa-time-meta {
  font-size: 0.68rem;
  color: #667781;
  float: right;
  margin-left: 8px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.sm-card-theme-dark .wa-time-meta {
  color: #8696a0;
}

.wa-bottom-bar {
  padding: 6px 8px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  flex-shrink: 0;
}

.wa-input-pill {
  flex: 1;
  height: 42px;
  background: #ffffff;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  color: #54656f;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.sm-card-theme-dark .wa-input-pill {
  background: #2a3942;
  color: #8696a0;
  box-shadow: none;
}

.wa-placeholder {
  font-size: 0.92rem;
  flex: 1;
  padding-left: 8px;
  color: inherit;
}

.wa-mic-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #00a884;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* ------------------------------------------
   Platform 4: Reddit Post & Discussion
   ------------------------------------------ */
.reddit-container {
  background: #ffffff;
  color: #1c1c1c;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
}

.sm-card-theme-dark .reddit-container {
  background: #1a1a1b;
  color: #d7dadc;
}

.reddit-sub-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #7c7c7c;
}

.reddit-sub-header strong {
  color: #ff4500;
  font-weight: 800;
}

.reddit-title {
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.35;
}

.reddit-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #7c7c7c;
  padding-top: 6px;
}

.reddit-upvote-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(120, 130, 140, 0.12);
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 700;
  color: #ff4500;
}

.reddit-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(120, 130, 140, 0.12);
  padding: 5px 12px;
  border-radius: 20px;
  color: inherit;
  font-weight: 600;
}

.reddit-comments {
  margin-top: 8px;
  border-top: 1px solid rgba(120, 130, 140, 0.2);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reddit-comment-row {
  display: flex;
  gap: 10px;
}

.reddit-thread-line {
  width: 2px;
  background: #ff4500;
  border-radius: 2px;
}

.reddit-comment-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.92rem;
}

/* Ad Placement Banner */
.sm-ad-container {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: var(--sm-radius);
  padding: 0.75rem;
  text-align: center;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.76rem;
}

/* Phone-Specific Navigation & Bottom Bars (Phone Mode Only) */
.x-phone-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 8px;
  border-bottom: 1px solid rgba(120, 130, 140, 0.2);
  font-size: 0.95rem;
  font-weight: 700;
  flex-shrink: 0;
}

.x-nav-icon {
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  transition: background 0.15s ease;
}

.x-nav-icon:hover {
  background: rgba(120, 130, 140, 0.15);
}

.x-phone-bottom-bar {
  padding: 8px 16px 10px;
  border-top: 1px solid rgba(120, 130, 140, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  background: inherit;
  flex-shrink: 0;
}

.x-reply-input-pill {
  flex: 1;
  height: 36px;
  border-radius: 18px;
  background: rgba(120, 130, 140, 0.15);
  padding: 0 14px;
  font-size: 0.86rem;
  color: #71767b;
  display: flex;
  align-items: center;
}

.ig-phone-bottom-dock {
  height: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-shrink: 0;
  background: inherit;
  padding: 0 10px;
}

.sm-card-theme-light .ig-phone-bottom-dock {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.ig-dock-icon {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.88;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.ig-dock-icon:hover {
  opacity: 1;
  transform: scale(1.08);
}

.tt-bottom-input-bar {
  padding: 8px 14px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  background: #121212;
  flex-shrink: 0;
}

.tt-input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.15s ease;
}

.tt-input-icon:hover {
  opacity: 1;
}

.tt-input-box {
  flex: 1;
  height: 36px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0 14px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
}

/* Export Scope Selector Buttons */
.sm-scope-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.sm-scope-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--sm-border, #e2e8f0);
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  width: 100%;
}

.sm-scope-btn:hover {
  border-color: var(--sm-primary, #6366f1);
  background: #f8fafc;
}

.sm-scope-btn.active {
  border-color: var(--sm-primary, #6366f1);
  background: #eff6ff;
  box-shadow: 0 0 0 1.5px var(--sm-primary, #6366f1);
}

/* Phone Statusbar Controls in Sidebar */
.sm-statusbar-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fafc;
  padding: 12px;
  border-radius: var(--sm-radius, 12px);
  border: 1px solid var(--sm-border, #e2e8f0);
}

.sm-net-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.sm-net-btn {
  padding: 6px 4px;
  font-size: 0.74rem;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid var(--sm-border, #e2e8f0);
  background: #ffffff;
  color: var(--sm-text, #334155);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.sm-net-btn:hover {
  background: #f1f5f9;
}

.sm-net-btn.active {
  background: var(--sm-primary, #6366f1);
  color: #ffffff;
  border-color: var(--sm-primary, #6366f1);
}

/* ChatGPT Mobile & Card UI Styles */
.gpt-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #212121;
  color: #ececec;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sm-card-theme-light .gpt-container {
  background: #ffffff;
  color: #0d0d0d;
}

.gpt-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.sm-card-theme-light .gpt-top-bar {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.gpt-model-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 14px;
  cursor: pointer;
}

.sm-card-theme-light .gpt-model-pill {
  background: rgba(0, 0, 0, 0.06);
}

.gpt-message-stream {
  padding: 14px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  overflow-y: auto;
}

.gpt-msg-row {
  display: flex;
  gap: 10px;
  max-width: 100%;
}

.gpt-msg-row.user {
  justify-content: flex-end;
}

.gpt-msg-row.ai {
  justify-content: flex-start;
}

.gpt-bubble.user {
  background: #2f2f2f;
  color: #ececec;
  padding: 9px 14px;
  border-radius: 20px;
  max-width: 82%;
  font-size: 0.94rem;
  line-height: 1.4;
  word-break: break-word;
}

.sm-card-theme-light .gpt-bubble.user {
  background: #f4f4f4;
  color: #0d0d0d;
}

.gpt-ai-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #10a37f;
}

.sm-card-theme-light .gpt-ai-avatar {
  background: #000000;
  color: #ffffff;
}

.gpt-bubble.ai {
  flex: 1;
  min-width: 0;
  font-size: 0.92rem;
}

.gpt-ai-text {
  line-height: 1.45;
  word-break: break-word;
}

.gpt-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  opacity: 0.65;
}

.gpt-action-btn {
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: opacity 0.15s ease;
}

.gpt-action-btn:hover {
  opacity: 1;
}

.gpt-bottom-bar {
  padding: 6px 12px 10px;
  flex-shrink: 0;
}

.gpt-input-pill {
  height: 42px;
  border-radius: 22px;
  background: #2f2f2f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 14px;
  font-size: 0.88rem;
  color: #8e8e8e;
}

.sm-card-theme-light .gpt-input-pill {
  background: #f4f4f4;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #737373;
}

.gpt-send-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sm-card-theme-light .gpt-send-circle {
  background: #000000;
  color: #ffffff;
}

/* Telegram Mobile & Card UI Styles */
.tg-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #0e1621;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sm-card-theme-light .tg-container {
  background: #7ba2c0;
  color: #000000;
}

.tg-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #17212b;
  color: #ffffff;
  flex-shrink: 0;
}

.sm-card-theme-light .tg-top-bar {
  background: #ffffff;
  color: #000000;
}

.tg-message-stream {
  padding: 12px 12px 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  overflow-y: auto;
  justify-content: flex-end;
}

.sm-phone-chassis.flat-mode .tg-message-stream {
  justify-content: flex-start;
  padding: 16px;
}

.tg-date-badge {
  background: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 12px;
  display: inline-block;
}

.tg-bubble-row {
  display: flex;
  width: 100%;
}

.tg-bubble-row.sent {
  justify-content: flex-end;
}

.tg-bubble-row.received {
  justify-content: flex-start;
}

.tg-bubble {
  max-width: 82%;
  padding: 7px 11px 5px;
  border-radius: 14px;
  position: relative;
  font-size: 0.92rem;
  line-height: 1.35;
  word-break: break-word;
}

.tg-bubble.sent {
  background: #2b5278;
  color: #ffffff;
  border-bottom-right-radius: 3px;
}

.sm-card-theme-light .tg-bubble.sent {
  background: #eef9e4;
  color: #000000;
}

.tg-bubble.received {
  background: #182533;
  color: #ffffff;
  border-bottom-left-radius: 3px;
}

.sm-card-theme-light .tg-bubble.received {
  background: #ffffff;
  color: #000000;
}

.tg-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 0.68rem;
  opacity: 0.75;
  margin-top: 2px;
}

.tg-bottom-bar {
  padding: 6px 10px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #17212b;
  flex-shrink: 0;
}

.sm-card-theme-light .tg-bottom-bar {
  background: #ffffff;
}

.tg-input-box {
  flex: 1;
  height: 38px;
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 0.88rem;
  color: #8e8e8e;
}

.sm-card-theme-light .tg-input-box {
  background: #f0f2f5;
  color: #65676b;
}

.tg-mic-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #50a2e9;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1100px) {
  .sm-main {
    flex-direction: column;
  }
  .sm-sidebar {
    width: 100%;
    max-height: none;
  }
}

/* Preset Media Image Chips */
.sm-preset-media-chip {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}
.sm-preset-media-chip:hover {
  border-color: var(--sm-primary) !important;
  color: var(--sm-primary) !important;
  transform: translateY(-1px);
}
.sm-preset-media-chip.active {
  border-color: var(--sm-primary) !important;
  background: rgba(99, 102, 241, 0.14) !important;
  color: var(--sm-primary) !important;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.3);
}

