/* HUB GLOBAL ATMOSPHERE V8 START */

:root {
  --hub-atmosphere-shade-color: #020705;
  --hub-atmosphere-sun-color: #f4dda0;
  --hub-atmosphere-moon-color: #d8e8e2;
  --hub-atmosphere-star-color: #d7ebe0;
  --hub-atmosphere-rain-color: rgba(183, 211, 201, 0.67);
  --hub-atmosphere-lightning-color: rgba(226, 242, 234, 0.82);
}

body.hub-atmosphere-active {
  position: relative;
  isolation: isolate;
}

body.hub-atmosphere-active >
:not(.hub-atmosphere-layer):not(script):not(style):not(link) {
  position: relative;
  z-index: 2;
}

.hub-atmosphere-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  contain: strict;
}

.hub-atmosphere-shade,
.hub-atmosphere-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hub-atmosphere-shade {
  opacity: 0;
  transition: opacity 24s linear;
  will-change: opacity;
}

.hub-atmosphere-canvas {
  display: block;
  background: transparent;
}

.hub-atmosphere-shade {
  z-index: 0;
}

.hub-atmosphere-static {
  z-index: 1;
}

.hub-atmosphere-dynamic {
  z-index: 2;
}

.atmosphere-settings-card {
  box-sizing: border-box;
  width: min(1120px, 100%);
  margin: clamp(24px, 4vw, 46px) auto 0;
  padding: clamp(18px, 2.5vw, 30px);
  border: 1px solid rgba(190, 229, 199, 0.17);
  border-radius: 22px;
  background: rgba(8, 25, 14, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(246, 255, 248, 0.055),
    0 18px 60px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px) saturate(1.04);
  -webkit-backdrop-filter: blur(18px) saturate(1.04);
}

.atmosphere-settings-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.atmosphere-settings-header h2 {
  margin: 0 0 6px;
  font-size: clamp(1.18rem, 2vw, 1.5rem);
}

.atmosphere-settings-header p {
  max-width: 760px;
  margin: 0;
  color: var(--nature-muted, rgba(232, 242, 235, 0.72));
  line-height: 1.55;
}

.atmosphere-settings-master {
  flex: 0 0 auto;
}

.atmosphere-settings-form {
  display: grid;
  gap: 14px;
}

.atmosphere-settings-form details {
  border-top: 1px solid rgba(190, 229, 199, 0.12);
  padding-top: 14px;
}

.atmosphere-settings-form summary {
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  color: var(--nature-text, #edf5ef);
}

.atmosphere-settings-form summary::-webkit-details-marker {
  display: none;
}

.atmosphere-settings-form summary::after {
  content: "▾";
  display: inline-block;
  margin-left: 8px;
  opacity: 0.58;
  transition: transform 140ms ease;
}

.atmosphere-settings-form details:not([open]) summary::after {
  transform: rotate(-90deg);
}

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

.atmosphere-settings-grid.is-compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.atmosphere-field,
.atmosphere-toggle {
  box-sizing: border-box;
  min-width: 0;
  border: 1px solid rgba(190, 229, 199, 0.12);
  border-radius: 15px;
  background: rgba(8, 24, 14, 0.3);
}

.atmosphere-field {
  display: grid;
  gap: 7px;
  padding: 11px 12px;
}

.atmosphere-field > span:first-child {
  color: var(--nature-muted, rgba(232, 242, 235, 0.74));
  font-size: 0.82rem;
  line-height: 1.28;
}

.atmosphere-field input,
.atmosphere-field select,
.atmosphere-range-row input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border: 1px solid rgba(190, 229, 199, 0.16);
  border-radius: 11px;
  padding: 7px 9px;
  color: var(--nature-text, #edf5ef);
  background: rgba(3, 16, 8, 0.52);
  font: inherit;
}

.atmosphere-field input:disabled,
.atmosphere-field select:disabled {
  opacity: 0.42;
}

.atmosphere-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--nature-text, #edf5ef);
}

.atmosphere-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--nature-v7-accent, #a7dbb2);
}

.atmosphere-ranges {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(190, 229, 199, 0.1);
  border-radius: 15px;
  background: rgba(5, 19, 10, 0.24);
}

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

.atmosphere-ranges-header strong {
  font-size: 0.88rem;
}

.atmosphere-range-list {
  display: grid;
  gap: 7px;
}

.atmosphere-range-row {
  display: grid;
  grid-template-columns: minmax(84px, 1fr) auto minmax(84px, 1fr) auto auto;
  align-items: center;
  gap: 7px;
}

.atmosphere-range-separator,
.atmosphere-range-suffix {
  color: var(--nature-muted, rgba(232, 242, 235, 0.62));
  font-size: 0.78rem;
}

