@keyframes fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-fade-in {
  animation: fade-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #e2e8f0;
  font-family: 'Segoe UI', 'SF Pro Display', system-ui, -apple-system, sans-serif;
  background: #0c1222;
  background-image:
    radial-gradient(ellipse 100% 70% at 50% -15%, rgba(99, 102, 241, 0.18), transparent 50%),
    radial-gradient(ellipse 70% 40% at 100% 40%, rgba(139, 92, 246, 0.08), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(59, 130, 246, 0.06), transparent);
  position: relative;
  -webkit-font-smoothing: antialiased;
  transition: background 0.5s ease, color 0.4s ease, background-image 0.5s ease;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z' fill='%23ffffff' fill-opacity='0.02'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.45s ease;
}

body.theme-light::before {
  opacity: 0.6;
}

.theme-reveal {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 100vmax;
  height: 100vmax;
  margin-left: -50vmax;
  margin-top: -50vmax;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: scale(0);
  transform-origin: center center;
  transition: transform 0.7s cubic-bezier(0.33, 1, 0.68, 1);
}

.theme-reveal.expand {
  transform: scale(2.2);
}

#app {
  position: relative;
  z-index: 1;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.25rem;
  background: rgba(15, 23, 42, 0.6);
  border-bottom: 1px solid rgba(71, 85, 105, 0.3);
  gap: 1rem;
  flex-wrap: wrap;
}

.app-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.app-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.app-logo-img {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
}

.app-version {
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  background: rgba(71, 85, 105, 0.25);
}

.db-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted, #94a3b8);
}

.db-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted, #64748b);
  flex-shrink: 0;
}

