@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
:root {
  color-scheme: dark;
  --tp-bg: #0f172a;
  --tp-surface: #0f172a;
  --tp-surface-alt: #1d263a;
  --tp-surface-subtle: #1a2436;
  --tp-text: #e2e8f0;
  --tp-muted: #94a3b8;
  --tp-border: #334155;
  --tp-primary: #7dd3fc;
  --tp-primary-hover: #bae6fd;
  --tp-primary-contrast: #0b1220;
  --tp-accent: #4ade80;
  --tp-danger: #f87171;
  --tp-service-fire-dispatch: rgba(211, 47, 47, 1);
  --tp-service-fire-talk: rgba(229, 57, 53, 1);
  --tp-service-fire-tac: rgba(142, 0, 0, 1);
  --tp-service-law-dispatch: rgba(25, 118, 210, 1);
  --tp-service-law-talk: rgba(30, 136, 229, 1);
  --tp-service-law-tac: rgba(13, 71, 161, 1);
  --tp-service-ems-talk: rgba(67, 160, 71, 1);
  --tp-service-ems-tac: rgba(27, 94, 32, 1);
  --tp-service-hospital: rgba(0, 121, 107, 1);
  --tp-service-public-works: rgba(251, 140, 0, 1);
  --tp-service-security: rgba(66, 66, 66, 1);
  --tp-service-corrections: rgba(94, 53, 177, 1);
  --tp-service-multi-talk: rgba(251, 192, 45, 1);
  --tp-service-multi-tac: rgba(249, 168, 37, 1);
  --tp-service-interop: rgba(255, 214, 0, 1);
  --tp-service-emergency-ops: rgba(183, 28, 28, 1);
  --tp-service-event: rgba(255, 23, 68, 1);
  --tp-service-fire-event: rgba(255, 23, 68, 1);
  --tp-service-police-event: rgba(41, 121, 255, 1);
  --tp-shadow: 0 18px 40px rgba(2, 6, 23, 0.35);
  --tp-nav: rgba(15, 23, 42, 0.92);
}

body {
  padding-top: 74px;
  padding-bottom: 84px;
  font-size: 16px;
  background: var(--tp-bg);
  color: var(--tp-text);
  font-family: 'Inter', sans-serif;
}

a {
  color: var(--tp-primary);
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: #1d4ed8;
}

.navbar {
  border: none;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(14px);
}

.navbar-inverse {
  background: var(--tp-nav);
}

.navbar-inverse .navbar-brand,
.navbar-inverse .navbar-nav > li > a {
  color: var(--tp-text);
  font-weight: 600;
}

.navbar-inverse .navbar-toggle {
  border-color: var(--tp-border);
}

.navbar-inverse .navbar-toggle .icon-bar {
  background-color: var(--tp-text);
}

.navbar-inverse .navbar-toggle:hover,
.navbar-inverse .navbar-toggle:focus,
.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus {
  background: var(--tp-surface-alt);
  color: var(--tp-primary);
}

.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-brand:hover {
  color: var(--tp-primary);
}

.navbar-inverse .navbar-nav > .open > a,
.navbar-inverse .navbar-nav > .open > a:focus,
.navbar-inverse .navbar-nav > .open > a:hover {
  background: transparent;
  color: var(--tp-primary);
}

.navbar-nav.navbar-right {
  margin-right: 0;
}

.tp-auth-nav > li > a {
  font-weight: 600;
}

.navbar-footer {
  border-top: 1px solid var(--tp-border);
  background: var(--tp-surface);
}

.tp-install-btn {
  margin-left: 8px;
  border-color: var(--tp-border);
  color: var(--tp-text);
}

.tp-install-btn:hover,
.tp-install-btn:focus {
  color: var(--tp-primary);
  border-color: var(--tp-primary);
}

.tp-install-modal .modal-content {
  background: var(--tp-surface);
  color: var(--tp-text);
  border: 1px solid var(--tp-border);
  border-radius: 18px;
  box-shadow: var(--tp-shadow);
}

.tp-install-modal .modal-header {
  border-bottom: 1px solid var(--tp-border);
}

.tp-install-modal .modal-title {
  font-weight: 600;
}

.tp-install-modal .modal-body h5 {
  margin-top: 16px;
  font-weight: 600;
}

.tp-install-modal .modal-body ol {
  padding-left: 18px;
}

.tp-offline {
  padding-top: 40px;
  padding-bottom: 60px;
}

.tp-offline-card {
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: 18px;
  padding: 32px;
  box-shadow: var(--tp-shadow);
}


.small {
  font-size: 12px; /* 75% of the baseline */
}

.large {
  font-size: 20px; /* 125% of the baseline */
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 16px;
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  box-shadow: var(--tp-shadow);
}

table th,
table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--tp-border);
}

table th {
  color: var(--tp-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--tp-surface-alt);
}

table tr:last-child td {
  border-bottom: none;
}

.table {
  background: var(--tp-surface);
  color: var(--tp-text);
}

.table > thead > tr > th {
  background: var(--tp-surface-alt);
  border-bottom: 1px solid var(--tp-border);
}

.table-striped > tbody > tr:nth-of-type(odd) {
  background: var(--tp-surface-alt);
}
.active-trans {
   background-image: none;
   position: relative;
   border-radius: 14px;
   border: 2px solid rgba(59, 130, 246, 0.55);
   border-left-width: 6px;
   background: rgba(59, 130, 246, 0.08);
   box-shadow: 0 14px 28px rgba(37, 99, 235, 0.2), 0 0 0 1px rgba(59, 130, 246, 0.28);
   transition: box-shadow 0.35s ease, border-color 0.35s ease;
   animation: tp-active-pulse 2.6s ease-in-out infinite;
}

