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

.inspectorPanel.is-spectrum-only-inspector {
  position: relative;
}

.inspectorPanel.is-spectrum-only-inspector .inspectorTabs {
  grid-template-columns: 1fr;
}

.inspectorPanel.is-spectrum-only-inspector .inspectorTab:not([data-inspector-tab="spectrum"]),
.inspectorPanel.is-spectrum-only-inspector .inspectorPane:not([data-inspector-panel="spectrum"]) {
  display: none !important;
}

.inspectorPanel.is-spectrum-only-inspector .inspectorTab[data-inspector-tab="spectrum"] {
  display: flex;
  justify-content: center;
  border-color: rgba(34, 211, 238, 0.28);
  background:
    radial-gradient(circle at 50% -20%, rgba(34, 211, 238, 0.28), transparent 52%),
    linear-gradient(135deg, rgba(8, 47, 73, 0.98), rgba(15, 23, 42, 0.96));
  color: #e0faff;
  box-shadow: 0 14px 34px rgba(8, 145, 178, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.inspectorPanel.is-spectrum-only-inspector .spectrumInspectorPane {
  display: grid;
  gap: 12px;
}

.inspectorTab[data-inspector-tab="spectrum"] {
  position: relative;
}

.inspectorTab[data-inspector-tab="spectrum"].is-spectrum-context-active::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22d3ee;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12), 0 0 16px rgba(34, 211, 238, 0.55);
}

.spectrumInspectorPane {
  color: #253047;
}

.spectrumInspectorHero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 8px;
  min-height: 96px;
  padding: 16px;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 15%, rgba(34, 211, 238, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(8, 47, 73, 0.92) 52%, rgba(2, 6, 23, 0.98));
  color: #e0faff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.spectrumInspectorHero::after {
  content: "";
  position: absolute;
  inset: auto -12% -45% 18%;
  height: 80%;
  border-radius: 999px;
  background: radial-gradient(closest-side, rgba(34, 211, 238, 0.24), transparent);
  pointer-events: none;
}

.spectrumInspectorEyebrow,
.spectrumInspectorMeta {
  color: rgba(224, 250, 255, 0.74);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.spectrumInspectorHero strong {
  position: relative;
  z-index: 1;
  font-size: 17px;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.spectrumInspectorHero p {
  position: relative;
  z-index: 1;
  max-width: 25ch;
  margin: 0;
  color: rgba(224, 250, 255, 0.78);
  font-size: 12px;
  line-height: 1.35;
}

.spectrumInspectorModeTabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(100, 116, 139, 0.16);
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.52);
}

.spectrumInspectorModeButton {
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.spectrumInspectorModeButton.is-active {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 254, 255, 0.88)),
    #ffffff;
  color: #0891b2;
  box-shadow: 0 10px 22px rgba(8, 145, 178, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.spectrumInspectorLivePreviewBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 9px 8px 12px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 15px;
  background:
    radial-gradient(circle at 0% 0%, rgba(34, 211, 238, 0.13), transparent 42%),
    linear-gradient(135deg, rgba(236, 254, 255, 0.78), rgba(255, 255, 255, 0.92)),
    #ffffff;
  color: #0f6f86;
  font-size: 10.5px;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.spectrumInspectorResetButton {
  min-height: 30px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(135deg, #22d3ee, #0891b2),
    #22d3ee;
  color: #ecfeff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.03em;
  box-shadow: 0 10px 22px rgba(8, 145, 178, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.spectrumInspectorResetButton:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(8, 145, 178, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.spectrumInspectorResetButton:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.45);
  outline-offset: 3px;
}

.spectrumInspectorModePane {
  display: none;
}

.spectrumInspectorModePane.is-active {
  display: grid;
  gap: 12px;
}

.spectrumInspectorSection {
  display: grid;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(100, 116, 139, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 245, 249, 0.72)),
    #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.spectrumInspectorSectionHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.spectrumInspectorSectionHeader strong {
  color: #172033;
  font-size: 12px;
  font-weight: 950;
}

.spectrumInspectorBadge {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.11);
  color: #0891b2;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spectrumInspectorControl {
  --spectrum-range-track: linear-gradient(
    90deg,
    #22d3ee 0 var(--spectrum-range-fill, 50%),
    rgba(148, 163, 184, 0.22) var(--spectrum-range-fill, 50%) 100%
  );
  display: grid;
  gap: 8px;
  padding: 10px 11px;
  border: 1px solid rgba(34, 211, 238, 0.12);
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgba(236, 254, 255, 0.56), rgba(255, 255, 255, 0.86)),
    #ffffff;
}

.spectrumInspectorControl:hover {
  border-color: rgba(34, 211, 238, 0.28);
  box-shadow: 0 10px 24px rgba(8, 145, 178, 0.08);
}

.spectrumInspectorControlTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #334155;
  font-size: 11.5px;
  font-weight: 950;
}

