:root {
  color-scheme: dark;
  --sp-bg: #07111f;
  --sp-panel: #0d1b2d;
  --sp-panel-2: #101f33;
  --sp-line: #253a54;
  --sp-text: #f7fafc;
  --sp-muted: #aebdd0;
  --sp-cyan: #22d3ee;
  --sp-teal: #2dd4bf;
  --sp-blue: #3b82f6;
  --sp-orange: #f59e0b;
  --sp-danger: #fb7185;
  --sp-shadow: 0 20px 60px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 9% 2%, rgba(34, 211, 238, .14), transparent 26rem),
    radial-gradient(circle at 95% 12%, rgba(59, 130, 246, .13), transparent 28rem),
    var(--sp-bg);
  color: var(--sp-text);
  font: 500 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--sp-cyan); }
[hidden] { display: none !important; }

.sp-public-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sp-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--sp-text); text-decoration: none; min-width: 0; }
.sp-brand img { width: 42px; height: 42px; border-radius: 10px; object-fit: contain; }
.sp-brand span, .sp-topbar div { min-width: 0; }
.sp-brand strong, .sp-brand small, .sp-topbar strong, .sp-topbar span { display: block; }
.sp-brand strong { font-size: 16px; }
.sp-brand small, .sp-topbar span { color: var(--sp-muted); font-size: 12px; font-weight: 700; }
.sp-link { border: 1px solid var(--sp-line); border-radius: 9px; padding: 8px 12px; color: var(--sp-text); text-decoration: none; font-weight: 800; }

.sp-auth {
  width: min(1180px, calc(100% - 36px));
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
  align-items: center;
  gap: 48px;
  margin: 0 auto;
  padding: 56px 0;
}
.sp-auth-copy h1, .sp-panel h1 {
  margin: 0;
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: .98;
  letter-spacing: -.045em;
}
.sp-auth-copy > p:not(.sp-kicker) { max-width: 720px; color: var(--sp-muted); font-size: 18px; }
.sp-kicker { margin: 0 0 8px; color: var(--sp-cyan); font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.sp-product-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.sp-product-preview article {
  border: 1px solid var(--sp-line);
  border-top: 4px solid var(--sp-teal);
  border-radius: 14px;
  background: rgba(13, 27, 45, .8);
  padding: 16px;
}
.sp-product-preview article:last-child { border-top-color: var(--sp-blue); }
.sp-product-preview span, .sp-product-preview small { display: block; color: var(--sp-muted); }
.sp-product-preview strong { display: block; margin: 3px 0; font-size: 34px; }
.sp-rule { display: grid; gap: 3px; margin-top: 12px; border-left: 4px solid var(--sp-orange); padding: 10px 14px; background: rgba(245,158,11,.08); }
.sp-rule span { color: var(--sp-muted); }

.sp-auth-card, .sp-card {
  border: 1px solid var(--sp-line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(17, 33, 54, .98), rgba(9, 23, 40, .98));
  box-shadow: var(--sp-shadow);
  padding: 20px;
}
.sp-auth-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; border: 1px solid var(--sp-line); border-radius: 11px; padding: 4px; }
.sp-auth-tabs button { min-height: 42px; border: 0; border-radius: 8px; background: transparent; color: var(--sp-muted); cursor: pointer; font-weight: 900; }
.sp-auth-tabs button[aria-selected="true"] { background: var(--sp-blue); color: #fff; }
.sp-auth-card form { display: grid; gap: 13px; margin-top: 20px; }
.sp-auth-card h2, .sp-card h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
label { display: grid; gap: 6px; color: #dbe8f5; font-size: 13px; font-weight: 800; }
label small { color: var(--sp-muted); font-weight: 600; }
input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #36506e;
  border-radius: 9px;
  outline: none;
  background: #071426;
  color: var(--sp-text);
  padding: 9px 11px;
}
textarea { min-height: 92px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--sp-cyan); box-shadow: 0 0 0 3px rgba(34,211,238,.12); }
fieldset { border: 1px solid var(--sp-line); border-radius: 10px; padding: 10px 12px; }
legend { color: var(--sp-muted); font-size: 12px; font-weight: 800; }
.sp-check { display: flex; grid-template-columns: none; align-items: flex-start; gap: 9px; }
.sp-check input { width: 18px; min-height: 18px; height: 18px; margin: 2px 0 0; flex: 0 0 auto; }
.sp-check span { color: var(--sp-muted); }
.sp-button, .sp-card-head button, .sp-text-button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--sp-teal), var(--sp-blue));
  color: #041221;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 950;
}
.sp-button:hover, .sp-card-head button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.sp-secondary { border-color: var(--sp-line); background: #132338; color: var(--sp-text); }
.sp-small { min-height: 36px; font-size: 13px; }
.sp-text-button { min-height: 32px; background: transparent; color: var(--sp-cyan); }
.sp-form-status { min-height: 24px; margin: 10px 0 0; color: var(--sp-muted); font-weight: 750; }
.sp-form-status.is-error { color: #fecdd3; }
.sp-form-status.is-good { color: #99f6e4; }
.sp-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.sp-wide { grid-column: 1 / -1; }
.sp-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }

.sp-shell { min-height: 100vh; display: grid; grid-template-columns: 246px minmax(0, 1fr); }
.sp-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  border-right: 1px solid var(--sp-line);
  background: #081523;
  padding: 22px 14px;
}
.sp-sidebar nav { display: grid; gap: 5px; }
.sp-sidebar nav button, .sp-sidebar-signout {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--sp-muted);
  padding: 0 11px;
  text-align: left;
  cursor: pointer;
  font-weight: 800;
}
.sp-sidebar nav button:hover, .sp-sidebar nav button[aria-current="page"] { border-color: #2f4968; background: #10233a; color: #fff; }
.sp-sidebar-signout { margin-top: auto; border-color: var(--sp-line); }
.sp-workspace { min-width: 0; }
.sp-topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--sp-line);
  background: rgba(7,17,31,.9);
  backdrop-filter: blur(14px);
  padding: 11px 24px;
}
.sp-menu { display: none; min-height: 38px; border: 1px solid var(--sp-line); border-radius: 8px; background: #10233a; color: #fff; padding: 0 11px; font-weight: 850; }
.sp-workspace > .sp-form-status, .sp-panel { width: min(1320px, calc(100% - 40px)); margin-inline: auto; }
.sp-panel { padding: 30px 0 60px; }
.sp-panel h1 { font-size: clamp(32px, 4vw, 50px); }
.sp-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.sp-page-head p:not(.sp-kicker), .sp-card p { margin: 7px 0 0; color: var(--sp-muted); }
.sp-state-banner { border: 1px solid var(--sp-line); border-left: 5px solid var(--sp-teal); border-radius: 12px; background: #0c1b2d; padding: 13px 15px; margin-bottom: 14px; }
.sp-state-banner[data-tone="pending"] { border-left-color: var(--sp-orange); }
.sp-state-banner[data-tone="suspended"], .sp-state-banner[data-tone="inactive"] { border-left-color: var(--sp-danger); }

.sp-workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin: 0 0 14px;
}
.sp-workflow button {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1px 10px;
  min-height: 94px;
  border: 1px solid var(--sp-line);
  border-radius: 13px;
  background: linear-gradient(145deg, #10233a, #0b192a);
  color: var(--sp-text);
  padding: 13px;
  text-align: left;
  cursor: pointer;
}
.sp-workflow button:hover { border-color: var(--sp-cyan); transform: translateY(-1px); }
.sp-workflow button > span {
  grid-row: 1 / 3;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sp-teal), var(--sp-blue));
  color: #041221;
  font-weight: 950;
}
.sp-workflow strong { font-size: 14px; }
.sp-workflow small { color: var(--sp-muted); font-size: 11px; }