.db-status.ok .db-status-dot {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.db-status.err .db-status-dot {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.db-status.pending .db-status-dot {
  background: #eab308;
  animation: glow-pulse 1.2s ease-in-out infinite;
}

.app-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.5rem;
  background: transparent;
  border: 1px solid rgba(71, 85, 105, 0.4);
  border-radius: 0.5rem;
  color: var(--text-muted, #94a3b8);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.theme-toggle:hover {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(99, 102, 241, 0.1);
  color: var(--text, #e2e8f0);
}

.app-header .header-btn {
  margin-bottom: 0;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
}

.toast-container {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 360px;
  pointer-events: none;
}

.toast {
  padding: 0.75rem 1rem;
  border-radius: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
  animation: toast-in 0.3s ease-out;
  border: 1px solid transparent;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

.toast.ok {
  background: var(--toast-bg-ok, #14532d);
  color: #dcfce7;
  border-color: rgba(34, 197, 94, 0.3);
}

.toast.err {
  background: var(--toast-bg-err, #450a0a);
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.3);
}

.toast.info {
  background: var(--toast-bg-info, rgba(30, 41, 59, 0.95));
  color: var(--text, #e2e8f0);
  border-color: rgba(71, 85, 105, 0.5);
}

.auth-container {
  max-width: 420px;
  width: 100%;
  margin: 10vh auto 0;
  padding: 2.5rem 2.25rem;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.5) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 1.25rem;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 32px 64px -16px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(99, 102, 241, 0.06);
  animation: card-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.auth-title {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #f1f5f9;
  text-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
}

.auth-container label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: #94a3b8;
}

.auth-container input[type="text"],
.auth-container input[type="password"],
.auth-container input[type="number"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(71, 85, 105, 0.5);
  color: #f1f5f9;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.auth-container input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.auth-container button[type="submit"] {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #7c3aed 100%);
  background-size: 200% 200%;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
  transition: transform 0.15s, box-shadow 0.2s;
}

.auth-container button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.status { margin-top: 1rem; font-size: 0.875rem; }
.status.ok { color: #34d399; }
.status.err { color: #f87171; }

.logger-login-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
}

.logger-login-box {
  width: 100%;
  max-width: 400px;
  padding: 2.5rem 2rem;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.5) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 1.25rem;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 32px 64px -16px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(99, 102, 241, 0.08);
  animation: card-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.logger-login-logo {
  display: block;
  margin: 0 auto 1rem;
  height: 64px;
  width: auto;
  object-fit: contain;
}

.logger-login-title {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f1f5f9;
  text-align: center;
}

.logger-login-sub {
  margin: 0 0 1.75rem;
  font-size: 0.925rem;
  color: #94a3b8;
  text-align: center;
  line-height: 1.45;
}

.logger-login-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #cbd5e1;
}

.logger-login-form input {
  width: 100%;
  margin-bottom: 1.1rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(71, 85, 105, 0.45);
  border-radius: 0.6rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.logger-login-form input::placeholder {
  color: #64748b;
}

.logger-login-form input:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.7);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.logger-login-form .input-password-wrap {
  position: relative;
  margin-bottom: 1.1rem;
}

.logger-login-form .input-password-wrap input {
  margin-bottom: 0;
  padding-right: 2.75rem;
}

.logger-login-form .btn-toggle-password {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.35rem;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  border-radius: 0.35rem;
  transition: color 0.2s, transform 0.2s;
}

.logger-login-form .btn-toggle-password:hover {
  color: #e2e8f0;
}

.logger-login-form .btn-toggle-password:active {
  transform: translateY(-50%) scale(0.92);
}

.logger-login-form .btn-toggle-password .icon-eye,
.logger-login-form .btn-toggle-password .icon-eye-off {
  display: block;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.logger-login-form .btn-toggle-password .icon-eye-off {
  position: absolute;
  inset: 0;
  margin: auto;
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
}

.logger-login-form .btn-toggle-password .icon-eye {
  opacity: 1;
  transform: scale(1);
}

.logger-login-form .btn-toggle-password.password-visible .icon-eye {
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
}

.logger-login-form .btn-toggle-password.password-visible .icon-eye-off {
  opacity: 1;
  transform: scale(1);
  pointer-events: none;
}

.logger-login-form .btn-logger-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
  border: none;
  border-radius: 0.6rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
  transition: transform 0.15s, box-shadow 0.2s, filter 0.15s;
}

.logger-login-form .btn-logger-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
  filter: brightness(1.05);
}

.logger-login-form .btn-logger-submit:active {
  transform: translateY(0);
}

.logger-login-form .btn-logger-submit .btn-login-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.65s linear infinite;
}

.logger-login-form .btn-logger-submit .btn-login-spinner:not([hidden]) {
  display: inline-block;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

.logger-login-status {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #f87171;
  text-align: center;
  min-height: 1.25em;
}

.logger-login-status.ok { color: #34d399; }

.logger-login-admin {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  text-align: center;
}

.logger-login-admin a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s;
}

.logger-login-admin a:hover {
  color: #c4b5fd;
}

.dashboard-wrapper {
  max-width: none;
  width: 100%;
  margin: 3rem auto;
  padding: 0 1.5rem 3rem;
  animation: fade-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#logger-section[hidden],
#item-section[hidden],
#main-section[hidden] {
  display: none !important;
}

#logger-section,
#item-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

#logger-section .main-header-links {
  justify-content: center;
  width: 100%;
}

#item-section .back-btn {
  align-self: flex-start;
}

#logger-section .dashboard-title,
#logger-section .dashboard-subtitle,
#item-section .dashboard-title,
#item-section .dashboard-subtitle {
  text-align: center;
}

#logger-section .dashboard-title,
#item-section .dashboard-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

#logger-section .dashboard-subtitle,
#item-section .dashboard-subtitle {
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

#logger-section .logger-grid,
#logger-section .stub-msg,
#item-section .item-grid {
  margin-left: auto;
  margin-right: auto;
}

.dashboard-title {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
  color: #f1f5f9;
  text-shadow: 0 0 40px rgba(99, 102, 241, 0.12);
  line-height: 1.2;
}