.active-trans::before {
   content: "";
   position: absolute;
   inset: -6px;
   border-radius: inherit;
   background: radial-gradient(circle at 20% 20%, rgba(96, 165, 250, 0.28), transparent 60%);
   opacity: 0.85;
   z-index: -1;
   filter: blur(6px);
}

.active-trans .player-action {
  background-color: rgba(59, 130, 246, 0.16);
  color: var(--tp-primary);
  border-radius: 999px;
  padding: 4px 8px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.active-trans .talk-group {
  font-weight: 600;
  color: var(--tp-primary);
}

.tp-selected-transmission {
  border-radius: 12px;
  border: 2px dashed rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.06);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.25);
}

@keyframes tp-active-pulse {
  0%,
  100% {
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.2), 0 0 0 1px rgba(59, 130, 246, 0.28);
  }
  50% {
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.34), 0 0 0 1px rgba(96, 165, 250, 0.4);
  }
}
.talk-group {
   font-size: 18px;
   line-height: 1.2;
   /* cursor: pointer; */
}
.talk-group-descr {
   font-size: 14px;
   display: none !important;
   line-height: 1.2;
}
.tran-length {
   font-size: 12px;
   color: var(--tp-muted);
   white-space: nowrap;
}
.tran-menu {
   float:right;
}
.tran-start-time {
   font-size: 11px;
   text-align: right;
   float:right;
   color: rgba(203, 213, 225, 0.9);
}
.tp-transmission {
  padding: 2px 6px;
  border-radius: 14px;
}

.tp-transmission-playable {
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}

.tp-transmission-playable:hover {
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.3);
}

.tp-transmission-playable:active {
  transform: scale(0.99);
}

.tp-service-fire-dispatch:not(.active-trans) {
  border-left: 3px solid var(--tp-service-fire-dispatch);
}

.tp-service-fire-talk:not(.active-trans) {
  border-left: 3px solid var(--tp-service-fire-talk);
}

.tp-service-fire-tac:not(.active-trans) {
  border-left: 3px solid var(--tp-service-fire-tac);
}

.tp-service-law-dispatch:not(.active-trans) {
  border-left: 3px solid var(--tp-service-law-dispatch);
}

.tp-service-law-talk:not(.active-trans) {
  border-left: 3px solid var(--tp-service-law-talk);
}

.tp-service-law-tac:not(.active-trans) {
  border-left: 3px solid var(--tp-service-law-tac);
}

.tp-service-ems-talk:not(.active-trans) {
  border-left: 3px solid var(--tp-service-ems-talk);
}

.tp-service-ems-tac:not(.active-trans) {
  border-left: 3px solid var(--tp-service-ems-tac);
}

.tp-service-hospital:not(.active-trans) {
  border-left: 3px solid var(--tp-service-hospital);
}

.tp-service-security:not(.active-trans) {
  border-left: 3px solid var(--tp-service-security);
}

.tp-service-corrections:not(.active-trans) {
  border-left: 3px solid var(--tp-service-corrections);
}

.tp-service-public-works:not(.active-trans) {
  border-left: 3px solid var(--tp-service-public-works);
}

.tp-service-emergency-ops:not(.active-trans) {
  border-left: 3px solid var(--tp-service-emergency-ops);
}

.tp-service-interop:not(.active-trans) {
  border-left: 3px solid var(--tp-service-interop);
}

.tp-service-multi-talk:not(.active-trans) {
  border-left: 3px solid var(--tp-service-multi-talk);
}

.tp-service-multi-tac:not(.active-trans) {
  border-left: 3px solid var(--tp-service-multi-tac);
}

.tp-service-event:not(.active-trans) {
  border-left: 3px solid var(--tp-service-event);
}

.tp-service-fire-event:not(.active-trans) {
  border-left: 3px solid var(--tp-service-fire-event);
}

.tp-service-police-event:not(.active-trans) {
  border-left: 3px solid var(--tp-service-police-event);
}

.tp-transmission-progress {
  display: none;
  margin-top: 6px;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
}

.tp-transmission-progress-bar {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--tp-primary);
  animation: tp-progress 1.4s ease-in-out infinite;
}

.active-trans .tp-transmission-progress {
  display: block;
}

@keyframes tp-progress {
  0% {
    transform: translateX(-40%);
  }
  100% {
    transform: translateX(140%);
  }
}

.tp-transmission + .tp-transmission {
  margin-top: 6px;
}

.tp-transmission .top-data,
.tp-transmission .unit-data {
  padding: 0;
}

.tp-transmission .top-data {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tp-transmission .tran-length {
  margin-left: 0;
  float: none;
}

.tp-transmission .tran-start-time {
  margin-left: 0;
  float: none;
}

.tp-transmission .unit-data {
  color: var(--tp-muted);
}

.tp-emergency {
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), transparent 55%);
  box-shadow: 0 10px 18px rgba(239, 68, 68, 0.18), 0 0 0 1px rgba(239, 68, 68, 0.25);
}

.tp-emergency.active-trans {
  border-color: rgba(239, 68, 68, 0.65);
  box-shadow: 0 16px 28px rgba(239, 68, 68, 0.32), 0 0 0 2px rgba(239, 68, 68, 0.4);
}

.tp-emergency.active-trans::before {
  background: radial-gradient(circle at 20% 20%, rgba(248, 113, 113, 0.4), transparent 65%);
}
.player-action {
    padding-right: 5px;
    cursor: pointer;
    background-color: Transparent;
    background-repeat: no-repeat;
    border: none;
    overflow: hidden;
    outline: none;
}
.row {
  padding-right: 5px;
  padding-left: 5px;
}
.row-no-border {
  border-top: 0px;
}
.unit-data {
  font-size: 14px;
}
.navbar-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: visible;
}

.footer-audio-control {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  overflow-x: visible;
  overflow-y: visible;
}

