/* ── Loading bar (open file — under dashboard header) ── */
.trdash-main,
.trdash-detail-page {
  position: relative;
}
.trdash-top-loader {
  position: relative;
  height: 3px;
  margin: 0 0 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  background: rgba(0, 115, 230, 0.1);
  border-radius: 2px;
  overflow: hidden;
}
.trdash-top-loader.is-active {
  opacity: 1;
}
.trdash-top-loader__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #0073e6 0%, #42a5f5 55%, #64b5f6 100%);
  box-shadow: 0 0 8px rgba(0, 115, 230, 0.4);
  transition: width 0.25s ease-out;
  border-radius: 2px;
}

/* ── Transcribe Pro Dashboard ──────────────────────── */
#transcribe-dashboard-app {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1a1a2e;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  min-height: 70vh;
}
#transcribe-dashboard-app.trdash-has-player {
  padding-bottom: calc(130px + env(safe-area-inset-bottom, 0px));
}
#transcribe-dashboard-app.trdash-booting .trdash-boot-shell {
  min-height: 560px;
}
.trdash-boot-side {
  height: 120px;
  background: #0073e6;
  border-radius: 12px;
  margin-bottom: 12px;
  opacity: 0.85;
}
.trdash-boot-nav {
  height: 48px;
  background: #f0f4f8;
  border-radius: 8px;
}
.trdash-boot-center,
.trdash-loading-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
}
.trdash-btn-transcribe.trdash-btn-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.trdash-limit-modal {
  text-align: center;
  max-width: 400px;
  padding: 28px 24px !important;
}
.trdash-limit-modal-icon {
  font-size: 36px;
  margin-bottom: 8px;
}
.trdash-limit-modal h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #1a1a2e;
}
.trdash-limit-modal p {
  margin: 0 0 20px;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}
.trdash-limit-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.trdash-limit-btn-primary {
  padding: 11px 22px !important;
  border: none !important;
  border-radius: 8px !important;
  background: #0073e6 !important;
  color: #fff !important;
  font-weight: 600 !important;
  cursor: pointer;
}
.trdash-limit-btn-cancel {
  padding: 11px 22px !important;
  border: 1px solid #ccc !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #444 !important;
  font-weight: 600 !important;
  cursor: pointer;
}

/* ── Premium gate (limit reached) ─────────────────── */
.trdash-premium-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.trdash-premium-gate-modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: auto;
}
.trdash-premium-gate-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none !important;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
}
.trdash-premium-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  padding: 24px 16px;
}
.trdash-premium-gate-inner {
  width: 100%;
  max-width: 520px;
  background: linear-gradient(145deg, #0073e6 0%, #005bb5 55%, #083a8a 100%) !important;
  color: #fff !important;
  border-radius: 20px;
  padding: 36px 32px 32px;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0, 115, 230, 0.35);
  isolation: isolate;
}
.trdash-premium-gate-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  color: #fff !important;
}
.trdash-premium-gate-title {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff !important;
}
.trdash-premium-gate-sub {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92) !important;
}
.trdash-premium-gate-features {
  list-style: none !important;
  margin: 0 0 28px;
  padding: 0 !important;
  text-align: left;
  display: inline-block;
}
.trdash-premium-gate-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  padding: 6px 0;
  color: #fff !important;
  list-style: none !important;
}
.trdash-pg-text {
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
}
.trdash-pg-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 12px;
  flex-shrink: 0;
  color: #fff !important;
}
.trdash-premium-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.trdash-premium-gate-cta {
  width: 100%;
  max-width: 280px;
  padding: 14px 28px !important;
  border: none !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #0073e6 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s, box-shadow 0.15s;
}
.trdash-premium-gate-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.trdash-premium-gate-dismiss {
  padding: 10px 20px;
  border: none !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 14px !important;
  cursor: pointer;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  box-shadow: none !important;
}
.trdash-premium-gate-dismiss:hover {
  color: #fff !important;
  background: transparent !important;
}

/* ── Guest limit modal (как на главной) ─────────── */
.trdash-limit-guest-modal {
  max-width: 460px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}
.trdash-premium-gate-close--light {
  background: rgba(0, 0, 0, 0.06) !important;
  color: #555 !important;
}
.trdash-limit-guest-top {
  background: #fff;
  padding: 32px 28px 24px;
  text-align: center;
}
.trdash-limit-guest-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e8f0fe;
  color: #0073e6;
  margin-bottom: 14px;
}
.trdash-limit-guest-icon svg { width: 24px; height: 24px; }
.trdash-limit-guest-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e !important;
  line-height: 1.25;
}
.trdash-limit-guest-sub {
  margin: 0 0 20px;
  font-size: 14px;
  color: #666 !important;
}
.trdash-limit-guest-offer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  background: #f0f7ff;
  border: 1px solid #d0e3ff;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
}
.trdash-limit-guest-offer-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0073e6;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trdash-limit-guest-offer-icon svg { width: 18px; height: 18px; }
.trdash-limit-guest-offer-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e !important;
  margin-bottom: 2px;
}
.trdash-limit-guest-offer-desc {
  font-size: 13px;
  color: #555 !important;
  line-height: 1.4;
}
.trdash-limit-guest-offer-desc strong {
  color: #0073e6 !important;
  font-weight: 700;
}
.trdash-limit-guest-register {
  width: 100%;
  padding: 13px 20px !important;
  border: none !important;
  border-radius: 10px !important;
  background: #0073e6 !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 115, 230, 0.3);
}
.trdash-limit-guest-register svg { width: 18px; height: 18px; }
.trdash-limit-guest-login {
  width: 100%;
  padding: 10px !important;
  margin-top: 8px;
  border: none !important;
  background: transparent !important;
  color: #0073e6 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}
.trdash-limit-guest-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
  background: #f5f5f5;
}
.trdash-limit-guest-divider::before,
.trdash-limit-guest-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #ddd;
}
.trdash-limit-guest-divider span {
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  padding: 10px 0;
}
.trdash-limit-guest-premium {
  border-radius: 0 !important;
  padding: 22px 28px 26px !important;
  box-shadow: none !important;
}
.trdash-limit-guest-premium .trdash-premium-gate-badge { margin-bottom: 10px; }
.trdash-limit-guest-premium .trdash-premium-gate-cta {
  max-width: 240px;
  padding: 12px 24px !important;
  font-size: 14px !important;
}

/* ── Pricing modal (wide, 3 cards) ───────────────── */
.trdash-pricing-overlay {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: trdash-pricing-fade 0.2s ease;
}
@keyframes trdash-pricing-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
body.trdash-pricing-open {
  overflow: hidden;
}
.trdash-pricing-shell {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: auto;
  background: #f8fafc;
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
  padding: 28px 28px 24px;
  animation: trdash-pricing-slide 0.25s ease;
}
@keyframes trdash-pricing-slide {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.trdash-pricing-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border: none !important;
  border-radius: 50%;
  background: #fff !important;
  color: #64748b !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: background 0.15s, color 0.15s;
}
.trdash-pricing-close:hover {
  background: #f1f5f9 !important;
  color: #1e293b !important;
}
.trdash-pricing-shell .trpro-pricing {
  padding: 8px 4px 0;
  max-width: none;
}
.trdash-pricing-shell .trpro-pricing-title {
  font-size: 28px;
  margin-bottom: 8px;
  padding-right: 44px;
}
.trdash-pricing-shell .trpro-pricing-guarantee {
  margin-top: 20px;
  margin-bottom: 4px;
}