.dashboard-subtitle {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  max-width: 32rem;
}

.main-header-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.main-header-links .back-btn {
  margin-bottom: 0;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.85rem;
}

.main-header-links a.admin-link {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
  color: #c4b5fd;
}

.main-header-links a.admin-link:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.55);
  color: #e2e8f0;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  padding: 0.55rem 1rem;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(71, 85, 105, 0.4);
  border-radius: 0.6rem;
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.15s;
}

.back-btn:hover {
  color: #e2e8f0;
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(99, 102, 241, 0.12);
  transform: translateX(-2px);
}

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.5) 0%, rgba(30, 41, 59, 0.35) 100%);
  border: 1px solid rgba(71, 85, 105, 0.35);
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.controls label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #94a3b8;
}

.controls input.date-input {
  padding: 0.55rem 0.9rem;
  margin-left: 0.35rem;
  border-radius: 0.55rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(71, 85, 105, 0.45);
  color: #e2e8f0;
  font-size: 0.9rem;
  min-width: 168px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.controls input.date-input:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.65);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

.controls .btn-load {
  padding: 0.6rem 1.4rem;
  border-radius: 0.6rem;
  border: none;
  font-weight: 600;
  font-size: 0.925rem;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
  transition: transform 0.15s, box-shadow 0.2s;
}

.controls .btn-load:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.45);
}

.controls .btn-load:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.load-total-count {
  width: 100%;
  margin: 0.5rem 0 0;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted, rgba(203, 213, 225, 0.9));
}

#main-section {
  position: relative;
}

.load-overlay {
  position: absolute;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(12, 18, 34, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  margin-top: 0.5rem;
  z-index: 10;
  transition: opacity 0.25s ease;
}

body.theme-light .load-overlay {
  background: rgba(241, 245, 249, 0.9);
}

.load-overlay[hidden] {
  display: none !important;
}

.load-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(71, 85, 105, 0.4);
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: load-spin 0.9s linear infinite;
}

body.theme-light .load-spinner {
  border-color: rgba(148, 163, 184, 0.5);
  border-top-color: #6366f1;
}

@keyframes load-spin {
  to { transform: rotate(360deg); }
}

.load-text {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #94a3b8;
}

body.theme-light .load-text {
  color: #475569;
}

.load-progress-track {
  width: 220px;
  height: 8px;
  background: rgba(30, 41, 59, 0.8);
  border-radius: 4px;
  overflow: hidden;
}

.load-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 4px;
  transition: width 0.25s ease;
}

body.theme-light .load-progress-track {
  background: rgba(148, 163, 184, 0.35);
}

#tabs-default[hidden],
#tabs-specuha[hidden] {
  display: none !important;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.tab-btn {
  padding: 0.55rem 1.15rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(71, 85, 105, 0.4);
  background: rgba(30, 41, 59, 0.5);
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: #e2e8f0;
  border-color: rgba(99, 102, 241, 0.45);
  background: rgba(99, 102, 241, 0.1);
}

.tab-btn.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.28) 0%, rgba(124, 58, 237, 0.22) 100%);
  border-color: rgba(99, 102, 241, 0.65);
  color: #fff;
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.2);
}

.tabs-separator {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(180deg, transparent, rgba(148, 163, 184, 0.3), transparent);
  margin: 0.25rem 0.15rem;
  border-radius: 1px;
}

.sqlid-search,
.sliv-full-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 0.75rem;
  border: 1px solid rgba(71, 85, 105, 0.3);
}

.sqlid-search label,
.sliv-full-search label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #94a3b8;
}