.footer-audio-control > span {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.tp-footer-pagination {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow: visible;
}

.tp-footer-jump .dropdown-menu {
  min-width: 180px;
  z-index: 2105;
}

.tp-footer-jump .dropdown-menu > li > a {
  display: block;
  padding: 8px 16px;
}

.tp-footer-jump .dropdown-menu > li.disabled > a {
  opacity: 0.5;
  pointer-events: none;
}
.tran-menu-a {
    color: var(--tp-text);
    padding: 2px 10px 2px 2px;
}
.navbar-fixed-bottom {
    padding-top: 4px;
}
@media only screen and (min-width: 468px) {
  .talk-group-descr {
      display: inline !important;
  }
}

@media only screen and (max-width: 640px) {
  .navbar-footer .container {
    gap: 10px;
  }

  .footer-audio-control {
    width: 100%;
    justify-content: center;
    gap: 10px;
  }

  .tp-controls-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .tp-footer-btn {
    flex: 0 0 auto;
    min-height: 44px;
    min-width: 44px;
    padding: 10px 14px;
    font-size: 16px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .tp-footer-btn .fa {
    font-size: 18px;
    line-height: 1;
  }

  .tp-footer-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .tp-drawer {
    height: 70vh;
    padding-bottom: 20px;
  }

  .tp-footer-btn {
    margin-bottom: 0;
  }

  .tp-transmission .top-data {
    gap: 6px;
  }

  .tp-modal-card {
    padding: 16px;
  }

  .tp-transmission .talk-group {
    flex: 1 1 auto;
    min-width: 0;
  }

  .tp-transmission .tran-length {
    order: 1;
    margin-left: 6px;
    text-align: left;
  }

  .tp-transmission .tran-length,
  .tp-transmission .tran-start-time {
    flex: 0 0 auto;
  }

  .tp-transmission .tran-start-time {
    order: 2;
    flex: 0 0 100%;
    margin-left: auto;
    text-align: right;
  }

  .tp-transmission .unit-data {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
  }

  .tp-transmission .unit-data .unit-list {
    flex: 1 1 auto;
    min-width: 0;
  }

  .tran-menu {
    float: none;
    margin-left: auto;
  }


  .tp-modal {
    align-items: flex-end;
    padding: 0;
  }

  .tp-controls-modal .tp-modal-card {
    width: 100vw;
    max-width: none;
    max-height: 88vh;
    border-radius: 18px 18px 0 0;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }

  .tp-controls-body {
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .tp-controls-tab {
    min-height: 42px;
  }

  .tp-quick-actions {
    position: sticky;
    bottom: calc(-4px + env(safe-area-inset-bottom));
    margin-top: 10px;
    padding-top: 10px;
  }
}
.beta-title {
  font-family: 'Inter', sans-serif;
  color: var(--tp-muted);
}

.grad {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.18), rgba(34, 197, 94, 0.12));
}

#main-data-table .row.grad {
  border-bottom: 2px solid var(--tp-border);
}

#main-data-table .row.grad:last-of-type {
  border-bottom: none;
}


.mute-mute {
  text-decoration: line-through;
}

.profile-page {
  padding-top: 10px;
  padding-bottom: 10px;
}

.profile-header {
  margin-bottom: 12px;
}

.profile-header h2 {
  margin-top: 0;
  font-weight: 700;
}

.user-profile-user {
  border-radius: 18px;
  margin: 16px 0;
  border: 1px solid var(--tp-border);
  padding: 24px 28px;
  background: var(--tp-surface);
  box-shadow: var(--tp-shadow);
}

.profile-form .profile-table {
  width: 100%;
  border: 0;
}


.profile-card-help {
  margin-top: -6px;
  margin-bottom: 16px;
}

.profile-fields {
  display: grid;
  gap: 12px;
}

.profile-field label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

.profile-field input,
.profile-field select,
.profile-field textarea {
  width: 100%;
  max-width: 420px;
}

.profile-table td,
.profile-table th {
  padding: 8px 6px;
  border-top: none;
}

.profile-table input,
.profile-table select,
.profile-table textarea {
  width: 100%;
  max-width: 420px;
}

.profile-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.profile-plan {
  font-size: 1.1em;
  margin-bottom: 12px;
  font-weight: 600;
}

.profile-scan-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.profile-scan-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--tp-border);
}

.profile-scan-list li:last-child {
  border-bottom: none;
}

.profile-empty {
  color: var(--tp-muted);
}

.user-scan {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1em;
  margin: 0;
}

.user-scan-name {
  font-weight: 600;
}

.user-scan-tg-list {
  font-size: 0.8em;
  margin: 4px 0 0 22px;
  color: var(--tp-muted);
}

.user-scan-link {
  font-size: 0.9em;
  margin-left: auto;
}

.user-scan-link a {
  text-decoration: none;
}

.old-transmission {
    padding-right: 5px;
    cursor: pointer;
    background-color: Transparent;
    background-repeat: no-repeat;
    border: none;
    overflow: hidden;
    outline: none;
}

.tp-old-transmission-modal .modal-dialog {
  max-width: 480px;
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
}

.tp-old-transmission-card {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: radial-gradient(circle at top left, rgba(66, 153, 225, 0.2), rgba(9, 14, 20, 0.95) 65%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  padding: 20px 24px 24px;
  color: #f5f7fb;
}

.tp-old-transmission-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}

.tp-old-transmission-card .close {
  color: #f5f7fb;
  opacity: 0.75;
  text-shadow: none;
}

.tp-old-transmission-card .close:hover,
.tp-old-transmission-card .close:focus {
  opacity: 1;
}

.tp-old-transmission-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.tp-old-transmission-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.75);
}

.tp-old-transmission-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(66, 153, 225, 0.2);
  font-size: 1.6rem;
  box-shadow: inset 0 0 18px rgba(66, 153, 225, 0.35);
}

