* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 14px;
  color: #1a1a1a;
  background: #f0f2f5;
}

/* Оверрайд для дашборда: тёмный фон без пробелов */
body:has(.dash-premium) {
  background: #0c121a !important;
  color: #f1f5f9;
}

/* Оверрайд для дашборда: тёмный фон без пробелов */
body:has(.dash-premium) {
  background: #0c121a !important;
  color: #f1f5f9;
}
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-panel {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 360px;
}
.login-panel h1 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}
.muted {
  color: #666;
  margin: 0 0 1.25rem;
}
.login-panel label {
  display: block;
  margin: 0.75rem 0 0.25rem;
  font-size: 0.85rem;
}
.login-panel input {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.login-panel button {
  margin-top: 1rem;
  width: 100%;
  padding: 0.6rem;
  border: none;
  border-radius: 4px;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.error {
  color: #b91c1c;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

h3.subheading {
  margin: 1rem 0 0.5rem;
  font-size: 1rem;
  color: #334155;
}

.app-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.75rem 1rem;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.app-header strong {
  font-size: 1rem;
}
.app-header .user {
  color: #1a1a1a;
  margin-right: 0.75rem;
  font-size: 17px;
  font-weight: 700;
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* Кнопка «Выйти» в шапке */
.app-header .header-logout-btn {
  appearance: none;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.48rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(51, 65, 85, 0.2);
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  color: #475569;
  cursor: pointer;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.app-header .header-logout-btn:hover {
  border-color: rgba(239, 68, 68, 0.42);
  color: #b91c1c;
  background: linear-gradient(180deg, #ffffff 0%, #fff1f2 100%);
  box-shadow:
    0 6px 20px rgba(239, 68, 68, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.app-header .header-logout-btn:active {
  transform: translateY(0);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.app-header .header-logout-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(56, 189, 248, 0.45),
    0 4px 16px rgba(15, 23, 42, 0.12);
}

/* RU/EN switcher (next to logout) */
.app-header .header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.app-header .header-lang-btn {
  appearance: none;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(51, 65, 85, 0.25);
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  color: #334155;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.app-header .header-lang-btn:hover {
  border-color: rgba(99, 102, 241, 0.45);
  color: #1e1b4b;
  background: linear-gradient(180deg, #ffffff 0%, #eef2ff 100%);
  transform: translateY(-1px);
}

.login-premium-inner--with-lang {
  position: relative;
}

.login-lang-bar {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 3;
}

.login-body .header-lang-btn--login {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(248, 250, 252, 0.95);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.login-body .header-lang-btn--login:hover {
  border-color: rgba(125, 211, 252, 0.55);
  background: rgba(255, 255, 255, 0.14);
  color: #f8fafc;
}

.layout {
  display: flex;
  min-height: calc(100vh - 52px);
}
.nav {
  width: 268px;
  background: linear-gradient(180deg, rgba(10, 16, 24, .56), rgba(10, 16, 24, .28)), linear-gradient(180deg, #25374a 0%, #283a4e 100%);
  border-right: 1px solid rgba(255, 255, 255, .045);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .025);
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.nav:before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 220px;
  pointer-events: none;
  background: radial-gradient(circle at 14% 10%, rgba(18, 148, 109, .14), transparent 42%), radial-gradient(circle at 100% 0%, rgba(91, 124, 255, .10), transparent 36%);
  opacity: .78;
  z-index: 0;
}

/* Шапка с часами */
.brand {
  position: relative;
  z-index: 1;
  padding: 10px 12px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  margin: 0;
}

.brand-meta {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 16px 18px;
  margin: 11px 2px 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, .060);
  border: 1px solid rgba(255, 255, 255, .075);
  box-shadow: 0 10px 18px rgba(0, 0, 0, .14);
  overflow: visible;
}

/* Логотип: только изображение; визуально крупнее без расширения карточки (.brand-meta) */
.sidebar-brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.sidebar-brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
  transform: scale(1.38);
  transform-origin: center center;
}

.clock {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  margin: 0;
  position: relative;
  padding: 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .055));
  box-shadow: 0 10px 18px rgba(0, 0, 0, .16), inset 0 1px 0 rgba(255, 255, 255, .10);
  box-sizing: border-box;
  overflow: hidden;
}

.outer-clock-face {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 100%;
  background: linear-gradient(180deg, #fff, #f4f0fb);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .14);
  overflow: hidden;
}

.marking {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  margin-left: -1px;
  background: rgba(84, 82, 113, .24);
  z-index: 0;
  transform-origin: center center;
}

.marking-one {
  transform: rotate(30deg);
}

.marking-two {
  transform: rotate(60deg);
}

.marking-three {
  transform: rotate(120deg);
}

.marking-four {
  transform: rotate(150deg);
}

.inner-clock-face {
  position: absolute;
  inset: 10%;
  border-radius: 100%;
  z-index: 1;
}

.inner-clock-face:before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  margin-left: -1.5px;
  margin-top: -1.5px;
  background: #545271;
  z-index: 10;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .4);
}

.hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  transform-origin: center bottom;
  background: linear-gradient(180deg, rgba(84, 82, 113, .9), rgba(84, 82, 113, .6));
  border-radius: 2px 2px 0 0;
}

.hour-hand {
  width: 2px;
  height: 25%;
  margin-left: -1px;
  background: #545271;
}

.min-hand {
  width: 2px;
  height: 35%;
  margin-left: -1px;
  background: #545271;
}

.second-hand {
  width: 1px;
  height: 38%;
  margin-left: -0.5px;
  background: #d63a3a;
}

.brand-clock-copy {
  display: grid;
  gap: 6px;
  align-content: center;
}

.brand-time {
  font-size: clamp(1.2rem, 3.2vw, 1.55rem);
  line-height: 1.12;
  color: #f8fafc;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.brand-date {
  font-size: clamp(0.8125rem, 2vw, 0.9375rem);
  line-height: 1.3;
  margin-top: 2px;
  color: #d9e0ea;
  font-weight: 600;
}

.brand-zone {
  font-size: 11.5px;
  line-height: 1.2;
  margin-top: 4px;
  color: #d9e0ea;
  white-space: nowrap;
}

/* Группа кнопок */
.sidebar-group {
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding: 10px 10px 18px;
  flex: 1 1 auto;
}

.nav-tree {
  display: grid;
  gap: 4px;
}

/* БОЛЬШИЕ КРАСИВЫЕ КНОПКИ */
.nav button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 52px;
  padding: 12px 16px;
  margin: 0;
  color: #edf3f8;
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .02);
  border-radius: 14px;
  background: transparent;
  transition: all .22s cubic-bezier(0.22, 1, 0.36, 1);
  text-align: left;
  width: 100%;
  box-sizing: border-box;
  letter-spacing: -0.01em;
}

.nav button:hover {
  background: linear-gradient(90deg, rgba(255, 255, 255, .08), rgba(18, 148, 109, .12));
  border-color: rgba(255, 255, 255, .10);
  color: #ffffff;
  transform: translateX(4px);
  box-shadow: 0 8px 20px rgba(5, 10, 16, .12);
}

.nav button.active {
  background: linear-gradient(90deg, rgba(255, 255, 255, .12), rgba(18, 148, 109, .18));
  border-color: rgba(255, 255, 255, .15);
  box-shadow: 0 12px 28px rgba(5, 10, 16, .18), inset 0 1px 0 rgba(255, 255, 255, .08);
  color: #ffffff;
  transform: translateX(6px);
}
.main {
  flex: 1;
  padding: 1rem;
  overflow: auto;
}
.panel {
  background: #fff;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  padding: 1rem;
  margin-bottom: 1rem;
}
.panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}
pre.data {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 0.75rem;
  overflow: auto;
  max-height: 70vh;
  font-size: 11px;
  line-height: 1.4;
  margin: 0;
}
.toolbar {
  margin-bottom: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.toolbar button {
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
}
.html-box {
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 0.75rem;
  background: #fff;
  max-height: 400px;
  overflow: auto;
  font-size: 12px;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
table.data-table th,
table.data-table td {
  border: 1px solid #e5e7eb;
  padding: 0.35rem 0.5rem;
  text-align: left;
}
table.data-table th {
  background: #f8fafc;
}

@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }
  .nav {
    width: 100%;
    height: auto;
    position: relative;
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  .brand {
    display: none;
  }
  .sidebar-group {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    padding: 8px;
  }
  .nav-tree {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
  }
  .nav button {
    flex: 1 1 auto;
    min-width: 140px;
    margin: 4px;
    transform: none !important;
  }
}

.last-calls-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.last-calls-form .lc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}
.last-calls-form .lc-filters {
  margin-top: 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px solid #e5e7eb;
}
.last-calls-form .lc-label {
  min-width: 4.5rem;
  color: #444;
  font-size: 0.85rem;
}
.last-calls-form select {
  padding: 0.25rem 0.35rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.85rem;
  background: #fff;
}
.last-calls-form .lc-input {
  padding: 0.25rem 0.45rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  min-width: 9rem;
  font-size: 0.85rem;
}
.last-calls-form .lc-actions {
  margin-top: 0.25rem;
}
.last-calls-form .lc-primary {
  padding: 0.45rem 1.1rem;
  border: none;
  border-radius: 4px;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.last-calls-form .lc-primary:hover {
  background: #1d4ed8;
}
.last-calls-results .pagination {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.last-calls-results .pagination button {
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
}

.lc-export-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.lc-export-bar button {
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  border: 1px solid #94a3b8;
  background: #f8fafc;
  cursor: pointer;
  font-size: 0.85rem;
}
.lc-export-bar button:hover:not(:disabled) {
  background: #e2e8f0;
}
.lc-export-bar button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.lc-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1rem 0;
}
.lc-page-btn {
  min-width: 7rem;
  padding: 0.45rem 0.9rem;
  border-radius: 4px;
  border: 1px solid #2563eb;
  background: #fff;
  color: #1d4ed8;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}
.lc-page-btn:hover:not(:disabled) {
  background: #eff6ff;
}
.lc-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: #cbd5e1;
  color: #94a3b8;
}
.lc-page-info {
  font-weight: 600;
  color: #334155;
  min-width: 10rem;
  text-align: center;
}

.lc-page-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  max-width: 100%;
}
.lc-page-num {
  min-width: 2.25rem;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
}
.lc-page-num:hover:not(:disabled) {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1d4ed8;
}
.lc-page-num:disabled,
.lc-page-num.is-active {
  opacity: 1;
  cursor: default;
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}
.lc-page-num.is-active:disabled {
  cursor: default;
}

.lc-page-jump-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.lc-page-jump-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: #334155;
  font-size: 0.9rem;
}
.lc-page-jump {
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-size: 0.9rem;
  min-width: 4rem;
  cursor: pointer;
}

