:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #eef2f6;
  --border: #d8e0e8;
  --text: #17212b;
  --muted: #657283;
  --accent: #1473e6;
  --accent-dark: #0b5bb7;
  --good: #15803d;
  --warn: #b45309;
  --danger: #b91c1c;
  --shadow: 0 12px 30px rgba(20, 35, 55, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: #101923;
  color: #f8fafc;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.brand-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.brand-main {
  justify-content: center;
  width: 100%;
}

.brand-logo {
  display: block;
  width: min(200px, 100%);
  height: auto;
  object-fit: contain;
}

.brand span,
.eyebrow,
.metric span,
.metric small,
td small,
.setting p {
  color: var(--muted);
}

.sidebar .brand span {
  color: #aeb9c6;
  display: block;
  font-size: 12px;
}

.sidebar .brand .server-identity {
  color: #d6dde6;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ffffff;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
  overflow-wrap: anywhere;
}

.sidebar .brand .server-identity span {
  color: inherit;
  font-size: inherit;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-item {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 11px 12px;
  background: transparent;
  color: #d6dde6;
  text-align: left;
}

.nav-item:hover,
.nav-item.is-active {
  background: #1d2a38;
  color: #ffffff;
}

.sidebar-health {
  margin-top: auto;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-health strong {
  font-size: 13px;
}

.sidebar-logout {
  border: 0;
  padding: 0;
  background: transparent;
  color: #aeb9c6;
  font: inherit;
  font-size: 13px;
  text-align: center;
  cursor: pointer;
}

.sidebar-logout:hover,
.sidebar-logout:focus-visible {
  color: #ffffff;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.18);
  flex: 0 0 auto;
}

.status-dot.is-good {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.status-dot.is-warn {
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
}

.status-dot.is-bad {
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
}

.main {
  min-width: 0;
  padding: 28px;
}

.topbar,
.toolbar,
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar {
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 2px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 30px;
}

h2 {
  font-size: 17px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.button {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 13px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.button[hidden] {
  display: none;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.danger {
  border-color: rgba(185, 28, 28, 0.28);
  color: var(--danger);
}

.button.danger:hover {
  background: #fef2f2;
  border-color: rgba(185, 28, 28, 0.42);
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.button-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  flex: 0 0 auto;
  animation: button-spin 0.7s linear infinite;
}

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

.button.ghost:hover,
.text-button:hover {
  background: var(--surface-2);
}

.text-button {
  border: 0;
  border-radius: 8px;
  padding: 7px 9px;
  background: transparent;
  color: var(--accent);
  font-weight: 700;
}

.text-button.danger {
  color: var(--danger);
}

.text-button.danger:hover {
  background: #fef2f2;
}

.table-link {
  color: inherit;
  text-decoration: none;
}

.table-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.metric-grid,
.content-grid,
.settings-grid {
  display: grid;
  gap: 16px;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.metric,
.panel,
.setting,
.table-wrap,
.log-stream {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric {
  padding: 18px;
}

.metric strong {
  display: block;
  margin: 5px 0;
  font-size: 30px;
}

.storage-bar {
  height: 9px;
  margin: 10px 0 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #9ca3af;
}

.storage-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 240ms ease;
}

.storage-detail {
  display: block;
}

.storage-detail b {
  color: var(--text);
}

.content-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
}

.overview-version {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.panel,
.setting {
  padding: 18px;
}

.compact-list,
.health-list {
  display: grid;
  gap: 10px;
}

.compact-row,
.health-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.compact-row:first-child,
.health-list div:first-child {
  border-top: 0;
}

.good {
  color: var(--good);
}

.warn {
  color: var(--warn);
}

.danger {
  color: var(--danger);
}

.toolbar {
  margin-bottom: 14px;
}

.mail-toolbar {
  justify-content: flex-start;
}

.domain-toolbar {
  justify-content: flex-start;
}

.logs-toolbar {
  justify-content: flex-start;
}

.toolbar-button-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.segmented {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.segmented button {
  border: 0;
  border-radius: 6px;
  padding: 7px 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.segmented button.is-active {
  background: var(--accent);
  color: white;
}

.summary-pill {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.table-wrap {
  overflow-x: auto;
  overflow-y: visible;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

tbody tr:hover {
  background: #f8fafc;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 700;
  font-size: 12px;
}

.badge.good {
  background: #dcfce7;
}

.badge.warn {
  background: #fef3c7;
}

.row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.icon-button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: #9cc7f5;
  background: #eef6ff;
  color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 115, 230, 0.12);
  outline: 0;
}

.floating-menu {
  position: fixed;
  z-index: 20;
  min-width: 180px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

.floating-menu button {
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 9px 10px;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-weight: 700;
}

.floating-menu button:hover:not(:disabled) {
  background: var(--surface-2);
}

.floating-menu button.danger {
  color: var(--danger);
}

.floating-menu button.danger:hover:not(:disabled) {
  background: #fef2f2;
}

.floating-menu button:disabled {
  color: #a8b2c1;
  cursor: not-allowed;
}

.dns-settings h3 {
  margin: 0 0 12px;
}

.dns-settings p {
  margin-bottom: 12px;
  color: var(--muted);
}

.dns-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 8px;
}

.dns-section-header h4 {
  margin: 0;
}

.dns-settings dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  margin: 0;
}

.dns-settings dt {
  color: var(--muted);
}

.dns-settings dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

.dns-table-wrap {
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.dns-table {
  min-width: 100%;
  border: 0;
}

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

.dns-table code {
  white-space: normal;
  word-break: break-word;
}

.settings-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.security-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
  gap: 14px;
}

.security-tool {
  min-height: 150px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
  box-shadow: var(--shadow);
}

.security-tool:hover,
.security-tool:focus-visible {
  border-color: #9cc7f5;
  box-shadow: 0 0 0 3px rgba(20, 115, 230, 0.12), var(--shadow);
  outline: 0;
}

.security-tool-icon {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: #e6f4ea;
  color: var(--good);
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 900;
}

.security-tool-icon.firewall {
  background: #eef6ff;
  color: var(--accent);
}

.security-tool-icon.tailscale {
  background: #f3e8ff;
  color: #7e22ce;
}

.security-tool-icon.php {
  background: #eef2ff;
  color: #4f46e5;
}

.security-tool-icon.server-health {
  background: #f1f5f9;
  color: #64748b;
}

.security-tool-icon.server-health.is-good {
  background: #e6f4ea;
  color: var(--good);
}

.security-tool-icon.server-health.is-warn {
  background: #fff7e6;
  color: #b45309;
}

.security-tool-icon.server-health.is-bad {
  background: #fee2e2;
  color: #b91c1c;
}

.security-tool small {
  color: var(--muted);
}

.server-health-popup {
  display: grid;
  gap: 18px;
  width: min(420px, 100%);
}

.server-health-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.server-health-summary strong,
.server-health-summary span {
  display: block;
}

.server-health-summary div span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.website-backup-manager {
  display: grid;
  gap: 16px;
  width: min(680px, 100%);
}

.website-backup-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.website-backup-toolbar p {
  margin: 0;
  color: var(--muted);
}

.website-backup-list {
  display: grid;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.website-backup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border-top: 1px solid var(--border);
}

.website-backup-row:first-child {
  border-top: 0;
}

.website-backup-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.website-backup-actions {
  display: flex;
  gap: 8px;
}

.website-import-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 22px;
}

.website-import-guide {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
}

.website-import-guide p {
  margin: 8px 0;
  color: var(--muted);
}

.website-import-guide ul {
  margin: 10px 0;
  padding-left: 20px;
}

.website-import-guide li {
  margin: 7px 0;
}

.security-popup {
  display: grid;
  gap: 12px;
}

.security-popup-toolbar {
  display: flex;
  justify-content: flex-end;
}

.php-settings-toolbar {
  align-items: end;
  gap: 12px;
}

.php-settings-toolbar label {
  display: grid;
  gap: 6px;
  min-width: 180px;
  font-weight: 700;
}

.php-settings-toolbar select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
}

.php-settings-path {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  overflow-wrap: anywhere;
}

.php-settings-grid {
  margin: 0;
}

.php-settings-section {
  display: grid;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.php-settings-section h3 {
  margin: 0;
}

.php-pool-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.php-pool-toolbar label {
  display: grid;
  gap: 6px;
  min-width: 240px;
  font-weight: 700;
}

.php-pool-toolbar select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
}

.php-pool-toolbar code {
  overflow-wrap: anywhere;
  color: var(--muted);
}

.php-ini-actions,
.php-pool-actions {
  display: flex;
  justify-content: flex-start;
}

.website-access-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}

.website-access-status span:first-child {
  font-weight: 700;
}

.website-access-remove {
  display: flex;
  justify-content: flex-start;
  padding-top: 4px;
}

.security-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}

.security-action-row strong,
.security-action-row span {
  display: block;
}

.security-action-row span {
  color: var(--muted);
  font-size: 12px;
}

.security-action-row.is-good {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.fail2ban-panel {
  display: grid;
  gap: 14px;
}

.tailscale-panel,
.nftables-panel,
.nft-table-list {
  display: grid;
  gap: 16px;
}

.tailscale-client-instructions {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}

.tailscale-client-instructions p {
  margin: 0 0 10px;
}

.tailscale-client-instructions pre {
  margin: 0 0 12px;
  padding: 10px 12px;
  overflow-x: auto;
  border-radius: 6px;
  background: #111827;
  color: #f8fafc;
}

.tailscale-client-instructions details {
  padding: 9px 0;
  border-top: 1px solid var(--border);
}

.tailscale-client-instructions summary {
  cursor: pointer;
  font-weight: 700;
}

.tailscale-client-instructions ol {
  margin: 10px 0 0;
  padding-left: 22px;
}

.tailscale-client-instructions li + li {
  margin-top: 6px;
}

.fail2ban-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 160px));
  gap: 12px;
}

.nft-summary {
  grid-template-columns: repeat(4, minmax(0, 140px));
}

.fail2ban-summary div {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}

.fail2ban-summary span,
.muted-text {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.fail2ban-summary strong {
  display: block;
  margin-top: 2px;
  font-size: 22px;
}

.ip-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ip-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
}

.ip-chip:hover:not(:disabled) {
  border-color: #fca5a5;
  background: #fef2f2;
  color: var(--danger);
}

.ip-chip span {
  margin-left: 5px;
  color: var(--danger);
}

.security-empty {
  padding: 14px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--muted);
}

.nft-table {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.nft-table header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nft-table h3,
.nft-table h4 {
  margin: 0;
}

.nft-table header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.ruleset-details {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.ruleset-details summary {
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 800;
}

.ruleset-details pre {
  max-height: 360px;
  margin: 0;
  padding: 12px;
  overflow: auto;
  border-top: 1px solid var(--border);
  background: #101923;
  color: #eef6ff;
  font-size: 12px;
}

.log-stream {
  padding: 16px;
  display: grid;
  gap: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.log-row {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.log-row summary {
  display: grid;
  grid-template-columns: 160px 90px 1fr;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.log-row summary::-webkit-details-marker {
  display: none;
}

.log-row summary:hover span:last-child {
  color: var(--accent);
}

.log-detail {
  margin: 12px 0 2px 250px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.log-detail dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  margin: 0 0 10px;
}

.log-detail dt {
  color: var(--muted);
}

.log-detail dd {
  margin: 0;
  font-weight: 700;
}

.log-detail pre {
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

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

dialog {
  width: min(560px, calc(100vw - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

dialog.wide-dialog {
  width: min(1100px, calc(100vw - 28px));
}

dialog.login-dialog {
  width: min(420px, calc(100vw - 28px));
}

.login-dialog::backdrop {
  background: #101923;
}

.login-card {
  padding: 28px;
}

.login-brand {
  text-align: center;
}

.login-brand img {
  width: min(190px, 80%);
  padding: 14px;
  border-radius: 8px;
  background: #101923;
}

.login-brand h2 {
  margin: 20px 0 6px;
  font-size: 24px;
}

.login-brand p {
  margin: 0;
  color: var(--muted);
}

.login-error {
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
  color: #b91c1c;
  font-weight: 700;
}

.login-submit {
  width: 100%;
  justify-content: center;
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.42);
}

.dialog-card {
  padding: 18px;
}

.dialog-card header,
.dialog-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.field-grid {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.field-grid label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.field-grid label[hidden] {
  display: none;
}

.field-grid input,
.field-grid select,
.field-grid textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
}

.field-grid textarea {
  min-height: 132px;
  resize: vertical;
}

.wblist-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  gap: 18px;
  margin: 18px 0;
}

.wblist-layout .field-grid {
  margin: 0;
}

.wblist-panel {
  min-height: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
}

.wblist-panel-header,
.wblist-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wblist-entry-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.wblist-entry {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  padding: 8px 10px;
}

.wblist-entry code {
  overflow-wrap: anywhere;
}

.spam-rule-entry small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.email-builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(170px, 0.8fr);
  align-items: center;
  gap: 8px;
}

.email-builder span {
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 980px) {
  .php-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wblist-layout {
    grid-template-columns: 1fr;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 14px;
  }

  .nav-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .sidebar-health {
    display: none;
  }

  .sidebar-logout {
    display: none;
  }

  .main {
    padding: 18px;
  }

  .topbar,
  .content-grid,
  .settings-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 560px) {
  .metric-grid,
  .nav-list {
    grid-template-columns: 1fr;
  }

  .toolbar,
  .topbar-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .website-backup-toolbar,
  .website-backup-row {
    align-items: stretch;
    flex-direction: column;
  }

  .website-backup-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .website-import-layout {
    grid-template-columns: 1fr;
  }

  .toolbar-button-group {
    align-items: stretch;
    flex-direction: column;
  }

  .php-settings-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .php-pool-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .php-pool-toolbar label {
    min-width: 0;
  }

  .php-settings-grid {
    grid-template-columns: 1fr;
  }

  .button,
  .segmented,
  .summary-pill {
    width: 100%;
  }

  .security-tool-grid,
  .nft-summary {
    grid-template-columns: 1fr;
  }

  .email-builder {
    grid-template-columns: minmax(0, 1fr) auto minmax(130px, 1fr);
  }
}