/* ── Layout ───────────────────────────────────────── */
.trdash-layout {
  display: flex;
  gap: 24px;
  min-height: 600px;
}
.trdash-sidebar {
  width: 260px;
  flex-shrink: 0;
}
.trdash-main {
  flex: 1;
  min-width: 0;
}

/* ── Sidebar ──────────────────────────────────────── */
.trdash-limits {
  background: #0073e6;
  color: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}
.trdash-limits-unlimited {
  background: linear-gradient(145deg, #0073e6 0%, #005bb5 100%);
  padding: 18px 20px;
  box-shadow: 0 6px 24px rgba(0, 115, 230, 0.28);
}
.trdash-limits-admin {
  background: linear-gradient(145deg, #1a237e 0%, #0073e6 45%, #005bb5 100%);
  box-shadow: 0 6px 24px rgba(26, 35, 126, 0.32);
}
.trdash-limits-premium {
  background: linear-gradient(145deg, #0073e6 0%, #0073e6 50%, #005bb5 100%);
}
.trdash-limits-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: #fff;
}
.trdash-limits-badge .trpro-ic {
  color: #fff;
}
.trdash-limits-hero {
  display: flex;
  align-items: center;
  gap: 14px;
}
.trdash-limits-hero-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  flex-shrink: 0;
}
.trdash-limits-hero-icon .trpro-ic-lg {
  width: 28px;
  height: 28px;
  color: #fff;
}
.trdash-limits-hero-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  color: #fff;
}
.trdash-limits-hero-sub {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
}
.trdash-limits-title {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.95;
  margin-bottom: 4px;
}
.trdash-limits-sub {
  font-size: 12px;
  opacity: 0.75;
  margin-bottom: 8px;
}
.trdash-limits-bar {
  height: 6px;
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}
.trdash-limits-fill {
  height: 100%;
  background: #ffc107;
  border-radius: 3px;
  transition: width 0.3s;
}
.trdash-btn-upgrade {
  display: block;
  width: 100%;
  padding: 10px;
  background: #fff !important;
  color: #0073e6 !important;
  border: none !important;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
}
.trdash-btn-upgrade:hover {
  background: #e3f2fd !important;
}

.trdash-nav {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
}
.trdash-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  border: none !important;
  background: none !important;
  width: 100%;
  text-align: left;
  font-size: 14px;
  color: #333 !important;
  transition: background 0.15s;
}
.trdash-nav-item:hover {
  background: #f5f5f5 !important;
}
.trdash-nav-item.active {
  background: #e3f2fd !important;
  color: #0073e6 !important;
  font-weight: 600;
}
.trdash-nav-item + .trdash-nav-item {
  border-top: 1px solid #f0f0f0;
}
.trdash-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  flex-shrink: 0;
  color: #0073e6;
}
.trdash-nav-count {
  margin-left: auto;
  background: #e0e0e0;
  color: #666;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
}

.trdash-folders-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.trdash-btn-add-folder {
  background: none !important;
  border: none !important;
  color: #0073e6 !important;
  cursor: pointer;
  font-size: 18px;
  padding: 0 4px;
}

/* ── Header ───────────────────────────────────────── */
.trdash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.trdash-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.trdash-header h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  color: #1a1a2e;
}
.trdash-btn-transcribe {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #0073e6 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none !important;
}
.trdash-btn-transcribe:hover {
  background: #005bb5 !important;
}
.trdash-btn-download-video {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #fff !important;
  color: #0073e6 !important;
  border: 2px solid #0073e6 !important;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
}
.trdash-btn-download-video:hover {
  background: #f0f7ff !important;
  color: #005bb5 !important;
  border-color: #005bb5 !important;
}
.trdash-btn-download-video .trpro-ic {
  color: inherit;
}

/* ── Files table ──────────────────────────────────── */
.trdash-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
}
.trdash-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #e0e0e0;
  font-weight: 600;
  background: #fafafa;
}
.trdash-table td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid #f5f5f5;
  color: #333;
}
.trdash-table tr:last-child td {
  border-bottom: none;
}
.trdash-table tr:hover td {
  background: #f8f9ff;
}
.trdash-file-title {
  font-weight: 500;
  color: #0073e6;
  cursor: pointer;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}
.trdash-file-title:hover {
  text-decoration: underline;
}
.trdash-status-done {
  color: #2e7d32;
  font-weight: 500;
}
.trdash-status-processing {
  color: #f57c00;
  font-weight: 500;
}
.trdash-status-error {
  color: #d32f2f;
  font-weight: 500;
  font-size: 13px;
}
.trdash-status-compact {
  white-space: nowrap;
}
.trdash-status-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.trdash-status-btn:hover {
  color: #b71c1c;
}
.trdash-row-processing td {
  background: #fffbf0 !important;
}
.trdash-row-error td {
  background: #fff5f5 !important;
}
.trdash-row-error-file td {
  background: #fff5f5 !important;
  padding: 10px 12px !important;
  white-space: normal !important;
}
.trdash-error-card {
  border: 1px solid #ffcdd2;
  border-radius: 10px;
  background: #fff;
  padding: 14px 16px;
}
.trdash-error-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.trdash-error-card-title {
  font-weight: 600;
  color: #b71c1c;
  font-size: 14px;
  line-height: 1.35;
  word-break: break-word;
  flex: 1;
}
.trdash-error-card-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: #c62828;
  background: #ffebee;
  padding: 3px 8px;
  border-radius: 10px;
}
.trdash-error-card-meta {
  flex-shrink: 0;
  font-size: 12px;
  color: #888;
}
.trdash-error-card-msg {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #555;
  word-break: break-word;
}
.trdash-error-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
#transcribe-dashboard-app .trdash-error-card-btn {
  border: 1px solid #0073e6 !important;
  background: #0073e6 !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 7px 14px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  box-shadow: none !important;
  text-decoration: none !important;
  line-height: 1.3 !important;
}
#transcribe-dashboard-app .trdash-error-card-btn:hover {
  background: #005bb5 !important;
  border-color: #005bb5 !important;
  color: #fff !important;
}
.trdash-file-title-processing {
  font-weight: 600;
  color: #e65100;
  display: inline-block;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}
.trdash-job-status {
  min-width: 180px;
}
.trdash-job-bar {
  height: 6px;
  background: #ffe0b2;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}
.trdash-job-fill {
  height: 100%;
  background: #f57c00;
  border-radius: 4px;
  transition: width 0.3s;
}
.trdash-menu-btn {
  background: none !important;
  border: none !important;
  cursor: pointer;
  font-size: 20px;
  color: #999 !important;
  padding: 4px 8px;
  border-radius: 4px;
}
.trdash-menu-btn:hover {
  background: #f0f0f0 !important;
  color: #333 !important;
}

/* ── Context menu (override theme button styles) ──── */
#transcribe-dashboard-app .trdash-ctx-menu {
  position: fixed;
  background: #fff !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  min-width: 200px;
  z-index: 100000;
  padding: 4px 0;
}
#transcribe-dashboard-app .trdash-ctx-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  color: #333 !important;
  background: #fff !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  width: 100%;
  text-align: left;
  font-weight: 400 !important;
  line-height: 1.4;
}
#transcribe-dashboard-app .trdash-ctx-item:hover,
#transcribe-dashboard-app .trdash-ctx-item:focus {
  background: #f5f5f5 !important;
  color: #333 !important;
}
#transcribe-dashboard-app .trdash-ctx-item.danger {
  color: #d32f2f !important;
}
#transcribe-dashboard-app .trdash-ctx-item.danger:hover {
  background: #fff5f5 !important;
  color: #d32f2f !important;
}