.spectrumInspectorControlTop output {
  min-width: 42px;
  color: #0891b2;
  font-size: 11px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.spectrumInspectorRange {
  width: 100%;
  height: 26px;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.spectrumInspectorRange:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.36);
  outline-offset: 4px;
  border-radius: 999px;
}

.spectrumInspectorRange::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: var(--spectrum-range-track);
  box-shadow: inset 0 0 0 1px rgba(8, 145, 178, 0.16);
}

.spectrumInspectorRange::-webkit-slider-thumb {
  width: 19px;
  height: 19px;
  margin-top: -5.5px;
  border: 4px solid #ffffff;
  border-radius: 999px;
  appearance: none;
  background: #22d3ee;
  box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.13), 0 10px 20px rgba(8, 145, 178, 0.16);
}

.spectrumInspectorRange::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
  box-shadow: inset 0 0 0 1px rgba(8, 145, 178, 0.16);
}

.spectrumInspectorRange::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: #22d3ee;
}

.spectrumInspectorRange::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 4px solid #ffffff;
  border-radius: 999px;
  background: #22d3ee;
  box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.13), 0 10px 20px rgba(8, 145, 178, 0.16);
}

.spectrumInspectorRange:disabled {
  opacity: 0.88;
  cursor: not-allowed;
}

.spectrumInspectorNotice {
  padding: 11px 12px;
  border: 1px dashed rgba(8, 145, 178, 0.22);
  border-radius: 14px;
  background: rgba(236, 254, 255, 0.52);
  color: #475569;
  font-size: 11.5px;
  font-weight: 760;
  line-height: 1.35;
}



.spectrumInspectorAdvancedGrid {
  display: grid;
  gap: 10px;
}

.spectrumInspectorAdvancedGrid .spectrumInspectorControl {
  background:
    radial-gradient(circle at 0% 0%, rgba(34, 211, 238, 0.13), transparent 36%),
    linear-gradient(135deg, rgba(236, 254, 255, 0.58), rgba(255, 255, 255, 0.9)),
    #ffffff;
}

.spectrumStyleSelectShell {
  display: grid;
  gap: 9px;
  padding: 11px;
  border: 1px solid rgba(34, 211, 238, 0.14);
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgba(236, 254, 255, 0.5), rgba(255, 255, 255, 0.9)),
    #ffffff;
}

.spectrumStyleSelectHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.spectrumStyleSelectHeader > span {
  color: #334155;
  font-size: 11.5px;
  font-weight: 950;
}

.spectrumStyleSelectHeader > em {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.11);
  color: #0891b2;
  font-size: 9px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.spectrumStyleSelectLabel {
  position: relative;
  display: grid;
}

.spectrumStyleSelectLabel::after {
  content: "⌄";
  position: absolute;
  right: 12px;
  top: 50%;
  color: #0891b2;
  font-size: 14px;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
}

.spectrumStyleSelect {
  width: 100%;
  min-height: 40px;
  padding: 0 34px 0 12px;
  border: 1px solid rgba(100, 116, 139, 0.16);
  border-radius: 13px;
  appearance: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 254, 255, 0.76)),
    #ffffff;
  color: #334155;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 950;
}

.spectrumStyleSelect:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.4);
  outline-offset: 3px;
}

.spectrumStyleHelp {
  margin: 0;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 760;
  line-height: 1.35;
}

.editorApp[data-theme="dark"] .spectrumInspectorPane,
.editorApp[data-theme="night"] .spectrumInspectorPane {
  color: #dbeafe;
}

.editorApp[data-theme="dark"] .spectrumInspectorModeTabs,
.editorApp[data-theme="night"] .spectrumInspectorModeTabs,
.editorApp[data-theme="dark"] .spectrumInspectorLivePreviewBar,
.editorApp[data-theme="night"] .spectrumInspectorLivePreviewBar,
.editorApp[data-theme="dark"] .spectrumInspectorSection,
.editorApp[data-theme="night"] .spectrumInspectorSection,
.editorApp[data-theme="dark"] .spectrumInspectorControl,
.editorApp[data-theme="night"] .spectrumInspectorControl,
.editorApp[data-theme="dark"] .spectrumStyleSelectShell,
.editorApp[data-theme="night"] .spectrumStyleSelectShell,
.editorApp[data-theme="dark"] .spectrumStyleSelect,
.editorApp[data-theme="night"] .spectrumStyleSelect {
  border-color: rgba(148, 163, 184, 0.13);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.72)),
    #0f172a;
  box-shadow: none;
}

.editorApp[data-theme="dark"] .spectrumInspectorSectionHeader strong,
.editorApp[data-theme="night"] .spectrumInspectorSectionHeader strong,
.editorApp[data-theme="dark"] .spectrumInspectorControlTop,
.editorApp[data-theme="night"] .spectrumInspectorControlTop,
.editorApp[data-theme="dark"] .spectrumStyleSelectHeader > span,
.editorApp[data-theme="night"] .spectrumStyleSelectHeader > span {
  color: rgba(241, 245, 249, 0.9);
}

