:root {
  --sk-page-bg: #f5f7fb;
  --sk-surface: #ffffff;
  --sk-surface-soft: #f8fafc;
  --sk-text: #172033;
  --sk-muted: #667085;
  --sk-border: rgba(30, 41, 59, 0.1);
  --sk-border-soft: rgba(30, 41, 59, 0.07);
  --sk-shadow: 0 18px 45px rgba(18, 28, 45, 0.08);
  --sk-shadow-hover: 0 24px 55px rgba(18, 28, 45, 0.12);
  --sk-accent: #2f6fed;
  --sk-appbar-height: 48px;
  --sk-ip-pool-page-offset: 80px;
}

body {
  background: var(--sk-page-bg);
  color: var(--sk-text);
  overflow-x: hidden;
}

.app-shell.mud-layout {
  background: linear-gradient(
    180deg,
    rgba(248, 251, 255, 0.98) 0%,
    rgba(245, 247, 251, 0.98) 44%,
    rgba(239, 246, 248, 0.98) 100%
  );
}

.app-shell-bar.mud-appbar {
  background: rgba(255, 255, 255, 0.86) !important;
  border-bottom: 1px solid rgba(30, 41, 59, 0.08);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06) !important;
  color: var(--sk-text) !important;
  backdrop-filter: blur(16px);
}

.app-shell-bar .mud-typography-h6 {
  font-weight: 750;
}

.app-shell-drawer.mud-drawer {
  background: rgba(255, 255, 255, 0.75);
  border-right: 1px solid rgba(30, 41, 59, 0.08);
  box-shadow: 8px 0 30px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(16px);
}

.app-shell-drawer .mud-nav-link {
  margin: 4px 8px;
  border-radius: 14px;
  color: #475569;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.app-shell-drawer .mud-nav-link:hover {
  background: rgba(30, 41, 59, 0.055);
  transform: translateX(1px);
}

.app-shell-drawer .mud-nav-link.active:not(.mud-nav-link-disabled) {
  background: rgba(47, 111, 237, 0.1);
  color: #1e4ed8;
}

.app-main-content {
  min-height: calc(100dvh - var(--sk-appbar-height));
}

.app-content {
  width: 100%;
  min-height: calc(100dvh - var(--sk-appbar-height));
}

.app-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 4px 0 32px;
}

.app-page-narrow {
  width: 100%;
  max-width: none;
  margin: 0;
}

.app-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 20px 24px;
  border: 1px solid var(--sk-border-soft);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--sk-shadow);
}

.app-page-kicker {
  color: var(--sk-accent);
  font-size: 0.78rem;
  font-weight: 720;
}

.app-page-title {
  margin: 4px 0 0 !important;
  color: var(--sk-text);
  font-weight: 780 !important;
  letter-spacing: 0;
}

.app-page-subtitle {
  margin-top: 7px;
  color: var(--sk-muted);
  font-size: 0.93rem;
}

.app-page-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.app-panel.mud-paper,
.app-toolbar.mud-paper,
.app-form-panel.mud-paper,
.app-panel-soft.mud-paper {
  border: 1px solid var(--sk-border-soft);
  border-radius: 22px !important;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--sk-shadow);
  color: var(--sk-text);
}

.app-panel.mud-paper,
.app-form-panel.mud-paper {
  padding: 22px;
}

.app-toolbar.mud-paper {
  padding: 16px;
  margin-bottom: 16px;
}

.app-panel-soft.mud-paper {
  padding: 16px;
  background: rgba(248, 250, 252, 0.86);
  box-shadow: none;
}

.app-form-panel {
  width: 100%;
  max-width: none;
}

.app-form-section + .app-form-section {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--sk-border-soft);
}

.app-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--sk-text);
  font-size: 1rem;
  font-weight: 760;
}

.app-section-note {
  color: var(--sk-muted);
  font-size: 0.86rem;
}

.app-form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.app-inline-actions {
  flex-wrap: wrap;
}

.advanced-adornment-field .mud-input-control {
  margin-top: 0;
}

.advanced-toolbar-grid {
  width: 100%;
}

.advanced-toolbar-field {
  width: 100%;
}

.advanced-adornment-field .mud-input-adornment-start {
  min-width: 28px;
  margin-inline-end: 2px;
}