/* ── File detail view (competitor-style) ──────────── */
.trdash-detail-page {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: visible;
}
.trdash-detail-top {
  padding: 16px 24px;
  border-bottom: 1px solid #eee;
}
.trdash-detail-layout {
  display: flex;
  gap: 0;
  min-height: 500px;
}
.trdash-detail-content {
  flex: 1;
  padding: 28px 32px;
  min-width: 0;
  border-right: 1px solid #eee;
}
.trdash-detail-heading {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #1a1a2e;
}
.trdash-detail-date {
  font-size: 14px;
  color: #888;
  margin-bottom: 24px;
}
.trdash-transcript {
  font-size: 16px;
  color: #333;
  line-height: 1.75;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: left;
}
.trdash-transcript-list {
  --trdash-ts-col: 4.25rem;
  --trdash-ts-gap: 12px;
  margin: 0;
  padding: 0;
}
#transcribe-dashboard-app .trdash-prose {
  margin: 0 0 14px;
  padding: 0;
}
.trdash-block {
  margin: 0 0 10px;
  padding: 6px 0;
  line-height: 1.75;
  text-align: left;
}
.trdash-block:last-child {
  margin-bottom: 0;
}
.trdash-transcript-end {
  height: 32px;
  pointer-events: none;
}
#transcribe-dashboard-app.trdash-has-player .trdash-transcript-end {
  height: calc(112px + env(safe-area-inset-bottom, 0px));
}
.trdash-detail-page--player .trdash-detail-content {
  padding-bottom: 8px;
}
.trdash-seg {
  position: relative;
  border-radius: 8px;
  padding: 8px 12px 8px 10px;
  margin-bottom: 4px;
  transition: background 0.2s ease;
  scroll-margin-bottom: 120px;
}
.trdash-seg--ts {
  display: grid;
  grid-template-columns: var(--trdash-ts-col) minmax(0, 1fr);
  column-gap: var(--trdash-ts-gap);
  align-items: start;
}
.trdash-seg--clickable {
  cursor: pointer;
}
.trdash-seg--clickable:hover {
  background: #f5f7fa;
}
.trdash-seg--active {
  background: #e8f4fd !important;
}
.trdash-seg--active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 3px;
  background: #0073e6;
}
.trdash-ts {
  grid-column: 1;
  grid-row: 1;
  text-align: right;
  color: #0073e6;
  font-weight: 600;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  line-height: 1.75;
  user-select: none;
  white-space: nowrap;
}
.trdash-ts--off {
  visibility: hidden;
}
.trdash-seg-text {
  grid-column: 2;
  grid-row: 1;
  display: block;
  min-width: 0;
  line-height: 1.75;
  text-align: left;
}

