.lvsw-wrap {
  max-width: 1180px;
  margin-top: 18px;
}

.lvsw-wrap h1 {
  margin-bottom: 14px;
}

.lvsw-card {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 14px;
  padding: 20px;
  margin: 18px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.lvsw-card h2 {
  margin-top: 0;
  margin-bottom: 14px;
}

.lvsw-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.lvsw-banner {
  display: block;
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.lvsw-status-card table td,
.lvsw-status-card table th {
  padding: 12px 14px;
  vertical-align: top;
}

.lvsw-status-card .widefat td:first-child {
  width: 260px;
}

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

.lvsw-muted {
  color: #646970;
}

.lvsw-warning {
  margin: 10px 0 0;
  color: #b45309;
}

.lvsw-success {
  color: #0a7a2f;
}

.lvsw-danger {
  color: #b32d2e;
}

.lvsw-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.lvsw-card .form-table {
  margin-top: 0;
}

.lvsw-card .form-table th {
  width: 320px;
  padding-left: 0;
  padding-right: 24px;
  font-weight: 600;
}

.lvsw-card .form-table td {
  padding-left: 0;
}

.lvsw-card .description {
  margin-top: 8px;
  max-width: 720px;
  color: #646970;
}

.lvsw-inline-field {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.lvsw-select,
.lvsw-card select,
.lvsw-card input[type="email"],
.lvsw-card input[type="text"],
.lvsw-card input[type="number"] {
  min-width: 220px;
}

.lvsw-logs {
  margin: 0;
  padding-left: 18px;
}

.lvsw-logs li {
  margin: 0 0 8px;
  line-height: 1.45;
}

.lvsw-log-time {
  color: #1d2327;
  font-weight: 600;
}

.lvsw-empty {
  margin: 0;
  color: #646970;
}

.lvsw-nav {
  margin-top: 8px;
  margin-bottom: 0;
}

.lvsw-nav .nav-tab {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  padding: 10px 16px;
  transition: all 0.15s ease;
}

.lvsw-nav .nav-tab:hover {
  background: #f6f7f7;
}

.lvsw-nav .nav-tab-active,
.lvsw-nav .nav-tab-active:hover {
  background: #fff;
  border-bottom: 1px solid #fff;
}

.lvsw-table {
  border-collapse: collapse;
}

.lvsw-table td,
.lvsw-table th {
  vertical-align: top;
}

.lvsw-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  background: #f0f0f1;
  color: #1d2327;
}

.lvsw-badge--ok {
  background: #dff5e3;
  color: #0a7a2f;
}

.lvsw-badge--warn {
  background: #fff1d6;
  color: #8a5a00;
}

.lvsw-badge--danger {
  background: #fbeaea;
  color: #b32d2e;
}

/* Toggle */
.lvsw-toggle {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 30px;
  vertical-align: middle;
  flex: 0 0 auto;
}

.lvsw-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.lvsw-toggle-ui {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: #cfd4da;
  border-radius: 999px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.lvsw-toggle-ui::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.lvsw-toggle input:checked + .lvsw-toggle-ui {
  background: #2271b1;
}

.lvsw-toggle input:checked + .lvsw-toggle-ui::before {
  transform: translateX(24px);
}

.lvsw-toggle input:focus + .lvsw-toggle-ui {
  box-shadow:
    0 0 0 1px #2271b1,
    0 0 0 4px rgba(34, 113, 177, 0.16);
}

.lvsw-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 30px;
}

.lvsw-toggle-text {
  font-weight: 500;
}

/* Utility layout blocks */
.lvsw-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.lvsw-col {
  flex: 1 1 320px;
  min-width: 280px;
}

.lvsw-note {
  background: #f6f7f7;
  border-left: 4px solid #2271b1;
  padding: 12px 14px;
  border-radius: 8px;
  margin: 12px 0 0;
}

.lvsw-note p:last-child {
  margin-bottom: 0;
}

.lvsw-codeish {
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
  word-break: break-word;
}

/* Better spacing for settings API output */
.lvsw-card .form-table tr:first-child th,
.lvsw-card .form-table tr:first-child td {
  padding-top: 8px;
}

.lvsw-card .form-table tr:last-child th,
.lvsw-card .form-table tr:last-child td {
  padding-bottom: 8px;
}

/* Responsive */
@media (max-width: 900px) {
  .lvsw-card .form-table th,
  .lvsw-card .form-table td {
    display: block;
    width: 100%;
    padding-right: 0;
  }

  .lvsw-card .form-table th {
    padding-bottom: 6px;
  }

  .lvsw-status-card .widefat td:first-child {
    width: auto;
  }
}

@media (max-width: 782px) {
  .lvsw-wrap {
    margin-top: 10px;
  }

  .lvsw-card {
    padding: 16px;
    border-radius: 12px;
  }

  .lvsw-nav .nav-tab {
    padding: 9px 12px;
  }

  .lvsw-inline-field {
    align-items: flex-start;
    flex-direction: column;
  }
}