.advanced-adornment-field .mud-input-adornment-start .mud-svg-icon {
  font-size: 1.18rem;
  color: #475569;
}

.advanced-adornment-field .mud-input-clear-button,
.advanced-adornment-field .mud-input-adornment-end .mud-icon-button {
  min-width: 24px;
  width: 24px;
  height: 24px;
  padding: 2px;
}

.advanced-adornment-field .mud-input-adornment-end {
  margin-inline-start: 0;
}

.advanced-adornment-field .mud-input-adornment-end .mud-svg-icon {
  font-size: 0.92rem;
}

.advanced-toolbar-switch,
.advanced-toolbar-caption {
  display: flex;
  align-items: center;
  min-height: 40px;
}

.advanced-toolbar-action.mud-button-root {
  min-height: 40px;
}

.ip-pool-toolbar.mud-paper {
  padding: 14px 16px;
  margin-bottom: 10px;
}

.ip-pool-page {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - var(--sk-ip-pool-page-offset));
  min-height: 0;
  overflow: hidden;
  padding-bottom: 16px;
}

.ip-pool-filters {
  width: 100%;
}

.ip-pool-filters > .mud-grid-item {
  min-width: 0;
}

.ip-pool-filter-online-only {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 8px;
}

.ip-pool-filter-online-only .mud-switch {
  margin: 0;
}

.ip-pool-filter-online-only label,
.ip-pool-filter-online-only .mud-typography,
.ip-pool-filter-online-only .mud-switch-label {
  white-space: nowrap;
  font-weight: 650;
}

.ip-pool-filter-submit .mud-button-root {
  min-height: 40px;
}

.ip-pool-filter-submit .mud-button-label {
  white-space: nowrap;
}

@media (min-width: 600px) {
  .ip-pool-filters {
    flex-wrap: wrap;
  }

  .ip-pool-filter-search {
    flex: 1 1 330px !important;
    min-width: 300px;
    max-width: none !important;
  }

  .ip-pool-filter-status {
    flex: 0 0 124px !important;
    max-width: 124px !important;
  }

  .ip-pool-filter-source {
    flex: 0 0 160px !important;
    max-width: 160px !important;
  }

  .ip-pool-filter-country {
    flex: 0 0 190px !important;
    max-width: 190px !important;
  }

  .ip-pool-filter-date {
    flex: 0 0 252px !important;
    max-width: 252px !important;
  }

  .ip-pool-filter-online-only {
    flex: 0 0 128px !important;
    max-width: 128px !important;
  }

  .ip-pool-filter-online-count {
    flex: 0 0 150px !important;
    max-width: 150px !important;
  }

  .ip-pool-filter-submit {
    flex: 0 0 112px !important;
    max-width: 112px !important;
  }
}

.app-inline-actions .mud-button-label,
.app-page-actions .mud-button-label {
  white-space: normal;
}

.app-table.mud-table {
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--sk-border-soft);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--sk-shadow);
}

.app-table .mud-table-container {
  max-width: 100%;
  overflow-x: auto;
  border-radius: 22px 22px 0 0;
}

.app-table .mud-table-head .mud-table-cell {
  border-bottom: 1px solid var(--sk-border-soft);
  background: rgba(248, 250, 252, 0.92);
  color: #475569;
  font-size: 0.82rem;
  font-weight: 760;
}

.app-table .mud-table-body .mud-table-row {
  transition: background-color 160ms ease;
}

.app-table .mud-table-body .mud-table-row:hover {
  background: rgba(47, 111, 237, 0.045) !important;
}

.app-table .mud-table-pagination {
  flex: 0 0 52px;
  min-height: 52px;
  overflow: visible;
  border-top: 1px solid var(--sk-border-soft);
  background: rgba(248, 250, 252, 0.68);
}

.app-table .mud-table-pagination-toolbar {
  min-height: 52px;
}

.app-table .mud-table-cell {
  border-color: rgba(30, 41, 59, 0.055);
}

.ip-pool-table .mud-table-cell {
  vertical-align: middle;
}

.ip-pool-table .mud-table-container {
  flex: 1 1 auto;
  min-height: 0;
  height: auto !important;
  overflow: auto;
}