/* ── Floating player dock ───────────────────────── */
.trdash-player-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99990;
  padding: 0 16px calc(14px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  box-sizing: border-box;
}
.trdash-player-card {
  position: relative;
  overflow: hidden;
  pointer-events: auto;
  max-width: 1168px;
  margin: 0 auto;
  padding: 14px 16px 10px;
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(28, 36, 58, 0.98) 0%, rgba(12, 15, 26, 0.99) 55%, rgba(18, 22, 38, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(66, 165, 245, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(1.35);
  -webkit-backdrop-filter: blur(24px) saturate(1.35);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.trdash-player-wave {
  position: absolute;
  inset: 0 0 auto 0;
  height: 42px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding: 8px 24px 0;
  opacity: 0.22;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.trdash-player-wave-bar {
  flex: 1;
  max-width: 4px;
  height: calc(8px + (var(--i) % 7) * 3px);
  border-radius: 999px;
  background: linear-gradient(180deg, #90caf9, #0073e6);
  transform-origin: bottom;
  animation: trdash-wave-idle 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.07s);
}
.trdash-player-card.is-playing .trdash-player-wave {
  opacity: 0.38;
}
.trdash-player-card.is-playing .trdash-player-wave-bar {
  animation-name: trdash-wave-play;
  animation-duration: 0.85s;
}
@keyframes trdash-wave-idle {
  0%, 100% { transform: scaleY(0.55); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 0.85; }
}
@keyframes trdash-wave-play {
  0%, 100% { transform: scaleY(0.35); }
  35% { transform: scaleY(1.15); }
  70% { transform: scaleY(0.6); }
}
.trdash-player-card.is-playing {
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.38),
    0 0 24px rgba(0, 115, 230, 0.25),
    0 0 0 1px rgba(66, 165, 245, 0.2);
}
.trdash-player-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}
#transcribe-dashboard-app .trdash-player-skip,
#transcribe-dashboard-app .trdash-player-play,
#transcribe-dashboard-app .trdash-player-rate {
  box-sizing: border-box !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none;
  aspect-ratio: 1 / 1;
  border-radius: 50% !important;
  flex-shrink: 0;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.trdash-player-skip {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #c5d0e0 !important;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.trdash-player-skip .trpro-ic svg {
  width: 16px;
  height: 16px;
}
.trdash-player-skip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.trdash-player-skip:active {
  transform: scale(0.94);
}
.trdash-player-meta-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.trdash-player-rate {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(66, 165, 245, 0.35) !important;
  background: rgba(0, 115, 230, 0.2) !important;
  color: #90caf9 !important;
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.trdash-player-rate:hover {
  background: rgba(0, 115, 230, 0.35);
  border-color: rgba(66, 165, 245, 0.55);
}
.trdash-audio-hidden {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}
.trdash-player-play {
  position: relative;
  width: 52px;
  height: 52px;
  border: none !important;
  background: linear-gradient(145deg, #0073e6 0%, #0073e6 55%, #005bb5 100%) !important;
  color: #fff !important;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 115, 230, 0.5);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.trdash-player-play-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(66, 165, 245, 0.35);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.25s, transform 0.25s;
}
.trdash-player-card.is-playing .trdash-player-play-ring {
  opacity: 1;
  transform: scale(1);
  animation: trdash-pulse 2s ease-in-out infinite;
}
@keyframes trdash-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
.trdash-player-play:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(0, 115, 230, 0.6);
}
.trdash-player-play:active {
  transform: scale(0.96);
}
.trdash-player-play-icon .trpro-ic svg {
  width: 22px;
  height: 22px;
}
.trdash-player-body {
  flex: 1;
  min-width: 0;
}
.trdash-player-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.trdash-player-fname {
  font-size: 13px;
  font-weight: 600;
  color: #eef2f8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}
.trdash-player-time {
  flex-shrink: 0;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: #8b95a8;
}
.trdash-player-time-sep {
  margin: 0 3px;
  opacity: 0.5;
}
.trdash-player-progress {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.trdash-player-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}
.trdash-player-progress-fill {
  position: absolute;
  left: 0;
  height: 5px;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #0073e6, #42a5f5 60%, #90caf9);
  box-shadow: 0 0 14px rgba(66, 165, 245, 0.55);
  transition: width 0.08s linear;
  pointer-events: none;
}
.trdash-player-thumb {
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.trdash-player-progress:hover .trdash-player-thumb,
.trdash-player-progress:focus-visible .trdash-player-thumb,
.trdash-player-progress.is-scrubbing .trdash-player-thumb {
  opacity: 1;
}
.trdash-player-progress.is-scrubbing .trdash-player-thumb {
  transform: translateY(-50%) scale(1.15);
}
.trdash-player-hint {
  margin-top: 8px;
  font-size: 10px;
  color: #6d7689;
  text-align: center;
  letter-spacing: 0.03em;
}

/* Player — iPhone / Android */
@media (max-width: 768px) {
  #transcribe-dashboard-app.trdash-has-player {
    padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px));
  }
  #transcribe-dashboard-app.trdash-has-player .trdash-transcript-end {
    height: calc(128px + env(safe-area-inset-bottom, 0px));
  }
  .trdash-transcript-list {
    --trdash-ts-col: 3.75rem;
    --trdash-ts-gap: 10px;
  }
  .trdash-player-dock {
    padding: 0 10px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .trdash-player-card {
    padding: 12px 14px 8px;
    border-radius: 18px;
  }
  .trdash-player-skip {
    width: 40px;
    height: 40px;
  }
  .trdash-player-play {
    width: 50px;
    height: 50px;
  }
  .trdash-player-fname {
    font-size: 12px;
    max-width: 42%;
  }
  .trdash-player-thumb {
    opacity: 1;
  }
  .trdash-detail-page--player .trdash-detail-content {
    padding: 20px 16px 12px;
  }
  .trdash-seg {
    padding: 8px 10px 8px 8px;
  }
  .trdash-seg--clickable {
    -webkit-tap-highlight-color: rgba(0, 115, 230, 0.1);
  }
}

@media (max-width: 480px) {
  .trdash-player-dock {
    padding: 0 8px calc(8px + env(safe-area-inset-bottom, 0px));
  }
  .trdash-player-card {
    padding: 10px 12px 6px;
    border-radius: 16px;
  }
  .trdash-player-wave {
    display: none;
  }
  .trdash-player-skip {
    width: 36px;
    height: 36px;
  }
  .trdash-player-fname {
    display: none;
  }
  .trdash-player-top {
    justify-content: flex-end;
    margin-bottom: 8px;
  }
  .trdash-player-hint {
    display: none;
  }
  #transcribe-dashboard-app.trdash-has-player {
    padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
  }
}

@media (hover: none) and (pointer: coarse) {
  .trdash-player-thumb {
    opacity: 1;
  }
  .trdash-player-play:hover {
    transform: none;
    box-shadow: 0 6px 20px rgba(0, 115, 230, 0.5);
  }
}
.trdash-sidebar-warn {
  font-size: 12px;
  color: #888;
  line-height: 1.4;
}
.trdash-detail-sidebar {
  width: 280px;
  flex-shrink: 0;
  padding: 24px 20px;
  background: #fafafa;
}
.trdash-sidebar-block {
  margin-bottom: 24px;
}
.trdash-sidebar-block h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
  margin: 0 0 12px;
}
.trdash-sidebar-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 8px;
  background: #fff !important;
  border: 1px solid #ddd !important;
  border-radius: 8px;
  font-size: 14px;
  color: #333 !important;
  cursor: pointer;
  text-align: left;
}
.trdash-sidebar-btn.primary {
  background: #0073e6 !important;
  color: #fff !important;
  border-color: #0073e6 !important;
  font-weight: 600;
  justify-content: center;
}
.trdash-sidebar-btn-copy {
  background: #fff !important;
  color: #0073e6 !important;
  border: 2px solid #0073e6 !important;
  font-weight: 600;
  justify-content: center;
  padding: 12px 14px;
  margin-bottom: 10px;
}
#transcribe-dashboard-app .trdash-sidebar-btn-copy:hover {
  background: #e3f2fd !important;
  color: #005bb5 !important;
  border-color: #005bb5 !important;
}
.trdash-export-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.trdash-sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 0;
  background: none !important;
  border: none !important;
  font-size: 14px;
  color: #333 !important;
  cursor: pointer;
  text-align: left;
}
.trdash-sidebar-link:hover { color: #0073e6 !important; }
.trdash-sidebar-link.danger { color: #d32f2f !important; }
.trdash-sidebar-link.danger .trpro-ic { color: #d32f2f; }
#transcribe-dashboard-app .trdash-ctx-item .trpro-ic { color: #0073e6; }
#transcribe-dashboard-app .trdash-ctx-item.danger .trpro-ic { color: #d32f2f; }
.trdash-sidebar-btn.primary .trpro-ic,
.trdash-btn-transcribe .trpro-ic {
  color: #fff;
}
.trdash-sidebar-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 12px;
  cursor: pointer;
}
.trdash-sidebar-meta > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.trdash-sidebar-meta .trpro-ic {
  color: #0073e6;
}
.trdash-sidebar-meta {
  font-size: 13px;
  color: #888;
  line-height: 1.8;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

/* ── Modal overlay ────────────────────────────────── */
.trdash-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.trdash-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.trdash-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
}
.trdash-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
}
.trdash-modal-close {
  background: none !important;
  border: none !important;
  font-size: 22px;
  color: #999 !important;
  cursor: pointer;
  padding: 4px 8px;
}
.trdash-modal-body { padding: 20px 24px; }

/* YouTube URL tab in modal */
.trdash-modal-url {
  margin-top: 4px;
}
.trdash-modal-url-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #555 !important;
  margin-bottom: 8px;
}
.trdash-modal-url-wrap {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 2px solid #d0d7de;
  border-radius: 10px;
  overflow: hidden;
  background: #fff !important;
  transition: border-color 0.15s;
}
.trdash-modal-url-wrap:focus-within {
  border-color: #0073e6;
  box-shadow: 0 0 0 3px rgba(0, 115, 230, 0.12);
}
#transcribe-dashboard-app .trdash-modal-url-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.4;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  color: #1a1a2e !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
#transcribe-dashboard-app .trdash-modal-url-input::placeholder {
  color: #9aa0a6 !important;
}
#transcribe-dashboard-app .trdash-modal-url-paste {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 16px;
  background: #e8f0fe !important;
  border: none !important;
  border-left: 2px solid #90caf9 !important;
  color: #0073e6 !important;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0 !important;
  box-shadow: none !important;
}
#transcribe-dashboard-app .trdash-modal-url-paste .trpro-ic {
  width: 18px;
  height: 18px;
  color: #0073e6;
}
#transcribe-dashboard-app .trdash-modal-url-paste:hover {
  background: #d2e3fc !important;
  color: #005bb5 !important;
}
#transcribe-dashboard-app .trdash-modal-url-paste:hover .trpro-ic {
  color: #005bb5;
}
#transcribe-dashboard-app .trdash-modal-url-paste.trdash-btn-done,
#transcribe-dashboard-app .trdash-modal-url-paste.trpro-btn-done {
  background: #e8f5e9 !important;
  border-left-color: #81c784 !important;
  color: #2e7d32 !important;
}
.trdash-modal-url-hint {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #777 !important;
}
.trdash-modal-footer {
  padding: 16px 24px 24px;
  border-top: 1px solid #eee;
}
.trdash-modal-submit {
  width: 100%;
  padding: 14px;
  background: #0073e6 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
}
.trdash-modal-submit:disabled { opacity: 0.5; cursor: default; }
.trdash-modal-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.trdash-modal-tab {
  flex: 1;
  padding: 10px;
  background: #f5f5f5 !important;
  border: 1px solid #ddd !important;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #333 !important;
}
.trdash-modal-tab.active {
  background: #0073e6 !important;
  color: #fff !important;
  border-color: #0073e6 !important;
}
.trdash-modal-drop {
  border: 2px dashed #ccc;
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  margin-bottom: 20px;
  transition: border-color .2s;
}
.trdash-modal-drop.dragover { border-color: #0073e6; background: #f0f7ff; }
.trdash-modal-drop-icon { font-size: 36px; margin-bottom: 8px; }
.trdash-modal-drop-title { font-size: 15px; font-weight: 600; color: #333; }
.trdash-modal-drop-sub { font-size: 14px; color: #666; margin: 6px 0; }
.trdash-modal-drop-fmt { font-size: 11px; color: #aaa; margin-bottom: 16px; }
.trdash-modal-pick {
  padding: 10px 24px;
  background: #fff !important;
  border: 2px solid #0073e6 !important;
  color: #0073e6 !important;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  letter-spacing: 0.3px;
}
.trdash-modal-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #f0f7ff;
  border: 1px solid #bbdefb;
  border-radius: 10px;
  margin-bottom: 20px;
}
.trdash-modal-fname { font-size: 14px; font-weight: 500; }
.trdash-modal-fname em { color: #888; font-style: normal; }
.trdash-modal-rm {
  background: none !important;
  border: none !important;
  font-size: 18px;
  color: #999 !important;
  cursor: pointer;
}
.trdash-modal-field { margin-bottom: 16px; }
.trdash-modal-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  margin-bottom: 6px;
}
.trdash-modal-hint { font-size: 13px; color: #888; }
.trdash-modal-hint a { color: #0073e6; }
.trdash-modal-select {
  padding: 10px 14px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
}
.trdash-modal-mode {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 2px solid #0073e6;
  border-radius: 10px;
  background: #e3f2fd;
}
.trdash-mode-icon { font-size: 24px; }
.trdash-mode-name { font-weight: 700; font-size: 14px; }
.trdash-mode-desc { font-size: 12px; color: #666; margin-left: auto; }
.trdash-modal-progress { padding: 30px 0; text-align: center; }
.trdash-modal-progress .trpro-progress-bar {
  height: 8px; background: #e5e7eb; border-radius: 8px; overflow: hidden; margin-bottom: 12px;
}
.trdash-modal-progress .trpro-progress-fill {
  height: 100%; background: #0073e6; border-radius: 8px; transition: width .3s;
}
.trdash-modal-progress .trpro-progress-label { font-size: 14px; color: #666; }

.trdash-detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.trdash-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none !important;
  border: 1px solid #ddd !important;
  color: #333 !important;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
.trdash-btn-back:hover {
  background: #f5f5f5 !important;
}
.trdash-detail-title {
  font-size: 18px;
  font-weight: 600;
  flex: 1;
}
.trdash-detail-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #888;
}
.trdash-detail-text {
  white-space: pre-wrap;
  line-height: 1.7;
  font-size: 15px;
  padding: 16px;
  background: #fafafa;
  border-radius: 8px;
  max-height: 500px;
  overflow-y: auto;
}
.trdash-export-bar {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.trdash-btn-exp {
  padding: 8px 16px;
  background: #f5f5f5 !important;
  color: #333 !important;
  border: 1px solid #ddd !important;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 500;
}
.trdash-btn-exp:hover {
  background: #e8e8e8 !important;
}
.trdash-btn-exp.primary {
  background: #0073e6 !important;
  color: #fff !important;
  border-color: #0073e6 !important;
}

/* ── Empty state ──────────────────────────────────── */
.trdash-empty {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}
.trdash-empty-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
  color: #0073e6;
}
.trdash-empty-icon .trpro-ic-lg {
  width: 48px;
  height: 48px;
}
.trdash-empty h3 {
  font-size: 18px;
  color: #666;
  margin: 0 0 8px;
}

/* ── Guest banner (TurboScribe-style) ─────────────── */
.trdash-guest-banner,
.trdash-guest-hint {
  background: linear-gradient(135deg, #0073e6 0%, #0073e6 100%);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
  text-align: center;
  color: #fff;
}
.trdash-guest-banner p,
.trdash-guest-hint p,
.trdash-guest-banner strong {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.45;
  color: #fff !important;
}
.trdash-guest-banner strong {
  display: inline;
  margin: 0;
}
.trdash-job-status-compact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.trdash-job-status-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 120px;
  max-width: 200px;
}
.trdash-job-phase {
  font-size: 11px;
  line-height: 1.35;
  color: #e65100;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  max-width: 200px;
}
.trdash-ring {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trdash-ring-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid #ffe0b2;
  border-top-color: #f57c00;
  border-right-color: #fb8c00;
  animation: trdash-spin 0.85s linear infinite;
  animation-play-state: running;
  will-change: transform;
  box-sizing: border-box;
}
.trdash-ring-inner {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px #ffe0b2;
}
.trdash-ring-inner span {
  font-size: 9px;
  font-weight: 700;
  color: #e65100;
  line-height: 1;
  letter-spacing: -0.02em;
}
.trdash-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #ffe0b2;
  border-top-color: #f57c00;
  border-radius: 50%;
  animation: trdash-spin 0.75s linear infinite;
  flex-shrink: 0;
}
.trdash-job-desktop {
  width: 52px;
  text-align: center;
  vertical-align: middle;
}
@keyframes trdash-spin {
  to { transform: rotate(360deg); }
}

/* dismiss/cancel button — !important overrides WP themes */
#transcribe-dashboard-app .trdash-job-dismiss-btn {
  background: #f0f0f0 !important;
  border: 1px solid #ddd !important;
  cursor: pointer !important;
  padding: 0 !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #888 !important;
  box-shadow: none !important;
  transition: background .2s, border-color .2s, color .2s !important;
  flex-shrink: 0 !important;
  outline: none !important;
  line-height: 1 !important;
  vertical-align: middle !important;
}
#transcribe-dashboard-app .trdash-job-dismiss-btn:hover,
#transcribe-dashboard-app .trdash-job-dismiss-btn:focus {
  background: #e8e8e8 !important;
  border-color: #ccc !important;
  color: #555 !important;
}
#transcribe-dashboard-app .trdash-job-dismiss-btn .trpro-ic {
  width: 14px !important;
  height: 14px !important;
  display: flex !important;
}
#transcribe-dashboard-app .trdash-job-dismiss-btn .trpro-ic svg {
  width: 14px !important;
  height: 14px !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
}
.trdash-guest-folders-note {
  font-size: 12px;
  color: #888;
  padding: 8px 12px;
  margin-top: 8px;
}
.trdash-translate-block {
  margin: 12px 0;
  padding-top: 12px;
  border-top: 1px solid #e8e8e8;
}
.trdash-translate-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 8px;
}
.trdash-translate-label .trpro-ic {
  color: #0073e6;
}
.trdash-translate-select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 8px;
  background: #fff;
}
.trdash-guest-hint-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
#transcribe-dashboard-app .trdash-guest-btn {
  padding: 9px 18px;
  border: 1px solid rgba(255,255,255,0.6) !important;
  border-radius: 8px !important;
  background: rgba(255,255,255,0.15) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer;
}
#transcribe-dashboard-app .trdash-guest-btn-primary {
  background: #fff !important;
  color: #0073e6 !important;
  border-color: #fff !important;
}
.trdash-auth-top {
  background: linear-gradient(160deg, #0073e6 0%, #0073e6 55%, #005bb5 100%);
  color: #fff;
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: 0 8px 32px rgba(0, 115, 230, 0.25);
}
.trdash-auth-top-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.trdash-auth-top h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}
.trdash-auth-top p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.45;
  max-width: 520px;
}
.trdash-auth-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  flex-shrink: 0;
}
#transcribe-dashboard-app .trdash-auth-tab {
  padding: 9px 18px;
  border: none !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer;
}
#transcribe-dashboard-app .trdash-auth-tab.active {
  background: #fff !important;
  color: #0073e6 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
}
.trdash-auth-top-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: start;
}
.trdash-auth-col {
  min-width: 0;
}
.trdash-auth-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 48px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}
.trdash-login-or {
  margin: 18px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.04em;
}
.trdash-login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#transcribe-dashboard-app .trdash-login-input {
  padding: 14px 16px;
  border: none !important;
  border-radius: 10px;
  font-size: 15px;
  color: #333 !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