.sqlid-search .sqlid-input,
.sliv-full-search .sliv-full-input {
  min-width: 200px;
  padding: 0.5rem 0.85rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(71, 85, 105, 0.45);
  background: rgba(15, 23, 42, 0.7);
  color: #e2e8f0;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sqlid-search .sqlid-input:focus,
.sliv-full-search .sliv-full-input:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.sqlid-search .btn-sqlid-find,
.sliv-full-search .btn-sliv-full-find {
  padding: 0.55rem 1.35rem;
  border-radius: 0.6rem;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  letter-spacing: 0.02em;
}

.sqlid-search .btn-sqlid-find:hover,
.sliv-full-search .btn-sliv-full-find:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
  filter: brightness(1.06);
}

.sqlid-search .btn-sqlid-find:active,
.sliv-full-search .btn-sliv-full-find:active {
  transform: translateY(0);
}

.sqlid-search .btn-sqlid-find:disabled,
.sliv-full-search .btn-sliv-full-find:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.sqlid-search .btn-sqlid-screenshot,
.sqlid-log-modal-actions .btn-sqlid-screenshot {
  padding: 0.55rem 1.1rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(71, 85, 105, 0.5);
  background: rgba(30, 41, 59, 0.7);
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.sqlid-search .btn-sqlid-screenshot:hover:not(:disabled),
.sqlid-log-modal-actions .btn-sqlid-screenshot:hover:not(:disabled) {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(99, 102, 241, 0.12);
  color: #e2e8f0;
}

.sqlid-search .btn-sqlid-screenshot:disabled,
.sqlid-log-modal-actions .btn-sqlid-screenshot:disabled {
  opacity: 0.7;
  cursor: wait;
}

.logger-grid,
.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  max-width: 720px;
  margin-top: 1.5rem;
  padding: 0 0.5rem;
  justify-items: center;
}

.logger-grid .logger-card,
.item-grid .item-card {
  animation: card-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.logger-grid .logger-card:nth-child(1), .item-grid .item-card:nth-child(1) { animation-delay: 0.05s; }
.logger-grid .logger-card:nth-child(2), .item-grid .item-card:nth-child(2) { animation-delay: 0.1s; }
.logger-grid .logger-card:nth-child(3), .item-grid .item-card:nth-child(3) { animation-delay: 0.15s; }
.logger-grid .logger-card:nth-child(4), .item-grid .item-card:nth-child(4) { animation-delay: 0.2s; }
.logger-grid .logger-card:nth-child(5), .item-grid .item-card:nth-child(5) { animation-delay: 0.25s; }
.logger-grid .logger-card:nth-child(6), .item-grid .item-card:nth-child(6) { animation-delay: 0.3s; }
.logger-grid .logger-card:nth-child(n+7), .item-grid .item-card:nth-child(n+7) { animation-delay: 0.35s; }

.logger-card,
.item-card {
  width: 100%;
  max-width: 200px;
  padding: 0;
  border-radius: 1rem;
  background: linear-gradient(155deg, rgba(30, 41, 59, 0.65) 0%, rgba(15, 23, 42, 0.55) 100%);
  border: 1px solid rgba(71, 85, 105, 0.35);
  color: #e2e8f0;
  font-size: 1.08rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.2s, box-shadow 0.22s ease, background 0.2s;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  text-align: center;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.logger-card {
  padding: 1.85rem 1.5rem;
  max-width: 220px;
}

.item-card-image-wrap {
  width: 100%;
  aspect-ratio: 1;
  min-height: 140px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.8) 0%, rgba(51, 65, 85, 0.3) 100%);
  border-radius: 1rem 1rem 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.item-card-image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(99, 102, 241, 0.08), transparent);
  pointer-events: none;
}

.item-card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.75rem;
  box-sizing: border-box;
}

.item-card-image-missing .item-card-image {
  display: none;
}

.item-card-image-wrap.item-card-image-missing {
  background: linear-gradient(145deg, rgba(51, 65, 85, 0.4) 0%, rgba(30, 41, 59, 0.6) 100%);
}