.tp-old-transmission-body {
  margin-top: 16px;
  display: grid;
  gap: 12px;
  text-align: left;
}

.tp-old-transmission-body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.tp-old-transmission-cta {
  align-self: flex-start;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 10px 18px rgba(66, 153, 225, 0.25);
}


.tp-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  width: 100%;
}

.tp-loading-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--tp-accent);
  border-right-color: rgba(66, 153, 225, 0.45);
  box-shadow: 0 0 18px rgba(66, 153, 225, 0.25);
  animation: tp-spin 0.9s ease-in-out infinite;
}

@keyframes tp-spin {
  to {
    transform: rotate(360deg);
  }
}

.tp-card {
  background: var(--tp-surface);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--tp-shadow);
  border: 1px solid var(--tp-border);
  margin-bottom: 24px;
  width: 100%;
}

.tp-card-clear {
  background: transparent;
  border: none;
  box-shadow: none;
}

.tp-card h1,
.tp-card h2,
.tp-card h3 {
  margin-top: 0;
  font-weight: 700;
}

.tp-seo-page {
  display: grid;
  gap: 20px;
}

.tp-seo-breadcrumb-wrap {
  margin-bottom: -4px;
}

.tp-seo-breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
}

.tp-seo-breadcrumb li + li::before {
  color: var(--tp-muted);
}

.tp-seo-breadcrumb li,
.tp-seo-breadcrumb li a {
  color: var(--tp-muted);
}

.tp-seo-hero {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(74, 222, 128, 0.08));
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 16px;
  padding: 20px;
}

.tp-seo-kicker {
  color: var(--tp-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 10px;
}

.tp-seo-live-pill {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.04em;
  background: rgba(74, 222, 128, 0.18);
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: #86efac;
}

.tp-seo-summary {
  color: var(--tp-muted);
  margin-bottom: 0;
}

.tp-seo-hero-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tp-seo-stat-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.tp-seo-stat {
  border: 1px solid var(--tp-border);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  padding: 12px;
  display: grid;
  gap: 4px;
}

.tp-seo-stat-label {
  color: var(--tp-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.tp-seo-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.tp-seo-panel {
  border: 1px solid var(--tp-border);
  border-radius: 14px;
  background: var(--tp-surface-alt);
  padding: 16px;
}

.tp-seo-list,
.tp-seo-link-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.tp-seo-list i {
  color: var(--tp-primary);
  margin-right: 6px;
  width: 16px;
}

.tp-seo-link-columns {
  column-count: 2;
  column-gap: 22px;
}

.tp-seo-link-columns li {
  break-inside: avoid;
}

.tp-seo-faq-item + .tp-seo-faq-item {
  margin-top: 16px;
  border-top: 1px solid var(--tp-border);
  padding-top: 16px;
}

@media (max-width: 767px) {
  .tp-seo-link-columns {
    column-count: 1;
  }
}


.tp-audio-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.tp-audio-back {
  border-radius: 999px;
  border: 1px solid var(--tp-border);
  background: var(--tp-surface-alt);
  color: var(--tp-text);
}

.tp-audio-back:hover,
.tp-audio-back:focus {
  color: var(--tp-primary);
  border-color: var(--tp-primary);
  background: rgba(125, 211, 252, 0.08);
}

.tp-audio-detail-grid {
  display: grid;
  gap: 10px;
}

.tp-audio-detail-row {
  display: grid;
  grid-template-columns: minmax(140px, 200px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid var(--tp-border);
  border-radius: 12px;
  background: var(--tp-surface-alt);
}

.tp-audio-detail-label {
  color: var(--tp-muted);
}

.tp-audio-detail-value {
  min-width: 0;
  overflow-wrap: anywhere;
}

.tp-audio-pill {
  display: inline-block;
  font-weight: 600;
  font-size: 12px;
  border-radius: 999px;
  padding: 3px 10px;
}

.tp-audio-pill-success {
  color: #14532d;
  background: rgba(74, 222, 128, 0.88);
}

.tp-audio-pill-danger {
  color: #7f1d1d;
  background: rgba(248, 113, 113, 0.92);
}

.tp-audio-pill-muted {
  color: var(--tp-text);
  background: rgba(148, 163, 184, 0.22);
}

.tp-audio-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.tp-section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.tp-muted {
  color: var(--tp-muted);
}

.text-muted {
  color: var(--tp-muted);
}

.text-success {
  color: var(--tp-accent);
}

.text-warning {
  color: #fbbf24;
}

.tp-form table {
  border: none;
  box-shadow: none;
  background: transparent;
}

.tp-form table th,
.tp-form table td {
  border: none;
  padding: 8px 6px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
.form-control,
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--tp-border);
  background: var(--tp-surface-alt);
  color: var(--tp-text);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--tp-muted);
  opacity: 1;
}

select option,
select optgroup {
  background: var(--tp-surface);
  color: var(--tp-text);
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--tp-primary);
}

.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control,
input:disabled,
select:disabled,
textarea:disabled {
  background: var(--tp-surface);
  color: var(--tp-muted);
  border-color: var(--tp-border);
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--tp-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

button,
.btn {
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  border: none;
  /* Keep the hit target stationary between pointer-down and click. Moving a
     focused control can make touch browsers discard the first tap. */
  touch-action: manipulation;
  transition: box-shadow 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--tp-primary);
  color: var(--tp-primary-contrast);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover,
.btn-primary:focus {
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
}

.btn.btn-primary:is(:hover, :focus, :active, .active) {
  background: var(--tp-primary-hover);
  border-color: var(--tp-primary-hover);
  color: var(--tp-primary-contrast);
}

button:focus-visible,
.btn:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--tp-primary);
  outline-offset: 3px;
}

.btn:disabled,
.btn.disabled {
  opacity: 0.45;
  box-shadow: none;
}