#transcribe-dashboard-app .trdash-login-input:focus {
  outline: 2px solid rgba(255, 255, 255, 0.6) !important;
  outline-offset: 1px;
}
#transcribe-dashboard-app .trdash-login-submit {
  padding: 14px 16px;
  background: #fff !important;
  color: #0073e6 !important;
  border: none !important;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
#transcribe-dashboard-app .trdash-login-submit:hover {
  background: #f5f9ff !important;
}
.trdash-login-error {
  margin-top: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #ffcdd2;
  font-size: 14px;
}
.trdash-login-footer {
  margin-top: 20px;
}
.trdash-login-switch {
  background: none !important;
  border: none !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 8px;
}
.trdash-login-switch:hover {
  color: #fff !important;
}
.trdash-user-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.trdash-user-bar:hover {
  border-color: #90caf9;
  box-shadow: 0 2px 8px rgba(0, 115, 230, 0.08);
}
.trdash-user-more {
  flex-shrink: 0;
  color: #999;
  display: flex;
  align-items: center;
}
.trdash-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.trdash-user-avatar-ph {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e3f2fd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.trdash-user-info { flex: 1; min-width: 0; }
.trdash-user-name {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trdash-user-email {
  font-size: 11px;
  color: #999;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#transcribe-dashboard-app .trdash-btn-logout {
  padding: 6px 12px;
  font-size: 12px;
  background: #f5f5f5 !important;
  border: 1px solid #ddd !important;
  color: #333 !important;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
}
#transcribe-dashboard-app .trdash-btn-logout:hover {
  background: #eee !important;
}
.trdash-btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  background: #fff !important;
  border: none !important;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: #333 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.trdash-btn-google-lg {
  width: 100%;
  padding: 14px 20px;
}
.trdash-btn-google:hover {
  background: #f5f9ff !important;
}
.trdash-btn-google svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ── Pagination ───────────────────────────────────── */
.trdash-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.trdash-page-btn {
  padding: 6px 14px;
  background: #f5f5f5 !important;
  border: 1px solid #ddd !important;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: #333 !important;
}
.trdash-page-btn:hover { background: #e8e8e8 !important; }
.trdash-page-btn.active {
  background: #0073e6 !important;
  color: #fff !important;
  border-color: #0073e6 !important;
}

/* ── Transcribe in dashboard ──────────────────────── */
.trdash-transcribe-body {
  padding: 20px 0;
}
.trdash-transcribe-body .trpro-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.trdash-transcribe-body .trpro-tab {
  padding: 10px 20px;
  background: #f5f5f5 !important;
  border: 1px solid #ddd !important;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #333 !important;
}
.trdash-transcribe-body .trpro-tab.active {
  background: #0073e6 !important;
  color: #fff !important;
  border-color: #0073e6 !important;
}
.trdash-transcribe-body .trpro-dropzone {
  border: 2px dashed #ccc;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s;
}
.trdash-transcribe-body .trpro-dropzone:hover,
.trdash-transcribe-body .trpro-dropzone.dragover {
  border-color: #0073e6;
  background: #f0f7ff;
}
.trdash-transcribe-body .trpro-drop-icon { font-size: 40px; display: block; margin-bottom: 8px; }
.trdash-transcribe-body .trpro-drop-title { font-size: 16px; font-weight: 600; color: #333; }
.trdash-transcribe-body .trpro-drop-sub { font-size: 13px; color: #888; margin-top: 6px; }
.trdash-transcribe-body .trpro-drop-formats { font-size: 12px; color: #aaa; margin-top: 8px; }
.trdash-transcribe-body .trpro-input-wrap {
  display: flex;
  gap: 8px;
}
.trdash-transcribe-body .trpro-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  color: #333;
}
.trdash-transcribe-body .trpro-paste-btn {
  background: #e8f0fe !important;
  border: 2px solid #90caf9 !important;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #0073e6 !important;
}
.trdash-transcribe-body .trpro-submit-row {
  margin-top: 16px;
}
.trdash-transcribe-body .trpro-btn-submit {
  background: #0073e6 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}
.trdash-transcribe-body .trpro-btn-submit:disabled {
  opacity: .5;
  cursor: default;
}
.trdash-transcribe-body .trpro-file-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #f9f9f9;
  border-radius: 10px;
  border: 1px solid #eee;
}
.trdash-transcribe-body .trpro-file-actions { display: flex; gap: 8px; }
.trdash-transcribe-body .trpro-btn-sm {
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid #ddd !important;
  background: #fff !important;
  color: #333 !important;
  cursor: pointer;
  font-size: 13px;
}
.trdash-transcribe-body .trpro-btn-sm-primary {
  background: #0073e6 !important;
  color: #fff !important;
  border-color: #0073e6 !important;
}
.trdash-transcribe-body .trpro-error {
  background: #fef2f2;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 14px;
}
.trdash-tr-progress {
  padding: 40px 0;
  text-align: center;
}
.trdash-tr-progress .trpro-progress-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}
.trdash-tr-progress .trpro-progress-fill {
  height: 100%;
  background: #0073e6;
  border-radius: 8px;
  transition: width .3s;
}
.trdash-tr-progress .trpro-progress-label {
  font-size: 14px;
  color: #666;
}
.trdash-tr-result .trdash-tr-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 14px;
  color: #666;
}

.trdash-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.trdash-job-mobile {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 8px 10px;
  background: linear-gradient(135deg, #fff8f0, #fff4e8);
  border: 1px solid rgba(245,124,0,.15);
  border-radius: 12px;
}
.trdash-error-banner {
  display: none;
  background: #ffebee;
  border: 1px solid #ef9a9a;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #c62828;
  line-height: 1.4;
  position: relative;
  padding-right: 36px;
}
.trdash-error-banner strong {
  display: block;
  margin-bottom: 4px;
  color: #b71c1c;
}
.trdash-job-dismiss {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  background: transparent;
  color: #c62828;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}
#transcribe-dashboard-app .trdash-cell-name .trdash-job-mobile .trdash-job-dismiss,
#transcribe-dashboard-app .trdash-cell-name .trdash-job-mobile .trdash-job-dismiss-btn {
  position: static !important;
  margin-left: auto !important;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
  #transcribe-dashboard-app {
    max-width: 100%;
    width: 100%;
    padding: 12px 10px;
    box-sizing: border-box;
  }
  .trdash-layout {
    flex-direction: column;
    width: 100%;
    gap: 16px;
  }
  .trdash-sidebar,
  .trdash-main {
    width: 100%;
    flex: none;
    min-width: 0;
    max-width: 100%;
  }
  .trdash-limits,
  .trdash-nav,
  .trdash-user-bar {
    width: 100%;
    box-sizing: border-box;
  }
  .trdash-premium-overlay {
    padding: 12px;
    align-items: flex-start;
  }
  .trdash-limit-guest-top { padding: 24px 20px 20px; }
  .trdash-limit-guest-title { font-size: 19px; }
  .trdash-limit-guest-divider { padding: 0 20px; }
  .trdash-limit-guest-premium { padding: 18px 20px 22px !important; }
  .trdash-premium-gate {
    padding: 8px 0;
    min-height: auto;
    width: 100%;
    align-items: stretch;
  }
  .trdash-premium-gate-inner {
    max-width: none;
    width: 100%;
    padding: 28px 20px 24px;
    box-sizing: border-box;
  }
  .trdash-premium-gate-features {
    display: block;
    width: 100%;
    max-width: 100%;
  }
  .trdash-premium-gate-cta {
    max-width: none;
    width: 100%;
  }
  .trdash-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    overscroll-behavior-x: contain;
  }
  .trdash-table {
    width: max-content;
    min-width: 100%;
  }
  .trdash-table th,
  .trdash-table td {
    white-space: nowrap;
  }
  .trdash-row-error-file td {
    white-space: normal !important;
  }
  .trdash-table th:nth-child(4),
  .trdash-table td:nth-child(4),
  .trdash-table th:nth-child(5),
  .trdash-table td:nth-child(5),
  .trdash-table th:nth-child(6),
  .trdash-table td:nth-child(6) { display: none; }
  .trdash-job-desktop { display: none !important; }
  .trdash-job-mobile {
    display: flex;
    margin-top: 8px;
  }
  .trdash-job-mobile .trdash-job-status-col {
    flex-direction: row;
    gap: 10px;
    min-width: 0;
  }
  .trdash-job-mobile .trdash-job-phase {
    font-size: 12px;
    white-space: nowrap;
  }
  .trdash-job-mobile .trdash-status-error {
    display: inline;
    word-break: break-word;
  }
  .trdash-error-banner { display: block; }
  .trdash-cell-name {
    max-width: none;
    white-space: normal;
  }
  .trdash-name-row {
    word-break: break-word;
  }
  .trdash-file-title {
    max-width: 180px;
    white-space: nowrap;
  }
  .trdash-file-title-processing {
    max-width: 180px;
    white-space: nowrap;
  }
  .trdash-header { flex-direction: column; gap: 12px; align-items: stretch; }
  .trdash-detail-layout { flex-direction: column; }
  .trdash-detail-content { border-right: none; border-bottom: 1px solid #eee; }
  .trdash-detail-sidebar { width: 100%; }
  .trdash-modal { max-width: 100%; }
  .trdash-auth-top { padding: 20px 16px; }
  .trdash-auth-top-head { flex-direction: column; }
  .trdash-auth-top-body {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .trdash-auth-sep {
    padding-top: 0;
    writing-mode: horizontal-tb;
    transform: none;
  }
  .trdash-auth-sep::before,
  .trdash-auth-sep::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
  }
  .trdash-auth-sep {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
  }
}

/* ── Theme reset: не даём шаблону перебить цвета ─── */
#transcribe-dashboard-app .trdash-premium-gate-inner h2,
#transcribe-dashboard-app .trdash-premium-gate-inner p,
#transcribe-dashboard-app .trdash-premium-gate-inner li,
#transcribe-dashboard-app .trdash-premium-gate-inner span,
#transcribe-dashboard-app .trdash-premium-gate-inner a,
#transcribe-dashboard-app .trdash-premium-gate-inner button {
  font-family: inherit;
}
#transcribe-dashboard-app .trdash-premium-gate-inner,
#transcribe-dashboard-app .trdash-premium-gate-inner .trdash-premium-gate-title,
#transcribe-dashboard-app .trdash-premium-gate-inner h2.trdash-premium-gate-title {
  color: #fff !important;
}
#transcribe-dashboard-app .trdash-premium-gate-inner .trdash-premium-gate-sub,
#transcribe-dashboard-app .trdash-premium-gate-inner p.trdash-premium-gate-sub {
  color: rgba(255, 255, 255, 0.92) !important;
}
#transcribe-dashboard-app .trdash-premium-gate-features li,
#transcribe-dashboard-app .trdash-premium-gate-features .trdash-pg-text {
  color: #fff !important;
}
#transcribe-dashboard-app .trdash-premium-gate-badge,
#transcribe-dashboard-app .trdash-pg-check {
  color: #fff !important;
}
#transcribe-dashboard-app .trdash-premium-gate-cta {
  color: #0073e6 !important;
  background: #fff !important;
}
#transcribe-dashboard-app .trdash-premium-gate-dismiss {
  color: rgba(255, 255, 255, 0.88) !important;
  background: transparent !important;
}
#transcribe-dashboard-app .trdash-guest-banner,
#transcribe-dashboard-app .trdash-guest-banner p,
#transcribe-dashboard-app .trdash-guest-banner strong {
  color: #fff !important;
}
#transcribe-dashboard-app .trdash-limits,
#transcribe-dashboard-app .trdash-limits-title,
#transcribe-dashboard-app .trdash-limits-sub,
#transcribe-dashboard-app .trdash-limits-badge,
#transcribe-dashboard-app .trdash-limits-hero-title,
#transcribe-dashboard-app .trdash-limits-hero-sub {
  color: #fff !important;
}
#transcribe-dashboard-app .trdash-limits-hero-sub {
  color: rgba(255, 255, 255, 0.88) !important;
}