.lc-totals {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
  font-size: 0.9rem;
  line-height: 1.6;
}
.lc-totals-line {
  margin: 0.15rem 0;
}
.lc-totals-line strong {
  color: #0f172a;
}

/* Дашборд */
.dashboard-root {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.dashboard-welcome {
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #e5e7eb;
}

.dashboard-greeting {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: #0f172a;
}

.dashboard-sub {
  margin: 0;
  font-size: 0.88rem;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.85rem;
}

.dashboard-card {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.85rem 1rem;
  background: #fafafa;
}

.dashboard-card-label {
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.dashboard-card-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
  word-break: break-word;
}

.dashboard-card-hint {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.35;
}

.dashboard-section-title {
  margin: 0 0 0.65rem;
  padding-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #334155;
  border-bottom: 1px solid #e5e7eb;
}

/* Единая панель секций дашборда (как блок «Устройства») */
.dashboard-panel {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.85rem 1rem;
  background: #fff;
}

.dashboard-panel-empty {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
}

.dashboard-quick-stats-inner {
  font-size: 12px;
  line-height: 1.45;
  color: #1a1a1a;
  overflow-x: auto;
}

.dashboard-quick-stats-inner > :first-child {
  margin-top: 0;
}

.dashboard-quick-stats-inner > :last-child {
  margin-bottom: 0;
}

.dashboard-quick-stats-inner table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.dashboard-quick-stats-inner table th,
.dashboard-quick-stats-inner table td {
  border: 1px solid #e5e7eb;
  padding: 0.35rem 0.5rem;
  text-align: left;
  vertical-align: middle;
}

.dashboard-quick-stats-inner table th {
  background: #f8fafc;
  font-weight: 600;
  color: #334155;
}

.dashboard-quick-stats-inner img {
  max-height: 1.1rem;
  vertical-align: middle;
}

.dashboard-quick-stats-inner a {
  color: #1d4ed8;
  text-decoration: none;
}

.dashboard-quick-stats-inner a:hover {
  text-decoration: underline;
}

.dashboard-quick-stats-inner p {
  margin: 0.4rem 0;
}

.dashboard-quick-stats-inner ul,
.dashboard-quick-stats-inner ol {
  margin: 0.35rem 0;
  padding-left: 1.25rem;
}

table.data-table.dashboard-device-table {
  margin-top: 0;
}

table.data-table.devices-table {
  font-size: 11px;
}

table.data-table.devices-table td:nth-child(5),
table.data-table.devices-table td:nth-child(6) {
  font-family: monospace;
  font-size: 10px;
}

/* Детальная статистика (user_stats): минимальная вёрстка */
.us-summary-row {
  margin: 1rem 0 1.5rem;
}

.us-summary-tables {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-start;
}

table.data-table.us-mini-table {
  font-size: 12px;
  min-width: 220px;
}

.us-billing-controls {
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.user-stats-chart-root {
  margin-top: 1rem;
}

.user-stats-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.user-stats-chart-wrapper {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.75rem;
}

.user-stats-chart-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #334155;
  text-align: center;
}

.user-stats-chart-wrapper canvas {
  max-height: 220px;
}

.user-stats-bar-charts {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.user-stats-bar-charts .user-stats-chart-wrapper canvas {
  max-height: 200px;
}

table.data-table.us-daily-table {
  margin-top: 1.5rem;
  font-size: 12px;
}

/* Записи (минимальные стили действий) */
.recordings-table .rec-action-btn {
  background: none;
  border: 1px solid #ddd;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 3px;
  font-size: 14px;
  line-height: 1.2;
}
.recordings-table .rec-action-btn:hover:not(:disabled) {
  background: #f0f0f0;
}
.recordings-table .rec-action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.recordings-table .rec-play-btn:hover:not(:disabled) {
  background: #e3f2fd;
}
.recordings-table .rec-download-btn:hover:not(:disabled) {
  background: #e8f5e9;
}
.recordings-table .rec-edit-btn:hover:not(:disabled) {
  background: #fff3e0;
}
.recordings-table .rec-delete-btn:hover:not(:disabled) {
  background: #ffebee;
}
.recordings-form .lc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.recordings-player-dock {
  --rec-accent: var(--dash-accent, #38bdf8);
  --rec-text: var(--dash-text, #f1f5f9);
  --rec-muted: var(--dash-muted, #94a3b8);
  margin: 0.75rem 0;
  padding: 0.65rem 0.85rem;
  color: var(--rec-text);
  border-radius: 10px;
  border: 1px solid var(--dash-glass-border, rgba(255, 255, 255, 0.14));
  background: var(--dash-glass, rgba(60, 70, 90, 0.2));
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.06) inset,
    0 10px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
}
.recordings-player-dock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.recordings-player-dock-title {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--rec-text);
  letter-spacing: 0.01em;
}
.recordings-player-ui {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.recordings-player-dock .recordings-audio-el {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.recordings-player-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.65rem;
  min-width: 0;
}
.recordings-play-toggle,
.recordings-vol-mute {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: var(--rec-text);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.recordings-play-toggle:hover,
.recordings-vol-mute:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.45);
  color: var(--rec-accent);
}
.recordings-time {
  flex: 0 0 auto;
  min-width: 6.75rem;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  color: var(--rec-muted);
}
.recordings-seek {
  flex: 1 1 140px;
  min-width: 80px;
  height: 0.35rem;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  accent-color: var(--rec-accent);
}
.recordings-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--rec-accent);
  border: none;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
.recordings-seek::-webkit-slider-runnable-track {
  height: 0.35rem;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--rec-accent) 0%,
    var(--rec-accent) var(--seek-pct, 0%),
    rgba(255, 255, 255, 0.12) var(--seek-pct, 0%)
  );
}
.recordings-seek::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--rec-accent);
  border: none;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