.btn-link,
.btn-link:hover,
.btn-link:focus {
  color: var(--tp-primary);
}

.btn-secondary {
  background: var(--tp-surface-alt);
  color: var(--tp-text);
  border: 1px solid var(--tp-border);
}

.btn-default {
  background: var(--tp-surface-alt);
  color: var(--tp-text);
  border: 1px solid var(--tp-border);
}

.btn-default:hover,
.btn-default:focus,
.btn-secondary:hover,
.btn-secondary:focus {
  color: var(--tp-text);
  background: #233044;
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.25);
}

.btn.btn-default:is(:active, .active),
.btn.btn-secondary:is(:active, .active) {
  background: var(--tp-surface-subtle);
  border-color: var(--tp-primary);
  color: var(--tp-text);
}

.alert {
  border-radius: 14px;
  border: 1px solid var(--tp-border);
  background: var(--tp-surface);
  color: var(--tp-text);
  box-shadow: var(--tp-shadow);
}

.alert-danger {
  border-color: rgba(220, 38, 38, 0.4);
}

.alert-warning {
  border-color: rgba(245, 158, 11, 0.4);
}

.alert-info {
  border-color: rgba(59, 130, 246, 0.4);
}

.alert-success {
  border-color: rgba(34, 197, 94, 0.4);
}

.page-header {
  border-bottom: none;
  margin: 0 0 16px;
}

.page-header h2 {
  color: var(--tp-text);
}

.lead {
  color: var(--tp-muted);
}

.panel {
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: 18px;
  box-shadow: var(--tp-shadow);
}

.panel-heading {
  background: var(--tp-surface-alt);
  border-bottom: 1px solid var(--tp-border);
  color: var(--tp-text);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

.panel-title {
  font-weight: 700;
}

.panel-body {
  color: var(--tp-text);
}

.panel-default > .panel-heading {
  background: var(--tp-surface-alt);
  color: var(--tp-text);
}

.label {
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.label-success {
  background: rgba(34, 197, 94, 0.2);
  color: #a7f3d0;
}

.plan-questions {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--tp-border);
  background: var(--tp-surface-alt);
  color: var(--tp-text);
}

.footer-login a {
  color: var(--tp-primary);
  font-weight: 600;
}

footer p {
  color: var(--tp-muted);
}

.dropdown-menu {
  border-radius: 12px;
  border: 1px solid var(--tp-border);
  box-shadow: var(--tp-shadow);
  background: var(--tp-surface);
}

.dropdown-menu > li > a {
  color: var(--tp-text);
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
  background: var(--tp-surface-alt);
  color: var(--tp-primary);
}

.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus {
  background: var(--tp-surface-alt);
  color: var(--tp-primary);
}

.dropdown-menu > .disabled > a,
.dropdown-menu > .disabled > a:hover,
.dropdown-menu > .disabled > a:focus,
.dropdown-header {
  background: transparent;
  color: var(--tp-muted);
}

.tp-card-subtitle {
  margin: 6px 0 0;
  font-size: 14px;
}

.tp-footer-btn {
  margin-right: 8px;
  color: var(--tp-primary-contrast) !important;
}

.tp-footer-label {
  margin-left: 6px;
}

.tp-drawer-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tp-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--tp-border);
}

.tp-controls-close {
  white-space: nowrap;
}

.tp-quick-panel {
  background: var(--tp-surface-alt);
  border-radius: 16px;
  padding: 14px;
  border: 1px solid var(--tp-border);
  box-shadow: var(--tp-shadow);
}

.tp-quick-panel + .tp-quick-panel {
  margin-top: 14px;
}

.tp-quick-section + .tp-quick-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--tp-border);
}

.tp-controls-section + .tp-controls-section {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.tp-quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.tp-quick-actions {
  position: sticky;
  bottom: 0;
  background: var(--tp-surface-alt);
  padding-top: 10px;
  padding-bottom: 6px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  z-index: 2;
}

.tp-quick-input {
  flex: 1 1 240px;
  min-width: 0;
}

.tp-quick-select {
  flex: 1 1 260px;
  min-width: 0;
}

.tp-quick-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.tp-quick-help {
  margin: 0;
  font-size: 13px;
}

.tp-quick-save-row {
  align-items: stretch;
}

.tp-intro-list {
  margin: 12px 0 0;
  padding-left: 20px;
}

.tp-intro-list li + li {
  margin-top: 8px;
}

.tp-transmission-skeleton {
  opacity: 0.7;
  min-height: 96px;
  padding: 12px 10px;
}

.tp-transmission-skeleton .top-data {
  margin-bottom: 8px;
}

.tp-player-stage {
  position: relative;
}

.tp-player-intro {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.78), rgba(30, 41, 59, 0.65));
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 18px 38px rgba(2, 8, 23, 0.38);
  padding: 14px 12px;
  margin-bottom: 14px;
}

.tp-player-intro.tp-player-intro-hidden {
  display: none;
}

.tp-hero-notice {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(125, 211, 252, 0.08);
  border: 1px solid rgba(125, 211, 252, 0.22);
  font-size: 13px;
  color: var(--tp-muted);
}

.tp-hero-notice a {
  color: var(--tp-primary);
  font-weight: 600;
}

.tp-hero-notice a:hover,
.tp-hero-notice a:focus {
  color: #1d4ed8;
}

.tp-player-intro {
  min-height: 360px;
}

.tp-player-intro-title {
  font-size: 16px;
  font-weight: 700;
}

.tp-player-intro-text {
  margin: 6px 0 0;
  color: var(--tp-muted);
  font-size: 14px;
}

.tp-hero-header {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.tp-hero-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--tp-text);
}

.tp-hero-tagline {
  margin: 6px 0 0;
  color: rgba(226, 232, 240, 0.78);
  font-size: 14px;
}