.atmosphere-range-add,
.atmosphere-range-remove,
.atmosphere-settings-button {
  border: 1px solid rgba(190, 229, 199, 0.16);
  color: var(--nature-text, #edf5ef);
  background: rgba(14, 42, 23, 0.48);
  font: inherit;
  cursor: pointer;
}

.atmosphere-range-add {
  min-height: 32px;
  border-radius: 10px;
  padding: 5px 9px;
  font-size: 0.78rem;
}

.atmosphere-range-remove {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  padding: 0;
  font-size: 1.12rem;
}

.atmosphere-settings-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(190, 229, 199, 0.12);
}

.atmosphere-settings-button {
  min-height: 42px;
  border-radius: 13px;
  padding: 8px 14px;
}

.atmosphere-settings-button.is-primary {
  background: rgba(50, 105, 65, 0.62);
}

.atmosphere-settings-button:hover,
.atmosphere-range-add:hover,
.atmosphere-range-remove:hover {
  border-color: rgba(190, 229, 199, 0.3);
  background: rgba(24, 63, 35, 0.66);
}

.atmosphere-settings-button:disabled,
.atmosphere-range-add:disabled,
.atmosphere-range-remove:disabled {
  opacity: 0.45;
  cursor: default;
}

.atmosphere-settings-status {
  min-height: 1.4em;
  margin-right: auto;
  color: var(--nature-muted, rgba(232, 242, 235, 0.7));
  font-size: 0.84rem;
}

.atmosphere-settings-status[data-state="success"] {
  color: #bfe7c8;
}

.atmosphere-settings-status[data-state="error"] {
  color: #ffc3bd;
}

.atmosphere-settings-note {
  margin: 10px 0 0;
  color: var(--nature-muted, rgba(232, 242, 235, 0.64));
  font-size: 0.8rem;
  line-height: 1.5;
}

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

@media (max-width: 620px) {
  .atmosphere-settings-card {
    padding: 16px 12px;
    border-radius: 18px;
  }

  .atmosphere-settings-header {
    display: grid;
  }

  .atmosphere-settings-grid,
  .atmosphere-settings-grid.is-compact {
    grid-template-columns: 1fr;
  }

  .atmosphere-range-row {
    grid-template-columns: minmax(72px, 1fr) auto minmax(72px, 1fr) auto;
  }

  .atmosphere-range-suffix {
    display: none;
  }

  .atmosphere-settings-actions {
    justify-content: stretch;
  }

  .atmosphere-settings-button {
    flex: 1 1 auto;
  }
}

/* HUB GLOBAL ATMOSPHERE V8 END */

/* HUB ATMOSPHERE DPR MASKED RAIN V8.4.4 START */

body.hub-atmosphere-rain-active {
  position: relative;
}

body.hub-atmosphere-rain-active > .hub-atmosphere-layer {
  position: fixed !important;
  inset: 0 !important;
  box-sizing: border-box !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 0 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: hidden !important;
  background: transparent !important;
  pointer-events: none !important;
  user-select: none !important;
  isolation: auto !important;
  mix-blend-mode: normal !important;
}

:where(
  body.hub-atmosphere-rain-active >
  :not(.hub-atmosphere-layer):not(script):not(style):not(link)
) {
  position: relative;
  z-index: 1;
}

body.hub-atmosphere-rain-active >
.hub-atmosphere-layer >
.hub-atmosphere-shade,
body.hub-atmosphere-rain-active >
.hub-atmosphere-layer >
.hub-atmosphere-static {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

body.hub-atmosphere-rain-active >
.hub-atmosphere-layer >
.hub-atmosphere-dynamic {
  position: absolute !important;
  inset: 0 !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 0.34 !important;
  background: transparent !important;
  pointer-events: none !important;
  filter: none !important;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* HUB ATMOSPHERE DPR MASKED RAIN V8.4.4 END */

/* HUB ATMOSPHERE VISIBLE PRECISE RAIN V8.4.5 START */

body.hub-atmosphere-rain-active > .hub-atmosphere-layer {
  z-index: 0 !important;
  pointer-events: none !important;
}

:where(
  body.hub-atmosphere-rain-active >
  :not(.hub-atmosphere-layer):not(script):not(style):not(link)
) {
  position: relative;
  z-index: 1;
}

body.hub-atmosphere-rain-active >
.hub-atmosphere-layer >
.hub-atmosphere-dynamic {
  opacity: 0.43 !important;
  filter: none !important;
  pointer-events: none !important;
}

body.hub-atmosphere-rain-active[data-atmosphere-weather="storm"] >
.hub-atmosphere-layer >
.hub-atmosphere-dynamic {
  opacity: 0.54 !important;
}

/* HUB ATMOSPHERE VISIBLE PRECISE RAIN V8.4.5 END */