.recordings-seek::-moz-range-track {
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}
.recordings-vol-wrap {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.recordings-vol {
  width: 4.5rem;
  height: 0.3rem;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  accent-color: var(--rec-accent);
}
.recordings-vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rec-muted);
  cursor: pointer;
}
.recordings-vol::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rec-muted);
  border: none;
  cursor: pointer;
}
.recordings-player-dock-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.recordings-speed-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--rec-muted);
}
.recordings-speed-select {
  padding: 0.22rem 0.45rem;
  border-radius: 6px;
  font-size: 0.82rem;
}
.recordings-player-close {
  flex-shrink: 0;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: transparent;
  color: var(--rec-text);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 500;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.recordings-player-close:hover {
  background: rgba(56, 189, 248, 0.14);
  border-color: var(--rec-accent);
  color: var(--rec-accent);
}

/* Виджет времени в боковой панели */
.nav-time-widget {
  position: relative;
  z-index: 1;
  padding: 16px 10px;
  margin: 10px 10px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.12), 0 14px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
}

.nav-time-day {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(148, 163, 184, 0.95);
  margin-bottom: 8px;
}

.nav-time-clock {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #fff 12%, #a5b4fc 52%, #5eead4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: flex;
  align-items: baseline;
  gap: 0.08em;
  font-variant-numeric: tabular-nums;
}

.nav-time-seconds {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.nav-time-seconds span:first-child {
  font-size: 0.92rem;
  font-weight: 700;
  color: #38bdf8;
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.45), 0 0 32px rgba(56, 189, 248, 0.2);
  font-variant-numeric: tabular-nums;
}

.nav-time-sec-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(148, 163, 184, 0.8);
}

.nav-buttons-container {
  position: relative;
  z-index: 1;
  padding: 0 0 10px;
  flex: 1 1 auto;
}

@keyframes navSecGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

.nav-time-seconds span:first-child {
  animation: navSecGlow 2s ease-in-out infinite;
}