:root {
  color-scheme: dark;
  --bg: #f2efe8;
  --panel: rgba(16, 24, 32, 0.88);
  --panel-soft: rgba(255, 248, 235, 0.84);
  --text: #f9f5ec;
  --ink: #182028;
  --muted: rgba(249, 245, 236, 0.72);
  --accent: #ff7a00;
  --accent-soft: #ffb86f;
  --line: rgba(255, 255, 255, 0.12);
  --danger: #ff6b6b;
  --success: #2fbf71;
  --shadow: 0 24px 70px rgba(17, 23, 31, 0.22);
  --font-sans: "Avenir Next", "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", monospace;
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 154, 69, 0.72) rgba(8, 13, 18, 0.58);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: rgba(8, 13, 18, 0.58);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  min-height: 42px;
  border: 2px solid rgba(12, 18, 24, 0.9);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 184, 111, 0.95), rgba(255, 122, 0, 0.78))
    padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, rgba(255, 206, 150, 1), rgba(255, 144, 40, 0.95))
    padding-box;
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: #10161b;
}

.auth-body,
.dashboard-body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 122, 0, 0.28), transparent 30%),
    radial-gradient(circle at bottom right, rgba(10, 124, 255, 0.22), transparent 28%),
    linear-gradient(145deg, #151c22 0%, #202a32 44%, #10161b 100%);
}

.auth-shell,
.dashboard-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.auth-panel,
.panel {
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.auth-panel {
  width: min(460px, 100%);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 32px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-soft);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.auth-panel h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1;
}

.auth-copy,
.panel-subtitle {
  color: var(--muted);
}

.auth-form {
  margin-top: 26px;
  display: grid;
  gap: 18px;
}

.auth-form label {
  display: grid;
  gap: 8px;
}

.auth-form span {
  font-size: 14px;
  color: var(--muted);
}

.auth-form input,
.blacklist-form input {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 15px;
  font-family: var(--font-mono);
  color: inherit;
  background: rgba(255, 255, 255, 0.05);
}

.auth-form button,
.panel-button,
.ghost-button,
.token-chip button {
  border: 0;
  cursor: pointer;
  transition:
    transform 140ms ease,
    opacity 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease,
    filter 140ms ease;
}