.tp-hero-minimal {
  margin-top: 10px;
  font-size: 14px;
  color: var(--tp-muted);
  max-width: 520px;
}

.tp-hero-minimal-note {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(226, 232, 240, 0.7);
  max-width: 560px;
}

.tp-hero-minimal-list {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--tp-muted);
  font-size: 13px;
  display: grid;
  gap: 6px;
}

.tp-controls-callout {
  position: fixed;
  z-index: 1051;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  max-width: calc(100vw - 16px);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.95);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.35);
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.tp-controls-callout.tp-controls-callout-hidden {
  opacity: 0;
  pointer-events: none;
}

.tp-controls-callout::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid rgba(37, 99, 235, 0.95);
  bottom: -10px;
}

.tp-controls-callout[data-placement="up"]::after {
  border-top: 0;
  border-bottom: 10px solid rgba(37, 99, 235, 0.95);
  bottom: auto;
  top: -10px;
}

.tp-hero-subtitle {
  margin: 6px 0 0;
  color: rgba(226, 232, 240, 0.78);
  font-size: 14px;
}

.tp-hero-status {
  text-align: right;
  display: grid;
  gap: 6px;
  justify-items: end;
}

.tp-hero-badge {
  background: rgba(37, 99, 235, 0.12);
  color: var(--tp-text);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
}

.tp-hero-meta {
  font-size: 12px;
  color: var(--tp-muted);
}

.tp-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.tp-hero-card {
  background: linear-gradient(165deg, rgba(30, 41, 59, 0.68), rgba(15, 23, 42, 0.55));
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.32);
}

.tp-hero-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--tp-text);
}

.tp-hero-card-text {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--tp-muted);
}

.tp-popular-section {
  margin-top: 18px;
}

.tp-popular-section-hidden {
  display: none;
}

.tp-popular-card {
  padding: 16px;
  border-radius: 16px;
  background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.2), rgba(15, 23, 42, 0.95) 58%), linear-gradient(180deg, rgba(30, 41, 59, 0.55), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(56, 189, 248, 0.24);
  box-shadow: 0 16px 36px rgba(2, 8, 23, 0.42);
}

.tp-popular-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.tp-popular-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(191, 219, 254, 0.75);
}

.tp-popular-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--tp-text);
}

.tp-popular-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--tp-muted);
  max-width: 380px;
}

.tp-popular-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.18);
  color: var(--tp-text);
  font-size: 12px;
  font-weight: 600;
}

.tp-popular-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.7);
}

.tp-popular-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.tp-popular-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(125, 211, 252, 0.2);
}

.tp-popular-link {
  color: var(--tp-text);
  font-weight: 600;
}

.tp-popular-link:hover,
.tp-popular-link:focus {
  color: #93c5fd;
}

.tp-popular-meta {
  margin-top: 2px;
  font-size: 12px;
  color: rgba(226, 232, 240, 0.6);
}

.tp-popular-count {
  background: rgba(14, 165, 233, 0.2);
  color: var(--tp-text);
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.tp-popular-empty {
  margin-top: 14px;
  font-size: 12px;
  color: var(--tp-muted);
}


.tp-hero-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tp-hero-actions .btn {
  border-radius: 999px;
  padding: 7px 16px;
}

.tp-hero-actions .btn-primary {
  background: linear-gradient(120deg, #2563eb, #0ea5e9);
  border: none;
}

.tp-hero-actions .btn-primary:hover,
.tp-hero-actions .btn-primary:focus {
  background: linear-gradient(120deg, #1d4ed8, #0284c7);
}

.tp-hero-footer {
  margin-top: 10px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.tp-hero-tip {
  font-size: 13px;
  color: rgba(191, 219, 254, 0.84);
}

.tp-hero-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tp-hero-links .btn {
  border-radius: 999px;
  padding: 6px 14px;
}

.tp-player-intro-list {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--tp-muted);
  font-size: 13px;
}

.tp-player-intro-list li + li {
  margin-top: 6px;
}

.tp-skeleton-bar {
  display: inline-block;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.12), rgba(148, 163, 184, 0.3), rgba(148, 163, 184, 0.12));
  background-size: 200% 100%;
  animation: tp-skeleton-glow 1.8s ease-in-out infinite;
}

.tp-skeleton-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.tp-skeleton-title {
  width: 180px;
  height: 18px;
}

.tp-skeleton-meta {
  width: 120px;
  margin-left: auto;
  height: 12px;
}

.tp-skeleton-time {
  width: 140px;
  margin-left: 8px;
  height: 12px;
}

.tp-skeleton-subtitle {
  width: 220px;
  height: 14px;
  margin-top: 4px;
}

@keyframes tp-skeleton-glow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.tp-player-empty .tp-drawer-toggle {
  animation: tp-control-pulse 1.1s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.85);
}

@keyframes tp-control-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.9);
  }
  50% {
    box-shadow: 0 0 0 16px rgba(96, 165, 250, 0.2);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.0);
  }
}

.tp-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
  pointer-events: auto;
}

.tp-modal-open {
  display: flex;
  pointer-events: auto;
}

body.tp-dialog-open {
  overflow: hidden;
}

.tp-modal button:focus-visible,
.tp-modal input:focus-visible,
.tp-modal a:focus-visible {
  outline: 2px solid var(--tp-primary);
  outline-offset: 3px;
}

.tp-controls-modal .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.tp-modal-card {
  background: var(--tp-surface);
  border-radius: 18px;
  border: 1px solid var(--tp-border);
  box-shadow: var(--tp-shadow);
  width: min(520px, 92vw);
  padding: 20px;
}

.tp-controls-modal .tp-modal-card {
  width: min(860px, 92vw);
  max-height: min(80vh, 720px);
  overflow: visible;
  position: relative;
  display: flex;
  flex-direction: column;
  opacity: 0;
  /* Fade without translating the dialog so controls cannot move out from
     under a quick tap while the modal opens. */
  transition: opacity 0.3s ease;
}