.item-card-image-wrap.item-card-image-missing::after {
  content: '';
  width: 48px;
  height: 48px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z'/%3E%3Cpolyline points='3.27 6.96 12 12.01 20.73 6.96'/%3E%3Cline x1='12' y1='22.08' x2='12' y2='12'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 0.6;
}

.item-card-body {
  padding: 1rem 1rem 1.25rem;
  flex: 0 0 auto;
  line-height: 1.3;
  border-top: 1px solid rgba(71, 85, 105, 0.25);
}

.item-card-no-image .item-card-body {
  padding: 1.85rem 1.5rem;
  border-top: none;
}

.logger-card::before,
.item-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.logger-card:hover,
.item-card:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28), 0 0 36px rgba(99, 102, 241, 0.1);
}

.logger-card:not(.logger-card-stub):hover,
.item-card:not(.item-card-stub):hover {
  border-color: rgba(99, 102, 241, 0.55);
  background: linear-gradient(155deg, rgba(99, 102, 241, 0.2) 0%, rgba(124, 58, 237, 0.12) 100%);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25), 0 0 48px rgba(99, 102, 241, 0.18);
}

.logger-card:not(.logger-card-stub):hover::before,
.item-card:not(.item-card-stub):hover::before {
  opacity: 1;
}

.logger-card-stub,
.item-card-stub {
  opacity: 0.6;
  cursor: not-allowed;
}

.stub-msg {
  margin-top: 1rem;
  color: #f87171;
  font-size: 0.9rem;
}

.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin-right: 0.25em;
}