.auth-form button,
.panel-button {
  border-radius: 16px;
  padding: 14px 18px;
  background: linear-gradient(120deg, var(--accent) 0%, #ff9b45 100%);
  color: #24170b;
  font-weight: 700;
}

.auth-form button:hover,
.panel-button:hover,
.ghost-button:hover,
.token-chip button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.auth-form button:active,
.panel-button:active,
.ghost-button:active,
.token-chip button:active {
  transform: translateY(0) scale(0.985);
}

.auth-form button.is-loading,
.panel-button.is-loading,
.ghost-button.is-loading,
.token-chip button.is-loading {
  opacity: 0.72;
  cursor: wait;
  filter: saturate(0.82);
}

.auth-error,
.feedback {
  margin-top: 16px;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
}

.auth-error,
.feedback.error {
  background: rgba(255, 107, 107, 0.12);
  color: #ffd0d0;
}

.feedback.success {
  background: rgba(47, 191, 113, 0.12);
  color: #cdf2dc;
}

.dashboard-shell {
  width: min(1440px, calc(100% - 24px));
  padding: 18px 0 20px;
}

.page-glow {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.35;
  pointer-events: none;
}

.page-glow-a {
  top: -80px;
  left: -60px;
  background: #ff7a00;
}

.page-glow-b {
  right: -90px;
  bottom: -40px;
  background: #2f8dff;
}

.toast-container {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 30;
  display: grid;
  gap: 10px;
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  min-width: 220px;
  max-width: min(88vw, 460px);
  border-radius: 999px;
  padding: 12px 18px;
  color: #1e150d;
  background: linear-gradient(120deg, rgba(255, 184, 111, 0.98), rgba(255, 226, 167, 0.98));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
  opacity: 0;
  text-align: center;
  transform: translateY(-12px) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast.error {
  color: #fff1f1;
  background: linear-gradient(120deg, rgba(188, 61, 61, 0.98), rgba(255, 107, 107, 0.98));
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.modal-shell[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 15, 0.62);
  backdrop-filter: blur(10px);
}

.modal-card {
  position: relative;
  width: min(780px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  margin: 12px auto;
  overflow: auto;
  border-radius: 24px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(18, 26, 33, 0.96), rgba(18, 26, 33, 0.9));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.settings-form label {
  display: grid;
  gap: 8px;
}

.settings-form label span {
  color: var(--muted);
  font-size: 13px;
}

.settings-form input[type="number"],
.settings-form select {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: var(--font-mono);
  color: inherit;
  background: rgba(255, 255, 255, 0.05);
}

.settings-form input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}

.settings-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.settings-actions .feedback {
  margin: 0;
  flex: 1 1 260px;
}

.logs-modal-card {
  width: min(960px, calc(100vw - 24px));
}

.logs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.logs-output {
  margin: 0;
  min-height: 320px;
  max-height: min(60vh, 620px);
  overflow: auto;
  padding: 16px;
  border-radius: 18px;
  background: rgba(9, 14, 19, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e9f0f7;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-mono);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 12px 18px;
  border-radius: 22px;
  background: linear-gradient(140deg, rgba(20, 28, 35, 0.78), rgba(33, 44, 54, 0.68));
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.topbar-copy {
  min-width: 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar-title-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.topbar h1 {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.05;
}

.topbar-meta {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.topbar-status {
  display: grid;
  justify-items: end;
  gap: 6px;
  min-width: 0;
}

.topbar-status .topbar-meta {
  text-align: right;
  font-size: 12px;
}

.ghost-button {
  border-radius: 16px;
  padding: 10px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.date-filter {
  display: inline-grid;
  gap: 4px;
  min-width: 150px;
  color: var(--muted);
  font-size: 12px;
}

.date-filter input {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 8px 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  font-family: var(--font-mono);
}

.panel-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.panel {
  grid-column: span 4;
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(18, 26, 33, 0.92), rgba(18, 26, 33, 0.82));
  border: 1px solid var(--line);
  min-height: 0;
}

.panel-wide {
  grid-column: span 8;
}

.panel-full {
  grid-column: span 12;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

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

.panel-title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
}

.panel-subtitle {
  margin: 8px 0 0;
  font-size: 14px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.stat-card {
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: 20px;
}

.chart-card {
  margin-top: 14px;
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 248, 235, 0.08);
}

.segmented-toggle {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.toggle-pill {
  border: 0;
  cursor: pointer;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
  transition:
    transform 140ms ease,
    background 140ms ease,
    color 140ms ease,
    box-shadow 140ms ease;
}

.toggle-pill:hover {
  transform: translateY(-1px);
}

.toggle-pill.is-active {
  color: #24170b;
  background: linear-gradient(120deg, var(--accent) 0%, #ff9b45 100%);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.16);
}

.pie-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.pie-card {
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 248, 235, 0.08);
}

.pie-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.pie-chart {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  justify-self: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.pie-chart::before {
  content: "";
  position: absolute;
  inset: 42px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(16, 24, 32, 0.96), rgba(20, 29, 36, 0.94));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.pie-chart span,
.pie-chart small {
  position: relative;
  z-index: 1;
}

.pie-chart span {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  transform: translate(-50%, -62%);
  white-space: nowrap;
}

.pie-chart small {
  position: absolute;
  top: 50%;
  left: 50%;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  transform: translate(-50%, 58%);
  white-space: nowrap;
}

.pie-chart.empty {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: var(--muted);
  text-align: center;
  padding: 20px;
  font-size: 13px;
}

.pie-chart.empty::before {
  display: none;
}

.pie-legend {
  display: grid;
  gap: 10px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 6px;
  align-self: stretch;
}

.pie-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pie-swatch {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.pie-legend-copy {
  min-width: 0;
}

.pie-legend-copy strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pie-legend-copy span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  color: var(--muted);
}

.chart-bars {
  display: grid;
  gap: 10px;
}

.chart-row {
  display: grid;
  gap: 8px;
}

.chart-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.chart-track {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.chart-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent) 0%, #ffe2a7 100%);
}

.summary-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-radius: 18px;
  padding: 14px 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.blacklist-form {
  display: flex;
  gap: 10px;
}

.filter-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  margin-bottom: 14px;
}

.filter-input,
.filter-select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  color: inherit;
  background: rgba(255, 255, 255, 0.05);
}

.filter-select {
  font-family: var(--font-sans);
}

.blacklist-form input {
  flex: 1;
}

.token-list,
.summary-list {
  display: grid;
  gap: 10px;
}

.token-list {
  margin-top: 14px;
}

.chain-list {
  display: grid;
  gap: 10px;
}

.token-chip,
.summary-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
}

.token-chip span,
.summary-item strong {
  font-family: var(--font-mono);
}

.token-chip-meta {
  min-width: 0;
}

.token-chip-meta strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
}

.token-chip-meta span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.token-chip button {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 107, 107, 0.16);
  color: #ffe3e3;
}

.summary-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.chain-row {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, opacity 140ms ease;
}

.chain-row:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 184, 111, 0.24);
}

.chain-row.is-updating {
  opacity: 0.72;
}