.ip-pool-table.mud-table {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.ip-pool-table .mud-table-body .mud-table-row,
.ip-pool-table .mud-table-body .mud-table-cell {
  height: 72px;
}

.ip-pool-entry-cell,
.ip-pool-mode-cell {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.ip-pool-entry-main {
  max-width: 240px;
  overflow: hidden;
  color: #0f172a;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ip-pool-entry-meta,
.ip-pool-mode-hint {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ip-pool-mode-hint {
  max-width: 136px;
}

.ip-pool-chip-row,
.ip-pool-state-cell {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.ip-pool-protocol-cell,
.ip-pool-state-cell {
  flex-wrap: nowrap;
  white-space: nowrap;
}

.ip-pool-protocol-cell .mud-chip,
.ip-pool-state-cell .mud-chip {
  flex: 0 0 auto;
}

.ip-pool-mode-cell .mud-chip {
  width: fit-content;
}

.ip-pool-mode-meta-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  white-space: nowrap;
}

.ip-pool-mode-tooltip-target {
  display: inline-flex;
}

.ip-pool-mode-switch {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 2px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.96);
  white-space: nowrap;
}

.ip-pool-mode-toggle {
  min-width: 62px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #475569;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.ip-pool-mode-toggle:hover:not(:disabled) {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

.ip-pool-mode-toggle.is-active {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.22);
}

.ip-pool-mode-toggle.ip-pool-mode-domain.is-active {
  background: #f59e0b;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.22);
}

.ip-pool-mode-toggle.needs-domain:not(.is-active) {
  color: #b45309;
}

.ip-pool-mode-toggle.needs-domain:hover:not(:disabled) {
  background: rgba(245, 158, 11, 0.14);
  color: #92400e;
}

.ip-pool-mode-toggle:disabled {
  cursor: default;
  opacity: 1;
}

.ip-pool-date-cell {
  color: #334155;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.ip-pool-selection-toolbar.mud-paper {
  padding: 10px 14px;
  margin-bottom: 14px;
  background: rgba(248, 250, 252, 0.86);
  box-shadow: none;
}

.ip-pool-selection-toolbar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ip-pool-selection-toolbar .mud-button-root {
  min-height: 36px;
}

.ip-pool-selection-toolbar .mud-button-label {
  white-space: nowrap;
}

.ip-pool-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}

.ip-pool-row-actions .mud-icon-button {
  width: 30px;
  height: 30px;
  padding: 4px;
}

.ip-pool-settings-dialog {
  gap: 16px;
}

.ip-pool-settings-target {
  margin-bottom: -2px;
}

.ip-pool-settings-section {
  padding: 14px 16px;
  border: 1px solid var(--sk-border-soft);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.72);
}

.ip-pool-settings-section .app-section-title {
  margin-bottom: 8px;
}

.ip-pool-selection-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--sk-accent);
  cursor: pointer;
}

.ip-pool-row-selected {
  background: rgba(47, 111, 237, 0.07) !important;
}

.ip-pool-selection-action-disabled {
  pointer-events: none;
  opacity: 0.5;
}

.app-shell .mud-button-root,
.empty-layout-root .mud-button-root {
  border-radius: 12px;
  text-transform: none;
  font-weight: 680;
  letter-spacing: 0;
}

.app-shell .mud-icon-button {
  border-radius: 12px;
}

.app-shell .mud-input-outlined-border,
.empty-layout-root .mud-input-outlined-border {
  border-color: rgba(30, 41, 59, 0.14);
  border-radius: 14px;
}

.app-shell .mud-input-control,
.empty-layout-root .mud-input-control {
  margin-top: 0;
}

.app-shell .mud-chip,
.empty-layout-root .mud-chip {
  border-radius: 999px;
  font-weight: 650;
}

.app-shell .mud-alert,
.empty-layout-root .mud-alert {
  border-radius: 16px;
  border: 1px solid var(--sk-border-soft);
}

.app-form-panel .mud-input-helper-text,
.app-form-panel .mud-alert-message,
.app-form-panel .me-auto {
  min-width: 0;
  overflow-wrap: anywhere;
}

.mud-dialog {
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18) !important;
}

.mud-dialog .mud-dialog-content {
  padding: 22px 24px 12px;
}

.mud-dialog .mud-dialog-actions {
  padding: 14px 24px 22px;
}

