/* ── 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;
}

/* ── 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: #1565c0;
  color: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}
.trdash-limits-title {
  font-size: 14px;
  opacity: 0.9;
  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: #1565c0 !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: #1565c0 !important;
  font-weight: 600;
}
.trdash-nav-item + .trdash-nav-item {
  border-top: 1px solid #f0f0f0;
}
.trdash-nav-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}
.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: #1565c0 !important;
  cursor: pointer;
  font-size: 18px;
  padding: 0 4px;
}

/* ── Header ───────────────────────────────────────── */
.trdash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.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: #1565c0 !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: #0d47a1 !important;
}

/* ── 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: #1565c0;
  cursor: pointer;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.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-row-processing td {
  background: #fffbf0 !important;
}
.trdash-row-error td {
  background: #fff5f5 !important;
}
.trdash-file-title-processing {
  font-weight: 600;
  color: #e65100;
}
.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: hidden;
}
.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 {
  line-height: 1.8;
  font-size: 16px;
  color: #333;
  max-height: 65vh;
  overflow-y: auto;
}
.trdash-seg {
  margin: 0 0 16px;
}
.trdash-ts {
  color: #1565c0;
  font-weight: 600;
  font-size: 14px;
  margin-right: 4px;
}
.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: block;
  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: #1565c0 !important;
  color: #fff !important;
  border-color: #1565c0 !important;
  font-weight: 600;
  text-align: center;
}
.trdash-export-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.trdash-sidebar-link {
  display: block;
  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: #1565c0 !important; }
.trdash-sidebar-link.danger { color: #d32f2f !important; }
.trdash-sidebar-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 12px;
  cursor: pointer;
}
.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: #1565c0;
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 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: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  background: #f5f7fa !important;
  border: none !important;
  border-left: 1px solid #d0d7de !important;
  color: #555 !important;
  font-size: 20px;
  cursor: pointer;
  border-radius: 0 !important;
  box-shadow: none !important;
}
#transcribe-dashboard-app .trdash-modal-url-paste:hover {
  background: #e8edf3 !important;
  color: #1565c0 !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: #1565c0 !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: #1565c0 !important;
  color: #fff !important;
  border-color: #1565c0 !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: #1565c0; 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 #1565c0 !important;
  color: #1565c0 !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: #1565c0; }
.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 #1565c0;
  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: #1565c0; 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 {
  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: #1565c0 !important;
  color: #fff !important;
  border-color: #1565c0 !important;
}

/* ── Empty state ──────────────────────────────────── */
.trdash-empty {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}
.trdash-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.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, #1976d2 0%, #1565c0 100%);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
  text-align: center;
  color: #fff;
}
.trdash-guest-banner p,
.trdash-guest-hint p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.45;
}
.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: block;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 8px;
}
.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: #1565c0 !important;
  border-color: #fff !important;
}
.trdash-auth-top {
  background: linear-gradient(160deg, #1976d2 0%, #1565c0 55%, #0d47a1 100%);
  color: #fff;
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: 0 8px 32px rgba(21, 101, 192, 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: #1565c0 !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: #1565c0 !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;
  margin-top: 16px;
  padding: 12px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
}
.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: #1565c0 !important;
  color: #fff !important;
  border-color: #1565c0 !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: #1565c0 !important;
  color: #fff !important;
  border-color: #1565c0 !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: #1565c0;
  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: #f5f5f5 !important;
  border: 1px solid #ddd !important;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 18px;
}
.trdash-transcribe-body .trpro-submit-row {
  margin-top: 16px;
}
.trdash-transcribe-body .trpro-btn-submit {
  background: #1565c0 !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: #1565c0 !important;
  color: #fff !important;
  border-color: #1565c0 !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: #1565c0;
  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;
}
.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;
}
.trdash-cell-name .trdash-job-mobile .trdash-job-dismiss {
  position: static;
  margin-left: 8px;
  vertical-align: middle;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
  .trdash-layout { flex-direction: column; }
  .trdash-sidebar { width: 100%; }
  .trdash-table-wrap { overflow-x: visible; }
  .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: block;
    margin-top: 8px;
  }
  .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,
  .trdash-file-title-processing {
    max-width: none;
    white-space: normal;
  }
  .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%;
  }
}