/* ── Subscription modal ──────────────────────────── */
.trdash-sub-overlay {
  position: fixed; inset: 0; z-index: 10002;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  animation: trdash-fade-in .2s ease;
}
.trdash-sub-shell {
  position: relative;
  background: #fff; border-radius: 16px; padding: 36px 32px 28px;
  max-width: 460px; width: 92%; box-shadow: 0 12px 48px rgba(0,0,0,.18);
  animation: trdash-scale-in .25s ease;
  color: #1a1a1a !important;
}
.trdash-sub-close {
  position: absolute; top: 12px; right: 12px;
  background: none !important; border: none !important;
  cursor: pointer; padding: 6px; color: #666 !important;
  line-height: 1;
}
.trdash-sub-close:hover { color: #000 !important; }
.trdash-sub-title {
  font-size: 22px !important; font-weight: 700 !important;
  margin: 0 0 20px !important; color: #1a1a1a !important;
}
.trdash-sub-loading {
  display: flex; align-items: center; justify-content: center; padding: 40px 0;
}

.trdash-sub-card {
  background: #f8f9fa; border-radius: 12px; padding: 20px; margin-bottom: 8px;
}
.trdash-sub-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid #e8eaed;
}
.trdash-sub-row:last-of-type { border-bottom: none; }
.trdash-sub-label {
  font-size: 14px; color: #666 !important; font-weight: 500;
}
.trdash-sub-value {
  font-size: 14px; color: #1a1a1a !important; font-weight: 600;
}
.trdash-sub-plan-badge {
  display: inline-block; padding: 3px 12px; border-radius: 20px;
  font-size: 13px; font-weight: 700; text-transform: uppercase;
}
.trdash-sub-plan-badge.free { background: #e8eaed; color: #555 !important; }
.trdash-sub-plan-badge.standard { background: #e8f5e9; color: #2e7d32 !important; }
.trdash-sub-plan-badge.pro { background: #e3f2fd; color: #1565c0 !important; }

.trdash-sub-status {
  display: inline-block; padding: 2px 10px; border-radius: 12px;
  font-size: 12px; font-weight: 600;
}
.trdash-sub-status.active { background: #c8e6c9; color: #2e7d32 !important; }
.trdash-sub-status.pending { background: #fff3e0; color: #e65100 !important; }
.trdash-sub-status.cancelled { background: #ffcdd2; color: #c62828 !important; }
.trdash-sub-status.revoked { background: #e1bee7; color: #6a1b9a !important; }

.trdash-payment-pending-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 99990;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(90deg, #0d47a1 0%, #1565c0 100%);
  color: #fff; border: none; cursor: pointer; text-align: left;
  box-shadow: 0 -4px 24px rgba(13, 71, 161, 0.35);
  font-family: inherit;
}
.trdash-payment-pending-bar:hover { filter: brightness(1.05); }
.trdash-payment-pending-spinner {
  width: 22px; height: 22px; flex-shrink: 0;
  border-color: rgba(255,255,255,.35); border-top-color: #fff;
}
.trdash-payment-pending-text {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px;
}
.trdash-payment-pending-text strong {
  font-size: 14px; font-weight: 700; color: #fff;
}
.trdash-payment-pending-sub {
  font-size: 12px; color: rgba(255,255,255,.88); line-height: 1.35;
}
.trdash-payment-pending-hint {
  flex-shrink: 0; font-size: 11px; color: rgba(255,255,255,.75);
  text-decoration: underline; text-underline-offset: 2px;
}
body.trdash-has-payment-pending #transcribe-dashboard-app {
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}
.trdash-sub-status.expired { background: #f5f5f5; color: #757575 !important; }

.trdash-sub-actions {
  display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap;
}
.trdash-sub-upgrade-btn,
.trdash-sub-change-btn {
  flex: 1; min-width: 140px; padding: 10px 16px; border-radius: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer; border: none !important;
  background: #0073e6 !important; color: #fff !important;
  transition: background .2s;
}
.trdash-sub-upgrade-btn:hover,
.trdash-sub-change-btn:hover { background: #005bb5 !important; }

.trdash-sub-cancel-btn {
  flex: 1; min-width: 120px; padding: 10px 16px; border-radius: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  background: transparent !important; color: #c62828 !important;
  border: 1px solid #ef9a9a !important; transition: background .2s;
}
.trdash-sub-cancel-btn:hover { background: #ffebee !important; }

.trdash-sub-free {
  text-align: center; padding: 24px 0 8px;
}
.trdash-sub-free-desc {
  font-size: 15px; color: #555 !important; margin: 12px 0 20px !important;
  line-height: 1.5;
}

/* Sidebar subscription link */
.trdash-nav-sub {
  margin-top: 12px; border-top: 1px solid #e8eaed; padding-top: 12px;
  cursor: pointer; color: #0073e6 !important; font-weight: 500;
}
.trdash-nav-sub:hover { background: #f0f7ff !important; }

body.trdash-sub-open { overflow: hidden; }

@keyframes trdash-fade-in { from { opacity: 0 } to { opacity: 1 } }
@keyframes trdash-scale-in { from { transform: scale(.95); opacity: 0 } to { transform: scale(1); opacity: 1 } }

/* ── Offline banner ─────────────────────────────── */
.trdash-offline-banner {
  position: fixed !important;
  bottom: 0 !important; left: 0 !important; right: 0 !important;
  z-index: 999999 !important;
  background: #333 !important; color: #fff !important;
  text-align: center !important;
  padding: 12px 16px !important;
  font-size: 14px !important; font-weight: 500 !important;
  line-height: 1.4 !important;
  animation: trdash-fade-in .25s ease !important;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
}
.trdash-offline-dot {
  display: inline-block !important;
  width: 8px !important; height: 8px !important;
  border-radius: 50% !important;
  background: #ff5252 !important;
  margin-right: 6px !important;
  vertical-align: middle !important;
  animation: trdash-offline-pulse 1.5s infinite !important;
}
@keyframes trdash-offline-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

/* ── Account modal ─────────────────────────────── */
.trdash-account-shell { max-width: 420px; }
.trdash-account-user {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; margin-bottom: 16px;
  background: #f8f9fa; border-radius: 12px;
}
.trdash-account-google {
  margin-top: 4px; font-size: 11px; color: #1565c0 !important; font-weight: 600;
}
.trdash-account-btn {
  display: block; width: 100%; margin-bottom: 10px;
  padding: 11px 16px; border-radius: 8px; border: 1px solid #e0e0e0 !important;
  background: #fff !important; color: #333 !important;
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.trdash-account-btn:hover { background: #f5f5f5 !important; }
.trdash-account-btn.danger {
  background: #c62828 !important; border-color: #c62828 !important; color: #fff !important;
}
.trdash-account-btn.danger:hover { background: #b71c1c !important; }
.trdash-account-link {
  display: block; width: 100%; margin-top: 8px; padding: 8px;
  background: none !important; border: none !important;
  color: #c62828 !important; font-size: 13px; font-weight: 600;
  cursor: pointer; text-align: center;
}
.trdash-account-link:hover { text-decoration: underline; }
.trdash-account-delete {
  margin-top: 12px; padding-top: 16px; border-top: 1px solid #eee;
}
.trdash-account-delete-desc {
  margin: 0 0 12px; font-size: 13px; line-height: 1.55; color: #666 !important;
}
.trdash-account-label {
  display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; color: #555 !important;
}
.trdash-account-input {
  width: 100%; box-sizing: border-box; margin-bottom: 12px;
  padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px;
}
.trdash-account-note {
  margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: #888 !important;
}