.app-dialog-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.app-state-card.mud-card,
.login-card.mud-card {
  border: 1px solid var(--sk-border-soft);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--sk-shadow);
}

.login-card {
  width: 380px;
  max-width: 90vw;
  margin: 0 auto;
}

.login-card .mud-card-content {
  padding: 28px;
}

.login-title {
  font-weight: 780 !important;
  letter-spacing: 0;
}

.dashboard-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 4px 0 32px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 24px 28px;
  overflow: hidden;
  border: 1px solid var(--sk-border-soft);
  border-radius: 28px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.96),
    rgba(250, 253, 255, 0.9)
  );
  box-shadow: var(--sk-shadow);
}

.dashboard-kicker {
  color: var(--sk-accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.dashboard-title {
  margin: 4px 0 0 !important;
  color: var(--sk-text);
  font-weight: 780 !important;
  letter-spacing: 0;
}

.dashboard-subtitle {
  margin-top: 7px;
  color: var(--sk-muted);
  font-size: 0.95rem;
}

.dashboard-refresh {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid rgba(30, 41, 59, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #334155;
  font-size: 0.86rem;
  font-weight: 650;
  white-space: nowrap;
}

.dashboard-refresh-muted {
  color: var(--sk-muted);
  font-weight: 500;
}

.dashboard-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.dashboard-live-dot.is-online {
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.13);
}

.dashboard-grid {
  margin-top: 18px !important;
}

.dashboard-card.mud-paper {
  position: relative;
  height: 100%;
  overflow: hidden;
  padding: 20px 22px;
  border: 1px solid var(--sk-border-soft);
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--sk-shadow);
  color: var(--sk-text);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.dashboard-card.mud-paper:hover {
  border-color: rgba(47, 111, 237, 0.16);
  box-shadow: var(--sk-shadow-hover);
  transform: translateY(-2px);
}

.dashboard-card > * {
  position: relative;
  z-index: 1;
}

.metric-card {
  --metric-accent: #2f6fed;
  min-height: 156px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 88px;
  background: linear-gradient(90deg, var(--metric-accent), transparent 72%);
  opacity: 0.12;
}

.metric-card-blue {
  --metric-accent: #2f6fed;
}

.metric-card-green {
  --metric-accent: #10a37f;
}

.metric-card-cyan {
  --metric-accent: #0891b2;
}

.metric-card-amber {
  --metric-accent: #d97706;
}

.metric-card-head,
.panel-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 700;
}

.metric-label {
  min-width: 0;
}

.metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--metric-accent) 11%, white);
  color: var(--metric-accent);
}

.metric-value,
.panel-value,
.traffic-block strong,
.split-metrics strong {
  color: var(--sk-text);
  font-variant-numeric: tabular-nums;
}

.metric-value {
  margin-top: 18px;
  font-size: 2.25rem;
  font-weight: 780;
  line-height: 1.05;
}

.metric-value-sm {
  font-size: 1.6rem;
}

