.ss-page {
  --ss-bg: #171122;
  --ss-panel: #241a33;
  --ss-line: #665077;
  --ss-muted: #cdbddd;
  --ss-accent: #c99bff;
  color: #f7efff;
  font: 15px/1.65 'Segoe UI', system-ui, sans-serif;
  max-width: 1540px;
  margin: 0 auto;
  overflow-wrap: anywhere
}

.ss-page * {
  box-sizing: border-box
}

.ss-page [hidden] {
  display: none !important
}

.ss-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  gap: 30px;
  padding: 30px 34px;
  border: 1px solid #86669f;
  border-radius: 22px;
  background: radial-gradient(ellipse at 95% 0, #8053ad55, transparent 65%), linear-gradient(120deg, #2c1d3c, #21192e);
  margin-bottom: 24px
}

.ss-eyebrow {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1.8px;
  color: #dfc0ff
}

.ss-page h1 {
  font-size: clamp(26px, 3vw, 37px);
  line-height: 1.2;
  letter-spacing: -.6px;
  margin: 10px 0 14px;
  color: #fff
}

.ss-hero p {
  max-width: 86ch;
  color: #dfcfe9;
  margin: 0
}

.ss-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px
}

.ss-badges span {
  font-size: 12px;
  border: 1px solid #73588b;
  border-radius: 20px;
  padding: 4px 11px;
  background: #24162e
}

.ss-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 130px;
  border: 1px solid #916bb5;
  border-radius: 18px;
  background: linear-gradient(135deg, #9f71cc22, #4c2d6b44);
  transform: rotate(-3deg)
}

.ss-art b {
  font: 40px/1.3 ui-monospace, monospace;
  letter-spacing: 8px;
  color: #e3c8ff
}

.ss-art small {
  font-size: 10px;
  letter-spacing: 2px;
  color: #f4d486
}

.ss-layout {
  display: grid;
  grid-template-columns: minmax(340px, .9fr) minmax(0, 1.35fr);
  gap: 24px;
  align-items: start
}

.ss-panel {
  border: 1px solid var(--ss-line);
  background: linear-gradient(145deg, #241a32, #1c1529);
  border-radius: 18px;
  padding: 24px;
  min-width: 0
}

.ss-panel h2 {
  font-size: 21px;
  line-height: 1.35;
  color: #fff;
  margin: 0 0 12px
}

.ss-step {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: #a576d5;
  color: #170d24;
  border-radius: 8px;
  font-size: 13px;
  width: 26px;
  height: 26px;
  margin-right: 9px
}

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

.ss-page .ss-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  font-weight: 650;
  font-size: 13px;
  min-width: 0
}

.ss-wide {
  grid-column: 1/-1
}

.ss-page :is(input, select, textarea, button) {
  font: inherit;
  min-width: 0;
  max-width: 100%
}

.ss-page .ss-field :is(input, select, textarea) {
  width: 100%;
  border: 1px solid #7c608d;
  background: #130e1c;
  color: #f7f0ff;
  border-radius: 9px;
  padding: 11px 12px;
  min-height: 44px;
  font-size: 15px
}

.ss-page textarea {
  min-height: 145px;
  resize: vertical;
  font: 13px/1.7 ui-monospace, Consolas, monospace !important;
  tab-size: 2
}

.ss-page input[type=color] {
  padding: 4px;
  height: 46px
}

.ss-field small {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ss-muted)
}

.ss-filebox {
  margin: 17px 0;
  border: 1px dashed #9b76b9;
  background: #342044;
  border-radius: 12px;
  padding: 17px
}

.ss-filebox>label {
  display: block;
  font-weight: 650;
  margin-bottom: 9px
}

.ss-filebox input {
  display: block;
  width: 100%;
  font-size: 13px
}

.ss-filebox input::file-selector-button {
  font: inherit;
  background: #4d3267;
  color: #fff;
  border: 1px solid #a57dc5;
  border-radius: 7px;
  padding: 9px;
  margin-right: 10px;
  cursor: pointer
}

