.sphire-six-tile-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.sphire-home-extra-tile {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 270px;
  padding: 22px;
  border: 1px solid var(--border, #6b3c18);
  border-radius: 18px;
  color: var(--text, #fff6ed);
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(255, 138, 31, 0.11),
      transparent 47%
    ),
    linear-gradient(
      180deg,
      rgba(40, 28, 19, 0.98),
      rgba(25, 18, 13, 0.98)
    );
  box-shadow: var(--shadow, 0 18px 50px rgba(0, 0, 0, 0.3));
  text-decoration: none;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.sphire-home-extra-tile:hover {
  border-color: var(--orange, #ff941f);
  transform: translateY(-2px);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.42);
}

.sphire-home-extra-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid var(--border, #6b3c18);
  border-radius: 14px;
  background: rgba(255, 148, 31, 0.09);
  font-size: 24px;
}

.sphire-home-extra-copy {
  display: grid;
  align-content: end;
  gap: 8px;
  margin-top: 24px;
}

.sphire-home-extra-eyebrow {
  color: var(--orange-2, #ffb15c);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sphire-home-extra-title {
  font-size: clamp(27px, 3.5vw, 39px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.sphire-home-extra-description {
  color: var(--muted, #cdbeb1);
  font-size: 16px;
  line-height: 1.45;
}

.sphire-home-extra-action {
  align-self: end;
  margin-top: 14px;
  color: var(--orange-2, #ffb15c);
  font-size: 16px;
  font-weight: 950;
}

.sphire-loop-editor {
  width: min(100%, 920px);
  margin: 10px auto;
  padding: 16px;
  border: 1px solid var(--border, #5b3518);
  border-radius: 17px;
  color: var(--text, #fff6ed);
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(255, 148, 31, 0.12),
      transparent 44%
    ),
    linear-gradient(
      180deg,
      rgba(31, 23, 17, 0.985),
      rgba(18, 14, 11, 0.985)
    );
  box-shadow: var(--shadow, 0 18px 50px rgba(0, 0, 0, 0.35));
}

.sphire-loop-editor-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.sphire-loop-editor-heading h2 {
  margin: 3px 0 5px;
  font-size: clamp(24px, 4vw, 35px);
  line-height: 1;
}

.sphire-loop-editor-heading p {
  max-width: 670px;
  margin: 0;
  color: var(--muted, #cdbeb1);
  line-height: 1.5;
}

.sphire-loop-eyebrow {
  color: var(--orange-2, #ffb15c);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.15em;
}

.sphire-loop-enable {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  padding: 9px 12px;
  border: 1px solid var(--orange, #ff941f);
  border-radius: 11px;
  color: var(--orange-2, #ffb15c);
  background: rgba(255, 148, 31, 0.08);
  font-size: 10px;
  font-weight: 950;
}

.sphire-loop-readouts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.sphire-loop-readouts > div {
  padding: 11px;
  border: 1px solid var(--border, #5b3518);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.sphire-loop-readouts span,
.sphire-loop-fine-group > span {
  display: block;
  color: var(--muted, #cdbeb1);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sphire-loop-readouts strong {
  display: block;
  margin-top: 5px;
  color: var(--orange-2, #ffb15c);
  font-size: 18px;
}

.sphire-loop-main-actions {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  margin-top: 10px;
}

.sphire-loop-main-actions button,
.sphire-loop-fine-group button,
.sphire-loop-footer button {
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--border, #5b3518);
  border-radius: 10px;
  color: var(--text, #fff6ed);
  background: #2a2019;
  font: inherit;
  font-size: 9px;
  font-weight: 950;
  cursor: pointer;
}

.sphire-loop-main-actions button:first-child,
.sphire-loop-main-actions button:nth-child(2) {
  border-color: var(--orange, #ff941f);
  color: #160c04;
  background: linear-gradient(
    135deg,
    var(--orange, #ff941f),
    var(--orange-2, #ffb15c)
  );
}

.sphire-loop-fine-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.sphire-loop-fine-group {
  padding: 10px;
  border: 1px solid var(--border, #5b3518);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.02);
}

.sphire-loop-fine-group > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 7px;
}

.sphire-loop-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border, #5b3518);
}

.sphire-loop-footer span {
  overflow: hidden;
  color: var(--muted, #cdbeb1);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sphire-loop-status {
  min-height: 18px;
  margin-top: 8px;
  color: #60dc92;
  font-size: 10px;
  font-weight: 800;
}

@media (max-width: 760px) {
  .sphire-six-tile-grid,
  .sphire-loop-readouts,
  .sphire-loop-fine-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .sphire-loop-editor-heading {
    grid-template-columns: 1fr;
  }

  .sphire-loop-enable {
    justify-content: center;
  }
}

@media (max-width: 540px) {
  .sphire-six-tile-grid,
  .sphire-loop-readouts,
  .sphire-loop-fine-grid,
  .sphire-loop-main-actions {
    grid-template-columns: 1fr !important;
  }

  .sphire-home-extra-tile {
    min-height: 240px;
  }

  .sphire-loop-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .sphire-loop-footer span {
    white-space: normal;
  }
}