.metric-caption,
.panel-caption {
  margin-top: 9px;
  color: var(--sk-muted);
  font-size: 0.82rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.status-pill.is-online {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.status-pill.is-offline {
  background: rgba(239, 68, 68, 0.12);
  color: #b42318;
}

.panel-card,
.traffic-card {
  min-height: 148px;
}

.panel-card-head .mud-icon-root {
  color: #64748b;
}

.panel-value {
  margin-top: 19px;
  font-size: 1.45rem;
  font-weight: 760;
  line-height: 1.18;
}

.resource-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.resource-gauge {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 6px auto 0;
}

.resource-gauge .mud-chart {
  width: 100%;
  height: 100%;
}

.resource-gauge-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 740;
  font-variant-numeric: tabular-nums;
  color: var(--sk-text);
  pointer-events: none;
}

.resource-card .metric-caption {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.split-metrics,
.traffic-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.split-metrics > div,
.traffic-block {
  position: relative;
  min-width: 0;
  padding-left: 16px;
}

.split-metrics > div::before,
.traffic-block::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: rgba(47, 111, 237, 0.28);
}

.split-metrics span,
.traffic-block span {
  display: block;
  color: var(--sk-muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.split-metrics strong,
.traffic-block strong {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  font-size: 1.35rem;
  font-weight: 760;
  line-height: 1.16;
}

.ip-address-text {
  margin-top: 20px;
  color: var(--sk-text);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.bulk-links-table.mud-table {
  border: 1px solid var(--sk-border-soft);
  border-radius: 16px;
  overflow: hidden;
}

.bulk-links-table .mud-table-cell {
  vertical-align: top;
}

.bulk-link-alias {
  font-weight: 700;
}

.bulk-protocol-filter {
  flex-wrap: wrap;
}

.bulk-link-preview {
  max-width: 520px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: ltr;
  font-family: "Cascadia Mono", Consolas, monospace;
  color: #334155;
}

.traffic-range-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.traffic-trend-card {
  min-height: 420px;
}

.traffic-day-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 18px;
}

.traffic-day-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 86px;
  gap: 12px;
  align-items: center;
}

.traffic-day-date,
.traffic-day-total {
  color: #475569;
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.traffic-day-total {
  text-align: right;
}

.traffic-day-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.traffic-day-bar {
  height: 8px;
  min-width: 3px;
  border-radius: 999px;
}

.traffic-day-bar-up {
  width: var(--traffic-up);
  background: #10a37f;
}

.traffic-day-bar-down {
  width: var(--traffic-down);
  background: #2f6fed;
}

.traffic-usage-table .mud-table-cell {
  vertical-align: top;
}

.traffic-endpoint {
  font-weight: 750;
  overflow-wrap: anywhere;
}

.country-picker {
  position: relative;
  width: 100%;
}

.country-picker-clear {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(0, 0, 0, 0.54);
  cursor: pointer;
  transform: translateY(-50%);
}

.country-picker-clear:hover,
.country-picker-clear:focus-visible {
  background: rgba(15, 23, 42, 0.08);
  outline: none;
}

.country-picker-clear .mud-icon-root {
  font-size: 1rem;
}

.country-picker-menu.mud-paper {
  position: absolute;
  z-index: 1400;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px !important;
}

.country-picker-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.country-picker-option:hover,
.country-picker-option:focus-visible {
  background: rgba(25, 118, 210, 0.08);
  outline: none;
}

.country-picker-option.is-selected {
  color: var(--mud-palette-primary);
  background: rgba(25, 118, 210, 0.08);
}

.country-picker-option-note,
.country-picker-empty {
  color: var(--mud-palette-text-secondary);
  font-size: 0.75rem;
  white-space: nowrap;
}

.country-picker-empty {
  padding: 10px;
}

@media (max-width: 760px) {
  .app-page-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
    border-radius: 20px;
  }

  .app-page-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .app-page-actions .mud-button-root {
    flex: 1 1 auto;
    min-width: 0;
  }

  .app-toolbar.mud-paper,
  .app-panel.mud-paper,
  .app-form-panel.mud-paper {
    padding: 16px;
    border-radius: 20px !important;
  }

  .app-inline-actions,
  .app-form-actions {
    align-items: stretch !important;
    flex-direction: column !important;
    width: 100%;
  }

  .app-inline-actions .mud-button-root,
  .app-form-actions .mud-button-root {
    width: 100%;
  }

  .app-form-panel .mud-checkbox,
  .app-form-panel .mud-typography-body1 {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .dashboard-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
    border-radius: 22px;
  }

  .dashboard-refresh {
    width: 100%;
    justify-content: flex-start;
  }

  .dashboard-card.mud-paper {
    padding: 18px;
    border-radius: 20px !important;
  }

  .split-metrics,
  .traffic-pair {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bulk-link-preview {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .traffic-range-actions {
    justify-content: flex-start;
  }

  .traffic-day-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .traffic-day-total {
    grid-column: 2;
    text-align: left;
  }

  .app-shell-drawer.mud-drawer {
    width: 72px !important;
  }

  .app-shell .mud-main-content {
    margin-left: 72px !important;
  }

  .app-shell-drawer .mud-nav-link {
    justify-content: center;
    margin: 4px 6px;
    padding-inline: 10px;
  }

  .app-shell-drawer .mud-nav-link-text {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-shell-drawer .mud-nav-link,
  .dashboard-card.mud-paper {
    transition: none;
  }

  .app-shell-drawer .mud-nav-link:hover,
  .dashboard-card.mud-paper:hover {
    transform: none;
  }
}