.ss-filebox small {
  display: block;
  font-size: 12px;
  color: var(--ss-muted);
  margin-top: 10px
}

.ss-filebox ul {
  padding-left: 16px;
  font-size: 12px;
  max-height: 130px;
  overflow: auto;
  margin-bottom: 0
}

.ss-drag {
  border-color: #f8d77e;
  background: #4b3058
}

.ss-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 4px
}

.ss-page button {
  min-height: 43px;
  border: 1px solid #9470b3;
  color: #f6eaff;
  background: #392649;
  padding: 10px 16px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650
}

.ss-page button:hover:not(:disabled) {
  background: #513362;
  border-color: #d7b0f5
}

.ss-page button.ss-primary {
  background: linear-gradient(120deg, #be8cf2, #9b67cf);
  color: #1b1027;
  border-color: #d7b1ff;
  font-weight: 750
}

.ss-page button:disabled {
  opacity: .5;
  cursor: wait
}

.ss-page :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #f6d780;
  outline-offset: 3px
}

.ss-status {
  display: block;
  padding: 13px 16px;
  border: 1px solid #735485;
  border-radius: 10px;
  background: #201529;
  color: #dac6ec;
  margin: 20px 0 24px;
  min-height: 52px;
  white-space: pre-line
}

.ss-status[data-tone=error] {
  border-color: #d596a5;
  background: #3a202e;
  color: #ffdfdf
}

.ss-status[data-tone=success] {
  border-color: #618f7f;
  color: #c9f0df
}

.ss-result-summary {
  margin-bottom: 19px
}

.ss-result-summary p {
  color: #dbcde7;
  margin: 8px 0 0
}

.ss-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0
}

.ss-metrics>div {
  border: 1px solid #5e456f;
  border-radius: 10px;
  background: #1a1125;
  padding: 13px
}

.ss-metrics strong {
  display: block;
  color: #e4c6ff;
  font-size: 22px;
  line-height: 1.3
}

.ss-metrics span {
  font-size: 12px;
  color: var(--ss-muted)
}

.ss-preview {
  border: 1px solid #695279;
  border-radius: 12px;
  overflow: auto;
  padding: 15px;
  margin: 16px 0;
  background: #120d1c;
  max-height: 560px
}

.ss-preview svg {
  display: block;
  max-width: 100%;
  height: auto;
  margin: auto
}

.ss-preview img {
  max-width: 100%;
  height: auto
}

.ss-preview .ss-paper {
  color: #22172d;
  background: #fff;
  border-radius: 6px;
  padding: 25px;
  overflow: hidden
}

.ss-preview .ss-paper p {
  color: inherit
}

.ss-text-result {
  white-space: pre-wrap;
  unicode-bidi: plaintext;
  font: 14px/1.85 ui-monospace, Consolas, monospace;
  background: #130e1e;
  border: 1px solid #614a74;
  border-radius: 10px;
  padding: 17px;
  max-height: 480px;
  overflow: auto
}

.ss-table-wrap {
  overflow: auto;
  max-height: 560px;
  border: 1px solid #5f486e;
  border-radius: 11px;
  margin-top: 16px
}

.ss-page table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px
}

.ss-page th {
  background: #382246;
  position: sticky;
  top: 0;
  z-index: 1;
  color: #f7e9ff
}

.ss-page :is(th, td) {
  padding: 11px 13px;
  border-bottom: 1px solid #493653;
  vertical-align: top;
  min-width: 94px;
  max-width: 350px;
  overflow-wrap: anywhere
}

.ss-page tr:nth-child(even) {
  background: #251b30
}

.ss-empty {
  text-align: center;
  padding: 48px 15px;
  color: var(--ss-muted)
}

.ss-empty>span {
  font-size: 48px;
  color: #b38cdb
}

