:root {
  color-scheme: dark;
  scrollbar-color: rgba(103, 232, 249, 0.5) rgba(9, 20, 34, 0.75);
}

* {
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: rgba(9, 20, 34, 0.75);
}

*::-webkit-scrollbar-thumb {
  border: 2px solid rgba(9, 20, 34, 0.75);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(103, 232, 249, 0.7), rgba(138, 180, 255, 0.72));
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(125, 240, 255, 0.85), rgba(155, 194, 255, 0.85));
}

.theme-shell {
  min-height: 100vh;
  color: #e6f1ff;
  background:
    radial-gradient(circle at top left, rgba(38, 208, 255, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(123, 97, 255, 0.16), transparent 24%),
    linear-gradient(180deg, #07111f 0%, #091726 40%, #050b13 100%);
}

.theme-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(113, 184, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(113, 184, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 85%);
}

.page-shell {
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(5, 14, 26, 0.78);
  border-bottom: 1px solid rgba(84, 166, 255, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.topbar .navbar-brand,
.topbar .nav-link,
.topbar .navbar-text {
  color: #d9f3ff !important;
}

.topbar .nav-link.active {
  color: #67e8f9 !important;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu-btn {
  display: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(120, 180, 255, 0.28);
  border-radius: 9px;
  background: rgba(9, 20, 34, 0.72);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #d9f3ff;
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1030;
  opacity: 0;
  pointer-events: none;
  background: rgba(1, 7, 16, 0.62);
  transition: opacity 0.2s ease;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1031;
  width: min(280px, 80vw);
  height: 100vh;
  padding: 0.75rem;
  transform: translateX(-100%);
  transition: transform 0.2s ease;
  border-right: 1px solid rgba(120, 180, 255, 0.22);
  background: rgba(6, 15, 28, 0.97);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  color: #d9f3ff;
}

.mobile-drawer-close {
  border: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #d9f3ff;
  background: rgba(103, 232, 249, 0.12);
}

.mobile-drawer-link {
  display: block;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  color: #d9f3ff;
  text-decoration: none;
  margin-bottom: 0.2rem;
}

.mobile-drawer-link.active {
  color: #67e8f9;
  background: rgba(103, 232, 249, 0.12);
}

body.mobile-drawer-open {
  overflow: hidden;
}

body.mobile-drawer-open .mobile-drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.mobile-drawer-open .mobile-drawer {
  transform: translateX(0);
}

.mobile-nav-menu {
  display: none;
  position: relative;
}

.mobile-nav-toggle {
  list-style: none;
  border: 1px solid rgba(120, 180, 255, 0.28);
  border-radius: 10px;
  padding: 0.2rem 0.55rem;
  color: #d9f3ff;
  font-size: 0.82rem;
  background: rgba(9, 20, 34, 0.72);
  cursor: pointer;
}

.mobile-nav-toggle::-webkit-details-marker {
  display: none;
}

.mobile-nav-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  min-width: 170px;
  display: grid;
  gap: 0.35rem;
  padding: 0.55rem;
  border: 1px solid rgba(120, 180, 255, 0.22);
  border-radius: 12px;
  background: rgba(6, 15, 28, 0.96);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

.mobile-nav-link {
  display: block;
  padding: 0.3rem 0.45rem;
  border-radius: 8px;
  color: #d9f3ff;
  text-decoration: none;
}

.mobile-nav-link.active {
  color: #67e8f9;
  background: rgba(103, 232, 249, 0.12);
}

.mobile-nav-logout {
  margin: 0;
}

.topbar-actions .navbar-text {
  margin: 0;
  line-height: 1;
}

.page-hero {
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(84, 166, 255, 0.16);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(14, 26, 45, 0.92), rgba(7, 17, 31, 0.78));
  box-shadow: 0 20px 40px rgba(2, 8, 20, 0.35);
}

.page-hero h1 {
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #e7f6ff;
  text-shadow: 0 0 12px rgba(103, 232, 249, 0.2);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: #67e8f9;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-text,
.text-body-secondary,
.small {
  color: rgba(205, 225, 255, 0.72) !important;
}

.panel-card {
  border: 1px solid rgba(84, 166, 255, 0.16);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(13, 24, 40, 0.94), rgba(7, 14, 24, 0.88));
  box-shadow: 0 18px 35px rgba(1, 8, 22, 0.35);
}

.panel-card .card-body,
.panel-card .list-group-item,
.panel-card .table {
  color: #e6f1ff;
  background: transparent;
}

.modal-panel {
  border: 1px solid rgba(84, 166, 255, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(13, 24, 40, 0.96), rgba(7, 14, 24, 0.9));
  box-shadow: 0 22px 48px rgba(1, 8, 22, 0.5);
  color: #e6f1ff;
}

.modal-panel .modal-header,
.modal-panel .modal-footer {
  border-color: rgba(120, 180, 255, 0.14);
}

.modal-panel .modal-title {
  color: #e7f6ff;
}

.modal-panel .btn-close {
  filter: none;
  opacity: 0.8;
}

.modal-panel .btn-close:hover {
  opacity: 1;
}

.metric-card .display-6 {
  color: #9dd8ff;
  font-weight: 700;
}

.stats-metrics {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
}

.stats-metrics .metric-item {
  width: 100%;
}

.stats-metrics .metric-card .card-body {
  padding: 0.48rem 0.55rem;
}

.metric-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  min-width: 0;
}

.metric-label {
  color: rgba(205, 225, 255, 0.72);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
  min-width: 0;
}

.metric-label-short {
  display: none;
}

.metric-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4ch;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  border: 1px solid rgba(103, 232, 249, 0.2);
  background: rgba(103, 232, 249, 0.08);
  color: #9dd8ff;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  flex: 0 0 auto;
}

.metric-value:hover {
  border-color: rgba(103, 232, 249, 0.36);
  box-shadow: 0 10px 24px rgba(77, 198, 255, 0.14);
  transform: translateY(-1px);
}

.metric-value:active {
  transform: translateY(0);
  opacity: 0.88;
}

.futuristic-table {
  --bs-table-bg: transparent;
  --bs-table-color: #e6f1ff;
  --bs-table-border-color: rgba(120, 180, 255, 0.12);
  --bs-table-hover-color: #f3fbff;
  --bs-table-hover-bg: rgba(84, 166, 255, 0.08);
}

.futuristic-table thead th {
  color: #7edbff;
  border-bottom-color: rgba(120, 180, 255, 0.2);
  background: rgba(84, 166, 255, 0.05);
}

.futuristic-list .list-group-item {
  border-color: rgba(120, 180, 255, 0.12);
}

.popular-head,
.popular-row {
  display: grid;
  grid-template-columns: 240px 100px 160px;
  align-items: center;
  column-gap: 0.75rem;
  min-height: 40px;
}

.popular-head {
  min-height: 40px;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(120, 180, 255, 0.12);
  color: #7edbff;
  font-size: 0.78rem;
}

.popular-row {
  min-height: 40px;
}

.popular-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.popular-count,
.popular-time {
  white-space: nowrap;
}

@media (max-width: 375px) {
  .popular-head,
  .popular-row {
    grid-template-columns: 160px 100px 160px;
  }
}

.section-title-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-badge {
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(103, 232, 249, 0.25);
  border-radius: 999px;
  color: #67e8f9;
  font-size: 0.75rem;
  background: rgba(103, 232, 249, 0.08);
}

.pagination-shell {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.pagination-shell nav {
  width: auto;
}

.pagination-shell .pagination {
  justify-content: center;
  gap: 0.35rem;
}

.pagination-shell .page-number {
  display: none !important;
}

.pagination-shell .page-info .page-link {
  min-width: 92px;
  text-align: center;
}

.pagination .page-link {
  color: #ccecff;
  border-color: rgba(84, 166, 255, 0.14);
  background: rgba(9, 20, 34, 0.88);
}

.pagination .page-item.active .page-link {
  color: #03101d;
  border-color: rgba(103, 232, 249, 0.4);
  background: linear-gradient(135deg, #67e8f9, #8ab4ff);
}

.pagination .page-item.disabled .page-link {
  color: rgba(204, 236, 255, 0.35);
  background: rgba(9, 20, 34, 0.55);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.status-success {
  color: #9cffd0;
  background: rgba(17, 136, 87, 0.18);
  border: 1px solid rgba(57, 255, 159, 0.16);
}

.status-denied {
  color: #ffb0b8;
  background: rgba(197, 46, 82, 0.18);
  border: 1px solid rgba(255, 97, 132, 0.16);
}

.log-filter-form {
  margin-bottom: 1rem;
}

.sort-link {
  color: #7edbff;
  text-decoration: none;
}

.sort-link:hover {
  color: #b8edff;
}

.pagination-shell .page-info {
  display: block;
}

.pagination-shell .page-info .page-link {
  pointer-events: none;
}

.script-name-col {
  min-width: 96px;
}

.script-name-text {
  display: inline-block;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.recent-table {
  width: 100%;
  table-layout: fixed;
}

.recent-table th,
.recent-table td {
  padding: 0.36rem 0.45rem;
  font-size: 0.84rem;
  overflow: hidden;
}

.recent-table .col-script-name {
  width: auto;
}

.recent-table .col-ip {
  width: 15ch;
}

.recent-table .col-client {
  width: 15ch;
}

.recent-table .col-status {
  width: 7ch;
}

.recent-table .col-time {
  width: 16ch;
}

.col-actions {
  min-width: 126px;
}

.col-share {
  min-width: 112px;
}

.recent-table .client-col {
  padding-left: 0.1rem;
  padding-right: 0.05rem;
}

.recent-table .status-col {
  padding-left: 0.35rem;
}

.log-detail-dialog {
  width: min(780px, 94vw);
  padding: 0;
  overflow: hidden;
  max-height: 88vh;
  border: 1px solid rgba(120, 180, 255, 0.24);
  border-radius: 16px;
  color: #e6f1ff;
  background: linear-gradient(180deg, rgba(13, 24, 40, 0.98), rgba(7, 14, 24, 0.96));
}

.log-detail-dialog[open] {
  display: flex;
  flex-direction: column;
}

.log-detail-dialog::backdrop {
  background: rgba(2, 6, 15, 0.62);
}

.dialog-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  background: linear-gradient(180deg, rgba(14, 26, 45, 0.98), rgba(10, 20, 35, 0.96));
  border-bottom: 1px solid rgba(120, 180, 255, 0.16);
}

.dialog-close-btn {
  border-color: rgba(103, 232, 249, 0.42);
  color: #bff6ff !important;
  background: rgba(14, 165, 233, 0.2) !important;
}

.dialog-close-btn:hover {
  border-color: rgba(125, 240, 255, 0.58);
  background: rgba(14, 165, 233, 0.34) !important;
}

.dialog-close-btn:focus,
.dialog-close-btn:focus-visible,
.dialog-close-btn:active {
  outline: none !important;
  box-shadow: none !important;
}

.dialog-body {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  overflow: auto;
  line-height: 1.45;
  word-break: break-word;
}

.history-dialog {
  width: min(1024px, 96vw);
}

.history-meta {
  position: sticky;
  top: 56px;
  z-index: 1;
  display: grid;
  gap: 0.4rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(120, 180, 255, 0.16);
  background: rgba(8, 18, 32, 0.98);
}

.history-content-wrap {
  display: block;
}

#history-content {
  margin: 0;
  min-height: 440px;
  font-family: Consolas, Monaco, monospace;
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre;
}

.detail-key {
  color: #7edbff;
}

.ua-details {
  min-width: 240px;
}

.ua-summary {
  display: block;
  cursor: pointer;
  list-style: none;
}

.ua-summary::-webkit-details-marker {
  display: none;
}

.ua-preview {
  max-width: 260px;
  overflow: hidden;
  color: #bfe8ff;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.85rem;
}

.ua-full {
  margin-top: 0.5rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(120, 180, 255, 0.14);
  border-radius: 12px;
  color: #dff5ff;
  word-break: break-all;
  background: rgba(6, 14, 26, 0.72);
}

.ua-open .ua-preview {
  color: #ffffff;
}

.client-pill {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 180px;
  min-width: 72px;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  border: 1px solid rgba(120, 180, 255, 0.16);
  background: rgba(10, 20, 36, 0.8);
}

.recent-table .client-pill {
  max-width: 100%;
  min-width: 0;
}

.client-curl,
.client-wget,
.client-mikrotik {
  color: #aef7ff;
  border-color: rgba(103, 232, 249, 0.22);
  background: rgba(14, 165, 233, 0.14);
}

.client-browser {
  color: #ffd4a8;
  border-color: rgba(251, 191, 36, 0.22);
  background: rgba(245, 158, 11, 0.14);
}

.client-python,
.client-go {
  color: #d6c4ff;
  border-color: rgba(167, 139, 250, 0.24);
  background: rgba(124, 58, 237, 0.16);
}

.client-other,
.client-unknown {
  color: #d8e8ff;
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(71, 85, 105, 0.16);
}

.neon-btn {
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.neon-btn:hover,
.copy-share-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(77, 198, 255, 0.18);
}

.btn-primary {
  border-color: rgba(103, 232, 249, 0.28);
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
}

.btn-outline-secondary,
.btn-outline-info,
.btn-outline-light,
.btn-outline-primary,
.btn-outline-warning,
.btn-outline-secondary:hover,
.btn-outline-info:hover,
.btn-outline-light:hover,
.btn-outline-primary:hover,
.btn-outline-warning:hover {
  color: #d9f3ff;
}

.btn-outline-secondary,
.btn-outline-info,
.btn-outline-light,
.btn-outline-primary,
.btn-outline-warning {
  border-color: rgba(120, 180, 255, 0.22);
  background: rgba(9, 20, 34, 0.55);
}

.form-control,
.form-select {
  color: #e6f1ff;
  border-color: rgba(120, 180, 255, 0.18);
  background: rgba(8, 16, 29, 0.9);
}

.form-control:focus,
.form-select:focus {
  color: #f7fbff;
  border-color: rgba(103, 232, 249, 0.45);
  background: rgba(8, 16, 29, 0.98);
  box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.12);
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(85%) sepia(13%) saturate(531%) hue-rotate(165deg) brightness(103%) contrast(101%);
  opacity: 0.95;
  cursor: pointer;
}

.form-label {
  color: #ccecff;
}

.form-text {
  color: rgba(205, 225, 255, 0.64);
}

.command-preview {
  margin-top: 0.3rem;
  padding: 0.55rem;
  border: 1px solid rgba(120, 180, 255, 0.18);
  border-radius: 10px;
  background: rgba(8, 16, 29, 0.65);
}

.command-block {
  margin: 0;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(120, 180, 255, 0.14);
  border-radius: 8px;
  color: #bff1ff;
  white-space: pre-wrap;
  word-break: break-all;
  background: rgba(5, 12, 22, 0.72);
}

.alert-success,
.alert-danger {
  border: 1px solid transparent;
}

.alert-success {
  color: #baf7d6;
  background: rgba(21, 128, 61, 0.18);
  border-color: rgba(74, 222, 128, 0.15);
}

.alert-danger {
  color: #ffd2d7;
  background: rgba(190, 24, 93, 0.16);
  border-color: rgba(255, 97, 132, 0.15);
}

.login-card {
  margin-top: 4rem;
}

.code-area {
  min-height: 420px;
  font-family: Consolas, Monaco, monospace;
}

code {
  color: #8ce7ff;
  white-space: nowrap;
}

@media (max-width: 1200px) {
  .stats-metrics {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .topbar .container {
    row-gap: 0.55rem;
  }

  .page-hero {
    gap: 0.85rem;
    align-items: flex-start !important;
  }

  .section-title-wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .table-responsive {
    -webkit-overflow-scrolling: touch;
  }

  .stats-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .topbar {
    position: static;
  }

  .topbar .container {
    flex-wrap: wrap;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }

  .mobile-nav-menu {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
    order: 0;
    margin-right: 0.5rem;
  }

  .topbar .navbar-brand {
    order: 1;
    margin-right: auto;
  }

  .topbar .navbar-nav {
    display: none;
  }

  .topbar .navbar-nav .nav-link {
    padding-left: 0;
    padding-right: 0;
  }

  .topbar-actions {
    display: none;
  }

  .page-hero {
    flex-direction: column;
    align-items: stretch !important;
    padding: 0.95rem 1rem;
    border-radius: 14px;
  }

  .page-hero .hero-text {
    display: none !important;
  }

  .page-hero-action {
    width: 100%;
    margin-top: 0.15rem;
  }

  .panel-card {
    border-radius: 14px;
  }

  .futuristic-table th,
  .futuristic-table td {
    font-size: 0.8rem;
  }

  .futuristic-table td .d-flex {
    flex-wrap: wrap;
  }

  .mobile-hide-col {
    display: none !important;
  }

  .pagination-shell {
    justify-content: center;
  }

  .pagination-shell .page-info {
    display: block;
  }

  .stats-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .stats-metrics .metric-item {
    width: 100%;
  }

  .stats-metrics .metric-versions {
    display: none;
  }

  .stats-metrics .metric-card .card-body {
    padding: 0.55rem 0.6rem;
  }

  .stats-metrics .metric-card .display-6 {
    margin-top: 0.1rem;
    font-size: 1.02rem;
    line-height: 1.1;
  }

  .metric-label {
    font-size: 0.78rem;
  }

  .metric-value {
    min-width: 4ch;
    padding: 0.1rem 0.35rem;
    font-size: 0.86rem;
  }

  .metric-label-full {
    display: none;
  }

  .metric-label-short {
    display: inline-block;
    min-width: 2ch;
    max-width: 4ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }


  .popular-head,
  .popular-row {
    grid-template-columns: minmax(0, 1fr) 70px 140px;
  }

  .popular-name code {
    white-space: normal;
    word-break: break-all;
  }

  .rank-ip code {
    white-space: nowrap !important;
    word-break: normal !important;
    display: inline-block;
    min-width: 118px;
    max-width: 138px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .rank-ip {
    min-width: 150px;
  }

  .rank-count {
    display: inline-block;
    width: 60px;
    text-align: right;
  }

  .ban-records-table .ban-col-ip {
    width: 124px;
    white-space: nowrap;
  }

  .ban-records-table .ban-col-time {
    width: 16ch;
    white-space: nowrap;
  }

  .ban-records-table .ban-col-path .ban-path {
    display: inline-block;
    max-width: 46vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
  }

  .recent-table {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
  }

  .recent-table .col-script-name {
    width: auto;
  }

  .recent-table .col-ip {
    width: 130px;
  }

  .recent-table .col-client {
    width: 112px;
  }

  .recent-table .col-status {
    width: 7ch;
  }

  .recent-table .col-time {
    width: 16ch;
  }

  .recent-table th {
    white-space: nowrap;
  }

  .recent-table .script-name-col .sort-link {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
  }

  .col-actions .d-flex {
    justify-content: flex-start !important;
    gap: 0.35rem !important;
  }

  .col-actions .btn,
  .col-share .btn {
    padding: 0.18rem 0.42rem;
    font-size: 0.74rem;
  }

  .log-detail-dialog {
    width: min(96vw, 96vw);
    max-height: 92vh;
  }

  .dialog-header {
    padding: 0.7rem 0.8rem;
  }

  .dialog-body {
    padding: 0.8rem;
  }

  .history-dialog {
    width: min(96vw, 96vw);
  }

  .history-meta {
    top: 52px;
    padding: 0.7rem 0.8rem;
  }

  .code-area {
    min-height: 320px;
  }

  #history-content {
    min-height: 300px;
    font-size: 0.82rem;
  }
}