.editorApp[data-theme="dark"] .spectrumInspectorNotice,
.editorApp[data-theme="night"] .spectrumInspectorNotice {
  border-color: rgba(34, 211, 238, 0.18);
  background: rgba(8, 47, 73, 0.24);
  color: rgba(203, 213, 225, 0.82);
}

.editorApp[data-theme="dark"] .spectrumStyleHelp,
.editorApp[data-theme="night"] .spectrumStyleHelp {
  color: rgba(203, 213, 225, 0.78);
}

.spectrumInspectorColorGrid {
  display: grid;
  gap: 10px;
}

.spectrumInspectorColorControl {
  --spectrum-color-value: #22d3ee;
  display: grid;
  gap: 9px;
  padding: 10px 11px;
  border: 1px solid rgba(34, 211, 238, 0.12);
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgba(236, 254, 255, 0.58), rgba(255, 255, 255, 0.9)),
    #ffffff;
}

.spectrumInspectorColorControl:hover {
  border-color: rgba(34, 211, 238, 0.28);
  box-shadow: 0 10px 24px rgba(8, 145, 178, 0.08);
}

.spectrumInspectorColorTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #334155;
  font-size: 11.5px;
  font-weight: 950;
}

.spectrumInspectorColorTop output {
  min-width: 70px;
  color: #0891b2;
  font-size: 11px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.spectrumInspectorColorBody {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
}

.spectrumInspectorColorChip {
  width: 34px;
  height: 34px;
  border: 3px solid #ffffff;
  border-radius: 999px;
  background: var(--spectrum-color-value);
  box-shadow: 0 0 0 1px rgba(8, 145, 178, 0.18), 0 12px 22px rgba(8, 145, 178, 0.13);
}

.spectrumInspectorColorInput {
  flex: 1;
  width: 100%;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(100, 116, 139, 0.16);
  border-radius: 13px;
  background: linear-gradient(90deg, var(--spectrum-color-value), rgba(255, 255, 255, 0.78));
  cursor: pointer;
}

.spectrumInspectorColorInput::-webkit-color-swatch-wrapper {
  padding: 0;
}

.spectrumInspectorColorInput::-webkit-color-swatch {
  border: 0;
  border-radius: 12px;
}

.spectrumInspectorColorInput::-moz-color-swatch {
  border: 0;
  border-radius: 12px;
}

.spectrumInspectorPaletteShell {
  display: grid;
  gap: 9px;
  padding: 11px;
  border: 1px solid rgba(34, 211, 238, 0.12);
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgba(236, 254, 255, 0.48), rgba(255, 255, 255, 0.86)),
    #ffffff;
}

.spectrumInspectorPaletteShell > span {
  color: #334155;
  font-size: 11.5px;
  font-weight: 950;
}

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

.spectrumInspectorPaletteButton {
  min-height: 34px;
  border: 1px solid rgba(100, 116, 139, 0.15);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.9)),
    #ffffff;
  color: #475569;
  cursor: pointer;
  font-size: 11px;
  font-weight: 950;
}

.spectrumInspectorPaletteButton.is-active {
  border-color: rgba(34, 211, 238, 0.45);
  background:
    radial-gradient(circle at 18% 50%, rgba(34, 211, 238, 0.34), transparent 36%),
    linear-gradient(135deg, rgba(8, 145, 178, 0.95), rgba(124, 58, 237, 0.9));
  color: #f0fdff;
  box-shadow: 0 12px 24px rgba(8, 145, 178, 0.14);
}

.editorApp[data-theme="dark"] .spectrumInspectorColorControl,
.editorApp[data-theme="night"] .spectrumInspectorColorControl,
.editorApp[data-theme="dark"] .spectrumInspectorPaletteShell,
.editorApp[data-theme="night"] .spectrumInspectorPaletteShell {
  border-color: rgba(148, 163, 184, 0.13);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.72)),
    #0f172a;
  box-shadow: none;
}

.editorApp[data-theme="dark"] .spectrumInspectorColorTop,
.editorApp[data-theme="night"] .spectrumInspectorColorTop,
.editorApp[data-theme="dark"] .spectrumInspectorPaletteShell > span,
.editorApp[data-theme="night"] .spectrumInspectorPaletteShell > span {
  color: rgba(241, 245, 249, 0.9);
}

.editorApp[data-theme="dark"] .spectrumInspectorColorInput,
.editorApp[data-theme="night"] .spectrumInspectorColorInput,
.editorApp[data-theme="dark"] .spectrumInspectorPaletteButton,
.editorApp[data-theme="night"] .spectrumInspectorPaletteButton {
  border-color: rgba(148, 163, 184, 0.16);
}