.icon-wrap svg {
  width: 1.1em;
  height: 1.1em;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.icon-wrap-title svg {
  width: 1.25em;
  height: 1.25em;
}

.icon-wrap-btn svg {
  width: 1em;
  height: 1em;
  margin-right: 0.2em;
}

.btn-sqlid-screenshot .icon-wrap {
  margin-right: 0.35em;
}

.tab-btn .icon-wrap-tab {
  margin-right: 0.35em;
}

.tab-btn .icon-wrap-tab svg {
  width: 1em;
  height: 1em;
}

.flatpickr-calendar {
  background: #1e293b !important;
  border: 1px solid rgba(71, 85, 105, 0.5) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
  border-radius: 0.5rem !important;
}

.flatpickr-months, .flatpickr-weekdays, .flatpickr-days { background: #1e293b !important; }
.flatpickr-month, .flatpickr-current-month { background: #1e293b !important; color: #e2e8f0 !important; fill: #e2e8f0 !important; }
.flatpickr-weekday { color: #94a3b8 !important; }
.flatpickr-day { color: #e2e8f0 !important; }
.flatpickr-day:hover { background: #334155 !important; border-color: #334155 !important; color: #fff !important; }
.flatpickr-day.selected, .flatpickr-day.selected:hover { background: #6366f1 !important; border-color: #6366f1 !important; color: #fff !important; }
.flatpickr-day.today { border-color: #6366f1 !important; }
.flatpickr-day.today:hover { background: #6366f1 !important; border-color: #6366f1 !important; color: #fff !important; }
.flatpickr-day.flatpickr-disabled, .flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay { color: #64748b !important; }
.flatpickr-months .flatpickr-prev-month:hover svg, .flatpickr-months .flatpickr-next-month:hover svg { fill: #6366f1 !important; }
.flatpickr-time input { background: #0f172a !important; color: #e2e8f0 !important; border: 1px solid #334155 !important; }
.flatpickr-time .flatpickr-time-separator, .flatpickr-time .numInputWrapper { color: #e2e8f0 !important; }
.flatpickr-time .arrowUp:after { border-bottom-color: #6366f1 !important; }
.flatpickr-time .arrowDown:after { border-top-color: #6366f1 !important; }

.result-box {
  margin-top: 1.25rem;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.7) 0%, rgba(30, 41, 59, 0.4) 100%);
  border: 1px solid rgba(71, 85, 105, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.result-tabs {
  display: flex;
  padding: 0;
  background: rgba(30, 41, 59, 0.6);
  border-bottom: 1px solid rgba(71, 85, 105, 0.4);
  min-height: 36px;
}

.result-tab {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  color: #94a3b8;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.result-tab.active {
  color: #e2e8f0;
  border-bottom-color: #6366f1;
}

.table-scroll-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.btn-save-columns {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.45);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.btn-save-columns:hover {
  color: #e0e7ff;
  border-color: rgba(99, 102, 241, 0.6);
  background: rgba(99, 102, 241, 0.3);
}

body.theme-light .btn-save-columns {
  color: #4338ca;
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
}

body.theme-light .btn-save-columns:hover {
  color: #3730a3;
  background: rgba(99, 102, 241, 0.25);
}

.btn-scroll-toggle {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #94a3b8;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(71, 85, 105, 0.4);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.btn-scroll-toggle:hover {
  color: #e2e8f0;
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.1);
}

body.theme-light .btn-scroll-toggle {
  color: #475569;
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(148, 163, 184, 0.4);
}

body.theme-light .btn-scroll-toggle:hover {
  color: #0f172a;
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(224, 231, 255, 0.4);
}

.table-wrap {
  overflow-x: auto;
  overflow-y: visible;
  width: 100%;
}

.table-wrap.table-scrollable {
  max-height: 560px;
  overflow-y: auto;
  overflow-x: auto;
  scrollbar-gutter: stable;
}

.table-wrap.table-scrollable::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.table-wrap.table-scrollable::-webkit-scrollbar-track {
  background: rgba(30, 41, 59, 0.5);
  border-radius: 5px;
}

.table-wrap.table-scrollable::-webkit-scrollbar-thumb {
  background: rgba(71, 85, 105, 0.7);
  border-radius: 5px;
}

.table-wrap.table-scrollable::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.5);
}

.table-wrap.table-scrollable::-webkit-scrollbar-corner {
  background: rgba(30, 41, 59, 0.5);
  border-radius: 0 0 5px 0;
}

.table-wrap.table-scrollable {
  scrollbar-width: thin;
  scrollbar-color: rgba(71, 85, 105, 0.8) rgba(30, 41, 59, 0.5);
}

body.theme-light .table-wrap.table-scrollable::-webkit-scrollbar-track {
  background: rgba(226, 232, 240, 0.8);
}

body.theme-light .table-wrap.table-scrollable::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.7);
}

body.theme-light .table-wrap.table-scrollable::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.4);
}

body.theme-light .table-wrap.table-scrollable::-webkit-scrollbar-corner {
  background: rgba(226, 232, 240, 0.8);
}

body.theme-light .table-wrap.table-scrollable {
  scrollbar-color: rgba(148, 163, 184, 0.8) rgba(226, 232, 240, 0.8);
}

.db-table {
  width: 100%;
  min-width: 1400px;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 11px;
  font-family: 'Consolas', 'Monaco', monospace;
  background: transparent;
}

.db-table th {
  background: rgba(30, 41, 59, 0.85);
  color: #94a3b8;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid rgba(71, 85, 105, 0.45);
  text-align: left;
  position: relative;
  min-width: 40px;
  box-sizing: border-box;
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.db-table th .th-inner {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 8px;
}

.db-table th .resize-handle {
  position: absolute;
  top: 0; right: 0;
  width: 6px;
  height: 100%;
  cursor: col-resize;
  user-select: none;
}

.db-table th .resize-handle:hover {
  background: rgba(99, 102, 241, 0.25);
}

.db-table td {
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
  color: #e2e8f0;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.db-table tbody tr:hover {
  background: rgba(99, 102, 241, 0.06);
}

.sqlid-cell-link {
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  color: #93c5fd;
  transition: color 0.15s;
}
.sqlid-cell-link:hover {
  color: #60a5fa;
}

.db-table .col-login { color: #34d399; font-weight: 600; }
.db-table .col-accountid, .db-table .col-org, .db-table .col-fraclog,
.db-table .col-family, .db-table .col-itemsqlid, .db-table .col-itemid { color: #93c5fd; }
.db-table .col-comment, .db-table .col-args, .db-table .col-info { color: #34d399; }
.db-table .col-DATE { color: #f87171; }
.db-table .col-num { color: #94a3b8; }

.db-table th.col-login, .db-table th.col-comment, .db-table th.col-args, .db-table th.col-info,
.db-table th.col-accountid, .db-table th.col-org, .db-table th.col-fraclog, .db-table th.col-family,
.db-table th.col-itemsqlid, .db-table th.col-itemid, .db-table th.col-DATE, .db-table th.col-num {
  color: #94a3b8;
}

.db-table .col-check { text-align: center; padding: 0.25rem; }

.row-check-btn {
  padding: 0.25rem 0.5rem;
  font-size: 10px;
  border-radius: 0.35rem;
  border: 1px solid rgba(71, 85, 105, 0.5);
  background: rgba(30, 41, 59, 0.6);
  color: #94a3b8;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.row-check-btn:hover:not(:disabled) {
  background: rgba(99, 102, 241, 0.2);
  color: #e2e8f0;
  border-color: #6366f1;
}

.row-check-btn.check-yes {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.4);
}

.row-check-btn.check-no {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.4);
}

.result-meta {
  padding: 0.6rem 1rem;
  margin: 0;
  font-size: 0.7rem;
  color: #64748b;
  background: rgba(30, 41, 59, 0.7);
  border-top: 1px solid rgba(71, 85, 105, 0.35);
  letter-spacing: 0.02em;
}

.site-footer {
  margin: 1.5rem 0 1rem;
  padding: 0.5rem 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.85);
  letter-spacing: 0.02em;
}

.db-table .col-args {
  min-width: 280px;
  width: 300px;
  max-width: 400px;
  white-space: normal;
  word-break: break-all;
  overflow-wrap: break-word;
}

.db-table td.col-args { overflow: visible; text-overflow: clip; }
.db-table th.col-DATE, .db-table td.col-DATE { min-width: 140px; }

body.theme-light {
  background: #f1f5f9;
  color: #1e293b;
}

body.theme-light::before {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z' fill='%23000000' fill-opacity='0.03'/%3E%3C/g%3E%3C/svg%3E");
}

body.theme-light .app-header,
body.theme-light .controls,
body.theme-light .result-box,
body.theme-light .logger-card,
body.theme-light .item-card,
body.theme-light .tab-btn,
body.theme-light .db-table th,
body.theme-light .result-meta,
body.theme-light .sqlid-search,
body.theme-light .sliv-full-search {
  transition: background 0.45s ease, border-color 0.45s ease, color 0.4s ease, box-shadow 0.45s ease;
}

.dashboard-title,
.dashboard-subtitle,
.back-btn,
.controls label,
.tab-btn,
.db-table th,
.db-table td,
.result-meta,
.theme-toggle,
.db-status {
  transition: color 0.4s ease, background 0.45s ease, border-color 0.45s ease;
}

body.theme-light .app-header {
  background: rgba(255, 255, 255, 0.85);
  border-bottom-color: rgba(148, 163, 184, 0.4);
}

body.theme-light .dashboard-title { color: #0f172a; }
body.theme-light .dashboard-subtitle { color: #475569; }
body.theme-light .back-btn { color: #475569; border-color: rgba(71, 85, 105, 0.4); }
body.theme-light .back-btn:hover { color: #0f172a; }
body.theme-light .logger-card,
body.theme-light .item-card {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.9) 0%, rgba(241, 245, 249, 0.95) 100%);
  border-color: rgba(148, 163, 184, 0.4);
  color: #1e293b;
}
body.theme-light .logger-card:not(.logger-card-stub):hover,
body.theme-light .item-card:not(.item-card-stub):hover {
  border-color: rgba(99, 102, 241, 0.5);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.95) 0%, rgba(224, 231, 255, 0.5) 100%);
}
body.theme-light .controls {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(148, 163, 184, 0.35);
}
body.theme-light .controls label { color: #475569; }
/* Оверлей лога по itemsqlid (клик по ячейке в таблице) */
.sqlid-log-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}
.sqlid-log-overlay[hidden] {
  display: none !important;
}
.sqlid-log-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  cursor: pointer;
}
.sqlid-log-modal {
  position: relative;
  z-index: 1;
  max-width: 96vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: rgba(30, 41, 59, 0.98);
  border: 1px solid rgba(71, 85, 105, 0.5);
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.sqlid-log-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(71, 85, 105, 0.4);
  flex-shrink: 0;
}
.sqlid-log-modal-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
}
.sqlid-log-modal-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-save-columns-modal {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.45);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-save-columns-modal:hover {
  color: #e0e7ff;
  border-color: rgba(99, 102, 241, 0.6);
  background: rgba(99, 102, 241, 0.3);
}
.sqlid-log-modal-close {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 0.35rem;
  background: rgba(71, 85, 105, 0.4);
  color: #94a3b8;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.sqlid-log-modal-close:hover {
  background: rgba(248, 113, 113, 0.3);
  color: #f87171;
}
.sqlid-modal-content {
  overflow: auto;
  flex: 1;
  min-height: 0;
}
.sqlid-modal-content .table-wrap {
  max-height: 70vh;
  overflow: auto;
}

body.theme-light .controls input.date-input { background: #fff; border-color: rgba(71, 85, 105, 0.35); color: #0f172a; }
body.theme-light .tab-btn { background: rgba(255, 255, 255, 0.5); color: #475569; border-color: rgba(71, 85, 105, 0.35); }
body.theme-light .tab-btn:hover { color: #0f172a; }
body.theme-light .tab-btn.active { background: rgba(99, 102, 241, 0.2); color: #3730a3; border-color: rgba(99, 102, 241, 0.5); }
body.theme-light .result-box { background: rgba(255, 255, 255, 0.8); border-color: rgba(148, 163, 184, 0.35); }
body.theme-light .db-table th { background: rgba(241, 245, 249, 0.95); color: #475569; }
body.theme-light .db-table td { color: #1e293b; border-bottom-color: rgba(226, 232, 240, 0.8); }
body.theme-light .db-table tbody tr:hover { background: rgba(99, 102, 241, 0.08); }
body.theme-light .db-table .col-login { color: #15803d; }
body.theme-light .db-table .col-accountid, body.theme-light .db-table .col-org { color: #1d4ed8; }
body.theme-light .db-table .col-DATE { color: #b91c1c; }
body.theme-light .result-meta { background: rgba(241, 245, 249, 0.9); color: #64748b; }
body.theme-light .load-total-count { color: #64748b; }
body.theme-light .site-footer { color: #64748b; }
body.theme-light .sqlid-search { background: rgba(255, 255, 255, 0.6); border-color: rgba(148, 163, 184, 0.3); }
body.theme-light .sqlid-search .sqlid-input { background: #fff; color: #0f172a; }
body.theme-light .theme-toggle { color: #475569; border-color: rgba(71, 85, 105, 0.4); }
body.theme-light .theme-toggle:hover { color: #0f172a; }
body.theme-light .toast.ok { background: #166534; }
body.theme-light .toast.err { background: #991b1b; }
body.theme-light .toast.info { background: rgba(51, 65, 85, 0.95); color: #f1f5f9; }
body.theme-light .db-status { color: #475569; }
body.theme-light .app-version { color: #64748b; background: rgba(148, 163, 184, 0.25); }