.chain-row.locked {
  opacity: 0.72;
  cursor: not-allowed;
}

.chain-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chain-indicator {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.chain-row input:checked + .chain-indicator {
  background: linear-gradient(120deg, var(--accent) 0%, #ffb86f 100%);
  border-color: rgba(255, 184, 111, 0.9);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.16);
}

.chain-row input:checked + .chain-indicator::after {
  content: "";
  display: block;
  width: 5px;
  height: 9px;
  margin: 2px 0 0 6px;
  border-right: 2px solid #2b1b09;
  border-bottom: 2px solid #2b1b09;
  transform: rotate(45deg);
}

.chain-meta strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-scroll {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.table-shell {
  overflow: auto;
}

.table-scroll {
  max-height: 320px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

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

.data-table th,
.data-table td {
  padding: 13px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.data-table th {
  color: var(--accent-soft);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  background: rgba(18, 26, 33, 0.96);
  backdrop-filter: blur(10px);
  z-index: 1;
}

.data-table td {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
}

.table-action {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  color: #24170b;
  background: linear-gradient(120deg, var(--accent) 0%, #ffb86f 100%);
  cursor: pointer;
  transition:
    transform 140ms ease,
    opacity 140ms ease,
    box-shadow 140ms ease,
    filter 140ms ease;
}

.table-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.table-action:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  filter: saturate(0.8);
}

.danger-action {
  color: #fff4f0;
  background: linear-gradient(120deg, #d85f5f 0%, #ff8a65 100%);
}

.persistent-fallback-scroll {
  max-height: 360px;
}

.persistent-fallback-table {
  min-width: 1180px;
}

.persistent-fallback-table th:last-child,
.persistent-fallback-table td:last-child {
  position: sticky;
  right: 0;
  z-index: 2;
  background: rgba(18, 26, 33, 0.98);
  box-shadow: -12px 0 18px rgba(8, 13, 18, 0.32);
}

.persistent-fallback-table th:last-child {
  z-index: 3;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  color: #1e150d;
  background: rgba(255, 184, 111, 0.9);
}

.status-badge-idle {
  color: #fff5e7;
  background: rgba(255, 255, 255, 0.18);
}

.status-badge-running {
  color: #1e150d;
  background: linear-gradient(120deg, #ffd166 0%, #ffb347 100%);
}

.status-badge-success {
  color: #0d1f16;
  background: linear-gradient(120deg, #79e7a5 0%, #43c77a 100%);
}

.status-badge-error {
  color: #fff1f1;
  background: linear-gradient(120deg, #d85f5f 0%, #ff7d7d 100%);
}

.cell-note {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.table-empty,
.empty-state {
  color: var(--muted);
  text-align: center;
}

.empty-state {
  padding: 22px 0;
}

.empty-state.compact {
  padding: 8px 0;
}

@media (max-width: 980px) {
  .panel,
  .panel-wide,
  .panel-full {
    grid-column: span 12;
  }

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

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

  .pie-grid {
    grid-template-columns: 1fr;
  }

  .pie-layout {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }

  .pie-chart {
    width: 150px;
    height: 150px;
  }

  .pie-chart::before {
    inset: 34px;
  }

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

  .topbar-actions,
  .topbar-status {
    width: 100%;
    justify-content: space-between;
  }

  .topbar-status {
    justify-items: start;
  }

  .topbar-status .topbar-meta {
    text-align: left;
  }

  .panel-actions {
    width: 100%;
  }

  .list-scroll {
    max-height: min(42vh, 360px);
  }

  .table-scroll {
    max-height: min(48vh, 420px);
  }
}

@media (max-width: 640px) {
  .dashboard-shell,
  .auth-shell {
    width: min(100% - 20px, 1200px);
  }

  .auth-panel,
  .topbar,
  .panel,
  .modal-card {
    border-radius: 22px;
    padding: 18px;
  }

  .logs-toolbar {
    align-items: stretch;
  }

  .logs-output {
    min-height: 260px;
    max-height: min(56vh, 460px);
    font-size: 12px;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .blacklist-form {
    flex-direction: column;
  }

  .filter-toolbar {
    grid-template-columns: 1fr;
  }

  .pie-layout {
    grid-template-columns: 1fr;
    gap: 14px;
    justify-items: center;
  }

  .pie-chart {
    width: 140px;
    height: 140px;
  }

  .pie-chart::before {
    inset: 30px;
  }

  .pie-legend {
    width: 100%;
    max-height: min(34vh, 240px);
    padding-right: 2px;
  }

  .pie-legend-item {
    width: 100%;
  }

  .pie-legend-copy strong,
  .pie-legend-copy span {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}