.tp-controls-modal.tp-modal-open .tp-modal-card {
  opacity: 1;
}

.tp-controls-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: visible;
  padding-right: 4px;
  padding-bottom: 10px;
}

.tp-controls-mode {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.tp-controls-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tp-controls-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  justify-content: center;
}

.tp-controls-tab {
  border-radius: 999px;
  padding: 6px 16px;
  flex: 1 1 0;
  min-width: 0;
}

.tp-controls-modal .tp-controls-tab.is-active {
  background: var(--tp-primary);
  border-color: var(--tp-primary);
  color: var(--tp-primary-contrast) !important;
}

.tp-controls-section {
  display: none;
}

.tp-controls-section.is-active {
  display: block;
}

.tp-controls-modal .select2-container.select2-container--default .select2-dropdown {
  z-index: 2107;
}

.tp-controls-modal .select2-container {
  z-index: 2106;
  width: 100% !important;
}

.tp-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tp-modal-close {
  border: none;
  background: transparent;
  color: var(--tp-text);
  font-size: 24px;
  line-height: 1;
  padding: 0 6px;
}

.tp-modal-close:hover,
.modal-content .close:hover,
.modal-content .close:focus {
  color: var(--tp-primary);
}

.modal-content .close {
  color: var(--tp-text);
  opacity: 1;
  text-shadow: none;
}

.modal-header,
.modal-footer {
  border-color: var(--tp-border);
}

.tp-modal-body {
  margin-top: 12px;
}

.tp-modal-check {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 500;
}

.tp-modal-footer {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.select2-container.select2-container--default .select2-selection--multiple,
.select2-container.select2-container--default .select2-selection--single {
  background-color: var(--tp-surface-alt);
  border: 1px solid var(--tp-border);
  border-radius: 12px;
  min-height: 42px;
  color: var(--tp-text);
}

.select2-container.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--tp-text);
  line-height: 42px;
  padding-left: 14px;
  padding-right: 40px;
}

.select2-container.select2-container--default .select2-selection--single {
  min-height: 44px;
}

.select2-container.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px;
  right: 10px;
}

.select2-container.select2-container--default .select2-selection__clear {
  color: var(--tp-muted);
}

.select2-container.select2-container--default .select2-selection__clear:hover {
  color: var(--tp-primary);
}

.select2-container.select2-container--default .select2-selection:is(:hover, :focus),
.select2-container.select2-container--default.select2-container--focus .select2-selection,
.select2-container.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container.select2-container--default.select2-container--open .select2-selection {
  border-color: var(--tp-primary);
}

.select2-container.select2-container--default .select2-selection:focus-visible {
  outline: 2px solid var(--tp-primary);
  outline-offset: 3px;
}

.select2-container.select2-container--default.select2-container--disabled .select2-selection {
  background: var(--tp-surface);
  border-color: var(--tp-border);
  color: var(--tp-muted);
  cursor: not-allowed;
}

.select2-container.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: var(--tp-muted);
}

.select2-container.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: var(--tp-muted) transparent transparent transparent;
}

.select2-container.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent var(--tp-muted) transparent;
}

.select2-container.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background: rgba(96, 165, 250, 0.22);
  border: 1px solid rgba(96, 165, 250, 0.5);
  color: var(--tp-text);
}

.select2-container.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: var(--tp-text);
}

.dropdown-menu .divider {
  background-color: var(--tp-border);
}

.modal-content {
  background: var(--tp-surface);
  color: var(--tp-text);
  border-radius: 16px;
  border: 1px solid var(--tp-border);
}


#main-data-table,
#pagination {
  color: var(--tp-text);
}

.tp-card iframe {
  width: 100%;
  border-radius: 12px;
}

#tg-multi {
  width: 100% !important;
}

.select2-container.select2-container--default .select2-selection--multiple {
  background: var(--tp-surface-alt);
  border: 1px solid var(--tp-border);
  border-radius: 12px;
  min-height: 44px;
  padding: 4px 8px;
  color: var(--tp-text);
}

.select2-container.select2-container--default .select2-search--inline .select2-search__field {
  background: transparent;
  color: var(--tp-text);
  border: 0;
  border-radius: 0;
  padding: 2px 0;
  min-height: 28px;
  box-shadow: none;
}

.select2-container.select2-container--default .select2-search--inline .select2-search__field::placeholder {
  color: var(--tp-muted);
}

.select2-container.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: 999px;
  color: var(--tp-text);
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.select2-container.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: var(--tp-muted);
  opacity: 0.85;
}

.select2-container.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  color: var(--tp-primary);
  opacity: 1;
}

.select2-container.select2-container--default .select2-dropdown {
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: 12px;
  box-shadow: var(--tp-shadow);
  color: var(--tp-text);
}

.select2-container.select2-container--default .select2-search--dropdown {
  padding: 8px;
}

.select2-container.select2-container--default .select2-search--dropdown .select2-search__field {
  background: var(--tp-surface-alt);
  border: 1px solid var(--tp-border);
  border-radius: 8px;
  color: var(--tp-text);
  padding: 8px 12px;
  min-height: 40px;
  font: inherit;
}

.select2-container.select2-container--default .select2-search--dropdown .select2-search__field:focus {
  border-color: var(--tp-primary);
}

.select2-container.select2-container--default .select2-results__option[aria-disabled="true"],
.select2-container.select2-container--default .select2-results__group,
.select2-container.select2-container--default .select2-results__message {
  color: var(--tp-muted);
}

.select2-container.select2-container--default .select2-results__option {
  color: var(--tp-text);
}

.select2-container.select2-container--default .select2-results__option .tp-scanlist-category {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--tp-muted);
}


.tp-density-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
}

.tp-density-label {
  font-size: 12px;
  font-weight: 600;
}

