:root {
  --fx-panel: rgba(14, 20, 26, .94);
  --fx-panel-2: rgba(24, 32, 40, .96);
  --fx-border: rgba(134, 231, 236, .24);
  --fx-text: #edf7fa;
  --fx-muted: #9fb4bd;
  --fx-accent: #65d4c9;
  --fx-warn: #f0b84f;
  --fx-danger: #e56b6f;
}

.fx-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: grid;
  gap: 10px;
  justify-items: end;
}

.fx-main-button,
.fx-icon-button,
.fx-action {
  border: 1px solid var(--fx-border);
  background: var(--fx-panel-2);
  color: var(--fx-text);
  font: inherit;
  cursor: pointer;
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}

.fx-main-button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 42px rgba(0, 0, 0, .36);
}

.fx-main-button:hover,
.fx-icon-button:hover,
.fx-action:hover {
  border-color: rgba(101, 212, 201, .82);
  background: rgba(34, 47, 58, .98);
  transform: translateY(-1px);
}

.fx-panel {
  width: min(360px, calc(100vw - 28px));
  max-height: min(680px, calc(100vh - 86px));
  overflow: auto;
  border: 1px solid var(--fx-border);
  border-radius: 8px;
  background: var(--fx-panel);
  color: var(--fx-text);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .46);
  backdrop-filter: blur(14px);
}

.fx-panel[hidden] {
  display: none;
}

.fx-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid rgba(134, 231, 236, .14);
}

.fx-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.fx-subtitle {
  margin-top: 3px;
  color: var(--fx-muted);
  font-size: 12px;
}

.fx-row {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(134, 231, 236, .10);
}

.fx-row:last-child {
  border-bottom: 0;
}

.fx-row label {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  color: var(--fx-muted);
  font-size: 12px;
}

.fx-value {
  color: var(--fx-accent);
  font-weight: 800;
}

.fx-row input[type="range"] {
  width: 100%;
  margin-top: 9px;
  accent-color: var(--fx-accent);
}

.fx-button-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 14px;
}

.fx-action {
  min-height: 38px;
  border-radius: 7px;
  padding: 0 11px;
}

.fx-action.primary {
  border-color: rgba(101, 212, 201, .78);
  background: rgba(77, 182, 172, .18);
}

.fx-action.danger {
  border-color: rgba(229, 107, 111, .52);
}

.fx-sync-state {
  flex: 0 0 auto;
  border: 1px solid rgba(159, 180, 189, .22);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--fx-muted);
  font-size: 11px;
  font-weight: 800;
}

.fx-sync-state.active {
  border-color: rgba(101, 212, 201, .62);
  color: var(--fx-accent);
  background: rgba(77, 182, 172, .10);
}

.fx-sync-toggle {
  width: calc(100% - 28px);
  min-height: 38px;
  margin: 14px 14px 2px;
  border: 1px solid rgba(101, 212, 201, .38);
  border-radius: 7px;
  background: rgba(77, 182, 172, .10);
  color: var(--fx-text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.fx-sync-toggle.active {
  border-color: rgba(101, 212, 201, .82);
  background: rgba(77, 182, 172, .20);
}