.sp-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.sp-metric { border: 1px solid var(--sp-line); border-left: 4px solid var(--sp-cyan); border-radius: 12px; background: var(--sp-panel); padding: 14px; }
.sp-metric span { display: block; color: var(--sp-muted); font-size: 12px; font-weight: 800; }
.sp-metric strong { display: block; margin-top: 4px; font-size: 25px; letter-spacing: -.03em; }
.sp-earnings-split > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 5px; }
.sp-earnings-split > div > span { border-left: 1px solid var(--sp-line); padding-left: 10px; }
.sp-earnings-split > div > span:first-child { border-left: 0; padding-left: 0; }
.sp-earnings-split > div strong { margin-top: 1px; font-size: 18px; }
.sp-two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sp-dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sp-card { margin-bottom: 14px; box-shadow: 0 14px 36px rgba(0,0,0,.16); }
.sp-card-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 14px; }
.sp-card-head button { min-height: 34px; background: #132b46; color: #e9f5ff; border-color: var(--sp-line); }
.sp-list { display: grid; gap: 8px; }
.sp-list-item { display: flex; justify-content: space-between; gap: 14px; border-top: 1px solid var(--sp-line); padding-top: 9px; }
.sp-list-item:first-child { border-top: 0; padding-top: 0; }
.sp-list-item span, .sp-list-item small { display: block; color: var(--sp-muted); }
.sp-empty { border: 1px dashed #36506e; border-radius: 10px; color: var(--sp-muted); padding: 14px; }
.sp-table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th { color: #91a8c2; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
th, td { border-bottom: 1px solid var(--sp-line); padding: 11px 9px; text-align: left; vertical-align: top; }
td { color: #e6eef8; font-size: 13px; }
td small { display: block; color: var(--sp-muted); }
td > a { display: inline-flex; margin-top: 5px; color: #67e8f9; font-size: 12px; font-weight: 850; }
.sp-preview-ready { border: 1px solid #1f766c; border-radius: 8px; background: #0e302f; padding: 7px 9px; text-decoration: none; }
.sp-preview-waiting { display: block; max-width: 210px; color: var(--sp-muted); font-size: 12px; }
.sp-pill { display: inline-flex; align-items: center; min-height: 26px; border: 1px solid #36506e; border-radius: 999px; background: #12263e; color: #dbeafe; padding: 2px 8px; font-size: 11px; font-weight: 900; white-space: nowrap; }
.sp-pill[data-tone="good"] { border-color: #1f766c; background: #0e302f; color: #99f6e4; }
.sp-pill[data-tone="warn"] { border-color: #8b641b; background: #38270d; color: #fde68a; }
.sp-pill[data-tone="bad"] { border-color: #8f3043; background: #3b1520; color: #fecdd3; }
.sp-row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-row-actions button, .sp-row-actions a { min-height: 30px; border: 1px solid #36506e; border-radius: 7px; background: #112740; color: #e8f3ff; padding: 0 8px; text-decoration: none; cursor: pointer; font-size: 12px; font-weight: 850; }
.sp-math-card { display: grid; align-content: start; gap: 12px; }
.sp-math-card > div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--sp-line); padding: 9px 0; }
.sp-math-card > div strong { font-size: 22px; }
.sp-discount-slider { width: 100%; accent-color: var(--sp-cyan); cursor: pointer; }
.sp-slider-scale { display: flex; justify-content: space-between; gap: 12px; margin-top: 7px; color: var(--sp-muted); font-size: 11px; font-weight: 800; }
.sp-slider-scale span:last-child { text-align: right; }
.sp-split-example { margin: 0; border: 1px solid #1f766c; border-radius: 10px; background: #0e302f; color: #ccfbf1; padding: 11px; font-weight: 750; }
.sp-extra-request summary { display: grid; gap: 2px; cursor: pointer; list-style-position: outside; }
.sp-extra-request summary span { color: var(--sp-muted); font-size: 12px; }
.sp-extra-request[open] summary { margin-bottom: 16px; }
.sp-extra-request form { display: grid; gap: 13px; }
.sp-resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.sp-resource-group { border: 1px solid var(--sp-line); border-top: 4px solid var(--sp-teal); border-radius: 13px; background: var(--sp-panel); padding: 15px; }
.sp-resource-group h2 { margin: 0 0 11px; font-size: 17px; text-transform: capitalize; }
.sp-resource-item { border-top: 1px solid var(--sp-line); padding: 10px 0; }
.sp-resource-item:first-of-type { border-top: 0; padding-top: 0; }
.sp-resource-item strong, .sp-resource-item span { display: block; }
.sp-resource-item span { color: var(--sp-muted); font-size: 13px; }
.sp-resource-item a { display: inline-flex; margin-top: 6px; font-size: 12px; font-weight: 850; }

@media (max-width: 1050px) {
  .sp-auth { grid-template-columns: 1fr; gap: 30px; }
  .sp-auth-copy h1 { max-width: 850px; }
  .sp-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .sp-public-header { width: min(100% - 24px, 1180px); }
  .sp-auth { width: min(100% - 24px, 1180px); padding: 28px 0; }
  .sp-auth-copy h1 { font-size: 39px; }
  .sp-product-preview, .sp-form-grid, .sp-two-column, .sp-resource-grid, .sp-workflow { grid-template-columns: 1fr; }
  .sp-wide { grid-column: auto; }
  .sp-shell { display: block; }
  .sp-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: min(286px, 88vw);
    transform: translateX(-105%);
    transition: transform .2s ease;
    box-shadow: 20px 0 60px rgba(0,0,0,.45);
  }
  body.sp-nav-open .sp-sidebar { transform: translateX(0); }
  .sp-menu { display: inline-flex; align-items: center; }
  .sp-topbar { padding: 10px 12px; }
  .sp-workspace > .sp-form-status, .sp-panel { width: min(100% - 24px, 1320px); }
  .sp-panel { padding-top: 22px; }
  .sp-page-head { display: grid; align-items: start; }
}
@media (max-width: 480px) {
  .sp-product-preview, .sp-metrics { grid-template-columns: 1fr; }
  .sp-auth-card, .sp-card { padding: 15px; border-radius: 13px; }
  .sp-auth-copy h1, .sp-panel h1 { font-size: 34px; }
  .sp-link { display: none; }
  .sp-topbar > div { flex: 1; }
  .sp-earnings-split > div { grid-template-columns: 1fr; }
  .sp-earnings-split > div > span { border-left: 0; border-top: 1px solid var(--sp-line); padding: 7px 0 0; }
  .sp-earnings-split > div > span:first-child { border-top: 0; padding-top: 0; }
}