.tp-density-btn {
  border-radius: 999px;
  padding: 4px 10px;
}

.btn.tp-density-btn.is-active {
  background: var(--tp-primary);
  border-color: var(--tp-primary);
  color: var(--tp-primary-contrast);
}

.tp-scanlist-tree.tp-density-compact .tp-scanlist-item,
.tp-scanlist-tree.tp-density-compact .tp-scanlist-toggle,
.tp-scanlist-tree.tp-density-compact .tp-scanlist-result {
  font-size: 1.15rem;
  gap: 8px;
  padding: 8px 14px;
}

.tp-scanlist-tree.tp-density-compact .tp-scanlist-item {
  margin: 3px 4px;
}

.tp-scanlist-tree.tp-density-compact .tp-scanlist-children {
  margin-left: 12px;
}

.tp-scanlist-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.tp-scanlist-selected {
  font-weight: 600;
  color: var(--tp-text);
}

.tp-scanlist-tree {
  border: 1px solid var(--tp-border);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.35);
  max-height: 200px;
  height: 200px;
  overflow-y: auto;
  padding: 8px 4px;
}

.tp-scanlist-drilldown {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tp-scanlist-drilldown-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 0;
}

.tp-scanlist-heading {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tp-muted);
  font-size: 1.1rem;
}

.tp-scanlist-back {
  border: 1px solid var(--tp-border);
  background: var(--tp-surface);
  color: var(--tp-text);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 1.1rem;
}

.tp-scanlist-back:hover {
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(96, 165, 250, 0.12);
}

.tp-scanlist-list,
.tp-scanlist-children {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tp-scanlist-node {
  margin: 0;
  padding: 0;
}

.tp-scanlist-item,
.tp-scanlist-toggle,
.tp-scanlist-result {
  display: flex;
  align-items: center;
  width: 100%;
  border: none;
  background: transparent;
  color: var(--tp-text);
  text-align: left;
  padding: 10px 22px;
  font-size: 1.3rem;
  gap: 12px;
}

.tp-scanlist-item:hover,
.tp-scanlist-toggle:hover {
  background: rgba(96, 165, 250, 0.15);
}

.tp-scanlist-children {
  margin-left: 16px;
  border-left: 1px solid rgba(148, 163, 184, 0.3);
  padding-left: 6px;
}

.tp-scanlist-item.is-selected {
  background: rgba(52, 211, 153, 0.18);
  color: var(--tp-text);
  font-weight: 600;
  border-left: 3px solid var(--tp-accent);
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.35);
  padding-left: 19px;
  border-radius: 8px;
}

.tp-scanlist-toggle {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--tp-muted);
  cursor: default;
}

.tp-scanlist-toggle:hover {
  background: transparent;
}

.tp-scanlist-item {
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: 10px;
  margin: 4px 6px;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
}

.tp-scanlist-item.tp-scanlist-category::after {
  content: '›';
  font-size: 1.4rem;
  color: var(--tp-muted);
}

.tp-scanlist-item:hover {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.4);
}

.tp-scanlist-label {
  flex: 1;
}

.tp-scanlist-result {
  padding: 6px 8px;
}

.tp-scanlist-toggle::before {
  content: '▸';
  display: inline-block;
  margin-right: 8px;
  transition: transform 0.2s ease;
}

.tp-scanlist-toggle[aria-expanded="true"]::before {
  transform: rotate(90deg);
}

.select2-container.select2-container--default .select2-results__option[aria-selected="true"] {
  background: var(--tp-surface-alt);
  color: var(--tp-primary);
}

.select2-container.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: var(--tp-primary);
  color: var(--tp-primary-contrast);
}

@media (max-width: 767px) {

  .tp-audio-detail-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .tp-audio-back {
    width: 100%;
  }

  .tp-audio-detail-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .tp-audio-actions .btn {
    width: 100%;
  }

  body {
    padding-top: 68px;
    padding-bottom: 96px;
  }

  .tp-card {
    padding: 16px;
  }

  .navbar-nav.navbar-right {
    margin-right: 0;
  }

  .navbar-collapse {
    border-top: 1px solid var(--tp-border);
  }

  .navbar-nav > li > a {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .tp-controls-modal .tp-modal-card {
    max-height: min(88vh, 820px);
  }

  .tp-scanlist-tree {
    max-height: 320px;
    min-height: 220px;
    height: 320px;
    padding: 12px 8px;
  }

  .tp-scanlist-item,
  .tp-scanlist-toggle {
    font-size: 1.4rem;
    padding: 12px 20px;
  }

  .tp-controls-tab {
    padding: 6px 10px;
    font-size: 1.2rem;
  }

  .tp-scanlist-drilldown-header {
    padding: 6px 12px 0;
  }

  .tp-scanlist-back {
    font-size: 1.2rem;
    padding: 6px 14px;
  }

  
}


.tp-email-list {
  border: 1px solid var(--tp-border);
  border-radius: 12px;
  overflow: hidden;
}

.tp-email-list-item {
  background: var(--tp-surface-alt);
  border-color: var(--tp-border);
  color: var(--tp-text);
}

.tp-email-list-item + .tp-email-list-item {
  border-top: 1px solid var(--tp-border);
}

.tp-email-list-label {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  font-weight: 400;
}

.tp-email-list-label input[type="radio"] {
  accent-color: var(--tp-primary);
}

.tp-callout-dismiss {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  line-height: 1.2;
}

.tp-callout-dismiss:hover,
.tp-callout-dismiss:focus {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
  outline: none;
}


@media (max-width: 767px) {
  .tp-controls-callout {
    font-size: 12px;
    width: calc(100vw - 16px);
    border-radius: 14px;
    padding: 8px 10px;
  }

  .tp-callout-dismiss {
    width: 100%;
    padding: 6px 10px;
  }
}