.ss-empty h2 {
  color: #e9d8f5;
  margin: 10px 0
}

.ss-empty p {
  margin: 8px 0
}

.ss-callout {
  font-size: 13px;
  line-height: 1.7;
  color: #eddbb5;
  padding: 13px 16px;
  border-left: 3px solid #c7a466;
  background: #362c30;
  border-radius: 0 8px 8px 0;
  margin: 16px 0
}

.ss-scope {
  font-size: 13px;
  color: var(--ss-muted);
  margin: 17px 0 0
}

.ss-guide {
  padding: 22px;
  border: 1px solid #614b73;
  border-radius: 15px;
  margin: 24px 0;
  background: #1f172c
}

.ss-guide h2 {
  font-size: 21px;
  margin: 0 0 14px;
  color: #fff
}

.ss-guide li {
  margin: 9px 0;
  color: #d5c5e3
}

.ss-bars>div {
  display: grid;
  grid-template-columns: minmax(60px, 140px) minmax(30px, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 7px 0;
  font-size: 12px
}

.ss-bars meter {
  width: 100%;
  height: 16px;
  accent-color: #bc87ee
}

.ss-help {
  font-size: 12px;
  color: var(--ss-muted)
}

.ss-highlight {
  color: #fee7a5;
  background: #4b3353;
  padding: 2px 4px;
  border-radius: 3px
}

.ss-swatch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 9px
}

.ss-swatch i {
  display: inline-block;
  width: 26px;
  height: 26px;
  border: 1px solid #bbadd0;
  border-radius: 5px
}

.ss-preview a {
  color: #d4aaff
}

.ss-preview .ss-paper a {
  color: #65309d
}

.ss-preview blockquote {
  padding: 10px 15px;
  border-left: 3px solid #c49ce8;
  margin: 12px 0
}

.ss-preview .ss-label {
  display: inline-block;
  border: 1px solid #9677b0;
  padding: 12px 18px;
  border-radius: 10px;
  margin: 7px
}

.ss-preview .ss-grayscale {
  filter: grayscale(1)
}

.ss-page .ss-preview :is(h3, h4) {
  color: inherit
}

.ss-page .ss-preview mark {
  background: #f3d57e;
  color: #24102c
}

.ss-page .ss-preview code {
  overflow-wrap: anywhere
}

.ss-bars meter::-webkit-meter-bar {
  background: #35263f;
  border: 0;
  border-radius: 8px
}

.ss-bars meter::-webkit-meter-optimum-value {
  background: linear-gradient(90deg, #8a54b5, #d5afff);
  border-radius: 8px
}

.ss-bars meter::-moz-meter-bar {
  background: #bc8ce7
}

.ss-filebox>button {
  margin-top: 12px;
  min-height: 34px;
  padding: 6px 11px;
  font-size: 12px
}

@media(max-width:1150px) {
  .ss-layout {
    grid-template-columns: minmax(320px, .9fr) minmax(0, 1.15fr)
  }

  .ss-hero {
    grid-template-columns: 1fr 160px
  }

  .ss-art b {
    font-size: 30px
  }
}

@media(max-width:900px) {
  .ss-layout {
    grid-template-columns: minmax(0, 1fr)
  }

  .ss-hero {
    padding: 24px;
    grid-template-columns: 1fr
  }

  .ss-art {
    display: none
  }

  .ss-panel {
    padding: 21px
  }

  .ss-page .ss-field :is(input, select, textarea) {
    font-size: 16px
  }

  .ss-page textarea {
    font-size: 14px !important
  }
}

@media(max-width:420px) {
  .ss-fields {
    grid-template-columns: minmax(0, 1fr)
  }

  .ss-hero,
  .ss-panel {
    padding: 18px
  }

  .ss-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .ss-actions button {
    flex: 1;
    min-width: 115px
  }

  .ss-page h1 {
    font-size: 26px
  }
}
